I recently encountered this warning when trying an AMD RDNA3 card on Orion-O6:
[16852.013164] [pid:3289,cpu2,vf#0:0][drm] HMM_MIRROR kernel config option is not enabled, add CONFIG_ZONE_DEVICE=y in config file to fix this
|
#if defined(CONFIG_HMM_MIRROR) |
|
int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr); |
|
void amdgpu_hmm_unregister(struct amdgpu_bo *bo); |
|
#else |
|
static inline int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr) |
|
{ |
|
DRM_WARN_ONCE("HMM_MIRROR kernel config option is not enabled, " |
|
"add CONFIG_ZONE_DEVICE=y in config file to fix this\n"); |
|
return -ENODEV; |
|
} |
|
static inline void amdgpu_hmm_unregister(struct amdgpu_bo *bo) {} |
|
#endif |
|
config DRM_AMDGPU_USERPTR |
|
bool "Always enable userptr write support" |
|
depends on DRM_AMDGPU |
|
depends on MMU |
|
select HMM_MIRROR |
|
select MMU_NOTIFIER |
|
help |
|
This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it |
|
isn't already selected to enabled full userptr support. |
This should be fixed in cix.config:
|
# for amdgpu |
|
CONFIG_DRM_AMDGPU=m |
|
CONFIG_DRM_AMDGPU_SI=y |
|
CONFIG_DRM_AMDGPU_CIK=y |
zgrep -i AMDGPU /proc/config.gz
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
# CONFIG_DRM_AMDGPU_USERPTR is not set
I recently encountered this warning when trying an AMD RDNA3 card on Orion-O6:
cix_opensource__linux/drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.h
Lines 40 to 51 in 2ec99ef
cix_opensource__linux/drivers/gpu/drm/amd/amdgpu/Kconfig
Lines 63 to 71 in 2ec99ef
This should be fixed in
cix.config:cix_opensource__linux/arch/arm64/configs/cix.config
Lines 544 to 547 in 2ec99ef