Re: [PATCH 1/3] dma-buf: replace symbolic permission S_IRUGO with octal 0444

2024-10-02 Thread Sumit Semwal
Hello Pintu, On Tue, 1 Oct 2024 at 23:16, Pintu Kumar wrote: > > Symbolic permissions are not preferred, instead use the octal. > Also, fix other warnings/errors as well for cleanup. > > WARNING: Block comments use * on subsequent lines > + /* only support discovering the end of the buffer,

[PATCH] drm/radeon: add late_register for connector

2024-10-02 Thread Wu Hoi Pok
This is a fix patch not tested yet, for a bug I introduce in previous rework of radeon driver. The bug is a null dereference in 'aux.dev', which is the 'device' not registered, resulting in kernel panic. By having 'late_register', the connector should be registered after 'drm_dev_register' automati

Re: [PATCH v3 13/14] drm/mediatek: Support DRM plane alpha in OVL

2024-10-02 Thread 林睿祥

Re: Kernel doesn't boot after DRM updates (drm-next-2024-09-19)

2024-10-02 Thread Christian Zigotzky
On 02 October 2024 at 3:43pm, Hoi Pok Wu wrote: Thanks to Christophe. I have figured out what happened. The connector is registered before the device, where drm_connector_register() states that, drm_dev_register() has to be called before it. Assuming this is the fix, I will send the patch for t

Re: [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools

2024-10-02 Thread Zack Rusin
On Wed, Oct 2, 2024 at 8:24 AM Thomas Hellström wrote: > > The ttm_device_init funcition uses multiple bool arguments. That means > readability in the caller becomes poor, and all callers need to change if > yet another bool is added. > > Instead use a struct with multiple single-bit flags. This a

Re: [PATCH v4 2/2] drm/xe: Drop GuC submit_wq pool

2024-10-02 Thread Ghimiray, Himal Prasad
On 02-10-2024 18:46, Matthew Brost wrote: Now that drm sched uses a single lockdep map for all submit_wq, drop the GuC submit_wq pool hack. Signed-off-by: Matthew Brost --- drivers/gpu/drm/xe/xe_guc_submit.c | 60 +- drivers/gpu/drm/xe/xe_guc_types.h | 7

Re: [PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Ghimiray, Himal Prasad
On 02-10-2024 18:46, Matthew Brost wrote: Avoid leaking a lockdep map on each drm sched creation and destruction by using a single lockdep map for all drm sched allocated submit_wq. v2: - Use alloc_ordered_workqueue_lockdep_map (Tejun) Cc: Luben Tuikov Cc: Christian König Signed-off-by:

linux-next: build warning after merge of the drm-misc tree

2024-10-02 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (htmldocs) produced this warning: Documentation/gpu/panthor.rst: WARNING: document isn't included in any toctree Introduced by commit 6a797bdfde77 ("drm/panthor: add sysfs knob for enabling job profiling") -- Cheers, Stephen

[PATCH v6 4/4] dt-bindings: display: mediatek: dpi: correct power-domains property

2024-10-02 Thread Macpaul Lin
The MediaTek DPI module is typically associated with one of the following multimedia power domains: - POWER_DOMAIN_DISPLAY - POWER_DOMAIN_VDOSYS - POWER_DOMAIN_MM The specific power domain used varies depending on the SoC design. These power domains are shared by multiple devices within the SoC

[PATCH v6 2/4] arm64: dts: mediatek: mt8395-genio-1200-evk: Fix dtbs_check error for phy

2024-10-02 Thread Macpaul Lin
The ethernet-phy node in mt8395-genio-1200-evk.dts was triggering a dtbs_check error. The error message was: eth-phy0@1: $nodename:0: 'eth-phy0@1' does not match '^ethernet-phy(@[a-f0-9]+)?$' Fix this issue by replacing 'eth-phy' node to generic 'ethernet-phy'. Fixes: f2b543a191b6

[PATCH v6 1/4] dt-bindings: iommu: mediatek: Fix interrupt count constraint for new SoCs

2024-10-02 Thread Macpaul Lin
The infra-iommu node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'interrupts' property. The error message was: infra-iommu@10315000: interrupts: [[0, 795, 4, 0], [0, 796, 4, 0], [0, 797, 4, 0], [0, 798, 4, 0], [0, 799, 4, 0]]

[PATCH v6 3/4] arm64: dts: mt8195: Fix dtbs_check error for mutex node

2024-10-02 Thread Macpaul Lin
The mutex node in mt8195.dtsi was triggering a dtbs_check error: mutex@1c101000: 'clock-names', 'reg-names' do not match any of the regexes: 'pinctrl-[0-9]+' This seems no need by inspecting the DT schemas and other reference boards, so drop 'clock-names' and 'reg-names' in mt8

[PATCH linux-next] drm: Fix for kernel doc warning

2024-10-02 Thread R Sundar
Added colon in kernel-doc comment to fix the warning. ./include/drm/drm_drv.h:372: warning: Incorrect use of kernel-doc format: * @fbdev_probe ./include/drm/drm_drv.h:435: warning: Function parameter or struct member 'fbdev_probe' not described in 'drm_driver' Signed-off-by: R Sundar

Re: [PATCH v8 0/2] Add driver for Sharp Memory LCD

2024-10-02 Thread Alex Lanzano
On Wed, Oct 02, 2024 at 09:56:38AM GMT, Uwe Kleine-König wrote: > Hello, > > On Tue, Oct 01, 2024 at 11:37:35PM -0400, Alex Lanzano wrote: > > This patch series add support for the monochrome Sharp Memory LCD > > panels. This series is based off of the work done by Mehdi Djait. > > > > References

linux-next: manual merge of the drm-misc tree with the drm-misc-fixes tree

2024-10-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/panthor/panthor_drv.c between commit: 2b55639a4e25 ("drm/panthor: Add FOP_UNSIGNED_OFFSET to fop_flags") from the drm-misc-fixes tree and commit: e16635d88fa0 ("drm/panthor: add DRM fdinfo support")

[PATCH v9 07/11] drm/print: Introduce drm_line_printer

2024-10-02 Thread John . C . Harrison
From: Michal Wajdeczko This drm printer wrapper can be used to increase the robustness of the captured output generated by any other drm_printer to make sure we didn't lost any intermediate lines of the output by adding line numbers to each output line. Helpful for capturing some crash data. v2:

[PATCH] drm/panfrost: Add missing OPP table refcnt decremental

2024-10-02 Thread Adrián Larumbe
Commit f11b0417eec2 ("drm/panfrost: Add fdinfo support GPU load metrics") retrieves the OPP for the maximum device clock frequency, but forgets to keep the reference count balanced by putting the returned OPP object. This eventually leads to an OPP core warning when removing the device. Fix it by

[RFC PATCH 2/2] drm/panthor: register size of internal objects through fdinfo

2024-10-02 Thread Adrián Larumbe
This includes both DRM objects created to support queues, groups and heaps, and also objects whose pages are shared between the GPU and the MCU. However, this doesn't include objects that hold the firmware's binary regions, since these aren't owned by a render context and are allocated only once a

[RFC PATCH 1/2] drm/drm_file: Add display of driver's internal memory size

2024-10-02 Thread Adrián Larumbe
Some drivers must allocate a considerable amount of memory for bookkeeping structures and GPU's MCU-kernel shared communication regions. These are often created as a result of the invocation of the driver's ioctl() interface functions, so it is sensible to consider them as being owned by the render

[RFC PATCH 0/2] Allow fdinfo to display size of internal BO's

2024-10-02 Thread Adrián Larumbe
This patch series lets DRM fdinfo stats functions display an additional tag that will reflect the amount of memory internal BOs of a DRM driver take up. The rationale for this is that some drivers, like Panthor, need quite a bit of memory for things like queue ring buffers or tiler heap chunks, an

Re: [PATCH v5 2/5] dt-bindings: iommu: mediatek: Fix interrupt count constraint for new SoCs

2024-10-02 Thread Rob Herring
On Wed, Oct 02, 2024 at 01:16:17PM +0800, Macpaul Lin wrote: > The infra-iommu node in mt8195.dtsi was triggering a CHECK_DTBS error due > to an excessively long 'interrupts' property. The error message was: > > infra-iommu@10315000: interrupts: [[0, 795, 4, 0], [0, 796, 4, 0], >

[PATCH v9 1/2] drm/atomic: Let drivers decide which planes to async flip

2024-10-02 Thread André Almeida
Currently, DRM atomic uAPI allows only primary planes to be flipped asynchronously. However, each driver might be able to perform async flips in other different plane types. To enable drivers to set their own restrictions on which type of plane they can or cannot flip, use the existing atomic_async

[PATCH v9 2/2] drm/amdgpu: Enable async flip on overlay planes

2024-10-02 Thread André Almeida
amdgpu can handle async flips on overlay planes, so allow it for atomic async checks. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pla

[PATCH v9 0/2] drm/atomic: Ease async flip restrictions

2024-10-02 Thread André Almeida
ge-id: 20241002-tonyk-async_flip-828cfe9cf3ca Best regards, -- André Almeida

[PATCH v9 07/11] drm/print: Introduce drm_line_printer

2024-10-02 Thread John . C . Harrison
From: Michal Wajdeczko This drm printer wrapper can be used to increase the robustness of the captured output generated by any other drm_printer to make sure we didn't lost any intermediate lines of the output by adding line numbers to each output line. Helpful for capturing some crash data. v2:

Re: [PATCH v2 1/3] drm/nouveau/tegra: Use iommu_paging_domain_alloc()

2024-10-02 Thread Lyude Paul
Fine by me On Tue, 2024-10-01 at 10:35 -0300, Jason Gunthorpe wrote: > On Mon, Sep 16, 2024 at 04:42:33PM -0400, Lyude Paul wrote: > > Sigh. Took me a minute but I think I know what happened - I meant to push > > the > > entire series to drm-misc-next and not drm-misc-fixes, but I must have > >

Re: [PATCH v3 2/2] drm/panel: boe-th101mb31ig002: Modify Starry panel timing

2024-10-02 Thread Doug Anderson
Hi, On Fri, Sep 27, 2024 at 2:44 AM Zhaoxiong Lv wrote: > > In MTK chips, if the DRM runtime resume has not yet completed and the > system enters sleep mode at the same time, there is a possibility of > a black screen after waking the machine. Reduce the disable delay > resolves this issue, Simi

Re: [PATCH v3 1/2] drm/panel: jd9365da: Modify Kingdisplay and Melfas panel timing

2024-10-02 Thread Doug Anderson
Hi, On Fri, Sep 27, 2024 at 2:44 AM Zhaoxiong Lv wrote: > > In MTK chips, if the DRM runtime resume has not yet completed and the > system enters sleep mode at the same time, there is a possibility of > a black screen after waking the machine. Reduce the disable delay > resolves this issue, This

Re: [v2,06/10] drm/bochs: Allocate DRM device in struct bochs_device

2024-10-02 Thread Kees Bakker
Op 02-09-2024 om 12:53 schreef Thomas Zimmermann: Allocate an instance of struct drm_device in struct bochs_device. Also remove all uses of dev_private from bochs and upcast from the embedded instance if necessary. Signed-off-by: Thomas Zimmermann Acked-by: Gerd Hoffmann --- drivers/gpu/drm/

Re: [PATCH v2 00/10] drm: bridge: dw_hdmi: Misc enable/disable, CEC and EDID cleanup

2024-10-02 Thread Diederik de Haas
Hi Jonas and Laurent, I may be showing my n00bness ... or I actually found something ... On Fri Sep 13, 2024 at 7:30 PM CEST, Diederik de Haas wrote: > On Sun Sep 8, 2024 at 3:28 PM CEST, Jonas Karlman wrote: > > This series ensure poweron/poweroff and CEC phys addr invalidation is > > happening

RE: [PATCH v4] docs/gpu: ci: update flake tests requirements

2024-10-02 Thread Deucher, Alexander
[Public] > -Original Message- > From: Vignesh Raman > Sent: Tuesday, October 1, 2024 9:51 AM > To: Deucher, Alexander ; Koenig, Christian > ; Pan, Xinhui ; amd- > g...@lists.freedesktop.org > Cc: dani...@collabora.com; helen.ko...@collabora.com; airl...@gmail.com; > dan...@ffwll.ch; robdc

[PATCH 2/2] drm: Move crtc->{x, y, mode, enabled} to legacy sub-structure

2024-10-02 Thread Ville Syrjala
From: Ville Syrjälä Atomic drivers shouldn't be using the legacy state stored directly under drm_crtc. Move that junk into a 'legacy' sub structure to highlight the offenders, of which there are quite a few unfortunately. I'm hoping we could get all these fixed and then declare the legacy state

[PATCH 1/2] drm: Move plane->{fb, old_fb, crtc} to legacy sub-structure

2024-10-02 Thread Ville Syrjala
From: Ville Syrjälä Hide the plane->fb/etc. footguns better by stashing them inside a "legacy" sub struct. Eventually maybe we could turn 'legacy' into a pointer that only exists on legacy drivers to completely prevent any abuse by atomic drivers... Side note: _dpu_plane_set_danger_state() look

[PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping

2024-10-02 Thread Ville Syrjala
From: Ville Syrjälä An attempt to hide the drm_plane/crtc legacy state better. This also highlights the fact that a lot of supposedly atomic drivers are poking around in the legacy crtc state, which is rather questionable. For planes we did force the legacy state to NULL already to force drivers

Re: [PATCH][next] drm/amdgpu: Fix spelling mistake "initializtion" -> "initialization"

2024-10-02 Thread Alex Deucher
Applied. Thanks! On Wed, Oct 2, 2024 at 3:51 AM Colin Ian King wrote: > > There is a spelling mistake in a dev_err message. Fix it. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driver

Re: [PATCH v2] drm/amd/pm: check return value of amdgpu_irq_add_id()

2024-10-02 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Oct 2, 2024 at 9:28 AM Igor Artemiev wrote: > > amdgpu_irq_ad_id() may fail and the irq handlers will not be registered. > This patch adds error code check. > > Found by Linux Verification Center (linuxtesting.org) with static > analysis tool SVACE. > > Signed-off-

Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-10-02 Thread Christophe JAILLET
Le 02/10/2024 à 13:51, Jani Nikula a écrit : On Tue, 01 Oct 2024, Christophe JAILLET wrote: Le 30/09/2024 à 09:48, Jani Nikula a écrit : On Sat, 28 Sep 2024, Christophe JAILLET wrote: "name" is allocated and freed in intel_backlight_device_register(). The initial allocation just duplicates "

Re: [PATCH v11 06/15] drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

2024-10-02 Thread Randy Dunlap
On 10/2/24 9:11 AM, Louis Chauvet wrote: > On 02/10/24 - 08:49, Randy Dunlap wrote: >> Hi Louis, >> >> On 10/2/24 1:57 AM, Louis Chauvet wrote: >>> On 01/10/24 - 20:54, Randy Dunlap wrote: Hi-- On 9/30/24 8:31 AM, Louis Chauvet wrote: > The pre_mul_alpha_blend is dedicated to

RE: [PATCH v5 0/7] drm/mgag200: Implement VBLANK support

2024-10-02 Thread Luck, Tony
> Thanks for the bug report. Can you provide the output of 'sudo lspci > -vvv' for the graphics device? Thomas, Sure. Here's the output (run on the v6.11.0 kernel) $ sudo lspci -vvv -s :08:00.0 08:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200e [Pilot] ServerEngin

Re: [PATCH v11 06/15] drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

2024-10-02 Thread Louis Chauvet
On 02/10/24 - 08:49, Randy Dunlap wrote: > Hi Louis, > > On 10/2/24 1:57 AM, Louis Chauvet wrote: > > On 01/10/24 - 20:54, Randy Dunlap wrote: > >> Hi-- > >> > >> On 9/30/24 8:31 AM, Louis Chauvet wrote: > >>> The pre_mul_alpha_blend is dedicated to blending, so to avoid mixing > >>> different con

Re: [PATCH v11 10/15] drm/vkms: Add YUV support

2024-10-02 Thread Randy Dunlap
On 9/30/24 8:31 AM, Louis Chauvet wrote: > From: Arthur Grillo > > Add support to the YUV formats bellow: > > - NV12/NV16/NV24 > - NV21/NV61/NV42 > - YUV420/YUV422/YUV444 > - YVU420/YVU422/YVU444 > > The conversion from yuv to rgb is done with fixed-point arithmetic, using > 32.32 fixed-poin

Re: [PATCH v11 06/15] drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

2024-10-02 Thread Randy Dunlap
Hi Louis, On 10/2/24 1:57 AM, Louis Chauvet wrote: > On 01/10/24 - 20:54, Randy Dunlap wrote: >> Hi-- >> >> On 9/30/24 8:31 AM, Louis Chauvet wrote: >>> The pre_mul_alpha_blend is dedicated to blending, so to avoid mixing >>> different concepts (coordinate calculation and color management), extrac

[PULL] drm-intel-fixes

2024-10-02 Thread Joonas Lahtinen
Hi Dave & Sima, Here goes drm-intel-fixes toward v6.12-rc2. Just one & vs && fixup into PM code that should only trigger with debug Kconfig options. Regards, Joonas *** drm-intel-fixes-2024-10-02: - One fix for bitwise and logical "and" mixup in PM code The following changes since commit 985

[PULL] drm-misc-fixes

2024-10-02 Thread Thomas Zimmermann
Hi Dave, Sima, although a bit early, here's the week's PR for drm-misc-fixes. Best regards Thomas drm-misc-fixes-2024-10-02: Short summary of fixes pull: panthor: - Set FOP_UNSIGNED_OFFSET in fops instance - Acquire lock in panthor_vm_prepare_map_op_ctx() - Avoid ninitialized variable in tick_c

Re: [PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Danilo Krummrich
On Wed, Oct 02, 2024 at 03:00:08PM +, Matthew Brost wrote: > On Wed, Oct 02, 2024 at 04:16:00PM +0200, Danilo Krummrich wrote: > > On Wed, Oct 02, 2024 at 06:16:38AM -0700, Matthew Brost wrote: > > > Avoid leaking a lockdep map on each drm sched creation and destruction > > > by using a single

[PATCH 2/2] drm/fbdev: Ensure that one of the probe functions is defined

2024-10-02 Thread Dave Stevenson
Commit 5d08c44e47b9 ("drm/fbdev: Add memory-agnostic fbdev client") added the newer probe function, but left a path where no probe function was called. fb_helper->fb would then be NULL and the strcpy would throw a NULL pointer exception. Handle that error case. Fixes: 5d08c44e47b9 ("drm/fbdev: Ad

[PATCH 1/2] drm/vc4: Run default client setup for all variants.

2024-10-02 Thread Dave Stevenson
Commit 45903624e9fc ("drm/vc4: Run DRM default client setup") only added DRM_FBDEV_DMA_DRIVER_OPS for the vc4 (Pi0-3) driver definition, which caused an issue on vc5 (Pi4) as there was no fbdev_probe function defined. Fixes: 45903624e9fc ("drm/vc4: Run DRM default client setup") Signed-off-by: Dav

[PATCH 0/2] drm: Fix up and error handling after fbdev changes

2024-10-02 Thread Dave Stevenson
ons is defined drivers/gpu/drm/drm_fb_helper.c | 2 ++ drivers/gpu/drm/vc4/vc4_drv.c | 1 + 2 files changed, 3 insertions(+) --- base-commit: 86fdd6b9b1e98cfd26249505e8ce72f4fc0de37f change-id: 20241002-vc4_fbdev_fix-f4c8b11928cd Best regards, -- Dave Stevenson

Re: [PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Matthew Brost
On Wed, Oct 02, 2024 at 04:16:00PM +0200, Danilo Krummrich wrote: > On Wed, Oct 02, 2024 at 06:16:38AM -0700, Matthew Brost wrote: > > Avoid leaking a lockdep map on each drm sched creation and destruction > > by using a single lockdep map for all drm sched allocated submit_wq. > > > > v2: > > -

Re: [RFC PATCH v4 1/1] platform/x86/tuxedo: Add virtual LampArray for TUXEDO NB04 devices

2024-10-02 Thread Werner Sembach
Am 02.10.24 um 11:52 schrieb Ilpo Järvinen: On Tue, 1 Oct 2024, Werner Sembach wrote: The TUXEDO Sirius 16 Gen1 and TUXEDO Sirius 16 Gen2 devices have a per-key controllable RGB keyboard backlight. The firmware API for it is implemented via WMI. To make the backlight userspace configurable t

Re: [PATCH v2 00/31] accel/ivpu: Fixes for 6.12-rc1

2024-10-02 Thread Thomas Zimmermann
Hi Am 02.10.24 um 15:26 schrieb Jacek Lawrynowicz: Applied to drm-misc-fixes And removed from drm-misc-fixes. The -misc-fixes branch is for fixing bugs that either regressed working code or to resolve serious bugs that affects upstream users. It is NOT a dumping ground for all kinds of thin

Re: [PATCH v6 0/8] drm: zynqmp_dp: IRQ cleanups and debugfs support

2024-10-02 Thread Tomi Valkeinen
Hi, On 01/10/2024 21:31, Sean Anderson wrote: On 8/9/24 15:35, Sean Anderson wrote: This series cleans up the zyqnmp_dp IRQ and locking situation. Once that's done, it adds debugfs support. The intent is to enable compliance testing or to help debug signal-integrity issues. I think the patche

[PATCH 6.6 386/538] drm/vmwgfx: Prevent unmapping active read buffers

2024-10-02 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin commit aba07b9a0587f50e5d3346eaa19019cf3f86c0ea upstream. The kms paths keep a persistent map active to read and compare the cursor buffer. These maps can race with each other in sim

Re: [PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Danilo Krummrich
On Wed, Oct 02, 2024 at 06:16:38AM -0700, Matthew Brost wrote: > Avoid leaking a lockdep map on each drm sched creation and destruction > by using a single lockdep map for all drm sched allocated submit_wq. > > v2: > - Use alloc_ordered_workqueue_lockdep_map (Tejun) > > Cc: Luben Tuikov > Cc: C

Re: [PATCH v4 2/2] drm/xe: Drop GuC submit_wq pool

2024-10-02 Thread Nirmoy Das
On 10/2/2024 3:16 PM, Matthew Brost wrote: > Now that drm sched uses a single lockdep map for all submit_wq, drop the > GuC submit_wq pool hack. > > Signed-off-by: Matthew Brost Reviewed-by: Nirmoy Das > --- > drivers/gpu/drm/xe/xe_guc_submit.c | 60 +- > drivers/

Re: [PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Nirmoy Das
On 10/2/2024 3:16 PM, Matthew Brost wrote: > Avoid leaking a lockdep map on each drm sched creation and destruction > by using a single lockdep map for all drm sched allocated submit_wq. > > v2: > - Use alloc_ordered_workqueue_lockdep_map (Tejun) > > Cc: Luben Tuikov > Cc: Christian König > Si

[pull] amdgpu drm-fixes-6.12

2024-10-02 Thread Alex Deucher
Hi Dave, Simona, Fixes for 6.12. The following changes since commit d7d2688bf4ea58734d73e18edcbf4684b1496d30: drm/amd/pm: update workload mask after the setting (2024-09-26 17:05:10 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-

Re: [PATCH v6 4/8] drm: zynqmp_dp: Convert to a hard IRQ

2024-10-02 Thread Tomi Valkeinen
Hi, On 09/08/2024 22:35, Sean Anderson wrote: Now that all of the sleeping work is done outside of the IRQ, we can convert it to a hard IRQ. Shared IRQs may be triggered even after calling disable_irq, so use free_irq instead which removes our callback altogether. Signed-off-by: Sean Anderson

Re: [PATCH 02/28] drm/arm/hdlcd: Use video aperture helpers

2024-10-02 Thread Liviu Dudau
On Mon, Sep 30, 2024 at 03:03:00PM +0200, Thomas Zimmermann wrote: > DRM's aperture functions have long been implemented as helpers > under drivers/video/ for use with fbdev. Avoid the DRM wrappers by > calling the video functions directly. > > Signed-off-by: Thomas Zimmermann > Cc: Liviu Dudau

Re: [PATCH v2 2/2] drm/ttm: Add a device flag to propagate -ENOSPC on OOM

2024-10-02 Thread Christian König
Am 02.10.24 um 14:24 schrieb Thomas Hellström: Some graphics APIs differentiate between out-of-graphics-memory and out-of-host-memory (system memory). Add a device init flag to have -ENOSPC propagated from the resource managers instead of being converted to -ENOMEM, to aid driver stacks in determ

Re: Kernel doesn't boot after DRM updates (drm-next-2024-09-19)

2024-10-02 Thread Hoi Pok Wu
Thanks to Christophe. I have figured out what happened. The connector is registered before the device, where drm_connector_register() states that, drm_dev_register() has to be called before it. Assuming this is the fix, I will send the patch for testing soon. On Tue, Oct 1, 2024 at 8:23 PM Christ

Re: [PATCH v2 1/1] platform/x86/tuxedo: Add virtual LampArray for TUXEDO

2024-10-02 Thread Werner Sembach
Hi, Am 02.10.24 um 14:52 schrieb Lee Jones: On Fri, 27 Sep 2024, Werner Sembach wrote: Hi, first revision integrating Armins feedback. Stuff I did not yet change and did not comment on previously: - Still have to ask Christoffer why the mutex is required - Still using acpi_size instad of size

Re: [PATCH v2 00/31] accel/ivpu: Fixes for 6.12-rc1

2024-10-02 Thread Jacek Lawrynowicz
Applied to drm-misc-fixes On 9/30/2024 9:52 PM, Jacek Lawrynowicz wrote: > Most notable changes are coredump and tracing support. > The rest are stability fixes, some refactoring and typos. > > Changes in v2: > - Fix typos in FW API headers > - Split fw refactor commit into 2 commits and improved

[PATCH v4 1/2] drm/sched: Use drm sched lockdep map for submit_wq

2024-10-02 Thread Matthew Brost
Avoid leaking a lockdep map on each drm sched creation and destruction by using a single lockdep map for all drm sched allocated submit_wq. v2: - Use alloc_ordered_workqueue_lockdep_map (Tejun) Cc: Luben Tuikov Cc: Christian König Signed-off-by: Matthew Brost --- drivers/gpu/drm/scheduler/sc

[PATCH v4 2/2] drm/xe: Drop GuC submit_wq pool

2024-10-02 Thread Matthew Brost
Now that drm sched uses a single lockdep map for all submit_wq, drop the GuC submit_wq pool hack. Signed-off-by: Matthew Brost --- drivers/gpu/drm/xe/xe_guc_submit.c | 60 +- drivers/gpu/drm/xe/xe_guc_types.h | 7 2 files changed, 1 insertion(+), 66 deletions(-

[PATCH v4 0/2] Use user-defined workqueue lockdep map for drm sched

2024-10-02 Thread Matthew Brost
By default, each DRM scheduler instance creates an ordered workqueue for submission, and each workqueue creation allocates a new lockdep map. This becomes problematic when a DRM scheduler is created for every user queue (e.g., in DRM drivers with firmware schedulers like Xe) due to the limited numb

[PATCH v2 05/11] drm/client: Move client event handlers to drm_client_event.c

2024-10-02 Thread Thomas Zimmermann
A number of DRM-client functions serve as entry points from device operations to client code. Moving them info a separate file will later allow for a more fine-grained kernel configuration. For most of the users it is sufficient to include instead of the full driver-side interface in v2: - renam

[PATCH v2 04/11] drm/fbdev: Store fbdev module parameters in separate file

2024-10-02 Thread Thomas Zimmermann
The fbdev code does not really belong into drm_kms_helper.ko. But there are module parameters that control the behavior of the fbdev emulation. It is not possible to remove them from the module without breaking someone's installation. Therefore move the fbdev module parameters to drm_kms_helper_co

[PATCH v2 06/11] drm/client: Move suspend/resume into DRM client callbacks

2024-10-02 Thread Thomas Zimmermann
Suspend and resume is still tied to fbdev emulation. Modeset helpers and several drivers call drm_fb_helper_set_suspend_unlocked() to inform the fbdev client about suspend/resume events. To make it work with arbitrary clients, add per-client callback functions for suspend and resume. Implement the

[PATCH v2 08/11] drm/nouveau: Suspend and resume clients with client helpers

2024-10-02 Thread Thomas Zimmermann
Replace calls to drm_fb_helper_set_suspend_unlocked() with calls to the client functions drm_client_dev_suspend() and drm_client_dev_resume(). Any registered in-kernel client will now receive suspend and resume events. Signed-off-by: Thomas Zimmermann Cc: Karol Herbst Cc: Lyude Paul Cc: Danilo

[PATCH v2 10/11] drm/client: Make client support optional

2024-10-02 Thread Thomas Zimmermann
Only build client code if DRM_CLIENT has been selected. Automatially do so if one of the default clients has been enabled. If client support has been disabled, the helpers for client-related events are empty and the regular client functions are not present. Amdgpu has an internal DRM client, so it

[PATCH v2 11/11] drm/client: Add client-lib module

2024-10-02 Thread Thomas Zimmermann
Add drm_client_lib.ko to contain DRM's built-in client. Move the existing client for fbdev emulation into the new module. Protect the new module behind CONFIG_DRM_CLIENT_LIB. The Kconfig rules separate the DRM drivers from the DRM clients. A driver can opt into the default clients, but the user co

[PATCH v2 09/11] drm/radeon: Suspend and resume clients with client helpers

2024-10-02 Thread Thomas Zimmermann
Replace calls to drm_fb_helper_set_suspend() with calls to the client functions drm_client_dev_suspend() and drm_client_dev_resume(). Any registered in-kernel client will now receive suspend and resume events. Signed-off-by: Thomas Zimmermann Cc: Alex Deucher Cc: "Christian König" Cc: Xinhui Pa

[PATCH v2 07/11] drm/amdgpu: Suspend and resume internal clients with client helpers

2024-10-02 Thread Thomas Zimmermann
Replace calls to drm_fb_helper_set_suspend_unlocked() with calls to the client functions drm_client_dev_suspend() and drm_client_dev_resume(). Any registered in-kernel client will now receive suspend and resume events. Signed-off-by: Thomas Zimmermann Cc: Alex Deucher Cc: "Christian König" Cc:

[PATCH v2 03/11] drm/fbdev: Select fbdev I/O helpers from modules that require them

2024-10-02 Thread Thomas Zimmermann
Fbdev emulation for SHMEM and TTM requires helpers from the fbdev subsystem. Select them from the modules that use them instead of the core DRM module. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/d

[PATCH v2 02/11] drm/xe: Select DRM_CLIENT_SELECTION

2024-10-02 Thread Thomas Zimmermann
The Kconfig token DRM_CLIENT_SELECTION will make DRM clients available to drivers. Select it from xe. Signed-off-by: Thomas Zimmermann Cc: Lucas De Marchi Cc: "Thomas Hellström" Cc: Rodrigo Vivi --- drivers/gpu/drm/xe/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm

[PATCH v2 00/11] drm: Introduce DRM client library

2024-10-02 Thread Thomas Zimmermann
With the next DRM client coming soon (drm_log) and most of DRM's fbdev emulation consolidated in a few places, it's time to provide a single place for the clients. The new module drm_client_lib.ko stores most of the in-kernel client code. It is designed such that drivers can opt into client suppor

[PATCH v2 01/11] drm/i915: Select DRM_CLIENT_SELECTION

2024-10-02 Thread Thomas Zimmermann
The Kconfig token DRM_CLIENT_SELECTION will make DRM clients available to drivers. Select it from i915. Signed-off-by: Thomas Zimmermann Cc: Jani Nikula i Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [RESEND PATCH] drm/i915:Remove unused parameter in marco

2024-10-02 Thread Jani Nikula
On Wed, 25 Sep 2024, He Lugang wrote: > The parameter dev_priv is actually not used in macro PORT_ALPM_CTL > and PORT_ALPM_LFPS_CTL,so remove it to simplify the code. > > Reviewed-by: Jani Nikula > Signed-off-by: He Lugang > --- > drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- > driver

[PATCH v2] drm/amd/pm: check return value of amdgpu_irq_add_id()

2024-10-02 Thread Igor Artemiev
amdgpu_irq_ad_id() may fail and the irq handlers will not be registered. This patch adds error code check. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Signed-off-by: Igor Artemiev --- v2: Remove the cast to struct amdgpu_device as Christian König sugg

Re: [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools

2024-10-02 Thread Jani Nikula
On Wed, 02 Oct 2024, Thomas Hellström wrote: > The ttm_device_init funcition uses multiple bool arguments. That means > readability in the caller becomes poor, and all callers need to change if > yet another bool is added. > > Instead use a struct with multiple single-bit flags. This addresses bot

[PATCH RESEND] locking/ww_mutex: Adjust to lockdep nest_lock requirements

2024-10-02 Thread Thomas Hellström
When using mutex_acquire_nest() with a nest_lock, lockdep refcounts the number of acquired lockdep_maps of mutexes of the same class, and also keeps a pointer to the first acquired lockdep_map of a class. That pointer is then used for various comparison-, printing- and checking purposes, but there

Re: [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools

2024-10-02 Thread Thomas Hellström
On Wed, 2024-10-02 at 14:45 +0200, Christian König wrote: > Am 02.10.24 um 14:24 schrieb Thomas Hellström: > > The ttm_device_init funcition uses multiple bool arguments. That > > means > > readability in the caller becomes poor, and all callers need to > > change if > > yet another bool is added.

Re: [PATCH v2 1/1] platform/x86/tuxedo: Add virtual LampArray for TUXEDO

2024-10-02 Thread Lee Jones
On Fri, 27 Sep 2024, Werner Sembach wrote: > Hi, > first revision integrating Armins feedback. > > Stuff I did not yet change and did not comment on previously: > - Still have to ask Christoffer why the mutex is required > - Still using acpi_size instad of size_t in the util functions, because th

Re: [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools

2024-10-02 Thread Christian König
Am 02.10.24 um 14:24 schrieb Thomas Hellström: The ttm_device_init funcition uses multiple bool arguments. That means readability in the caller becomes poor, and all callers need to change if yet another bool is added. Instead use a struct with multiple single-bit flags. This addresses both prob

Re: [PATCH v8 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook

2024-10-02 Thread Matthias Brugger
On 14/09/2024 08:31, Jianeng Ceng wrote: Ponyta is a custom label Chromebook based on MT8186. It is a self-developed project of Huaqin and has no fixed OEM. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski Signed-off-by: Jianeng Ceng Reviewed-by: Matthias Brugger

[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM

2024-10-02 Thread Thomas Hellström
Some graphics APIs differentiate between out-of-graphics-memory and out-of-host-memory (system memory). Add a device init flag to have -ENOSPC propagated from the resource managers instead of being converted to -ENOMEM, to aid driver stacks in determining what error code to return or whether correc

[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools

2024-10-02 Thread Thomas Hellström
The ttm_device_init funcition uses multiple bool arguments. That means readability in the caller becomes poor, and all callers need to change if yet another bool is added. Instead use a struct with multiple single-bit flags. This addresses both problems. Prefer it over using defines or enums with

[PATCH v2 2/2] drm/ttm: Add a device flag to propagate -ENOSPC on OOM

2024-10-02 Thread Thomas Hellström
Some graphics APIs differentiate between out-of-graphics-memory and out-of-host-memory (system memory). Add a device init flag to have -ENOSPC propagated from the resource managers instead of being converted to -ENOMEM, to aid driver stacks in determining what error code to return or whether correc

Re: [PATCH 0/2] drm: revert some framebuffer API tests

2024-10-02 Thread Jani Nikula
On Wed, 25 Sep 2024, Maxime Ripard wrote: > On Wed, Sep 25, 2024 at 01:52:02PM GMT, Simona Vetter wrote: >> I think for at least drm the consensus is clear, we won't have kunit tests >> that splat. > > Where was that ever discussed? Well, where was it ever agreed that it's okay for drm kunit test

Re: [PATCH 07/28] drm/i915: Use video aperture helpers

2024-10-02 Thread Jani Nikula
On Mon, 30 Sep 2024, Thomas Zimmermann wrote: > DRM's aperture functions have long been implemented as helpers > under drivers/video/ for use with fbdev. Avoid the DRM wrappers by > calling the video functions directly. > > Signed-off-by: Thomas Zimmermann > Cc: Jani Nikula > Cc: Joonas Lahtinen

Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-10-02 Thread Jani Nikula
On Tue, 01 Oct 2024, Christophe JAILLET wrote: > Le 30/09/2024 à 09:48, Jani Nikula a écrit : >> On Sat, 28 Sep 2024, Christophe JAILLET >> wrote: >>> "name" is allocated and freed in intel_backlight_device_register(). >>> The initial allocation just duplicates "intel_backlight". >>> >>> Later,

Re: [PATCH] drm/i915: Rename functions in the docs to match code changes

2024-10-02 Thread Andi Shyti
Hi Harshit, On Mon, Sep 30, 2024 at 11:25:54PM -0700, Harshit Mogalapalli wrote: > make htmldocs is reporting: > > drivers/gpu/drm/i915/i915_irq.c:1: warning: > 'intel_runtime_pm_disable_interrupts' not found > drivers/gpu/drm/i915/i915_irq.c:1: warning: > 'intel_runtime_pm_enable_interrupts' n

Re: RESEND Re: [PATCH v4 1/2] drm/ttm: Move swapped objects off the manager's LRU list

2024-10-02 Thread Thomas Hellström
Hi, Christian, Gentle ping on this one as well. Thanks, Thomas On Thu, 2024-09-19 at 17:24 +0200, Thomas Hellström wrote: > Hi Christian, > > Ping? > > /Thomas > > > On Thu, 2024-09-12 at 15:40 +0200, Thomas Hellström wrote: > > Hi, Christian, > > > > On Wed, 2024-09-04 at 12:47 +0200, Chri

Re: [PATCH 4/7] drm/ttm: move LRU walk defines into new internal header

2024-10-02 Thread Thomas Hellström
Hi On Wed, 2024-10-02 at 13:32 +0200, Christian König wrote: > Ah, yes sorry totally forgotten about that. > > Give me till Friday to swap everything back into my head again. > > Christian. Thanks! Once we agree on a direction MBrost is ready to do an in-depth review. /Thomas > > Am 02.10.

Re: [PATCH 4/7] drm/ttm: move LRU walk defines into new internal header

2024-10-02 Thread Christian König
Ah, yes sorry totally forgotten about that. Give me till Friday to swap everything back into my head again. Christian. Am 02.10.24 um 13:30 schrieb Thomas Hellström: Hi, Christian, Ping? Can i get an ack to proceed with this? Thanks, Thomas On Wed, 2024-09-18 at 14:57 +0200, Thomas Hellst

Re: [PATCH 4/7] drm/ttm: move LRU walk defines into new internal header

2024-10-02 Thread Thomas Hellström
Hi, Christian, Ping? Can i get an ack to proceed with this? Thanks, Thomas On Wed, 2024-09-18 at 14:57 +0200, Thomas Hellström wrote: > Sima, Christian > > I've updated the shrinker series now with a guarded for_each macro > instead: > > https://patchwork.freedesktop.org/patch/614514/?series

Re: [RFC PATCH 1/1] drm/meson: Support drm_panic

2024-10-02 Thread Neil Armstrong
Hi, On 02/10/2024 13:02, Maxime Ripard wrote: + Jocelyn On Wed, Oct 02, 2024 at 09:59:57AM GMT, Neil Armstrong wrote: diff --git a/drivers/gpu/drm/meson/meson_plane.c b/drivers/gpu/drm/meson/meson_plane.c index b43ac61201f3..b2def784c00d 100644 --- a/drivers/gpu/drm/meson/meson_plane.c +++ b/

Re: [PATCH] drm/i915: Rename functions in the docs to match code changes

2024-10-02 Thread Krzysztof Karas
On 2024-09-30 at 23:25:54 -0700, Harshit Mogalapalli wrote: > make htmldocs is reporting: > > drivers/gpu/drm/i915/i915_irq.c:1: warning: > 'intel_runtime_pm_disable_interrupts' not found > drivers/gpu/drm/i915/i915_irq.c:1: warning: > 'intel_runtime_pm_enable_interrupts' not found > Hi Harshit

Re: [RFC PATCH 1/1] drm/meson: Support drm_panic

2024-10-02 Thread Maxime Ripard
+ Jocelyn On Wed, Oct 02, 2024 at 09:59:57AM GMT, Neil Armstrong wrote: > > diff --git a/drivers/gpu/drm/meson/meson_plane.c > > b/drivers/gpu/drm/meson/meson_plane.c > > index b43ac61201f3..b2def784c00d 100644 > > --- a/drivers/gpu/drm/meson/meson_plane.c > > +++ b/drivers/gpu/drm/meson/meson_pl

  1   2   >