On 4/16/25 10:05, Thomas Zimmermann wrote: > Hi > > Am 12.04.25 um 15:20 schrieb Ryosuke Yasuoka: >> 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 <jfale...@redhat.com> >> Signed-off-by: Ryosuke Yasuoka <ryasu...@redhat.com> >> --- >> drivers/gpu/drm/virtio/virtgpu_plane.c | 14 +++++++++++--- >> 1 file changed, 11 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/ >> virtio/virtgpu_plane.c >> index a6f5a78f436a..2ff57d559c86 100644 >> --- a/drivers/gpu/drm/virtio/virtgpu_plane.c >> +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c >> @@ -500,11 +500,19 @@ static int virtio_drm_get_scanout_buffer(struct >> drm_plane *plane, >> bo = gem_to_virtio_gpu_obj(plane->state->fb->obj[0]); >> - /* Only support mapped shmem bo */ >> - if (virtio_gpu_is_vram(bo) || bo->base.base.import_attach || !bo- >> >base.vaddr) >> + if (virtio_gpu_is_vram(bo) || bo->base.base.import_attach) > > Please adopt drm_gem_is_imported() instead of testing import_attach > directly. The helper is available in v6.15-rc1 and later.
Hi, I rebased this patch locally on top of your drm_gem_is_imported() changes and will merge it all soon. -- Best regards, Dmitry