[PATCH v3 1/2] mm/kmap: Add kmap_local_page_try_from_panic()

2025-04-10 Thread Jocelyn Falempe
kmap_local_page() can be unsafe to call from a panic handler, if CONFIG_HIGHMEM is set, and the page is in the highmem zone. So add kmap_local_page_try_from_panic() to handle this case. Suggested-by: Simona Vetter Reviewed-by: Thomas Gleixner Signed-off-by: Jocelyn Falempe --- v3: * Add a

Re: [PATCH RFC] virtgpu: don't reset on shutdown

2025-04-10 Thread Jocelyn Falempe
vice *dev); int (*reset_done)(struct virtio_device *dev); + void (*shutdown)(struct virtio_device *dev); }; #define drv_to_virtio(__drv) container_of_const(__drv, struct virtio_driver, driver) Best regards, -- Jocelyn

Re: [PATCH RFC] virtgpu: don't reset on shutdown

2025-04-10 Thread Jocelyn Falempe
On 10/04/2025 14:48, Michael S. Tsirkin wrote: On Thu, Apr 10, 2025 at 02:33:26PM +0200, Jocelyn Falempe wrote: On 10/04/2025 09:16, Michael S. Tsirkin wrote: It looks like GPUs are used by panic after shutdown is invoked. Thus, breaking virtio gpu in the shutdown callback is not a good idea

Re: [PATCH v3 0/2] drm/panic: Add support to scanout buffer as array of pages

2025-04-10 Thread Jocelyn Falempe
On 07/04/2025 15:42, Jocelyn Falempe wrote: Some drivers like virtio-gpu, don't map the scanout buffer in the kernel. Calling vmap() in a panic handler is not safe, and writing an atomic_vmap() API is more complex than expected [1]. So instead, pass the array of pages of the scanout buff

[PATCH v3 2/2] drm/panic: Add support to scanout buffer as array of pages

2025-04-07 Thread Jocelyn Falempe
at a time to draw the pixels. This is obviously slow, but acceptable for a panic handler. [1] https://lore.kernel.org/dri-devel/20250305152555.318159-1-ryasu...@redhat.com/ Acked-by: Thomas Zimmermann Acked-by: Simona Vetter Signed-off-by: Jocelyn Falempe --- v3: * Replace DRM_WARN_ONCE

[PATCH v3 0/2] drm/panic: Add support to scanout buffer as array of pages

2025-04-07 Thread Jocelyn Falempe
pages shouldn't be allocated in the get_scanout_buffer() callback. v3: * Replace DRM_WARN_ONCE with pr_debug_once (Simona Vetter) * Add a comment in kmap_local_page_try_from_panic() (Thomas Gleixner) Jocelyn Falempe (2): mm/kmap: Add kmap_local_page_try_from_panic() drm/panic: Add support

Re: [PATCH 2/2] drm/sysfb: simpledrm: Remove unused helper simpledrm_device_of_dev()

2025-04-07 Thread Jocelyn Falempe
On 07/04/2025 15:47, Thomas Zimmermann wrote: After moving most of the mode-setting pipeline into drm_sysfb_helper.c, simpledrm_device_of_dev() is no longer being used. Remove it. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann Reported-by

Re: [PATCH 1/2] drm/simpledrm: Do not upcast in release helpers

2025-04-07 Thread Jocelyn Falempe
in struct simpledrm_device. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann Fixes: 11e8f5fd223b ("drm: Add simpledrm driver") Cc: # v5.14+ --- drivers/gpu/drm/sysfb/simpledrm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH] drm/sysfb: Fix unused function simpledrm_device_of_dev()

2025-04-07 Thread Jocelyn Falempe
Add #if to define the function only when needed. Signed-off-by: Jocelyn Falempe Fixes: 177dfbdb7e67 ("drm/sysfb: Merge primary-plane functions") --- drivers/gpu/drm/sysfb/simpledrm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/sysfb/simpledrm.c b/drivers/gpu/d

[LincolnTalk] Lincoln Arts and Farmers Market -- Saturday 5th April -- Pierce House

2025-04-05 Thread Jocelyn Finlay
– LincolnAFM <https://lincolnafm.wordpress.com/sweet-spirit-alpaca-farm/> Jocelyn Finlay Photo studio https://jocelynfinlay.com/reservations/ Charlotte Hand drawn gift cards and crochet items Charlotte’s Crafty Creations – LincolnAFM <https://lincolnafm.wordpress.com/charlottes-crafty-

[PATCH v6 3/8] drm/i915/display: Add a disable_tiling() for skl planes

2025-04-05 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- .../drm/i915/display/skl_universal_plane.c| 20 +++ 1 file changed, 20 inser

Re: [PATCH v6 5/8] drm/i915/display: Add drm_panic support

2025-04-05 Thread Jocelyn Falempe
On 01/04/2025 15:48, Jani Nikula wrote: On Tue, 01 Apr 2025, Jocelyn Falempe wrote: This adds drm_panic support for a wide range of Intel GPU. I've tested it only on 4 laptops, Haswell (with 128MB of eDRAM), Comet Lake, Raptor Lake, and Lunar Lake. For hardware using DPT, it's not p

[LincolnTalk] Lincoln Arts and Farmers Market -- Saturday 5th April -- Pierce House

2025-04-05 Thread Jocelyn Finlay
On this morning (Saturday) 9-1! Come and join us for the Lincoln Arts and Farmers Market, Spring Market. Saturday 5th April, 9-1pmPierce House17 Weston RdLincoln MA 01773Many great vendors will be there with local farm produce, arts and crafts. Spring Market, 5th April 2025Bill HussAlpaca yarnSwe

Re: [PATCH 8/8] drm/format-helper: Optimize 32-to-8-bpp conversion

2025-04-04 Thread Jocelyn Falempe
ple Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_format_helper.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_format_helper.c b/drivers/gpu/drm/drm_format_helper.c index 66137df85

[PATCH v2 1/2] mm/kmap: Add kmap_local_page_try_from_panic()

2025-04-04 Thread Jocelyn Falempe
kmap_local_page() can be unsafe to call from a panic handler, if CONFIG_HIGHMEM is set, and the page is in the highmem zone. So add kmap_local_page_try_from_panic() to handle this case. Suggested-by: Simona Vetter Signed-off-by: Jocelyn Falempe --- include/linux/highmem-internal.h | 12

[LincolnTalk] Lincoln Arts and Farmers Market -- Saturday 5th April -- Pierce House

2025-04-04 Thread Jocelyn Finlay
Come and join us for the Lincoln Arts and Farmers Market, Spring Market. Saturday 5th April, 9-1pmPierce House17 Weston RdLincoln MA 01773Many great vendors will be there with local farm produce, arts and crafts. Spring Market, 5th April 2025Bill HussAlpaca yarnSweet Spirit Alpaca Farm – LincolnAF

[LincolnTalk] Lincoln Arts and Farmers Market -- Saturday 5th April -- Pierce House

2025-04-03 Thread Jocelyn Finlay
Come and join us for the Lincoln Arts and Farmers Market, Spring Market. Saturday 5th April, 9-1pmPierce House17 Weston RdLincoln MA 01773Many great vendors will be there with local farm produce, arts and crafts. Spring Market, 5th April 2025Bill HussAlpaca yarnSweet Spirit Alpaca Farm – LincolnAF

Re: [PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:57, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 08:47:50PM +0300, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:10PM +0200, Jocelyn Falempe wrote: Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the

Re: [PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:47, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:10PM +0200, Jocelyn Falempe wrote: Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use

Re: [PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:57, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 08:47:50PM +0300, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:10PM +0200, Jocelyn Falempe wrote: Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the

Re: [PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:47, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:10PM +0200, Jocelyn Falempe wrote: Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use

Re: [PATCH v6 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:38, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:08PM +0200, Jocelyn Falempe wrote: drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Fa

Re: [PATCH v6 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-04-01 Thread Jocelyn Falempe
On 01/04/2025 19:38, Ville Syrjälä wrote: On Tue, Apr 01, 2025 at 02:51:08PM +0200, Jocelyn Falempe wrote: drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Fa

[PATCH v6 7/8] drm/i915/display: Add drm_panic support for Y-tiling with DPT

2025-04-01 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements Y-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 69 ++- .../drm

[PATCH v6 8/8] drm/i915/display: Add drm_panic support for 4-tiling with DPT

2025-04-01 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements 4-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 22 ++- 1 file change

[PATCH v6 6/8] drm/i915/display: Flush the front buffer in panic handler

2025-04-01 Thread Jocelyn Falempe
On Lunar Lake, if the panic occurs when fbcon is active, the panic screen is only partially visible on the screen. Adding this intel_frontbuffer_flush() call solves the issue. It's probably not safe to do that in the panic handler, but that's still better than nothing. Signed-off-b

[PATCH v6 7/8] drm/i915/display: Add drm_panic support for Y-tiling with DPT

2025-04-01 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements Y-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 69 ++- .../drm

[PATCH v6 5/8] drm/i915/display: Add drm_panic support

2025-04-01 Thread Jocelyn Falempe
essing the framebuffer. Signed-off-by: Jocelyn Falempe --- v4: * Add support for Xe driver. v6: * Use struct intel_display instead of drm_i915_private for intel_atomic_plane.c .../gpu/drm/i915/display/intel_atomic_plane.c | 79 ++- 1 file changed, 78 insertions(+), 1 deletion(-)

[PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use iosys_map for intel_bo_panic_map(). drivers/gpu/drm/i915/display/intel_bo.c| 5 drivers/gpu/drm/i915

[PATCH v6 8/8] drm/i915/display: Add drm_panic support for 4-tiling with DPT

2025-04-01 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements 4-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 22 ++- 1 file change

[PATCH v6 6/8] drm/i915/display: Flush the front buffer in panic handler

2025-04-01 Thread Jocelyn Falempe
On Lunar Lake, if the panic occurs when fbcon is active, the panic screen is only partially visible on the screen. Adding this intel_frontbuffer_flush() call solves the issue. It's probably not safe to do that in the panic handler, but that's still better than nothing. Signed-off-b

[PATCH v6 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-04-01 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/i915/display/i9xx_plane.c | 23 +++ .../drm/i915/di

[PATCH v6 5/8] drm/i915/display: Add drm_panic support

2025-04-01 Thread Jocelyn Falempe
essing the framebuffer. Signed-off-by: Jocelyn Falempe --- v4: * Add support for Xe driver. v6: * Use struct intel_display instead of drm_i915_private for intel_atomic_plane.c .../gpu/drm/i915/display/intel_atomic_plane.c | 79 ++- 1 file changed, 78 insertions(+), 1 deletion(-)

[PATCH v6 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-04-01 Thread Jocelyn Falempe
Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use iosys_map for intel_bo_panic_map(). drivers/gpu/drm/i915/display/intel_bo.c| 5 drivers/gpu/drm/i915

[PATCH v6 0/8] drm/i915: Add drm_panic support

2025-04-01 Thread Jocelyn Falempe
/i915/kernel.git drm-intel-next * Use struct intel_display instead of drm_i915_private for intel_atomic_plane.c Jocelyn Falempe (8): drm/i915/fbdev: Add intel_fbdev_get_map() drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes drm/i915/display: Add a disable_tiling() for skl planes

[PATCH v6 3/8] drm/i915/display: Add a disable_tiling() for skl planes

2025-04-01 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- .../drm/i915/display/skl_universal_plane.c| 20 +++ 1 file changed, 20 inser

[PATCH v6 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-04-01 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/i915/display/i9xx_plane.c | 23 +++ .../drm/i915/di

[PATCH v6 1/8] drm/i915/fbdev: Add intel_fbdev_get_map()

2025-04-01 Thread Jocelyn Falempe
The vaddr of the fbdev framebuffer is private to the struct intel_fbdev, so this function is needed to access it for drm_panic. Also the struct i915_vma is different between i915 and xe, so it requires a few functions to access fbdev->vma->iomap. Signed-off-by: Jocelyn Falempe --- v2:

[PATCH v6 0/8] drm/i915: Add drm_panic support

2025-04-01 Thread Jocelyn Falempe
/i915/kernel.git drm-intel-next * Use struct intel_display instead of drm_i915_private for intel_atomic_plane.c Jocelyn Falempe (8): drm/i915/fbdev: Add intel_fbdev_get_map() drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes drm/i915/display: Add a disable_tiling() for skl planes

[PATCH v6 1/8] drm/i915/fbdev: Add intel_fbdev_get_map()

2025-04-01 Thread Jocelyn Falempe
The vaddr of the fbdev framebuffer is private to the struct intel_fbdev, so this function is needed to access it for drm_panic. Also the struct i915_vma is different between i915 and xe, so it requires a few functions to access fbdev->vma->iomap. Signed-off-by: Jocelyn Falempe --- v2:

Re: [PATCH 02/10] drm/panic: add missing Markdown code span

2025-03-27 Thread Jocelyn Falempe
On 25/03/2025 20:04, Miguel Ojeda wrote: On Tue, Mar 25, 2025 at 10:05 AM Jocelyn Falempe wrote: Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe You want to take the whole series in the rust tree? Otherwise I can push the patch 1-2 to drm-misc-next if needed. Please take them

Re: [PATCH 5/8] drm/format-helper: Add generic conversion to 8-bit formats

2025-03-26 Thread Jocelyn Falempe
existing line-conversion functions with the new generic call and the respective pixel-conversion helper. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_format_helper.c | 38 ++- drivers/gpu/drm

Re: [PATCH 7/8] drm/format-helper: Optimize 32-to-16-bpp conversion

2025-03-26 Thread Jocelyn Falempe
=> multiple Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_format_helper.c | 40 - 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_format_helper.c b/drivers/gpu/drm/drm_format_helper.c in

Re: [PATCH 6/8] drm/format-helper: Optimize 32-to-24-bpp conversion

2025-03-26 Thread Jocelyn Falempe
On 25/03/2025 11:31, Thomas Zimmermann wrote: For ease of implementation, existing line-conversion functions for 24-bit formats write each byte individually. Optimize the performance by writing 4 pixels in 3 32-bit stores. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed

Re: [PATCH 4/8] drm/format-helper: Add generic conversion to 16-bit formats

2025-03-26 Thread Jocelyn Falempe
existing line-conversion functions with the new generic call and the respective pixel-conversion helper. There's one pixel-conversion helper that swaps output bytes. It is for gud and requires refactoring, so don't move it into the header file. Thanks, it looks good to me. Reviewed-b

Re: [PATCH 3/8] drm/format-helper: Add generic conversion to 24-bit formats

2025-03-26 Thread Jocelyn Falempe
existing line-conversion functions with the new generic call and the respective pixel-conversion helper. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_format_helper.c | 43 --- drivers/gpu/drm

Re: [PATCH 2/8] drm/format-helper: Add generic conversion to 32-bit formats

2025-03-26 Thread Jocelyn Falempe
existing line-conversion functions with the new generic call and the respective pixel-conversion helper. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_format_helper.c | 84 +++-- 1 file changed

Re: [PATCH 1/8] drm/format-helper: Move helpers for pixel conversion to header file

2025-03-26 Thread Jocelyn Falempe
format conversion helpers. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_draw.c| 100 +++--- drivers/gpu/drm/drm_format_internal.h | 119 ++ 2 files changed, 130 insertions

Re: [PATCH 3/3] drm/ast: Validate display modes against framebuffer and format limits

2025-03-25 Thread Jocelyn Falempe
On 24/03/2025 10:44, Thomas Zimmermann wrote: Reimplement ast_mode_config_mode_valid() with DRM format helpers and ast's helpers for framebuffer size calculation. Replaces ast's open- coded assumptions on bpp and page-alignments. Thanks, it looks good to me. Reviewed-by: Jocel

Re: [PATCH 02/10] drm/panic: add missing Markdown code span

2025-03-25 Thread Jocelyn Falempe
On 24/03/2025 22:03, Miguel Ojeda wrote: Add missing Markdown code span. This was found using the Clippy `doc_markdown` lint, which we may want to enable. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe You want to take the whole series in the rust tree? Otherwise I can push the

Re: [PATCH 01/10] drm/panic: add missing space

2025-03-25 Thread Jocelyn Falempe
On 24/03/2025 22:03, Miguel Ojeda wrote: Add missing space in sentence. This was found using the Clippy `doc_markdown` lint, which we may want to enable. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen") Sig

Re: [PATCH 1/3] drm/ast: Fix comment on modeset lock

2025-03-25 Thread Jocelyn Falempe
, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann Fixes: 1fe182154984 ("drm/ast: Acquire I/O-register lock in atomic_commit_tail function") Cc: Thomas Zimmermann Cc: Jocelyn Falempe Cc: Dave Airlie Cc: dri-devel@lists.freedesktop.org C

Re: [PATCH 2/3] drm/ast: Remove vaddr field from struct ast_plane

2025-03-25 Thread Jocelyn Falempe
. This cannot legally happen. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_cursor.c | 8 +++- drivers/gpu/drm/ast/ast_drv.h| 4 ++-- drivers/gpu/drm/ast/ast_mode.c | 19 --- 3 files

[PATCH v2 0/2] drm/panic: Add support to scanout buffer as array of pages

2025-03-22 Thread Jocelyn Falempe
pages shouldn't be allocated in the get_scanout_buffer() callback. Jocelyn Falempe (2): mm/kmap: Add kmap_local_page_try_from_panic() drm/panic: Add support to scanout buffer as array of pages drivers/gpu/drm/drm_panic.c | 142 +-- include/drm/drm_panic.h

[PATCH v2 2/2] drm/panic: Add support to scanout buffer as array of pages

2025-03-21 Thread Jocelyn Falempe
at a time to draw the pixels. This is obviously slow, but acceptable for a panic handler. [1] https://lore.kernel.org/dri-devel/20250305152555.318159-1-ryasu...@redhat.com/ Signed-off-by: Jocelyn Falempe Acked-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panic.c

[PATCH] drm/panic: Add support to scanout buffer as array of pages

2025-03-13 Thread Jocelyn Falempe
at a time to draw the pixels. This is obviously slow, but acceptable for a panic handler. [1] https://lore.kernel.org/dri-devel/20250305152555.318159-1-ryasu...@redhat.com/ Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 139 ++-- includ

Re: [PATCH v2 4/7] drm/ast: cursor: Add helpers for computing location in video memory

2025-03-11 Thread Jocelyn Falempe
On 05/03/2025 17:30, Thomas Zimmermann wrote: The ast drivers stores the cursor image at the end of the video memory. Add helpers to calculate the offset and size. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast

Re: [PATCH 2/7] drm/ast: Add VGACRAA register constants

2025-03-11 Thread Jocelyn Falempe
On 05/03/2025 14:35, Thomas Zimmermann wrote: Add register constants for VGACRAA and use them when detecting the size of the VGA memory. Aligns the code with the programming manual. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers

Re: [PATCH v2 1/7] drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants

2025-03-11 Thread Jocelyn Falempe
unused and the default size is not necessary. Remove both of them. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 8 drivers/gpu/drm/ast/ast_mm.c | 9 - drivers/gpu/drm/ast/ast_p

Re: [PATCH v2 7/7] drm/ast: cursor: Drop page alignment

2025-03-11 Thread Jocelyn Falempe
sure you can use the extra bytes. Otherwise, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_cursor.c b/drivers/gpu/dr

Re: [PATCH v2 6/7] drm/ast: Remove vram_fb_available from struct ast_device

2025-03-11 Thread Jocelyn Falempe
: Jocelyn Falempe v2: - initialize plane size Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_cursor.c | 18 -- drivers/gpu/drm/ast/ast_drv.h| 4 drivers/gpu/drm/ast/ast_mm.c | 1 - 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a

Re: [PATCH v2 5/7] drm/ast: Add helper for computing framebuffer location in video memory

2025-03-11 Thread Jocelyn Falempe
On 05/03/2025 17:30, Thomas Zimmermann wrote: The ast driver stores the primary plane's image in the framebuffer memory up to where the cursor is located. Add helpers to calculate the offset and size. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: T

Re: [PATCH v2 3/7] drm/ast: Add VGACR99 register constants

2025-03-11 Thread Jocelyn Falempe
ed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mm.c | 13 ++--- drivers/gpu/drm/ast/ast_reg.h | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_mm.c b/drivers/gpu/drm/ast/ast_mm.c index 8d8aac8c0814..3d03ef5

Re: [PATCH v2 2/7] drm/ast: Add VGACRAA register constants

2025-03-11 Thread Jocelyn Falempe
On 05/03/2025 17:30, Thomas Zimmermann wrote: Add register constants for VGACRAA and use them when detecting the size of the VGA memory. Aligns the code with the programming manual. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers

Re: [PATCH 4/7] drm/ast: cursor: Add helpers for computing location in video memory

2025-03-11 Thread Jocelyn Falempe
On 05/03/2025 14:35, Thomas Zimmermann wrote: The ast drivers stores the cursor image at the end of the video memory. Add helpers to calculate the offset and size. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast

Re: [PATCH 3/7] drm/ast: Add VGACR99 register constants

2025-03-11 Thread Jocelyn Falempe
ed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mm.c | 13 ++--- drivers/gpu/drm/ast/ast_reg.h | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_mm.c b/drivers/gpu/drm/ast/ast_mm.c index 8d8aac8

Re: [PATCH 1/7] drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants

2025-03-11 Thread Jocelyn Falempe
unused and the default size is not necessary. Remove both of them. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 8 drivers/gpu/drm/ast/ast_mm.c | 9 - drivers/gpu/drm/ast/ast_p

Re: [PATCH drm-next 1/2] vmalloc: Add atomic_vmap

2025-03-10 Thread Jocelyn Falempe
On 09/03/2025 09:07, Ryosuke Yasuoka wrote: 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:53AM +0900

Re: [PATCH drm-next 1/2] vmalloc: Add atomic_vmap

2025-03-06 Thread Jocelyn Falempe
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:53AM +0900, Ryosuke Yasuoka wrote: Some drivers can use vmap in drm_panic, however, vmap is sleepable and takes

Re: [PATCH drm-next 1/2] vmalloc: Add atomic_vmap

2025-03-06 Thread Jocelyn Falempe
taken. (In the panic handler, only 1 CPU remain active, so it's unlikely the lock would be released anyway). If we need to pre-allocate the page table and reserve the vmap area, maybe it would be easier to just always vmap() the primary framebuffer, so it can be used in the panic handler? Best regards, -- Jocelyn

Re: [PATCH 00/12] drm/{i915,xe}: Convert to DRM client setup

2025-03-04 Thread Jocelyn Falempe
eries? Sorry, should have gotten back to you sooner. Xe was working with the series applied. :) Hi, Is it possible to also review and merge i915 vmap support? https://patchwork.freedesktop.org/series/135554/ This is required to have drm_log working on i915 Best regards, -- Jocelyn C

Re: [PATCH 00/12] drm/{i915,xe}: Convert to DRM client setup

2025-03-04 Thread Jocelyn Falempe
eries? Sorry, should have gotten back to you sooner. Xe was working with the series applied. :) Hi, Is it possible to also review and merge i915 vmap support? https://patchwork.freedesktop.org/series/135554/ This is required to have drm_log working on i915 Best regards, -- Jocelyn C

Re: [PATCH v3 5/5] panic_qr: use new #[export] macro

2025-03-03 Thread Jocelyn Falempe
ze}` The signature declarations are moved to a header file so it can be included in the Rust bindings helper, and the extern keyword is removed as it is unnecessary. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Reviewed-by: Andreas Hindborg Reviewed-by: Tamir Duberstein Ack

Re: [PATCH 3/4] drm/ast: cursor: Add support for ARGB4444

2025-02-14 Thread Jocelyn Falempe
On 13/02/2025 17:25, Thomas Zimmermann wrote: Add support for cursor image data in ARGB format. This is the hardware's native format and requires no conversion. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/dr

Re: [PATCH 4/4] drm/ast: cursor: Move implementation to separate source file

2025-02-14 Thread Jocelyn Falempe
On 13/02/2025 17:25, Thomas Zimmermann wrote: Move the cursor code into a separate source file for readability. No functional changes. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/Makefile | 1 + drivers/gpu

Re: [PATCH 2/4] drm/ast: cursor: Move format conversion to shared helper

2025-02-14 Thread Jocelyn Falempe
area (And I'm not sure userspace actually change only parts of the cursor). The format-conversion helper still contains the old implementation's optimization of writing 2 output pixels at the same time. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed

Re: [PATCH 1/4] drm/ast: cursor: Calculate checksum in helper

2025-02-14 Thread Jocelyn Falempe
to move the typo: helper format conversion into a shared helper. Thanks, I've only one remark below, but you can keep it as-is if you prefer. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 13 +++- drivers/gpu/drm/ast/ast_m

[PATCH v5 8/8] drm/i915/display: Add drm_panic support for 4-tiling with DPT

2025-02-14 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements 4-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 22 ++- 1 file change

[PATCH v5 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-02-14 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/i915/display/i9xx_plane.c | 23 +++ .../drm/i915/di

[PATCH v5 8/8] drm/i915/display: Add drm_panic support for 4-tiling with DPT

2025-02-14 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements 4-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 22 ++- 1 file change

[PATCH v5 7/8] drm/i915/display: Add drm_panic support for Y-tiling with DPT

2025-02-14 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements Y-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 69 ++- .../drm

[PATCH v5 7/8] drm/i915/display: Add drm_panic support for Y-tiling with DPT

2025-02-14 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements Y-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 69 ++- .../drm

[PATCH v5 6/8] drm/i915/display: Flush the front buffer in panic handler

2025-02-14 Thread Jocelyn Falempe
On Lunar Lake, if the panic occurs when fbcon is active, the panic screen is only partially visible on the screen. Adding this intel_frontbuffer_flush() call solves the issue. It's probably not safe to do that in the panic handler, but that's still better than nothing. Signed-off-b

[PATCH v5 6/8] drm/i915/display: Flush the front buffer in panic handler

2025-02-14 Thread Jocelyn Falempe
On Lunar Lake, if the panic occurs when fbcon is active, the panic screen is only partially visible on the screen. Adding this intel_frontbuffer_flush() call solves the issue. It's probably not safe to do that in the panic handler, but that's still better than nothing. Signed-off-b

[PATCH v5 5/8] drm/i915/display: Add drm_panic support

2025-02-14 Thread Jocelyn Falempe
essing the framebuffer. Signed-off-by: Jocelyn Falempe --- v4: * Add support for Xe driver. .../gpu/drm/i915/display/intel_atomic_plane.c | 79 ++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i9

[PATCH v5 5/8] drm/i915/display: Add drm_panic support

2025-02-14 Thread Jocelyn Falempe
essing the framebuffer. Signed-off-by: Jocelyn Falempe --- v4: * Add support for Xe driver. .../gpu/drm/i915/display/intel_atomic_plane.c | 79 ++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i9

[PATCH v5 0/8] drm/i915: Add drm_panic support

2025-02-14 Thread Jocelyn Falempe
nd in newest GPU. v5: * Rebase on top of g...@gitlab.freedesktop.org:drm/i915/kernel.git drm-intel-next * Use struct intel_display instead of drm_i915_private. * Use iosys_map for intel_bo_panic_map(). Jocelyn Falempe (8): drm/i915/fbdev: Add intel_fbdev_get_map() drm/i915/display/i9xx:

[PATCH v5 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-02-14 Thread Jocelyn Falempe
Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use iosys_map for intel_bo_panic_map(). drivers/gpu/drm/i915/display/intel_bo.c| 5 drivers/gpu/drm/i915

[PATCH v5 4/8] drm/i915/gem: Add i915_gem_object_panic_map()

2025-02-14 Thread Jocelyn Falempe
Prepare the work for drm_panic support. This is used to map the current framebuffer, so the CPU can overwrite it with the panic message. Signed-off-by: Jocelyn Falempe --- v5: * Use iosys_map for intel_bo_panic_map(). drivers/gpu/drm/i915/display/intel_bo.c| 5 drivers/gpu/drm/i915

[PATCH v5 3/8] drm/i915/display: Add a disable_tiling() for skl planes

2025-02-14 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- .../drm/i915/display/skl_universal_plane.c| 20 +++ 1 file changed, 20 inser

[PATCH v5 2/8] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-02-14 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/i915/display/i9xx_plane.c | 23 +++ .../drm/i915/di

[PATCH v5 3/8] drm/i915/display: Add a disable_tiling() for skl planes

2025-02-14 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. Signed-off-by: Jocelyn Falempe --- .../drm/i915/display/skl_universal_plane.c| 20 +++ 1 file changed, 20 inser

[PATCH v5 1/8] drm/i915/fbdev: Add intel_fbdev_get_map()

2025-02-14 Thread Jocelyn Falempe
The vaddr of the fbdev framebuffer is private to the struct intel_fbdev, so this function is needed to access it for drm_panic. Also the struct i915_vma is different between i915 and xe, so it requires a few functions to access fbdev->vma->iomap. Signed-off-by: Jocelyn Falempe --- v2:

[PATCH v5 1/8] drm/i915/fbdev: Add intel_fbdev_get_map()

2025-02-14 Thread Jocelyn Falempe
The vaddr of the fbdev framebuffer is private to the struct intel_fbdev, so this function is needed to access it for drm_panic. Also the struct i915_vma is different between i915 and xe, so it requires a few functions to access fbdev->vma->iomap. Signed-off-by: Jocelyn Falempe --- v2:

[PATCH v5 0/8] drm/i915: Add drm_panic support

2025-02-14 Thread Jocelyn Falempe
nd in newest GPU. v5: * Rebase on top of g...@gitlab.freedesktop.org:drm/i915/kernel.git drm-intel-next * Use struct intel_display instead of drm_i915_private. * Use iosys_map for intel_bo_panic_map(). Jocelyn Falempe (8): drm/i915/fbdev: Add intel_fbdev_get_map() drm/i915/display/i9xx:

Re: Include ASPEED ast-drm 1.15.1 video driver in kernel tree

2025-02-14 Thread Jocelyn Falempe
patch <https://xba.soartist.net/ast-drm_nba_20250211/nba-dump/ ast-fullpatch.patch> Diff is about 250+ kb so the 2 drivers seems to have nothing to do with each others... Thanks again for help Kind regards Nicolas Le 2025-02-13 08:57, Thomas Zimmermann a écrit : Hi Nicolas Am 12.02.25 um 19:58

[digikam] [Bug 500043] GPS being deleted from .mp4 when I "Read metadata from file to database"

2025-02-14 Thread Jocelyn
https://bugs.kde.org/show_bug.cgi?id=500043 --- Comment #3 from Jocelyn --- Created attachment 178350 --> https://bugs.kde.org/attachment.cgi?id=178350&action=edit Image of the Metadata Behaviour settings I have selected I've selected "Delegate to ExifTool backend all op

[digikam] [Bug 500043] New: GPS being deleted from .mp4 when I "Read metadata from file to database"

2025-02-13 Thread Jocelyn
https://bugs.kde.org/show_bug.cgi?id=500043 Bug ID: 500043 Summary: GPS being deleted from .mp4 when I "Read metadata from file to database" Classification: Applications Product: digikam Version: 8.5.0 Platform: Microso

Re: drm/ast regression, when upgrading from v6.3 to v6.6

2025-02-13 Thread Jocelyn Falempe
On 13/02/2025 15:01, Thomas Zimmermann wrote: Hi Am 13.02.25 um 14:33 schrieb Jocelyn Falempe: Hi Thomas and Jammy, I've got a regression report, and it's caused by https:// patchwork.freedesktop.org/patch/540015/ On this ast2600 server, the firmware says it has a DP output, but

drm/ast regression, when upgrading from v6.3 to v6.6

2025-02-13 Thread Jocelyn Falempe
ixing the firmware would be the best solution, it's not always possible. I'm considering different options: - Add a kernel module parameter to override the tx_chip_types, something like "ast.output=vga" - Add a DMI quirk, to force vga on this particular motherboard. What do you think? Best regards, -- Jocelyn

  1   2   3   4   5   6   7   8   9   10   >