RE: [PATCH v6 02/12] drm: renesas: rz-du: Add support for RZ/V2H(P) SoC

2025-05-30 Thread Biju Das
Hi Prabhakar, > -Original Message- > From: Prabhakar > Sent: 30 May 2025 17:59 > Subject: [PATCH v6 02/12] drm: renesas: rz-du: Add support for RZ/V2H(P) SoC > > From: Lad Prabhakar > > The LCD controller (LCDC) on the RZ/V2H(P) SoC is composed of Frame > Compression Processor (FCPVD)

Re: [PATCH v2] drm/xe/bo: add GPU memory trace points

2025-05-30 Thread Lucas De Marchi
On Wed, May 28, 2025 at 08:01:21PM +, Juston Li wrote: On Wed, 2025-05-28 at 18:34 +, Juston Li wrote: On Thu, 2025-05-22 at 16:14 +0100, Tvrtko Ursulin wrote: > > On 22/05/2025 15:50, Lucas De Marchi wrote: > > + dri-devel > > > > On Wed, May 21, 2025 at 10:42:35PM +, Juston Li wrot

[PATCH] dt-bindings: display: convert sitronix,st7586 to YAML

2025-05-30 Thread David Lechner
M: David Lechner S: Maintained T: git https://gitlab.freedesktop.org/drm/misc/kernel.git -F: Documentation/devicetree/bindings/display/sitronix,st7586.txt +F: Documentation/devicetree/bindings/display/sitronix,st7586.yaml F: drivers/gpu/drm/sitronix/st7586.c DRM DRIVER FOR SITRON

[PATCH v3 1/4] fs: allow cross-FS copy_file_range for memory-backed files

2025-05-30 Thread wangtao
Memory-backed files can optimize copy performance via copy_file_range callbacks. Compared to mmap&read: reduces GUP (get_user_pages) overhead; vs sendfile/splice: eliminates one memory copy; supports dmabuf zero-copy implementation. Signed-off-by: wangtao --- fs/read_write.c| 71

Re: [PATCH v12 04/10] ref_tracker: have callers pass output function to pr_ostream()

2025-05-30 Thread Krzysztof Karas
Hi Jeff, [...] > +static void __ostream_printf pr_ostream_buf(struct ostream *stream, char > *fmt, ...) > +{ > + int ret, len = stream->size - stream->used; > + va_list args; > + > + va_start(args, fmt); > + ret = vsnprintf(stream->buf + stream->used, len, fmt, args); vsnprintf()

[PATCH v3 3/4] udmabuf: Implement udmabuf rw_file callback

2025-05-30 Thread wangtao
Construct bio_vec from folios, then call the other file's r/w callbacks for IO operations. Test data shows direct I/O copy_file_range improves performance by over 50% vs direct I/O mmap&read (2557 vs 1534). Test data: |32x32MB Read 1024MB |Creat-ms|Close-ms| I/O-ms|I/O-MB/s| I/O% |--

Re: [PATCH] drm/arm/hdlcd: Replace struct simplefb_format with custom type

2025-05-30 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Map DRM FourCC codes to pixel descriptions with internal type struct > hdlcd_format. Reorder formats by preference. Avoid simplefb's struct > simplefb_format, which is for parsing "simple-framebuffer" DT nodes. > > The HDLCD drivers uses struct simplefb_format and its

Re: [PATCH v12 04/10] ref_tracker: have callers pass output function to pr_ostream()

2025-05-30 Thread Jeff Layton
On Fri, 2025-05-30 at 11:13 +, Krzysztof Karas wrote: > Hi Jeff, > > [...] > > +static void __ostream_printf pr_ostream_buf(struct ostream *stream, char > > *fmt, ...) > > +{ > > + int ret, len = stream->size - stream->used; > > + va_list args; > > + > > + va_start(args, fmt); > > + r

Re: [PATCH] drm/arm/hdlcd: Replace struct simplefb_format with custom type

2025-05-30 Thread Thomas Zimmermann
Hi Am 30.05.25 um 12:10 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Map DRM FourCC codes to pixel descriptions with internal type struct hdlcd_format. Reorder formats by preference. Avoid simplefb's struct simplefb_format, which is for parsing "simple-framebuffer" DT nodes. T

Re: [PATCH v11 08/10] drm/xe/nvm: add on-die non-volatile memory device

2025-05-30 Thread Maarten Lankhorst
Hey, I was looking into testing this with the xe code on PVC, and noticed some small changes that would be useful to integrate before merging. On 2025-05-28 15:51, Alexander Usyskin wrote: > Enable access to internal non-volatile memory on DGFX > with GSC/CSC devices via a child device. > The nv

Re: 6.15-rc6/regression/bisected - after commit f1c6be3999d2 error appeared: *ERROR* dc_dmub_srv_log_diagnostic_data: DMCUB error

2025-05-30 Thread Pillai, Aurabindo
[AMD Official Use Only - AMD Internal Distribution Only] Hi Mike, We were trying to see if we can repro the issue on newer cards as well, but it seems only 6000 series can repro at our end. If you can repro more easily on other cards, please add "drm.debug=0x116 log_buf_len=20M" to your kernel

[PATCH v4 0/8] drm/vkms: Add support for multiple plane formats

2025-05-30 Thread Louis Chauvet
This series introduce a macro to generate a function to read simple formats. It avoid duplication of the same logic for similar formats. In addition, it also introduce multiple "easy" formats (rgb888 variants) and also 16 bits yuv support (P01* formats). PATCH 1 is the introduction of the macro

[PATCH v4 4/8] drm/vkms: Add support for RGB565 formats

2025-05-30 Thread Louis Chauvet
The format RGB565 was already supported. Add the support for: - BGR565 Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 23 +++ drivers/gpu/drm/vkms/vkms_plane.c | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/gpu/drm/vkms/vkms_formats.

[PATCH v4 1/8] drm/vkms: Create helpers macro to avoid code duplication in format callbacks

2025-05-30 Thread Louis Chauvet
The callback functions for line conversion are almost identical for some format. The generic READ_LINE macro generate all the required boilerplate to process a line. Two overrides of this macro have been added to avoid duplication of the same arguments every time. Signed-off-by: Louis Chauvet --

[PATCH v4 6/8] drm/vkms: Change YUV helpers to support u16 inputs for conversion

2025-05-30 Thread Louis Chauvet
Some YUV format uses 16 bit values, so change the helper function for conversion to support those new formats. Add support for the YUV format P010 Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/tests/vkms_format_test.c | 103 +- drivers/gpu/drm/vkms/vkms_formats.c

[PATCH v4 3/8] drm/vkms: Add support for ARGB16161616 formats

2025-05-30 Thread Louis Chauvet
The formats XRGB16161616 and ARGB16161616 were already supported. Add the support for: - ABGR16161616 - XBGR16161616 Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 6 ++ drivers/gpu/drm/vkms/vkms_plane.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers

[PATCH v4 2/8] drm/vkms: Add support for ARGB8888 formats

2025-05-30 Thread Louis Chauvet
The formats XRGB and ARGB were already supported. Add the support for: - XBGR - RGBX - BGRX - ABGR - RGBA - BGRA Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 19 +-- drivers/gpu/drm/vkms/vkms_plane.c | 7 ++- 2 file

[PATCH v4 8/8] drm/vkms: Add P01* formats

2025-05-30 Thread Louis Chauvet
The formats NV 12/16/24/21/61/42 were already supported. Add support for: - P010 - P012 - P016 Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 7 ++- drivers/gpu/drm/vkms/vkms_plane.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/

[PATCH v4 7/8] drm/vkms: Create helper macro for YUV formats

2025-05-30 Thread Louis Chauvet
The callback functions for line conversion are almost identical for semi-planar formats. The generic READ_LINE_YUV_SEMIPLANAR macro generate all the required boilerplate to process a line from a semi-planar format. Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 75 +++

[PATCH v2 1/8] drm/sched: Rename DRM_GPU_SCHED_STAT_NOMINAL to DRM_GPU_SCHED_STAT_RESET

2025-05-30 Thread Maíra Canal
Among the scheduler's statuses, the only one that indicates an error is DRM_GPU_SCHED_STAT_ENODEV. Any status other than DRM_GPU_SCHED_STAT_ENODEV signifies that the operation succeeded and the GPU is in a nominal state. However, to provide more information about the GPU's status, it is needed to

[PATCH v2 0/8] drm/sched: Allow drivers to skip the reset with DRM_GPU_SCHED_STAT_NO_HANG

2025-05-30 Thread Maíra Canal
When the DRM scheduler times out, it's possible that the GPU isn't hung; instead, a job may still be running, and there may be no valid reason to reset the hardware. This can occur in two situations: 1. The GPU exposes some mechanism that ensures the GPU is still making progress. By checkin

Re: [PATCH v5 1/5] bug/kunit: Core support for suppressing warning backtraces

2025-05-30 Thread Peter Zijlstra
+Mark because he loves a hack :-) On Thu, May 29, 2025 at 12:36:55PM +0200, Alessandro Carminati wrote: > > Like I said before; you need to do this on the report_bug() size of > > things. > > > I fully understand your concerns, and I truly appreciate both yours > and Josh’s feedback on this mat

[PATCH v2 6/8] drm/etnaviv: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

2025-05-30 Thread Maíra Canal
Etnaviv can skip a hardware reset in two situations: 1. TDR has fired before the free-job worker and the timeout is spurious. 2. The GPU is still making progress on the front-end and we can give the job a chance to complete. Instead of relying on the scheduler internals, use the DRM_GPU_

[PATCH v2 8/8] drm/panfrost: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

2025-05-30 Thread Maíra Canal
Panfrost can skip the reset if TDR has fired before the free-job worker. Currently, since Panfrost doesn't take any action on these scenarios, the job is being leaked, considering that `free_job()` won't be called. To avoid such leaks, use the DRM_GPU_SCHED_STAT_NO_STAT status to skip the reset an

[PATCH v2 5/8] drm/v3d: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

2025-05-30 Thread Maíra Canal
When a CL/CSD job times out, we check if the GPU has made any progress since the last timeout. If so, instead of resetting the hardware, we skip the reset and allow the timer to be rearmed. This gives long-running jobs a chance to complete. Use the DRM_GPU_SCHED_STAT_NO_HANG status to skip the res

Re: [PATCH 1/1] dt-bindings: display: convert himax,hx8357d.txt to yaml format

2025-05-30 Thread Rob Herring
On Thu, May 29, 2025 at 01:27:38PM -0500, Rob Herring (Arm) wrote: > > On Thu, 29 May 2025 12:48:21 -0400, Frank Li wrote: > > Convert himax,hx8357d.txt to yaml format. > > > > Additional changes: > > - add spi parent node in examples. > > - ref to spi-peripheral-props.yaml. > > - change himax,hx

Re: [PATCH v6 1/2] dmaengine: qcom: gpi: Add GPI Block event interrupt support

2025-05-30 Thread Jyothi Kumar Seerapu
On 5/9/2025 11:48 AM, Jyothi Kumar Seerapu wrote: On 5/6/2025 5:02 PM, Dmitry Baryshkov wrote: On Tue, May 06, 2025 at 04:48:43PM +0530, Jyothi Kumar Seerapu wrote: GSI hardware generates an interrupt for each transfer completion. For multiple messages within a single transfer, this result

Re: [PATCH v6 2/2] i2c: i2c-qcom-geni: Add Block event interrupt support

2025-05-30 Thread Jyothi Kumar Seerapu
On 5/21/2025 6:15 PM, Dmitry Baryshkov wrote: On Wed, May 21, 2025 at 03:58:48PM +0530, Jyothi Kumar Seerapu wrote: On 5/9/2025 9:31 PM, Dmitry Baryshkov wrote: On 09/05/2025 09:18, Jyothi Kumar Seerapu wrote: Hi Dimitry, Thanks for providing the review comments. On 5/6/2025 5:16 PM, Dmi

[PATCH v2 3/8] drm/sched: Reduce scheduler's timeout for timeout tests

2025-05-30 Thread Maíra Canal
As more KUnit tests are introduced to evaluate the basic capabilities of the `timedout_job()` hook, the test suite will continue to increase in duration. To reduce the overall running time of the test suite, decrease the scheduler's timeout for the timeout tests. Before this commit: [15:42:26] El

Re: [PATCH/RFC 0/3] Atari DRM driver

2025-05-30 Thread Geert Uytterhoeven
Hi Eero, On Thu, 29 May 2025 at 02:06, Eero Tamminen wrote: > On 28.5.2025 11.57, Geert Uytterhoeven wrote: > > On Wed, 28 May 2025 at 00:47, Eero Tamminen wrote: > >> I did boot testing on Hatari emulator with a minimal kernel config > >> having atari_drm enabled, atafb disabled, FB & boot logo

[PATCH] dma-buf: Add forward declaration of struct seq_file in dma-fence.h

2025-05-30 Thread Herbert Xu
Add forward declaration of struct seq_file before using it in function prototype. Fixes: a25efb3863d0 ("dma-buf: add dma_fence_describe and dma_resv_describe v2") Signed-off-by: Herbert Xu diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index e7ad819962e3..b751ae49d007 100644

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-30 Thread Geert Uytterhoeven
Hi Jayesh, CC devicetree On Fri, 30 May 2025 at 04:54, Jayesh Choudhary wrote: > On 29/05/25 16:34, Jayesh Choudhary wrote: > > By default, HPD was disabled on SN65DSI86 bridge. When the driver was > > added (commit "a095f15c00e27"), the HPD_DISABLE bit was set in pre-enable > > call which was m

[PATCH v2 4/8] drm/sched: Add new test for DRM_GPU_SCHED_STAT_NO_HANG

2025-05-30 Thread Maíra Canal
Add a test to submit a single job against a scheduler with the timeout configured and verify that if the job is still running, the timeout handler will skip the reset and allow the job to complete. Signed-off-by: Maíra Canal --- drivers/gpu/drm/scheduler/tests/mock_scheduler.c | 5 +++ drivers/

Re: [PATCH v10 10/12] drm/msm/dpu: support SSPP assignment for quad-pipe case

2025-05-30 Thread Jun Nie
Dmitry Baryshkov 于2025年5月29日周四 02:22写道: > > On Mon, May 26, 2025 at 05:28:28PM +0800, Jun Nie wrote: > > Currently, SSPPs are assigned to a maximum of two pipes. However, > > quad-pipe usage scenarios require four pipes and involve configuring > > two stages. In quad-pipe case, the first two pipes

Re: [PATCH v11 05/10] mtd: intel-dg: align 64bit read and write

2025-05-30 Thread Raag Jadav
On Wed, May 28, 2025 at 04:51:10PM +0300, Alexander Usyskin wrote: > GSC NVM controller HW errors on quad access overlapping 1K border. > Align 64bit read and write to avoid readq/writeq over 1K border. > > Acked-by: Miquel Raynal > Signed-off-by: Alexander Usyskin Reviewed-by: Raag Jadav

Re: [PATCH drm-dp 04/10] drm/hisilicon/hibmc: fix the hibmc loaded failed bug

2025-05-30 Thread oushixiong
在 2025/5/30 17:54, 00 1970 写道: From: Baihan Li When hibmc loaded failed, the driver use hibmc_unload to free the resource, but the mutexes in mode.config are not init, which will access an NULL pointer. Fixes: b3df5e65cc03 ("drm/hibmc: Drop drm_vblank_cleanup") Reported-by:oushixiong1...@163.c

[PATCH v4 5/8] drm/vkms: Add support for RGB888 formats

2025-05-30 Thread Louis Chauvet
Add the support for: - RGB888 - BGR888 Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_formats.c | 7 +++ drivers/gpu/drm/vkms/vkms_plane.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/drm/vkms/vkms_formats.c b/drivers/gpu/drm/vkms/vkms_formats.c index 2c5

Re: [PATCH v2] accel/qaic: Add Reliability, Accessibility, Serviceability (RAS)

2025-05-30 Thread Jeff Hugo
On 5/16/2025 10:06 AM, Jeff Hugo wrote: AIC100 devices generates Reliability, Availability, Serviceability events via MHI QAIC_STATUS channel. Support such events and print a structured log with details of the events, and if the event describes an uncorrected error, reset the device to put it bac

Re: [PATCH v5 1/5] bug/kunit: Core support for suppressing warning backtraces

2025-05-30 Thread Peter Zijlstra
On Thu, May 29, 2025 at 10:46:15AM -0700, Kees Cook wrote: > Doing it on the other end doesn't look great (see the other reply). I was > suggesting it's not on fast path because the added code is a dependant > conditional following an "unlikley" conditional. But if you wanted to > push it totally

Re: [PATCH 01/12] mm: Remove PFN_MAP, PFN_SG_CHAIN and PFN_SG_LAST

2025-05-30 Thread David Hildenbrand
On 29.05.25 08:32, Alistair Popple wrote: The PFN_MAP flag is no longer used for anything, so remove it. The PFN_SG_CHAIN and PFN_SG_LAST flags never appear to have been used so also remove them. Signed-off-by: Alistair Popple Reviewed-by: Christoph Hellwig --- With SPECIAL mentioned as well

Re: [PATCH 02/12] mm: Convert pXd_devmap checks to vma_is_dax

2025-05-30 Thread David Hildenbrand
On 29.05.25 08:32, Alistair Popple wrote: Currently dax is the only user of pmd and pud mapped ZONE_DEVICE pages. Therefore page walkers that want to exclude DAX pages can check pmd_devmap or pud_devmap. However soon dax will no longer set PFN_DEV, meaning dax pages are mapped as normal pages. E

Re: [PATCH 03/12] mm/pagewalk: Skip dax pages in pagewalk

2025-05-30 Thread David Hildenbrand
On 29.05.25 08:32, Alistair Popple wrote: Previously dax pages were skipped by the pagewalk code as pud_special() or vm_normal_page{_pmd}() would be false for DAX pages. Now that dax pages are refcounted normally that is no longer the case, so add explicit checks to skip them. Is this really wh

[PATCH drm-dp 02/10] drm/hisilicon/hibmc: fix dp probabilistical detect errors after HPD irq

2025-05-30 Thread Yongbang Shi
From: Baihan Li The debouncing when HPD pulled out still remains sometimes, 200ms still can not ensure helper_detect() is correct. So add a flag to hold the sink status, and changed detect_ctx() functions by using flag to check status. Fixes: 3c7623fb5bb6 ("drm/hisilicon/hibmc: Enable this hot p

[PATCH drm-dp 10/10] drm/hisilicon/hibmc: fix no showing problem with loading hibmc manually

2025-05-30 Thread Yongbang Shi
From: Baihan Li When using command rmmod and insmod, there is no showing in second time insmoding. Because DP controller won't send HPD signals, if connection doesn't change or controller isn't reset. So add reset before unreset in hibmc_dp_hw_init(). Fixes: 94ee73ee3020 ("drm/hisilicon/hibmc: a

[PATCH drm-dp 06/10] drm/hisilicon/hibmc: add dp mode valid check

2025-05-30 Thread Yongbang Shi
From: Baihan Li If DP is connected, add mode check and BW check in mode_valid_ctx() to ensure DP's cfg is usable. Fixes: f9698f802e50 ("drm/hisilicon/hibmc: Restructuring the header dp_reg.h") Signed-off-by: Baihan Li --- drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.c| 10 drivers/gpu/drm

[PATCH drm-dp 05/10] drm/hisilicon/hibmc: fix rare monitors cannot display problem

2025-05-30 Thread Yongbang Shi
From: Baihan Li DP Link training successful at 8.1Gbps with some monitors' max link rate are 2.7Gbps. So change the default 8.1Gbps link rate to the rate that reads from devices' capabilities. Fixes: f9698f802e50 ("drm/hisilicon/hibmc: Restructuring the header dp_reg.h") Signed-off-by: Baihan Li

[PATCH drm-dp 00/10] Fix hibmc driver bugs

2025-05-30 Thread Yongbang Shi
From: Baihan Li There are some bugfix for hibmc-drm driver. Baihan Li (10): drm/hisilicon/hibmc: fix the i2c device resource leak when vdac init failed drm/hisilicon/hibmc: fix dp probabilistical detect errors after HPD irq drm/hisilicon/hibmc: fix irq_request()'s irq name variable

[PATCH drm-dp 01/10] drm/hisilicon/hibmc: fix the i2c device resource leak when vdac init failed

2025-05-30 Thread Yongbang Shi
From: Baihan Li Currently the driver missed to clean the i2c adapter when vdac init failed. It may cause resource leak. Fixes: 94ee73ee3020 ("drm/hisilicon/hibmc: add dp hw moduel in hibmc driver") Signed-off-by: Baihan Li --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 1 + drivers/gpu

[PATCH drm-dp 08/10] drm/hisilicon/hibmc: fix DP no showing after HPD with VGA connected

2025-05-30 Thread Yongbang Shi
From: Baihan Li If the system started with VGA connected, the desktop like GDM cannot get DP's CRTC when DP device is plugged in, because there is only one crtc sharing use of VGA and DP. So change VGA to disconnected when DP is connected. Fixes: 4c962bc929f1 ("drm/hisilicon/hibmc: Add vga conne

[PATCH v3 4/4] dmabuf:system_heap Implement system_heap exporter's rw_file callback.

2025-05-30 Thread wangtao
First verify system_heap exporter has exclusive dmabuf access. Build bio_vec from sgtable, then invoke target file's r/w callbacks for IO. Outperforms buffer IO mmap/read by 250%, beats direct I/O udmabuf copy_file_range by over 30% with initialization time significantly lower than udmabuf. Test d

Re: [PATCH v5 08/10] accel/rocket: Add IOCTLs for synchronizing memory accesses

2025-05-30 Thread Jeff Hugo
On 5/20/2025 4:27 AM, Tomeu Vizoso wrote: The NPU cores have their own access to the memory bus, and this isn't cache coherent with the CPUs. Add IOCTLs so userspace can mark when the caches need to be flushed, and also when a writer job needs to be waited for before the buffer can be accessed f

Re: [PATCH v6 2/2] i2c: i2c-qcom-geni: Add Block event interrupt support

2025-05-30 Thread Dmitry Baryshkov
On Fri, May 30, 2025 at 07:36:05PM +0530, Jyothi Kumar Seerapu wrote: > > > On 5/21/2025 6:15 PM, Dmitry Baryshkov wrote: > > On Wed, May 21, 2025 at 03:58:48PM +0530, Jyothi Kumar Seerapu wrote: > > > > > > > > > On 5/9/2025 9:31 PM, Dmitry Baryshkov wrote: > > > > On 09/05/2025 09:18, Jyothi

Re: [PATCH v5 07/10] accel/rocket: Add job submission IOCTL

2025-05-30 Thread Jeff Hugo
On 5/20/2025 4:27 AM, Tomeu Vizoso wrote: - version = rocket_pc_read(core, VERSION); - version += rocket_pc_read(core, VERSION_NUM) & 0x; + version = rocket_pc_readl(core, VERSION); + version += rocket_pc_readl(core, VERSION_NUM) & 0x; This seems weird. Feels li

Re: [PATCH 0/4] drm/msm/dp: ST_DISPLAY_OFF hpd cleanup

2025-05-30 Thread Dmitry Baryshkov
On Fri, 30 May 2025 at 02:15, Jessica Zhang wrote: > > HPD state machine in msm dp display driver manages the state transitions > between various HPD events and the expected state of driver to make sure > both match up. > > Although originally done with the intent of managing userspace interaction

[PATCH v2 3/5] dt-bindings: display/msm: drop assigned-clock-parents for dp controller

2025-05-30 Thread Jessica Zhang
From: Abhinav Kumar Current documentation of assigned-clock-parents for dp controller does not describe its functionality correctly making it harder to extend it for adding multiple streams. Instead of fixing up the documentation, drop the assigned-clock-parents along with the usages in the chip

[PATCH v2 5/5] arm64: dts: qcom: Add pixel 1 stream for displayport

2025-05-30 Thread Jessica Zhang
Add the pixel 1 stream for displayport-controller for the following chipsets: - sa8775p - sc8180x - sc8280xp - sm8150 - sm8350 - sm8450 - sm8650 - x1e80100 Signed-off-by: Jessica Zhang --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 26 arch/arm64/boot/dts/qcom/sc8180x.

Re: [PATCH v5 05/10] accel/rocket: Add a new driver for Rockchip's NPU

2025-05-30 Thread Jeff Hugo
On 5/20/2025 4:26 AM, Tomeu Vizoso wrote: diff --git a/drivers/accel/rocket/rocket_device.h b/drivers/accel/rocket/rocket_device.h new file mode 100644 index ..55f4da252cfbd1f102c56e5009472deff59aaaec --- /dev/null +++ b/drivers/accel/rocket/rocket_device

Re: [RFC PATCH 00/12] Private MMIO support for private assigned dev

2025-05-30 Thread Xu Yilun
On Fri, May 30, 2025 at 12:29:30PM +1000, Alexey Kardashevskiy wrote: > > > On 30/5/25 00:41, Xu Yilun wrote: > > > > > > > > > > > > FLR to a bound device is absolutely fine, just break the CC state. > > > > > > Sometimes it is exactly what host need to stop CC immediately. > > > > > > The prob

Re: [PATCH v6 1/2] dmaengine: qcom: gpi: Add GPI Block event interrupt support

2025-05-30 Thread Dmitry Baryshkov
On Fri, 30 May 2025 at 17:05, Jyothi Kumar Seerapu wrote: > > > > On 5/9/2025 11:48 AM, Jyothi Kumar Seerapu wrote: > > > > > > On 5/6/2025 5:02 PM, Dmitry Baryshkov wrote: > >> On Tue, May 06, 2025 at 04:48:43PM +0530, Jyothi Kumar Seerapu wrote: > >>> GSI hardware generates an interrupt for each

[PATCH v2 2/5] dt-bindings: clock: Add SC7280 DISPCC DP pixel 1 clock binding

2025-05-30 Thread Jessica Zhang
From: Abhinav Kumar Add DISP_CC_MDSS_DP_PIXEL1_* macros for SC7280 Signed-off-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- include/dt-bindings/clock/qcom,dispcc-sc7280.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,dispcc-sc7280.h b/include/dt-bi

Re: [PATCH v5 1/5] bug/kunit: Core support for suppressing warning backtraces

2025-05-30 Thread Kees Cook
On Fri, May 30, 2025 at 04:01:40PM +0200, Peter Zijlstra wrote: > I'm not really concerned with performance here, but more with the size > of the code emitted by WARN_ONCE(). There are a *ton* of WARN sites, > while only one report_bug() and printk(). > > The really offensive thing is that this is

[PATCH v2 4/5] dt-bindings: display/msm: add stream 1 pixel clock binding

2025-05-30 Thread Jessica Zhang
From: Abhinav Kumar On some chipsets such as qcom,sa8775p-dp, qcom,sm8650-dp and some more, the display port controller can support more than one pixel stream (multi-stream transport). To support MST on such chipsets, add the binding for stream 1 pixel clock for display port controller. Since t

[PATCH v2 0/5] dt-bindings: msm/dp: add support for pixel clock to driver another stream

2025-05-30 Thread Jessica Zhang
On some MSM chipsets, the display port controller is capable of supporting two streams. To drive the second stream, the pixel clock for the corresponding stream needs to be enabled. In order to add the bindings for the pixel clock for the second stream, fixup the documentation of some of the bindin

[PATCH v2 1/5] dt-bindings: Fixup x1e80100 to add DP MST support

2025-05-30 Thread Jessica Zhang
From: Abhinav Kumar Add x1e80100 to the dp-controller bindings, fix the displayport-controller reg bindings, and drop assigned-clock-parents Signed-off-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- .../devicetree/bindings/display/msm/dp-controller.yaml | 2 ++ .../devicetree/bindi

Re: [PATCH 2/4] drm/msm/dp: Return early from atomic_enable() if ST_DISCONNECT_PENDING

2025-05-30 Thread Dmitry Baryshkov
On Fri, 30 May 2025 at 02:15, Jessica Zhang wrote: > > From: Abhinav Kumar > > The checks in msm_dp_bridge_atomic_enable() for making sure that we are in > ST_DISPLAY_OFF OR ST_MAINLINK_READY seem redundant. > > DRM fwk shall not issue any commits if state is not ST_MAINLINK_READY as > msm_dp's a

Re: [PATCH v10 10/12] drm/msm/dpu: support SSPP assignment for quad-pipe case

2025-05-30 Thread Dmitry Baryshkov
On Fri, 30 May 2025 at 17:59, Jun Nie wrote: > > Dmitry Baryshkov 于2025年5月29日周四 02:22写道: > > > > On Mon, May 26, 2025 at 05:28:28PM +0800, Jun Nie wrote: > > > Currently, SSPPs are assigned to a maximum of two pipes. However, > > > quad-pipe usage scenarios require four pipes and involve configur

Re: [RFC PATCH 00/12] Private MMIO support for private assigned dev

2025-05-30 Thread Xu Yilun
On Thu, May 29, 2025 at 01:29:23PM -0300, Jason Gunthorpe wrote: > On Thu, May 29, 2025 at 10:41:15PM +0800, Xu Yilun wrote: > > > > On AMD, the host can "revoke" at any time, at worst it'll see RMP > > > events from IOMMU. Thanks, > > > > Is the RMP event firstly detected by host or guest? If by

[PATCH v6 11/12] drm: renesas: rz-du: mipi_dsi: Add function pointers for configuring VCLK and mode validation

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Introduce `dphy_conf_clks` and `dphy_mode_clk_check` callbacks in `rzg2l_mipi_dsi_hw_info` to configure the VCLK and validate supported display modes. On the RZ/V2H(P) SoC, the DSI PLL dividers need to be as accurate as possible. To ensure compatibility with both RZ/G2L and R

[PATCH v6 10/12] drm: renesas: rz-du: mipi_dsi: Add dphy_late_init() callback for RZ/V2H(P)

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Introduce the `dphy_late_init` callback in `rzg2l_mipi_dsi_hw_info` to allow additional D-PHY register configurations after enabling data and clock lanes. This is required for the RZ/V2H(P) SoC but not for the RZ/G2L SoC. Modify `rzg2l_mipi_dsi_startup()` to invoke `dphy_late

[PATCH v6 03/12] drm: renesas: rz-du: mipi_dsi: Add min check for VCLK range

2025-05-30 Thread Prabhakar
From: Lad Prabhakar The VCLK range for Renesas RZ/G2L SoC is 5.803 MHz to 148.5 MHz. Add a minimum clock check in the mode_valid callback to ensure that the clock value does not fall below the valid range. Co-developed-by: Fabrizio Castro Signed-off-by: Fabrizio Castro Signed-off-by: Lad Prabh

[PATCH v6 01/12] dt-bindings: display: renesas, rzg2l-du: Add support for RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar The DU block on the RZ/V2H(P) SoC is identical to the one found on the RZ/G2L SoC. However, it only supports the DSI interface, whereas the RZ/G2L supports both DSI and DPI interfaces. Due to this difference, a SoC-specific compatible string 'renesas,r9a09g057-du' is added fo

[PATCH v6 09/12] drm: renesas: rz-du: mipi_dsi: Add feature flag for 16BPP support

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Introduce the `RZ_MIPI_DSI_FEATURE_16BPP` flag in `rzg2l_mipi_dsi_hw_info` to indicate support for 16BPP pixel formats. The RZ/V2H(P) SoC supports 16BPP, whereas this feature is missing on the RZ/G2L SoC. Update the `mipi_dsi_host_attach()` function to check this flag before

[PATCH v6 05/12] drm: renesas: rz-du: mipi_dsi: Use VCLK for HSFREQ calculation

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Update the RZ/G2L MIPI DSI driver to calculate HSFREQ using the actual VCLK rate instead of the mode clock. The relationship between HSCLK and VCLK is: vclk * bpp <= hsclk * 8 * lanes Retrieve the VCLK rate using `clk_get_rate(dsi->vclk)`, ensuring that HSFREQ accurately

[PATCH v6 12/12] drm: renesas: rz-du: mipi_dsi: Add support for LPCLK clock handling

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Add LPCLK clock support in the RZ/G2L MIPI DSI driver via the optional clock API. This clock is required by some SoCs like RZ/V2H(P) for proper DPHY configuration, whereas it is absent on others like RZ/G2L. Introduce a new `lpclk` field in the `rzg2l_mipi_dsi` structure and

[PATCH v6 06/12] drm: renesas: rz-du: mipi_dsi: Add OF data support

2025-05-30 Thread Prabhakar
From: Lad Prabhakar In preparation for adding support for the Renesas RZ/V2H(P) SoC, this patch introduces a mechanism to pass SoC-specific information via OF data in the DSI driver. This enables the driver to adapt dynamically to various SoC-specific requirements without hardcoding configuration

[PATCH v6 07/12] drm: renesas: rz-du: mipi_dsi: Make "rst" reset control optional for RZ/V2H(P)

2025-05-30 Thread Prabhakar
From: Lad Prabhakar In preparation for adding support for the Renesas RZ/V2H(P) SoC, make the "rst" reset control optional in the MIPI DSI driver. The RZ/V2H(P) SoC does not provide this reset line, and attempting to acquire it using the mandatory API causes probe failure. Switching to devm_rese

[PATCH v6 04/12] drm: renesas: rz-du: mipi_dsi: Simplify HSFREQ calculation

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Simplify the high-speed clock frequency (HSFREQ) calculation by removing the redundant multiplication and division by 8. The updated equation: hsfreq = mode->clock * bpp / dsi->lanes; produces the same result while improving readability and clarity. Additionally, update

[PATCH v6 02/12] drm: renesas: rz-du: Add support for RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar The LCD controller (LCDC) on the RZ/V2H(P) SoC is composed of Frame Compression Processor (FCPVD), Video Signal Processor (VSPD), and Display Unit (DU). There is one LCDC unit available on the RZ/V2H(P) SoC which is connected to the DSI. Signed-off-by: Lad Prabhakar Reviewe

[PATCH v6 08/12] drm: renesas: rz-du: mipi_dsi: Use mHz for D-PHY frequency calculations

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Pass the HSFREQ in milli-Hz to the `dphy_init()` callback to improve precision, especially for the RZ/V2H(P) SoC, where PLL dividers require high accuracy. These changes prepare the driver for upcoming RZ/V2H(P) SoC support. Co-developed-by: Fabrizio Castro Signed-off-by: F

[PATCH v6 4/4] drm: renesas: rz-du: mipi_dsi: Add support for RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Add DSI support for Renesas RZ/V2H(P) SoC. Co-developed-by: Fabrizio Castro Signed-off-by: Fabrizio Castro Signed-off-by: Lad Prabhakar --- v5->v6: - Made use of GENMASK() macro for PLLCLKSET0R_PLL_*, PHYTCLKSETR_* and PHYTHSSETR_* macros. - Replaced 1000UL with 10 *

[PATCH v6 2/4] clk: renesas: r9a09g057: Add clock and reset entries for DSI and LCDC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Add clock and reset entries for the DSI and LCDC peripherals. Co-developed-by: Fabrizio Castro Signed-off-by: Fabrizio Castro Signed-off-by: Lad Prabhakar --- v5->v6: - Renamed CLK_DIV_PLLETH_LPCLK to CLK_CDIV4_PLLETH_LPCLK - Renamed CLK_CSDIV_PLLETH_LPCLK to CLK_PLLETH_LP

[PATCH v6 0/4] Add support for DU/DSI clocks and DSI driver support for the Renesas RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Hi All, This patch series adds DU/DSI clocks and provides support for the MIPI DSI interface on the RZ/V2H(P) SoC. It was originally part of series [0], but has now been split into 4 patches due to dependencies on the clock driver, making it easier to review and merge. [0]

[PATCH v6 3/4] dt-bindings: display: bridge: renesas, dsi: Add support for RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar The MIPI DSI interface on the RZ/V2H(P) SoC is nearly identical to that of the RZ/G2L SoC. While the LINK registers are the same for both SoCs, the D-PHY registers differ. Additionally, the number of resets for DSI on RZ/V2H(P) is two compared to three on the RZ/G2L. To accom

[PATCH v6 00/12] Add DU support for RZ/V2H(P) SoC

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Hi All, This patch series adds support for the Display Unit (DU) and prepares the MIPI DSI driver to support the Renesas RZ/V2H(P) SoC. These patches were originally part of series [0], but I have split them into two parts to make them easier to review and merge. This patch

[PATCH v2 2/2] drm/vmwgfx: Implement dma_fence_ops properly

2025-05-30 Thread Ian Forbes
vmwgfx's fencing predates dma_fence and as a result dma_fence_ops was never properly implemented, especially with respect to enabling signaling. Because of this dma_fence callbacks don't work properly. This change implements enable_signaling properly so that dma_fence callbacks now work as expecte

[PATCH v2 1/2] drm/vmwgfx: Update last_read_seqno under the fence lock

2025-05-30 Thread Ian Forbes
There was a possible race in vmw_update_seqno. Because of this race it was possible for last_read_seqno to go backwards. Remove this function and replace it with vmw_update_fences which now sets and returns the last_read_seqno while holding the fence lock. This serialization via the fence lock ensu

[PATCH v3 2/4] dmabuf: Implement copy_file_range for dmabuf

2025-05-30 Thread wangtao
First determine if dmabuf reads from or writes to the file. Then call exporter's rw_file callback function. Signed-off-by: wangtao --- drivers/dma-buf/dma-buf.c | 32 include/linux/dma-buf.h | 16 2 files changed, 48 insertions(+) diff --git a

Re: [PATCH v12 01/10] i915: only initialize struct ref_tracker_dir once

2025-05-30 Thread Krzysztof Karas
Hi Jeff, > I got some warnings from the i915 CI with the ref_tracker debugfs > patches applied, that indicated that these ref_tracker_dir_init() calls > were being called more than once. If references were held on these > objects between the initializations, then that could lead to leaked ref > tr

Re: [PATCH v12 01/10] i915: only initialize struct ref_tracker_dir once

2025-05-30 Thread Jeff Layton
On Fri, 2025-05-30 at 11:01 +, Krzysztof Karas wrote: > Hi Jeff, > > > I got some warnings from the i915 CI with the ref_tracker debugfs > > patches applied, that indicated that these ref_tracker_dir_init() calls > > were being called more than once. If references were held on these > > object

[PATCH v2 7/8] drm/xe: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

2025-05-30 Thread Maíra Canal
Xe can skip the reset if TDR has fired before the free job worker and can also re-arm the timeout timer in some scenarios. Instead of using the scheduler internals to add the job to the pending list, use the DRM_GPU_SCHED_STAT_NO_HANG status to skip the reset and re-arm the timer. Note that, in th

[PATCH v2 2/8] drm/sched: Allow drivers to skip the reset and keep on running

2025-05-30 Thread Maíra Canal
When the DRM scheduler times out, it's possible that the GPU isn't hung; instead, a job may still be running, and there may be no valid reason to reset the hardware. This can occur in two situations: 1. The GPU exposes some mechanism that ensures the GPU is still making progress. By checkin

Re: [PATCH v3 3/4] udmabuf: Implement udmabuf rw_file callback

2025-05-30 Thread kernel test robot
Hi wangtao, kernel test robot noticed the following build errors: [auto build test ERROR on brauner-vfs/vfs.all] [also build test ERROR on next-20250530] [cannot apply to linus/master v6.15] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v11 04/10] mtd: intel-dg: register with mtd

2025-05-30 Thread Raag Jadav
On Wed, May 28, 2025 at 04:51:09PM +0300, Alexander Usyskin wrote: > Register the on-die nvm device with the mtd subsystem. > Refcount nvm object on _get and _put mtd callbacks. > For erase operation address and size should be 4K aligned. > For write operation address and size has to be 4bytes alig

Re: [PATCH v2] accel/ivpu: Fix warning in ivpu_gem_bo_free()

2025-05-30 Thread Jeff Hugo
On 5/28/2025 11:12 AM, Jacek Lawrynowicz wrote: Don't WARN if imported buffers are in use in ivpu_gem_bo_free() as they can be indeed used in the original context/driver. Fixes: 647371a6609d ("accel/ivpu: Add GEM buffer object management") Cc: sta...@vger.kernel.org # v6.3 Signed-off-by: Jacek L

[PATCH drm-dp 09/10] drm/hisilicon/hibmc: fix HPD no showing with VGA para of GRUB

2025-05-30 Thread Yongbang Shi
From: Baihan Li In early OS versions, there is a bug in hibmc-drm driver previously, so some OS add a VGA parameter in GRUB(video=VGA-1:640x480-32@60me) to fix the bug, that will config a force VGA mode to drm driver. However, the HPD problem exists that mentioned in previous patch, so change VGA

[PATCH drm-dp 04/10] drm/hisilicon/hibmc: fix the hibmc loaded failed bug

2025-05-30 Thread Yongbang Shi
From: Baihan Li When hibmc loaded failed, the driver use hibmc_unload to free the resource, but the mutexes in mode.config are not init, which will access an NULL pointer. Fixes: b3df5e65cc03 ("drm/hibmc: Drop drm_vblank_cleanup") Reported-by: oushixiong1...@163.com Signed-off-by: Baihan Li ---

[PATCH v6 1/4] clk: renesas: rzv2h-cpg: Add support for DSI clocks

2025-05-30 Thread Prabhakar
From: Lad Prabhakar Add support for PLLDSI and PLLDSI divider clocks. Introduce the `renesas-rzv2h-dsi.h` header to centralize and share PLLDSI-related data structures, limits, and algorithms between the RZ/V2H CPG and DSI drivers. The DSI PLL is functionally similar to the CPG's PLLDSI, but ha

Re: [PATCH 0/4] drm/msm/dp: ST_DISPLAY_OFF hpd cleanup

2025-05-30 Thread Jessica Zhang
On 5/30/2025 9:05 AM, Dmitry Baryshkov wrote: On Fri, 30 May 2025 at 02:15, Jessica Zhang wrote: HPD state machine in msm dp display driver manages the state transitions between various HPD events and the expected state of driver to make sure both match up. Although originally done with th

Re: [PATCH v2 3/5] dt-bindings: display/msm: drop assigned-clock-parents for dp controller

2025-05-30 Thread Dmitry Baryshkov
On Fri, May 30, 2025 at 10:47:26AM -0700, Jessica Zhang wrote: > From: Abhinav Kumar > > Current documentation of assigned-clock-parents for dp controller does not > describe its functionality correctly making it harder to extend it for > adding multiple streams. > > Instead of fixing up the doc

Re: [PATCH] drm/amdgpu: Fix integer overflow issues in amdgpu_userq_fence.c

2025-05-30 Thread Alex Deucher
Applied. Thanks! On Fri, May 23, 2025 at 12:25 PM Dan Carpenter wrote: > > This patch only affects 32bit systems. There are several integer > overflows bugs here but only the "sizeof(u32) * num_syncobj" > multiplication is a problem at runtime. (The last lines of this patch). > > These variabl

  1   2   >