From: Ryosuke Yasuoka <ryasuoka@redhat.com>
To: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch,
kraxel@redhat.com, gurchetansingh@chromium.org,
olvaffe@gmail.com, akpm@linux-foundation.org, urezki@gmail.com,
hch@infradead.org, dmitry.osipenko@collabora.com,
jfalempe@redhat.com
Cc: Ryosuke Yasuoka <ryasuoka@redhat.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
virtualization@lists.linux.dev, linux-mm@kvack.org
Subject: [PATCH drm-next 0/2] Enhance drm_panic Support for Virtio-GPU
Date: Thu, 6 Mar 2025 00:25:52 +0900 [thread overview]
Message-ID: <20250305152555.318159-1-ryasuoka@redhat.com> (raw)
Hi
This patch series proposes enhancement for drm_panic. While virtio-gpu
currently supports drm_panic [1], it is limited to vmapped shmem BOs.
IOW, it does not work in non-VT FB environments, such as GUI desktops.
This limitation arises because shmem BOs require vmap, which cannot be
used in a panic handler since vmap is sleepable and takes locks. To
address this, drm_panic needs an atomic variant of vmap.
The first patch (1/2) introduces atomic_vmap, and the second patch (2/2)
updates the existing virtio drm_panic implementation to use the
atomic_vmap. I've tested these changes in both Gnome and VT
environments, and they work correctly.
Best regards,
Ryosuke
[1] https://patchwork.freedesktop.org/patch/635658/
Ryosuke Yasuoka (2):
vmalloc: Add atomic_vmap
drm/virtio: Use atomic_vmap to work drm_panic in GUI
drivers/gpu/drm/drm_gem.c | 51 ++++++++++++
drivers/gpu/drm/drm_gem_shmem_helper.c | 51 ++++++++++++
drivers/gpu/drm/virtio/virtgpu_plane.c | 14 +++-
include/drm/drm_gem.h | 1 +
include/drm/drm_gem_shmem_helper.h | 2 +
include/linux/vmalloc.h | 2 +
mm/internal.h | 5 ++
mm/vmalloc.c | 105 +++++++++++++++++++++++++
8 files changed, 228 insertions(+), 3 deletions(-)
base-commit: e21cba704714c301d04c5fd37a693734b623872a
--
2.48.1
next reply other threads:[~2025-03-05 15:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 15:25 Ryosuke Yasuoka [this message]
2025-03-05 15:25 ` [PATCH drm-next 1/2] vmalloc: Add atomic_vmap Ryosuke Yasuoka
2025-03-05 17:08 ` Markus Elfring
2025-03-05 17:27 ` Uladzislau Rezki
2025-03-06 4:52 ` Matthew Wilcox
2025-03-06 13:24 ` Jocelyn Falempe
2025-03-06 14:04 ` Uladzislau Rezki
2025-03-06 15:52 ` Simona Vetter
2025-03-07 7:54 ` Jocelyn Falempe
2025-03-09 8:07 ` Ryosuke Yasuoka
2025-03-10 10:23 ` Jocelyn Falempe
2025-03-05 15:25 ` [PATCH drm-next 2/2] drm/virtio: Use atomic_vmap to work drm_panic in GUI Ryosuke Yasuoka
2025-03-06 23:56 ` kernel test robot
2025-03-07 3:07 ` kernel test robot
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=20250305152555.318159-1-ryasuoka@redhat.com \
--to=ryasuoka@redhat.com \
--cc=airlied@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dmitry.osipenko@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gurchetansingh@chromium.org \
--cc=hch@infradead.org \
--cc=jfalempe@redhat.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=olvaffe@gmail.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=urezki@gmail.com \
--cc=virtualization@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®