From: Mukul Joshi <[email protected]>

The config option, CONFIG_X86_5LEVEL, to check for 57-bit support on
x86 got dropped in 6.16 kernel. Make the corresponding fix in the driver
to check for CONFIG_X86_64 to enable 57-bit support.

Signed-off-by: Mukul Joshi <[email protected]>
Reviewed-by: Philip Yang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index df67a9752a390..56b5ee732260f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2356,7 +2356,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, 
uint32_t min_vm_size,
        unsigned int vm_size;
        uint64_t tmp;
 
-#ifdef CONFIG_X86_5LEVEL
+#ifdef CONFIG_X86_64
        /*
         * Refer to function configure_5level_paging() for details.
         */
-- 
2.51.0

Reply via email to