DRM CI

2025-03-19 Thread Maxime Ripard
Hi, At last Plumbers, we agreed with Dave that a good first step to ramp up CI for DRM trees would be to enable build and kunit testing in the main DRM tree. I played around with it last week and wrote a good first iteration of the gitlab-ci file. https://gitlab.freedesktop.org/mripard/gitlab/-/

Re: [PATCH v4 07/14] arm64: Add support for suppressing warning backtraces

2025-03-19 Thread Guenter Roeck
On 3/19/25 01:05, Christophe Leroy wrote: Le 18/03/2025 à 16:59, Will Deacon a écrit : On Thu, Mar 13, 2025 at 05:40:59PM +0100, Alessandro Carminati wrote: On Thu, Mar 13, 2025 at 1:25 PM Will Deacon wrote: On Thu, Mar 13, 2025 at 11:43:22AM +, Alessandro Carminati wrote: diff --git

Re: [PATCH 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-03-19 Thread Adrián Larumbe
Hi Boris, On 17.03.2025 08:50, Boris Brezillon wrote: > On Sun, 16 Mar 2025 21:51:33 + > Adrián Larumbe wrote: > > > Allow UM to label a BO for which it possesses a DRM handle. > > > > Signed-off-by: Adrián Larumbe > > --- > > drivers/gpu/drm/panthor/panthor_drv.c | 31 +

Re: [PATCH] Documentation: vgaarbiter: Fix grammar

2025-03-19 Thread Maxime Ripard
On Tue, 18 Mar 2025 11:12:50 +0700, Bagas Sanjaya wrote: > Correct grammar issues: > > - Fix "co-exist" subject-verb agreement > - Correct plural form of "server" in context of more than one legacy > devices > - Use passive mood for intro sentence of libpciaccess section > > [...] Applied to m

Re: [PATCH v2 2/3] rust: alloc: add Vec::resize method

2025-03-19 Thread Benno Lossin
On Wed Mar 19, 2025 at 2:42 PM CET, Tamir Duberstein wrote: > On Tue, Mar 18, 2025 at 8:50 PM Benno Lossin wrote: >> >> On Tue Mar 18, 2025 at 9:12 PM CET, Tamir Duberstein wrote: >> > On Sun, Mar 16, 2025 at 7:17 AM Andrew Ballance >> > wrote: >> >> +pub fn resize(&mut self, new_len: usize,

RE: [PATCH v9 2/6] drm/xe/xe_gt_pagefault: Move pagefault struct to header

2025-03-19 Thread Cavitt, Jonathan
-Original Message- From: Wajdeczko, Michal Sent: Tuesday, March 18, 2025 3:02 PM To: Cavitt, Jonathan ; intel...@lists.freedesktop.org Cc: Gupta, saurabhg ; Zuo, Alex ; joonas.lahti...@linux.intel.com; Brost, Matthew ; Zhang, Jianxun ; Lin, Shuicheng ; dri-devel@lists.freedesktop.org;

[PATCH v2 13/34] drm/msm: Split submit_pin_objects()

2025-03-19 Thread Rob Clark
From: Rob Clark For VM_BIND, in the first step, we just want to get the backing pages, but defer creating the vma until the map/unmap/ops are evaluated. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem_submit.c | 27 +++ 1 file changed, 19 insertions(+), 8 delet

[PATCH v2 03/34] drm/gpuvm: Allow VAs to hold soft reference to BOs

2025-03-19 Thread Rob Clark
From: Rob Clark Eases migration for drivers where VAs don't hold hard references to their associated BO, avoiding reference loops. In particular, msm uses soft references to optimistically keep around mappings until the BO is distroyed. Which obviously won't work if the VA (the mapping) is hold

Re: [PATCH v2 2/3] rust: alloc: add Vec::resize method

2025-03-19 Thread Miguel Ojeda
On Wed, Mar 19, 2025 at 5:13 PM Tamir Duberstein wrote: > > No, I meant avoiding the check. The existing code already explicitly > checks `new_len > self.len()` before evaluating `new_len - > self.len()`. This means the check occurs twice. `checked_sub` reduces > the number of checks by 1. Perhaps

Re: [PATCH v2 4/4] drm/panthor: Display heap chunk entries in DebugFS GEMS file

2025-03-19 Thread Boris Brezillon
On Wed, 19 Mar 2025 15:03:19 + Adrián Larumbe wrote: > Expand the driver's DebugFS GEMS file to display entries for the heap > chunks' GEM objects, both those allocated at heap creation time through an > ioctl(), or in response to a tiler OOM event. > > Signed-off-by: Adrián Larumbe > --- >

Re: [PATCH] drm/panel/sharp-ls043t1le01: Use _multi variants

2025-03-19 Thread Anusha Srivatsa
On Tue, 18 Mar 2025 at 12:00 PM, Dmitry Baryshkov < dmitry.barysh...@oss.qualcomm.com> wrote: > On Tue, 18 Mar 2025 at 18:55, Anusha Srivatsa wrote: > > > > On Sun, Mar 16, 2025 at 7:32 PM Dmitry Baryshkov < > dmitry.barysh...@oss.qualcomm.com> wrote: > >> > >> On Sun, Mar 16, 2025 at 02:58:22PM

Re: [PATCH v2 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-03-19 Thread Boris Brezillon
On Wed, 19 Mar 2025 15:03:17 + Adrián Larumbe wrote: > Allow UM to label a BO for which it possesses a DRM handle. > > Signed-off-by: Adrián Larumbe > --- > drivers/gpu/drm/panthor/panthor_drv.c | 37 +++ > include/uapi/drm/panthor_drm.h| 19 ++ >

Re: imx8mp: HDMI display blank/black problems

2025-03-19 Thread Frieder Schrempf
Am 30.10.24 um 9:20 PM schrieb Saravana Kannan: > On Wed, Oct 30, 2024 at 10:28 AM Adam Ford wrote: >> >> On Wed, Oct 30, 2024 at 4:01 AM Frieder Schrempf >> wrote: >>> >>> Hi Johannes, >>> >>> On 25.10.24 10:05 AM, mailingli...@johanneskirchmair.de wrote: [Sie erhalten nicht häufig E-Mails

Re: [PATCH 2/7] drm/gem-shmem: Export VM ops functions

2025-03-19 Thread Christian König
Am 18.03.25 um 20:22 schrieb Daniel Almeida: > From: Asahi Lina > > There doesn't seem to be a way for the Rust bindings to get a > compile-time constant reference to drm_gem_shmem_vm_ops, so we need to > duplicate that structure in Rust... this isn't nice... Well "isn't nice" is an understatemen

Re:Re: [PATCH v5 04/16] drm/atomic: Introduce helper to lookup connector by encoder

2025-03-19 Thread Andy Yan
Hello, At 2025-03-19 03:00:29, "Dmitry Baryshkov" wrote: >On Tue, Mar 18, 2025 at 04:51:19PM +0100, Maxime Ripard wrote: >> On Fri, Mar 14, 2025 at 08:28:22PM +0200, Dmitry Baryshkov wrote: >> > On Fri, Mar 14, 2025 at 06:40:24PM +0100, Maxime Ripard wrote: >> > > On Fri, Mar 14, 2025 at 09:59:3

Re: [PATCH v4 0/6] TEE subsystem for restricted dma-buf allocations

2025-03-19 Thread Jens Wiklander
Hi, On Tue, Mar 18, 2025 at 7:38 PM Nicolas Dufresne wrote: > > Le mardi 04 mars 2025 à 13:15 +0530, Sumit Garg a écrit : > > On Tue, Mar 04, 2025 at 08:17:23AM +0100, Jens Wiklander wrote: > > > Hi Daniel, > > > > > > On Fri, Feb 21, 2025 at 3:12 PM Daniel Stone wrote: > > > > > > > > Hi Sumit,

Re: [PATCH v4 07/14] arm64: Add support for suppressing warning backtraces

2025-03-19 Thread Dan Carpenter
On Wed, Mar 19, 2025 at 09:05:27AM +0100, Christophe Leroy wrote: > > Doesn't sparse and/or checkpatch complain about 0 being used in lieu of NULL > ? Sparse does have a "Using plain integer as NULL pointer" warning, yes. I can't apply this patchset and I haven't been following the conversation

Re: [PATCH v2 16/34] drm/msm: Mark VM as unusable on faults

2025-03-19 Thread Rob Clark
On Wed, Mar 19, 2025 at 9:15 AM Connor Abbott wrote: > > On Wed, Mar 19, 2025 at 10:55 AM Rob Clark wrote: > > > > From: Rob Clark > > > > If userspace has opted-in to VM_BIND, then GPU faults and VM_BIND errors > > will mark the VM as unusable. > > > > Signed-off-by: Rob Clark > > --- > > dri

RE: [PATCH v9 3/6] drm/xe/uapi: Define drm_xe_vm_get_property

2025-03-19 Thread Cavitt, Jonathan
-Original Message- From: Zhang, Jianxun Sent: Wednesday, March 19, 2025 2:02 PM To: Cavitt, Jonathan ; intel...@lists.freedesktop.org Cc: Gupta, saurabhg ; Zuo, Alex ; joonas.lahti...@linux.intel.com; Brost, Matthew ; Lin, Shuicheng ; dri-devel@lists.freedesktop.org; Wajdeczko, Michal

Re: [PATCH v2 00/57] irqdomain: Cleanups and Documentation

2025-03-19 Thread Jiri Slaby
On 19. 03. 25, 11:21, Andy Shevchenko wrote: I am all to support the idea, but in some cases I would think of a bit more work to be done to get rid of the of_fwnode_handle(np) in favour of dev_fwnode(dev). Note, this is based on a brief look, I haven't any example at hand right now. Aah, that's

Re: [PATCH v2 5/7] drm/tests: hdmi: Add macros to simplify EDID setup

2025-03-19 Thread Cristian Ciocaltea
On 3/19/25 5:32 PM, Maxime Ripard wrote: > On Wed, Mar 12, 2025 at 12:44:26AM +0200, Cristian Ciocaltea wrote: >> On 3/11/25 6:12 PM, Maxime Ripard wrote: >>> On Tue, Mar 11, 2025 at 12:57:37PM +0200, Cristian Ciocaltea wrote: Introduce a few macros to facilitate setting custom (i.e. non-defau

Re: [PATCH v8 6/6] drm/xe/xe_vm: Implement xe_vm_get_property_ioctl

2025-03-19 Thread Jianxun Zhang
On 3/13/25 11:34, Jonathan Cavitt wrote: Add support for userspace to request a list of observed faults from a specified VM. v2: - Only allow querying of failed pagefaults (Matt Brost) v3: - Remove unnecessary size parameter from helper function, as it is a property of the arguments. (jca

Re: [PATCH] video: fbdev: sm501fb: Add some geometry checks.

2025-03-19 Thread Helge Deller
On 3/19/25 02:30, Danila Chernetsov wrote: Added checks for xoffset, yoffset settings. Incorrect settings of these parameters can lead to errors in sm501fb_pan_ functions. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 5fc404e47bdf ("[PATCH] fb: SM501 framebuffer drive

Re: [PATCH v9 3/6] drm/xe/uapi: Define drm_xe_vm_get_property

2025-03-19 Thread Jianxun Zhang
On 3/19/25 14:13, Cavitt, Jonathan wrote: -Original Message- From: Zhang, Jianxun Sent: Wednesday, March 19, 2025 2:02 PM To: Cavitt, Jonathan ; intel...@lists.freedesktop.org Cc: Gupta, saurabhg ; Zuo, Alex ; joonas.lahti...@linux.intel.com; Brost, Matthew ; Lin, Shuicheng ; dri-de

Re: [PATCH v2 00/57] irqdomain: Cleanups and Documentation

2025-03-19 Thread Andy Shevchenko
On Wed, Mar 19, 2025 at 11:30 AM Jiri Slaby (SUSE) wrote: > > Hi, > > tl;dr if patches are agreed upon, I ask subsys maintainers to take the > respective ones via their trees (as they are split per subsys), so that > the IRQ tree can take only the rest. That would minimize churn/conflicts > during

Re: [PATCH v2] fbcon: Use static attribute groups for sysfs entries

2025-03-19 Thread Helge Deller
On 3/14/25 09:16, Thomas Zimmermann wrote: Am 14.03.25 um 07:09 schrieb oushixiong1...@163.com: From: Shixiong Ou Using device_create_with_groups() to simplify creation and removal. Same as commit 1083a7be4504 ("tty: Use static attribute groups for sysfs entries"). Signed-off-by: Shixiong Ou

RE: [PATCH] drm/amdgpu: Higher log level for missing PCIe atomics caps

2025-03-19 Thread Daisuke Matsuda (Fujitsu)
On Tue, Mar 18, 2025 5:35 AM Felix Kuehling wrote: > On 2025-03-17 15:07, Deucher, Alexander wrote: > > [Public] > > > >> -Original Message- > >> From: Daisuke Matsuda > >> Sent: Thursday, March 13, 2025 9:18 PM > >> To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; > >>

[PATCH 2/2] misc: fastrpc: add support for gpdsp remoteproc

2025-03-19 Thread Ling Xu
The fastrpc driver has support for 5 types of remoteprocs. There are some products which support GPDSP remoteprocs. Add changes to support GPDSP remoteprocs. Signed-off-by: Ling Xu --- drivers/misc/fastrpc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/m

[PATCH 0/2] Add support for gpdsp remoteproc on sa8775p

2025-03-19 Thread Ling Xu
The fastrpc driver has support for 5 types of remoteprocs. There are some products which support GPDSP remoteprocs. GPDSPs are General Purpose DSPs where tasks can be offloaded. Add changes to support GPDSP remoteprocs and also add GPDSP fastrpc nodes. Ling Xu (2): arm64: dts: qcom: sa8775p: add

Re: [PATCH 1/2] drm/amd/display: Protect dml2_create()/dml2_copy()/dml2_create_copy()

2025-03-19 Thread Huacai Chen
Hi, Alex, On Thu, Mar 20, 2025 at 10:16 AM Alex Hung wrote: > > > > On 3/18/25 05:17, Huacai Chen wrote: > > Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context > > start") removes the FP context protection of dml2_create(), and it said > > "All the DC_FP_START/END should be us

Re: [PATCH 1/2] drm/amd/display: Protect dml2_create()/dml2_copy()/dml2_create_copy()

2025-03-19 Thread Alex Hung
On 3/18/25 05:17, Huacai Chen wrote: Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context start") removes the FP context protection of dml2_create(), and it said "All the DC_FP_START/END should be used before call anything from DML2". However, dml2_create()/dml2_copy()/dml2_

Re: [PATCH v7 drm-dp 0/9] Add HPD, getting EDID, colorbar features in DP function

2025-03-19 Thread Yongbang Shi
On Wed, Mar 19, 2025 at 11:24:26AM +0800, Yongbang Shi wrote: From: Baihan Li To support DP HPD, edid printing, and colorbar display features based on the Hisislcon DP devices. --- ChangeLog: v6 -> v7: - add if statement about drm aux in hibmc_dp_connector_get_modes(), suggested by Jani Nik

Re: [PATCH v2 18/57] irqdomain: gpu: Switch to irq_domain_create_linear()

2025-03-19 Thread Jiri Slaby
On 19. 03. 25, 14:31, Alex Deucher wrote: On Wed, Mar 19, 2025 at 5:44 AM Jiri Slaby (SUSE) wrote: irq_domain_add_linear() is going away as being obsolete now. Switch to the preferred irq_domain_create_linear(). That differs in the first parameter: It takes more generic struct fwnode_handle in

[PATCH v2] drm/nouveau: prime: fix ttm_bo_delayed_delete oops

2025-03-19 Thread Chris Bainbridge
Fix an oops in ttm_bo_delayed_delete which results from dererencing a dangling pointer: Oops: general protection fault, probably for non-canonical address 0x6b6b6b6b6b6b6b7b: [#1] PREEMPT SMP CPU: 4 UID: 0 PID: 1082 Comm: kworker/u65:2 Not tainted 6.14.0-rc4-00267-g505460b44513-dirty #216 H

Re: [PATCH 2/2] drm/amd/display: Protect dml2_validate() from its callers

2025-03-19 Thread Alex Hung
Please see comments for patch 1. On 3/18/25 05:17, Huacai Chen wrote: Similar to dml2_create()/dml2_copy()/dml2_create_copy(), dml2_validate() should also be protected from its callers because "All the DC_FP_START/END should be used before call anything from DML2". So protect dml2_validate() wi

Re: [PATCH v6 drm-dp 5/9] drm/hisilicon/hibmc: Getting connector info and EDID by using AUX channel

2025-03-19 Thread Yongbang Shi
On Mon, 10 Mar 2025, Yongbang Shi wrote: @@ -15,11 +15,17 @@ static int hibmc_dp_connector_get_modes(struct drm_connector *connector) { + struct hibmc_dp *dp = to_hibmc_dp(connector); + const struct drm_edid *drm_edid; int count; - count = drm_add_modes_noedid(c

[PATCH 1/2] arm64: dts: qcom: sa8775p: add GPDSP fastrpc-compute-cb nodes

2025-03-19 Thread Ling Xu
Add GPDSP0 and GPDSP1 fastrpc compute-cb nodes for sa8775p SoC. Signed-off-by: Ling Xu --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 58 +++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 5

Re: linux-next: build failure after merge of the driver-core tree

2025-03-19 Thread Stephen Rothwell
Hi Danilo, On Wed, 19 Mar 2025 12:16:39 +0100 Danilo Krummrich wrote: > > The following diff should fix the below conflict. > > diff --git a/drivers/gpu/nova-core/driver.rs b/drivers/gpu/nova-core/driver.rs > index 63c19f140fbd..a08fb6599267 100644 > --- a/drivers/gpu/nova-core/driver.rs > +++ b

[PATCH v2 18/57] irqdomain: gpu: Switch to irq_domain_create_linear()

2025-03-19 Thread Jiri Slaby (SUSE)
irq_domain_add_linear() is going away as being obsolete now. Switch to the preferred irq_domain_create_linear(). That differs in the first parameter: It takes more generic struct fwnode_handle instead of struct device_node. Therefore, of_fwnode_handle() is added around the parameter. Note some of

[PATCH 05/18] drm/sysfb: Add struct drm_sysfb_device

2025-03-19 Thread Thomas Zimmermann
Add struct drm_sysfb_device that stores the system display's hardware settings. Further helpers for the mode-setting pipeline will use these fields. Convert ofdrm and simpledrm by embedding the sysfb device in their device structs. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/sysfb/Kconf

[PATCH 06/18] drm/sysfb: Provide single mode-init helper

2025-03-19 Thread Thomas Zimmermann
Merge the mode-init functions of ofdrm and simpledrm to the new helper drm_sysfb_mode(). Also implement the DPI defaults there. Replace the code in each driver with the shared helper. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/sysfb/drm_sysfb_helper.c | 24 dri

Re: [PATCH 1/2] drm/sched: add drm_sched_prealloc_dependency_slots

2025-03-19 Thread Christian König
Am 18.03.25 um 13:39 schrieb Danilo Krummrich: > On Tue, Mar 18, 2025 at 01:03:12PM +0100, Christian König wrote: >> /** >> * drm_sched_job_add_dependency - adds the fence as a job dependency >> * @job: scheduler job to add the dependencies to >> @@ -878,10 +910,12 @@ int drm_sched_job_add_dep

[PATCH v9 3/3] drm/i915/display: Add i915 hook for format_mod_supported_async

2025-03-19 Thread Arun R Murthy
Hook up the newly added plane function pointer format_mod_supported_async to populate the modifiers/formats supported by asynchronous flips. v5: Correct the if condition for modifier support check (Chaitanya) v6: Replace uint32_t/uint64_t with u32/u64 (Jani) v7: Move plannar check from intel_async

[PATCH v9 2/3] drm/plane: modify create_in_formats to accommodate async

2025-03-19 Thread Arun R Murthy
create_in_formats creates the list of supported format/modifiers for synchronous flips, modify the same function so as to take the format_mod_supported as argument and create list of format/modifier for async as well. v5: create_in_formats can return -ve value in failure case, correct the if condi

Re: linux-next: build failure after merge of the driver-core tree

2025-03-19 Thread Danilo Krummrich
Hi Stephen, On Wed, Mar 19, 2025 at 08:07:46PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the driver-core tree, today's linux-next build (x86_64 > allmodconfig) failed like this: The following diff should fix the below conflict. diff --git a/drivers/gpu/nova-core/driver.rs b/dri

Re: [PATCH 1/2] drm/sched: add drm_sched_prealloc_dependency_slots

2025-03-19 Thread Christian König
>> + * >> + * Return: >> + * 0 on success, or an error on failing to expand the array. >> + */ >> +int drm_sched_job_prealloc_dependency_slots(struct drm_sched_job >> *job, >> +    unsigned int num_deps) >> +{ >> +struct dma_fence *fence; >> +u32 id = 0;

Re: [PATCH v6 3/5] dt-bindings: gpu: v3d: Add SMS register to BCM2712 compatible

2025-03-19 Thread Stefan Wahren
Hi Maíra, Am 18.03.25 um 02:01 schrieb Maíra Canal: V3D 7.1 exposes a new register block, called V3D_SMS. As BCM2712 has a V3D 7.1 core, add a new register item to its compatible. Similar to the GCA, which is specific for V3D 3.3, SMS should only be added for V3D 7.1 variants (such as brcm,2712-

Re: [PATCH 2/9] dt-bindings: display/msm: describe SFPB device

2025-03-19 Thread Dmitry Baryshkov
On Tue, Mar 18, 2025 at 08:55:59AM +0100, Krzysztof Kozlowski wrote: > On Mon, Mar 17, 2025 at 07:44:37PM +0200, Dmitry Baryshkov wrote: > > Add DT schema for the MultiMedia SubSystem System FPB device, which > > provides several registers to control interface between multimedia > > devices (primar

Re: [PATCH v4 3/8] bits: introduce fixed-type genmasks

2025-03-19 Thread Anshuman Khandual
On 3/19/25 07:16, Yury Norov wrote: > + Catalin Marinas, ARM maillist > > Hi Catalin and everyone, Hello Yury, > > Anshuman Khandual asked me to merge GENMASK_U128() saying it's > important for ARM to stabilize API. While it's a dead code, I > accepted his patch as he promised to add users shor

Re: [PATCH] drm/vmwgfx: Switch to exclusively using GEM references

2025-03-19 Thread Christian König
Am 31.01.25 um 21:03 schrieb Ian Forbes: > Currently we use a combination of TTM and GEM reference counting which is > cumbersome. TTM references are used for kernel internal BOs and operations > like validation. Simply switching the ttm_bo_(get|put) calls to their > GEM equivalents is insufficient

[PATCH v2 44/57] irqdomain: gpu: Switch to irq_find_mapping()

2025-03-19 Thread Jiri Slaby (SUSE)
irq_linear_revmap() is deprecated, so remove all its uses and supersede them by an identical call to irq_find_mapping(). Signed-off-by: Jiri Slaby (SUSE) Cc: Philipp Zabel Cc: David Airlie Cc: Simona Vetter Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/ipu-v3/ipu-common.c | 4 ++-- 1 fi

[PATCH 14/18] drm/sysfb: Add efidrm for EFI displays

2025-03-19 Thread Thomas Zimmermann
Add support for screen_info setups with VIDEO_TYPE_EFI. Provide the minimum functionality of reading modes, updating and clearing the display. There is existing support for these displays provided by simpledrm with CONFIG_SYSFB_SIMPLEFB=y. Using efidrm over simpledrm will allows for the mapping of

[PATCH 11/18] drm/sysfb: Merge primary-plane functions

2025-03-19 Thread Thomas Zimmermann
Merge the primary plane code of ofdrm and simpledrm. Replace the plane implementation in each driver with the shared helpers. Set up driver callbacks and format modifiers with initializer macros. The plane code in ofdrm and simpledrm is very similar. Ofdrm has a more sophisticated implementation o

[PATCH 04/18] drm: Move sysfb drivers into separate subdirectory

2025-03-19 Thread Thomas Zimmermann
The ofdrm and simpledrm drivers are special as they operate on externally provided framebuffers. Move them into their own sub- directory. Will let them share common code. Signed-off-by: Thomas Zimmermann --- MAINTAINERS | 3 +- drivers/gpu/drm/Kconfig

[PATCH 00/18] drm: Provide helpers for system framebuffers and add efidrm/vesadrm

2025-03-19 Thread Thomas Zimmermann
This series simplifies the existing ofdrm and simepldrm drivers, and adds new drivers for EFI- and VESA-based framebuffers. Existing drivers for system framebuffers, ofdrm and simpledrm, share much of their mode-setting pipeline. The major difference between the two drivers is in how they retrieve

[PATCH 07/18] drm/sysfb: Merge mode-config functions

2025-03-19 Thread Thomas Zimmermann
Provide initializer to set struct drm_mode_config_funcs. Convert ofdrm and simpledrm. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/sysfb/drm_sysfb_helper.h | 9 + drivers/gpu/drm/sysfb/ofdrm.c| 4 +--- drivers/gpu/drm/sysfb/simpledrm.c| 4 +--- 3 files changed

[PATCH 02/18] drm/ofdrm: Open-code drm_simple_encoder_init()

2025-03-19 Thread Thomas Zimmermann
The helper drm_simple_encoder_init() is a trivial helper around drm_encoder_init() and therefore deprecated. Open-code the function and remove the dependency. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/ofdrm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --gi

[PATCH 01/18] drm/ofdrm: Remove struct ofdrm_device.pdev

2025-03-19 Thread Thomas Zimmermann
The field pdev is unused. Remove it. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/ofdrm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/ofdrm.c b/drivers/gpu/drm/tiny/ofdrm.c index 13491c0e704a..7469dd281083 100644 --- a/drivers/gpu/drm/tiny/ofdrm.c +++ b/d

[PATCH 18/18] drm/sysfb: vesadrm: Add gamma correction

2025-03-19 Thread Thomas Zimmermann
Add palette support and export GAMMA properties via sysfs. User-space compositors can use this interface for programming gamma ramps or night mode. Vesadrm supports palette updates via VGA DAC registers or VESA palette calls. Up to 256 palette entries are available. Userspace always supplies gamma

Re: [PATCH v4 07/14] arm64: Add support for suppressing warning backtraces

2025-03-19 Thread Christophe Leroy
Le 18/03/2025 à 16:59, Will Deacon a écrit : On Thu, Mar 13, 2025 at 05:40:59PM +0100, Alessandro Carminati wrote: On Thu, Mar 13, 2025 at 1:25 PM Will Deacon wrote: On Thu, Mar 13, 2025 at 11:43:22AM +, Alessandro Carminati wrote: diff --git a/arch/arm64/include/asm/bug.h b/arch/arm6

[PATCH 09/18] drm/sysfb: Maintain CRTC state in struct drm_sysfb_crtc_state

2025-03-19 Thread Thomas Zimmermann
Move ofdrm's struct ofdrm_crtc_state plus functions to sysfb helpers and rename everything to drm_sysfb_crtc_state. The sysfb CRTC state is a regular CRTC state with information on the primary plane's color format, as required for color management. Helpers for sysfb planes will later set this up a

[PATCH 08/18] drm/sysfb: Merge connector functions

2025-03-19 Thread Thomas Zimmermann
Merge the connector functions of ofdrm and simpledrm. Replace the code in each driver with the shared helpers. Set up callbacks with initializer macros. No effective code changes. The sysfb connector only returns the preconfigured display mode. Signed-off-by: Thomas Zimmermann --- drivers/gpu/d

[PATCH 15/18] drm/sysfb: efidrm: Add EDID support

2025-03-19 Thread Thomas Zimmermann
Enable the connector's EDID property if edid_info contains valid data. Exports the EDID via sysfs for user-space compositors. EDID information is not always available. Depending on the system and kernel configuration, it is either provided by the boot loader or read by the kernel during early boot

Re: [PATCH 1/2] dt-bindings: display: simple: Add NLT NL13676BC25-03F panel

2025-03-19 Thread Krzysztof Kozlowski
On Tue, Mar 18, 2025 at 08:58:28AM +0100, Antonin Godard wrote: > Add NLT NL13676BC25-03F 15.6" LCD-TFT LVDS panel compatible string. > > Signed-off-by: Antonin Godard > --- > .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Krz

[PATCH 03/18] drm/simpledrm: Remove struct simpledrm_device.nformats

2025-03-19 Thread Thomas Zimmermann
The field nformats is unused. Remove it. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/simpledrm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c index 5d9ab8adf800..d949713f5ff6 100644 --- a/drivers/gpu/drm/tiny

Re: [PATCH 5/7] drm/gem: Add a flag to control whether objects can be exported

2025-03-19 Thread Christian König
Am 18.03.25 um 20:22 schrieb Daniel Almeida: > From: Asahi Lina > > Drivers may want to support driver-private objects, which cannot be > shared. This allows them to share a single lock and enables other > optimizations. > > Add an `exportable` field to drm_gem_object, which blocks PRIME export >

Re: [PATCH 2/7] drm/gem-shmem: Export VM ops functions

2025-03-19 Thread Christian König
Am 18.03.25 um 20:22 schrieb Daniel Almeida: > From: Asahi Lina > > There doesn't seem to be a way for the Rust bindings to get a > compile-time constant reference to drm_gem_shmem_vm_ops, so we need to > duplicate that structure in Rust... this isn't nice... Well "isn't nice" is an understatemen

Re: [PATCH v7 drm-dp 0/9] Add HPD, getting EDID, colorbar features in DP function

2025-03-19 Thread Dmitry Baryshkov
On Wed, Mar 19, 2025 at 11:24:26AM +0800, Yongbang Shi wrote: > From: Baihan Li > > To support DP HPD, edid printing, and colorbar display features based on > the Hisislcon DP devices. > --- > ChangeLog: > v6 -> v7: > - add if statement about drm aux in hibmc_dp_connector_get_modes(), > sugges

[PATCH v9 1/3] drm/plane: Add new plane property IN_FORMATS_ASYNC

2025-03-19 Thread Arun R Murthy
There exists a property IN_FORMATS which exposes the plane supported modifiers/formats to the user. In some platforms when asynchronous flip are used all of modifiers/formats mentioned in IN_FORMATS are not supported. This patch adds a new plane property IN_FORMATS_ASYNC to expose the async flip su

RE: [PATCH v8 01/14] drm: Define histogram structures exposed to user

2025-03-19 Thread Murthy, Arun R
> On Mon, 3 Mar 2025 13:23:42 +0530 > "Murthy, Arun R" wrote: > > > On 20-02-2025 21:20, Pekka Paalanen wrote: > > > On Wed, 19 Feb 2025 09:28:51 +0530 > > > "Murthy, Arun R" wrote: > > > > > >> On 18-02-2025 21:48, Pekka Paalanen wrote: > > >>> On Tue, 18 Feb 2025 11:13:39 +0530 "Murthy, Arun >

Re: [PATCH 00/18] drm: Provide helpers for system framebuffers and add efidrm/vesadrm

2025-03-19 Thread Thomas Zimmermann
Hi Am 19.03.25 um 13:50 schrieb nerdopolis: On Wednesday, March 19, 2025 3:44:59 AM EDT Thomas Zimmermann wrote: This series simplifies the existing ofdrm and simepldrm drivers, and adds new drivers for EFI- and VESA-based framebuffers. Existing drivers for system framebuffers, ofdrm and simple

Re: [PATCH v1 1/3] drm/ci: uprev mesa

2025-03-19 Thread Vignesh Raman
Hi Helen, On 19/03/25 00:22, Helen Mae Koike Fornazier wrote: Em sex., 14 de mar. de 2025 às 05:59, Vignesh Raman escreveu: LAVA was recently patched [1] with a fix on how parameters are parsed in `lava-test-case`, so we don't need to repeat quotes to send the arguments properly to it. Uprev

[PATCH 17/18] drm/sysfb: vesadrm: Add EDID support

2025-03-19 Thread Thomas Zimmermann
Enable the connector's EDID property if edid_info contains valid data. Exports the EDID via sysfs for user-space compositors. EDID information is not always available. Depending on the system and kernel configuration, it is either provided by the boot loader or read by the kernel during early boot

Re: [PATCH v2] drm/nouveau: prime: fix ttm_bo_delayed_delete oops

2025-03-19 Thread Danilo Krummrich
Hi Chris, Thanks for the fix, few comments below. On Wed, Mar 19, 2025 at 12:54:26PM +, Chris Bainbridge wrote: > Fix an oops in ttm_bo_delayed_delete which results from dererencing a > dangling pointer: > > Oops: general protection fault, probably for non-canonical address > 0x6b6b6b6b6b6b

Re: [PATCH v2] drm/nouveau: prime: fix ttm_bo_delayed_delete oops

2025-03-19 Thread Danilo Krummrich
On Wed, Mar 19, 2025 at 03:06:52PM +0100, Christian König wrote: > Am 19.03.25 um 14:04 schrieb Danilo Krummrich: > > >> Signed-off-by: Chris Bainbridge > >> Co-Developed-by: Christian König > > Then also Christian's SoB is required. > > I only pointed out which two lines in nouveau need to mov

Re: [PATCH v2 2/3] rust: alloc: add Vec::resize method

2025-03-19 Thread Miguel Ojeda
On Wed, Mar 19, 2025 at 4:59 PM Tamir Duberstein wrote: > > If we're talking about the same thing then I think we're both wrong > and the correct phrasing would have been: "you can avoid underflow > checking when CONFIG_RUST_OVERFLOW_CHECKS=y by using `checked_sub`". I > was referring to the under

[PATCH v2 14/34] drm/msm: Lazily create context VM

2025-03-19 Thread Rob Clark
From: Rob Clark In the next commit, a way for userspace to opt-in to userspace managed VM is added. For this to work, we need to defer creation of the VM until it is needed. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 3 ++- drivers/gpu/drm/msm/adreno/adreno_gpu.c

Re: [PATCH v2 2/3] rust: alloc: add Vec::resize method

2025-03-19 Thread Tamir Duberstein
On Wed, Mar 19, 2025 at 12:06 PM Miguel Ojeda wrote: > > On Wed, Mar 19, 2025 at 4:59 PM Tamir Duberstein wrote: > > > > If we're talking about the same thing then I think we're both wrong > > and the correct phrasing would have been: "you can avoid underflow > > checking when CONFIG_RUST_OVERFLO

Re: [PATCH v2 16/34] drm/msm: Mark VM as unusable on faults

2025-03-19 Thread Connor Abbott
On Wed, Mar 19, 2025 at 10:55 AM Rob Clark wrote: > > From: Rob Clark > > If userspace has opted-in to VM_BIND, then GPU faults and VM_BIND errors > will mark the VM as unusable. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gem.h| 17 + > drivers/gpu/drm/

Re: [PATCH v7 00/11] drm/bridge: add devm_drm_bridge_alloc() with bridge refcount

2025-03-19 Thread Maxime Ripard
On Mon, Mar 17, 2025 at 03:56:07PM +0100, Luca Ceresoli wrote: > Hello Maxime, > > On Fri, 14 Mar 2025 19:21:01 +0100 > Maxime Ripard wrote: > > > Hi, > > > > On Fri, Mar 14, 2025 at 11:31:13AM +0100, Luca Ceresoli wrote: > > > This series improves the way DRM bridges are allocated and > > > in

Re: [PATCH 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-03-19 Thread Boris Brezillon
On Wed, 19 Mar 2025 13:49:02 + Adrián Larumbe wrote: > Hi Boris, > > On 17.03.2025 08:50, Boris Brezillon wrote: > > On Sun, 16 Mar 2025 21:51:33 + > > Adrián Larumbe wrote: > > > > > Allow UM to label a BO for which it possesses a DRM handle. > > > > > > Signed-off-by: Adrián Larumbe

Re: DRM CI

2025-03-19 Thread Helen Koike
Hi Maxime, On 19/03/2025 11:11, Maxime Ripard wrote: Hi, At last Plumbers, we agreed with Dave that a good first step to ramp up CI for DRM trees would be to enable build and kunit testing in the main DRM tree. I played around with it last week and wrote a good first iteration of the gitlab-ci

Re: [PATCH v1 2/3] drm/ci: uprev IGT

2025-03-19 Thread Helen Mae Koike Fornazier
Em sex., 14 de mar. de 2025 às 05:59, Vignesh Raman escreveu: > > Uprev IGT to the latest version and update expectation files. > > Signed-off-by: Vignesh Raman It feels that the xfails list is growing more instead of shrinking, well... Acked-by: Helen Koike Thanks Helen > --- > drivers/gpu

Re: [PATCH v4 0/3] drm/tidss: Add OLDI bridge support

2025-03-19 Thread Sverdlin, Alexander
Thank you for the patches, Aradhya! On Sun, 2024-11-24 at 20:06 +0530, Aradhya Bhatia wrote: > Regardless, I'd appreciate it if somebody can test it, and report back if they > observe any issues. I've tried to test the patchset with necessary pre-requisites and DT additions with a single channel

Re: [PATCH v2 2/3] rust: alloc: add Vec::resize method

2025-03-19 Thread Tamir Duberstein
On Wed, Mar 19, 2025 at 12:43 PM Miguel Ojeda wrote: > > On Wed, Mar 19, 2025 at 5:13 PM Tamir Duberstein wrote: > > > > No, I meant avoiding the check. The existing code already explicitly > > checks `new_len > self.len()` before evaluating `new_len - > > self.len()`. This means the check occurs

Re: [PATCH RESEND 0/2] Refactoring the fbcon packed pixel drawing routines

2025-03-19 Thread Helge Deller
On 3/9/25 19:47, Zsolt Kajtar wrote: This is the same patch as before just updated to latest fbdev master and with better description. And hopefully sent intact this time. Zsolt Kajtar (2): Refactoring the fbcon packed pixel drawing routines Adding contact info for packed pixel drawing T

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-03-19 Thread Jason Gunthorpe
On Thu, Mar 13, 2025 at 03:32:14PM +0100, Simona Vetter wrote: > So I think you can still achieve that building on top of revocable and a > few more abstractions that are internally unsafe. Or are you thinking of > different runtime checks? I'm thinking on the access side of the revocable you don

Re: [PATCH v1 1/3] drm/ci: uprev mesa

2025-03-19 Thread Helen Mae Koike Fornazier
Em qua., 19 de mar. de 2025 às 10:24, Vignesh Raman escreveu: > > Hi Helen, > > On 19/03/25 00:22, Helen Mae Koike Fornazier wrote: > > Em sex., 14 de mar. de 2025 às 05:59, Vignesh Raman > > escreveu: > >> > >> LAVA was recently patched [1] with a fix on how parameters are parsed in > >> `lava-t

Re: [PATCH rc] gpu: host1x: Do not assume that a NULL domain means no DMA IOMMU

2025-03-19 Thread Thierry Reding
On Tue, Feb 04, 2025 at 03:18:19PM -0400, Jason Gunthorpe wrote: > Previously with tegra-smmu, even with CONFIG_IOMMU_DMA, the default domain > could have been left as NULL. The NULL domain is specially recognized by > host1x_iommu_attach() as meaning it is not the DMA domain and > should be replac

Re: [PATCH rc] gpu: host1x: Do not assume that a NULL domain means no DMA IOMMU

2025-03-19 Thread Thierry Reding
On Mon, Mar 10, 2025 at 12:34:35PM +, Diogo Ivo wrote: > > Hello again, > > On 2/4/25 7:18 PM, Jason Gunthorpe wrote: > > Previously with tegra-smmu, even with CONFIG_IOMMU_DMA, the default domain > > could have been left as NULL. The NULL domain is specially recognized by > > host1x_iommu_at

Re: [PATCH 4/4] drm/panthor: Display heap chunk entries in DebugFS GEMS file

2025-03-19 Thread Adrián Larumbe
On 17.03.2025 09:31, Boris Brezillon wrote: > On Sun, 16 Mar 2025 21:51:35 + > Adrián Larumbe wrote: > > > Expand the driver's DebugFS GEMS file to display entries for the heap > > chunks' GEM objects, both those allocated at heap creation time through an > > ioctl(), or in response to a tiler

[PATCH v2 09/34] drm/msm: Collapse vma allocation and initialization

2025-03-19 Thread Rob Clark
From: Rob Clark Now that we've dropped vram carveout support, we can collapse vma allocation and initialization. This better matches how things work with drm_gpuvm. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 30 +++--- drivers/gpu/drm/msm/msm_gem.h

[PATCH v2 06/34] drm/msm: Improve msm_context comments

2025-03-19 Thread Rob Clark
From: Rob Clark Just some tidying up. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gpu.h | 44 +++ 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 957d6fb3469d..c699ce0c5

[PATCH v2 07/34] drm/msm: Rename msm_gem_address_space -> msm_gem_vm

2025-03-19 Thread Rob Clark
From: Rob Clark Re-aligning naming to better match drm_gpuvm terminology will make things less confusing at the end of the drm_gpuvm conversion. This is just rename churn, no functional change. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 18 ++-- drivers/gpu/d

[PATCH v2 08/34] drm/msm: Remove vram carveout support

2025-03-19 Thread Rob Clark
From: Rob Clark It is standing in the way of drm_gpuvm / VM_BIND support. Not to mention frequently broken and rarely tested. And I think only needed for a 10yr old not quite upstream SoC (msm8974). Maybe we can add support back in later, but I'm doubtful. Signed-off-by: Rob Clark --- drive

[PATCH v2 10/34] drm/msm: Collapse vma close and delete

2025-03-19 Thread Rob Clark
From: Rob Clark This fits better drm_gpuvm/drm_gpuva. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 16 +++- drivers/gpu/drm/msm/msm_gem_vma.c | 2 ++ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm

[PATCH v2 12/34] drm/msm: Use drm_gpuvm types more

2025-03-19 Thread Rob Clark
From: Rob Clark Most of the driver code doesn't need to reach in to msm specific fields, so just use the drm_gpuvm/drm_gpuva types directly. This should hopefully improve commonality with other drivers and make the code easier to understand. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/ad

[PATCH v2 00/34] drm/msm: sparse / "VM_BIND" support

2025-03-19 Thread Rob Clark
From: Rob Clark Conversion to DRM GPU VA Manager[1], and adding support for Vulkan Sparse Memory[2] in the form of: 1. A new VM_BIND submitqueue type for executing VM MSM_SUBMIT_BO_OP_MAP/ MAP_NULL/UNMAP commands 2. Extending the SUBMIT ioctl to allow submitting batches of one or more MAP

[PATCH v2 01/34] drm/gpuvm: Don't require obj lock in destructor path

2025-03-19 Thread Rob Clark
From: Rob Clark See commit a414fe3a2129 ("drm/msm/gem: Drop obj lock in msm_gem_free_object()") for justification. Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_gpuvm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/d

[PATCH v2 15/34] drm/msm: Add opt-in for VM_BIND

2025-03-19 Thread Rob Clark
From: Rob Clark Add a SET_PARAM for userspace to request to manage to the VM itself, instead of getting a kernel managed VM. In order to transition to a userspace managed VM, this param must be set before any mappings are created. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_g

  1   2   >