[PATCH v3 00/11] driver core: Constify API device_find_child()

2024-12-04 Thread Zijun Hu
This patch series is to constify the following API: struct device *device_find_child(struct device *dev, void *data, int (*match)(struct device *dev, void *data)); To : struct device *device_find_child(struct device *dev, const void *data, device_mat

[PATCH v3 01/11] libnvdimm: Simplify nd_namespace_store() implementation

2024-12-04 Thread Zijun Hu
From: Zijun Hu Simplify nd_namespace_store() implementation by device_find_child_by_name() Signed-off-by: Zijun Hu --- drivers/nvdimm/claim.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/nvdimm/claim.c b/drivers/nvdimm/claim.c index 030dbde6b0882050c90fb

[PATCH v3 02/11] slimbus: core: Constify slim_eaddr_equal()

2024-12-04 Thread Zijun Hu
From: Zijun Hu bool slim_eaddr_equal(struct slim_eaddr *a, struct slim_eaddr *b) does not modify @*a or @*b. Constify it by simply changing its parameter type to 'const struct slim_eaddr *'. Signed-off-by: Zijun Hu --- drivers/slimbus/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH v3 11/11] usb: typec: class: Remove both cable_match() and partner_match()

2024-12-04 Thread Zijun Hu
From: Zijun Hu cable_match(), as matching function of device_find_child(), is to match a device with device type @typec_cable_dev_type, and is unnecessary. partner_match() is similar with cable_match() but with different device type @typec_partner_dev_type. Remove both functions and directly us

[PATCH v3 10/11] cxl/pmem: Remove match_nvdimm_bridge()

2024-12-04 Thread Zijun Hu
From: Zijun Hu match_nvdimm_bridge(), as matching function of device_find_child(), is to match a device with device type @cxl_nvdimm_bridge_type, and is unnecessary Remove it and use API device_match_type() plus the device type instead. Signed-off-by: Zijun Hu --- drivers/cxl/core/pmem.c | 9

Re: [PATCH v1 04/10] phy: phy-rockchip-samsung-hdptx: Add support for eDP mode

2024-12-04 Thread Damon Ding
Hi Sebastian, On 2024/12/2 22:41, Sebastian Reichel wrote: Hi, On Mon, Dec 02, 2024 at 11:28:13AM +0800, Damon Ding wrote: Hi, On 2024/12/2 6:59, Sebastian Reichel wrote: Hi, On Sat, Nov 30, 2024 at 09:25:12PM +0100, Heiko Stübner wrote: Am Freitag, 29. November 2024, 03:43:57 CET schrieb

Re: [PATCH v2 00/32] driver core: Constify API device_find_child() and adapt for various existing usages

2024-12-04 Thread Zijun Hu
On 2024/12/5 00:42, James Bottomley wrote:  introduce extra device_find_child_new() which is constified  -> use *_new() replace ALL device_find_child() instances one by one -> remove device_find_child() -> rename *_new() to device_find_child() once. >>> Why bother with the last

[Bug 219563] New: amdgpu graphical glitches on Thinkpad E14 G6 with panel self-refresh enabled

2024-12-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219563 Bug ID: 219563 Summary: amdgpu graphical glitches on Thinkpad E14 G6 with panel self-refresh enabled Product: Drivers Version: 2.5 Hardware: AMD OS: Linux

Re: [PATCH v1 7/7] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-04 Thread 胡俊光

Re: [PATCH V1 6/7] accel/amdxdna: Enhance power management settings

2024-12-04 Thread Mario Limonciello
On 12/4/2024 15:37, Lizhi Hou wrote: Add SET_STATE ioctl to configure device power mode for aie2 device. Three modes are supported initially. POWER_MODE_DEFAULT: Enable clock gating and set DPM (Dynamic Power Management) level to value which has been set by resource solver or maximum DPM level t

[PATCH v3 03/11] bus: fsl-mc: Constify fsl_mc_device_match()

2024-12-04 Thread Zijun Hu
From: Zijun Hu fsl_mc_device_match() does not modify caller's inputs. Constify it by simply changing its parameter types to const pointer. Signed-off-by: Zijun Hu --- drivers/bus/fsl-mc/dprc-driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fsl-mc/dp

Re: [PATCH v3 2/3] dt-bindings: display: rockchip: Add schema for RK3588 DW DSI2 controller

2024-12-04 Thread Andy Yan
Hi Heiko, On 12/4/24 00:54, Heiko Stuebner wrote: From: Heiko Stuebner The Display Serial Interface 2 (DSI-2) is part of a group of communication protocols defined by the MIPI Alliance. The RK3588 implements this specification in its two MIPI DSI-2 Host Controllers that are based on a new Syno

Re: [PATCH v2.1 1/1] kernel/cgroup: Add "dmem" memory accounting cgroup

2024-12-04 Thread kernel test robot
Hi Maarten, kernel test robot noticed the following build errors: [auto build test ERROR on tj-cgroup/for-next] [also build test ERROR on akpm-mm/mm-everything linus/master v6.13-rc1 next-20241204] [cannot apply to drm-misc/drm-misc-next drm-tip/drm-tip] [If your patch is applied to the wrong

[PATCH v3 04/11] driver core: Constify API device_find_child() then adapt for various usages

2024-12-04 Thread Zijun Hu
From: Zijun Hu Constify the following API: struct device *device_find_child(struct device *dev, void *data, int (*match)(struct device *dev, void *data)); To : struct device *device_find_child(struct device *dev, const void *data, device_match_t ma

[PATCH v3 09/11] driver core: Introduce an device matching API device_match_type()

2024-12-04 Thread Zijun Hu
From: Zijun Hu Introduce device_match_type() for purposes below: - Test if a device matches with a specified device type. - As argument of various device finding APIs to find a device with specified type. device_find_child() will use it to simplify operations later. Signed-off-by: Zijun Hu

[PATCH v3 08/11] gpio: sim: Remove gpio_sim_dev_match_fwnode()

2024-12-04 Thread Zijun Hu
From: Zijun Hu gpio_sim_dev_match_fwnode() is a simple wrapper of device_match_fwnode() Remvoe the unnecessary wrapper. Signed-off-by: Zijun Hu --- drivers/gpio/gpio-sim.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.

[PATCH v3 07/11] slimbus: core: Simplify of_find_slim_device() implementation

2024-12-04 Thread Zijun Hu
From: Zijun Hu Simplify of_find_slim_device() implementation by device_match_of_node(). Signed-off-by: Zijun Hu --- drivers/slimbus/core.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index ab927fd077cb4fe1e29c00

[PATCH v3 06/11] driver core: Remove match_any()

2024-12-04 Thread Zijun Hu
From: Zijun Hu Static match_any() is same as API device_match_any() Remove the former and use the later instead. Signed-off-by: Zijun Hu --- drivers/base/core.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 8116bc8dd6

[PATCH v3 05/11] driver core: Simplify API device_find_child_by_name() implementation

2024-12-04 Thread Zijun Hu
From: Zijun Hu Simplify device_find_child_by_name() implementation by both existing API device_find_child() and device_match_name(). Signed-off-by: Zijun Hu --- drivers/base/core.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/base/core.c b/drivers/b

Re: [PATCH v3 00/11] driver core: Constify API device_find_child()

2024-12-04 Thread Zijun Hu
On 2024/12/5 08:10, Zijun Hu wrote: > This patch series is to constify the following API: This patch series is based on the lasted mainline commit Commit: feffde684ac2 ("Merge tag 'for-6.13-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux") to avoid potential conflict as much

Re: [PATCH v1 7/7] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-04 Thread 胡俊光

Re: [PATCH 3/5] drm/msm: mdss: Add QCS8300 support

2024-12-04 Thread Yongxing Mou
On 2024/11/30 2:55, Dmitry Baryshkov wrote: On Wed, Nov 27, 2024 at 03:05:03PM +0800, Yongxing Mou wrote: Add Mobile Display Subsystem (MDSS) support for the QCS8300 platform. Signed-off-by: Yongxing Mou --- drivers/gpu/drm/msm/msm_mdss.c | 11 +++ 1 file changed, 11 insertions(+

Re: [PATCH v1 7/7] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-04 Thread 胡俊光

Re: [PATCH v2] drm/atmel_hlcdc: Fix uninitialized variable

2024-12-04 Thread Advait Dhamorikar
Hello, Just a gentle ping, this patch was never applied. Is there something more that needs to be done? Thanks and regards, Advait On Mon, 14 Oct 2024 at 13:08, Dmitry Baryshkov wrote: > > On Mon, Oct 07, 2024 at 08:39:04PM +0530, Advait Dhamorikar wrote: > > atmel_hlcdc_plane_update_buffers: m

Re: [PATCH 6/9] drm/rcar-du: Add support for r8a779h0

2024-12-04 Thread Tomi Valkeinen
Hi Laurent, On 03/12/2024 12:48, Laurent Pinchart wrote: On Tue, Dec 03, 2024 at 11:22:15AM +0200, Tomi Valkeinen wrote: On 03/12/2024 10:56, Laurent Pinchart wrote: On Tue, Dec 03, 2024 at 10:01:40AM +0200, Tomi Valkeinen wrote: From: Tomi Valkeinen Add support for r8a779h0. It is very sim

Re: [PATCH v1 6/7] drm/mediatek: mtk_hdmi: Split driver and add common probe function

2024-12-04 Thread 胡俊光

Re: [RFC PATCH v1 01/14] clk: thead: Refactor TH1520 clock driver to share common code

2024-12-04 Thread Krzysztof Kozlowski
On 04/12/2024 14:54, Michal Wilczynski wrote: > > > On 12/3/24 20:56, Stephen Boyd wrote: >> Quoting Michal Wilczynski (2024-12-03 05:41:24) >>> diff --git a/drivers/clk/thead/Makefile b/drivers/clk/thead/Makefile >>> index 7ee0bec1f251..d7cf88390b69 100644 >>> --- a/drivers/clk/thead/Makefile >>

Re: [PATCH 2/4] dt-bindings: display: msm: dp-controller: document clock parents better

2024-12-04 Thread Krzysztof Kozlowski
On 04/12/2024 11:09, Dmitry Baryshkov wrote: > On Wed, Dec 04, 2024 at 09:02:18AM +0100, Krzysztof Kozlowski wrote: >> On Tue, Dec 03, 2024 at 03:41:48PM +0200, Dmitry Baryshkov wrote: >>> On Tue, Dec 03, 2024 at 09:01:31AM +0100, Krzysztof Kozlowski wrote: On 03/12/2024 04:31, Abhinav Kumar w

Re: [PATCH v2 1/3] drm/xen: remove redundant initialization info print

2024-12-04 Thread Thomas Zimmermann
Am 04.12.24 um 15:31 schrieb Jani Nikula: drm_dev_register() already prints the same information on successful init. Remove the redundant prints. Acked-by: Alex Deucher Signed-off-by: Jani Nikula --- Note: I prefer to merge this together with the next patch via drm-misc-next. Cc: Oleksa

Re: [PATCH v3 2/3] dt-bindings: display: rockchip: Add schema for RK3588 DW DSI2 controller

2024-12-04 Thread Andy Yan
Hi Heiko, On 12/4/24 00:54, Heiko Stuebner wrote: From: Heiko Stuebner The Display Serial Interface 2 (DSI-2) is part of a group of communication protocols defined by the MIPI Alliance. The RK3588 implements this specification in its two MIPI DSI-2 Host Controllers that are based on a new Syno

Re: [PATCH v8 1/6] drm/panic: Move drawing functions to drm_draw

2024-12-04 Thread Jani Nikula
On Tue, 03 Dec 2024, Thomas Zimmermann wrote: > Hi > > > Am 03.12.24 um 15:19 schrieb Jocelyn Falempe: >> On 03/12/2024 15:08, Jani Nikula wrote: >>> On Tue, 03 Dec 2024, Jocelyn Falempe wrote: On 03/12/2024 12:06, Jani Nikula wrote: > On Fri, 15 Nov 2024, Jocelyn Falempe wrote: >>

RE: [PATCH 1/3] udmabuf: fix racy memfd sealing check

2024-12-04 Thread Kasireddy, Vivek
Hi Jann, > Subject: [PATCH 1/3] udmabuf: fix racy memfd sealing check > > The current check_memfd_seals() is racy: Since we first do > check_memfd_seals() and then udmabuf_pin_folios() without holding any > relevant lock across both, F_SEAL_WRITE can be set in between. > This is problematic becau

RE: [PATCH 2/3] udmabuf: also check for F_SEAL_FUTURE_WRITE

2024-12-04 Thread Kasireddy, Vivek
> Subject: [PATCH 2/3] udmabuf: also check for F_SEAL_FUTURE_WRITE > > When F_SEAL_FUTURE_WRITE was introduced, it was overlooked that > udmabuf > must reject memfds with this flag, just like ones with F_SEAL_WRITE. > Fix it by adding F_SEAL_FUTURE_WRITE to SEALS_DENIED. > > Fixes: ab3948f58ff8 (

Re: [PATCH 1/9] dt-bindings: display: bridge: renesas,dsi-csi2-tx: Add r8a779h0

2024-12-04 Thread Krzysztof Kozlowski
On Tue, Dec 03, 2024 at 10:01:35AM +0200, Tomi Valkeinen wrote: > From: Tomi Valkeinen > > Extend the Renesas DSI display bindings to support the r8a779h0 V4M. > > Signed-off-by: Tomi Valkeinen > --- > .../devicetree/bindings/display/bridge/renesas,dsi-csi2-tx.yaml | 1 > + > 1 file

RE: [PATCH 3/3] udmabuf: fix memory leak on last export_udmabuf() error path

2024-12-04 Thread Kasireddy, Vivek
Hi Jann, > Subject: [PATCH 3/3] udmabuf: fix memory leak on last export_udmabuf() > error path > > In export_udmabuf(), if dma_buf_fd() fails because the FD table is full, a > dma_buf owning the udmabuf has already been created; but the error > handling > in udmabuf_create() will tear down the ud

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Christian König
Am 03.12.24 um 18:44 schrieb Thomas Hellström: On Tue, 2024-12-03 at 17:46 +0100, Christian König wrote: Am 03.12.24 um 17:43 schrieb Thomas Hellström: On Tue, 2024-12-03 at 17:39 +0100, Christian König wrote: Am 03.12.24 um 17:31 schrieb Thomas Hellström: On Tue, 2024-12-03 at 17:20 +0100, C

[PATCHv2 01/10] drm/crtc: Add histogram properties

2024-12-04 Thread Arun R Murthy
Add variables for histogram drm_property, its corrsponding crtc_state variables and define the structure pointed by the blob property. struct drm_histogram defined in include/uapi/drm/drm_mode.h The blob data pointer will be the address of the struct drm_histogram. The struct drm_histogram will be

[PATCHv2 07/10] drm/i915/display: handle drm-crtc histogram property updates

2024-12-04 Thread Arun R Murthy
Check for any updates on drm_crtc property histogram_enable and histogram_iet_updated and call/act accordingly to update histogram or update the image enhancement LUT data API defined in i915 histogram. v2: corrected the FORTIFY_SOURCE error Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915

[PATCH 02/10] drm/fourcc: Add DRM_FORMAT_XV15/XV20

2024-12-04 Thread Tomi Valkeinen
Add two new pixel formats: DRM_FORMAT_XV15 ("XV15") DRM_FORMAT_XV20 ("XV20") The formats are 2 plane 10 bit per component YCbCr, with the XV15 2x2 subsampled whereas XV20 is 2x1 subsampled. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 8 include/uapi/drm/drm_fourc

[PATCH 04/10] drm/fourcc: Add DRM_FORMAT_Y10_LE32

2024-12-04 Thread Tomi Valkeinen
Add Y10_LE32, a 10 bit greyscale format, with 3 pixels packed into 32-bit container. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 4 include/uapi/drm/drm_fourcc.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fo

[PATCH 08/10] drm: xlnx: zynqmp: Add support for Y8 and Y10_LE32

2024-12-04 Thread Tomi Valkeinen
Add support for Y8 and Y10_LE32 formats. We also need to add new csc matrices for the y-only formats. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_di

[PATCH 07/10] drm: xlnx: zynqmp: Add support for XV15 & XV20

2024-12-04 Thread Tomi Valkeinen
Add support for XV15 & XV20 formats. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index 57221575cbd6..3998754e367e 100644 --- a/drivers

[PATCH 06/10] drm: xlnx: zynqmp: Use drm helpers when calculating buffer sizes

2024-12-04 Thread Tomi Valkeinen
Use drm helpers, drm_format_info_plane_width(), drm_format_info_plane_height() and drm_format_info_min_pitch() to calculate sizes for the DMA. This cleans up the code, but also makes it possible to support more complex formats (like XV15, XV20). Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm

[PATCH 03/10] drm/fourcc: Add DRM_FORMAT_Y8

2024-12-04 Thread Tomi Valkeinen
Add greyscale Y8 format. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 1 + include/uapi/drm/drm_fourcc.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index adb2d44630ee..d721d9fdbe98 100644 --- a/drivers/

[PATCH 10/10] drm: xlnx: zynqmp: Fix max dma segment size

2024-12-04 Thread Tomi Valkeinen
Fix "mapping sg segment longer than device claims to support" warning by setting the max segment size. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dp

Re: [PATCH v1 7/7] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-04 Thread 胡俊光

Re: [PATCH v1 7/7] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-04 Thread 胡俊光

[PATCH 00/10] drm: Add new pixel formats for Xilinx Zynqmp

2024-12-04 Thread Tomi Valkeinen
Add new DRM pixel formats and add support for those in the Xilinx zynqmp display driver. All of these formats are already supported in upstream gstreamer, except in the gstreamer kmssink, which obviously cannot support the formats without kernel having the formats. Xilinx has support for these fo

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Thomas Hellström
On Wed, 2024-12-04 at 10:16 +0100, Christian König wrote: > Am 03.12.24 um 18:44 schrieb Thomas Hellström: > > On Tue, 2024-12-03 at 17:46 +0100, Christian König wrote: > > > Am 03.12.24 um 17:43 schrieb Thomas Hellström: > > > > On Tue, 2024-12-03 at 17:39 +0100, Christian König wrote: > > > > > A

Re: [PATCH 2/4] dt-bindings: display: msm: dp-controller: document clock parents better

2024-12-04 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 09:02:18AM +0100, Krzysztof Kozlowski wrote: > On Tue, Dec 03, 2024 at 03:41:48PM +0200, Dmitry Baryshkov wrote: > > On Tue, Dec 03, 2024 at 09:01:31AM +0100, Krzysztof Kozlowski wrote: > > > On 03/12/2024 04:31, Abhinav Kumar wrote: > > > > Document the assigned-clock-paren

[Bug 219556] AMDGPU monitoring is broken

2024-12-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219556 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED Reso

Re: [PATCH 2/4] drm/msm/dp: remove redundant ST_DISPLAY_OFF checks in msm_dp_bridge_atomic_enable()

2024-12-04 Thread Dmitry Baryshkov
On Tue, Dec 03, 2024 at 07:24:46PM -0800, Abhinav Kumar wrote: > > > On 12/3/2024 5:53 AM, Dmitry Baryshkov wrote: > > On Mon, Dec 02, 2024 at 04:39:01PM -0800, Abhinav Kumar wrote: > > > The checks in msm_dp_display_prepare() for making sure that we are in > > > ST_DISPLAY_OFF OR ST_MAINLINK_REA

Re: [PATCH 3/3] drm/msm/dp: add a debugfs node for using tpg

2024-12-04 Thread Dmitry Baryshkov
On Tue, Dec 03, 2024 at 07:57:25PM -0800, Abhinav Kumar wrote: > > > On 12/3/2024 3:38 PM, Dmitry Baryshkov wrote: > > On Mon, Dec 02, 2024 at 12:42:00PM -0800, Abhinav Kumar wrote: > > > DP test pattern generator is a very useful tool to debug issues > > > where monitor is showing incorrect outp

[PATCH] dt-bindings: display: msm: sm8350-mdss: document the third interconnect path

2024-12-04 Thread Neil Armstrong
"^display-controller@[0-9a-f]+$": --- base-commit: 667ff2368867af7000ce32a8b3fc025c2b3226b3 change-id: 20241204-topic-misc-sm8350-mdss-bindings-fix-1701baffc1aa Best regards, -- Neil Armstrong

Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format

2024-12-04 Thread Tommaso Merciai
Hi Liu Ying, Thanks for your review. On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote: > On 12/04/2024, tomm.merc...@gmail.com wrote: > > From: Tommaso Merciai > > > > Introduce it6263_is_input_bus_fmt_valid() and refactor the > > it6263_bridge_atomic_get_input_bus_fmts() function to sup

Re: [PATCH v2] drm: bridge: fsl-ldb: fixup mode on freq mismatch

2024-12-04 Thread Nikolaus Voss
Hi Marek, On 03.12.2024 21:15, Marek Vasut wrote: On 12/3/24 8:09 PM, Nikolaus Voss wrote: LDB clock has to be a fixed multiple of the pixel clock. As LDB and pixel clock are derived from different clock sources Can you please share the content of /sys/kernel/debug/clk/clk_summary ? Sure. W

Re: [PATCH v3 3/3] drm/rockchip: Add MIPI DSI2 glue driver for RK3588

2024-12-04 Thread Diederik de Haas
If there's going to be another version (to fix this) ... On Wed Dec 4, 2024 at 3:16 AM CET, Kever Yang wrote: > On 2024/12/4 00:54, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > This adds the glue code for the MIPI DSI2 bridge on Rockchip SoCs and > > enables its use on the RK3588. > > >

Re: [PATCH v2 1/1] drm/virtio: Implement device_attach

2024-12-04 Thread Christian König
Hi Julia, sorry I totally missed your mail. The basic problem for P2P is what I already described in my previous mail: Well the problem is the virtualized environment. pci_p2pdma_distance() checks if two physical PCI devices can communicate with each other (and returns how many hops are in be

Re: [PATCH] drm: bridge: fsl-ldb: fixup mode on freq mismatch

2024-12-04 Thread Nikolaus Voss
Hi Marek, On 04.12.2024 00:40, Marek Vasut wrote: On 12/3/24 8:20 AM, Nikolaus Voss wrote: On 03.12.2024 04:12, Marek Vasut wrote: On 12/3/24 3:22 AM, Liu Ying wrote: [...] I doubt that pixel clock tree cannot find appropriate division ratios for some pixel clock rates, especially for dual-

[Bug 219556] AMDGPU monitoring is broken

2024-12-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219556 --- Comment #2 from Hanabishi (i.r.e.c.c.a.k.u.n+bugzilla.kernel@gmail.com) --- https://gitlab.freedesktop.org/drm/amd/-/issues/3811 -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the

[PATCH v3] drm: Drop explicit initialization of struct i2c_device_id::driver_data to 0

2024-12-04 Thread Uwe Kleine-König
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. While add it, also rem

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Christian König
Am 04.12.24 um 10:56 schrieb Thomas Hellström: On Wed, 2024-12-04 at 10:16 +0100, Christian König wrote: Am 03.12.24 um 18:44 schrieb Thomas Hellström: On Tue, 2024-12-03 at 17:46 +0100, Christian König wrote: Am 03.12.24 um 17:43 schrieb Thomas Hellström: On Tue, 2024-12-03 at 17:39 +0100, C

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Thomas Hellström
On Wed, 2024-12-04 at 11:56 +0100, Christian König wrote: > Am 04.12.24 um 10:56 schrieb Thomas Hellström: > > On Wed, 2024-12-04 at 10:16 +0100, Christian König wrote: > > > Am 03.12.24 um 18:44 schrieb Thomas Hellström: > > > > On Tue, 2024-12-03 at 17:46 +0100, Christian König wrote: > > > > > A

Re: [PATCH v10 1/4] drm: Introduce device wedged event

2024-12-04 Thread Raag Jadav
+ misc maintainers On Tue, Dec 03, 2024 at 11:18:00AM +0100, Christian König wrote: > Am 03.12.24 um 06:00 schrieb Raag Jadav: > > On Mon, Dec 02, 2024 at 10:07:59AM +0200, Raag Jadav wrote: > > > On Fri, Nov 29, 2024 at 10:40:14AM -0300, André Almeida wrote: > > > > Hi Raag, > > > > > > > > Em 2

Re: [PATCH] dt-bindings: display: msm: sm8350-mdss: document the third interconnect path

2024-12-04 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 11:36:37AM +0100, Neil Armstrong wrote: > Document the missing third "cpu-cfg" interconnect path for the MDSS hardware > found on the Qualcomm SM8350 platform. > > This fixes: > display-subsystem@ae0: interconnects: [[121, 7, 0, 77, 1, 0], [121, 8, 0, > 77, 1, 0], [78,

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Christian König
Am 04.12.24 um 12:09 schrieb Thomas Hellström: [SNIP] BTW I really dislike that tt->restore is allocated dynamically. That is just another allocation which can cause problems. We should probably have all the state necessary for the operation in the TT object. Initially it was done this way. B

[PATCH 05/10] drm/fourcc: Add DRM_FORMAT_X403

2024-12-04 Thread Tomi Valkeinen
Add X403, a 3 plane non-subsampled YCbCr format. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 4 include/uapi/drm/drm_fourcc.h | 8 2 files changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 6048e0a191dc..2

Re: [PATCH] dt-bindings: display: msm: sm8350-mdss: document the third interconnect path

2024-12-04 Thread Rob Herring (Arm)
cumentation/devicetree/bindings/display/msm/qcom,sm8350-mdss.example.dtb: display-subsystem@ae0: interconnect-names: ['mdp0-mem', 'mdp1-mem'] is too short from schema $id: http://devicetree.org/schemas/display/msm/qcom,sm8350-mdss.yaml# doc reference errors

Re: [PATCHv2 01/10] drm/crtc: Add histogram properties

2024-12-04 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 02:44:56PM +0530, Arun R Murthy wrote: > Add variables for histogram drm_property, its corrsponding crtc_state > variables and define the structure pointed by the blob property. > struct drm_histogram defined in include/uapi/drm/drm_mode.h > The blob data pointer will be the

Re: [PATCH v4] drm/v3d: Add DRM_IOCTL_V3D_PERFMON_SET_GLOBAL

2024-12-04 Thread Maíra Canal
On 02/12/24 11:06, Christian Gmeiner wrote: From: Christian Gmeiner Add a new ioctl, DRM_IOCTL_V3D_PERFMON_SET_GLOBAL, to allow configuration of a global performance monitor (perfmon). Use the global perfmon for all jobs to ensure consistent performance tracking across submissions. This feature

Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format

2024-12-04 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote: > Hi Liu Ying, > Thanks for your review. > > On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote: > > On 12/04/2024, tomm.merc...@gmail.com wrote: > > > From: Tommaso Merciai > > > > > > Introduce it6263_is_input_bus_fmt_valid

[PATCH 01/10] drm/fourcc: Add warning for bad bpp

2024-12-04 Thread Tomi Valkeinen
drm_format_info_bpp() cannot be used for formats which do not have an integer bits-per-pixel. Handle wrong calls by printing a warning and returning 0. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_fo

[PATCH 09/10] drm: xlnx: zynqmp: Add support for X403

2024-12-04 Thread Tomi Valkeinen
Add support for X403 format. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index 44cfee6a0e32..622d1dfac42d 100644 --- a/drivers/gpu/drm/xlnx/z

Re: Removing page->index

2024-12-04 Thread Thomas Zimmermann
Hi Am 03.12.24 um 20:51 schrieb Matthew Wilcox: I've pushed out a new tree to git://git.infradead.org/users/willy/pagecache.git shrunk-page aka http://git.infradead.org/?p=users/willy/pagecache.git;a=shortlog;h=refs/heads/shrunk-page The observant will notice that it doesn't actually shrink st

[PATCH v2] drm/panel: visionox-rm69299: Remove redundant assignments of panel fields

2024-12-04 Thread Chen-Yu Tsai
drm_panel_init() was made to initialize the fields in |struct drm_panel|. There is no need to separately initialize them again. Drop the separate assignments that are redundant. Also fix up any uses of `ctx->panel.dev` to use `dev` directly. Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Al

Re: [PATCH v14 3/8] drm/ttm/pool: Provide a helper to shrink pages

2024-12-04 Thread Thomas Hellström
On Wed, 2024-12-04 at 12:24 +0100, Christian König wrote: > Am 04.12.24 um 12:09 schrieb Thomas Hellström: > > [SNIP] > > > > > > BTW I really dislike that tt->restore is allocated > > > > > dynamically. > > > > > That > > > > > is > > > > > just another allocation which can cause problems. > > >

Re: [PATCH v2 00/32] driver core: Constify API device_find_child() and adapt for various existing usages

2024-12-04 Thread Zijun Hu
On 2024/12/3 23:34, James Bottomley wrote: >>> This also enables an incremental migration. >> change the API prototype from: >> device_find_child(..., void *data_0, int (*match)(struct device *dev, >> void *data)); >> >> to: >> device_find_child(..., const void *data_0, int (*match)(struct device >

[PATCH] drm/v3d: Enable Performance Counters before clearing them

2024-12-04 Thread Maíra Canal
On the Raspberry Pi 5, performance counters are not being cleared when `v3d_perfmon_start()` is called, even though we write to the CLR register. As a result, their values accumulate until they overflow. The expected behavior is for performance counters to reset to zero at the start of a job. When

Re: [PATCH] dt-bindings: display: msm: sm8350-mdss: document the third interconnect path

2024-12-04 Thread Neil Armstrong
ke refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20241204-topic-misc-sm8350-mdss-bindings-fix-v1-1-aa492a306...@linaro.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'm

Re: [PATCH] drm/v3d: Enable Performance Counters before clearing them

2024-12-04 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga El mié, 04-12-2024 a las 09:28 -0300, Maíra Canal escribió: > On the Raspberry Pi 5, performance counters are not being cleared > when `v3d_perfmon_start()` is called, even though we write to the > CLR register. As a result, their values accumulate until they > ove

Re: [PATCH v2] drm: bridge: fsl-ldb: fixup mode on freq mismatch

2024-12-04 Thread kernel test robot
drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Nikolaus-Voss/drm-bridge-fsl-ldb-fixup-mode-on-freq-mismatch/20241204-115306 bas

Re: [PATCH v3 3/3] drm/rockchip: Add MIPI DSI2 glue driver for RK3588

2024-12-04 Thread Andy Yan
Hi Heiko, On 12/4/24 00:54, Heiko Stuebner wrote: From: Heiko Stuebner This adds the glue code for the MIPI DSI2 bridge on Rockchip SoCs and enables its use on the RK3588. Right now the DSI2 controller is always paired with a DC-phy based on a Samsung IP, so the interface values are set stati

Re: [PATCH] drm/mediatek: dp: Support flexible length of DP calibration data

2024-12-04 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Fei-Shao/drm-mediatek-dp-Support-flexible-length-of-DP-calibration-data/20241204-133854 base: linus/master patch link: https://lore.ke

Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format

2024-12-04 Thread Tommaso Merciai
Hi Dmitry, On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote: > On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote: > > Hi Liu Ying, > > Thanks for your review. > > > > On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote: > > > On 12/04/2024, tomm.merc...@gmail.co

[PATCH v2 5/7] drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req()

2024-12-04 Thread Imre Deak
While receiving an MST up request message from one thread in drm_dp_mst_handle_up_req(), the MST topology could be removed from another thread via drm_dp_mst_topology_mgr_set_mst(false), freeing mst_primary and setting drm_dp_mst_topology_mgr::mst_primary to NULL. This could lead to a NULL deref/us

Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format

2024-12-04 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 02:11:28PM +0100, Tommaso Merciai wrote: > Hi Dmitry, > > On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote: > > On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote: > > > Hi Liu Ying, > > > Thanks for your review. > > > > > > On Wed, Dec 04, 202

Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format

2024-12-04 Thread Tommaso Merciai
On Wed, Dec 04, 2024 at 03:33:09PM +0200, Dmitry Baryshkov wrote: > On Wed, Dec 04, 2024 at 02:11:28PM +0100, Tommaso Merciai wrote: > > Hi Dmitry, > > > > On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote: > > > On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote: > > >

[PATCH v2 5/7] drm/amdgpu: Add cgroups implementation

2024-12-04 Thread Maarten Lankhorst
Similar to xe, enable some simple management of VRAM only. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vra

[PATCH v2 1/7] kernel/cgroup: Add "dmem" memory accounting cgroup

2024-12-04 Thread Maarten Lankhorst
This code is based on the RDMA and misc cgroup initially, but now uses page_counter. It uses the same min/low/max semantics as the memory cgroup as a result. There's a small mismatch as TTM uses u64, and page_counter long pages. In practice it's not a problem. 32-bits systems don't really come wit

[PATCH v2 4/7] drm/xe: Implement cgroup for vram

2024-12-04 Thread Maarten Lankhorst
Add vram based cgroup eviction to Xe. Most hardware with VRAM uses TTM for its management, and can be similarly trivially enabled. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 8 1 file changed,

Re: [PATCH 4.19 000/138] 4.19.325-rc1 review

2024-12-04 Thread Naresh Kamboju
On Tue, 3 Dec 2024 at 20:04, Greg Kroah-Hartman wrote: > > -- > Note, this is the LAST 4.19.y kernel to be released. After this one, it > is end-of-life. It's been 6 years, everyone should have moved off of it > by now. > -- > > This is the start of the stable rev

Re: [PATCH v2 1/5] drm/i915/fbdev: Add intel_fbdev_get_vaddr()

2024-12-04 Thread kernel test robot
: 44cff6c5b0b17a78bc0b30372bcd816cf6dd282a patch link: https://lore.kernel.org/r/20241203092836.426422-2-jfalempe%40redhat.com patch subject: [PATCH v2 1/5] drm/i915/fbdev: Add intel_fbdev_get_vaddr() config: i386-randconfig-062-20241204 (https://download.01.org/0day-ci/archive/20241204/202412042119.5erpnlau

[PULL] drm-xe-fixes

2024-12-04 Thread Thomas Hellstrom
Hi Dave, Simona Two xe fixes for -rc2 Thanks, Thomas drm-xe-fixes-2024-12-04: Driver Changes: - Missing init value and 64-bit write-order check (Zhanjung) - Fix a memory allocation issue causing lockdep violation (John) The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:

Re: [PATCH] drm: cast calculation to __u64 to fix potential integer overflow

2024-12-04 Thread Thierry Reding
On Tue, Dec 03, 2024 at 10:02:00AM -0600, Gax-c wrote: > From: Zichen Xie > > Like commit b0b0d811eac6 ("drm/mediatek: Fix coverity issue with > unintentional integer overflow"), directly multiply pitch and > height may lead to integer overflow. Add a cast to avoid it. > > Fixes: 6d1782919dc9 ("

[PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-04 Thread Maarten Lankhorst
New update. Instead of calling it the 'dev' cgroup, it's now the 'dmem' cgroup. Because it only deals with memory regions, the UAPI has been updated to use dmem.min/low/max/current, and to make the API cleaner, the names are changed too. dmem.current could contain a line like: "drm/:03:00.0

[PATCH v2 7/7] drm/gem: Add cgroup memory accounting for VRAM helper.

2024-12-04 Thread Maarten Lankhorst
From: Maxime Ripard This allows any driver using the VRAM helper to set limits on VRAM using cgroup. Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_gem_vram_helper.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH v2 6/7] drm/xe: Hack to test with mapped pages instead of vram.

2024-12-04 Thread Maarten Lankhorst
We will probably want to make this a proper region in TTM for everything, so that we can charge VRAM twice, once for mapped in sysmem, once for mapped in vram. That way we don't need to deal with evict failing from lack of available memory in mapped. Signed-off-by: Maxime Ripard Signed-off-by: Ma

[PATCH v2 2/7] drm/drv: Add drmm managed registration helper for dmem cgroups.

2024-12-04 Thread Maarten Lankhorst
From: Maxime Ripard Drivers will need to register dmem regions at probe time, so let's give them a drm-managed helper. Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_drv.c | 32 include/drm/drm_drv.h | 5 + 2 fil

Re: [PATCH v4 2/3] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter

2024-12-04 Thread Rob Herring
On Sun, Nov 24, 2024 at 08:06:48PM +0530, Aradhya Bhatia wrote: > From: Aradhya Bhatia > > The OLDI transmitters (TXes) do not have registers of their own, and are > dependent on the source video-ports (VPs) from the DSS to provide > configuration data. This hardware doesn't directly sit on the i

Re: [PATCH v18 2/8] phy: Add HDMI configuration options

2024-12-04 Thread Vinod Koul
On 29-10-24, 14:02, Sandor Yu wrote: > Allow HDMI PHYs to be configured through the generic > functions through a custom structure added to the generic union. > > The parameters added here are based on HDMI PHY > implementation practices. The current set of parameters > should cover the potential

  1   2   >