Re: [PATCH] drm/amd/pm: update workload mask after the setting

2024-09-24 Thread Alex Deucher
On Fri, Sep 20, 2024 at 7:13 AM Kenneth Feng wrote: > > update workload mask after the setting, to fix: > https://gitlab.freedesktop.org/drm/amd/-/issues/3625 > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3625 Acked-by: Alex Deucher > Signed-off-by: Kenneth Feng > --- > drivers/g

Re: [PATCH v2] drm/amdgpu: add dce6 drm_panic support

2024-09-24 Thread Alex Deucher
On Fri, Sep 20, 2024 at 11:36 AM Jocelyn Falempe wrote: > > On 17/09/2024 15:21, Alex Deucher wrote: > > On Mon, Aug 12, 2024 at 2:10 AM Lu Yao wrote: > >> > >> Add support for the drm_panic module, which displays a pretty user > >> friendly message on the screen when a Linux kernel panic occurs.

Re: [PATCH v2 4/4] drm/amdgpu: Add supported partition mode node

2024-09-24 Thread Lazar, Lijo
On 9/24/2024 7:45 PM, Asad Kamal wrote: > Add sysfs node to show supoorted partition modes across all NPS modes > > Signed-off-by: Asad Kamal > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 48 +++-- > 1 file changed, 45 insertions(+), 3 deletions(-) > > diff --git a/dr

[PATCH v5 32/80] drm/pl111: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Acked-by: Javier Martinez Canillas ---

[PATCH v5 34/80] drm/renesas/rz-du: Run DRM default client setup

2024-09-24 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 rz-du driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v5 44/80] drm/st7735r: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/

Re: [PATCH 5/5] drm/amdgpu: Remove unused amdgpu_i2c functions

2024-09-24 Thread Alex Deucher
Applied the series. Thanks! Alex On Sun, Sep 22, 2024 at 9:43 PM wrote: > > From: "Dr. David Alan Gilbert" > > amdgpu_i2c_add and amdgpu_i2c_init were added in 2015's commit > d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)") > but never used. > > Remove them. > > Signed-off-by: Dr. David Alan

[PATCH 1/2] drm/amdgpu/discovery: add ISP discovery entries for old APUs

2024-09-24 Thread Zhu Lingshan
From: Alex Deucher Raven1/2 and Picasso have ISP 2.0.0, however their ISP blocks are not in the IP discovery table yet. This commit fixes this issue by adding new ISP entries for Raven and Picasso in the IP discovery table. Signed-off-by: Alex Deucher Signed-off-by: Zhu Lingshan --- drivers/

[PATCH 2/2] drm/amdgpu: init saw registers for mmhub v1.0

2024-09-24 Thread Zhu Lingshan
This commits init registers in the Stand Along Walker for mmhub v1.0, to support ISP use cases. Signed-off-by: Zhu Lingshan Reported-and-Tested-by: Du Bin --- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 49 +++ .../include/asic_reg/mmhub/mmhub_1_0_offset.h | 23 + 2

[PATCH 0/2] Init SAW for mmhub 1.0

2024-09-24 Thread Zhu Lingshan
This series intends to initialize the Stand Along Walker for mmhub 1.0, to support the Image Signal Processor Plese help review. Thanks Zhu Lingshan Alex Deucher (1): drm/amdgpu/discovery: add ISP discovery entries for old APUs Zhu Lingshan (1): drm/amdgpu: init saw registers for mmhub v1.0

[PATCH 2/2] drm/amdgpu: update the handle ptr in print_ip_state

2024-09-24 Thread Sunil Khatri
Update the ptr handle to amdgpu_ip_block ptr in all the functions affected. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 12 +--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 4 ++--

[PATCH 1/2] drm/amdgpu: update the handle ptr in dump_ip_state

2024-09-24 Thread Sunil Khatri
Update the ptr handle to amdgpu_ip_block ptr in all the functions. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c| 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Re: [PATCH 3/3] drm/amdgpu: Remove the while loop from amdgpu_job_prepare_job

2024-09-24 Thread Christian König
Am 24.09.24 um 11:51 schrieb Tvrtko Ursulin: From: Tvrtko Ursulin While loop makes it sound like amdgpu_vmid_grab() potentially needs to be called multiple times to produce a fence, while in reality all code paths either return an error, assign a valid job->vmid or assign a vmid which will be v

Re: [PATCH] Staging: drivers/gpu/drm/amd/amdgpu: Fix null pointer deference in amdkfd_fence_get_timeline_name

2024-09-24 Thread Dipendra Khadka
Hi Christian, On Mon, 23 Sept 2024 at 18:57, Christian König wrote: > > Am 21.09.24 um 06:25 schrieb Dipendra Khadka: > > On Sat, 21 Sept 2024 at 00:43, Christian König > > wrote: > >> Am 20.09.24 um 18:31 schrieb Dipendra Khadka: > >>> On Fri, 20 Sept 2024 at 16:01, Christian König > >>> wro

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Dmitry Osipenko
On 9/20/24 12:06, Pierre-Eric Pelloux-Prayer wrote: > Giving the opportunity to userspace to associate a free-form > name with a drm_file struct is helpful for tracking and debugging. > > This is similar to the existing DMA_BUF_SET_NAME ioctl. > > Access to name is protected by a mutex, and the '

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Dmitry Osipenko
On 9/23/24 21:09, Dmitry Osipenko wrote: >> Sure, I can do that if others prefer this way too. > Note that in the other email I suggested to use strndup_user(), that > will remove the name-length limitation, but then the name var will > remain to be a string pointer. To me best option would be to r

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Dmitry Osipenko
On 9/23/24 13:28, Dmitry Osipenko wrote: ... >> /** >> diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h >> index 16122819edfe..f5e92e4f909b 100644 >> --- a/include/uapi/drm/drm.h >> +++ b/include/uapi/drm/drm.h >> @@ -1024,6 +1024,13 @@ struct drm_crtc_queue_sequence { >> __u64 us

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Tvrtko Ursulin
On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: Giving the opportunity to userspace to associate a free-form name with a drm_file struct is helpful for tracking and debugging. This is similar to the existing DMA_BUF_SET_NAME ioctl. Access to name is protected by a mutex, and the 'clien

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
Ping Christian and Philipp - reasonably happy with v2? I think it's the only unreviewed patch from the series. Regards, Tvrtko On 16/09/2024 18:30, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Having removed one re-lock cycle on the entity->lock in a patch titled "drm/sched: Optimise drm_s

Re: [PATCH v3 4/6] drm/amdgpu: alloc and init vm::task_info from first submit

2024-09-24 Thread Tvrtko Ursulin
On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: This will allow to use flexible array to store the process name and other information. This also means that process name will be determined once and for all, instead of at each submit. But the pid and others can still change? By design?

Re: [PATCH v3 3/6] drm/amdgpu: delay the use of amdgpu_vm_set_task_info

2024-09-24 Thread Tvrtko Ursulin
On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: At this point the vm is locked so we safely modify it without risk of concurrent access. To which particular lock this is referring to and does this imply previous placement was unsafe? Regards, Tvrtko Signed-off-by: Pierre-Eric Pel

radeon ARUBA NULL pointer dereference

2024-09-24 Thread Arthur Marsh
Using current Linus git head kernel, I was able to save the dmesg output: [ 17.218724] [drm] radeon kernel modesetting enabled. [ 17.218778] radeon :00:01.0: vgaarb: deactivate vga console [ 17.219509] Console: switching to colour dummy device 80x25 [ 17.219700] [drm] initializing kern

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Dmitry Osipenko
On 9/23/24 19:29, Pierre-Eric Pelloux-Prayer wrote: ... >>> @@ -78,12 +78,13 @@ static int drm_clients_info(struct seq_file *m, >>> void *data) >>>   kuid_t uid; >>>     seq_printf(m, >>> -   "%20s %5s %3s master a %5s %10s\n", >>> +   "%20s %5s %3s master a %5s %10s %20s\n"

Re: radeon ARUBA NULL pointer dereference

2024-09-24 Thread Thomas Zimmermann
(cc: DMA and x86 folks) Hi Am 24.09.24 um 04:08 schrieb Arthur Marsh: Using current Linus git head kernel, I was able to save the dmesg output: [ 17.218724] [drm] radeon kernel modesetting enabled. [ 17.218778] radeon :00:01.0: vgaarb: deactivate vga console [ 17.219509] Console: swi

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Tvrtko Ursulin
On 24/09/2024 09:22, Pierre-Eric Pelloux-Prayer wrote: Le 23/09/2024 à 12:06, Tvrtko Ursulin a écrit : On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: Giving the opportunity to userspace to associate a free-form name with a drm_file struct is helpful for tracking and debugging. Thi

Re: [PATCH v3 3/6] drm/amdgpu: delay the use of amdgpu_vm_set_task_info

2024-09-24 Thread Tvrtko Ursulin
On 24/09/2024 09:23, Christian König wrote: Am 23.09.24 um 12:25 schrieb Tvrtko Ursulin: On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: At this point the vm is locked so we safely modify it without risk of concurrent access. To which particular lock this is referring to and does th

Re: [PATCH v5 42/80] drm/tilcdc: Run DRM default client setup

2024-09-24 Thread jyri . sarha
September 24, 2024 at 10:12 AM, "Thomas Zimmermann" mailto:tzimmerm...@suse.de?to=%22Thomas%20Zimmermann%22%20%3Ctzimmermann%40suse.de%3E > wrote: > > 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 c

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
On 24/09/2024 09:20, Christian König wrote: Am 16.09.24 um 19:30 schrieb Tvrtko Ursulin: From: Tvrtko Ursulin Having removed one re-lock cycle on the entity->lock in a patch titled "drm/sched: Optimise drm_sched_entity_push_job", with only a tiny bit larger refactoring we can do the same opt

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
On 24/09/2024 10:45, Tvrtko Ursulin wrote: On 24/09/2024 09:20, Christian König wrote: Am 16.09.24 um 19:30 schrieb Tvrtko Ursulin: From: Tvrtko Ursulin Having removed one re-lock cycle on the entity->lock in a patch titled "drm/sched: Optimise drm_sched_entity_push_job", with only a tiny

Re: [PATCH v1] docs/gpu: ci: update flake tests requirements

2024-09-24 Thread Vignesh Raman
Hi Dmitry, On 24/09/24 11:46, Dmitry Baryshkov wrote: On Tue, 24 Sept 2024 at 04:26, Vignesh Raman wrote: Update the documentation to require linking to a relevant GitLab issue for each new flake entry instead of an email report. Added specific GitLab issue URLs for i915, xe and other drivers

[PATCH v5 41/80] drm/tidss: Run DRM default client setup

2024-09-24 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 tidss driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

Re: [PATCH v3 1/6] drm: add DRM_SET_NAME ioctl

2024-09-24 Thread Pierre-Eric Pelloux-Prayer
Le 23/09/2024 à 12:06, Tvrtko Ursulin a écrit : On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: Giving the opportunity to userspace to associate a free-form name with a drm_file struct is helpful for tracking and debugging. This is similar to the existing DMA_BUF_SET_NAME ioctl. Acc

Re: [PATCH v3 3/6] drm/amdgpu: delay the use of amdgpu_vm_set_task_info

2024-09-24 Thread Christian König
Am 23.09.24 um 12:25 schrieb Tvrtko Ursulin: On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: At this point the vm is locked so we safely modify it without risk of concurrent access. To which particular lock this is referring to and does this imply previous placement was unsafe? We u

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-24 Thread Christian König
Am 24.09.24 um 11:58 schrieb Tvrtko Ursulin: On 24/09/2024 10:45, Tvrtko Ursulin wrote: On 24/09/2024 09:20, Christian König wrote: Am 16.09.24 um 19:30 schrieb Tvrtko Ursulin: From: Tvrtko Ursulin Having removed one re-lock cycle on the entity->lock in a patch titled "drm/sched: Optimise

Re: [PATCH] drm/amd/powerplay: skip enable mgpu fan boost in SRIOV

2024-09-24 Thread Lazar, Lijo
On 9/24/2024 9:10 AM, ZhenGuo Yin wrote: > SMU_MSG_SetMGpuFanBoostLimitRpm is unsupported for VF, > skip enabling mgpu fan boost in SRIOV. > > Signed-off-by: ZhenGuo Yin > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: radeon ARUBA NULL pointer dereference

2024-09-24 Thread Thomas Zimmermann
Am 24.09.24 um 14:20 schrieb Thomas Zimmermann: (cc: DMA and x86 folks) Hi Am 24.09.24 um 04:08 schrieb Arthur Marsh: Using current Linus git head kernel, I was able to save the dmesg output: [   17.218724] [drm] radeon kernel modesetting enabled. [   17.218778] radeon :00:01.0: vgaar

[PATCH] drm/amdgpu: add amdgpu_device reference in ip block

2024-09-24 Thread Sunil Khatri
To handle amdgpu_device reference for different GPUs we add it's reference in each ip block which can be used to differentiate between difference gpu devices. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 2 fi

[PATCH 1/3] drm/amdgpu: Drop unused fence argument from amdgpu_vmid_grab_used

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Fence argument is unused so lets drop it. Signed-off-by: Tvrtko Ursulin Cc: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd

[PATCH 3/3] drm/amdgpu: Remove the while loop from amdgpu_job_prepare_job

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin While loop makes it sound like amdgpu_vmid_grab() potentially needs to be called multiple times to produce a fence, while in reality all code paths either return an error, assign a valid job->vmid or assign a vmid which will be valid once the returned fence signals. Therefor

[PATCH 2/3] drm/amdgpu: Drop impossible condition from amdgpu_job_prepare_job

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Fence has been initialised to NULL so no need to test it. Signed-off-by: Tvrtko Ursulin Cc: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/g

Re: [PATCH 6/8] drm/sched: Re-order struct drm_sched_rq members for clarity

2024-09-24 Thread Simona Vetter
On Mon, Sep 09, 2024 at 06:19:35PM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Lets re-order the members to make it clear which are protected by the lock > and at the same time document it via kerneldoc. > > Signed-off-by: Tvrtko Ursulin > Cc: Christian König > Cc: Alex Deucher >

Re: [PATCH v3 3/6] drm/amdgpu: delay the use of amdgpu_vm_set_task_info

2024-09-24 Thread Pierre-Eric Pelloux-Prayer
Le 24/09/2024 à 10:43, Tvrtko Ursulin a écrit : On 24/09/2024 09:23, Christian König wrote: Am 23.09.24 um 12:25 schrieb Tvrtko Ursulin: On 20/09/2024 10:06, Pierre-Eric Pelloux-Prayer wrote: At this point the vm is locked so we safely modify it without risk of concurrent access. To whi

[PATCH 1/8] drm/sched: Add locking to drm_sched_entity_modify_sched

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Without the locking amdgpu currently can race between amdgpu_ctx_set_entity_priority() (via drm_sched_entity_modify_sched()) and drm_sched_job_arm(), leading to the latter accesing potentially inconsitent entity->sched_list and entity->num_sched_list pair. v2: * Improve com

[PATCH 7/8] drm/sched: Re-group and rename the entity run-queue lock

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Christian suggested to rename the lock and improve the documentation of what it protects. And to also re-order the structure members so all protected by the lock are together in a block. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Alex Deucher Cc: Luben Tuikov

[PATCH 2/8] drm/sched: Always wake up correct scheduler in drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since drm_sched_entity_modify_sched() can modify the entities run queue, lets make sure to only dereference the pointer once so both adding and waking up are guaranteed to be consistent. Alternative of moving the spin_unlock to after the wake up would for now be more problem

[PATCH 3/8] drm/sched: Always increment correct scheduler score

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Entities run queue can change during drm_sched_entity_push_job() so make sure to update the score consistently. Signed-off-by: Tvrtko Ursulin Fixes: d41a39dda140 ("drm/scheduler: improve job distribution with multiple queues") Cc: Nirmoy Das Cc: Christian König Cc: Luben

[PATCH 8/8] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Having removed one re-lock cycle on the entity->lock in a patch titled "drm/sched: Optimise drm_sched_entity_push_job", with only a tiny bit larger refactoring we can do the same optimisation on the rq->lock. (Currently both drm_sched_rq_add_entity() and drm_sched_rq_update_f

[PATCH 5/8] drm/sched: Stop setting current entity in FIFO mode

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin It does not seem there is a need to set the current entity in FIFO mode since ot only serves as being a "cursor" in round-robin mode. Even if scheduling mode is changed at runtime the change in behaviour is simply to restart from the first entity, instead of continuing in RR

[PATCH 6/8] drm/sched: Re-order struct drm_sched_rq members for clarity

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Current kerneldoc for struct drm_sched_rq incompletely documents what fields are protected by the lock. This is not good because it is misleading. Lets fix it by listing all the elements which are protected by the lock. While at it, lets also re-order the members so all pr

[PATCH v3 0/8] DRM scheduler fixes and improvements

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin All reviewed now, re-sending after rebasing on latest drm-tip so it is in a mergeable state. Tvrtko Ursulin (8): drm/sched: Add locking to drm_sched_entity_modify_sched drm/sched: Always wake up correct scheduler in drm_sched_entity_push_job drm/sched: Always incre

[PATCH 4/8] drm/sched: Optimise drm_sched_entity_push_job

2024-09-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In FIFO mode We can avoid dropping the lock only to immediately re-acquire by adding a new drm_sched_rq_update_fifo_locked() helper. v2: * Remove drm_sched_rq_update_fifo() altogether. (Christian) Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Alex Deucher Cc: Lu

[PATCH v5 67/80] drm/loongson: Run DRM default client setup

2024-09-24 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 v5 68/80] drm/nouveau: Run DRM default client setup

2024-09-24 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 v5 79/80] drm/omapdrm: Remove struct drm_fb_helper from struct omap_fbdev.

2024-09-24 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 v5 35/80] drm/renesas/shmobile: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 18/80] drm/ili9486: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Kamlesh Gurudasani Acked-by: Javier Martinez Canilla

[PATCH v5 22/80] drm/ingenic: Run DRM default client setup

2024-09-24 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 ingenic driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out en

[PATCH v5 33/80] drm/renesas/rcar-du: Run DRM default client setup

2024-09-24 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 rcar-du driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out en

[PATCH v5 10/80] drm/aspeed: Run DRM default client setup

2024-09-24 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 aspeed driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out ent

[PATCH v5 36/80] drm/repaper: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- driv

[PATCH v5 19/80] drm/imx/dcss: Run DRM default client setup

2024-09-24 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 dcss driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entir

[PATCH v5 39/80] drm/stm: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v4: - remove duplicated S-o-b tag (Gerd) v2: - use drm_client_setup_with_fourcc(

[PATCH v5 16/80] drm/ili9225: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: David Lechner Acked-by: David Lechner --- drivers/

[PATCH v5 27/80] drm/meson: Run DRM default client setup

2024-09-24 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 meson driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v5 07/80] drm/arm/komeda: Run DRM default client setup

2024-09-24 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 komeda driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out ent

[PATCH v5 29/80] drm/mxsfb/lcdif: Run DRM default client setup

2024-09-24 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 lcdif driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v5 13/80] drm/hisilicon/kirin: Run DRM default client setup

2024-09-24 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 kirin driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v5 60/80] drm/udl: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Dave Airlie Cc: Sean Paul Cc: Thomas Zimmermann Ac

[PATCH v5 24/80] drm/logicvc: Run DRM default client setup

2024-09-24 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 logicvc driver specifies a preferred color mode from the value in struct drm_mode_config.preferred_depth. The fbdev client

[PATCH v5 55/80] drm/hyperv_drm: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Deepak Rawat Reviewed-by: Deepak Rawat --- drivers

[PATCH v5 20/80] drm/imx/ipuv3: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Philipp Zabel Cc: Shawn Guo Cc: Sas

[PATCH v5 42/80] drm/tilcdc: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v3: - add DRM_FBDEV_DMA_DRIVER_OPS macro Signed-off-by: Thomas Zimmermann

[PATCH v5 56/80] drm/mgag200: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 54/80] drm/gud: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- driv

[PATCH v5 61/80] drm/virtgpu: Run DRM default client setup

2024-09-24 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 v5 46/80] drm/vc4: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 51/80] drm/bochs: Run DRM default client setup

2024-09-24 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 v5 53/80] drm/gm12u320: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Hans de Goede Acked-by: Javier Martinez Canillas --

[PATCH v5 80/80] drm/omapdrm: Run DRM default client setup

2024-09-24 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 v5 72/80] drm/fbdev-ttm: Remove obsolete setup function

2024-09-24 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 Acked-by: Javier Martinez Canillas --- drivers/gpu/drm/drm_fbdev_ttm.c | 119 inclu

[PATCH v5 75/80] drm/gma500: Run DRM default client setup

2024-09-24 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 v5 08/80] drm/arm/hdlcd: Run DRM default client setup

2024-09-24 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 hdlcd driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out enti

[PATCH v5 06/80] drm/arcgpu: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 09/80] drm/arm/malidp: Run DRM default client setup

2024-09-24 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 malidp driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out ent

[PATCH v5 00/80] drm: Provide client setup helper and convert drivers

2024-09-24 Thread Thomas Zimmermann
Provide drm_client_setup() to initialize in-kernel DRM clients. Then convert all drivers to the new interface. Remove old interfaces for the fbdev client. So far, the only supported DRM client in the kernel is for fbdev emulation with its fbcon support. Long term, we want to move away from fbcon.

[PATCH v5 14/80] drm/hx8357d: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Acked-by: Javier Martinez Canillas --- drivers/gpu/drm/

[PATCH v5 02/80] drm/fbdev-helper: Set and clear VGA switcheroo client from fb_info

2024-09-24 Thread Thomas Zimmermann
Call vga_switcheroo_client_fb_set() with the PCI device from the instance of struct fb_info. All fbdev clients now run these calls. For non-PCI devices or drivers without vga-switcheroo, this does nothing. For i915 and radeon, it allows these drivers to use a common fbdev client. The device is the

[PATCH v5 03/80] drm/fbdev: Add memory-agnostic fbdev client

2024-09-24 Thread Thomas Zimmermann
Add an fbdev client that can work with any memory manager. The client implementation is the same as existing code in fbdev-dma or fbdev-shmem. Provide struct drm_driver.fbdev_probe for the new client to allocate the surface GEM buffer. The new callback replaces fb_probe of struct drm_fb_helper_fun

[PATCH v5 04/80] drm: Add client-agnostic setup helper

2024-09-24 Thread Thomas Zimmermann
DRM may support multiple in-kernel clients that run as soon as a DRM driver has been registered. To select the client(s) in a single place, introduce drm_client_setup(). Drivers that call the new helper automatically instantiate the kernel's configured default clients. Only fbdev emulation is curr

[PATCH v5 23/80] drm/kmb: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Anitha Chrisanthus Cc: Edmund Dea Acked-by: Javier

[PATCH v5 11/80] drm/atmel-hdlcd: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v3: - add DRM_FBDEV_DMA_DRIVER_OPS macro (Sam) v2: - use drm_client_setup_with_f

[PATCH v5 05/80] drm/fbdev-dma: Support struct drm_driver.fbdev_probe

2024-09-24 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 DMA-

[PATCH v5 12/80] drm/fsl-dcu: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: Stefan Agner Cc: Alison Wang Acked-

[PATCH v5 01/80] drm/fbdev-helper: Move color-mode lookup into 4CC format helper

2024-09-24 Thread Thomas Zimmermann
The color mode as specified on the kernel command line gives the user's preferred color depth and number of bits per pixel. Move the color-mode-to-format conversion from fbdev helpers into a 4CC helper, so that it can be shared among DRM clients. v2: - fix grammar in commit message (Laurent) Sign

[PATCH v5 47/80] drm/xlnx: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 45/80] drm/tve200: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION v2: - use drm_client_setup_with_fourcc() Signed-off-by: Thomas Zimmermann Cc:

[PATCH v5 78/80] drm/tegra: Run DRM default client setup

2024-09-24 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 v5 28/80] drm/mi0283qt: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- driv

[PATCH v5 31/80] drm/panel-mipi-dbi: Run DRM default client setup

2024-09-24 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. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes --- driv

[PATCH v5 70/80] drm/vboxvideo: Run DRM default client setup

2024-09-24 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

  1   2   >