Re: [PATCH v2 56/86] drm/mgag200: Run DRM default client setup

2024-08-21 Thread Jocelyn Falempe
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Thanks for this whole series. Reviewed-by: Jocelyn Falempe v

Re: [PATCH v2 51/86] drm/ast: Run DRM default client setup

2024-08-21 Thread Jocelyn Falempe
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The ast driver specifies a preferred color mode of 32. As this is the default

Re: [PATCH 00/17] Process Isolation Support

2024-08-21 Thread Christian König
Reviewed-by: Christian König for patches #1, #3-#5, Acked-by: Christian König for patches #6, #8-#10, #12, #13, #14, #17. Some nit picks in patches #2, use of // for comments in patch #11 and question on patch #15/#16 Really big bug in patch #7, that needs to be addressed. Regards, Chri

Re: [PATCH 15/17] drm/amdgpu/gfx9: Apply Isolation Enforcement to GFX & Compute rings

2024-08-21 Thread Christian König
Am 15.08.24 um 02:04 schrieb Alex Deucher: From: Srinivasan Shanmugam This commit applies isolation enforcement to the GFX and Compute rings in the gfx_v9_0 module. The commit sets `amdgpu_gfx_enforce_isolation_ring_begin_use` and `amdgpu_gfx_enforce_isolation_ring_end_use` as the functions to

Re: [PATCH 07/17] drm/amdgpu: Add sysfs interface for running cleaner shader

2024-08-21 Thread Christian König
Am 15.08.24 um 02:04 schrieb Alex Deucher: From: Srinivasan Shanmugam This patch adds a new sysfs interface for running the cleaner shader on AMD GPUs. The cleaner shader is used to clear GPU memory before it's reused, which can help prevent data leakage between different processes. The new sy

Re: [PATCH 02/17] drm/amdgpu: Add infrastructure for Cleaner Shader feature

2024-08-21 Thread Christian König
Am 15.08.24 um 02:04 schrieb Alex Deucher: From: Srinivasan Shanmugam The cleaner shader is used by the CP firmware to clean LDS and GPRs between processes on the CUs. This adds an internal API for GFX IP code to allocate and initialize the cleaner shader. Cc: Christian König Cc: Alex Deuche

[PATCH] drm/amd/pm: Add support for new P2S table revision

2024-08-21 Thread Lijo Lazar
Add p2s table support for a new revision of SMUv13.0.6. Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang Reviewed-by: Asad Kamal --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/s

[PATCH] drm/amd/pm: Drop unsupported features on smu v14_0_2

2024-08-21 Thread Candice Li
Drop unsupported features on smu v14_0_2. Signed-off-by: Candice Li Reviewed-by: Yang Wang --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 47 --- 1 file changed, 47 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/sws

[PATCH] drm/amdgpu: Surface svm_attr_gobm, a RW module parameter

2024-08-21 Thread Ramesh Errabolu
KFD's design of unified memory (UM) does not allow users to configure the size of buffer used in migrating buffer either from Sysmem to VRAM or vice versa. This patch remedies this gap, albeit at a coarse level, for workloads that deal with unregistered memory Signed-off-by: Ramesh Errabolu ---

Re: [PATCH 2/2] drm/amdgpu/gfx9: put queue resets behind a debug option

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 5:59 PM Felix Kuehling wrote: > > > On 2024-08-20 16:25, Alex Deucher wrote: > > Pending extended validation. > > > > Signed-off-by: Alex Deucher > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 4 > > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

[PATCH 13/16] drm/amd/display: add improvements for text display and HDR DWM and MPO

2024-08-21 Thread Zaeem Mohamed
From: Samson Tam [Why] Tune settings for improved text display. Handle differences between DWM and MPO in HDR path. [How] Update sharpener LBA table. Use HDR multiplier to calculate scalar matrix coefficients for HDR RGB MPO path. Update unit tests. Reviewed-by: Jun Lei Signed-off-by: Samson

[PATCH 15/16] drm/amd/display: 3.2.298

2024-08-21 Thread Zaeem Mohamed
From: Aric Cyr This version brings along the following fixes: - Fix MS/MP mismatches in dml21 for dcn401 - Resolved Coverity issues - Add back quality EASF and ISHARP and dc dependency changes - Add sharpness support for windowed YUV420 video - Add improvements for text display and HDR DWM and MP

[PATCH 16/16] drm/amd/display: Add DSC Debug Log

2024-08-21 Thread Zaeem Mohamed
From: Fangzhi Zuo Add DSC log in each critical routines to facilitate debugging. Reviewed-by: Rodrigo Siqueira Signed-off-by: Fangzhi Zuo Signed-off-by: Zaeem Mohamed --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 +- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 18 +-- .../disp

[PATCH 14/16] drm/amd/display: add sharpness support for windowed YUV420 video

2024-08-21 Thread Zaeem Mohamed
From: Samson Tam [Why] Previous only applied sharpness for fullscreen YUV420 video. [How] Remove fullscrene restriction and apply sharpness for windowed YUV420 video as well. Reviewed-by: Jun Lei Signed-off-by: Samson Tam Signed-off-by: Zaeem Mohamed --- drivers/gpu/drm/amd/display/dc/spl/

[PATCH 12/16] drm/amd/display: Add Replay Low Refresh Rate parameters in dc type.

2024-08-21 Thread Zaeem Mohamed
From: Dennis Chan Why: To supported Low Refresh Rate panel for Replay Feature, Adding some parameters to record Low Refresh Rate information. Reviewed-by: Robin Chen Signed-off-by: Dennis Chan Signed-off-by: Zaeem Mohamed --- drivers/gpu/drm/amd/display/dc/dc_types.h | 19 +++

[PATCH 06/16] drm/amd/display: do not set traslate_by_source for DCN401 cursor

2024-08-21 Thread Zaeem Mohamed
From: Aurabindo Pillai translate_by_source need not be set for DCN401 onwards since cursor cursor composition comes after scaler in the hardware pipeline. Hence offset calculation has been reworked, and this setting is not necessary to be enabled anymore. Reviewed-by: Rodrigo Siqueira Signed-of

[PATCH 10/16] drm/amd/display: Notify DMCUB of D0/D3 state

2024-08-21 Thread Zaeem Mohamed
From: Nicholas Kazlauskas [Why] We want to avoid arming the HPD timer in firmware when preparing for S0i3 entry when DC is considered in D3. [How] Notify DMCUB of the power state transitions so it can decide to arm the HPD timer for idle in DCN35 only in D0. Reviewed-by: Nicholas Kazlauskas Si

[PATCH 09/16] drm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination

2024-08-21 Thread Zaeem Mohamed
From: Fangzhi Zuo Synaptics Cascaded Panamera topology needs to unconditionally acquire root aux for dsc decoding. Reviewed-by: Roman Li Signed-off-by: Fangzhi Zuo Signed-off-by: Zaeem Mohamed --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion

[PATCH 08/16] drm/amd/display: Retry Replay residency

2024-08-21 Thread Zaeem Mohamed
From: ChunTao Tso [Why] Because sometime DMUB GPINT will time out, it will cause we return 0 as residency number. [How] Retry to avoid this happened. Reviewed-by: Robin Chen Signed-off-by: ChunTao Tso Signed-off-by: Zaeem Mohamed --- .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 18

[PATCH 07/16] drm/amd/display: Allocate DCN35 clock table transfer buffers in GART

2024-08-21 Thread Zaeem Mohamed
From: Nicholas Kazlauskas [Why] Request from PMFW to use GART for clock table transfer tables as framebuffer is being deprecated on APU. [How] Switch over to GART via the allocation flag. Reviewed-by: Sung joon Kim Signed-off-by: Nicholas Kazlauskas Signed-off-by: Zaeem Mohamed --- .../gpu/

[PATCH 03/16] drm/amd/display: Wait for all pending cleared before full update

2024-08-21 Thread Zaeem Mohamed
From: Alvin Lee [Description] Before every full update we must wait for all pending updates to be cleared - this is particularly important for minimal transitions because if we don't wait for pending cleared, it will be as if there was no minimal transition at all. In OTG we must read 3 different

[PATCH 05/16] drm/amd/display: Resolve Coverity Issues

2024-08-21 Thread Zaeem Mohamed
From: Daniel Sa [WHY] Remove coverity issues that were originally ignored. [HOW] Ran coverity locally on driver, used output report to find existing coverity issues, resolved them Reviewed-by: Nicholas Choi Signed-off-by: Daniel Sa Signed-off-by: Zaeem Mohamed --- .../display/dc/dml2/dml21/

[PATCH 04/16] drm/amd/display: Fix MS/MP mismatches in dml21 for dcn401

2024-08-21 Thread Zaeem Mohamed
From: Dillon Varone [WHY] Prefetch calculations did not guarantee that bandwidth required in mode support was less than mode programming which can cause failures. [HOW] Fix bandwidth calculations to assume fixed times for OTO schedule, and choose which schedule to use based on time to fetch pixe

[PATCH 02/16] drm/amd/display: guard write a 0 post_divider value to HW

2024-08-21 Thread Zaeem Mohamed
From: Ahmed Muhammad [why] post_divider_value should not be 0 Reviewed-by: Charlene Liu Signed-off-by: Ahmed Muhammad Signed-off-by: Zaeem Mohamed --- drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

[PATCH 01/16] drm/amd/display: Don't skip clock updates in overclocking

2024-08-21 Thread Zaeem Mohamed
From: Alvin Lee [Description] Skipping clock updates is not a hard requirement for overclocking and only an optimization. Remove the skip as this can cause issues for FAMS transitions during the overclock sequence. If FAMS is enabled we must disable UCLK switch on any full update (which requires

[PATCH 00/16] DC Patches August 19, 2024

2024-08-21 Thread Zaeem Mohamed
This DC patchset brings improvements in multiple areas. In summary, we have: * Fix MS/MP mismatches in dml21 for dcn401 * Resolved Coverity issues * Add back quality EASF and ISHARP and dc dependency changes * Add sharpness support for windowed YUV420 video * Add improvements for text display and

[PATCH v6] drm/amdkfd: Change kfd/svm page fault drain handling

2024-08-21 Thread Xiaogang . Chen
From: Xiaogang Chen When app unmap vm ranges(munmap) kfd/svm starts drain pending page fault and not handle any incoming pages fault of this process until a deferred work item got executed by default system wq. The time period of "not handle page fault" can be long and is unpredicable. That is ad

Re: [PATCH 2/2] drm/amdgpu/gfx9: put queue resets behind a debug option

2024-08-21 Thread Felix Kuehling
On 2024-08-20 16:25, Alex Deucher wrote: Pending extended validation. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 4 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 6 ++ 3 fi

RE: [PATCH 00/16] DC Patches August 19, 2024

2024-08-21 Thread Mohamed, Zaeem
[AMD Official Use Only - AMD Internal Distribution Only] Ignore this series of emails. Command failed. Zaeem -Original Message- From: Mohamed, Zaeem Sent: Wednesday, August 21, 2024 5:52 PM To: amd-gfx@lists.freedesktop.org Cc: Wentland, Harry ; Li, Sun peng (Leo) ; Siqueira, Rodrigo ;

[PATCH 01/16] drm/amd/display: Don't skip clock updates in overclocking

2024-08-21 Thread Zaeem Mohamed
From: Alvin Lee [Description] Skipping clock updates is not a hard requirement for overclocking and only an optimization. Remove the skip as this can cause issues for FAMS transitions during the overclock sequence. If FAMS is enabled we must disable UCLK switch on any full update (which requires

[PATCH 00/16] DC Patches August 19, 2024

2024-08-21 Thread Zaeem Mohamed
This DC patchset brings improvements in multiple areas. In summary, we have: * Fix MS/MP mismatches in dml21 for dcn401 * Resolved Coverity issues * Add back quality EASF and ISHARP and dc dependency changes * Add sharpness support for windowed YUV420 video * Add improvements for text display and

Re: [PATCH] drm/amdkfd: fix missed queue reset on queue destroy

2024-08-21 Thread Felix Kuehling
On 2024-08-21 17:17, Jonathan Kim wrote: If a queue is being destroyed but causes a HWS hang on removal, the KFD may issue an unnecessary gpu reset if the destroyed queue can be fixed by a queue reset. This is because the queue has been removed from the KFD's queue list prior to the preemption

[PATCH] drm/amdkfd: fix missed queue reset on queue destroy

2024-08-21 Thread Jonathan Kim
If a queue is being destroyed but causes a HWS hang on removal, the KFD may issue an unnecessary gpu reset if the destroyed queue can be fixed by a queue reset. This is because the queue has been removed from the KFD's queue list prior to the preemption action on destroy so the reset call will fai

Re: [PATCH v5 4/4] drm: panel-backlight-quirks: Add Framework 13 glossy and 2.8k panels

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: From: "Dustin L. Howett" I have tested these panels on the Framework Laptop 13 AMD with firmware revision 3.05 (latest at time of submission). Signed-off-by: Dustin L. Howett When you send someone else's patch you need to add your own S-o-b as we

Re: [PATCH v5 3/4] drm: panel-backlight-quirks: Add Framework 13 matte panel

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: The value of "min_input_signal" returned from ATIF on a Framework AMD 13 is "12". This leads to a fairly bright minimum display backlight. Add a quirk to override that the minimum backlight PWM to "0" which leads to a much lower minimum brightness, whi

Re: [PATCH v5 2/4] drm/amd/display: Add support for minimum backlight quirk

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: Not all platforms provide correct PWM backlight capabilities through ATIF. I don't think correct is an accurate term here. How about 'optimial'? Use the generic drm panel minimum backlight quirk infrastructure to override the capabilities where nec

Re: [PATCH v5 1/4] drm: Add panel backlight quirks

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: Panels using a PWM-controlled backlight source do not have a standard way to communicate their valid PWM ranges. On x86 the ranges are read from ACPI through driver-specific tables. The built-in ranges are not necessarily correct, or may grow stale if a

Re: [PATCH 2/2] drm/amdgpu: Use drm_print_memory_stats helper from fdinfo

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 4:43 PM Alex Deucher wrote: > > On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > > > From: Tvrtko Ursulin > > > > Convert fdinfo memory stats to use the common drm_print_memory_stats > > helper. > > > > This achieves alignment with the common keys as documented i

Re: [PATCH 1/2] Documentation/gpu: Document the situation with unqualified drm-memory-

2024-08-21 Thread Alex Deucher
On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > Currently it is not well defined what is drm-memory- compared to other > categories. > > In practice the only driver which emits these keys is amdgpu and in them > exposes the current resident buffer object memory

Re: [PATCH 1/3] drm/amdgpu: re-work VM syncing

2024-08-21 Thread Felix Kuehling
On 2024-08-21 08:03, Christian König wrote: Rework how VM operations synchronize to submissions. Provide an amdgpu_sync container to the backends instead of an reservation object and fill in the amdgpu_sync object in the higher layers of the code. No intended functional change, just prepares f

Re: [PATCH v5 0/4] drm: Minimum backlight overrides and implementation for amdgpu

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: The value of "min_input_signal" returned from ATIF on a Framework AMD 13 is "12". This leads to a fairly bright minimum display backlight. Introduce a quirk to override "min_input_signal" to "0" which leads to a much lower minimum brightness, which is

Re: [PATCH 2/2] drm/amdgpu: Use drm_print_memory_stats helper from fdinfo

2024-08-21 Thread Alex Deucher
On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > Convert fdinfo memory stats to use the common drm_print_memory_stats > helper. > > This achieves alignment with the common keys as documented in > drm-usage-stats.rst, adding specifically drm-total- key the driver

Re: [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static

2024-08-21 Thread Alex Deucher
Applied 1-4. Alex On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan wrote: > > The sparse tool complains as follows: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c:6853:56: > warning: > symbol 'core_dcn4_g6_temp_read_blackout_table' was not declar

Re: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan wrote: > > The sparse tool complains as follows: > > drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:22: > warning: > symbol 'dcn35_fpga_funcs' was not declared. Should it be static? > > This symbol is not used outsid

Re: [PATCH RESEND] drm/amd/display: avoid using null object of framebuffer

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 3:45 AM Ma Ke wrote: > > Instead of using state->fb->obj[0] directly, get object from framebuffer > by calling drm_gem_fb_get_obj() and return error code when object is > null to avoid using null object of framebuffer. > > Cc: sta...@vger.kernel.org > Fixes: 5d945cbcd4b1 ("

Re: [PATCH 2/3] drm/amdgpu: sync to KFD fences before clearing PTEs

2024-08-21 Thread Felix Kuehling
On 2024-08-21 08:03, Christian König wrote: This patch tries to solve the basic problem we also need to sync to the KFD fences of the BO because otherwise it can be that we clear PTEs while the KFD queues are still running. This is going to trigger a lot of phantom KFD evictions and will tank

RE: [PATCH 12/13] drm/amd/display: Fix a typo in revert commit

2024-08-21 Thread Zuo, Jerry
[Public] Hi Jiri: Please apply above two patches on top of latest https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next, and give a sanity test on 4k60 over Lenovo HDMI output. The patch posted in the gitlab forum has been broken down to below three patches:

[PATCH V3] video/aperture: optionally match the device in sysfb_disable()

2024-08-21 Thread Alex Deucher
In aperture_remove_conflicting_pci_devices(), we currently only call sysfb_disable() on vga class devices. This leads to the following problem when the pimary device is not VGA compatible: 1. A PCI device with a non-VGA class is the boot display 2. That device is probed first and it is not a VGA

Re: [PATCH 1/3] drm/amdgpu: re-work VM syncing

2024-08-21 Thread Friedrich Vock
On 21.08.24 14:03, Christian König wrote: Rework how VM operations synchronize to submissions. Provide an amdgpu_sync container to the backends instead of an reservation object and fill in the amdgpu_sync object in the higher layers of the code. No intended functional change, just prepares for u

[pull] amdgpu drm-fixes-6.11

2024-08-21 Thread Alex Deucher
Hi Dave, Sima, Fixes for 6.11. The following changes since commit fee9d135e2fd5963a7f466cd1ef2060731a1ab29: Merge tag 'mediatek-drm-fixes-20240805' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes (2024-08-16 13:16:47 +1000) are available in the Git repos

Re: [PATCH v2 47/86] drm/vc4: Run DRM default client setup

2024-08-21 Thread Dave Stevenson
On Wed, 21 Aug 2024 at 14:04, Thomas Zimmermann wrote: > > Call drm_client_setup_with_fourcc() to run the kernel's default client > setup for DRM. Set fbdev_probe in struct drm_driver, so that the client > setup can start the common fbdev client. > > v2: > - use drm_client_setup_with_fourcc() > >

Re: [PATCH v4 2/2] drm/amdgpu: Do core dump immediately when job tmo

2024-08-21 Thread Deucher, Alexander
[AMD Official Use Only - AMD Internal Distribution Only] Series is: Reviewed-by: Alex Deucher From: Huang, Trigger Sent: Wednesday, August 21, 2024 4:38 AM To: amd-gfx@lists.freedesktop.org Cc: Khatri, Sunil ; Deucher, Alexander ; Huang, Trigger Subject: [PATC

Re: [PATCH v2 27/86] drm/meson: Run DRM default client setup

2024-08-21 Thread Neil Armstrong
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The meson driver specifies a preferred color mode of 32. As this is the defaul

[PATCH v2 83/86] drm/{i915,xe}: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup_with_color_mode() to run the kernel's default client setup f

[PATCH v2 66/86] drm/bochs: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The bochs driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v2 60/86] drm/udl: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Sean Paul Cc: Thomas Zimmermann --- drivers/gpu/drm/udl/udl_drv.c |

[PATCH v2 84/86] drm/omapdrm: Remove struct drm_fb_helper from struct omap_fbdev.

2024-08-21 Thread Thomas Zimmermann
Store instances of drm_fb_helper and struct omap_fbdev separately. This will allow omapdrm to use the common fbdev client, which allocates its own instance of struct drm_fb_helper. There is at most one instance of each per DRM device, so both can be referenced directly from the omap and DRM device

[PATCH v2 65/86] drm/amdgpu: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The amdgpu driver specifies a preferred color mode depending on the available video memory, with a default of 32. Adapt this f

[PATCH v2 79/86] drm/tegra: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 71/86] drm/vboxvideo: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The vboxvideo driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out

[PATCH v2 63/86] drm/fbdev-shmem: Remove obsolete setup function

2024-08-21 Thread Thomas Zimmermann
The old setup function drm_fbdev_shmem_setup() is unused. Remove it and its internal callbacks. New drivers should call drm_client_setup() instead. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fbdev_shmem.c | 120 +- include/drm/drm_fbdev_shmem.h | 6

[PATCH v2 86/86] drm/fb-helper: Remove struct drm_fb_helper.fb_probe

2024-08-21 Thread Thomas Zimmermann
The callback fb_probe in struct drm_fb_helper is unused. Remove it. New drivers should set struct drm_driver.fbdev_probe instead and call drm_client_setup() to instantiate in-kernel DRM clients. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 8 include/drm/drm_f

[PATCH v2 74/86] drm/armada: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 72/86] drm/vmwgfx: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Zack Rusin Cc: Broadcom internal kernel review list --- drivers/gpu/drm/vmwgfx/vmwgfx

[PATCH v2 56/86] drm/mgag200: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Thomas Zimmermann

[PATCH v2 85/86] drm/omapdrm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 80/86] drm/i915: Remove struct drm_fb_helper from struct intel_fbdev

2024-08-21 Thread Thomas Zimmermann
Store instances of drm_fb_helper and struct intel_fbdev separately. This will allow i915 to use the common fbdev client, which allocates its own instance of struct drm_fb_helper. There is at most one instance of each per DRM device, so both can be referenced directly from the i915 and DRM device s

[PATCH v2 54/86] drm/gud: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- drivers/gpu/drm/gud/gud_drv.c | 4 +++-

[PATCH v2 73/86] drm/fbdev-ttm: Remove obsolete setup function

2024-08-21 Thread Thomas Zimmermann
The old setup function drm_fbdev_ttm_setup() is unused. Remove it and its internal callbacks. New drivers should call drm_client_setup() instead. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fbdev_ttm.c | 119 include/drm/drm_fbdev_ttm.h | 6 --

[PATCH v2 81/86] drm/i915: Move custom restore code into separate callback

2024-08-21 Thread Thomas Zimmermann
i915's fbdev contains additional code for restoring the client that cannot be ported to the common fbdev client. Introduce the callback struct drm_fb_helper.fb_restore and implement it for i915. The fbdev helpers invoke the callback after restoring the fbdev client. Signed-off-by: Thomas Zimmerman

[PATCH v2 59/86] drm/solomon: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The solomon driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out en

[PATCH v2 57/86] drm/ofdrm: Use DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas

[PATCH v2 70/86] drm/qxl: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The qxl driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entire

[PATCH v2 82/86] drm/i915: Move custom hotplug code into separate callback

2024-08-21 Thread Thomas Zimmermann
i915's fbdev contains additional code for hotplugging a display that cannot be ported to the common fbdev client. Introduce the callback struct drm_fb_helper.fb_hotplug and implement it for i915. The fbdev helpers invoke the callback before handing the hotplug event. Signed-off-by: Thomas Zimmerma

[PATCH v2 51/86] drm/ast: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The ast driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entire

[PATCH v2 75/86] drm/exynos-drm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 77/86] drm/msm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 78/86] drm/radeon: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 50/86] drm/fbdev-shmem: Support struct drm_driver.fbdev_probe

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and reimplement the old fb_probe callback on top of it. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. This change allows the common fbdev client to run on top of SHME

[PATCH v2 68/86] drm/loongson: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The loongson driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out e

[PATCH v2 76/86] drm/gma500: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbde

[PATCH v2 64/86] drm/fbdev-ttm: Support struct drm_driver.fbdev_probe

2024-08-21 Thread Thomas Zimmermann
Rework fbdev probing to support fbdev_probe in struct drm_driver and reimplement the old fb_probe callback on top of it. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. This change allows the common fbdev client to run on top of TTM-

[PATCH v2 69/86] drm/nouveau: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The nouveau driver specifies a preferred color mode depending on the available video memory, with a default of 32. Adapt this

[PATCH v2 67/86] drm/hisilicon/hibmc: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The hibmc driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v2 58/86] drm/simpledrm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas

[PATCH v2 38/86] drm/rockchip: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Sandy Huang Cc: "Heiko Stübner" Cc: Andy Yan Acked-by: Heiko Stuebner --- drivers/g

[PATCH v2 39/86] drm/sti: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The sti driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entire

[PATCH v2 48/86] drm/xlnx: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Tomi Valkein

[PATCH v2 61/86] drm/virtgpu: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The virtgpu driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out en

[PATCH v2 53/86] drm/gm12u320: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Hans de Goede --- drivers/gpu/drm/tiny/gm12u320.c | 4 +++- 1 file changed, 3 insertio

[PATCH v2 33/86] drm/pl111: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_color_mode() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/pl111/pl111_drv.c | 4 +++- 1 file changed, 3 insertion

[PATCH v2 62/86] drm/vkms: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Rodrigo Siqueira Cc: Melissa Wen Cc: "Maíra Canal" Cc: Haneen Mohammed --- drivers/

[PATCH v2 55/86] drm/hyperv_drm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Deepak Rawat Reviewed-by: Deepak Rawat --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c |

[PATCH v2 46/86] drm/tve200: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc: Linus Walleij Acked-by: Linus Wal

[PATCH v2 40/86] drm/stm: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with-fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc: Yannick Fertre Cc: Raphael Gallai

[PATCH v2 41/86] drm/sun4i: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The sun4i driver specifies as preferred color mode of 32. As this is the default if no format has been given, leave it out ent

[PATCH v2 52/86] drm/cirrus: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The cirrus driver requests the same client pixel format as the value stored in struct drm_mode_config.preferred_depth. The fbd

[PATCH v2 47/86] drm/vc4: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc: Maxime Ripard Cc: Dave Stevenson

[PATCH v2 32/86] drm/panel-mipi-dbi: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- drivers/gpu/drm/tiny/panel-mipi-dbi.c |

[PATCH v2 43/86] drm/tilcdc: Run DRM default client setup

2024-08-21 Thread Thomas Zimmermann
Call drm_client_setup_with_color_mode() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Signed-off-by: Thomas Zimmermann Cc: Jyri Sarha Cc: Tomi Valkeinen --- drivers/gpu/drm/tilcdc/tilcdc_drv.c

  1   2   >