Re: [PATCH] i2c: at91: use dma safe buffers

2022-03-28 Thread Michael Walle
Hi all, Am 2022-03-03 17:17, schrieb Michael Walle: The supplied buffer might be on the stack and we get the following error message: [3.312058] at91_i2c e0070600.i2c: rejecting DMA map of vmalloc memory Use i2c_{get,put}_dma_safe_msg_buf() to get a DMA-able memory region if necessary.

Re: [PATCH] drm/amdgpu: resolve s3 hang for r7340

2022-03-28 Thread Paul Menzel
Dear Zhenneng, Thank you for your patch. Am 28.03.22 um 06:05 schrieb Zhenneng Li: This is a workaround for s3 hang for r7340(amdgpu). Is it hanging when resuming from S3? Maybe also use the line below for the commit message summary: drm/amdgpu: Add 1 ms delay to init handler to fix s3 re

Re: [PATCH] drm/amdgpu: resolve s3 hang for r7340

2022-03-28 Thread Paul Menzel
[Cc: -Jack Zhang (invalid address) Am 28.03.22 um 09:36 schrieb Paul Menzel: Dear Zhenneng, Thank you for your patch. Am 28.03.22 um 06:05 schrieb Zhenneng Li: This is a workaround for s3 hang for r7340(amdgpu). Is it hanging when resuming from S3? Maybe also use the line below for the co

Re: [PATCH v6 02/12] clk: Introduce Kunit Tests for the framework

2022-03-28 Thread Maxime Ripard
Hi, On Fri, Mar 25, 2022 at 05:36:25PM -0500, Daniel Latypov wrote: > On Mon, Feb 28, 2022 at 4:47 AM Maxime Ripard wrote: > > > > On Fri, Feb 25, 2022 at 01:29:03PM -0800, Daniel Latypov wrote: > > > On Fri, Feb 25, 2022 at 5:23 AM Maxime Ripard wrote: > > > > > > > > Hi Daniel, > > > > > > > >

Re: [PATCH v9 04/22] drm/edid: Convert cea_sad helper struct to kernelDoc

2022-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/22 00:39, Guillaume Ranquet ha scritto: Signed-off-by: Guillaume Ranquet --- include/drm/drm_edid.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 144c495b99c4..5d4d840b9904 100644 --- a/include/dr

Re: [PATCH v9 06/22] video/hdmi: Add audio_infoframe packing for DP

2022-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/22 00:39, Guillaume Ranquet ha scritto: From: Markus Schneider-Pargmann Similar to HDMI, DP uses audio infoframes as well which are structured very similar to the HDMI ones. This patch adds a helper function to pack the HDMI audio infoframe for DP, called hdmi_audio_infoframe_pack_for

Re: [PATCH v9 17/22] phy: phy-mtk-dp: Add driver for DP phy

2022-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/22 00:39, Guillaume Ranquet ha scritto: From: Markus Schneider-Pargmann This is a new driver that supports the integrated DisplayPort phy for mediatek SoCs, especially the mt8195. The phy is integrated into the DisplayPort controller and will be created by the mtk-dp driver. This drive

Re: [PATCH v9 12/22] drm/mediatek: dpi: move swap_shift to SoC config

2022-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/22 00:39, Guillaume Ranquet ha scritto: Add flexibility by moving the swap shift value to SoC specific config Signed-off-by: Guillaume Ranquet Reviewed-by: AngeloGioacchino Del Regno

Re: [Intel-gfx] [PATCH] drm/i915: avoid concurrent writes to aux_inv

2022-03-28 Thread Tvrtko Ursulin
On 28/03/2022 04:16, fei.y...@intel.com wrote: From: Fei Yang GPU hangs have been observed when multiple engines write to the same aux_inv register at the same time. To avoid this each engine should only invalidate its own auxiliary table. The function gen12_emit_flush_xcs() currently invalid

Re: [Intel-gfx] [PATCH] drm/i915/uapi: Add DRM_I915_QUERY_GEOMETRY_SUBSLICES

2022-03-28 Thread Tvrtko Ursulin
+ Joonas On 25/03/2022 23:03, Francisco Jerez wrote: Matt Atwood writes: Newer platforms have DSS that aren't necessarily available for both geometry and compute, two queries will need to exist. This introduces the first, when passing a valid engine class and engine instance in the flags re

Re: [PATCH v13 5/6] drm/loongson: add drm driver for loongson display controller

2022-03-28 Thread kernel test robot
Hi Sui, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on robh/for-next linus/master v5.17 next-20220328] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH v13 5/6] drm/loongson: add drm driver for loongson display controller

2022-03-28 Thread Sui Jingfeng
On 2022/3/28 16:51, kernel test robot wrote: Hi Sui, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on robh/for-next linus/master v5.17 next-20220328] [If your patch is applied to the wrong git tree, kindly drop us a

Re: [PATCH v9 18/22] drm/mediatek: Add mt8195 Embedded DisplayPort driver

2022-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/22 00:39, Guillaume Ranquet ha scritto: From: Markus Schneider-Pargmann This patch adds a DisplayPort driver for the Mediatek mt8195 SoC. It supports the mt8195, the embedded DisplayPort units. It offers DisplayPort 1.4 with up to 4 lanes. The driver shares its iomap range with the m

Re: [Intel-gfx] [PATCH] drm/i915: fix remaining_timeout in intel_gt_retire_requests_timeout

2022-03-28 Thread Das, Nirmoy
On 3/25/2022 9:33 PM, Ceraolo Spurio, Daniele wrote: On 3/25/2022 11:37 AM, Das, Nirmoy wrote: On 3/25/2022 6:58 PM, Daniele Ceraolo Spurio wrote: In intel_gt_wait_for_idle, we use the remaining timeout returned from intel_gt_retire_requests_timeout to wait on the GuC being idle. However,

[PATCH v2 00/11] drm/edid: constify EDID parsing, with some fixes

2022-03-28 Thread Jani Nikula
v2 of https://patchwork.freedesktop.org/series/101787/ addressing some review comments from Ville. Jani Nikula (11): drm/edid: don't modify EDID while parsing drm/edid: fix reduced blanking support check drm/edid: slightly restructure timing and non-timing descriptor structs drm/edid:

[PATCH v2 01/11] drm/edid: don't modify EDID while parsing

2022-03-28 Thread Jani Nikula
We'll want to keep the EDID immutable while parsing. Stop modifying the EDID because of the quirks. In theory, this does have userspace implications, but the userspace is supposed to use the modes exposed via KMS API, not by parsing the EDID directly. Cc: Ville Syrjälä Signed-off-by: Jani Nikula

[PATCH v2 02/11] drm/edid: fix reduced blanking support check

2022-03-28 Thread Jani Nikula
The reduced blanking bit is valid only for CVT, indicated by display range limits flags 0x04. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 1b552fe54f38..

[PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread Jani Nikula
The pixel clock is conceptually part of the detailed timings, while it's just zero padding for display descriptors. Modify the structures to reflect this. Rename struct detailed_non_pixel to edid_display_descriptor to better reflect spec while at it. (Further struct renames are left for follow-up w

[PATCH v2 04/11] drm/edid: pass a timing pointer to is_display_descriptor()

2022-03-28 Thread Jani Nikula
Use struct member access instead of direct offsets to avoid lots of casts all over the place. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) di

[PATCH v2 06/11] drm/edid: use struct detailed_data_monitor_range member access in gtf2 functions

2022-03-28 Thread Jani Nikula
Use struct struct detailed_data_monitor_range member access instead of direct offsets to avoid casting. Use BUILD_BUG_ON() for sanity check. v2: - Rename timing to descriptor (Ville) - Return and use struct detailed_data_monitor_range Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/g

[PATCH v2 05/11] drm/edid: use struct detailed_timing member access in is_rb()

2022-03-28 Thread Jani Nikula
Use struct detailed_timing member access instead of direct offsets to avoid casting. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- Note: Why can we use range.formula.cvt.flags directly in is_rb() while gtf2 functions check for range.flags == 0x02 first

[PATCH v2 07/11] drm/edid: constify struct detailed_timing in lower level parsing

2022-03-28 Thread Jani Nikula
Start constifying the struct detailed_timing pointers being passed around from bottom up. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/drm_

[PATCH v2 10/11] drm/edid: constify struct edid passed around in callbacks and closure

2022-03-28 Thread Jani Nikula
Finalize detailed timing parsing constness by making struct edid also const in callbacks and closure. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 48 +++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/

[PATCH v2 08/11] drm/edid: constify struct detailed_timing in parsing callbacks

2022-03-28 Thread Jani Nikula
Moving one level higher, constify struct detailed_timing pointers in callbacks. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 40 -- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/d

[PATCH v2 11/11] drm/edid: add more general struct edid constness in the interfaces

2022-03-28 Thread Jani Nikula
With this, the remaining non-const parts are the ones that actually modify the EDID, for example to fix corrupt EDID. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 21 +++-- include/drm/drm_edid.h | 10 +- 2 files changed, 16 insertion

[PATCH v2 09/11] drm/edid: constify struct edid passed to detailed blocks

2022-03-28 Thread Jani Nikula
Constify the first level of struct edid in detailed timing parsing. Also switch to struct edid instead of u8. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 48 ++ 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/

Re: [PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread Jani Nikula
On Mon, 28 Mar 2022, Jani Nikula wrote: > The pixel clock is conceptually part of the detailed timings, while it's > just zero padding for display descriptors. Modify the structures to > reflect this. Rename struct detailed_non_pixel to > edid_display_descriptor to better reflect spec while at it.

Re: [PATCH 0/3] drm: omapdrm: Fix excessive GEM buffers DMM/CMA usage

2022-03-28 Thread Tomi Valkeinen
Hi, On 19/01/2022 12:23, Ivaylo Dimitrov wrote: This patch series fixes excessive DMM or CMA usage of GEM buffers leading to various runtime allocation failures. The series enables daily usage of devices without exausting limited resources like CMA or DMM space if GPU rendering is needed. The f

Re: [PATCH v12 3/4] drm/bridge: anx7625: add MIPI DPI input feature

2022-03-28 Thread Robert Foss
> > > > > > - DRM_DEV_DEBUG_DRIVER(dev, "found dsi host node.\n"); > > > > > > + bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; > > > > > > + mipi_lanes = MAX_LANES_SUPPORT; > > > > > > + ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); > > > > > > + if (ep0) { > > > > > > + if (of_pro

Re: [PATCH v13 5/6] drm/loongson: add drm driver for loongson display controller

2022-03-28 Thread Jiaxun Yang
在 2022/3/28 10:01, Sui Jingfeng 写道: On 2022/3/28 16:51, kernel test robot wrote: Hi Sui, [...] Hi,  my driver will not used on microblaze arch, what does this warnings means, do i need to fix this? Hi Jingfeng, The problem it discovered is general for all archs. Type of reg_base (M

Re: [PATCH] drm: sti: don't use kernel-doc markers

2022-03-28 Thread Alain Volmat
Hi Randy, thanks for the patch. Acked-by: Alain Volmat Alain On Sat, Mar 26, 2022 at 04:51:32PM -0700, Randy Dunlap wrote: > Don't mark static functions as kernel-doc. > > Prevents multiple kernel-doc build warnings: > > drivers/gpu/drm/sti/sti_hdmi.c:187: warning: This comment starts with '

Re: [PATCH 1/2] dma-buf: add dma_fence_unwrap

2022-03-28 Thread Christian König
Hi Ville & Daniel, Am 25.03.22 um 16:28 schrieb Christian König: Am 25.03.22 um 16:25 schrieb Ville Syrjälä: On Fri, Mar 11, 2022 at 12:02:43PM +0100, Christian König wrote: Add a general purpose helper to deep dive into dma_fence_chain/dma_fence_array structures and iterate over all the fenc

Re: [PATCH v12 3/4] drm/bridge: anx7625: add MIPI DPI input feature

2022-03-28 Thread Xin Ji
On Mon, Mar 28, 2022 at 11:54:12AM +0200, Robert Foss wrote: > > > > > > > - DRM_DEV_DEBUG_DRIVER(dev, "found dsi host node.\n"); > > > > > > > + bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; > > > > > > > + mipi_lanes = MAX_LANES_SUPPORT; > > > > > > > + ep0 = of_graph_get_endpoint_by_regs(np,

[PATCH] phy: mediatek: phy-mtk-hdmi: Simplify with dev_err_probe()

2022-03-28 Thread AngeloGioacchino Del Regno
Use the dev_err_probe() helper to simplify error handling during probe. Signed-off-by: AngeloGioacchino Del Regno --- drivers/phy/mediatek/phy-mtk-hdmi.c | 50 +++-- 1 file changed, 19 insertions(+), 31 deletions(-) diff --git a/drivers/phy/mediatek/phy-mtk-hdmi.c b/dr

[PATCH] phy: mediatek: phy-mtk-mipi-dsi: Simplify with dev_err_probe()

2022-03-28 Thread AngeloGioacchino Del Regno
Use the dev_err_probe() helper to simplify error handling during probe. Signed-off-by: AngeloGioacchino Del Regno --- drivers/phy/mediatek/phy-mtk-mipi-dsi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c b/drivers/phy/mediat

Re: [Intel-gfx] [PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread kernel test robot
Hi Jani, I love your patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip v5.17 next-20220328] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[PATCH 3/4] dt-bindings: drm/bridge: anx7625: Change bus-type to 7 (DPI)

2022-03-28 Thread Xin Ji
Change bus-type define for DPI. Fixes: a43661e7e819 ("dt-bindings:drm/bridge:anx7625:add vendor define") Signed-off-by: Xin Ji --- .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bind

[PATCH 4/4] drm/bridge: anx7625: Use DPI bus type

2022-03-28 Thread Xin Ji
As V4L2_FWNODE_BUS_TYPE_PARALLEL not properly descript for DPI interface, this patch use new defined V4L2_FWNODE_BUS_TYPE_DPI for it. Fixes: fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature") Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 8 1 file c

Re: [PATCH] drm/v3d: Use kvcalloc

2022-03-28 Thread Melissa Wen
On 03/12, Harshit Mogalapalli wrote: > kvcalloc is same as kvmalloc_array + __GFP_ZERO. > > Signed-off-by: Harshit Mogalapalli > --- > drivers/gpu/drm/v3d/v3d_gem.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/

Re: [ PATCH ] Documentation: fixed doc-build warnings

2022-03-28 Thread David Howells
kushagra...@outlook.com wrote: > @@ -256,7 +256,6 @@ struct fscache_cookie *fscache_acquire_cookie(struct > fscache_volume *volume, > > /** > * fscache_use_cookie - Request usage of cookie attached to an object > - * @object: Object description > * @will_modify: If cache is expected to be

Re: [Intel-gfx] [PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread kernel test robot
Hi Jani, I love your patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip v5.17 next-20220328] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH] stm: ltdc: fix two incorrect NULL checks on list iterator

2022-03-28 Thread Raphael Gallais-Pou
Hello Xiaomeng On 3/27/22 07:53, Xiaomeng Tong wrote: > The two bugs are here: > if (encoder) { > if (bridge && bridge->timings) > > The list iterator value 'encoder/bridge' will *always* be set and > non-NULL by drm_for_each_encoder()/list_for_each_entry(), so it is > incorrect to ass

[PATCH v3 0/4] drm/atomic: Atomic Private State debugging

2022-03-28 Thread Maxime Ripard
Hi, This series adds an atomic_print_state hook for drm_private_obj to ease the debugging of driver-specific sub-classes, and adds one for vc4. It also changes the call site of drm_atomic_print_new_state to make it more consistent. Let me know what you think, Maxime Changes from v2: - Reworde

[PATCH v3 1/4] drm/atomic: Print the state every non-blocking commit

2022-03-28 Thread Maxime Ripard
The DRM_UT_STATE controls whether we're calling drm_atomic_print_new_state() whenever a new state is committed. However, that call is made in the drm_mode_atomic_ioctl(), whereas we have multiple users of the drm_atomic_commit() function in the kernel (framebuffer emulation, drm_atomic_helper_dirty

[PATCH v3 2/4] drm/atomic: Add atomic_print_state to private objects

2022-03-28 Thread Maxime Ripard
A number of drivers (amdgpu, komeda, vc4, etc.) leverage the drm_private_state structure, but we don't have any infrastructure to provide debugging like we do for the other components state. Let's add an atomic_print_state hook to be consistent. Reviewed-by: Daniel Vetter Signed-off-by: Maxime Ri

[PATCH v3 3/4] drm/vc4: Constify private state accessors

2022-03-28 Thread Maxime Ripard
None of those helpers modify the pointed data, let's make them const. Acked-by: Daniel Vetter Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_kms.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c i

[PATCH v3 4/4] drm/vc4: Implement atomic_print_state for HVS channel state

2022-03-28 Thread Maxime Ripard
The HVS state configuration is useful when debugging what's going on in the vc4 hardware pipeline. Add an implementation of .atomic_print_state. Acked-by: Daniel Vetter Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_kms.c | 17 + 1 file changed, 17 insertions(+) diff

[PATCH] drm/i915: Move intel_vtd_active and run_as_guest to i915_utils

2022-03-28 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Continuation of the effort to declutter i915_drv.h. Also, component specific helpers which consult the iommu/virtualization helpers moved to respective component source/header files as appropriate. Signed-off-by: Tvrtko Ursulin Cc: Jani Nikula Cc: Lucas De Marchi Acked-b

Re: [Intel-gfx] [PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread kernel test robot
Hi Jani, I love your patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip v5.17 next-20220328] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH v9 02/22] dt-bindings: mediatek, dp: Add Display Port binding

2022-03-28 Thread Rob Herring
On Mon, 28 Mar 2022 00:39:07 +0200, Guillaume Ranquet wrote: > From: Markus Schneider-Pargmann > > This controller is present on several mediatek hardware. Currently > mt8195 and mt8395 have this controller without a functional difference, > so only one compatible field is added. > > The control

[PATCH] drm/msm: use orig_nents to iterate over scatterlist with per-process tables

2022-03-28 Thread Jonathan Marek
This matches the implementation of iommu_map_sgtable() used for the non-per-process page tables path. This works around the dma_map_sgtable() call (used to invalidate cache) overwriting sgt->nents with 1 (which is probably a separate issue). Fixes: b145c6e65eb0 ("drm/msm: Add support to create a

Re: [Intel-gfx] [PATCH v2 03/11] drm/edid: slightly restructure timing and non-timing descriptor structs

2022-03-28 Thread Jani Nikula
NING on drm/drm-next] > [also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip v5.17 > next-20220328] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https

Re: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status

2022-03-28 Thread Robert Foss
On Fri, 25 Mar 2022 at 07:29, Xin Ji wrote: > > On Thu, Mar 24, 2022 at 01:07:56PM +0100, Robert Foss wrote: > > > > > > The driver uses DRM_DEV_* for logs. Can we use this? > > > > > Hi Hsin-Yi, as comment in drm/drm_print.h: > > > > > "NOTE: this is deprecated in favor of drm_dbg". DRM bridge dr

Re: [PATCH v2] drm/bridge: nwl-dsi: switch to devm_drm_of_get_bridge

2022-03-28 Thread Robert Foss
On Fri, 18 Mar 2022 at 10:25, Liu Ying wrote: > > On Thu, 2022-03-17 at 18:58 +0100, José Expósito wrote: > > The function "drm_of_find_panel_or_bridge" has been deprecated in > > favor of "devm_drm_of_get_bridge". > > > > Switch to the new function and reduce boilerplate. > > > > Signed-off-by: J

[PATCH] drm/sched: Fix htmldoc warning.

2022-03-28 Thread Andrey Grodzovsky
Fixes the warning. Signed-off-by: Andrey Grodzovsky --- include/drm/gpu_scheduler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 944f83ef9f2e..0fca8f38bee4 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_schedu

Re: [PATCH v2 00/11] drm/edid: constify EDID parsing, with some fixes

2022-03-28 Thread Jani Nikula
On Mon, 28 Mar 2022, Jani Nikula wrote: > v2 of https://patchwork.freedesktop.org/series/101787/ addressing some > review comments from Ville. Please ignore this series. > > Jani Nikula (11): > drm/edid: don't modify EDID while parsing > drm/edid: fix reduced blanking support check > drm/e

Re: linux-next: build warning after merge of the drm-misc tree

2022-03-28 Thread Andrey Grodzovsky
On 2022-03-27 19:56, Stephen Rothwell wrote: Hi Andrey, On Tue, 1 Mar 2022 22:26:12 -0500 Andrey Grodzovsky wrote: On 2022-03-01 20:31, Stephen Rothwell wrote: Hi all, On Thu, 20 Jan 2022 14:26:39 +1100 Stephen Rothwell wrote: On Wed, 17 Nov 2021 13:49:26 +1100 Stephen Rothwell wrote

Re: [Intel-gfx] [PATCH v2 5/7] drm/i915/selftests: use the memcpy_from_wc call from the drm

2022-03-28 Thread Balasubramani Vivekanandan
On 21.03.2022 16:07, Lucas De Marchi wrote: > Now Cc'ing Daniel properly > > Lucas De Marchi > > On Mon, Mar 21, 2022 at 04:00:56PM -0700, Lucas De Marchi wrote: > > +Thomas Zimmermann and +Daniel Vetter > > > > Could you take a look below regarding the I/O to I/O memory access? > > > > On Thu,

Re: [PATCH v11 5/7] dt-bindings: display: Add Loongson display controller

2022-03-28 Thread Rob Herring
On Sat, Mar 26, 2022 at 06:04:46PM +0800, Sui Jingfeng wrote: > > On 2022/3/24 21:26, Rob Herring wrote: > > On Thu, Mar 24, 2022 at 09:48:19AM +0800, Sui Jingfeng wrote: > > > On 2022/3/23 21:03, Rob Herring wrote: > > > > On Wed, Mar 23, 2022 at 11:38:55AM +0800, Sui Jingfeng wrote: > > > > > On

Re: [PATCH] drm/sched: Fix htmldoc warning.

2022-03-28 Thread Alex Deucher
On Mon, Mar 28, 2022 at 9:25 AM Andrey Grodzovsky wrote: > > Fixes the warning. > > Signed-off-by: Andrey Grodzovsky You may want to add a Reported-by for Stephen, WIth that, Reviewed-by: Alex Deucher > --- > include/drm/gpu_scheduler.h | 1 + > 1 file changed, 1 insertion(+) > > diff --gi

RE: [RFC PATCH] drm/amd/display: dont ignore alpha property

2022-03-28 Thread Kazlauskas, Nicholas
[AMD Official Use Only] > -Original Message- > From: Melissa Wen > Sent: Friday, March 25, 2022 4:45 PM > To: amd-...@lists.freedesktop.org; Wentland, Harry > ; Deucher, Alexander > ; Siqueira, Rodrigo > ; Kazlauskas, Nicholas > ; Gutierrez, Agustin > ; Liu, Zhan > Cc: dri-devel@lists.fr

Re: [PATCH 1/2] dma-buf: add dma_fence_unwrap

2022-03-28 Thread Daniel Vetter
On Mon, Mar 28, 2022 at 12:28:31PM +0200, Christian König wrote: > Hi Ville & Daniel, > > Am 25.03.22 um 16:28 schrieb Christian König: > > Am 25.03.22 um 16:25 schrieb Ville Syrjälä: > > > On Fri, Mar 11, 2022 at 12:02:43PM +0100, Christian König wrote: > > > > Add a general purpose helper to dee

Re: [PATCH] drm: sti: don't use kernel-doc markers

2022-03-28 Thread Daniel Vetter
On Mon, Mar 28, 2022 at 12:21:16PM +0200, Alain Volmat wrote: > Hi Randy, > > thanks for the patch. > > Acked-by: Alain Volmat Will Philippe apply this one? Just trying to make sure this wont be lost, just acking isn't enough :-) -Daniel > > Alain > > On Sat, Mar 26, 2022 at 04:51:32PM -070

Re: [PATCH 1/2] dma-buf: add dma_fence_unwrap

2022-03-28 Thread Christian König
Am 28.03.22 um 16:22 schrieb Daniel Vetter: On Mon, Mar 28, 2022 at 12:28:31PM +0200, Christian König wrote: Hi Ville & Daniel, Am 25.03.22 um 16:28 schrieb Christian König: Am 25.03.22 um 16:25 schrieb Ville Syrjälä: On Fri, Mar 11, 2022 at 12:02:43PM +0100, Christian König wrote: Add a gen

Re: [PATCH 1/2] dma-buf: add dma_fence_unwrap

2022-03-28 Thread Daniel Vetter
On Mon, Mar 28, 2022 at 04:26:44PM +0200, Christian König wrote: > Am 28.03.22 um 16:22 schrieb Daniel Vetter: > > On Mon, Mar 28, 2022 at 12:28:31PM +0200, Christian König wrote: > > > Hi Ville & Daniel, > > > > > > Am 25.03.22 um 16:28 schrieb Christian König: > > > > Am 25.03.22 um 16:25 schrie

[PATCH v3 00/12] drm/edid: constify EDID parsing, with fixes

2022-03-28 Thread Jani Nikula
v3 of https://patchwork.freedesktop.org/series/101787/ and https://patchwork.freedesktop.org/series/101862/ I screwed up with the struct renamings in v2, so there's some falling back to v1 and general confusion here. Sorry. BR, Jani. Jani Nikula (12): drm/edid: don't modify EDID while parsing

[PATCH v3 01/12] drm/edid: don't modify EDID while parsing

2022-03-28 Thread Jani Nikula
We'll want to keep the EDID immutable while parsing. Stop modifying the EDID because of the quirks. In theory, this does have userspace implications, but the userspace is supposed to use the modes exposed via KMS API, not by parsing the EDID directly. Cc: Ville Syrjälä Signed-off-by: Jani Nikula

[PATCH v3 02/12] drm/edid: fix reduced blanking support check

2022-03-28 Thread Jani Nikula
The reduced blanking bit is valid only for CVT, indicated by display range limits flags 0x04. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c i

[PATCH v3 03/12] drm/edid: pass a timing pointer to is_display_descriptor()

2022-03-28 Thread Jani Nikula
Use struct member access instead of direct offsets to avoid lots of casts all over the place. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) di

[PATCH v3 05/12] drm/edid: use struct detailed_timing member access in is_rb()

2022-03-28 Thread Jani Nikula
Use struct detailed_timing member access instead of direct offsets to avoid casting. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/d

[PATCH v3 08/12] drm/edid: constify struct detailed_timing in parsing callbacks

2022-03-28 Thread Jani Nikula
Moving one level higher, constify struct detailed_timing pointers in callbacks. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 40 -- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/d

[PATCH v3 04/12] drm/edid: pass a timing pointer to is_detailed_timing_descriptor()

2022-03-28 Thread Jani Nikula
Use struct member access instead of direct offsets to avoid a cast. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/

[PATCH v3 06/12] drm/edid: use struct detailed_timing member access in gtf2 functions

2022-03-28 Thread Jani Nikula
Use struct detailed_timing member access instead of direct offsets to avoid casting. Use BUILD_BUG_ON() for sanity check. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 57 +- 1 file changed, 37 insertions(+), 20 deletions(-)

[PATCH v3 09/12] drm/edid: constify struct edid passed to detailed blocks

2022-03-28 Thread Jani Nikula
Constify the first level of struct edid in detailed timing parsing. Also switch to struct edid instead of u8. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 48 ++ 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/

[PATCH v3 07/12] drm/edid: constify struct detailed_timing in lower level parsing

2022-03-28 Thread Jani Nikula
Start constifying the struct detailed_timing pointers being passed around from bottom up. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/drm_

[PATCH v3 10/12] drm/edid: constify struct edid passed around in callbacks and closure

2022-03-28 Thread Jani Nikula
Finalize detailed timing parsing constness by making struct edid also const in callbacks and closure. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 48 +++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/

[PATCH v3 11/12] drm/edid: add more general struct edid constness in the interfaces

2022-03-28 Thread Jani Nikula
With this, the remaining non-const parts are the ones that actually modify the EDID, for example to fix corrupt EDID. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 21 +++-- include/drm/drm_edid.h | 10 +- 2 files changed, 16 insertion

[PATCH v3 12/12] drm/edid: split drm_add_edid_modes() to two

2022-03-28 Thread Jani Nikula
Reduce the size of the function that actually modifies the EDID. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 42 ++ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index d1

Re: [RFC v4 4/8] dmabuf: heaps: export system_heap buffers with GPU cgroup charging

2022-03-28 Thread Daniel Vetter
On Mon, Mar 28, 2022 at 03:59:43AM +, T.J. Mercier wrote: > From: Hridya Valsaraju > > All DMA heaps now register a new GPU cgroup device upon creation, and the > system_heap now exports buffers associated with its GPU cgroup device for > tracking purposes. > > Signed-off-by: Hridya Valsaraj

Re: [PATCH v3 1/4] drm/atomic: Print the state every non-blocking commit

2022-03-28 Thread Daniel Vetter
On Mon, Mar 28, 2022 at 02:43:01PM +0200, Maxime Ripard wrote: > The DRM_UT_STATE controls whether we're calling > drm_atomic_print_new_state() whenever a new state is committed. However, > that call is made in the drm_mode_atomic_ioctl(), whereas we have > multiple users of the drm_atomic_commit()

[PATCH v2] phy: mediatek: phy-mtk-mipi-dsi: Simplify with dev_err_probe()

2022-03-28 Thread AngeloGioacchino Del Regno
Use the dev_err_probe() helper to simplify error handling during probe. Signed-off-by: AngeloGioacchino Del Regno --- v2: Sorry, v1 was only partial as I have accidentally sent the wrong patch file. Fixed for v2. drivers/phy/mediatek/phy-mtk-mipi-dsi.c | 29 + 1 fi

Re: [PATCH] drm/amd/display: DCN3.1: don't mark as kernel-doc

2022-03-28 Thread Alex Deucher
Applied. Thanks! Alex On Sat, Mar 26, 2022 at 7:37 PM Randy Dunlap wrote: > > There is no need for this one static function to be marked as > kernel-doc notation. > > Avoid this doc build warning: > > warning: This comment starts with '/**', but isn't a kernel-doc comment. > Refer Documentatio

[PATCH v9 10/23] dt-bindings: display: rockchip: dw-hdmi: Add regulator support

2022-03-28 Thread Sascha Hauer
The RK3568 has HDMI_TX_AVDD0V9 and HDMI_TX_AVDD_1V8 supply inputs needed for the HDMI port. Add the binding for these supplies. Signed-off-by: Sascha Hauer Acked-by: Rob Herring --- Notes: Changes since v4: - Add Robs Ack .../bindings/display/rockchip/rockchip,dw-hdmi.yaml | 11

[PATCH v9 05/23] dt-bindings: display: rockchip: dw-hdmi: use "ref" as clock name

2022-03-28 Thread Sascha Hauer
"vpll" is a misnomer. A clock input to a device should be named after the usage in the device, not after the clock that drives it. On the rk3568 the same clock is driven by the HPLL. This patch adds "ref" as a new alternative clock name for "vpll" Signed-off-by: Sascha Hauer Acked-by: Rob Herring

[PATCH v9 18/23] arm64: dts: rockchip: rk3568-evb: Enable VOP2 and hdmi

2022-03-28 Thread Sascha Hauer
This enabled the VOP2 display controller along with hdmi and the required port routes which is enough to get a picture out of the hdmi port of the board. Signed-off-by: Sascha Hauer --- Notes: Changes since v5: - Drop reg property from single endpoint node Changes since v4:

[PATCH v9 04/23] drm/rockchip: dw_hdmi: rename vpll clock to reference clock

2022-03-28 Thread Sascha Hauer
"vpll" is a misnomer. A clock input to a device should be named after the usage in the device, not after the clock that drives it. On the rk3568 the same clock is driven by the HPLL. To fix that, this patch renames the vpll clock to ref clock. The clock name "vpll" is left for compatibility to old

[PATCH v9 08/23] dt-bindings: display: rockchip: dw-hdmi: Add compatible for rk3568 HDMI

2022-03-28 Thread Sascha Hauer
From: Benjamin Gaignard Define a new compatible for rk3568 HDMI. This version of HDMI hardware block needs two new clocks hclk_vio and hclk to provide phy reference clocks. Signed-off-by: Benjamin Gaignard Reviewed-by: Rob Herring Signed-off-by: Sascha Hauer --- .../devicetree/bindings/displ

[PATCH v9 01/23] clk: rk3568: Mark hclk_vo as critical

2022-03-28 Thread Sascha Hauer
Whenever pclk_vo is enabled hclk_vo must be enabled as well. This is described in the Reference Manual as: | 2.8.6 NIU Clock gating reliance | | A part of niu clocks have a dependence on another niu clock in order to | sharing the internal bus. When these clocks are in use, another niu | clock mus

[PATCH v9 06/23] arm64: dts: rockchip: rk3399: rename HDMI ref clock to 'ref'

2022-03-28 Thread Sascha Hauer
The reference clock for the HDMI controller has been renamed to 'ref', the previous 'vpll' name is only left for compatibility in the driver. Rename the clock to the new name. Signed-off-by: Sascha Hauer --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH v9 16/23] arm64: dts: rockchip: rk356x: Add VOP2 nodes

2022-03-28 Thread Sascha Hauer
The VOP2 is the display output controller on the RK3568. Add the node for it to the dtsi file along with the required display-subsystem node and the iommu node. Signed-off-by: Sascha Hauer Acked-by: Rob Herring --- Notes: Changes since v6: - Change RK3568_ prefix to ROCKCHIP_ prefix

[PATCH v9 13/23] drm/rockchip: dw_hdmi: Set cur_ctr to 0 always

2022-03-28 Thread Sascha Hauer
From: Douglas Anderson Jitter was improved by lowering the MPLL bandwidth to account for high frequency noise in the rk3288 PLL. In each case MPLL bandwidth was lowered only enough to get us a comfortable margin. We believe that lowering the bandwidth like this is safe given sufficient testing.

[PATCH v9 19/23] arm64: dts: rockchip: enable vop2 and hdmi tx on quartz64a

2022-03-28 Thread Sascha Hauer
From: Michael Riesch Enable the RK356x Video Output Processor (VOP) 2 on the Pine64 Quartz64 Model A. Signed-off-by: Michael Riesch Signed-off-by: Sascha Hauer --- Notes: Changes since v5: - Drop reg property from single endpoint node Changes since v4: - Sort nodes alphab

[PATCH v9 15/23] dt-bindings: display: rockchip: dw-hdmi: Make unwedge pinctrl optional

2022-03-28 Thread Sascha Hauer
None of the upstream device tree files has a "unwedge" pinctrl specified. Make it optional. Signed-off-by: Sascha Hauer Acked-by: Rob Herring --- Notes: Changes since v4: - Add Robs Ack .../devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml | 1 + 1 file changed, 1 insertion

[PATCH v9 03/23] drm/rockchip: Add crtc_endpoint_id to rockchip_encoder

2022-03-28 Thread Sascha Hauer
The VOP2 has an interface mux which decides to which encoder(s) a CRTC is routed to. The encoders and CRTCs are connected via of_graphs in the device tree. When given an encoder the VOP2 driver needs to know to which internal register setting this encoder matches. For this the VOP2 binding offers d

[PATCH v9 12/23] drm/rockchip: dw_hdmi: drop mode_valid hook

2022-03-28 Thread Sascha Hauer
The driver checks if the pixel clock of the given mode matches an entry in the mpll config table. The frequencies in the mpll table are meant as a frequency range up to which the entry works, not as a frequency that must match the pixel clock. The downstream Kernel also does not have this check, so

[PATCH v9 07/23] drm/rockchip: dw_hdmi: add rk3568 support

2022-03-28 Thread Sascha Hauer
Add a new dw_hdmi_plat_data struct and new compatible for rk3568. Signed-off-by: Benjamin Gaignard Signed-off-by: Sascha Hauer --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 31 + 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

[PATCH v9 17/23] arm64: dts: rockchip: rk356x: Add HDMI nodes

2022-03-28 Thread Sascha Hauer
Add support for the HDMI port found on RK3568. Signed-off-by: Sascha Hauer --- Notes: Changes since v7: - Rename hclk to niu Changes since v5: - Drop unnecessary #size-cells/#address-cells from nodes with only single endpoint arch/arm64/boot/dts/rockchip/rk356x.dtsi | 32

[PATCH v9 02/23] drm/rockchip: Embed drm_encoder into rockchip_decoder

2022-03-28 Thread Sascha Hauer
The VOP2 driver needs rockchip specific information for a drm_encoder. This patch creates a struct rockchip_encoder with a struct drm_encoder embedded in it. This is used throughout the rockchip driver instead of struct drm_encoder directly. The information the VOP2 drivers needs is the of_graph

[PATCH v9 22/23] dt-bindings: display: rockchip: Add binding for VOP2

2022-03-28 Thread Sascha Hauer
The VOP2 is found on newer Rockchip SoCs like the rk3568 or the rk3566. The binding differs slightly from the existing VOP binding, so add a new binding file for it. Signed-off-by: Sascha Hauer Reviewed-by: Rob Herring --- Notes: Changes since v5: - Add Robs Reviewed-by: Change

[PATCH v9 09/23] drm/rockchip: dw_hdmi: add regulator support

2022-03-28 Thread Sascha Hauer
The RK3568 has HDMI_TX_AVDD0V9 and HDMI_TX_AVDD_1V8 supply inputs needed for the HDMI port. add support for these to the driver for boards which have them supplied by switchable regulators. Signed-off-by: Sascha Hauer Reviewed-by: Dmitry Osipenko --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

  1   2   3   >