Re: [PATCH v2 00/17] rockchip: Add rk3562 support

2025-01-09 Thread Kever Yang
Hi Krzysztof,     Thanks very much for your review. On 2024/12/27 15:38, Krzysztof Kozlowski wrote: On Tue, Dec 24, 2024 at 05:49:03PM +0800, Kever Yang wrote: This patch set adds rk3562 SoC and its evb support. Split out patches belong to different subsystem. Test with GMAC, USB, PCIe, EMMC

Re: [PATCH RFC 10/11] drm/msm/mdss: Add support for SM8750

2025-01-09 Thread Krzysztof Kozlowski
On 09/01/2025 23:39, Dmitry Baryshkov wrote: > On Thu, Jan 09, 2025 at 02:08:37PM +0100, Krzysztof Kozlowski wrote: >> Add support for the Qualcomm SM8750 platform. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/gpu/drm/msm/msm_mdss.c | 33 + >> drivers

Re: [PATCH] drm/i915: Add VM_DONTEXPAND to exported buffers

2025-01-09 Thread Jacek Lawrynowicz
Sure, the test does the following: 1. Create a Vulkan buffer using VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO and VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT 2. Get Vulkan buffer FD using vkGetMemoryFdKHR() 3. Import the Vulcan buffer to intel_vpu using DRM_IOCTL_PRIME_FD_TO_HANDLE 4. Call m

[PATCH 0/2] drm/meson: vclk: revert and re-fix vclk calculations

2025-01-09 Thread Christian Hewitt
Patch 1 reverts a previous fix for loss of HDMI sync when playing YUV420 @ 59.94 media. The patch does resolve a calculation issue. It also makes all fractional rates invalid which is a bigger problem. Patch 2 provides a proper fix after I figured out the actual root cause of the original problem.

[PATCH 2/2] drm/meson: vclk: fix precision in vclk calculations

2025-01-09 Thread Christian Hewitt
Playing YUV420 @ 59.94 media causes HDMI output to lose sync with a fatal error reported: [ 89.610280] Fatal Error, invalid HDMI vclk freq 593406 In meson_encoder_hdmi_set_vclk the initial vclk_freq value is 593407 but YUV420 modes halve the value to 296703.5 and this is stored as int which los

[PATCH 1/2] Revert "drm/meson: vclk: fix calculation of 59.94 fractional rates"

2025-01-09 Thread Christian Hewitt
This reverts commit bfbc68e4d8695497f858a45a142665e22a512ea3. The patch does permit the offending YUV420 @ 59.94 phy_freq and vclk_freq mode to match in calculations. It also results in all fractional rates being unavailable for use. This was unintended and requires the patch to be reverted. Cc:

Re: [PATCH v6 4/6] arm64: defconfig: enable display support for mt8365-evk

2025-01-09 Thread Krzysztof Kozlowski
On 09/01/2025 11:37, Alexandre Mergnat wrote: > Enable the DRM HDMI connector support. > Enable the MIPI-DSI display Startek KD070FHFID015 panel. Why? It was in previous commit, now its missing. Best regards, Krzysztof

Re: [PATCH] drm/sched: Fix amdgpu crash upon suspend/resume

2025-01-09 Thread Philipp Reisner
[...] > > Could this be due to amdgpu setting sched->ready when the rings are > > finished initializing from long ago rather than when the scheduler has > > been armed? > > Yes and that is absolutely intentional. > > Either the driver is not done with it's resume yet, or it has already > started it

Re: [PATCH] drm/i915: Add VM_DONTEXPAND to exported buffers

2025-01-09 Thread Jacek Lawrynowicz
Hi, On 1/9/2025 12:22 PM, Krzysztof Karas wrote: > Hi Jacek, > > On 2025-01-08 at 11:53:46 +0100, Jacek Lawrynowicz wrote: >> drm_gem_mmap_obj() expects VM_DONTEXPAND flag to be set after mmap >> callback is executed. Set this flag at the end of i915_gem_dmabuf_mmap() >> to prevent WARN on mmap i

RE: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Upadhyay, Tejas
> -Original Message- > From: Zeng, Oak > Sent: Friday, January 10, 2025 4:30 AM > To: Belgaumkar, Vinay ; Upadhyay, Tejas > ; intel...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org; Nilawar, Badal > ; Mrozek, Michal ; > Morek, Szymon ; Souza, Jose > ; De Marchi, Lucas > Su

RE: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Upadhyay, Tejas
> -Original Message- > From: Belgaumkar, Vinay > Sent: Friday, January 10, 2025 12:07 AM > To: Souza, Jose ; intel...@lists.freedesktop.org; > Upadhyay, Tejas > Cc: dri-devel@lists.freedesktop.org; Nilawar, Badal > ; De Marchi, Lucas ; > Mrozek, Michal ; Morek, Szymon > > Subject: Re:

Re: [PATCH v5 07/20] drm/rockchip: analogix_dp: Expand device data to support multiple edp display

2025-01-09 Thread kernel test robot
Hi Damon, kernel test robot noticed the following build warnings: [auto build test WARNING on rockchip/for-next] [also build test WARNING on robh/for-next drm/drm-next drm-exynos/exynos-drm-next linus/master v6.13-rc6 next-20250109] [cannot apply to drm-intel/for-linux-next drm-intel/for-linux

RE: [PATCH] drm/virtio: Lock the VGA resources during initialization

2025-01-09 Thread Kasireddy, Vivek
Hi Dmitry, > Subject: Re: [PATCH] drm/virtio: Lock the VGA resources during initialization > > On 12/11/24 09:43, Vivek Kasireddy wrote: > > +static int __init virtio_gpu_driver_init(void) > > +{ > > + struct pci_dev *pdev; > > + int ret; > > + > > + pdev = pci_get_device(PCI_VENDOR_ID_REDH

RE: [PATCH v7 14/14] drm/i915/histogram: Enable pipe dithering

2025-01-09 Thread Kandpal, Suraj
> -Original Message- > From: Murthy, Arun R > Sent: Friday, January 10, 2025 1:16 AM > To: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org; intel- > x...@lists.freedesktop.org > Cc: dmitry.barysh...@linaro.org; Kandpal, Suraj ; > Shankar, Uma ; "Imported from f20241218-d

[PATCH 09/11] drm: meson: add vpu clk setting for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu The S4-series splits the HIU into `sys_ctrl`, `pwr_ctrl`, and `clk_ctrl`. Introduce VPU clock settings specific to the Amlogic S4 SoC, which differ from the configurations used for G12. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_vclk.c | 1018 +

[PATCH 07/11] drm: meson: change api call parameter

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Adjust the parameters passed to specific API calls in the Meson HDMI encoder to align with hardware requirements. Configure VCLK to use double pixels for 480p and 576p resolutions in the Amlogic S4. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 19 ++

[PATCH 00/11] Subject: [PATCH 00/11] Add DRM support for Amlogic S4

2025-01-09 Thread Ao Xu via B4 Relay
This patch series adds DRM support for the Amlogic S4-series SoCs. Compared to the Amlogic G12-series, the S4-series introduces the following changes: 1 The S4-series splits the HIU into three separate components: `sys_ctrl`, `pwr_ctrl`, and `clk_ctrl`. As a result, VENC and VCLK drivers are u

[PATCH 05/11] drm: meson: update VIU and VPP support for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Update VIU and VPP initialization for S4 compatibility. VPP_MISC register definition was different with G12 SoCs, so disabled watermark control for S4. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_registers.h | 1 + drivers/gpu/drm/meson/meson_viu.c | 9 ++--- d

[PATCH 08/11] drm: meson: add hdmitx vmode timing support for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Introduce support for HDMI TX video mode (vmode) timing in the Meson VENC driver for the Amlogic S4 SoC. These updates enable reliable HDMI output with correct timing for S4 devices. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_venc.c | 334 +

[PATCH 10/11] drm: meson: add CVBS support for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add support for Composite Video Baseband Signal (CVBS) in the Meson encoder driver for the Amlogic S4 SoC. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/meson/meson_encoder_cvbs.c

[PATCH 04/11] drm: meson: add primary and overlay plane support for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Update plane register configurations in the Meson DRM driver to support the Amlogic S4 SoC. These adjustments ensure proper handling of display planes with S4-specific hardware requirements. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_crtc.c | 90 +

[PATCH 11/11] arm64: dts: amlogic: s4: add DRM support [1/1]

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add Device Tree support for the DRM subsystem on the Amlogic S4 SoC. Enable nodes for canvas, vpu, and HDMI controllers. Enable nodes for CVBS and HDMI bridge connector components. Signed-off-by: Ao Xu --- .../boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 39 +++ arch/arm64

[PATCH 06/11] drm: meson: add meson_dw_hdmi support for S4

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add S4 dw_hdmi register access method. Adjust clock, power domain, and PHY configurations to support HDMI on the S4. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 244 -- drivers/gpu/drm/meson/meson_dw_hdmi.h | 126

[PATCH 01/11] dt-bindings: display: meson-dw-hdmi: Add compatible for S4 HDMI controller

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add devicetree document for S4 HDMI controller Signed-off-by: Ao Xu --- Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml b/Documentation/de

[PATCH 02/11] dt-bindings: display: meson-vpu: Add compatible for S4 display controller

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add devicetree document for S4 VPU Signed-off-by: Ao Xu --- .../bindings/display/amlogic,meson-vpu.yaml| 48 -- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml b/Documentati

[PATCH 03/11] drm: meson: add S4 compatible for DRM driver

2025-01-09 Thread Ao Xu via B4 Relay
From: Ao Xu Add S4 compatible for DRM driver. This update driver logic to support S4-specific configurations. This also add vpu clock operation in bind, suspend, resume, shutdown stage. Signed-off-by: Ao Xu --- drivers/gpu/drm/meson/meson_drv.c | 127 +- dri

Re: [RFC PATCH 08/12] vfio/pci: Create host unaccessible dma-buf for private device

2025-01-09 Thread Xu Yilun
On Thu, Jan 09, 2025 at 10:40:51AM -0400, Jason Gunthorpe wrote: > On Thu, Jan 09, 2025 at 12:57:58AM +0800, Xu Yilun wrote: > > On Wed, Jan 08, 2025 at 09:30:26AM -0400, Jason Gunthorpe wrote: > > > On Tue, Jan 07, 2025 at 10:27:15PM +0800, Xu Yilun wrote: > > > > Add a flag for ioctl(VFIO_DEVICE_

RE: [Patch v3 0/2] Fix drm RAD print

2025-01-09 Thread Lin, Wayne
[Public] Hi Lyude, Could you help to merge if patches are ready to go? Thanks! Regards, Wayne > -Original Message- > From: Wayne Lin > Sent: Friday, January 10, 2025 10:36 AM > To: dri-devel@lists.freedesktop.org > Cc: ly...@redhat.com; Wentland, Harry ; > imre.d...@intel.com; ville.sy

[Patch v3 1/2] drm/dp_mst: Fix drm RAD print

2025-01-09 Thread Wayne Lin
[Why] The RAD of sideband message printed today is incorrect. For RAD stored within MST branch - If MST branch LCT is 1, it's RAD array is untouched and remained as 0. - If MST branch LCT is larger than 1, use nibble to store the up facing port number in cascaded sequence as illustrated below:

[Patch v3 2/2] drm/dp_mst: Add helper to get port number at specific LCT from RAD

2025-01-09 Thread Wayne Lin
Add a helper drm_dp_mst_get_ufp_num_at_lct_from_rad() to extract the up facing port number at specific link count from the RAD. Use the added helper in drm_dp_mst_rad_to_str() & drm_dp_get_mst_branch_device() to unify the implementation. V2: - Adjust the code format (Lyude) Cc: Imre Deak Cc: Vil

[Patch v3 0/2] Fix drm RAD print

2025-01-09 Thread Wayne Lin
This is v3 of [1], with the following changes: - Modify description "drm_dp_mst_topology_mgr::mst_primary" to "&drm_dp_mst_topology_mgr.mst_primary" so kdoc formats it properly (Lyude) - Ajust code format (Lyude) Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Cc: Lyude Paul [1] https:

Re: [PATCH] nouveau/fence: handle cross device fences properly. (v3)

2025-01-09 Thread kernel test robot
Hi Dave, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on drm-misc/drm-misc-next drm-tip/drm-tip v6.13-rc6 next-20250109] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v3] drm/bridge: it6505: fix HDCP V match check is not performed correctly

2025-01-09 Thread Dmitry Baryshkov
e you r-b it, Okay. Please don't add extra tags in future. The patch itself is: Reviewed-by: Dmitry Baryshkov > > > Signed-off-by: Hermes Wu > > --- > > Changes in v3: > > - The V value compare loop from i = 0 to i = 4 and shall exit with i == 5 > &g

RE: [PATCH v2 1/2] drm/dp_mst: Fix drm RAD print

2025-01-09 Thread Lin, Wayne
[Public] Thanks, Lyude! Will adjust and send another version later. Regards, Wayne > -Original Message- > From: Lyude Paul > Sent: Friday, January 10, 2025 6:45 AM > To: Lin, Wayne ; dri-devel@lists.freedesktop.org > Cc: imre.d...@intel.com; ville.syrj...@linux.intel.com; Wentland, Harr

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 05:50:16PM -0800, Jessica Zhang wrote: > > > On 1/9/2025 5:42 PM, Dmitry Baryshkov wrote: > > On Fri, 10 Jan 2025 at 02:30, Jessica Zhang > > wrote: > > > > > > > > > > > > On 1/9/2025 4:00 PM, Dmitry Baryshkov wrote: > > > > On Thu, Jan 09, 2025 at 02:34:44PM -0800,

Re: [PATCH v4 4/9] drm/msm/dpu: make fix_core_ab_vote consistent with fix_core_ib_vote

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 05:40:23PM -0800, Abhinav Kumar wrote: > > > On 1/5/2025 7:07 PM, Dmitry Baryshkov wrote: > > The fix_core_ab_vote is an average bandwidth value, used for bandwidth > > overrides in several cases. However there is an internal inconsistency: > > fix_core_ib_vote is defined

RE: [PATCH v3] drm/bridge: it6505: fix HDCP V match check is not performed correctly

2025-01-09 Thread Hermes.Wu
dvice to a path. So I add it before you r-b it, > Signed-off-by: Hermes Wu > --- > Changes in v3: > - The V value compare loop from i = 0 to i = 4 and shall exit with i == 5 > if all V element matches > - Link to v2: > https://lore.kernel.org/r/20250109-fix-hdcp-v

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Dmitry Baryshkov
On Fri, 10 Jan 2025 at 02:30, Jessica Zhang wrote: > > > > On 1/9/2025 4:00 PM, Dmitry Baryshkov wrote: > > On Thu, Jan 09, 2025 at 02:34:44PM -0800, Jessica Zhang wrote: > >> > >> > >> On 1/3/2025 10:16 AM, Dmitry Baryshkov wrote: > >>> On Fri, Jan 03, 2025 at 10:03:35AM -0800, Jessica Zhang wrot

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Jessica Zhang
On 1/9/2025 5:42 PM, Dmitry Baryshkov wrote: On Fri, 10 Jan 2025 at 02:30, Jessica Zhang wrote: On 1/9/2025 4:00 PM, Dmitry Baryshkov wrote: On Thu, Jan 09, 2025 at 02:34:44PM -0800, Jessica Zhang wrote: On 1/3/2025 10:16 AM, Dmitry Baryshkov wrote: On Fri, Jan 03, 2025 at 10:03:35AM

Re:[PATCH v2 02/25] drm/dumb-buffers: Provide helper to set pitch and size

2025-01-09 Thread Andy Yan
Hi Thomas, At 2025-01-09 22:56:56, "Thomas Zimmermann" wrote: >Add drm_modes_size_dumb(), a helper to calculate the dumb-buffer >scanline pitch and allocation size. Implementations of struct >drm_driver.dumb_create can call the new helper for their size >computations. There's currently quite a b

Re: [PATCH v4 4/9] drm/msm/dpu: make fix_core_ab_vote consistent with fix_core_ib_vote

2025-01-09 Thread Abhinav Kumar
On 1/5/2025 7:07 PM, Dmitry Baryshkov wrote: The fix_core_ab_vote is an average bandwidth value, used for bandwidth overrides in several cases. However there is an internal inconsistency: fix_core_ib_vote is defined in KBps, while fix_core_ab_vote is defined in Bps. Fix that by changing the t

Re: [PATCH v4 3/9] drm/msm/dpu: change ib values to u32

2025-01-09 Thread Abhinav Kumar
On 1/5/2025 7:07 PM, Dmitry Baryshkov wrote: The IB values in core_perf calculations (max_per_pipe_ib, fix_core_ib_vote) are expressed in KBps and are passed to icc_set_bw without additional division. Change type of those values to u32. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/m

Re: [PATCH v4 2/9] drm/msm/dpu: remove duplicate code calculating sum of bandwidths

2025-01-09 Thread Abhinav Kumar
On 1/5/2025 7:07 PM, Dmitry Baryshkov wrote: The code in dpu_core_perf_crtc_check() mostly duplicates code in dpu_core_perf_aggregate(). Remove the duplication by reusing the latter function. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 94 +++

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Jessica Zhang
On 1/9/2025 4:00 PM, Dmitry Baryshkov wrote: On Thu, Jan 09, 2025 at 02:34:44PM -0800, Jessica Zhang wrote: On 1/3/2025 10:16 AM, Dmitry Baryshkov wrote: On Fri, Jan 03, 2025 at 10:03:35AM -0800, Jessica Zhang wrote: On 12/19/2024 9:03 PM, Dmitry Baryshkov wrote: On Mon, Dec 16, 2024 a

Re: [PATCH v4 18/25] drm/msm/dpu: Reserve resources for CWB

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:53:40PM -0800, Jessica Zhang wrote: > > > On 1/9/2025 2:13 PM, Dmitry Baryshkov wrote: > > On Thu, 9 Jan 2025 at 23:26, Jessica Zhang > > wrote: > > > > > > > > > > > > On 12/28/2024 8:47 PM, Dmitry Baryshkov wrote: > > > > On Thu, Dec 26, 2024 at 02:49:28PM -0800,

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:34:44PM -0800, Jessica Zhang wrote: > > > On 1/3/2025 10:16 AM, Dmitry Baryshkov wrote: > > On Fri, Jan 03, 2025 at 10:03:35AM -0800, Jessica Zhang wrote: > > > > > > > > > On 12/19/2024 9:03 PM, Dmitry Baryshkov wrote: > > > > On Mon, Dec 16, 2024 at 04:43:26PM -0800

Re: [PATCH 0/6] drm: enforce rules for drm_atomic_helper_check_modeset()

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:53:16PM +0100, Thomas Zimmermann wrote: > Hi > > > Am 22.12.24 um 06:00 schrieb Dmitry Baryshkov: > > As pointed out by Simona, the drm_atomic_helper_check_modeset() and > > drm_atomic_helper_check() require the former function is rerun if the > > driver's callbacks mod

Re: [PATCH] drm/rockchip: Don't change hdmi reference clock rate

2025-01-09 Thread Heiko Stuebner
On Tue, 17 Dec 2024 14:17:07 -0600, Derek Foreman wrote: > The code that changes hdmi->ref_clk was accidentally copied from > downstream code that sets a different clock. We don't actually > want to set any clock here at all. > > Setting this clock incorrectly leads to incorrect timings for > DD

Re: [PATCH RFC 08/11] drm/msm/dsi: Add support for SM8750

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:08:35PM +0100, Krzysztof Kozlowski wrote: > Add support for DSI PHY v7.0 on Qualcomm SM8750 SoC which comes with two > differences worth noting: > > 1. ICODE_ACCUM_STATUS_LOW and ALOG_OBSV_BUS_STATUS_1 registers - their >offsets were just switched. Currently these r

[PATCH] drm/msm: Avoid rounding up to one jiffy

2025-01-09 Thread Rob Clark
From: Rob Clark If userspace is trying to achieve a timeout of zero, let 'em have it. Only round up if the timeout is greater than zero. Fixes: 4969bccd5f4e ("drm/msm: Avoid rounding down to zero jiffies") Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.h | 10 -- 1 file chang

Re: [PATCH RFC / WIP 11/11] drm/msm/dpu: WIP: CTL_LAYER_EXT is gone

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:08:38PM +0100, Krzysztof Kozlowski wrote: > Not finished. Looking around, maybe someone already did some works > around new CTL_PIPE_ACTIVE and CTL_LAYER_ACTIVE registers? This is not enough, the whole blend setup is to be moved to LM block. > > Signed-off-by: Krzyszto

RE: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Zeng, Oak
> -Original Message- > From: Belgaumkar, Vinay > Sent: January 9, 2025 5:03 PM > To: Zeng, Oak ; Upadhyay, Tejas > ; intel...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org; Nilawar, Badal > ; Mrozek, Michal > ; Morek, Szymon > ; Souza, Jose ; > De Marchi, Lucas > Subject:

Re: [PATCH v2 19/25] drm/rockchip: Compute dumb-buffer sizes with drm_mode_size_dumb()

2025-01-09 Thread Heiko Stübner
Am Donnerstag, 9. Januar 2025, 15:57:13 CET schrieb Thomas Zimmermann: > Call drm_mode_size_dumb() to compute dumb-buffer scanline pitch and > buffer size. Align the pitch to a multiple of 64. > > Signed-off-by: Thomas Zimmermann > Cc: Sandy Huang > Cc: "Heiko Stübner" > Cc: Andy Yan I've loo

Re: [PATCH v4 18/25] drm/msm/dpu: Reserve resources for CWB

2025-01-09 Thread Jessica Zhang
On 1/9/2025 2:13 PM, Dmitry Baryshkov wrote: On Thu, 9 Jan 2025 at 23:26, Jessica Zhang wrote: On 12/28/2024 8:47 PM, Dmitry Baryshkov wrote: On Thu, Dec 26, 2024 at 02:49:28PM -0800, Jessica Zhang wrote: On 12/20/2024 5:07 PM, Dmitry Baryshkov wrote: On Fri, Dec 20, 2024 at 04:12:29

Re: [PATCH v2 2/2] drm/dp_mst: Add helper to get port number at specific LCT from RAD

2025-01-09 Thread Lyude Paul
Patch looks good to me, just one small change: On Mon, 2024-12-23 at 12:07 +0800, Wayne Lin wrote: > - for (i = 0; i < lct - 1; i++) { > - int shift = (i % 2) ? 0 : 4; > - int port_num = (rad[i / 2] >> shift) & 0xf; > + for (i = 1; i < lct; i++) { > + in

Re: [PATCH v2 1/2] drm/dp_mst: Fix drm RAD print

2025-01-09 Thread Lyude Paul
Hey there! Patch looks good to me, just one small change: On Mon, 2024-12-23 at 12:07 +0800, Wayne Lin wrote: > + /** > + * @rad: Relative Address of the MST branch. > + * For drm_dp_mst_topology_mgr::mst_primary, it's rad[8] are all 0, > + * unset and unused. For MST branches c

Re: [PATCH RFC 10/11] drm/msm/mdss: Add support for SM8750

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:08:37PM +0100, Krzysztof Kozlowski wrote: > Add support for the Qualcomm SM8750 platform. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpu/drm/msm/msm_mdss.c | 33 + > drivers/gpu/drm/msm/msm_mdss.h | 1 + > 2 files changed, 3

Re: [PATCH v4 15/25] drm/msm/dpu: Add CWB to msm_display_topology

2025-01-09 Thread Jessica Zhang
On 1/3/2025 10:16 AM, Dmitry Baryshkov wrote: On Fri, Jan 03, 2025 at 10:03:35AM -0800, Jessica Zhang wrote: On 12/19/2024 9:03 PM, Dmitry Baryshkov wrote: On Mon, Dec 16, 2024 at 04:43:26PM -0800, Jessica Zhang wrote: Add the cwb_enabled flag to msm_display topology and adjust the toplog

[PATCH] drm/panel-edp: Add Starry 116KHD024006

2025-01-09 Thread Douglas Anderson
We have a few reports of sc7180-trogdor-pompom devices that have a panel in them that IDs as STA 0x0004 and has the following raw EDID: 00 ff ff ff ff ff ff 00 4e 81 04 00 00 00 00 00 10 20 01 04 a5 1a 0e 78 0a dc dd 96 5b 5b 91 28 1f 52 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 0

Re: [PATCH RFC 09/11] drm/msm/dpu: Add support for SM8750

2025-01-09 Thread Dmitry Baryshkov
On Thu, Jan 09, 2025 at 02:08:36PM +0100, Krzysztof Kozlowski wrote: > Add DPU version v12.0 support for the Qualcomm SM8750 platform. > > Signed-off-by: Krzysztof Kozlowski > --- > .../drm/msm/disp/dpu1/catalog/dpu_12_0_sm8750.h| 522 > + > drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH v4 18/25] drm/msm/dpu: Reserve resources for CWB

2025-01-09 Thread Dmitry Baryshkov
On Thu, 9 Jan 2025 at 23:26, Jessica Zhang wrote: > > > > On 12/28/2024 8:47 PM, Dmitry Baryshkov wrote: > > On Thu, Dec 26, 2024 at 02:49:28PM -0800, Jessica Zhang wrote: > >> > >> > >> On 12/20/2024 5:07 PM, Dmitry Baryshkov wrote: > >>> On Fri, Dec 20, 2024 at 04:12:29PM -0800, Jessica Zhang wr

[PATCH] drm/virtio: Align host mapping request to maximum platform page size

2025-01-09 Thread Sasha Finkelstein via B4 Relay
ev->host_visible_lock); if (ret) --- base-commit: 643e2e259c2b25a2af0ae4c23c6e16586d9fd19c change-id: 20250109-virtgpu-mixed-page-size-282b8f4a02fc

Re: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Belgaumkar, Vinay
On 1/9/2025 9:37 AM, Zeng, Oak wrote: -Original Message- From: dri-devel On Behalf Of Tejas Upadhyay Sent: January 9, 2025 7:07 AM To: intel...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org; Nilawar, Badal ; Belgaumkar, Vinay ; Mrozek, Michal ; Morek, Szymon ; Souza, Jose

[PATCH] drm/virtio: Support partial maps of GEM objects

2025-01-09 Thread Sasha Finkelstein via B4 Relay
vm_size, vma->vm_page_prot); return ret; } --- base-commit: 643e2e259c2b25a2af0ae4c23c6e16586d9fd19c change-id: 20250109-virtgpu-gem-partial-map-335ec40656d1

Re: [PATCH v4 18/25] drm/msm/dpu: Reserve resources for CWB

2025-01-09 Thread Jessica Zhang
On 12/28/2024 8:47 PM, Dmitry Baryshkov wrote: On Thu, Dec 26, 2024 at 02:49:28PM -0800, Jessica Zhang wrote: On 12/20/2024 5:07 PM, Dmitry Baryshkov wrote: On Fri, Dec 20, 2024 at 04:12:29PM -0800, Jessica Zhang wrote: On 12/19/2024 9:52 PM, Dmitry Baryshkov wrote: On Mon, Dec 16, 202

Re: [PATCH 0/3] drm/i915/gvt: Deadcoding

2025-01-09 Thread Rodrigo Vivi
On Mon, Jan 06, 2025 at 04:30:20PM +0900, Zhenyu Wang wrote: > On Sun, Dec 22, 2024 at 12:25:09AM +, Dr. David Alan Gilbert wrote: > > Note: zhen...@linux.intel.com's address bounces: > > > > yeah, I've left Intel so can't use that box any more, looks Rodrigo hasn't > queue up my address chan

Re: kmemleak: Found object by alias at 0xffff888107b65918

2025-01-09 Thread Alex Deucher
On Thu, Jan 9, 2025 at 3:29 PM Borislav Petkov wrote: > > Hi folks, > > this is rc6 + tip/master, machine is Carrizo laptop. Possibly fixed by this patch? https://lore.kernel.org/lkml/CAJZ5v0i=ap+w4QZ8f2DsaHY6D=XUEuSNjyQ-2_=dgolfzjd...@mail.gmail.com/T/ Alex > > full dmesg attached. > > Thx. >

[PATCH v7 00/14] Display Global Histogram

2025-01-09 Thread Arun R Murthy
EDITME: Imported from f20241218-dpst-v7-0-81bfe7d08...@intel.com Please review before sending. Display histogram is a hardware functionality where a statistics for 'n' number of frames is generated to form a histogram data. This is notified to the user via histogram event. Compositor will

kmemleak: Found object by alias at 0xffff888107b65918

2025-01-09 Thread Borislav Petkov
Hi folks, this is rc6 + tip/master, machine is Carrizo laptop. full dmesg attached. Thx. ... [ 13.271015] [drm] DM_PPLIB:level : 8 [ 13.271658] [drm] Display Core v3.2.310 initialized on DCE 11.0 [ 13.351651] kmemleak: Found object by alias at 0x888107b65918 [ 13.35236

[PATCH v7 14/14] drm/i915/histogram: Enable pipe dithering

2025-01-09 Thread Arun R Murthy
Enable pipe dithering while enabling histogram to overcome some atrifacts seen on the screen. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_histogram.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_histogram.c b/drivers

[PATCH v7 13/14] drm/i915/histogram: Histogram changes for Display 20+

2025-01-09 Thread Arun R Murthy
In Display 20+, new registers are added for setting index, reading histogram and writing the IET. v2: Removed duplicate code (Jani) v3: Moved histogram core changes to earlier patches (Jani/Suraj) v4: Rebased after addressing comments on patch 1 v5: Added the retry logic from patch3 and rebased th

[PATCH v7 12/14] drm/i915/histogram: histogram delay counter doesnt reset

2025-01-09 Thread Arun R Murthy
The delay counter for histogram does not reset and as a result the histogram bin never gets updated. Workaround would be to use save and restore histogram register. v2: Follow the seq in interrupt handler Restore DPST bit 0 read/write dpst ctl rg Restore DPST bit 1 and Guar

[PATCH v7 11/14] drm/i915/crtc: Hook i915 IET LUT with the drm IET properties

2025-01-09 Thread Arun R Murthy
Upon drm getting the IET LUT value from the user through the IET_LUT property, i915 driver will write the LUT table to the hardware registers. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_crtc.c| 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 2 ++ 2 files chang

[PATCH v7 09/14] drm/i915/histogram: Hook i915 histogram with drm histogram

2025-01-09 Thread Arun R Murthy
Handle histogram caps and histogram config property in i915 driver. Fill the histogram hardware capability and act upon the histogram config property to enable/disable histogram in i915. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_crtc.c| 7 +++ drivers/gpu/drm/i

[PATCH v7 10/14] drm/i915/iet: Add support to writing the IET LUT data

2025-01-09 Thread Arun R Murthy
User created LUT can be fed back to the hardware so that the hardware can apply this LUT data to see the enhancement in the image. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_histogram.c | 70 ++ drivers/gpu/drm/i915/display/intel_histogram.h | 4

[PATCH v7 08/14] drm/i915/histogram: histogram interrupt handling

2025-01-09 Thread Arun R Murthy
Upon enabling histogram an interrupt is trigerred after the generation of the statistics. This patch registers the histogram interrupt and handles the interrupt. v2: Added intel_crtc backpointer to intel_histogram struct (Jani) Removed histogram_wq and instead use dev_priv->unodered_eq (Jani)

[PATCH v7 07/14] drm/xe: Add histogram support to Xe builds

2025-01-09 Thread Arun R Murthy
Histogram added as part of i915/display driver. Adding the same for xe as well. Signed-off-by: Arun R Murthy Reviewed-by: Suraj Kandpal --- drivers/gpu/drm/xe/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile index 5c97ad6ed7

[PATCH v7 06/14] drm/i915/histogram: Add support for histogram

2025-01-09 Thread Arun R Murthy
Statistics is generated from the image frame that is coming to display and an event is sent to user after reading this histogram data. v2: forward declaration in header file along with error handling (Jani) v3: Replaced i915 with intel_display (Suraj) v4: Removed dithering enable/disable (Vandita)

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

2025-01-09 Thread Arun R Murthy
Display Histogram is an array of bins and can be generated in many ways referred to as modes. Ex: HSV max(RGB), Wighted RGB etc. Understanding the histogram data format(Ex: HSV max(RGB)) Histogram is just the pixel count. For a maximum resolution of 10k (10240 x 4320 = 44236800) 25 bits should be

[PATCH v7 04/14] drm/crtc: Expose API to create drm crtc property for IET LUT

2025-01-09 Thread Arun R Murthy
Add drm-crtc property for IET 1DLUT and for the properties added add corresponding get/set_property. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/drm_atomic_state_helper.c | 9 ++ drivers/gpu/drm/drm_atomic_uapi.c | 13 drivers/gpu/drm/drm_crtc.c| 54 +++

[PATCH v7 05/14] drm/i915/histogram: Define registers for histogram

2025-01-09 Thread Arun R Murthy
Add the register/bit definitions for global histogram. v2: Intended the register contents, removed unused regs (Jani) Bspec: 4270 Signed-off-by: Arun R Murthy Reviewed-by: Suraj Kandpal --- .../gpu/drm/i915/display/intel_histogram_regs.h| 48 ++ 1 file changed, 48 inser

[PATCH v7 03/14] drm/crtc: Expose API to create drm crtc property for histogram

2025-01-09 Thread Arun R Murthy
Add drm-crtc property for histogram and for the properties added add the corresponding get/set_property. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/drm_atomic_state_helper.c | 14 ++ drivers/gpu/drm/drm_atomic_uapi.c | 15 +++ drivers/gpu/drm/drm_crtc.c| 73

[PATCH v7 02/14] drm: Define ImageEnhancemenT LUT structures exposed to user

2025-01-09 Thread Arun R Murthy
ImageEnhancemenT(IET) hardware interpolates the LUT value to generate the enhanced output image. LUT takes an input value, outputs a new value based on the data within the LUT. 1D LUT can remap individual input values to new output values based on the LUT sample. LUT can be interpolated by the hard

Re: [RFC 00/14] Deadline scheduler and other ideas

2025-01-09 Thread Matthew Brost
On Wed, Jan 08, 2025 at 06:55:16PM +, Tvrtko Ursulin wrote: > > On 08/01/2025 16:57, Danilo Krummrich wrote: > > On Wed, Jan 08, 2025 at 03:13:39PM +, Tvrtko Ursulin wrote: > > > > > > On 08/01/2025 08:31, Danilo Krummrich wrote: > > > > On Mon, Dec 30, 2024 at 04:52:45PM +, Tvrtko Ur

Re: [PATCH v2] accel/amdxdna: Return error when setting clock failed for npu1

2025-01-09 Thread Mario Limonciello
On 1/9/2025 13:48, Lizhi Hou wrote: Due to miss returning error when setting clock, the smatch static checker reports warning: drivers/accel/amdxdna/aie2_smu.c:68 npu1_set_dpm() error: uninitialized symbol 'freq'. Fixes: f4d7b8a6bc8c ("accel/amdxdna: Enhance power management settings") Rep

Re: [RFC 00/14] Deadline scheduler and other ideas

2025-01-09 Thread Matthew Brost
On Wed, Jan 08, 2025 at 05:57:25PM +0100, Danilo Krummrich wrote: > On Wed, Jan 08, 2025 at 03:13:39PM +, Tvrtko Ursulin wrote: Hi, all. Just catching up on this post holidays. A few thoughts below. > > > > On 08/01/2025 08:31, Danilo Krummrich wrote: > > > On Mon, Dec 30, 2024 at 04:52:45P

[PATCH v2] accel/amdxdna: Return error when setting clock failed for npu1

2025-01-09 Thread Lizhi Hou
Due to miss returning error when setting clock, the smatch static checker reports warning: drivers/accel/amdxdna/aie2_smu.c:68 npu1_set_dpm() error: uninitialized symbol 'freq'. Fixes: f4d7b8a6bc8c ("accel/amdxdna: Enhance power management settings") Reported-by: Dan Carpenter Closes: https:

Re: [PATCH] accel/amdxdna: Return error when setting clock failed for npu1

2025-01-09 Thread Mario Limonciello
On 1/8/2025 17:41, Lizhi Hou wrote: Due to miss returning error when setting clock, the smatch static checker reports warning: drivers/accel/amdxdna/aie2_smu.c:68 npu1_set_dpm() error: uninitialized symbol 'freq'. Fixes: f4d7b8a6bc8c ("accel/amdxdna: Enhance power management settings") Rep

[PULL] drm-xe-fixes

2025-01-09 Thread Thomas Hellstrom
Hi Dave, Simona Two fixes this week. Thanks, Thomas drm-xe-fixes-2025-01-09: Driver Changes: - Avoid a NULL ptr deref when wedging (Lucas) - Fix power gate sequence on DG1 (Rodrigo) The following changes since commit f0ed39830e6064d62f9c5393505677a26569bb56: xe/oa: Fix query mode of operation

Re: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Belgaumkar, Vinay
On 1/9/2025 6:36 AM, Souza, Jose wrote: On Thu, 2025-01-09 at 17:37 +0530, Tejas Upadhyay wrote: Allow user to provide a low latency hint per exec queue. When set, KMD sends a hint to GuC which results in special handling for this exec queue. SLPC will ramp the GT frequency aggressively every

Re: [PATCH] drm/vmwgfx: Remove busy_places

2025-01-09 Thread Martin Krastev
On Wed, Jan 8, 2025 at 10:14 PM Ian Forbes wrote: > > Unused since commit a78a8da51b36 > ("drm/ttm: replace busy placement with flags v6") > > Signed-off-by: Ian Forbes > --- > drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 1 - > drivers/gpu/drm/vmwgfx/vmwgfx_bo.h | 1 - > 2 files changed, 2 deletions(-)

Re: [PATCH v3 07/15] drm/msm/dpu: bind correct pingpong for quad pipe

2025-01-09 Thread Jessica Zhang
On 12/18/2024 11:49 PM, Jun Nie wrote: There are 2 interfaces and 4 pingpong in quad pipe. Map the 2nd interface to 3rd PP instead of the 2nd PP. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 15 +

Re: [PATCH] treewide: const qualify ctl_tables where applicable

2025-01-09 Thread Song Liu
On Thu, Jan 9, 2025 at 5:16 AM Joel Granados wrote: > [...] > drivers/base/firmware_loader/fallback_table.c | 2 +- > drivers/cdrom/cdrom.c | 2 +- > drivers/char/hpet.c | 2 +- > drivers/char/ipmi/ipmi_poweroff.c | 2 +- > drivers/cha

RE: [RFC PATCH V2] drm/xe/guc: Use exec queue hints for GT frequency

2025-01-09 Thread Zeng, Oak
> -Original Message- > From: dri-devel On > Behalf Of Tejas Upadhyay > Sent: January 9, 2025 7:07 AM > To: intel...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org; Nilawar, Badal > ; Belgaumkar, Vinay > ; Mrozek, Michal > ; Morek, Szymon > ; Souza, Jose ; > De Marchi, Lucas

Re: [PATCH v7 2/4] drm/file: Add driver-specific memory region key printing helper

2025-01-09 Thread Adrián Larumbe
On 09.01.2025 13:05, Tvrtko Ursulin wrote: > On 08/01/2025 21:02, Adrián Larumbe wrote: > > This is motivated by the desire of some dirvers (eg. Panthor) to print the > > size of internal memory regions with a prefix that reflects the driver > > name, as suggested in the previous documentation comm

Re: [PATCH v4 2/3] backlight: dwi_bl: Add Apple DWI backlight driver

2025-01-09 Thread Daniel Thompson
On Thu, Jan 09, 2025 at 11:52:56PM +0800, Nick Chan wrote: > > Daniel Thompson 於 2025/1/8 下晝6:52 寫道: > > On Wed, Dec 11, 2024 at 07:34:38PM +0800, Nick Chan wrote: > >> Add driver for backlight controllers attached via Apple DWI 2-wire > >> interface, which is found on some Apple iPhones, iPads and

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

2025-01-09 Thread Matthew Auld
On 09/01/2025 16:26, Thomas Zimmermann wrote: Hi Am 09.01.25 um 17:05 schrieb Matthew Auld: On 09/01/2025 14:57, Thomas Zimmermann wrote: Call drm_mode_size_dumb() to compute dumb-buffer scanline pitch and buffer size. Align the pitch to a multiple of 8. Align the buffer size according to har

Re: [PATCH] nouveau/fence: handle cross device fences properly. (v3)

2025-01-09 Thread Danilo Krummrich
On Thu, Jan 09, 2025 at 10:55:53AM +1000, Dave Airlie wrote: > From: Dave Airlie > > This is the 3rd iteration of this after talking to Ben and > Danilo, I think this makes sense now. > > The fence sync logic doesn't handle a fence sync across devices > as it tries to write to a channel offset f

Re: [PATCH 3/5] dma-fence: Add a single fence fast path for fence merging

2025-01-09 Thread Tvrtko Ursulin
On 09/01/2025 15:47, Christian König wrote: And pushed to drm-misc-next. Sorry I'm still catching up from the holidays, Thank you! I afforded myself an extra ping with all this talk about unreliable/corrupt email. Regards, Tvrtko Am 09.01.25 um 11:53 schrieb Tvrtko Ursulin: Christian

Re: [RFC 00/14] Deadline scheduler and other ideas

2025-01-09 Thread Tvrtko Ursulin
On 09/01/2025 15:08, Michel Dänzer wrote: On 2025-01-03 13:31, Christian König wrote: Am 03.01.25 um 13:02 schrieb Tvrtko Ursulin: One big question is whether round-robin can really be removed. Does anyone use it, rely on it, or what are even use cases where it is much better than FIFO. So

  1   2   3   >