[PATCH 00/16] drm/atomic: Switch drm_private_obj to reset

2025-10-17 Thread Maxime Ripard
Hi, This series started from my work on the hardware state readout[1], and was suggested by Dmitry[2]. This series deal with the fact that drm_private_obj (and thus bridges) are not initialized using the same pattern than any other object. This series solves that inconsistency by aligning it to w

[PATCH 06/17] drm/msm/adreno: Move adreno_gpu_func to catalogue

2025-10-17 Thread Akhil P Oommen
In A6x family (which is a pretty big one), there are separate adreno_func definitions for each sub-generations. To streamline the identification of the correct struct for a gpu, move it to the catalogue and move the gpu_init routine to struct adreno_gpu_funcs. Signed-off-by: Akhil P Oommen --- d

[PATCH v4 01/10] PCI/P2PDMA: Separate the mmap() support from the core logic

2025-10-17 Thread Leon Romanovsky
From: Leon Romanovsky Currently the P2PDMA code requires a pgmap and a struct page to function. The was serving three important purposes: - DMA API compatibility, where scatterlist required a struct page as input - Life cycle management, the percpu_ref is used to prevent UAF during devi

Re: [PATCH v4 08/13] drm/v3d: Fix builds with CONFIG_TRANSPARENT_HUGEPAGE=n

2025-10-17 Thread Boris Brezillon
On Wed, 15 Oct 2025 17:30:12 +0200 Loïc Molinari wrote: > Don't declare "super_pages" on builds with CONFIG_TRANSPARENT_HUGEPAGE > disabled to prevent build error: > > ERROR: modpost: "super_pages" [drivers/gpu/drm/v3d/v3d.ko] undefined! I believe this is a bug introduced by the previous commit

[PATCH 4/5] efi/libstub: gop: Add support for reading EDID

2025-10-17 Thread Thomas Zimmermann
Add support for EFI_EDID_DISCOVERED_PROTOCOL and EFI_EDID_ACTIVE_PROTOCOL as defined in UEFI 2.8, sec 12.9. Define GUIDs and data structures in the rsp header files. In the GOP setup function, read the EDID of the primary GOP device. First try EFI_EDID_ACTIVE_PROTOCOL, which supports user-specifie

[PATCH 23/26] drm/xe/pf: Handle VRAM migration data as part of PF control

2025-10-17 Thread Michał Winiarski
Connect the helpers to allow save and restore of VRAM migration data in stop_copy / resume device state. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c | 13 + .../gpu/drm/xe/xe_gt_sriov_pf_control_types.h | 1 + drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c

[RFC PATCH v2 1/4] drm/sched: Add pending job list iterator

2025-10-17 Thread Matthew Brost
Stop open coding pending job list in drivers. Add pending job list iterator which safely walks DRM scheduler list either locklessly asserting DRM scheduler is stopped or takes pending job list lock. v2: - Fix checkpatch (CI) Signed-off-by: Matthew Brost --- include/drm/gpu_scheduler.h | 64 +++

Re: [git pull] drm for 6.18-rc1

2025-10-17 Thread Miguel Ojeda
On Sat, Oct 4, 2025 at 3:54 AM John Hubbard wrote: > > Very happy! Far more so than I expected. Being able to *not* fuss around > with minor formatting details (while editing, rebasing, and reviewing) > has been absolutely transformative. Thanks :) > For example, on today's linux.git, I just now

[PATCH v6 01/11] gpu: nova-core: Set correct DMA mask

2025-10-17 Thread Alistair Popple
Set the correct DMA mask. Without this DMA will fail on some setups. Signed-off-by: Alistair Popple --- Changes for v5: - Update SAFETY comment for dma_set_mask_and_coherent() - Add TODO for using different masks when we support more GPU models Changes for v4: - Use a const (GPU_DMA_BITS) i

[PATCH 11/39] drm/imx: dc: fg: Parametrize register access

2025-10-17 Thread Marek Vasut
Pass register offset for the second half of the register area around. This is done in preparation for i.MX95 support addition, which has the registers at offset 0x24 instead of 0x00. No functional change so far. Signed-off-by: Marek Vasut --- Cc: Abel Vesa Cc: Conor Dooley Cc: Fabio Estevam Cc

[PATCH v7 7/7] arm64: dts: imx8mp-evk: enable hdmi_pai device

2025-10-17 Thread Shengjiu Wang
Enable hdmi_pai device. Aud2htx module, hdmi_pai and hdmi controller compose the hdmi audio pipeline. Signed-off-by: Shengjiu Wang Reviewed-by: Frank Li Tested-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm

Re: [v7 01/16] mm/zone_device: support large zone device private folios

2025-10-17 Thread Lance Yang
Hi Balbir, Just one nit below :) On Wed, Oct 1, 2025 at 3:43 PM Balbir Singh wrote: > > Add routines to support allocation of large order zone device folios > and helper functions for zone device folios, to check if a folio is > device private and helpers for setting zone device data. > > When l

Re: (subset) [PATCH v4 0/6] Add HDMI CEC support to Rockchip RK3588/RK3576 SoCs

2025-10-17 Thread Heiko Stuebner
On Wed, 03 Sep 2025 21:50:58 +0300, Cristian Ciocaltea wrote: > The first patch in the series implements the CEC capability of the > Synopsys DesignWare HDMI QP TX controller found in RK3588 & RK3576 Socs. > This is based on the downstream code, but rewritten on top of the CEC > helpers added rec

[PATCH v5 15/30] dyndbg: hoist classmap-filter-by-modname up to ddebug_add_module

2025-10-17 Thread Jim Cromie
The body of ddebug_attach_module_classes() is dominated by a code-block that finds the contiguous subrange of classmaps matching on modname, and saves it into the ddebug_table's info record. Implement this block in a macro to accommodate different component vectors in the "box" (as named in the fo

[PATCH V2] accel/amdxdna: Support getting last hardware error

2025-10-17 Thread Lizhi Hou
Add new parameter DRM_AMDXDNA_HW_LAST_ASYNC_ERR to get array IOCTL. When hardware reports an error, the driver save the error information and timestamp. This new get array parameter retrieves the last error. Signed-off-by: Lizhi Hou --- drivers/accel/amdxdna/aie2_error.c | 95 ++

Re: [PATCH v2 03/10] PCI/P2PDMA: Refactor to separate core P2P functionality from memory allocation

2025-10-17 Thread Jason Gunthorpe
On Mon, Sep 22, 2025 at 03:00:32PM -0600, Alex Williamson wrote: > But then later in patch 8/ and again in 10/ why exactly do we cache > the provider on the vfio_pci_core_device rather than ask for it on > demand from the p2pdma? It makes the most sense if the P2P is activated once during probe(),

[PATCH 2/3] drm/radeon: Do not kfree() devres managed rdev

2025-10-17 Thread Daniel Palmer
Since the allocation of the drivers main structure was changed to devm_drm_dev_alloc() rdev is managed by devres and we shouldn't be calling kfree() on it. This fixes things exploding if the driver probe fails and devres cleans up the rdev after we already free'd it. Fixes: a9ed2f052c5c ("drm/rad

Re: [PATCH v2 2/5] drm/rockchip: dw_hdmi_qp: Improve error handling with dev_err_probe()

2025-10-17 Thread Laurent Pinchart
On Mon, Oct 06, 2025 at 05:37:23PM +0300, Cristian Ciocaltea wrote: > On 10/6/25 3:02 PM, Dmitry Baryshkov wrote: > > On Mon, Oct 06, 2025 at 02:55:38AM +0300, Laurent Pinchart wrote: > >> From: Cristian Ciocaltea > >> > >> The error handling in dw_hdmi_qp_rockchip_bind() is quite inconsistent, >

Re: [PATCH v5 2/2] accel: Add Arm Ethos-U NPU driver

2025-10-17 Thread Matthew Brost
On Fri, Oct 17, 2025 at 10:37:46AM -0500, Rob Herring wrote: > On Thu, Oct 16, 2025 at 11:25:34PM -0700, Matthew Brost wrote: > > On Thu, Oct 16, 2025 at 04:06:05PM -0500, Rob Herring (Arm) wrote: > > > Add a driver for Arm Ethos-U65/U85 NPUs. The Ethos-U NPU has a > > > relatively simple interface

[PATCH v2 12/12] drm/ast: Remove generic device initialization

2025-10-17 Thread Thomas Zimmermann
The code in ast_main.c has been split into several helpers in other source files. Delete the source file. With the generic device init gone, fail probing on unknown hardware generations. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe --- drivers/gpu/drm/ast/Makefile | 1 - dr

[PATCH 11/15 6.6.y] minmax.h: reduce the #define expansion of min(), max() and clamp()

2025-10-17 Thread Eliav Farber
From: David Laight [ Upstream commit b280bb27a9f7c91ddab730e1ad91a9c18a051f41 ] Since the test for signed values being non-negative only relies on __builtion_constant_p() (not is_constexpr()) it can use the 'ux' variable instead of the caller supplied expression. This means that the #define par

[PATCH v3 0/7] Fix DRM scheduler layering violations in Xe

2025-10-17 Thread Matthew Brost
At XDC, we discussed that drivers should avoid accessing DRM scheduler internals, misusing DRM scheduler locks, and adopt a well-defined pending job list iterator. This series proposes the necessary changes to the DRM scheduler to bring Xe in line with that agreement and updates Xe to use the new D

Re: [PATCH 01/29] dt-bindings: media: mfc: Add Exynos MFC devicetree binding

2025-10-17 Thread Krzysztof Kozlowski
On Tue, 30 Sept 2025 at 12:55, Himanshu Dewangan wrote: > > From: Nagaraju Siddineni > > Introduce a new DT binding file for exynos-mfc > > Documentation/devicetree/bindings/media/samsung,exynos-mfc.yaml > which describes the Exynos Multi‑Format Codec (MFC) IP. The schema > covers the core node

Re: [PATCH v7 5/5] pmdomain: mediatek: Add support for MFlexGraphics

2025-10-17 Thread kernel test robot
Hi Nicolas, kernel test robot noticed the following build warnings: [auto build test WARNING on 40a3abb0f3e5229996c8ef0498fc8d8a0c2bd64f] url: https://github.com/intel-lab-lkp/linux/commits/Nicolas-Frattaroli/dt-bindings-gpu-mali-valhall-csf-add-mediatek-mt8196-mali-variant/20251015-165256 b

[PATCH v8 0/2] Convert inno hdmi to drm bridge

2025-10-17 Thread Andy Yan
From: Andy Yan Convert it to drm bridge driver, it will be convenient for us to migrate the connector part to the display driver later. Patches that have already been merged in drm-misc-next are dropped. Changes in v8: - Rebase on latest drm-misc-next tag: drm-misc-fixes-2025-10-09 - Link to

[PATCH v3 0/2] drm/panel: Add Ilitek IL79900A controller and bindings

2025-10-17 Thread Langyan Ye
This series adds device tree bindings and a DRM panel driver for the Ilitek IL79900A MIPI-DSI LCD controller, which is used in the Tianma TL121BVMS07-00 12.1-inch panel. Changes in v3: - PATCH 1/2: Fix DT schema error for `backlight` property. - PATCH 2/2: Address review feedback (use mipi_dsi_msl

Re: [PATCH v4 02/14] drm/gem: Add a drm_gem_object_funcs::sync() and a drm_gem_sync() helper

2025-10-17 Thread Boris Brezillon
Hi Thomas, On Thu, 16 Oct 2025 10:32:46 +0200 Thomas Zimmermann wrote: > Hi, > > on patches 2 to 4: sync is really begin/end access wrapped into one > interface, which I find questionable. I also don't like that these > patches add generic infrastructure for a single driver. It's actually tw

Re: [PATCH v2 02/13] drm/prime: Provide default ::{begin,end}_cpu_access() implementations

2025-10-17 Thread Boris Brezillon
On Fri, 10 Oct 2025 16:34:14 +0100 Steven Price wrote: > On 10/10/2025 16:03, Boris Brezillon wrote: > > On Fri, 10 Oct 2025 15:11:54 +0100 > > Steven Price wrote: > > > >> On 10/10/2025 11:11, Boris Brezillon wrote: > >>> Hook-up drm_gem_dmabuf_{begin,end}_cpu_access() to drm_gem_sync() so

[PATCH v4 07/24] staging: media: tegra-video: vi: adjust get_selection op check

2025-10-17 Thread Svyatoslav Ryhel
Get_selection operation may be implemented only for sink pad and may return error code. Set try_crop to 0 instead of returning error. Signed-off-by: Svyatoslav Ryhel --- drivers/staging/media/tegra-video/vi.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/sta

Re: [PATCH] accel/ivpu: Return correct job error status

2025-10-17 Thread Karol Wachowski
Thanks for pointing this out. Returning ABORTED was not generally a problem, but it limited user space ability to distinguish between different failure modes. Changing this improves debugability and allows applications to take actions based on separate return codes accordingly. I have improved cla

[PATCH 23/28] drm/panfrost: Remove drm_sched_init_args->num_rqs usage

2025-10-17 Thread Tvrtko Ursulin
Remove member no longer used by the scheduler core. Signed-off-by: Tvrtko Ursulin Cc: Boris Brezillon Cc: Rob Herring Cc: [email protected] --- drivers/gpu/drm/panfrost/panfrost_job.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_job.c b/dr

Re: [PATCH 18/26] drm/xe/pf: Handle GGTT migration data as part of PF control

2025-10-17 Thread Michal Wajdeczko
On 10/11/2025 9:38 PM, Michał Winiarski wrote: > Connect the helpers to allow save and restore of GGTT migration data in > stop_copy / resume device state. > > Signed-off-by: Michał Winiarski > --- > drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c | 13 ++ > .../gpu/drm/xe/xe_gt_sriov_pf_contr

[PATCH v4 23/24] ARM: tegra: add CSI nodes for Tegra20 and Tegra30

2025-10-17 Thread Svyatoslav Ryhel
Add CSI node to Tegra20 and Tegra30 device trees. Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/nvidia/tegra20.dtsi | 19 ++- arch/arm/boot/dts/nvidia/tegra30.dtsi | 24 ++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot

Re: [PATCH] accel/qaic: Add support to export dmabuf fd

2025-10-17 Thread Jeff Hugo
On 10/6/2025 11:38 PM, Youssef Samir wrote: From: Pranjal Ramajor Asha Kanojiya Add support to export BO as DMABUF to enable userspace to reuse buffers and reduce number of copy. Signed-off-by: Pranjal Ramajor Asha Kanojiya Signed-off-by: Youssef Samir Applied to drm-misc-next. -Jeff

[PATCH 2/5] drm/nouveau/uvmm: Allow larger pages

2025-10-17 Thread Mohamed Ahmed
From: Mary Guillemard Now that everything in UVMM knows about the variable page shift, we can select larger values. The proposed approach rely on nouveau_bo::page unless it would cause alignment issues (in which case we fall back to searching an appropriate shift) Co-developed-by: Mohamed Ahmed

[PATCH v8 20/20] mailbox: mtk-cmdq: Remove unsued cmdq_get_shift_pa()

2025-10-17 Thread Jason-JH Lin
Since the mailbox driver data can be obtained using cmdq_get_mbox_priv() and all CMDQ users have transitioned to cmdq_get_mbox_priv(), cmdq_get_shift_pa() can be removed. Signed-off-by: Jason-JH Lin --- drivers/mailbox/mtk-cmdq-mailbox.c | 8 include/linux/mailbox/mtk-cmdq-mailbo

Re: [PATCH v2 3/9] drm/bridge: ite-it6263: handle unsupported InfoFrames

2025-10-17 Thread Dmitry Baryshkov
On Mon, Sep 29, 2025 at 03:56:31PM +0800, Liu Ying wrote: > On 09/28/2025, Dmitry Baryshkov wrote: > > Make hdmi_write_hdmi_infoframe() and hdmi_clear_infoframe() callbacks > > return -EOPNOTSUPP for unsupported InfoFrames and make sure that > > atomic_check() callback doesn't allow unsupported Inf

Panel driver Ilitek ili9881c stopped working since 6.17-rcX

2025-10-17 Thread Sergey Suloev
Hello, The panel driver ili9881c stopped working as soon as Kernel version turned 6.17. It was working well in all 6.16 versions. Please, look at the issue. -- Best regards, Sergey Suloev // Common include for AAPI display &dsi { #address-cells = <1>; #size-cells = <0>; vcc-dsi-supply = <®

[PATCH RESEND v5 0/2] Support for Synaptics TDDI series panels

2025-10-17 Thread Kaustabh Chakraborty
Synaptics' Touch and Display Driver Integration (TDDI) technology [1] employs a single chip for both touchscreen and display capabilities. Such designs reportedly help reducing costs and power consumption. Although the touchscreens, which are powered by Synaptics' Register-Mapped Interface 4 (RMI4

Re: [PATCH v1 1/2] dt-bindings: display: panel: Add Tianma TL121BVMS07-00 panel

2025-10-17 Thread Rob Herring
On Tue, Sep 30, 2025 at 03:50:43PM +0800, Langyan Ye wrote: > Add device tree bindings for the Tianma TL121BVMS07-00 12.1" > MIPI-DSI TFT LCD panel. > > Signed-off-by: Langyan Ye > --- > .../display/panel/tianma,tl121bvms07-00.yaml | 85 +++ > 1 file changed, 85 insertions(+) >

Re: [PATCH 3/7] drm/bridge: lock the encoder bridge chain mutex during insertion

2025-10-17 Thread Maxime Ripard
On Fri, Sep 26, 2025 at 05:59:44PM +0200, Luca Ceresoli wrote: > drm_bridge_attach() modifies the encoder bridge chain, so take a mutex > around such operations to allow users of the chain to protect themselves > from chain modifications while iterating. > > This change does not apply to drm_bridg

[PATCH 4/7] drm/bridge: lock the encoder chain in scoped for_each loops

2025-10-17 Thread Luca Ceresoli
drm_for_each_bridge_in_chain_scoped() and drm_for_each_bridge_in_chain_from() currently get/put the bridge at each iteration. But they don't protect the encoder chain, so it could change (bridges added/removed) while some code is iterating over the list itself. To make iterations safe, change the l

Re: [PATCH v7.1 2/4] gpu: nova-core: bitfield: Move bitfield-specific code from register! into new macro

2025-10-17 Thread Yury Norov
On Thu, Oct 16, 2025 at 11:13:21AM -0400, Joel Fernandes wrote: > Move the bitfield-specific code from the register macro into a new macro > called bitfield. This will be used to define structs with bitfields, > similar to C language. Can you please fix line length issues before v8? $ awk '{print

Re: [PATCH v5 03/14] gpu: nova-core: gsp: Create wpr metadata

2025-10-17 Thread Miguel Ojeda
On Fri, Oct 17, 2025 at 1:11 AM Danilo Krummrich wrote: > > Since nova-core depends on CONFIG_64BIT, I think we want a helper function > that > converts usize to u64 infallibly. > > This helper function can simply generate a compile time error, when > !CONFIG_64BIT, etc. > > We can do this locall

Re: [PATCH v4 10/14] drm/panfrost: Expose the selected coherency protocol to the UMD

2025-10-17 Thread Steven Price
On 15/10/2025 17:03, Boris Brezillon wrote: > Will be needed if we want to skip CPU cache maintenance operations when > the GPU can snoop CPU caches. > > v2: > - New commit > > v3: > - Fix the coherency values (enum instead of bitmask) > > v4: > - Fix init/test on coherency_features > > Signed-

[email protected]

2025-10-17 Thread Damon Ding
The callback &analogix_dp_plat_data.get_modes() is not implemented by either Rockchip side or Exynos side. Signed-off-by: Damon Ding Tested-by: Marek Szyprowski --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 3 --- include/drm/bridge/analogix_dp.h | 2 -- 2 files cha

[PATCH v3 1/7] drm/sched: Add pending job list iterator

2025-10-17 Thread Matthew Brost
Stop open coding pending job list in drivers. Add pending job list iterator which safely walks DRM scheduler list asserting DRM scheduler is stopped. v2: - Fix checkpatch (CI) v3: - Drop locked version (Christian) Signed-off-by: Matthew Brost --- include/drm/gpu_scheduler.h | 52 +

Re: [PATCH] drm/syncobj: [RFC] Propagate fence errors to userspace

2025-10-17 Thread Dave Airlie
Just adding Christian and Faith, who might have some more comments. On Fri, 10 Oct 2025 at 06:04, Zack Rusin wrote: > > Propagate the fence errors from drivers to userspace. Allows userspace to > react to asynchronous errors coming from the drivers. > > One of the trickiest bits of drm syncobj in

[PATCH] fbdev: udlfb: make CONFIG_FB_DEVICE optional

2025-10-17 Thread Sukrut Heroorkar
The udlfb driver exposes sysfs attributes thus depends upon CONFIG_FB_DEVICE. This patch work wraps relavent code blocks with #ifdef CONFIG_FB_DEVICE so that the driver can still be built even when CONFIG_FB_DEVICE is not selected. This addresses an item in Documentation/gpu/TODO.rst. Signed-off-

[RFC PATCH v2 0/4] Fix DRM scheduler layering violations in Xe

2025-10-17 Thread Matthew Brost
At XDC, we discussed that drivers should avoid accessing DRM scheduler internals, misusing DRM scheduler locks, and adopt a well-defined pending job list iterator. This series proposes the necessary changes to the DRM scheduler to bring Xe in line with that agreement and updates Xe to use the new D

[PATCH v2 06/19 5.15.y] minmax: add a few more MIN_T/MAX_T users

2025-10-17 Thread Eliav Farber
From: Linus Torvalds [ Upstream commit 4477b39c32fdc03363affef4b11d48391e6dc9ff ] Commit 3a7e02c040b1 ("minmax: avoid overly complicated constant expressions in VM code") added the simpler MIN_T/MAX_T macros in order to avoid some excessive expansion from the rather complicated regular min/max m

Re: [PATCH v6 23/25] drm/xe: Compute dumb-buffer sizes with drm_mode_size_dumb()

2025-10-17 Thread Lucas De Marchi
On Thu, Aug 21, 2025 at 10:17:30AM +0200, Thomas Zimmermann wrote: Call drm_mode_size_dumb() to compute dumb-buffer scanline pitch and buffer size. Align the pitch to a multiple of 8. Align the buffer size according to hardware requirements. Xe's internal calculation allowed for 64-bit wide buff

Re: [PATCH RFC v2 0/2] Async Flip in Atomic ioctl corrections

2025-10-17 Thread Murthy, Arun R
On 10-10-2025 19:02, Ville Syrjälä wrote: On Fri, Oct 10, 2025 at 02:15:57PM +0530, Arun R Murthy wrote: struct drm_crtc_state { /** * @async_flip: * * This is set when DRM_MODE_PAGE_FLIP_ASYNC is set in the legacy * PAGE_FLIP IOCTL. It's not

Re: [PATCH] drm/vgem-fence: Fix potential deadlock on release

2025-10-17 Thread Janusz Krzysztofik
Hi Christian, Thank you for looking at it and providing your R-b. On Sunday, 28 September 2025 16:00:57 CEST Christian König wrote: > On 26.09.25 17:26, Janusz Krzysztofik wrote: > > A timer that expires a vgem fence automatically in 10 seconds is now > > released with timer_delete_sync() from fe

[PATCH v4 0/8] MT8196 GPU Frequency/Power Control Support

2025-10-17 Thread Nicolas Frattaroli
This series introduces two new drivers to accomplish controlling the frequency and power of the Mali GPU on MediaTek MT8196 SoCs. The reason why it's not as straightforward as with other SoCs is that the MT8196 has quite complex glue logic in order to squeeze the maximum amount of performance poss

Re: [PATCH v2] drm/client: Remove holds_console_lock parameter from suspend/resume

2025-10-17 Thread Thomas Zimmermann
Reviewed-by: Lyude Paul via irc: https://people.freedesktop.org/~cbrill/dri-log/?channel=nouveau&highlight_names=&date=2025-10-13&show_html=true Am 01.10.25 um 16:37 schrieb Thomas Zimmermann: No caller of the client resume/suspend helpers holds the console lock. The last such cases were rem

[PATCH v5 05/39] drm/atomic: Convert drm_atomic_get_plane_state() to use new plane state

2025-10-17 Thread Maxime Ripard
The drm_atomic_get_plane_state() function calls the deprecated drm_atomic_get_existing_plane_state() helper to get find if a plane state had already been allocated and was part of the given drm_atomic_state. At the point in time where drm_atomic_get_plane_state() can be called (ie, during atomic_c

[PATCH v2 11/12] drm/ast: Move Gen7 device initialization into separate helper

2025-10-17 Thread Thomas Zimmermann
Split off device initialization for Gen7 hardware into the helpers ast_2600_device_create() and ast_2600_detect_wide_screen(). The new functions are duplicates of their counterparts in ast_main.c, but stripped from most non-Gen7 support. Simplifies maintenance as the driver's number of supported h

Re: [PATCH v2 2/3] arm64: dts: renesas: r8a77960: Add GX6250 GPU node

2025-10-17 Thread Marek Vasut
On 10/16/25 12:14 PM, Geert Uytterhoeven wrote: Hello Geert, which are also never disabled, do we want to disable the GPU by default and enable per-board ? Yes please. We do the same with renesas,*-mali GPU nodes. The board may not even have graphical output. Or do you envision using the GPU

[PATCH v3 07/11] drm/rcar-du: dsi: Clean up TXVMPSPHSETR DT macros

2025-10-17 Thread Marek Vasut
Introduce TXVMPSPHSETR_DT_MASK macro and use FIELD_PREP() to generate appropriate bitfield from mask and value without bitshift. Do not convert bits and bitfields to BIT() and GENMASK() yet, to be consisten with the current style. Conversion to BIT() and GENMASK() macros is done at the very end of

Re: [PATCH] drm/amd/display: Fix unsafe uses of kernel mode FPU

2025-10-17 Thread Christian König
On 02.10.25 23:00, Ard Biesheuvel wrote: > From: Ard Biesheuvel > > The point of isolating code that uses kernel mode FPU in separate > compilation units is to ensure that even implicit uses of, e.g., SIMD > registers for spilling occur only in a context where this is permitted, > i.e., from insi

drm/xe: Linker errors on configfs symbols

2025-10-17 Thread Dave Hansen
With a stock 6.17-rc7 and this config: https://hansen.beer/~dave/intel/config.xe.20250924 I'm seeing: ld: vmlinux.o: in function `check_sw_disable': .../linux.runme/drivers/gpu/drm/xe/xe_hw_engine.c:812: undefined reference to `xe_configfs_get_engines_allowed' ld: vmlinux.o: in function

Re: [PATCH] drm/panthor: attach the driver's multiple power domains

2025-10-17 Thread Boris Brezillon
Hello Rain, On Fri, 10 Oct 2025 17:14:52 +0800 Rain Yang wrote: > On Thu, Oct 09, 2025 at 05:23:20PM +0200, Boris Brezillon wrote: > >On Thu, 9 Oct 2025 23:06:17 +0800 > >Rain Yang wrote: > > > >> On Thu, Oct 09, 2025 at 04:09:29PM +0200, Boris Brezillon wrote: > >> >On Thu, 9 Oct 2025 16:0

[PATCH v6 09/14] phy: qcom: qmp-usbc: Add DP PHY ops for USB/DP switchable Type-C PHYs

2025-10-17 Thread Xiangxu Yin
Define qmp_usbc_dp_phy_ops struct to support DP mode on USB/DP switchable PHYs. Reviewed-by: Dmitry Baryshkov Signed-off-by: Xiangxu Yin --- drivers/phy/qualcomm/phy-qcom-qmp-usbc.c | 194 ++- 1 file changed, 193 insertions(+), 1 deletion(-) diff --git a/drivers/phy

Re: [PATCH] drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies

2025-10-17 Thread Tvrtko Ursulin
A gentle ping - any takers to double check my analysis and review the below? Regards, Tvrtko On 03/10/2025 10:26, Tvrtko Ursulin wrote: Drm_sched_job_add_dependency() consumes the fence reference both on success and failure, so in the latter case the dma_fence_put() on the error path (xarray

[PATCH 3/5] efi/libstub: gop: Initialize screen_info in helper function

2025-10-17 Thread Thomas Zimmermann
Move initialization of screen_info into a single helper function. Frees up space in the main setup helper for adding EDID support. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/firmware/efi/libstub/gop.c | 76 +- 1 file changed, 33 insertions(+),

Re: [PATCH v4 5/7] drm/rockchip: cdn-dp: Add multiple bridges to support PHY port selection

2025-10-17 Thread Chaoyi Chen
On 9/29/2025 5:27 AM, Dmitry Baryshkov wrote: On Sun, Sep 28, 2025 at 05:52:35PM +0800, Chaoyi Chen wrote: On 9/23/2025 9:50 AM, Dmitry Baryshkov wrote: [...] + /* One endpoint may correspond to one HPD bridge. */ + for_each_of_graph_port_endpoint(port, dp_ep) { +

Re: [PATCH 3/3] drm/vmwgfx: Move the validation duplicates hashtable onto the stack

2025-10-17 Thread Zack Rusin
On Fri, Sep 26, 2025 at 3:54 PM Ian Forbes wrote: > > This hashtable is only used under a lock in vmw_execbuf_process and needs > to be cleared before vmw_execbuf_process returns otherwise bad things > happen because the nodes that are stored in the table come from an arena > allocator that is cle

[PATCH 13/29] media: mfc: Add decoder core sync functions

2025-10-17 Thread Himanshu Dewangan
From: Nagaraju Siddineni - Add core command extensions and decoder‑specific commands. - Update core register APIs with helpers for processing‑cycle, DPB, scratch size, SEI, black‑bar detection, MVC IDs, profile, display delay, two‑core mode, and inline utilities for crop info, tag updates, migrat

[PATCH] drm/bridge: dw-hdmi-qp: Fix spurious IRQ on resume

2025-10-17 Thread Sebastian Reichel
After resume from suspend to RAM, the following splash is generated if the HDMI driver is probed (independent of a connected cable): [ 1194.484052] irq 80: nobody cared (try booting with the "irqpoll" option) [ 1194.484074] CPU: 0 UID: 0 PID: 627 Comm: rtcwake Not tainted 6.17.0-rc7-g96f1a11414b3

[PATCH 4/4] drm/imx/parallel-display: drop unused module alias

2025-10-17 Thread Johan Hovold
The driver has never supported anything but OF probe so drop the unused platform module alias incorrectly added by commit b2da05ff4797 ("imx-drm: parallel-display: Add MODULE_ALIAS()") Signed-off-by: Johan Hovold --- drivers/gpu/drm/imx/ipuv3/parallel-display.c | 1 - 1 file changed, 1 deletion(

[PATCH v3 03/14] drm/prime: Provide default ::{begin, end}_cpu_access() implementations

2025-10-17 Thread Boris Brezillon
Hook-up drm_gem_dmabuf_{begin,end}_cpu_access() to drm_gem_sync() so that drivers relying on the default prime_dmabuf_ops can still have a way to prepare for CPU accesses from outside the UMD. v2: - New commit v3: - Don't return an error on NOP syncs, and document that case in a comment Signed

Re: [PATCH v2 16/23] staging: media: tegra-video: tegra20: simplify format align calculations

2025-10-17 Thread Mikko Perttunen
On Monday, September 22, 2025 4:36 PM Svyatoslav Ryhel wrote: > пн, 22 вер. 2025 р. о 10:27 Mikko Perttunen пише: > > > > On Monday, September 22, 2025 3:30 PM Svyatoslav Ryhel wrote: > > > пн, 22 вер. 2025 р. о 09:23 Mikko Perttunen пише: > > > > > > > > On Monday, September 22, 2025 2:13 PM Svy

Re: [PATCH v3 13/14] drm/panfrost: Add flag to map GEM object Write-Back Cacheable

2025-10-17 Thread Steven Price
On 15/10/2025 14:01, Boris Brezillon wrote: > From: Faith Ekstrand > > Will be used by the UMD to optimize CPU accesses to buffers > that are frequently read by the CPU, or on which the access > pattern makes non-cacheable mappings inefficient. > > Mapping buffers CPU-cached implies taking care

[PATCH 38/39] dt-bindings: clock: support i.MX95 Display Stream CSR module

2025-10-17 Thread Marek Vasut
i.MX95 DISPLAY STREAM_CSR includes registers to control DSI PHY settings. Add dt-schema for it. Signed-off-by: Marek Vasut --- Cc: Abel Vesa Cc: Conor Dooley Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Liu Ying Cc: Lucas Stach Cc: Peng Fan Cc: Pengutronix Kernel Tea

[PATCH 09/28] drm/sched: Remove idle entity from tree

2025-10-17 Thread Tvrtko Ursulin
There is no need to keep entities with no jobs in the tree so lets remove it once the last job is consumed. This keeps the tree smaller which is nicer and more efficient as entities are removed and re-added on every popped job. Apart from that, the upcoming fair scheduling algorithm will rely on t

Re: [PATCH v2 1/7] drm/encoder: add mutex to protect the bridge chain

2025-10-17 Thread Dmitry Baryshkov
On Fri, Oct 03, 2025 at 12:39:23PM +0200, Luca Ceresoli wrote: > The per-encoder bridge chain is currently assumed to be static once it is > fully initialized. Work is in progress to add hot-pluggable bridges, > breaking that assumption. > > With bridge removal, the encoder chain can change withou

[PATCH v2 00/10] drm/rcar-du: dsi: Convert register bits to BIT()/GENMASK() macros

2025-10-17 Thread Marek Vasut
Convert register bits to BIT() macro and bitfields to GENMASK()/FIELD_PREP() macros. Most of this patchset is boring mechanical conversion. Noteworthy patches are 6 and 7 , those introduce handling of DSI mode flags and convert use of DRM_MODE_FLAG_P.SYNC into DRM_MODE_FLAG_N.SYNC, but that shoul

Re: [PATCH v4 08/13] drm/v3d: Fix builds with CONFIG_TRANSPARENT_HUGEPAGE=n

2025-10-17 Thread Boris Brezillon
On Wed, 15 Oct 2025 22:41:59 +0200 Loïc Molinari wrote: > On 15/10/2025 20:17, Boris Brezillon wrote: > > On Wed, 15 Oct 2025 17:30:12 +0200 > > Loïc Molinari wrote: > > > >> Don't declare "super_pages" on builds with CONFIG_TRANSPARENT_HUGEPAGE > >> disabled to prevent build error: > >> > >>

Re: [PATCH v3 01/22] clk: tegra: set CSUS as vi_sensor's gate for Tegra20, Tegra30 and Tegra114

2025-10-17 Thread Mikko Perttunen
On Friday, September 26, 2025 12:16 AM Svyatoslav Ryhel wrote: > The CSUS clock is a clock gate for the output clock signal primarily > sourced from the VI_SENSOR clock. This clock signal is used as an input > MCLK clock for cameras. > > Unlike later Tegra SoCs, the Tegra 20 can change its CSUS pa

[PATCH 2/2] drm/imx: parallel-display: add the bridge before attaching it

2025-10-17 Thread Luca Ceresoli
Invoking drm_bridge_add() is good practice, so add it to this driver. Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Luca Ceresoli --- Note: there is a proposal to make drm_bridge_add() mandatory before drm_bridge_attach(): https://lore.kernel.org/lkml/20

Re: [PATCH] drm: mipi-dsi: Fix an API misuse in mipi_dsi_device_register_full()

2025-10-17 Thread Dmitry Baryshkov
On Fri, Sep 26, 2025 at 05:17:58PM +0800, Haoxiang Li wrote: > mipi_dsi_device_alloc() calls device_initialize() to initialize value > "&dsi->dev". Thus "dsi" should be freed using put_device() in error > handling path. > > Fixes: 068a00233969 ("drm: Add MIPI DSI bus support") > Cc: [email protected]

Re: [PATCH] drm/bridge: analogix_dp: Fix connector status detection for bridges

2025-10-17 Thread Dmitry Baryshkov
On Thu, Oct 09, 2025 at 09:30:28PM +0200, Heiko Stuebner wrote: > Right now if there is a next bridge attached to the analogix-dp controller > the driver always assumes this bridge is connected to something, but this > is of course not always true, as that bridge could also be a hotpluggable > dp p

[PATCH v2 5/7] drm/panel: Add Samsung S6E3FC2X01 DDIC with AMS641RW panel

2025-10-17 Thread David Heidelberg via B4 Relay
From: David Heidelberg Add panel driver used in the OnePlus 6T. No datasheet, based mostly on EDK2 init sequence and the downstream driver. Based on work of: Casey Connolly Joel Selvaraj Nia Espera Signed-off-by: David Heidelberg --- MAINTAINERS

Re: [PATCH 03/39] dt-bindings: display: imx: Document i.MX95 Display Controller processing units

2025-10-17 Thread Liu Ying
On 10/14/2025, Marek Vasut wrote: > On 10/13/25 6:49 PM, Frank Li wrote: > > Hello Frank, > >>> @@ -90,13 +102,15 @@ patternProperties: >>> compatible: >>> const: fsl,imx8qxp-dc-signature >>> >>> - "^tcon@[0-9a-f]+$": >>> + "^tcon(@[0-9a-f]+)?$": >> >> why here allow no addres

[PATCH v2 5/5] drm/ttm: Use common ancestor of evictor and evictee as limit pool

2025-10-17 Thread Natalie Vock
When checking whether to skip certain buffers because they're protected by dmem.low, we're checking the effective protection of the evictee's cgroup, but depending on how the evictor's cgroup relates to the evictee's, the semantics of effective protection values change. When testing against cgroup

[PATCH v4 01/13] gpu: nova-core: Set correct DMA mask

2025-10-17 Thread Alistair Popple
Set the correct DMA mask. Without this DMA will fail on some setups. Signed-off-by: Alistair Popple --- Changes for v4: - Use a const (GPU_DMA_BITS) instead of a magic number Changes for v2: - Update DMA mask to correct value for Ampere/Turing (47 bits) --- drivers/gpu/nova-core/driver.rs |

[PATCH 08/26] drm/xe/pf: Add minimalistic migration descriptor

2025-10-17 Thread Michał Winiarski
The descriptor reuses the KLV format used by GuC and contains metadata that can be used to quickly fail migration when source is incompatible with destination. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/xe/xe_sriov_pf_migration.c| 6 +- .../gpu/drm/xe/xe_sriov_pf_migration_data.c

Re: Adding EDID support to simpledrm on top of the EFI sysfb ?

2025-10-17 Thread Thomas Zimmermann
Hi Am 13.10.25 um 10:04 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Hello Hans, Hi Hans Am 11.10.25 um 12:02 schrieb Hans de Goede: Hi, A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html With t

Re: [PATCH v4 05/10] drm/panfrost: Handle page mapping failure

2025-10-17 Thread Adrián Larumbe
Hi Boris, On 01.10.2025 12:58, Boris Brezillon wrote: > On Wed, 1 Oct 2025 03:20:26 +0100 > Adrián Larumbe wrote: > > > When mapping the pages of a BO, either a heap type at page fault time or > > else a non-heap BO at object creation time, if the ARM page table mapping > > function fails, we un

Re: [PATCH v2 1/2] dt-bindings: gpu: mali-valhall: make mali-supply optional

2025-10-17 Thread Frank Li
On Thu, Oct 09, 2025 at 02:00:43PM +0100, Steven Price wrote: > Series applied to drm-misc-next. I have not seen DT team's acked tag for binding. Frank > > Thanks, > Steve > > On 28/09/2025 10:03, Rain Yang wrote: > > From: Rain Yang > > > > Not all platforms require the mali-supply regulator.

[PATCH v3 06/19 5.15.y] minmax: add a few more MIN_T/MAX_T users

2025-10-17 Thread Eliav Farber
From: Linus Torvalds [ Upstream commit 4477b39c32fdc03363affef4b11d48391e6dc9ff ] Commit 3a7e02c040b1 ("minmax: avoid overly complicated constant expressions in VM code") added the simpler MIN_T/MAX_T macros in order to avoid some excessive expansion from the rather complicated regular min/max m

RE: [PATCH 2/2] dma-buf: improve sg_table debugging hack

2025-10-17 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Monday, October 6, 2025 9:47 AM >To: [email protected]; [email protected]; dri- >[email protected]; [email protected]; >[email protected] >Subject: [PATCH 2/2] dma-buf: imp

[v7 03/16] mm/huge_memory: add device-private THP support to PMD operations

2025-10-17 Thread Balbir Singh
Extend core huge page management functions to handle device-private THP entries. This enables proper handling of large device-private folios in fundamental MM operations. The following functions have been updated: - copy_huge_pmd(): Handle device-private entries during fork/clone - zap_huge_pmd(

[PATCH v5 17/30] dyndbg-API: remove DD_CLASS_TYPE_(DISJOINT|LEVEL)_NAMES and code

2025-10-17 Thread Jim Cromie
Remove the DD_CLASS_TYPE_*_NAMES classmap types and code. These 2 classmap types accept class names at the PARAM interface, for example: echo +DRM_UT_CORE,-DRM_UT_KMS > /sys/module/drm/parameters/debug_names The code works, but its only used by test-dynamic-debug, and wasn't asked for by anyon

Re: [PATCH 2/3] arm64: dts: qcom: qcs8300: add Display Serial Interface device nodes

2025-10-17 Thread Ayushi Makhija
On 9/26/2025 3:32 AM, Dmitry Baryshkov wrote: > On Thu, Sep 25, 2025 at 11:06:01AM +0530, Ayushi Makhija wrote: >> Add device tree nodes for the DSI0 controller with their corresponding >> PHY found on Qualcomm QCS8300 SoC. >> >> Signed-off-by: Ayushi Makhija >> --- >> arch/arm64/boot/dts/qcom/qc

Re: [RFC v2 1/5] drm/ttm: Add getter for some pool properties

2025-10-17 Thread Christian König
On 07.10.25 16:00, Tvrtko Ursulin wrote: >> >> Please not in the header. Neither drivers nor other TTM modules should mess >> with such properties. >> >> That is all internal to the pool. > > Hmm IMHO it is not that bad. Especially that ttm_pool.c and ttm_tt.c need to > have access to them. Alte

Re: [PATCH v2 2/3] arm64: dts: qcom: Add DisplayPort and QMP USB3DP PHY for SM6150

2025-10-17 Thread Xiangxu Yin
On 10/14/2025 6:18 PM, Dmitry Baryshkov wrote: > On Tue, Oct 14, 2025 at 05:42:11PM +0800, Xiangxu Yin via B4 Relay wrote: >> From: Xiangxu Yin >> >> Introduce DisplayPort controller node and associated QMP USB3-DP PHY >> for SM6150 SoC. Update clock and endpoint connections to enable DP >> inte

Re: [PATCH v2] nova-core: vbios: Rework BiosImage to be simpler

2025-10-17 Thread Alexandre Courbot
On Thu Oct 9, 2025 at 9:47 AM JST, Joel Fernandes wrote: > Currently, the BiosImage type in vbios code is implemented as a > type-wrapping enum with the sole purpose of implementing a type that is > common to all specific image types. To make this work, macros were used > to overcome limitations of

Re: [PATCH v5 2/3] drm/virtio: Add support for saving and restoring virtio_gpu_objects

2025-10-17 Thread Dmitry Osipenko
On 10/3/25 08:34, [email protected] wrote: > +int virtio_gpu_object_restore_all(struct virtio_gpu_device *vgdev) > +{ > + struct virtio_gpu_object *bo, *tmp; > + struct virtio_gpu_mem_entry *ents; > + unsigned int nents; > + int ret = 0; > + > + spin_lock(&vgdev->obj_restore

  1   2   3   4   5   6   7   8   9   10   >