All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390
@ 2021-03-11  3:29 ` Oak Zeng
  0 siblings, 0 replies; 13+ messages in thread
From: Oak Zeng @ 2021-03-11  3:29 UTC (permalink / raw)
  To: dri-devel, amd-gfx; +Cc: Oak Zeng

ioremap_cache is not supported on some architecture
such as s390. Put the codes into a #ifdef to fix
some compile error reported by test robot.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reported-by: Kernel test robot <lkp@intel.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 37751e7..1091585 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1817,7 +1817,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
 
 	/* Change the size here instead of the init above so only lpfn is affected */
 	amdgpu_ttm_set_buffer_funcs_status(adev, false);
-#ifdef CONFIG_64BIT
+#ifdef CONFIG_X86
 	if (adev->gmc.xgmi.connected_to_cpu)
 		adev->mman.aper_base_kaddr = ioremap_cache(adev->gmc.aper_base,
 				adev->gmc.visible_vram_size);
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-03-15 19:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11  3:29 [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390 Oak Zeng
2021-03-11  3:29 ` Oak Zeng
2021-03-11  3:29 ` [PATCH 2/2] drm/amdgpu: fix a few compiler warnings Oak Zeng
2021-03-11  3:29   ` Oak Zeng
2021-03-11 18:19   ` Bhardwaj, Rajneesh
2021-03-11 18:19     ` Bhardwaj, Rajneesh
2021-03-11  8:54 ` [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390 Christian König
2021-03-11  8:54   ` Christian König
2021-03-15 18:42 ` Nirmoy
2021-03-15 18:46   ` Deucher, Alexander
2021-03-15 19:16     ` Nirmoy
2021-03-15 19:24       ` Deucher, Alexander
2021-03-15 19:39         ` Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.