[PATCH 2/2] drm/amdgpu: fix gang submission error handling

2025-03-18 Thread Christian König
For the unlikely case that we ran into an ENOMEM while fixing up the gang submission dependencies we can't clean up any more since the gang members are already armed. Fix this by using pre-allocated dependency slots and re-ordering the code. Signed-off-by: Christian König --- drivers/gpu/drm/am

Re: [PATCH v6 2/7] bits: introduce fixed-type genmasks

2025-03-18 Thread Vincent Mailhol
On 19/03/2025 at 01:45, Yury Norov wrote: > On Sat, Mar 08, 2025 at 01:48:49AM +0900, Vincent Mailhol via B4 Relay wrote: >> From: Yury Norov (...) >> +#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l) >> +#define GENMASK_ULL(h, l) GENMASK_TYPE(unsigned long long, h, l) >

Re: [PATCH v4 1/3] drm/display: Update comment on hdmi hotplug helper

2025-03-18 Thread Maxime Ripard
On Mon, 17 Mar 2025 17:12:22 +, David Turner wrote: > Update the comment on drm_atomic_helper_connector_hdmi_hotplug() to > clarify that it must be called for all status updates. > > Signed-off-by: David Turner Reviewed-by: Maxime Ripard Thanks! Maxime

Re: [PATCH v6 4/7] drm/i915: Convert REG_GENMASK*() to fixed-width GENMASK_U*()

2025-03-18 Thread Vincent Mailhol
On 19/03/2025 at 07:32, Jani Nikula wrote: > On Tue, 18 Mar 2025, Yury Norov wrote: >> On Sat, Mar 08, 2025 at 01:48:51AM +0900, Vincent Mailhol via B4 Relay wrote: >>> From: Lucas De Marchi >>> >>> Now that include/linux/bits.h implements fixed-width GENMASK_U*(), use >>> them to implement the i

Re: [PATCH] drm/exynos: fixed a spelling error

2025-03-18 Thread Inki Dae
Hi, Merged. Thanks, Inki Dae 2025년 2월 28일 (금) 오후 11:45, Anindya Sundar Gayen 님이 작성: > Corrected a spelling mistake in the exynos_drm_fimd driver to improve code > readability. No functional changes were made. > > Signed-off-by: Anindya Sundar Gayen > --- > drivers/gpu/drm/exynos/exynos_drm_fi

Re: [PATCH] drm/exynos: exynos7_drm_decon: Consstify struct decon_data

2025-03-18 Thread Inki Dae
Hi Krzysztof, Merged. Thanks, Inki Dae 2025년 3월 18일 (화) 오후 5:19, Krzysztof Kozlowski < krzysztof.kozlow...@linaro.org>님이 작성: > static 'struct decon_data' is only read, so it can be const for code > safety. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpu/drm/exynos/exynos7_drm_decon

Re: [PATCH] Documentation: vgaarbiter: Fix grammar

2025-03-18 Thread Bagas Sanjaya
On Tue, Mar 18, 2025 at 08:43:31AM -0600, Jonathan Corbet wrote: > Bagas Sanjaya writes: > > > From: Pranav Tyagi > > > > Correct grammar issues: > > > > - Fix "co-exist" subject-verb agreement > > - Correct plural form of "server" in context of more than one legacy > > devices > > - Use passi

[PATCH 7/7] rust: drm: gem: shmem: Add share_dma_resv() function

2025-03-18 Thread Daniel Almeida
From: Asahi Lina Allow a GEM object to share another object's DMA reservation, for use with drm_gpuvm. To keep memory safety, we hold a reference to the GEM object owning the resv, and drop it when the child object is freed. Signed-off-by: Asahi Lina Signed-off-by: Daniel Almeida --- rust/ker

RE: [PATCH] drm/exynos/vidi: Remove redundant error handling in vidi_get_modes()

2025-03-18 Thread SR
Hi, > -Original Message- > From: Wentao Liang > Sent: Thursday, March 6, 2025 1:27 PM > To: jani.nik...@linux.intel.com; inki@samsung.com; > sw0312@samsung.com; kyungmin.p...@samsung.com; airl...@gmail.com; > sim...@ffwll.ch; k...@kernel.org; alim.akh...@samsung.com > Cc: dri-deve

[PATCH v7 drm-dp 4/9] drm/hisilicon/hibmc: Refactor the member of drm_aux in struct hibmc_dp

2025-03-18 Thread Yongbang Shi
From: Baihan Li Because the drm_aux of struct hibmc_dp_dev's member is not easy to get in hibmc_drm_dp.c, move the drm_aux to struct hibmc_dp. Then there are some adaptations and modifications to make this patch compile. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry

[PATCH v7 drm-dp 8/9] drm/hisilicon/hibmc: Add MSI irq getting and requesting for HPD

2025-03-18 Thread Yongbang Shi
From: Baihan Li To realize HPD feature, request irq for HPD , add its handler function. We use pci_alloc_irq_vectors() to get our msi irq, because we have two interrupts now. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v4 -> v5: - remove

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

2025-03-18 Thread Yongbang Shi
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 Nikula v6: https://lore.kernel.org/all/20250310040138.2025715-1-s

[PATCH v7 drm-dp 1/9] drm/hisilicon/hibmc: Restructuring the header dp_reg.h

2025-03-18 Thread Yongbang Shi
From: Baihan Li Move the macros below their corresponding registers to make them more obvious. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v2 -> v3: - restructuring the header dp_reg.h, suggested by Dmitry Baryshkov. --- drivers/gpu/drm

[PATCH v7 drm-dp 9/9] drm/hisilicon/hibmc: Add vga connector detect functions

2025-03-18 Thread Yongbang Shi
From: Baihan Li Because the connected VGA connector would make driver can't get the userspace call, adding detect_ctx in vga connector to make HPD active userspace. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/hisilicon/hibmc/hibmc_dr

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

2025-03-18 Thread Yongbang Shi
From: Baihan Li Add registering drm_aux and use it to get connector edid with drm functions. Add ddc channel in connector initialization to put drm_aux in drm_connector. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v6 -> v7: - add if stat

[PATCH v7 drm-dp 7/9] drm/hisilicon/hibmc: Enable this hot plug detect of irq feature

2025-03-18 Thread Yongbang Shi
From: Baihan Li Add HPD interrupt enable functions in drm framework, and also add detect_ctx functions. Because of the debouncing when HPD pulled out, add 200 ms delay in detect. Add link reset process to reset link status when a new connector pulgged in. Signed-off-by: Baihan Li Signed-off-by:

[PATCH v7 drm-dp 3/9] drm/hisilicon/hibmc: Add dp serdes cfg in dp process

2025-03-18 Thread Yongbang Shi
From: Baihan Li Add dp serdes cfg in link training process, and related adapting and modificating. Change some init values about training, because we want completely to negotiation process, so we start with the maximum rate and the electrical characteristic level is 0. Because serdes default cfgs

[PATCH v7 drm-dp 6/9] drm/hisilicon/hibmc: Add colorbar-cfg feature and its debugfs file

2025-03-18 Thread Yongbang Shi
From: Baihan Li DP controller can support generating a color bar signal over the DisplayPort interface. This can be useful to check for possible DDR or GPU problems, as the signal generator resides completely in the DP block. Add debugfs file that controls colorbar generator. echo: config the co

[PATCH v7 drm-dp 2/9] drm/hisilicon/hibmc: Add dp serdes cfg to adjust serdes rate, voltage and pre-emphasis

2025-03-18 Thread Yongbang Shi
From: Baihan Li This dp controller need features of digital-to-analog conversion and high-speed transmission in chip by its extern serdes controller. Our serdes cfg is relatively simple, just need two register configurations. Don't need too much functions, like: power on/off, initialize, and some

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

2025-03-18 Thread Zack Rusin
On Fri, Jan 31, 2025 at 3:04 PM Ian Forbes wrote: > > 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

Re: [PATCH v2] drm/vmwgfx: Fix dumb buffer leak

2025-03-18 Thread Zack Rusin
On Thu, Jan 23, 2025 at 3:44 PM Ian Forbes wrote: > > Dumb buffers were not being freed because the GEM reference that was > acquired in gb_surface_define was not dropped like it is in the 2D case. > Dropping this ref uncovered a few additional issues with freeing the > resources associated with d

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

2025-03-18 Thread Helen Mae Koike Fornazier
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 mesa to fix this issue. > > [1] https://gitlab.com/lava/lav

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

2025-03-18 Thread Danila Chernetsov
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 driver") Signed-off-by: Danila Chernetsov ---

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

2025-03-18 Thread Yury Norov
+ Catalin Marinas, ARM maillist Hi Catalin and everyone, 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 shortly. Now it's more than half a year since that. There's no user

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

2025-03-18 Thread Jianxun Zhang
On 3/18/25 11:12, Cavitt, Jonathan wrote: -Original Message- From: Zhang, Jianxun Sent: Tuesday, March 18, 2025 10:48 AM To: Cavitt, Jonathan ; intel...@lists.freedesktop.org Cc: Gupta, saurabhg ; Zuo, Alex ; joonas.lahti...@linux.intel.com; Brost, Matthew ; Lin, Shuicheng ; dri-dev

Re: [PATCH v5 3/3] drm/i915: Fix harmful driver register/unregister asymmetry

2025-03-18 Thread Andi Shyti
Hi Janusz, ... > @@ -634,10 +635,14 @@ static void i915_driver_register(struct > drm_i915_private *dev_priv) > intel_vgpu_register(dev_priv); > > /* Reveal our presence to userspace */ > - if (drm_dev_register(&dev_priv->drm, 0)) { > + ret = drm_dev_register(&dev_priv->drm,

Re: [PATCH v5 2/3] drm/i915: Fix PXP cleanup missing from probe error rewind

2025-03-18 Thread Andi Shyti
Hi Janusz, On Fri, Mar 14, 2025 at 09:38:34PM +0100, Janusz Krzysztofik wrote: > Commit f67986b0119c04 ("drm/i915/pxp: Promote pxp subsystem to top-level > of i915") added PXP initialization to driver probe path, but didn't add a > respective PXP cleanup on probe error. That lack of cleanup seems

Re: [PATCH v5 1/3] drm/i915: Downgrade device register error if injected

2025-03-18 Thread Andi Shyti
Hi Janusz, On Fri, Mar 14, 2025 at 09:38:33PM +0100, Janusz Krzysztofik wrote: > Commit 8f460e2c78f2 ("drm/i915: Demidlayer driver loading") which > introduced manual device registration also added a message that is > submitted on device registration failure as an error. If that failure is > trig

[Bug 219895] amdgpu spamming log [drm] scheduler comp_1.0.1 is not ready, skipping and becoming slow

2025-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219895 --- Comment #1 from Kasper Sandberg (kont...@sandberg-consult.dk) --- I should note that when its in this state, its also slow to read the sensor readings using lmsensors, the following block: amdgpu-pci-0700 Adapter: PCI adapter vddgfx:1

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

2025-03-18 Thread Benno Lossin
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, value: T, flags: Flags) -> >> Result<(), AllocError> { >> +if new_len > self.len() { >> +self.extend_with(new

[Bug 219895] New: amdgpu spamming log [drm] scheduler comp_1.0.1 is not ready, skipping and becoming slow

2025-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219895 Bug ID: 219895 Summary: amdgpu spamming log [drm] scheduler comp_1.0.1 is not ready, skipping and becoming slow Product: Drivers Version: 2.5 Hardware: AMD

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

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

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

2025-03-18 Thread Dmitry Baryshkov
On Tue, Mar 18, 2025 at 10:50:10AM +0800, Yongbang Shi wrote: > Gently ping! > > Hi, Dmitry. There is no more comment for this patch set for one week, I > wonder, > could this patch be applied, or wait for more comments. Currently FDO is in process of migration, so we have a cooldown period of a

[PATCH 37/40] drm/amd/display: Protect dml2_create()/dml2_copy()/dml2_create_copy()

2025-03-18 Thread Huacai Chen
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_create_copy() are not protected from their

[PATCH] drm/imagination: take paired job reference

2025-03-18 Thread Brendan King via B4 Relay
R_JOB_TYPE_FRAGMENT && job->paired_job) + pvr_job_put(job->paired_job); + job->paired_job = NULL; pvr_job_put(job); } --- base-commit: 96c85e428ebaeacd2c640eba075479ab92072ccd change-id: 20250318-ddkopsrc-1337-use-after-free-in-pvr_queue_prepare_job-16f

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

2025-03-18 Thread Michal Wajdeczko
On 18.03.2025 21:12, Cavitt, Jonathan wrote: > -Original Message- > From: Wajdeczko, Michal > Sent: Tuesday, March 18, 2025 11:38 AM > To: Cavitt, Jonathan ; > intel...@lists.freedesktop.org; Roper, Matthew D > Cc: Gupta, saurabhg ; Zuo, Alex > ; joonas.lahti...@linux.intel.com; Bro

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Check bridge connection failure

2025-03-18 Thread Wolfram Sang
Hi Laurent, > > Read out and check the ID registers, so we can bail out if I2C > > communication does not work or if the device is unknown. > > What's the advantage of that, what are you trying to guard against ? That a random chip at address 0x2c will be used. > > Tested on a > > Renesas GrayH

Re: [PATCH v6 4/7] drm/i915: Convert REG_GENMASK*() to fixed-width GENMASK_U*()

2025-03-18 Thread Jani Nikula
On Tue, 18 Mar 2025, Yury Norov wrote: > On Sat, Mar 08, 2025 at 01:48:51AM +0900, Vincent Mailhol via B4 Relay wrote: >> From: Lucas De Marchi >> >> Now that include/linux/bits.h implements fixed-width GENMASK_U*(), use >> them to implement the i915/xe specific macros. Converting each driver >>

Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks

2025-03-18 Thread Dmitry Baryshkov
On Tue, Mar 18, 2025 at 01:37:23PM +, Suzuki K Poulose wrote: > On 18/03/2025 12:19, Dmitry Baryshkov wrote: > > On Tue, Mar 18, 2025 at 10:38:17AM +, Suzuki K Poulose wrote: > > > On 17/03/2025 17:44, Dmitry Baryshkov wrote: > > > > > > nit: Subject: > > > > > > s/qcom,coresight-static-r

Re: [PATCH v2] dt-bindings: gpu: arm,mali-midgard: add exynos7870-mali compatible

2025-03-18 Thread Rob Herring (Arm)
On Tue, 18 Mar 2025 23:01:09 +0530, Kaustabh Chakraborty wrote: > Exynos7870 SoC uses the ARM Mali T830 GPU, document its compatible > string with the appropriate fallback. The T830 compatible is already > defined in the panfrost driver, but was commented out as it was unused. > > Reviewed-by: K

[PATCH v9 5/6] drm/xe/xe_vm: Add per VM fault info

2025-03-18 Thread Jonathan Cavitt
Add additional information to each VM so they can report up to the first 50 seen faults. Only pagefaults are saved this way currently, though in the future, all faults should be tracked by the VM for future reporting. Additionally, of the pagefaults reported, only failed pagefaults are saved this

[PATCH 5/7] drm/syncobj: Avoid temporary allocation in drm_syncobj_timeline_signal_ioctl

2025-03-18 Thread Tvrtko Ursulin
We can avoid one of the two temporary allocations if we read the userspace supplied timeline points as we go along. The only new complication is to unwind unused fence chains on the error path, but even that code was already present in the function. Signed-off-by: Tvrtko Ursulin --- drivers/gpu

[PATCH 2/7] drm/syncobj: Do not allocate an array to store zeros when waiting

2025-03-18 Thread Tvrtko Ursulin
When waiting on syncobjs the current code allocates a temporary array only to fill it up with all zeros. We can avoid that by relying on the allocated entry array already being zero allocated. For the timeline mode we can fetch the timeline point values as we populate the entries array so also do

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Check bridge connection failure

2025-03-18 Thread Laurent Pinchart
Hi Wolfram, Thank you for the patch. On Tue, Mar 18, 2025 at 04:52:56PM +0100, Wolfram Sang wrote: > Read out and check the ID registers, so we can bail out if I2C > communication does not work or if the device is unknown. What's the advantage of that, what are you trying to guard against ? > T

Re: [PATCH v3 1/2] dt-bindings: drm/bridge: Add no-hpd property

2025-03-18 Thread Dmitry Baryshkov
On Tue, Mar 18, 2025 at 05:49:54PM +0200, Tomi Valkeinen wrote: > Hi, > > On 12/03/2025 14:52, Dmitry Baryshkov wrote: > > On Wed, Mar 12, 2025 at 11:56:41AM +0530, Harikrishna Shenoy wrote: > > > > > > > > > On 05/02/25 19:03, Dmitry Baryshkov wrote: > > > > On Wed, Feb 05, 2025 at 12:52:52PM +

Re: [PATCH v6 1/5] drm/v3d: Associate a V3D tech revision to all supported devices

2025-03-18 Thread kernel test robot
Hi Maíra, kernel test robot noticed the following build warnings: [auto build test WARNING on 83a0237859bc5a9e0a716e1db8e7fd3cafd63259] url: https://github.com/intel-lab-lkp/linux/commits/Ma-ra-Canal/drm-v3d-Associate-a-V3D-tech-revision-to-all-supported-devices/20250318-090556 base

Re: [PATCH v4 0/7] Support for GPU ACD feature on Adreno X1-85

2025-03-18 Thread Anthony Ruhier
Using this patch serie on 6.14-rc (tested over multiple RCs, up to rc7) on a Yoga Slim 7x (x1e80100), I often get a video output freeze a few seconds after my wayland compositor loads. I can still ssh into the laptop. I get these kernel errors in loop: msm_dpu ae01000.display-controller: [

[PATCH 3/7] rust: helpers: Add bindings/wrappers for dma_resv_lock

2025-03-18 Thread Daniel Almeida
From: Asahi Lina This is just for basic usage in the DRM shmem abstractions for implied locking, not intended as a full DMA Reservation abstraction yet. Signed-off-by: Asahi Lina Signed-off-by: Daniel Almeida --- rust/bindings/bindings_helper.h | 1 + rust/helpers/dma-resv.c | 13 +++

Re: [PATCH v3 1/2] dt-bindings: drm/bridge: Add no-hpd property

2025-03-18 Thread Doug Anderson
Hi, On Tue, Mar 18, 2025 at 8:50 AM Tomi Valkeinen wrote: > > Hi, > > On 12/03/2025 14:52, Dmitry Baryshkov wrote: > > On Wed, Mar 12, 2025 at 11:56:41AM +0530, Harikrishna Shenoy wrote: > >> > >> > >> On 05/02/25 19:03, Dmitry Baryshkov wrote: > >>> On Wed, Feb 05, 2025 at 12:52:52PM +0100, Krzy

[PATCH 29/29] fbdev: omapfb: Add 'plane' value check

2025-03-18 Thread Leonid Arapov
Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it cannot take this value so it's not a real problem. For the purposes of defensive coding

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

2025-03-18 Thread 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... Signed-off-by: Asahi Lina Signed-off-by: Daniel Almeida --- drivers/gpu/drm/drm_gem_shme

[PATCH 1/7] drm/shmem-helper: Add lockdep asserts to vmap/vunmap

2025-03-18 Thread Daniel Almeida
From: Asahi Lina Since commit 21aa27ddc582 ("drm/shmem-helper: Switch to reservation lock"), the drm_gem_shmem_vmap and drm_gem_shmem_vunmap functions require that the caller holds the DMA reservation lock for the object. Add lockdep assertions to help validate this. Signed-off-by: Asahi Lina S

[PATCH 6/7] drm/syncobj: Add a fast path to drm_syncobj_array_wait_timeout

2025-03-18 Thread Tvrtko Ursulin
Running the Cyberpunk 2077 benchmark we can observe that waiting on DRM sycobjs is relatively hot, but the 96% of the calls are for a single object. (~4% for two points, and never more than three points. While a more trivial workload like vkmark under Plasma is even more skewed to single point wait

[PATCH 6/7] rust: drm: gem: Add set_exportable() method

2025-03-18 Thread Daniel Almeida
From: Asahi Lina This allows drivers to control whether a given GEM object is allowed to be exported via PRIME to other drivers. Signed-off-by: Asahi Lina Signed-off-by: Daniel Almeida --- rust/kernel/drm/gem/mod.rs | 13 + rust/kernel/drm/gem/shmem.rs | 4 2 files changed

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

2025-03-18 Thread 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 if set to false. It is initialized to true in drm_gem_priva

[PATCH 4/7] rust: drm: gem: shmem: Add DRM shmem helper abstraction

2025-03-18 Thread Daniel Almeida
From: Asahi Lina The DRM shmem helper includes common code useful for drivers which allocate GEM objects as anonymous shmem. Add a Rust abstraction for this. Drivers can choose the raw GEM implementation or the shmem layer, depending on their needs. Signed-off-by: Asahi Lina Signed-off-by: Dani

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

2025-03-18 Thread Dmitry Baryshkov
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:36AM +0200, Dmitry Baryshkov wrote: > > > > On Fri, Mar 14, 2025

Re: [PATCH v1 3/3] drm/ci: arm64.config: mediatek: enable PHY drivers

2025-03-18 Thread Helen Mae Koike Fornazier
Em sex., 14 de mar. de 2025 às 05:59, Vignesh Raman escreveu: > > The mediatek display driver fails to probe on mt8173-elm-hana and > mt8183-kukui-jacuzzi-juniper-sku16 in v6.14-rc4 due to missing PHY > configurations. > > Enable the following PHY drivers for MediaTek platforms: > - CONFIG_PHY_MTK

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

2025-03-18 Thread Michal Wajdeczko
On 18.03.2025 18:11, Jonathan Cavitt wrote: > Move the pagefault struct from xe_gt_pagefault.c to the > xe_gt_pagefault_types.h header file, along with the associated enum values. > > v2: > - Normalize names for common header (Matt Brost) > > v3: > - s/Migrate/Move (Michal W) > - s/xe_pagefaul

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

2025-03-18 Thread Nicolas Dufresne
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, > > > > > > On Fri, 21 Feb 2025 at 11:24, Sumit Garg wrote: > > > > On Tu

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

2025-03-18 Thread Cavitt, Jonathan
-Original Message- From: Zhang, Jianxun Sent: Tuesday, March 18, 2025 10:48 AM 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 v3] drm/bridge: ti-sn65dsi86: Check bridge connection failure

2025-03-18 Thread Doug Anderson
Hi, On Tue, Mar 18, 2025 at 8:56 AM Wolfram Sang wrote: > > Read out and check the ID registers, so we can bail out if I2C > communication does not work or if the device is unknown. Tested on a > Renesas GrayHawk board (R-Car V4M) by using a wrong I2C address and by > not enabling RuntimePM for t

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

2025-03-18 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

[PATCH] pinctrl: PINCTRL_AMDISP should depend on DRM_AMD_ISP

2025-03-18 Thread Geert Uytterhoeven
The AMD Image Signal Processor GPIO pin control functionality is only present on AMD platforms with ISP support, and its platform device is instantiated by the AMD ISP driver. Hence add a dependency on DRM_AMD_ISP, to prevent asking the user about this driver when configuring a kernel that does no

[PATCH v2] dt-bindings: gpu: arm,mali-midgard: add exynos7870-mali compatible

2025-03-18 Thread Kaustabh Chakraborty
Exynos7870 SoC uses the ARM Mali T830 GPU, document its compatible string with the appropriate fallback. The T830 compatible is already defined in the panfrost driver, but was commented out as it was unused. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kaustabh Chakraborty --- This patch seri

[PATCH v9 6/6] drm/sched: Add a basic test for checking credit limit

2025-03-18 Thread Tvrtko Ursulin
Add a basic test for checking whether scheduler respects the configured credit limit. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Danilo Krummrich Cc: Matthew Brost Cc: Philipp Stanner Acked-by: Christian König --- drivers/gpu/drm/scheduler/tests/tests_basic.c | 60 +++

[PATCH v9 1/6] drm/xe/xe_gt_pagefault: Disallow writes to read-only VMAs

2025-03-18 Thread Jonathan Cavitt
The page fault handler should reject write/atomic access to read only VMAs. Add code to handle this in handle_pagefault after the VMA lookup. Fixes: 3d420e9fa848 ("drm/xe: Rework GPU page fault handling") Signed-off-by: Jonathan Cavitt Suggested-by: Matthew Brost --- drivers/gpu/drm/xe/xe_gt_p

[PATCH v9 3/6] drm/sched: Add a simple timeout test

2025-03-18 Thread Tvrtko Ursulin
Add a very simple timeout test which submits a single job and verifies that the timeout handling will run if the backend failed to complete the job in time. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Danilo Krummrich Cc: Matthew Brost Cc: Philipp Stanner Acked-by: Christian König

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

2025-03-18 Thread Jonathan Cavitt
Move the pagefault struct from xe_gt_pagefault.c to the xe_gt_pagefault_types.h header file, along with the associated enum values. v2: - Normalize names for common header (Matt Brost) v3: - s/Migrate/Move (Michal W) - s/xe_pagefault/xe_gt_pagefault (Michal W) - Create new header file, xe_gt_page

Re: [PATCH v6 4/7] drm/i915: Convert REG_GENMASK*() to fixed-width GENMASK_U*()

2025-03-18 Thread Yury Norov
On Sat, Mar 08, 2025 at 01:48:51AM +0900, Vincent Mailhol via B4 Relay wrote: > From: Lucas De Marchi > > Now that include/linux/bits.h implements fixed-width GENMASK_U*(), use > them to implement the i915/xe specific macros. Converting each driver > to use the generic macros are left for later,

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

2025-03-18 Thread Jonathan Cavitt
Add initial declarations for the drm_xe_vm_get_property ioctl. v2: - Expand kernel docs for drm_xe_vm_get_property (Jianxun) Signed-off-by: Jonathan Cavitt Cc: Zhang Jianxun --- include/uapi/drm/xe_drm.h | 80 +++ 1 file changed, 80 insertions(+) diff --git

[PATCH v9 6/6] drm/xe/xe_vm: Implement xe_vm_get_property_ioctl

2025-03-18 Thread Jonathan Cavitt
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. (jcavitt) - Remove unnecessary copy_from_user (Jain

[PATCH v9 4/6] drm/xe/xe_gt_pagefault: Add address_type field to pagefaults

2025-03-18 Thread Jonathan Cavitt
Add a new field to the xe_pagefault struct, address_type, that tracks the type of fault the pagefault incurred. Signed-off-by: Jonathan Cavitt --- drivers/gpu/drm/xe/xe_gt_pagefault.c | 3 +++ drivers/gpu/drm/xe/xe_gt_pagefault_types.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a

[PATCH v9 0/6] drm/xe/xe_vm: Implement xe_vm_get_property_ioctl

2025-03-18 Thread Jonathan Cavitt
Add additional information to each VM so they can report up to the first 50 seen faults. Only pagefaults are saved this way currently, though in the future, all faults should be tracked by the VM for future reporting. Additionally, of the pagefaults reported, only failed pagefaults are saved this

Re: [PATCH] Documentation: vgaarbiter: Fix grammar

2025-03-18 Thread Jonathan Corbet
Bagas Sanjaya writes: > From: Pranav Tyagi > > 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 > > Signed-off-by: Pranav Tyagi >

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

2025-03-18 Thread Dmitry Baryshkov
On Tue, 18 Mar 2025 at 18:55, Anusha Srivatsa wrote: > > On Sun, Mar 16, 2025 at 7:32 PM Dmitry Baryshkov > wrote: >> >> On Sun, Mar 16, 2025 at 02:58:22PM -0400, Anusha Srivatsa wrote: >> > --- >> > drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 36 >> > ++--- >> > 1 f

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

2025-03-18 Thread Anusha Srivatsa
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 -0400, Anusha Srivatsa wrote: > > Move away from using deprecated API and use _multi > > variants if available. Use mipi_dsi_msleep() > > and mipi_dsi_usleep_range() in

Re: [PATCH v6 2/7] bits: introduce fixed-type genmasks

2025-03-18 Thread Yury Norov
On Sat, Mar 08, 2025 at 01:48:49AM +0900, Vincent Mailhol via B4 Relay wrote: > From: Yury Norov > > Add GENMASK_TYPE() which generalizes __GENMASK() to support different > types, and implement fixed-types versions of GENMASK() based on it. > The fixed-type version allows more strict checks to th

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

2025-03-18 Thread Guenter Roeck
On 3/18/25 08:59, Will Deacon wrote: 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/arm64/include/a

[PATCH] Documentation: vgaarbiter: Fix grammar

2025-03-18 Thread Bagas Sanjaya
From: Pranav Tyagi 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 Signed-off-by: Pranav Tyagi Reviewed-by: Bagas Sanjaya Link: https://

Re: [PATCH v6 1/7] bits: split the definition of the asm and non-asm GENMASK()

2025-03-18 Thread Yury Norov
On Sat, Mar 08, 2025 at 06:10:25PM +0900, Vincent Mailhol wrote: > On 08/03/2025 at 02:42, Andy Shevchenko wrote: > > On Sat, Mar 08, 2025 at 01:48:48AM +0900, Vincent Mailhol via B4 Relay > > wrote: > >> From: Vincent Mailhol > >> > >> In an upcoming change, GENMASK() and its friends will indire

Re: [PATCH v6 00/11] mtd: add driver for Intel discrete graphics

2025-03-18 Thread Miquel Raynal
Hello Alexander, On 02/03/2025 at 16:09:10 +02, Alexander Usyskin wrote: > Add driver for access to Intel discrete graphics card > internal NVM device. > Expose device on auxiliary bus by i915 and Xe drivers and > provide mtd driver to register this device with MTD framework. > > This is a rewr

[PATCH 0/7] A few drm_syncobj optimisations

2025-03-18 Thread Tvrtko Ursulin
A small set of drm_syncobj optimisations which should make things a tiny bit more efficient on the CPU side of things. Improvement seems to be around 1.5%* more FPS if observed with "vkgears -present-mailbox" on a Steam Deck Plasma desktop, but I am reluctant to make a definitive claim on the numb

Re: [PATCH v6 1/7] bits: split the definition of the asm and non-asm GENMASK()

2025-03-18 Thread Vincent Mailhol
On 19/03/2025 at 01:06, Yury Norov wrote: > On Sat, Mar 08, 2025 at 06:10:25PM +0900, Vincent Mailhol wrote: >> On 08/03/2025 at 02:42, Andy Shevchenko wrote: >>> On Sat, Mar 08, 2025 at 01:48:48AM +0900, Vincent Mailhol via B4 Relay >>> wrote: From: Vincent Mailhol In an upcoming

Re: [PATCH v2 03/12] dt-bindings: connector: Add the GOcontroll Moduline module slot bindings

2025-03-18 Thread Rob Herring
On Mon, Mar 17, 2025 at 5:42 AM Maud Spierings | GOcontroll wrote: > > From: Krzysztof Kozlowski > Sent: Monday, March 17, 2025 11:34 AM > > >On Sat, Mar 15, 2025 at 07:32:28AM +, Maud Spierings | GOcontroll wrote: > >> >> +required: > >> >> + - compatible > >> >> + - reg > >> >> + - reset

[PATCH 0/4] drm/vc4: tests: Fix locking failures

2025-03-18 Thread Maxime Ripard
files changed, 121 insertions(+), 26 deletions(-) --- base-commit: c0988d693eb10e115d95747f8a083babb3fc change-id: 20250318-drm-vc4-kunit-failures-313b4775c438 Best regards, -- Maxime Ripard

[PATCH 3/7] drm/syncobj: Avoid one temporary allocation in drm_syncobj_array_find

2025-03-18 Thread Tvrtko Ursulin
Drm_syncobj_array_find() helper is used from many userspace ioctl entry points with the task of looking up userspace handles to internal objects. We can easily avoid one temporary allocation by making it read the handles as it is looking them up. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/dr

[syzbot] Monthly dri report (Mar 2025)

2025-03-18 Thread syzbot
Hello dri maintainers/developers, This is a 31-day syzbot report for the dri subsystem. All related reports/information can be found at: https://syzkaller.appspot.com/upstream/s/dri During the period, 0 new issues were detected and 0 were fixed. In total, 20 issues are still open and 32 have alre

Re: [PATCH v2 03/12] dt-bindings: connector: Add the GOcontroll Moduline module slot bindings

2025-03-18 Thread Maud Spierings | GOcontroll
From: Rob Herring Sent: Tuesday, March 18, 2025 4:37 PM   >On Mon, Mar 17, 2025 at 5:42 AM Maud Spierings | GOcontroll > wrote: >> >> From: Krzysztof Kozlowski >> Sent: Monday, March 17, 2025 11:34 AM >> >> >On Sat, Mar 15, 2025 at 07:32:28AM +, Maud Spierings | GOcontroll wrote: >> >> >> +re

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

2025-03-18 Thread Will Deacon
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/arm64/include/asm/bug.h > > > index 28be04

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Check bridge connection failure

2025-03-18 Thread Wolfram Sang
On Tue, Mar 18, 2025 at 04:52:56PM +0100, Wolfram Sang wrote: > Read out and check the ID registers, so we can bail out if I2C > communication does not work or if the device is unknown. Tested on a > Renesas GrayHawk board (R-Car V4M) by using a wrong I2C address and by > not enabling RuntimePM for

[PATCH v3] drm/bridge: ti-sn65dsi86: Check bridge connection failure

2025-03-18 Thread Wolfram Sang
Read out and check the ID registers, so we can bail out if I2C communication does not work or if the device is unknown. Tested on a Renesas GrayHawk board (R-Car V4M) by using a wrong I2C address and by not enabling RuntimePM for the device. Signed-off-by: Wolfram Sang --- Changes since v2: * sw

[PATCH 4/7] drm/syncobj: Use put_user in drm_syncobj_query_ioctl

2025-03-18 Thread Tvrtko Ursulin
Since the query loop is using copy_to_user() to write out a single u64 at a time it feels more natural (and is a tiny bit more compact) to replace it with put_user(). Access_ok() check is added to the input checking for an early bailout in case of a bad buffer passed in. Signed-off-by: Tvrtko Urs

[PATCH 7/7] drm/syncobj: Add a fast path to drm_syncobj_array_find

2025-03-18 Thread Tvrtko Ursulin
Running the Cyberpunk 2077 benchmark we can observe that the lookup helper is relatively hot, but the 97% of the calls are for a single object. (~3% for two points, and never more than three points. While a more trivial workload like vkmark under Plasma is even more skewed to single point lookups.)

[PATCH 1/7] drm/syncobj: Remove unhelpful helper

2025-03-18 Thread Tvrtko Ursulin
Helper which fails to consolidate the code and instead just forks into two copies of the code based on a boolean parameter is not very helpful or readable. Lets just remove it and proof in the pudding is the net smaller code. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/drm_syncobj.c | 98 +

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

2025-03-18 Thread Maxime Ripard
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:36AM +0200, Dmitry Baryshkov wrote: > > > On Fri, Mar 14, 2025 at 08:45:17AM +0100, Maxime Ripard wrote: > > > > On Fri, Mar 14, 2025

Re: [PATCH v3 1/2] dt-bindings: drm/bridge: Add no-hpd property

2025-03-18 Thread Tomi Valkeinen
Hi, On 12/03/2025 14:52, Dmitry Baryshkov wrote: On Wed, Mar 12, 2025 at 11:56:41AM +0530, Harikrishna Shenoy wrote: On 05/02/25 19:03, Dmitry Baryshkov wrote: On Wed, Feb 05, 2025 at 12:52:52PM +0100, Krzysztof Kozlowski wrote: On 05/02/2025 12:50, Harikrishna Shenoy wrote: From: Rahul T

[PATCH] dma-buf/sw_sync: Fix refcount leak in sw_sync_ioctl_get_deadline

2025-03-18 Thread Miaoqian Lin
Fix reference count leak in by adding dma_fence_put() when dma_fence_to_sync_pt() fails after the call to sync_file_get_fence(). Fixes: 70e67aaec2f4 ("dma-buf/sw_sync: Add fence deadline support") Signed-off-by: Miaoqian Lin --- drivers/dma-buf/sw_sync.c | 4 +++- 1 file changed, 3 insertions(+)

[PATCH] drm/imagination: fix firmware memory leaks

2025-03-18 Thread Brendan King via B4 Relay
re_code_obj) pvr_fw_object_destroy(fw_mem->core_code_obj); if (fw_mem->core_data_obj) --- base-commit: 96c85e428ebaeacd2c640eba075479ab92072ccd change-id: 20250318-ddkopsrc-1339-firmware-related-memory-leak-on-module-unload-c18a9a4fd0db Best regards, -- Brendan King

Re: [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device

2025-03-18 Thread Dmitry Baryshkov
On Tue, Mar 18, 2025 at 01:13:23PM +0100, Konrad Dybcio wrote: > On 3/17/25 6:44 PM, Dmitry Baryshkov wrote: > > Use new SoC-specific compatible to the SPS SIC in addition to the > > "syscon" compatible and rename the node to follow the purpose of it. > > > > Signed-off-by: Dmitry Baryshkov > > -

  1   2   >