[PULL] drm-misc-fixes

2024-04-25 Thread Thomas Zimmermann
| 80 - drivers/video/fbdev/core/fb_defio.c | 2 +- 6 files changed, 4 insertions(+), 97 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/psb_lid.c -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse

[PULL] drm-misc-fixes

2024-04-25 Thread Thomas Zimmermann
| 80 - drivers/video/fbdev/core/fb_defio.c | 2 +- 6 files changed, 4 insertions(+), 97 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/psb_lid.c -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse

[PULL] drm-misc-fixes

2024-04-25 Thread Thomas Zimmermann
| 80 - drivers/video/fbdev/core/fb_defio.c | 2 +- 6 files changed, 4 insertions(+), 97 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/psb_lid.c -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse

Re: [PATCH v8 6/6] drm/{i915,xe}: Implement fbdev emulation as in-kernel client

2024-04-23 Thread Thomas Zimmermann
Hi Am 23.04.24 um 13:36 schrieb Hogander, Jouni: On Tue, 2024-04-23 at 13:13 +0200, Thomas Zimmermann wrote: Hi Am 22.04.24 um 16:11 schrieb Hogander, Jouni: On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: Replace all code that initializes or releases fbdev emulation throughout

Re: [PATCH v8 6/6] drm/{i915,xe}: Implement fbdev emulation as in-kernel client

2024-04-23 Thread Thomas Zimmermann
Hi Am 23.04.24 um 13:36 schrieb Hogander, Jouni: On Tue, 2024-04-23 at 13:13 +0200, Thomas Zimmermann wrote: Hi Am 22.04.24 um 16:11 schrieb Hogander, Jouni: On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: Replace all code that initializes or releases fbdev emulation throughout

Re: [PATCH v2] fbdev: fix incorrect address computation in deferred IO

2024-04-23 Thread Thomas Zimmermann
bdev/271372d6-e665-4e7f-b088-dee5f4ab3...@oracle.com Fixes: 56c134f7f1b5 ("fbdev: Track deferred-I/O pages in pageref struct") Cc: Signed-off-by: Nam Cao Reviewed-by: Thomas Zimmermann Thank you so much. I'll take care of merging the patch later this week. Best regards Thomas

Re: [PATCH] fbdev: fix incorrect address computation in deferred IO

2024-04-23 Thread Thomas Zimmermann
ry.c#L5222 [2] https://elixir.bootlin.com/linux/v6.8/source/include/linux/pagemap.h#L957 Best regards Thomas Best regards, Nam -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

Re: [PATCH v8 6/6] drm/{i915,xe}: Implement fbdev emulation as in-kernel client

2024-04-23 Thread Thomas Zimmermann
Hi Am 22.04.24 um 16:11 schrieb Hogander, Jouni: On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: Replace all code that initializes or releases fbdev emulation throughout the driver. Instead initialize the fbdev client by a single call to intel_fbdev_setup() after i915 has

Re: [PATCH v8 6/6] drm/{i915,xe}: Implement fbdev emulation as in-kernel client

2024-04-23 Thread Thomas Zimmermann
Hi Am 22.04.24 um 16:11 schrieb Hogander, Jouni: On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: Replace all code that initializes or releases fbdev emulation throughout the driver. Instead initialize the fbdev client by a single call to intel_fbdev_setup() after i915 has

Re: [PATCH] fbdev: fix incorrect address computation in deferred IO

2024-04-23 Thread Thomas Zimmermann
. Can we do the same here and avoid that computation? Best regards Thomas [1] https://elixir.bootlin.com/linux/v6.8/source/drivers/video/fbdev/core/fb_defio.c#L100 struct page *page = vmf->page; file_update_time(vmf->vma->vm_file); -- -- Thomas Zimmermann Graphics Dri

Re: [PATCH] drm/atomic-helper: fix parameter order in drm_format_conv_state_copy() call

2024-04-19 Thread Thomas Zimmermann
-by: Lucas Stach Tested-by: Leonard Göhrs Reviewed-by: Thomas Zimmermann Please also add Cc: # v6.8+ Best regards Thomas --- drivers/gpu/drm/drm_gem_atomic_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_atomic_helper.c b/drive

[PATCH v3 25/43] drm/ingenic: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ingenic. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Paul Cercueil Acked-by: Paul Cercueil --- drivers/gpu

[PATCH v3 00/43] drm: Provide fbdev emulation per memory manager

2024-04-19 Thread Thomas Zimmermann
with simpledrm, vc4 and amdgpu. v3: - fbdev-dma: init fb_ops with DMAMEM initializer (Javier) - fbdev-shmem: clarify get_page usage (Javier) v2: - fbdev-shmem: use drm_driver_legacy_fb_format() (Geert) - fix a few typos Thomas Zimmermann (43): drm/fbdev-generic: Do not set physical framebuffer address

[PATCH v3 34/43] drm/tiny/ili9225: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9225. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/gpu

[PATCH v3 24/43] drm/imx/lcdc: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by lcdc. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team

[PATCH v3 17/43] drm/tiny/simpledrm: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/tiny

[PATCH v3 37/43] drm/tiny/mi0283qt: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by mi0283qt. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Nora

[PATCH v3 20/43] drm/vkms: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Rodrigo Siqueira Cc: Melissa Wen Cc: "Maíra Canal" Cc: Haneen Mohammed Cc: Daniel Vetter Reviewed-by: Javie

[PATCH v3 15/43] drm/tiny/gm12u320: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Hans de Goede Reviewed-by: Hans de Goede --- drivers/gpu/drm/tiny/gm12u320.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v3 19/43] drm/virtio: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: David Airlie Cc: Gerd Hoffmann Cc: Gurchetan Singh Cc: Chia-I Wu Tested-by: Dmitry Osipenko Reviewed-by: Javier

[PATCH v3 21/43] drm/fbdev-dma: Implement damage handling and deferred I/O

2024-04-19 Thread Thomas Zimmermann
that support coherent mappings. v3: - init fb_ops with FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS() (Javier) Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/drm_fbdev_dma.c | 65 ++--- 1 file changed, 51 insertions(+), 14 deletions(-) diff

[PATCH v3 33/43] drm/tiny/ili9163: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9163. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm

[PATCH v3 41/43] drm/tiny/st7735r: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by st7735r. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/gpu

[PATCH v3 43/43] drm/fbdev: Clean up fbdev documentation

2024-04-19 Thread Thomas Zimmermann
Rewrite some docs that are not up-to-date any longer. Remove the TODO item for fbdev-generic conversion, as the helper has been replaced. Make documentation for DMA, SHMEM and TTM emulation available. Signed-off-by: Thomas Zimmermann Cc: Jonathan Corbet Reviewed-by: Javier Martinez Canillas

[PATCH v3 29/43] drm/renesas/rz-du: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rz-du. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Biju Das Tested-by: Biju Das Reviewed-by: Javier

[PATCH v3 07/43] fbdev/deferred-io: Provide get_page hook in struct fb_deferred_io

2024-04-19 Thread Thomas Zimmermann
typo in commit message (Javier) Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/core/fb_defio.c | 4 include/linux/fb.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/video/fbdev/core/fb_defio.c b/drivers/video

[PATCH v3 16/43] drm/tiny/ofdrm: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/tiny/ofdrm.c

[PATCH v3 36/43] drm/tiny/ili9486: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9486. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm

[PATCH v3 08/43] drm/fbdev: Add fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
mechanism in commit description (Javier) v2: - use drm_driver_legacy_fb_format() (Geert) Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_fbdev_shmem.c | 316 ++ include/drm

[PATCH v3 42/43] drm/fbdev-generic: Convert to fbdev-ttm

2024-04-19 Thread Thomas Zimmermann
Only TTM-based drivers use fbdev-generic. Rename it to fbdev-ttm and change the symbol infix from _generic_ to _ttm_. Link the source file into TTM helpers, so that it is only build if TTM-based drivers have been selected. Select DRM_TTM_HELPER for loongson. Signed-off-by: Thomas Zimmermann

[PATCH v3 01/43] drm/fbdev-generic: Do not set physical framebuffer address

2024-04-19 Thread Thomas Zimmermann
: - refer to vzalloc() in commit message (Javier) Signed-off-by: Thomas Zimmermann Fixes: a5b44c4adb16 ("drm/fbdev-generic: Always use shadow buffering") Cc: Thomas Zimmermann Cc: Javier Martinez Canillas Cc: Zack Rusin Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: # v6.4+ Reviewed-

[PATCH v3 32/43] drm/tiny/hx8357d: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by hx8357d. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm

[PATCH v3 26/43] drm/mediatek: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ingenic. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Chun-Kuang Hu Cc: Philipp Zabel Reviewed-by: Javier

[PATCH v3 27/43] drm/panel/panel-ilitek-9341: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by panel-ilitek-9341. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Neil Armstrong Cc: Jessica Zhang Cc: Sam

[PATCH v3 39/43] drm/tiny/repaper: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by repaper. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --

[PATCH v3 40/43] drm/tiny/st7586: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by st7586. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/gpu

[PATCH v3 30/43] drm/renesas/shmobile: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by shmobile. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Geert Uytterhoeven Reviewed

[PATCH v3 28/43] drm/renesas/rcar-du: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rcar-du. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Kieran Bingham Reviewed

[PATCH v3 22/43] drm/arm/komeda: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by komeda. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Liviu Dudau Acked-by: Liviu Dudau --- drivers/gpu/drm

[PATCH v3 31/43] drm/rockchip: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rockchip. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Sandy Huang Cc: "Heiko Stübner" Cc

[PATCH v3 38/43] drm/tiny/panel-mipi-dbi: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by panel-mipi-dbi. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Nora

[PATCH v3 23/43] drm/hisilicon/kirin: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by kirin. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Xinliang Liu Cc: Tian Tao Cc: Xinwei Kong Cc: Sumit

[PATCH v3 13/43] drm/solomon: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 4 ++-- 1 file

[PATCH v3 35/43] drm/tiny/ili9341: Use fbdev-dma

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9341. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Kamlesh Gurudasani Reviewed-by: Javier Martinez

[PATCH v3 18/43] drm/udl: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Sean Paul Cc: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/udl/udl_drv.c

[PATCH v3 14/43] drm/tiny/cirrus: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/tiny/cirrus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 12/43] drm/mgag200: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Thomas Zimmermann Cc: Jocelyn Falempe Reviewed-by: Jocelyn Falempe --- drivers/gpu/drm/mgag200

[PATCH v3 11/43] drm/hyperv: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Deepak Rawat Reviewed-by: Deepak Rawat --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v3 02/43] fbdev/deferred-io: Move pageref setup into separate helper

2024-04-19 Thread Thomas Zimmermann
when the pageref is required. v2: - fix typo in commit message (Javier) Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/core/fb_defio.c | 42 - 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/drivers/video

[PATCH v3 06/43] fbdev/deferred-io: Always call get_page() for framebuffer pages

2024-04-19 Thread Thomas Zimmermann
Unconditionally call get_page() after looking up a page from the framebuffer memory. Guarantees that we always hold a reference. This change also refactors the code such that it can support a driver-supplied get_page helper. This will be useful for DRM's fbdev emulation. Signed-off-by: Thomas

[PATCH v3 04/43] fbdev/deferred-io: Test screen_buffer for vmalloc'ed memory

2024-04-19 Thread Thomas Zimmermann
Framebuffers in virtual memory are available via screen_buffer. Use it instead of screen_base and avoid the type casting. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/core/fb_defio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH v3 03/43] fbdev/deferred-io: Clean up pageref on lastclose

2024-04-19 Thread Thomas Zimmermann
the lastclose cleanup. The code instead uses the existing pagerefs in its look-up table. It also avoids using smem_len, which some driver might not set correctly. v2: - fix typos in commit message (Javier) Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video

[PATCH v3 10/43] drm/gud: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- drivers/gpu/drm/gud/gud_drv.c | 4 ++-- 1 file changed, 2 insert

[PATCH v3 09/43] drm/ast: Use fbdev-shmem

2024-04-19 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Thomas Zimmermann Cc: Jocelyn Falempe Reviewed-by: Jocelyn Falempe --- drivers/gpu/drm/ast/ast_drv.c

[PATCH v3 05/43] fbdev/deferred-io: Test smem_start for I/O memory

2024-04-19 Thread Thomas Zimmermann
Test smem_start before looking up pages from its value. Return NULL if it is unset. This will result in a SIGBUS signal. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/core/fb_defio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] i2c: mux: Remove class argument from i2c_mux_add_adapter()

2024-04-19 Thread Thomas Zimmermann
sed device instantiation is a legacy mechanism which shouldn't be used in new code, so we can rule out that this argument may be needed again in the future. Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/bridge/sii902x.c | 2 +- For the DRM file: Reviewed-by: Thomas Zimmermann Best rega

[PULL] drm-misc-fixes

2024-04-18 Thread Thomas Zimmermann
+++- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 44 +++--- 17 files changed, 186 insertions(+), 57 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers

[PULL] drm-misc-fixes

2024-04-18 Thread Thomas Zimmermann
+++- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 44 +++--- 17 files changed, 186 insertions(+), 57 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers

[PULL] drm-misc-fixes

2024-04-18 Thread Thomas Zimmermann
+++- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 44 +++--- 17 files changed, 186 insertions(+), 57 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-17 Thread Thomas Zimmermann
Hi Am 17.04.24 um 10:21 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 14:27 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 11:20 schrieb Jani Nikula: Repurpose drm_edid_are_equal() to be more helpful for its

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-17 Thread Thomas Zimmermann
Hi Am 17.04.24 um 10:21 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 14:27 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 11:20 schrieb Jani Nikula: Repurpose drm_edid_are_equal() to be more helpful for its

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-16 Thread Thomas Zimmermann
Hi Am 16.04.24 um 14:27 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 11:20 schrieb Jani Nikula: Repurpose drm_edid_are_equal() to be more helpful for its single user, and rename drm_edid_eq(). Functionally deduce the length from the blob size

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-16 Thread Thomas Zimmermann
Hi Am 16.04.24 um 14:27 schrieb Jani Nikula: On Tue, 16 Apr 2024, Thomas Zimmermann wrote: Hi Am 16.04.24 um 11:20 schrieb Jani Nikula: Repurpose drm_edid_are_equal() to be more helpful for its single user, and rename drm_edid_eq(). Functionally deduce the length from the blob size

Re: [PATCH v2 21/43] drm/fbdev-dma: Implement damage handling and deferred I/O

2024-04-16 Thread Thomas Zimmermann
Hi Am 16.04.24 um 14:18 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Add support for damage handling and deferred I/O to fbdev-dma. This enables fbdev-dma to support all DMA-memory-based DRM drivers, even such with a dirty callback in their framebuffers. The patch adds

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-16 Thread Thomas Zimmermann
id_eq(drm_edid, old_edid, old_edid_size)) { + connector->epoch_counter++; + drm_dbg_kms(dev, "[CONNECTOR:%d:%s] EDID changed, epoch counter %llu\n", + connector->base.id, connector->name, + connector-&

Re: [REBASE 7/7] drm/edid: make drm_edid_are_equal() more convenient for its single user

2024-04-16 Thread Thomas Zimmermann
id_eq(drm_edid, old_edid, old_edid_size)) { + connector->epoch_counter++; + drm_dbg_kms(dev, "[CONNECTOR:%d:%s] EDID changed, epoch counter %llu\n", + connector->base.id, connector->name, + connector-&

Re: [REBASE 5/7] drm/edid: avoid drm_edid_find_extension() internally

2024-04-16 Thread Thomas Zimmermann
embedded in a DisplayID block */ -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

Re: [REBASE 5/7] drm/edid: avoid drm_edid_find_extension() internally

2024-04-16 Thread Thomas Zimmermann
embedded in a DisplayID block */ -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

Re: [PATCH] drm/fb_dma: Fix parameter name in htmldocs

2024-04-16 Thread Thomas Zimmermann
("drm/fb_dma: Add generic get_scanout_buffer() for drm_panic") Reported-by: Stephen Rothwell Signed-off-by: Jocelyn Falempe Reviewed-by: Thomas Zimmermann Best regards Thomas --- drivers/gpu/drm/drm_fb_dma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 08/43] drm/fbdev: Add fbdev-shmem

2024-04-16 Thread Thomas Zimmermann
Hi Javier Am 16.04.24 um 13:25 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Hello Thomas, Add an fbdev emulation for SHMEM-based memory managers. The code is similar to fbdev-generic, but does not require an addition shadow "additional" I think ? Yes. buffe

Re: [PATCH] drm/gma500: Remove lid code

2024-04-15 Thread Thomas Zimmermann
this fixed: Reviewed-by: Thomas Zimmermann Best regards Thomas Cc: Thomas Zimmermann Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/Makefile | 1 - drivers/gpu/drm/gma500/psb_device.c | 5 +- drivers/gpu/drm/gma500/psb_drv.h| 9 drivers/gpu/drm/gma500/psb_lid

Re: [PATCH v2 28/43] drm/renesas/rcar-du: Use fbdev-dma

2024-04-15 Thread Thomas Zimmermann
Hi Am 12.04.24 um 20:57 schrieb Laurent Pinchart: Hi Thomas, Thank you for the patch. On Wed, Apr 10, 2024 at 03:02:24PM +0200, Thomas Zimmermann wrote: Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rcar-du. Avoids the overhead

Re: [PATCH 00/18] backlight: Constify lcd_ops

2024-04-15 Thread Thomas Zimmermann
Hi for patches 16, 17 and 18: Reviewed-by: Thomas Zimmermann Best regards Thomas Am 14.04.24 um 18:35 schrieb Krzysztof Kozlowski: Hi, Dependencies All further patches depend on the first patch. Therefore everything could go via backlight tree (please ack) or via cross-tree

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
Hi Am 12.04.24 um 10:16 schrieb Patrik Jakobsson: On Fri, Apr 12, 2024 at 10:02 AM Thomas Zimmermann wrote: Hi, the issue of hanging during boot is still resent. Thanks for testing. Then it cannot be that psb_lid_timer_func runs before initialization. The BUG from Enrico hints

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
Am 12.04.24 um 10:02 schrieb Thomas Zimmermann: Hi, the issue of hanging during boot is still resent. 'present' Best regards Thomas Am 12.04.24 um 09:24 schrieb Patrik Jakobsson: Due to changes in the order of initialization the psb_lid_timer_func could get called without the device

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
accessing the opregion. Cc: Enrico Bartky Cc: Thomas Zimmermann Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_lid.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/psb_lid.c b/drivers/gpu/drm/gma500/psb_lid.c index 58a7fe392636

[PULL] drm-misc-fixes

2024-04-11 Thread Thomas Zimmermann
| 8 include/linux/dma-fence.h | 7 +++ 17 files changed, 125 insertions(+), 75 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

[PULL] drm-misc-fixes

2024-04-11 Thread Thomas Zimmermann
| 8 include/linux/dma-fence.h | 7 +++ 17 files changed, 125 insertions(+), 75 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

[PULL] drm-misc-fixes

2024-04-11 Thread Thomas Zimmermann
| 8 include/linux/dma-fence.h | 7 +++ 17 files changed, 125 insertions(+), 75 deletions(-) -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)

[PATCH v2 05/43] fbdev/deferred-io: Test smem_start for I/O memory

2024-04-10 Thread Thomas Zimmermann
Test smem_start before looking up pages from its value. Return NULL if it is unset. This will result in a SIGBUS signal. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/core/fb_defio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 15/43] drm/tiny/gm12u320: Use fbdev-shmem

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Hans de Goede --- drivers/gpu/drm/tiny/gm12u320.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 16/43] drm/tiny/ofdrm: Use fbdev-shmem

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Javier Martinez Canillas --- drivers/gpu/drm/tiny/ofdrm.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 42/43] drm/fbdev-generic: Convert to fbdev-ttm

2024-04-10 Thread Thomas Zimmermann
Only TTM-based drivers use fbdev-generic. Rename it to fbdev-ttm and change the symbol infix from _generic_ to _ttm_. Link the source file into TTM helpers, so that it is only build if TTM-based drivers have been selected. Select DRM_TTM_HELPER for loongson. Signed-off-by: Thomas Zimmermann

[PATCH v2 29/43] drm/renesas/rz-du: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rz-du. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Biju Das Tested-by: Biju Das --- drivers/gpu/drm

[PATCH v2 00/43] drm: Provide fbdev emulation per memory manager

2024-04-10 Thread Thomas Zimmermann
with simpledrm, vc4 and amdgpu. v2: - fb-shmem: use drm_driver_legacy_fb_format() - fix a few typos Thomas Zimmermann (43): drm/fbdev-generic: Do not set physical framebuffer address fbdev/deferred-io: Move pageref setup into separate helper fbdev/deferred-io: Clean up pageref on lastclose fbdev

[PATCH v2 38/43] drm/tiny/panel-mipi-dbi: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by panel-mipi-dbi. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Nora

[PATCH v2 18/43] drm/udl: Use fbdev-shmem

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Sean Paul Cc: Thomas Zimmermann --- drivers/gpu/drm/udl/udl_drv.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 14/43] drm/tiny/cirrus: Use fbdev-shmem

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/cirrus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tiny

[PATCH v2 37/43] drm/tiny/mi0283qt: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by mi0283qt. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Nora

[PATCH v2 28/43] drm/renesas/rcar-du: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rcar-du. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Kieran Bingham --- drivers/gpu

[PATCH v2 31/43] drm/rockchip: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by rockchip. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Sandy Huang Cc: "Heiko Stübner" Cc

[PATCH v2 26/43] drm/mediatek: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ingenic. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Chun-Kuang Hu Cc: Philipp Zabel --- drivers/gpu/drm

[PATCH v2 25/43] drm/ingenic: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ingenic. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm

[PATCH v2 22/43] drm/arm/komeda: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by komeda. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Liviu Dudau Acked-by: Liviu Dudau --- drivers/gpu/drm

[PATCH v2 36/43] drm/tiny/ili9486: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9486. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/ili9486.c | 4 ++-- 1 file changed

[PATCH v2 30/43] drm/renesas/shmobile: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by shmobile. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Geert Uytterhoeven --- drivers

[PATCH v2 32/43] drm/tiny/hx8357d: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by hx8357d. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/hx8357d.c | 4 ++-- 1 file changed

[PATCH v2 40/43] drm/tiny/st7586: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by st7586. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/gpu

[PATCH v2 24/43] drm/imx/lcdc: Use fbdev-dma

2024-04-10 Thread Thomas Zimmermann
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by lcdc. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team

[PATCH v2 43/43] drm/fbdev: Clean up fbdev documentation

2024-04-10 Thread Thomas Zimmermann
Rewrite some docs that are not up-to-date any longer. Remove the TODO item for fbdev-generic conversion, as the helper has been replaced. Make documentation for DMA, SHMEM and TTM emulation available. Signed-off-by: Thomas Zimmermann Cc: Jonathan Corbet --- Documentation/gpu/drm-kms

  1   2   3   4   5   6   7   8   9   10   >