From: Chen Li <chenli@uniontech.com>
To: amd-gfx@lists.freedesktop.org
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
"\"Christian König\"" <christian.koenig@amd.com>
Subject: [PATCH v3 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks
Date: Wed, 03 Mar 2021 11:49:34 +0800 [thread overview]
Message-ID: <87v9a8lwvl.wl-chenli@uniontech.com> (raw)
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.
v2->v3:
* add missing kvfree for amdgpu CS
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 14 +++++++-------
drivers/gpu/drm/radeon/radeon_cs.c | 8 ++++----
2 files changed, 11 insertions(+), 11 deletions(-)
--
2.30.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next reply other threads:[~2021-03-03 3:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 3:49 Chen Li [this message]
2021-03-03 3:52 ` [PATCH v3 1/3] drm/radeon: Use kvmalloc for CS chunks Chen Li
2021-03-03 3:53 ` [PATCH v3 2/3] drm/amdgpu: " Chen Li
2021-03-03 3:54 ` [PATCH v3 3/3] drm/amdgpu: correct DRM_ERROR for kvmalloc_array Chen Li
2021-03-03 11:30 ` [PATCH v3 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks Christian König
2021-03-03 15:00 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9a8lwvl.wl-chenli@uniontech.com \
--to=chenli@uniontech.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.