2 is simpler than another one and ldu might be able
to re-use some codes if ldu supports drm_panic, I re-write this
v2 patch with option 2.
Ryosuke Yasuoka (1):
drm/vmwgfx: add drm_panic support for stdu
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c | 73
drivers/gpu/drm
On Tue, Sep 09, 2025 at 03:48:01PM -0500, Ian Forbes wrote:
> On Mon, Sep 8, 2025 at 9:12 AM Ryosuke Yasuoka wrote:
>
> > +static int
> > +vmw_stdu_primary_plane_get_scanout_buffer(struct drm_plane *plane,
> > + struc
AM in .get_scanout_buffer
- And then write to VRAM directly using fifo in legacy mode to avoid
allocations or command submissions.
Ryosuke Yasuoka (1):
drm/vmwgfx: add drm_panic support for stdu mode
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 4 +
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 165 +
Add drm_panic module for vmwgfx stdu mode so that panic screen can be
displayed on panic. Since implemented by writing to VRAM and switching
back to legacy mode, it would expect to work in all DU modes.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 4 +
drivers/gpu
On Mon, Sep 8, 2025 at 11:12 PM Ryosuke Yasuoka wrote:
>
> Add drm_panic support for stdu in vmwgfx. This patch was tested in
> a VM with VMSVGA on Virtual Box.
>
> I got 2 type of suggestions from reviewers:
> 1. Write the panic screen to guest_memory_bo and send dirty/flush
&g
Add drm_panic module for vmwgfx stdu so that panic screen can be
displayed on panic.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c | 73
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 18 +++
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 9
Add drm_panic support for stdu in vmwgfx. This patch was tested in
a VM with VMSVGA on Virtual Box.
Ryosuke Yasuoka (1):
drm/vmwgfx: add drm_panic support for stdu
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 43
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 11 ++
drivers/gpu/drm/vmwgfx
; in a panic situation.
>
> On Tue, Sep 2, 2025 at 3:02 AM Jocelyn Falempe wrote:
> >
> > On 01/09/2025 10:36, Ryosuke Yasuoka wrote:
> > > Add drm_panic module for vmwgfx stdu so that panic screen can be
> > > displayed on panic.
> >
> > Thanks for
Add drm_panic module for vmwgfx stdu so that panic screen can be
displayed on panic.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 43
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 11 ++
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h| 4 +
drivers/gpu/drm/vmwgfx
On Thu, Jun 19, 2025 at 3:12 PM Jocelyn Falempe wrote:
>
> On 13/06/2025 15:20, Ryosuke Yasuoka wrote:
> > Add drm_panic moudle for bochs drm so that panic screen can be displayed
> > on panic.
>
> Thanks for the patch, it's simple and looks good to me.
>
> Revi
Add drm_panic moudle for bochs drm so that panic screen can be displayed
on panic.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/tiny/bochs.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
index
Add drm_panic module for hyperv drm so that panic screen can be
displayed on panic.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 36 +
1 file changed, 36 insertions(+)
diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
b/drivers
/lkml/20250402084351.1545536-1-ryasu...@redhat.com/
Ryosuke Yasuoka (1):
drm/hyperv: Add support for drm_panic
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 36 +
1 file changed, 36 insertions(+)
base-commit: c06cb85ad1412c6ff34792b028b2f89495761398
--
2.49.0
://lore.kernel.org/lkml/dae5089d-e214-4518-b927-5c4149bab...@suse.de/
Acked-by: Javier Martinez Canillas
Signed-off-by: Ryosuke Yasuoka
---
v3:
- Remove hyperv_crtc_helper_atomic_disable
- Use drm_atomic_get_new_plane_state instead of accessing the
plane->state directly
- Iterate and handle e
Hi Javier,
On Fri, Apr 25, 2025 at 4:15 PM Javier Martinez Canillas
wrote:
>
> Ryosuke Yasuoka writes:
>
> Hello Ryosuke,
>
> > Drop simple-KMS in favor of regular atomic helpers to make the code more
> > modular. The simple-KMS helper mix up plane and CRTC state
://lore.kernel.org/lkml/dae5089d-e214-4518-b927-5c4149bab...@suse.de/
Signed-off-by: Ryosuke Yasuoka
---
v2:
- Remove hyperv_crtc_helper_mode_valid
- Remove hyperv_format_mod_supported
- Call helper_add after {plane,crtc}_init
- Move drm_plane_enable_fb_damage_clips to a place close to plane init
://lore.kernel.org/lkml/dae5089d-e214-4518-b927-5c4149bab...@suse.de/
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/hyperv/hyperv_drm.h | 4 +-
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 168
2 files changed, 139 insertions(+), 33 deletions(-)
diff --git a
On Wed, Apr 16, 2025 at 4:29 PM Dmitry Osipenko
wrote:
>
> On 4/12/25 16:20, Ryosuke Yasuoka wrote:
> > Pass array of pages of the scanout buffer [1] to shmem BO, allowing
> > drm_panic to work even if the BO is not vmapped.
> >
> > [1] https://lore.kernel.org/all
Pass array of pages of the scanout buffer [1] to shmem BO, allowing
drm_panic to work even if the BO is not vmapped.
[1] https://lore.kernel.org/all/20250407140138.162383-3-jfale...@redhat.com/
Signed-off-by: Jocelyn Falempe
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/virtio
The `size` argument in the `qxl_alloc_release_reserved` function is
currently unused and has no effect on the function's logic. So remove
this argument to clean up the code. No functional changes are expected.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/qxl/qxl_display.
On Wed, Apr 2, 2025 at 6:45 PM Thomas Zimmermann wrote:
>
> Hi
>
> Am 02.04.25 um 10:43 schrieb Ryosuke Yasuoka:
> > This patch adds drm_panic support for hyperv-drm driver. This function
> > works but it's still needed to brush up. Let me hear your opinions.
> &
Add drm_panic module supports for hyperv drm so that panic screen can be
displayed on panic.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/drm_simple_kms_helper.c | 26 +
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 42 +
include/drm
2022.
Ryosuke Yasuoka (1):
drm/hyperv: Add support for drm_panic
drivers/gpu/drm/drm_simple_kms_helper.c | 26 +
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 42 +
include/drm/drm_simple_kms_helper.h | 22 +++
3 files changed, 90 insertions(+)
On Fri, Mar 7, 2025 at 4:55 PM Jocelyn Falempe wrote:
>
> On 06/03/2025 16:52, Simona Vetter wrote:
> > On Thu, Mar 06, 2025 at 02:24:51PM +0100, Jocelyn Falempe wrote:
> >> On 06/03/2025 05:52, Matthew Wilcox wrote:
> >>> On Thu, Mar 06, 2025 at 12:25:
virtio drm_panic supports only vmapped shmem BO because there is no
atomic vmap feature. Now atomic_vmap is supported, so drm_panic tries to
vmap addr if it is not mapped.
Signed-off-by: Ryosuke Yasuoka
---
drivers/gpu/drm/drm_gem.c | 51 ++
drivers/gpu/drm
Some drivers can use vmap in drm_panic, however, vmap is sleepable and
takes locks. Since drm_panic will vmap in panic handler, atomic_vmap
requests pages with GFP_ATOMIC and maps KVA without locks and sleep.
Signed-off-by: Ryosuke Yasuoka
---
include/linux/vmalloc.h | 2 +
mm/internal.h
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
dr
On Mon, Feb 10, 2025 at 8:14 PM Jocelyn Falempe wrote:
>
> On 09/02/2025 18:45, Dmitry Osipenko wrote:
> > On 2/6/25 13:42, Ryosuke Yasuoka wrote:
> >> Virtio gpu supports the drm_panic module, which displays a message to
> >> the screen when a kernel panic occurs
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs. It is supported where it has
vmapped shmem BO.
Signed-off-by: Jocelyn Falempe
Signed-off-by: Ryosuke Yasuoka
---
v7:
- Reject no vmapped shmem BO. Also, insert comment and commit log
Hi,
On Mon, Feb 3, 2025 at 2:18 AM Dmitry Osipenko
wrote:
>
> Hi,
>
> On 1/30/25 12:05, Ryosuke Yasuoka wrote:
> ...
> > +static int virtio_drm_get_scanout_buffer(struct drm_plane *plane,
> > + struct drm_scanout_buffer *
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Jocelyn Falempe
Signed-off-by: Ryosuke Yasuoka
---
v6:
Based on Dmitry's comment, fix the followings
- Reject external dmabufs backing the GEM object
- Allocate vbuf
On Mon, Dec 2, 2024 at 11:30 PM Dmitry Osipenko
wrote:
>
> On 11/29/24 15:24, Ryosuke Yasuoka wrote:
>
> > + } else {
> > + iosys_map_set_vaddr(&sb->map[0], bo->base.vaddr);
> > + }
> > +
> > + sb->format = plane->
From: Jocelyn Falempe
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
Signed-off-by: Jocelyn Falempe
---
v5:
Based on Dmitry's comment, fix the followings
- Rename virtio_panic_buffer to panic
From: Jocelyn Falempe
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
Signed-off-by: Jocelyn Falempe
---
v4:
- As per Dmitry's comment, make virtio_panic_buffer private to
virtio_gpu_device
From: Jocelyn Falempe
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
Signed-off-by: Jocelyn Falempe
---
v3:
- As per Jocelyn's comment, add a finite timeout 500usec in
virtio_gpu_panic_put_vbuf
From: Jocelyn Falempe
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
Signed-off-by: Jocelyn Falempe
---
v2:
- Remove unnecessary virtio_gpu_vbuffer_inline
- Remove reclaim_list and just call
From: Jocelyn Falempe
Virtio gpu supports the drm_panic module, which displays a message to
the screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
Signed-off-by: Jocelyn Falempe
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 28 +
drivers/gpu/drm/virtio/virtgpu_plane.c
QXL supports the drm_panic module, which displays a message to the
screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
---
v4
1. Remove unnecessary () and empty lines
2. Remove unlikely() from qxl_panic_bo_create(). This function is
only called in panic handler and it does not need
QXL supports the drm_panic module, which displays a message to the
screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
---
v3
Adjust function's arguments indentation. Discussion v2 patch is in [2]
[2] https://lore.kernel.org/lkml/20240919071230.840994-1-ryasu...@redhat.com/T
QXL supports the drm_panic module, which displays a message to the
screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
---
v2
In [1], Jocelyn gives me feedbacks and fix them.
1. Removing qxl_surface_evict(): It takes a mutex and it possibly
causes deadlock in panic handler. As the
QXL supports the drm_panic module, which displays a message to the
screen when a kernel panic occurs.
Signed-off-by: Ryosuke Yasuoka
---
Sorry for sending similar mails again and again. Please ignore the
following my mails. Let me add dri-devel mailing list and Jocelyn who
developped a drm_panic
41 matches
Mail list logo