All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks
@ 2021-03-03  2:05 Chen Li
  2021-03-03  2:06 ` [PATCH v2 1/3] drm/radeon: Use kvmalloc for " Chen Li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chen Li @ 2021-03-03  2:05 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, "Christian König"


When testing kernel with trinity, the kernel turned to tainted in that radeon CS require large memory and order is over MAX_ORDER.

kvmalloc/kvmalloc_array should be used here in that it will fallback to vmalloc if necessary.

Chen Li (3):
  drm/radeon: Use kvmalloc for CS chunks
  drm/amdgpu: Use kvmalloc for CS chunks
  drm/amdgpu: correct DRM_ERROR for kvmalloc_array

Changelog:
  v1->v2:
    * also use kvmalloc in amdgpu
    * fix a DRM_ERROR message for kvmalloc_array.
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 +++---
 drivers/gpu/drm/radeon/radeon_cs.c     | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.30.0



_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2021-03-03  3:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03  2:05 [PATCH v2 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks Chen Li
2021-03-03  2:06 ` [PATCH v2 1/3] drm/radeon: Use kvmalloc for " Chen Li
2021-03-03  2:07 ` [PATCH v2 2/3] drm/amdgpu: " Chen Li
2021-03-03  2:23   ` Alex Deucher
2021-03-03  3:14     ` [PATCH v2 2/3] drm/amdgpu: Use kvmalloc for CS chunks【Suspected phishing email, please pay attention to password security】 Chen Li
2021-03-03  2:08 ` [PATCH v2 3/3] drm/amdgpu: correct DRM_ERROR for kvmalloc_array Chen Li

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.