[PATCH v4 17/20] gpu: nova-core: compute layout of the FRTS region

2025-05-20 Thread Alexandre Courbot
FWSEC-FRTS is run with the desired address of the FRTS region as parameter, which we need to compute depending on some hardware parameters. Do this in a `FbLayout` structure, that will be later extended to describe more memory regions used to boot the GSP. Signed-off-by: Alexandre Courbot --- d

[PATCH v4 16/20] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Alexandre Courbot
From: Joel Fernandes Add support for navigating and setting up vBIOS ucode data required for GSP to boot. The main data extracted from the vBIOS is the FWSEC-FRTS firmware which runs on the GSP processor. This firmware runs in high secure mode, and sets up the WPR2 (Write protected region) before

[PATCH v4 10/20] gpu: nova-core: add helper function to wait on condition

2025-05-20 Thread Alexandre Courbot
While programming the hardware, we frequently need to busy-wait until a condition (like a given bit of a register to switch value) happens. Add a basic `wait_on` helper function to wait on such conditions expressed as a closure, with a timeout argument. This is temporary as we will switch to `rea

[PATCH v4 19/20] gpu: nova-core: extract FWSEC from BIOS and patch it to run FWSEC-FRTS

2025-05-20 Thread Alexandre Courbot
The FWSEC firmware needs to be extracted from the VBIOS and patched with the desired command, as well as the right signature. Do this so we are ready to load and run this firmware into the GSP falcon and create the FRTS region. [joelagn...@nvidia.com: give better names to FalconAppifHdrV1's fields

[PATCH v4 20/20] gpu: nova-core: load and run FWSEC-FRTS

2025-05-20 Thread Alexandre Courbot
With all the required pieces in place, load FWSEC-FRTS onto the GSP falcon, run it, and check that it successfully carved out the WPR2 region out of framebuffer memory. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/falcon.rs | 3 --- drivers/gpu/nova-core/gpu.rs| 57 +++

[PATCH v4 14/20] gpu: nova-core: add falcon register definitions and base code

2025-05-20 Thread Alexandre Courbot
Add the common Falcon code and HAL for Ampere GPUs, and instantiate the GSP and SEC2 Falcons that will be required to boot the GSP. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/falcon.rs | 560 ++ drivers/gpu/nova-core/falcon/gsp.rs | 22

[PATCH v4 15/20] gpu: nova-core: firmware: add ucode descriptor used by FWSEC-FRTS

2025-05-20 Thread Alexandre Courbot
FWSEC-FRTS is the first firmware we need to run on the GSP falcon in order to initiate the GSP boot process. Introduce the structure that describes it. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/firmware.rs | 43 +++ 1 file changed, 43 insertio

[PATCH v4 04/20] rust: add new `num` module with useful integer operations

2025-05-20 Thread Alexandre Courbot
Introduce the `num` module, featuring the `NumExt` extension trait that expands unsigned integers with useful operations for the kernel. These are to be used by the nova-core driver, but they are so ubiquitous that other drivers should be able to take advantage of them as well. The currently impl

[PATCH v4 01/20] rust: dma: expose the count and size of CoherentAllocation

2025-05-20 Thread Alexandre Courbot
These properties are very useful to have and should be accessible. Signed-off-by: Alexandre Courbot --- rust/kernel/dma.rs | 18 ++ 1 file changed, 18 insertions(+) diff --git a/rust/kernel/dma.rs b/rust/kernel/dma.rs index 605e01e35715667f93297fd9ec49d8e7032e0910..2a60eefa47df

[PATCH v4 07/20] gpu: nova-core: expose the offset of each register as a type constant

2025-05-20 Thread Alexandre Courbot
Although we want to access registers using the provided methods, it is sometimes needed to use their raw offset, for instance when working with a register array. Expose the offset of each register using a type constant to avoid resorting to hardcoded values. Signed-off-by: Alexandre Courbot ---

[PATCH v4 08/20] gpu: nova-core: allow register aliases

2025-05-20 Thread Alexandre Courbot
Some registers (notably scratch registers) don't have a definitive purpose, but need to be interpreted differently depending on context. Expand the register!() macro to support a syntax indicating that a register type should be at the same offset as another one, but under a different name, and wit

[PATCH v4 05/20] gpu: nova-core: use absolute paths in register!() macro

2025-05-20 Thread Alexandre Courbot
Fix the paths that were not absolute to prevent a potential local module from being picked up. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/regs/macros.rs | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/nova-core/regs/macros.rs b/driver

[PATCH v4 02/20] rust: make ETIMEDOUT error available

2025-05-20 Thread Alexandre Courbot
We will use this error in the nova-core driver. Signed-off-by: Alexandre Courbot --- rust/kernel/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 3dee3139fcd4379b94748c0ba1965f4e1865b633..083c7b068cf4e185100de96e520c54437898ee72 100

[PATCH v4 03/20] rust: sizes: add constants up to SZ_2G

2025-05-20 Thread Alexandre Courbot
nova-core will need to use SZ_1M, so make the remaining constants available. Signed-off-by: Alexandre Courbot --- rust/kernel/sizes.rs | 24 1 file changed, 24 insertions(+) diff --git a/rust/kernel/sizes.rs b/rust/kernel/sizes.rs index 834c343e4170f507821b870e77afd08e

[PATCH v4 00/20] nova-core: run FWSEC-FRTS to perform first stage of GSP initialization

2025-05-20 Thread Alexandre Courbot
Hi everyone, New revision addressing the feedback received on v3, and then some. Notably the `register!` macro gets a few new features that add clarity to the code (like register aliases), and the `vbios` module has also been reworked according to feedback. We also now have a HAL in the fb module

Re: [PATCH v3 1/5] drm/panfrost: Add BO labelling to Panfrost

2025-05-20 Thread Boris Brezillon
On Tue, 20 May 2025 18:43:58 +0100 Adrián Larumbe wrote: > Functions for labelling UM-exposed an internal BOs are provided. An > example of the latter would be the Perfcnt sample buffer. > > This commit is done in preparation of a following one that will allow > UM to set BO labels through a new

Re: [PATCH v3 5/5] drm/panfrost: Fix panfrost device variable name in devfreq

2025-05-20 Thread Boris Brezillon
On Tue, 20 May 2025 18:44:02 +0100 Adrián Larumbe wrote: > Commit 64111a0e22a9 ("drm/panfrost: Fix incorrect updating of current > device frequency") was a Panfrost port of a similar fix in Panthor. > > Fix the Panfrost device pointer variable name so that it follows > Panfrost naming convention

Re: [PATCH] drm/msm/dsi/dsi_phy_10nm: Fix missing initial VCO rate

2025-05-20 Thread Krzysztof Kozlowski
On 20/05/2025 22:06, Dmitry Baryshkov wrote: > On Tue, May 20, 2025 at 01:13:26PM +0200, Krzysztof Kozlowski wrote: >> Driver unconditionally saves current state on first init in >> dsi_pll_10nm_init(), but does not save the VCO rate, only some of the >> divider registers. The state is then restor

Re: [PATCH v2 01/12] drm/panelreplay: Panel Replay capability DPCD register definitions

2025-05-20 Thread Nautiyal, Ankit K
On 5/20/2025 10:23 PM, Jouni Högander wrote: Add new definition for size of Panel Replay DPCD capability registers area. Rename existing definitions to group capability registers together. Signed-off-by: Jouni Högander LGTM Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display

[PATCH v3 18/30] panel/lincolntech-lcd197: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: s/ctx/lcd. fix compilation v2: none. --- drivers/gpu/drm/panel/panel-lincolntech-lcd197.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-)

Re: [PATCH v2 12/12] drm/i915/psr: Do not disable Panel Replay in case VRR is enabled

2025-05-20 Thread Hogander, Jouni
On Wed, 2025-05-21 at 10:31 +0530, Nautiyal, Ankit K wrote: > > On 5/20/2025 10:23 PM, Jouni Högander wrote: > > This patch is allowing Panel Replay with VRR. All VRR modes are > > supposed to > > > I think you missed to remove `patch` from the commit message. I missed this comment. I will chan

Re: [PATCH v2 10/12] drm/i915/display: Add function to configure LFPS sending

2025-05-20 Thread Hogander, Jouni
On Wed, 2025-05-21 at 10:30 +0530, Nautiyal, Ankit K wrote: > > On 5/20/2025 10:23 PM, Jouni Högander wrote: > > Add function to configre LFPS sending for Panel Replay according to > > link > > training sequence in HAS document. > > > > This assumes we are using AUX Less always if it's supported

Re: [PATCH v2 02/12] drm/dp: Add Panel Replay capability bits from DP2.1 specification

2025-05-20 Thread Hogander, Jouni
On Wed, 2025-05-21 at 10:19 +0530, Nautiyal, Ankit K wrote: > > On 5/20/2025 10:23 PM, Jouni Högander wrote: > > Add PANEL REPLAY CAPABILITY register (0xb1) bits. > > > > Signed-off-by: Jouni Högander > > --- > >   include/drm/display/drm_dp.h | 10 -- > >   1 file changed, 8 insertions(+

[PATCH v3 1/3] mm/hugetlb: Make hugetlb_reserve_pages() return nr of entries updated

2025-05-20 Thread Vivek Kasireddy
Currently, hugetlb_reserve_pages() returns a bool to indicate whether the reservation map update for the range [from, to] was successful or not. This is not sufficient for the case where the caller needs to determine how many entries were updated for the range. Therefore, have hugetlb_reserve_page

[PATCH v3 2/3] mm/memfd: Reserve hugetlb folios before allocation

2025-05-20 Thread Vivek Kasireddy
There are cases when we try to pin a folio but discover that it has not been faulted-in. So, we try to allocate it in memfd_alloc_folio() but there is a chance that we might encounter a crash/failure (VM_BUG_ON(!h->resv_huge_pages)) if there are no active reservations at that instant. This issue wa

[PATCH v3 3/3] selftests/udmabuf: Add a test to pin first before writing to memfd

2025-05-20 Thread Vivek Kasireddy
Unlike the existing tests, this new test will create a memfd (backed by hugetlb) and pin the folios in it (a small subset) before writing/ populating it with data. This is a valid use-case that invokes the memfd_alloc_folio() kernel API and is expected to work unless there aren't enough hugetlb fol

[PATCH v3 0/3] mm/memfd: Reserve hugetlb folios before allocation

2025-05-20 Thread Vivek Kasireddy
There are cases where we try to pin a folio but discover that it has not been faulted-in. So, we try to allocate it in memfd_alloc_folio() but there is a chance that we might encounter a crash/failure (VM_BUG_ON(!h->resv_huge_pages)) if there are no active reservations at that instant. This issue w

Re: [PATCH v2 02/12] drm/dp: Add Panel Replay capability bits from DP2.1 specification

2025-05-20 Thread Nautiyal, Ankit K
On 5/20/2025 10:23 PM, Jouni Högander wrote: Add PANEL REPLAY CAPABILITY register (0xb1) bits. Signed-off-by: Jouni Högander --- include/drm/display/drm_dp.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/drm/display/drm_dp.h b/include/drm/display/dr

Re: [PATCH v2 12/12] drm/i915/psr: Do not disable Panel Replay in case VRR is enabled

2025-05-20 Thread Nautiyal, Ankit K
On 5/20/2025 10:23 PM, Jouni Högander wrote: This patch is allowing Panel Replay with VRR. All VRR modes are supposed to I think you missed to remove `patch` from the commit message. Regards, Ankit work with Panel Replay. Bspec: 68920, 68925 Signed-off-by: Jouni Högander Reviewed-by:

Re: [PATCH v2 08/12] drm/i915/alpm: Move port alpm configuration

2025-05-20 Thread Nautiyal, Ankit K
On 5/20/2025 10:23 PM, Jouni Högander wrote: It is specified in Bspec where port alpm configuration is supposed to be performed. Change accordingly. v2: - drop HAS reference - ensure PORT_ALPM registers are not writen on older platform Bspec: 68849 Signed-off-by: Jouni Högander Revie

Re: [PATCH v2 03/12] drm/i915/psr: Read all Panel Replay capability registers from DPCD

2025-05-20 Thread Nautiyal, Ankit K
On 5/20/2025 10:23 PM, Jouni Högander wrote: There are several Panel Replay capability register in DPCD. Read them all for later use. v2: - avoid using hardcoded indices - read all Panel Replay capability registers Signed-off-by: Jouni Högander Reviewed-by: Ankit Nautiyal --- .

[PATCH v3 19/30] panel/magnachip-d53e6ea8966: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: fix compilation. v2: none. --- drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff -

[PATCH v3 10/30] panel/ilitek-ili9881c: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gp

Re: linux-next: manual merge of the drm-nova tree with the configfs tree

2025-05-20 Thread Stephen Rothwell
Hi all, On Tue, 13 May 2025 13:55:21 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the drm-nova tree got a conflict in: > > samples/rust/Makefile > > between commit: > > 1bfb10505156 ("rust: configfs: add a sample demonstrating configfs usage") > > from the configfs tree

[PATCH v3 24/30] panel/novatek-nt35560: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt35560.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/g

Re: [PATCH 6.1.y v2 1/2] drm/msm/disp/dpu: use atomic enable/disable callbacks for encoder functions

2025-05-20 Thread Greg KH
On Wed, May 21, 2025 at 09:21:09AM +0800, jianqi.ren...@windriver.com wrote: > From: Vinod Polimera > > [ Upstream commit c0cd12a5d29fa36a8e2ebac7b8bec50c1a41fb57 ] > > Use atomic variants for encoder callback functions such that > certain states like self-refresh can be accessed as part of > en

[PATCH v3 14/30] panel/jdi-fhd-r63452: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/

[PATCH v3 15/30] panel/ltk050h3146w: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: Use dev instead of &dsi->dev. v2: none. --- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletion

RE: [PATCH 2/2] dmabuf/heaps: implement DMA_BUF_IOCTL_RW_FILE for system_heap

2025-05-20 Thread wangtao
> -Original Message- > From: T.J. Mercier > Sent: Wednesday, May 21, 2025 10:01 AM > To: wangtao > Cc: Christian König ; sumit.sem...@linaro.org; > benjamin.gaign...@collabora.com; brian.star...@arm.com; > jstu...@google.com; linux-me...@vger.kernel.org; dri- > de...@lists.freedesktop.o

linux-next: manual merge of the drm tree with Linus' tree

2025-05-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/xe/xe_svm.c between commit: 794f5493f518 ("drm/xe: Strict migration policy for atomic SVM faults") from Linus' tree and commit: 80bcbdfc8cf5 ("drm/xe/svm: Add stats for SVM page faults") from the drm tr

[PATCH v3 29/30] panel/lcd-olinuxino: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH v3 25/30] panel/novatek-nt35950: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt35950.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu

[PATCH v3 28/30] panel/novatek-nt39016: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: fix alignment v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt39016.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dri

[PATCH v3 27/30] panel/novatek-nt36672e: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt36672e.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gp

[PATCH v3 26/30] panel/novatek-nt36523: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/d

[PATCH v3 22/30] panel/newvision-nv3052c: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: fix alignment (Neil) v2: none. --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --

[PATCH v3 23/30] panel/novatek-nt35510: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-novatek-nt35510.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/g

[PATCH v3 21/30] panel/newvision-nv3051d: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/

[PATCH v3 20/30] panel/mantix-mlaf057we51: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers

linux-next: manual merge of the drm tree with Linus' tree

2025-05-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/xe/xe_lrc.c between commit: 617d824c5323 ("drm/xe: Add WA BB to capture active context utilization") from Linus' tree and commits: bac016066536 ("drm/xe: Make PPHWSP size explicit in xe_gt_lrc_size()")

[PATCH v3 17/30] panel/lg-lg4573: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-lg-lg4573.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH v3 16/30] panel/ltk500hd1829: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH v3 11/30] panel/innolux-ej030na: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-innolux-ej030na.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gp

[PATCH v3 13/30] panel/jadard-jd9365da-h3: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: fix alignment (Neil) v2: none. --- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff -

[PATCH v3 12/30] panel/innolux-p079zca: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gp

[PATCH v3 05/30] panel/himax-hx8394: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-himax-hx8394.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/d

[PATCH v3 09/30] panel/ilitek-ili9806e: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Michael Walle Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(

[PATCH v3 08/30] panel/panel-ili9805: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Start using the new helper that does the refcounted allocations Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/pa

[PATCH v3 07/30] panel/ilitek-ili9341: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/

[PATCH v3 06/30] panel/ilitek-ili9322: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/

[PATCH v3 02/30] panel/feixin-k101-im2ba02: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: update commit prefix to match the driver v2: none. --- drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c | 11 +-- 1 file changed, 5 insertions(+),

[PATCH v3 00/30] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part2

2025-05-20 Thread Anusha Srivatsa
cd-olinuxino.c| 11 +-- drivers/gpu/drm/panel/panel-orisetech-ota5601a.c | 11 +-- 30 files changed, 145 insertions(+), 174 deletions(-) --- base-commit: a4b4e3fd536763b3405c70ef97a6e7f9af8a00dc change-id: 20250520-drivers-mass-convert-part2-1a76098178c3 Best regards, -- Anusha Srivatsa

[PATCH v3 04/30] panel/himax-hx83112a: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-himax-hx83112a.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/

[PATCH v3 03/30] panel/fy07024di26a30d: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: none. v2: none. --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dri

[PATCH v3 01/30] panel/panel-elida-kd35t133: Use refcounted allocation in place of devm_kzalloc()

2025-05-20 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Reviewed-by: Neil Armstrong Signed-off-by: Anusha Srivatsa --- v3: Update the patch commit to match with rest of series v2: none. --- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 10 -- 1 file changed, 4 insertion

Re: [PATCH] Documentation: dma-buf: heaps: Add naming guidelines

2025-05-20 Thread John Stultz
On Tue, May 20, 2025 at 3:00 AM Maxime Ripard wrote: > > We've discussed a number of times of how some heap names are bad, but > not really what makes a good heap name. > > Let's document what we expect the heap names to look like. > > Signed-off-by: Maxime Ripard > --- > Documentation/userspace

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-20 Thread Dave Airlie
> > So in the GPU case, you'd charge on allocation, free objects into a > cgroup-specific pool, and shrink using a cgroup-specific LRU > list. Freed objects can be reused by this cgroup, but nobody else. > They're reclaimed through memory pressure inside the cgroup, not due > to the action of other

Re: [PATCH 2/2] dmabuf/heaps: implement DMA_BUF_IOCTL_RW_FILE for system_heap

2025-05-20 Thread T.J. Mercier
On Mon, May 19, 2025 at 9:06 PM wangtao wrote: > > > > > -Original Message- > > From: wangtao > > Sent: Monday, May 19, 2025 8:04 PM > > To: 'T.J. Mercier' ; Christian König > > > > Cc: sumit.sem...@linaro.org; benjamin.gaign...@collabora.com; > > brian.star...@arm.com; jstu...@google.com

[PATCH 6.1.y v2 2/2] drm/msm/dpu: move dpu_encoder's connector assignment to atomic_enable()

2025-05-20 Thread jianqi.ren.cn
From: Abhinav Kumar [ Upstream commit aedf02e46eb549dac8db4821a6b9f0c6bf6e3990 ] For cases where the crtc's connectors_changed was set without enable/active getting toggled , there is an atomic_enable() call followed by an atomic_disable() but without an atomic_mode_set(). This results in a NUL

[PATCH 6.1.y v2 1/2] drm/msm/disp/dpu: use atomic enable/disable callbacks for encoder functions

2025-05-20 Thread jianqi.ren.cn
From: Vinod Polimera [ Upstream commit c0cd12a5d29fa36a8e2ebac7b8bec50c1a41fb57 ] Use atomic variants for encoder callback functions such that certain states like self-refresh can be accessed as part of enable/disable sequence. Signed-off-by: Kalyan Thota Signed-off-by: Vinod Polimera Reviewe

Re: [PATCH] Documentation: dma-buf: heaps: Add naming guidelines

2025-05-20 Thread Bagas Sanjaya
On Tue, May 20, 2025 at 12:00:53PM +0200, Maxime Ripard wrote: > +Naming Convention > += > + > +A good heap name is a name that: > + > +- Is stable, and won't change from one version to the other; > + > +- Describes the memory region the heap will allocate from, and will > + unique

Re: [PATCH] drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401

2025-05-20 Thread Alex Hung
Reviewed-by: Alex Hung On 4/29/25 16:39, Melissa Wen wrote: On 25/04/2025 17:52, Melissa Wen wrote: Match what is declared as DPP color caps with hw caps. DCN401 has MPC shaper+3D+blnd LUTs that are movable before and after blending (get from plane or stream), but no DPP shaper+3D+blend LUTs

Re: [PATCH v4 01/40] drm/gpuvm: Don't require obj lock in destructor path

2025-05-20 Thread Rob Clark
On Tue, May 20, 2025 at 3:31 PM Dave Airlie wrote: > > On Wed, 21 May 2025 at 07:53, Rob Clark wrote: > > > > On Tue, May 20, 2025 at 2:25 PM Dave Airlie wrote: > > > > > > On Sat, 17 May 2025 at 02:20, Rob Clark wrote: > > > > > > > > On Fri, May 16, 2025 at 2:01 AM Danilo Krummrich > > > >

[PATCH v7] drm/vc4: hdmi: switch to generic CEC helpers

2025-05-20 Thread Dmitry Baryshkov
Switch VC4 driver to using CEC helpers code, simplifying hotplug and registration / cleanup. The existing vc4_hdmi_cec_release() is kept for now. Signed-off-by: Dmitry Baryshkov Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- This is a part of the HDMI CEC rework, posting separat

Re: (subset) [PATCH v6 00/10] drm/display: generic HDMI CEC helpers

2025-05-20 Thread Dmitry Baryshkov
On Sat, 17 May 2025 04:59:36 +0300, Dmitry Baryshkov wrote: > Currently it is next to impossible to implement CEC handling for the > setup using drm_bridges and drm_bridge_connector: bridges don't have a > hold of the connector at the proper time to be able to route CEC events. > > At the same t

Re: [PATCH v4 01/40] drm/gpuvm: Don't require obj lock in destructor path

2025-05-20 Thread Dave Airlie
On Wed, 21 May 2025 at 07:53, Rob Clark wrote: > > On Tue, May 20, 2025 at 2:25 PM Dave Airlie wrote: > > > > On Sat, 17 May 2025 at 02:20, Rob Clark wrote: > > > > > > On Fri, May 16, 2025 at 2:01 AM Danilo Krummrich wrote: > > > > > > > > On Thu, May 15, 2025 at 02:57:46PM -0700, Rob Clark wr

[PATCH 0/2] drm/msm/a7xx: Call CP_RESET_CONTEXT_STATE

2025-05-20 Thread Connor Abbott
--- base-commit: 8ffd015db85fea3e15a77027fda6c02ced4d2444 change-id: 20250520-msm-reset-context-state-100249ca5368 Best regards, -- Connor Abbott

[PATCH 1/2] drm/msm: Fix CP_RESET_CONTEXT_STATE bitfield names

2025-05-20 Thread Connor Abbott
Based on kgsl. Fixes: af66706accdf ("drm/msm/a6xx: Add skeleton A7xx support") Signed-off-by: Connor Abbott --- drivers/gpu/drm/msm/registers/adreno/adreno_pm4.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/registers/adreno/adreno_pm4.xml b/drivers

[PATCH 2/2] drm/msm/a7xx: Call CP_RESET_CONTEXT_STATE

2025-05-20 Thread Connor Abbott
Calling this packet is necessary when we switch contexts because there are various pieces of state used by userspace to synchronize between BR and BV that are persistent across submits and we need to make sure that they are in a "safe" state when switching contexts. Otherwise a userspace submission

Re: [PATCH v4 01/40] drm/gpuvm: Don't require obj lock in destructor path

2025-05-20 Thread Rob Clark
On Tue, May 20, 2025 at 2:25 PM Dave Airlie wrote: > > On Sat, 17 May 2025 at 02:20, Rob Clark wrote: > > > > On Fri, May 16, 2025 at 2:01 AM Danilo Krummrich wrote: > > > > > > On Thu, May 15, 2025 at 02:57:46PM -0700, Rob Clark wrote: > > > > On Thu, May 15, 2025 at 10:55 AM Danilo Krummrich

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Dave Airlie
On Wed, 21 May 2025 at 04:13, Joel Fernandes wrote: > > > > On 5/20/2025 11:36 AM, Danilo Krummrich wrote: > >>> If you want a helper type with Options while parsing that's totally fine, > >>> but > >>> the final result can clearly be without Options. For instance: > >>> > >>> struct Data { >

Re: [PATCH v4 01/40] drm/gpuvm: Don't require obj lock in destructor path

2025-05-20 Thread Dave Airlie
On Sat, 17 May 2025 at 02:20, Rob Clark wrote: > > On Fri, May 16, 2025 at 2:01 AM Danilo Krummrich wrote: > > > > On Thu, May 15, 2025 at 02:57:46PM -0700, Rob Clark wrote: > > > On Thu, May 15, 2025 at 10:55 AM Danilo Krummrich wrote: > > > > Anyways, I don't agree with that. Even if you can t

Re: [PATCH v4 20/30] drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECT

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 09:53:42AM +0200, neil.armstr...@linaro.org wrote: > On 19/05/2025 18:04, Dmitry Baryshkov wrote: > > From: Dmitry Baryshkov > > > > Continue migration to the MDSS-revision based checks and replace > > DPU_MDP_AUDIO_SELECT feature bit with the core_major_ver == 8 || > > co

Re: [PATCH v4 09/30] drm/msm/dpu: get rid of DPU_CTL_ACTIVE_CFG

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 09:57:38AM +0200, neil.armstr...@linaro.org wrote: > On 19/05/2025 18:04, Dmitry Baryshkov wrote: > > From: Dmitry Baryshkov > > > > Continue migration to the MDSS-revision based checks and replace > > DPU_CTL_ACTIVE_CFG feature bit with the core_major_ver >= 5 check. > >

Re: [PATCH v5 15/24] drm/msm/dsi/phy: Define PHY_CMN_CTRL_0 bitfields

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 12:57:25PM +0200, Krzysztof Kozlowski wrote: > On 03/05/2025 00:44, Dmitry Baryshkov wrote: > > On Wed, Apr 30, 2025 at 03:00:45PM +0200, Krzysztof Kozlowski wrote: > >> Add bitfields for PHY_CMN_CTRL_0 registers to avoid hard-coding bit > >> masks and shifts and make the co

Re: [PATCH RFT v4 04/14] drm/msm/a6xx: Get a handle to the common UBWC config

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 01:07:09PM +0200, Konrad Dybcio wrote: > From: Konrad Dybcio > > Start the great despaghettification by getting a pointer to the common > UBWC configuration, which houses e.g. UBWC versions that we need to > make decisions. > > Signed-off-by: Konrad Dybcio > --- > drive

[PATCH v4 4/5] phy: qualcomm: add MSM8974 HDMI PHY support

2025-05-20 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Add support for HDMI PHY on Qualcomm MSM8974 / APQ8074 platforms. Signed-off-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-hdmi-28hpm.c | 259 + 1 file changed, 259 insertions(+) diff --git a/drivers/

[PATCH v4 3/5] phy: qcom-uniphy: add more registers from display PHYs

2025-05-20 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Import register definitions from 28nm DSI and HDMI PHYs, adding more UNI PHY registers. Signed-off-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-uniphy.h | 33 + 1 file changed, 33 insertions(+) d

[PATCH v4 5/5] drm/msm/registers: drop HDMI PHY register definitions

2025-05-20 Thread Dmitry Baryshkov
From: Dmitry Baryshkov With the HDMI PHYs migrated to the generic PHY subsystem and to a separate drivers there is no point in keeping HDMI PHY registers in the drm/msm database, drop them. Signed-off-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/registers/displ

[PATCH v4 2/5] phy: qcom: apq8064-sata: extract UNI PLL register defines

2025-05-20 Thread Dmitry Baryshkov
From: Dmitry Baryshkov The "uni" PLL is shared between several PHYS: APQ8064's SATA, MSM8974/APQ8084 HDMI, MSM8916 DSI, MSM8974/APQ8084 DSI. Signed-off-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-apq8064-sata.c | 23 +--- drivers/phy/

[PATCH v4 0/5] drm/msm/hdmi & phy: use generic PHY framework

2025-05-20 Thread Dmitry Baryshkov
The MSM HDMI PHYs have been using the ad-hoc approach / API instead of using the generic API framework. Move MSM HDMI PHY drivers to drivers/phy/qualcomm and rework them to use generic PHY framework. This way all the QMP-related code is kept at the same place. Also MSM8974 HDMI PHY, 28nm DSI PHY an

[PATCH v4 3/4] rust: drm: gem: Drop Object::SIZE

2025-05-20 Thread Lyude Paul
Drive-by fix, it doesn't seem like anything actually uses this constant anymore. Signed-off-by: Lyude Paul Reviewed-by: Danilo Krummrich --- rust/kernel/drm/gem/mod.rs | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs

[PATCH v4 4/4] rust: drm: gem: Support driver-private GEM object types

2025-05-20 Thread Lyude Paul
One of the original intents with the gem bindings was that drivers could specify additional gem implementations, in order to enable for driver private gem objects. This wasn't really possible however, as up until now our GEM bindings have always assumed that the only GEM object we would run into wa

[PATCH v4 2/4] rust: drm: gem: Add DriverFile type alias

2025-05-20 Thread Lyude Paul
Just to reduce the clutter with the File<…> types in gem.rs. Signed-off-by: Lyude Paul --- V3: * Rename ObjectFile to DriverFile Signed-off-by: Lyude Paul --- rust/kernel/drm/gem/mod.rs | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/rust/kernel/d

[PATCH v4 1/4] rust: drm: gem: Simplify use of generics

2025-05-20 Thread Lyude Paul
Now that my rust skills have been honed, I noticed that there's a lot of generics in our gem bindings that don't actually need to be here. Currently the hierarchy of traits in our gem bindings looks like this: * Drivers implement: * BaseDriverObject (has the callbacks) * DriverObject (ha

[PATCH v4 0/4] rust: drm: gem: More (and final) cleanup

2025-05-20 Thread Lyude Paul
Look mom, no generic soup! Anyway - this is just the last of the cleanup stuff I ended up while working on cleaning up the gem shmem patch series. It: * Simplifies the use of generics * Adds a type alias for some very long type names * Moves stuff around to enable a feature Asahi originally inten

Re: [PATCH V8 40/43] drm/colorop: Add 3D LUT support to color pipeline

2025-05-20 Thread Harry Wentland
On 2025-05-19 19:43, Simon Ser wrote: > On Sunday, May 18th, 2025 at 00:32, Xaver Hugl wrote: > >>> We can always make the property mutable on drivers that support it in >> >>> the future, much like the zpos property. I think we should keep it >>> immutable for now. >> >> Sure, but I don't see

Re: [PATCH] drm/msm/dsi/dsi_phy_10nm: Fix missing initial VCO rate

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 01:13:26PM +0200, Krzysztof Kozlowski wrote: > Driver unconditionally saves current state on first init in > dsi_pll_10nm_init(), but does not save the VCO rate, only some of the > divider registers. The state is then restored during probe/enable via > msm_dsi_phy_enable()

Re: [PATCH v2] dt-bindings: display: bridge: renesas,dsi: allow properties from dsi-controller

2025-05-20 Thread Rob Herring (Arm)
On Tue, 20 May 2025 11:11:12 -0400, Hugo Villeneuve wrote: > From: Hugo Villeneuve > > Allow to inherit valid properties from the dsi-controller. This fixes the > following warning when adding a panel property: > > rzg2lc.dtb: dsi@1085: '#address-cells', '#size-cells', 'panel@0' do not >

[PATCH v3 1/4] rust: drm: gem: Simplify use of generics

2025-05-20 Thread Lyude Paul
Now that my rust skills have been honed, I noticed that there's a lot of generics in our gem bindings that don't actually need to be here. Currently the hierarchy of traits in our gem bindings looks like this: * Drivers implement: * BaseDriverObject (has the callbacks) * DriverObject (ha

  1   2   3   4   >