Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-19 Thread Geert Uytterhoeven
Hi Michal, On Wed, May 18, 2022 at 8:54 PM Michal Suchánek wrote: > On Wed, May 18, 2022 at 08:30:06PM +0200, Thomas Zimmermann wrote: > > --- a/drivers/gpu/drm/tiny/Kconfig > > +++ b/drivers/gpu/drm/tiny/Kconfig > > @@ -51,6 +51,18 @@ config DRM_GM12U320 > >This is a KMS driver for proje

Re: [PATCH v3 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant

2022-05-19 Thread kernel test robot
applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Marek-Vasut/dt-bindings-lcdif-Add-compatible-for-i-MX8MP/20220519-0

Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-19 Thread Thomas Zimmermann
Hi Am 19.05.22 um 09:11 schrieb Geert Uytterhoeven: Hi Michal, On Wed, May 18, 2022 at 8:54 PM Michal Suchánek wrote: On Wed, May 18, 2022 at 08:30:06PM +0200, Thomas Zimmermann wrote: --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -51,6 +51,18 @@ config DRM_GM12U32

[PATCH] drm/nouveau/tegra: remove needless NULL check

2022-05-19 Thread Guo Zhengkui
There has already been NULL check in clk_prepare_enable() and clk_disable_unprepare(), so remove needless NULL check before calling them. Signed-off-by: Guo Zhengkui --- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff

Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-19 Thread Mark Cave-Ayland
On 18/05/2022 19:30, Thomas Zimmermann wrote: Open Firmware provides basic display output via the 'display' node. DT platform code already provides a device that represents the node's framebuffer. Add a DRM driver for the device. The display mode and color format is pre-initialized by the system

Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-19 Thread Thomas Zimmermann
Hi Am 18.05.22 um 23:11 schrieb Mark Cave-Ayland: On 18/05/2022 19:30, Thomas Zimmermann wrote: Open Firmware provides basic display output via the 'display' node. DT platform code already provides a device that represents the node's framebuffer. Add a DRM driver for the device. The display mo

Re: [PATCH] drm/bridge: ti-sn65dsi83: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Andrzej Hajda
On 19.05.2022 01:38, Marek Vasut wrote: Handle empty data-lanes = < >; property, which translates to dsi_lanes = 0 as invalid. Fixes: ceb515ba29ba6 ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Lucas

Re: [PATCH 1/3] drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Andrzej Hajda
On 19.05.2022 01:36, Marek Vasut wrote: Handle empty data-lanes = < >; property, which translates to dsi_lanes = 0 as invalid. Fixes: bbfd3190b6562 ("drm/bridge: tc358767: Add DSI-to-DPI mode support") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Lucas Stach Cc: Mare

Re: [PATCH 2/3] drm/bridge: tc358767: Report DSI-to-(e)DP as supported

2022-05-19 Thread Andrzej Hajda
On 19.05.2022 01:36, Marek Vasut wrote: The DSI-to-e(DP) mode is now supported, update the driver comment to reflect this. No functional change. Fixes: 3080c21a043ab ("drm/bridge: tc358767: Add DSI-to-(e)DP mode support") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pinchart Cc: L

Re: [PATCH 1/3] drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Lucas Stach
Am Donnerstag, dem 19.05.2022 um 01:36 +0200 schrieb Marek Vasut: > Handle empty data-lanes = < >; property, which translates to > dsi_lanes = 0 as invalid. > I'm having a hard time imagining a situation where on would add a empty data-lanes property to the DT. But then 0 DSI lanes is clearly a br

Re: [PATCH 2/3] drm/bridge: tc358767: Report DSI-to-(e)DP as supported

2022-05-19 Thread Lucas Stach
Am Donnerstag, dem 19.05.2022 um 01:36 +0200 schrieb Marek Vasut: > The DSI-to-e(DP) mode is now supported, update the driver comment > to reflect this. No functional change. > > Fixes: 3080c21a043ab ("drm/bridge: tc358767: Add DSI-to-(e)DP mode support") > Signed-off-by: Marek Vasut > Cc: Jonas

Re: [PATCH 3/3] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Lucas Stach
Am Donnerstag, dem 19.05.2022 um 01:36 +0200 schrieb Marek Vasut: > The Refclk may be supplied by SoC clock output instead of crystal > oscillator, make sure the clock are enabled before any other action > is performed with the bridge chip, otherwise it may either fail to > operate at all, or miss

Re: [PATCH] drm/bridge: ti-sn65dsi83: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Lucas Stach
Am Donnerstag, dem 19.05.2022 um 01:38 +0200 schrieb Marek Vasut: > Handle empty data-lanes = < >; property, which translates to > dsi_lanes = 0 as invalid. > > Fixes: ceb515ba29ba6 ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and > SN65DSI84 driver") > Signed-off-by: Marek Vasut > Cc: Jonas Kar

Re: [PATCH -next] drm/i915: Fix some integer constant macro to unsigned type

2022-05-19 Thread Jani Nikula
On Thu, 19 May 2022, Yipeng Zou wrote: > Build Kernel with gcc 7.5.0 or older, will get some error message: > > drivers/gpu/drm/i915/display/intel_ddi.c:1915:2: error: case label does not > reduce to an integer constant > case PORT_CLK_SEL_WRPLL1: > ^~~~ > .. > > Look here : https://lore.

[PULL] drm-misc-next-fixes

2022-05-19 Thread Maxime Ripard
Hi Daniel, Dave, Here's this week drm-misc-next-fixes PR Maxime drm-misc-next-fixes-2022-05-19: A device tree binding change for Rockchip VOP2 The following changes since commit 6071c4c2a319da360b0bf2bc397d4fefad10b2c8: drm/qxl: add drm_gem_plane_helper_prepare_fb (2022-05-05 12:30:10 +0200)

[CI 1/3] drm/i915: Introduce has_media_ratio_mode

2022-05-19 Thread Tvrtko Ursulin
From: Ashutosh Dixit Media ratio mode (the ability for media IP to work at a different frequency from the GT) is available for a subset of dGfx platforms supporting GuC/SLPC. Introduce 'has_media_ratio_mode' flag in intel_device_info to identify these platforms and set it for XEHPSDV and DG2/ATS-

[CI 2/3] drm/i915/pcode: Extend pcode functions for multiple gt's

2022-05-19 Thread Tvrtko Ursulin
From: Ashutosh Dixit Each gt contains an independent instance of pcode. Extend pcode functions to interface with pcode on different gt's. To avoid creating dependency of display functionality on intel_gt, pcode function interfaces are exposed in terms of uncore rather than intel_gt. Callers have

[CI 3/3] drm/i915/pcode: Add a couple of pcode helpers

2022-05-19 Thread Tvrtko Ursulin
From: Dale B Stimson Some dGfx pcode commands take additional sub-commands and parameters. Add a couple of helpers to help formatting these commands to improve code readability. v2: Fixed commit author (Rodrigo) v3: Function rename and convert to new uncore interface for pcode functions Remo

Re: [PATCH 01/14] ACPI: video: Add a native function parameter to acpi_video_get_backlight_type()

2022-05-19 Thread Jani Nikula
On Wed, 18 May 2022, Hans de Goede wrote: > Hi, > > On 5/18/22 10:55, Jani Nikula wrote: >> On Tue, 17 May 2022, Hans de Goede wrote: >>> ATM on x86 laptops where we want userspace to use the acpi_video backlight >>> device we often register both the GPU's native backlight device and >>> acpi_vid

[PATCH 0/7] Revert some refactoring patches

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin As agreed on the mailing list and between the maintainers more consensus is needed on the topic. Tvrtko Ursulin (7): Revert "drm/i915: Drop has_psr from device info" Revert "drm/i915: Drop has_dp_mst from device info" Revert "drm/i915: Drop has_ddi from device info"

[PATCH 3/7] Revert "drm/i915: Drop has_ddi from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit efd01cd3c27636bc4840057a03839e54abaf11dc. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 4 +--- drivers/gpu/drm/i915/i915_pci.c | 3 +++ drivers/gpu/drm/i915/intel

[PATCH 2/7] Revert "drm/i915: Drop has_dp_mst from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit eb86f645ab9b90c47de7ebe229feae7ac999421b. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 3 +++ drivers/gpu/drm/i915/intel_d

[PATCH 1/7] Revert "drm/i915: Drop has_psr from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit b15a7357a84f091fde8ce35bf2fd494150ad4bd0. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 3 +++ drivers/gpu/drm/i915/intel_d

[PATCH 4/7] Revert "drm/i915: Drop has_logical_ring_elsq from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit b6411373d3954c8fe4617c27f90f773108b0ab03. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 4 +++- drivers/gpu/drm/i915/intel

[PATCH 5/7] Revert "drm/i915: Drop has_reset_engine from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit 922abe4d19bd21b38298f3902674774b92a49293. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_reset.c| 2 +- drivers/gpu/drm/i915/i915_pci.c | 5 + drivers/gpu/drm/i915/intel

[PATCH 6/7] Revert "drm/i915: Drop has_rc6 from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit 218076abbcd647de46635d21331a34b814f90906. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 3 +-- drivers/gpu/drm/i915/i915_pci.c | 8 drivers/gpu/drm/i915/i

[PATCH 7/7] Revert "drm/i915: Drop has_gt_uc from device info"

2022-05-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit 222ff6db8a0dcb86f2bb65fc8656aec635a737a6. Signed-off-by: Tvrtko Ursulin Acked-by: Joonas Lahtinen Acked-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c| 2 +- drivers/gpu/drm/i915/i915_pci

Re: [PATCH] video: hyperv_fb: Allow resolutions with size > 64 MB for Gen1

2022-05-19 Thread Helge Deller
On 5/18/22 20:48, Dexuan Cui wrote: >> From: Dexuan Cui >> Sent: Wednesday, May 4, 2022 10:05 AM >> To: Haiyang Zhang ; Wei Liu ; >>> ... >>> When I initially implemented this driver 10 years ago, I believe there >>> was smaller limit for the fb... But I think this patch is good for the >>> newer

Re: [PATCH 3/3] drm/panel: introduce ebbg,ft8719 panel

2022-05-19 Thread Linus Walleij
On Mon, May 16, 2022 at 2:56 PM Joel Selvaraj wrote: > On 13/05/22 03:21, Linus Walleij wrote: > > On Fri, May 6, 2022 at 2:18 PM Joel Selvaraj wrote: > >> +#define dsi_dcs_write_seq(dsi, seq...) do {\ > >> + static const u8 d[] = { seq };

Re: [PATCH] video: fbdev: Fix refcount leak in clcdfb_of_vram_setup

2022-05-19 Thread Helge Deller
On 5/12/22 13:59, Miaoqian Lin wrote: > of_parse_phandle() returns a node pointer with refcount > incremented, we should use of_node_put() on it when not need anymore. > Add missing of_node_put() to avoid refcount leak. > > Fixes: d10715be03bd ("video: ARM CLCD: Add DT support") > Signed-off-by: Mi

Re: [PATCH 0/7] Revert some refactoring patches

2022-05-19 Thread Jani Nikula
On Thu, 19 May 2022, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > As agreed on the mailing list and between the maintainers more consensus is > needed on the topic. Acked-by: Jani Nikula > > Tvrtko Ursulin (7): > Revert "drm/i915: Drop has_psr from device info" > Revert "drm/i915: Drop

Re: [PATCH] omapfb: simplify the return expression of dsi_init_pll_data()

2022-05-19 Thread Helge Deller
On 4/29/22 07:47, cgel@gmail.com wrote: > From: Minghao Chi > > Simplify the return expression. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi I've applied both of your omapfb patches to the fbdev tree. Thanks! Helge > --- > drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c | 8

Re: [PATCH v7 1/6] gpu: rfc: Proposal for a GPU cgroup controller

2022-05-19 Thread eballetbo
From: Enric Balletbo i Serra On Tue, 10 May 2022 23:56:45 +, T.J. Mercier wrote: > From: Hridya Valsaraju > Hi T.J. Mercier, Many thanks for this effort. It caught my attention because we might have a use case where this feature can be useful for us. Hence I'd like to jump and be part of t

Re: [PATCH -next] video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove()

2022-05-19 Thread Helge Deller
On 5/13/22 12:05, Yang Yingliang wrote: > In pxa3xx_gcu_probe(), the sequence of error lable is wrong, it will > leads some resource leaked, so adjust the sequence to handle the error > correctly, and if pxa3xx_gcu_add_buffer() fails, pxa3xx_gcu_free_buffers() > need be called. > In pxa3xx_gcu_remo

Re: [PATCH 1/3] drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Marek Vasut
On 5/19/22 09:50, Lucas Stach wrote: Am Donnerstag, dem 19.05.2022 um 01:36 +0200 schrieb Marek Vasut: Handle empty data-lanes = < >; property, which translates to dsi_lanes = 0 as invalid. I'm having a hard time imagining a situation where on would add a empty data-lanes property to the DT.

[PATCH v2 2/2] drm/bridge: tc358767: Report DSI-to-(e)DP as supported

2022-05-19 Thread Marek Vasut
The DSI-to-e(DP) mode is now supported, update the driver comment to reflect this. No functional change. Reviewed-by: Andrzej Hajda Reviewed-by: Lucas Stach Fixes: 3080c21a043ab ("drm/bridge: tc358767: Add DSI-to-(e)DP mode support") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pin

[PATCH v2 1/2] drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid

2022-05-19 Thread Marek Vasut
Handle empty data-lanes = < >; property, which translates to dsi_lanes = 0 as invalid. Reviewed-by: Andrzej Hajda Reviewed-by: Lucas Stach Fixes: bbfd3190b6562 ("drm/bridge: tc358767: Add DSI-to-DPI mode support") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Lucas Sta

[CI 0/3] Expose max and current bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Bhanuprakash Modem (3): drm/debug: Expose connector's max supported bpc via debugfs drm/i915/display/debug:

[CI 1/3] drm/debug: Expose connector's max supported bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
It's useful to know the connector's max supported bpc for IGT testing. Expose it via a debugfs file on the connector "output_bpc". Example: cat /sys/kernel/debug/dri/0/DP-1/output_bpc V2: * Fix typo in comments (Harry) Cc: Jani Nikula Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Bhanup

[CI 2/3] drm/i915/display/debug: Expose crtc current bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
This new debugfs will expose the currently using bpc by crtc. It is very useful for verifying whether we enter the correct output color depth from IGT. This patch will also add the connector's max supported bpc to "i915_display_info" debugfs. Example: cat /sys/kernel/debug/dri/0/crtc-0/i915_curre

[CI 3/3] drm/amd/display: Move connector debugfs to drm

2022-05-19 Thread Bhanuprakash Modem
As drm_connector already have the display_info, instead of creating "output_bpc" debugfs in vendor specific driver, move the logic to the drm layer. This patch will also move "Current" bpc to the crtc debugfs from connector debugfs, since we are getting this info from crtc_state. Cc: Harry Wentla

[PATCH 01/11] drm/radeon: switch over to ttm_bo_init_reserved

2022-05-19 Thread Christian König
Use the new interface instead. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_object.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 6c4a6802ca96..1d4

[no subject]

2022-05-19 Thread Christian König
Just sending that out once more to intel-gfx to let the CI systems take a look. No functional change compared to the last version. Christian.

[PATCH 04/11] drm/ttm: move default BO destructor into VMWGFX

2022-05-19 Thread Christian König
It's the only driver using this. Signed-off-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c index 85a66014c2b6..c4f376d5e1d0 100644 --- a/drivers/gpu/drm/vmw

[PATCH 05/11] drm/ttm: drop ttm_bo_init

2022-05-19 Thread Christian König
Not used any more. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 26 - include/drm/ttm/ttm_bo_api.h | 44 2 files changed, 70 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index

[PATCH 11/11] drm/ttm: stop allocating a dummy resource for pipelined gutting

2022-05-19 Thread Christian König
That should not be necessary any more when drivers should at least be able to handle a move without a resource. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_uti

[PATCH 08/11] drm/nouveau: audit bo->resource usage

2022-05-19 Thread Christian König
Make sure we can at least move and release BOs without backing store. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_bo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 6

[PATCH 10/11] drm/ttm: stop allocating dummy resources during BO creation

2022-05-19 Thread Christian König
That should not be necessary any more when drivers should at least be able to handle the move without a resource. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c

[PATCH 09/11] drm/ttm: audit bo->resource usage

2022-05-19 Thread Christian König
Allow BOs to exist without backing store. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 2b01cb30694a..a55564c8b57c 100644 --- a

[PATCH 07/11] drm/amdgpu: audit bo->resource usage

2022-05-19 Thread Christian König
Make sure we can at least move and release BOs without backing store. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgp

[PATCH 02/11] drm/nouveau: switch over to ttm_bo_init_reserved

2022-05-19 Thread Christian König
Use the new interface instead. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_bo.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 05076e530e7d..858b9382036c 1006

[PATCH 03/11] drm/vram-helper: switch over to ttm_bo_init_reserved

2022-05-19 Thread Christian König
Use the new interface instead. Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem_vram_helper.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index 123045b58fec..7449cbc2f925 1

[PATCH 06/11] drm/ttm: rename and cleanup ttm_bo_init_reserved

2022-05-19 Thread Christian König
Rename ttm_bo_init_reserved to ttm_bo_init_validate since that better matches what the function is actually doing. Remove the unused size parameter, move the function's kerneldoc to the implementation and cleanup the whole error handling. Signed-off-by: Christian König --- drivers/gpu/drm/amd/a

Re:

2022-05-19 Thread Matthew Auld
On Thu, 19 May 2022 at 10:55, Christian König wrote: > > Just sending that out once more to intel-gfx to let the CI systems take > a look. If all went well it should normally appear at [1][2], if CI was able to pick up the series. Since it's not currently there, I assume it's temporarily stuck i

Re: [PATCH v7 2/6] cgroup: gpu: Add a cgroup controller for allocator attribution of GPU memory

2022-05-19 Thread eballetbo
From: Enric Balletbo i Serra On Tue, 10 May 2022 23:56:46 +, T.J. Mercier wrote > From: Hridya Valsaraju > > The cgroup controller provides accounting for GPU and GPU-related > memory allocations. The memory being accounted can be device memory or > memory allocated from pools dedicated to

[PATCH] drm/bridge: anx7625: Add missing of_node_put for endpoint

2022-05-19 Thread Marek Vasut
Add of_node_put call on the endpoint node after it is not needed. Signed-off-by: Marek Vasut Cc: Alex Deucher Cc: Javier Martinez Canillas Cc: Lyude Paul Cc: Thomas Zimmermann Cc: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

[PATCH] drm/bridge: tc358767: Do not cache dsi_lanes twice

2022-05-19 Thread Marek Vasut
The DSI lane count can be accessed via the dsi device pointer, make use of that. No functional change. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg --- drivers/gpu/drm/bridge/tc358767.c | 6 ++ 1 fi

[PATCH] drm/bridge: ti-sn65dsi83: Do not cache dsi_lanes and host twice

2022-05-19 Thread Marek Vasut
The DSI lane count can be accessed via the dsi device pointer, make use of that. The DSI host pointer is only used in sn65dsi83_host_attach(), move the code around so that the host does not have to be cached in the driver private data. This simplifies the code further. No functional change. This h

[PATCH 01/11] drm: of: Add drm_of_get_data_lanes and drm_of_get_data_lanes_ep

2022-05-19 Thread Marek Vasut
Add helper function to count and sanitize DT "data-lanes" property and return either error or the data-lanes count. This is useful for both DSI and (e)DP "data-lanes" property. The later version of the function is an extra wrapper which handles the endpoint look up by regs, that's what majority of

[PATCH 03/11] drm/bridge: icn6211: Convert to drm_of_get_data_lanes_ep

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Jagan Teki Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/

[PATCH 06/11] drm/bridge: tc358767: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/tc358767.c | 8 +

[PATCH 02/11] drm/bridge: anx7625: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg Cc: Xin Ji To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/anal

[PATCH 10/11] drm/bridge: msm: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Abhinav Kumar Cc: Andrzej Hajda Cc: Dmitry Baryshkov Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Rob Clark Cc: Robert Foss Cc: Sam Ravnborg Cc: Sean Paul To: dri-d

[PATCH 07/11] drm/bridge: tc358775: Convert to drm_of_get_data_lanes_ep

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/tc358775.c | 20

[PATCH 09/11] drm/bridge: ti-sn65dsi86: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/ti-sn65dsi86.c |

[PATCH 04/11] drm/bridge: lt8912: Convert to drm_of_get_data_lanes_ep

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Adrien Grassein Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/br

[PATCH 08/11] drm/bridge: ti-sn65dsi83: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/ti-sn65dsi83.c |

[PATCH 11/11] drm/bridge: rcar: Convert to drm_of_get_data_lanes_ep

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c

[PATCH 05/11] drm/bridge: lt9211: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Signed-off-by: Marek Vasut Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/lontium-lt9211.c

Re: [Intel-gfx] [PATCH v6] drm/i915/display: disable HPD workers before display driver unregister

2022-05-19 Thread Andrzej Hajda
Seems the patch correctly fixes the the issue and passes CI so added maintainers/reviewers to CC. On 13.05.2022 18:06, Andrzej Hajda wrote: Handling HPD during driver removal is pointless, and can cause different use-after-free/concurrency issues: 1. Setup of deferred fbdev after fbdev unregis

Re: [PATCH 10/11] drm/bridge: msm: Convert to drm_of_get_data_lanes

2022-05-19 Thread Dmitry Baryshkov
On 19/05/2022 14:26, Marek Vasut wrote: Convert driver to use this new helper to standardize OF "data-lanes" parsing. Reviewed-by: Dmitry Baryshkov Minor nit, if you resend this series for any reason: could you please follow the usual subject prefix for the msm driver: 'drm/msm: ' Si

[PATCH v2] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Marek Vasut
The Refclk may be supplied by SoC clock output instead of crystal oscillator, make sure the clock are enabled before any other action is performed with the bridge chip, otherwise it may either fail to operate at all, or miss reset GPIO toggle. Fixes: 7caff0fc4296e ("drm/bridge: tc358767: Add DPI t

[PATCH v4 1/2] dt-bindings: lcdif: Add compatible for i.MX8MP

2022-05-19 Thread Marek Vasut
Add compatible string for i.MX8MP LCDIF variant. This is called LCDIFv3 and is completely different from the LCDIFv3 found in i.MX23 in that it has a completely scrambled register layout compared to all previous LCDIF variants. The new LCDIFv3 also supports 36bit address space. However, except for

[PATCH v4 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant

2022-05-19 Thread Marek Vasut
Add support for i.MX8MP LCDIF variant. This is called LCDIFv3 and is completely different from the LCDIFv3 found in i.MX23 in that it has a completely scrambled register layout compared to all previous LCDIF variants. The new LCDIFv3 also supports 36bit address space. Add a separate driver which i

Re: [PATCH 10/11] drm/bridge: msm: Convert to drm_of_get_data_lanes

2022-05-19 Thread Marek Vasut
On 5/19/22 13:43, Dmitry Baryshkov wrote: On 19/05/2022 14:26, Marek Vasut wrote: Convert driver to use this new helper to standardize OF "data-lanes" parsing. Reviewed-by: Dmitry Baryshkov Can you please also test it, that it does not break anything ? Minor nit, if you resend this series

Re: [PATCH v2] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Lucas Stach
Am Donnerstag, dem 19.05.2022 um 13:47 +0200 schrieb Marek Vasut: > The Refclk may be supplied by SoC clock output instead of crystal > oscillator, make sure the clock are enabled before any other action > is performed with the bridge chip, otherwise it may either fail to > operate at all, or miss

Re: [PATCH 3/3] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Marek Vasut
On 5/19/22 09:57, Lucas Stach wrote: Am Donnerstag, dem 19.05.2022 um 01:36 +0200 schrieb Marek Vasut: The Refclk may be supplied by SoC clock output instead of crystal oscillator, make sure the clock are enabled before any other action is performed with the bridge chip, otherwise it may either

Re: [PATCH v2] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Maxime Ripard
On Thu, May 19, 2022 at 01:47:51PM +0200, Marek Vasut wrote: > The Refclk may be supplied by SoC clock output instead of crystal > oscillator, make sure the clock are enabled before any other action > is performed with the bridge chip, otherwise it may either fail to > operate at all, or miss reset

Re: [syzbot] WARNING in __dma_map_sg_attrs

2022-05-19 Thread Dmitry Vyukov
On Tue, 8 Feb 2022 at 13:26, Daniel Vetter wrote: > > On Sat, Feb 05, 2022 at 12:18:23PM -0800, syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit:0457e5153e0e Merge tag 'for-linus' of git://git.kernel.org.. > > git tree: upstream > > console

[PATCH v3] drm/bridge: tc358767: Make sure Refclk clock are enabled

2022-05-19 Thread Marek Vasut
The Refclk may be supplied by SoC clock output instead of crystal oscillator, make sure the clock are enabled before any other action is performed with the bridge chip, otherwise it may either fail to operate at all, or miss reset GPIO toggle. Reviewed-by: Lucas Stach Fixes: 7caff0fc4296e ("drm/b

RE: [PATCH 01/11] drm/radeon: switch over to ttm_bo_init_reserved

2022-05-19 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Thursday, May 19, 2022 5:55 AM >To: intel-...@lists.freedesktop.org >Cc: matthew.william.a...@gmail.com; Christian König >; dri-devel@lists.freedesktop.org >Subject: [PATCH 01/11] drm/radeon: switch over to ttm_bo_in

Re: [PATCH V2 0/3] DSI host and peripheral initialisation ordering

2022-05-19 Thread Dave Stevenson
Hi Marek and Andrzej On Wed, 18 May 2022 at 23:53, Andrzej Hajda wrote: > > > > On 18.05.2022 16:05, Marek Szyprowski wrote: > > Hi Dave, > > > > On 11.05.2022 17:47, Dave Stevenson wrote: > >> On Wed, 11 May 2022 at 15:58, Marek Szyprowski > >> wrote: > >>> On 05.04.2022 13:43, Dave Stevenson

Re: [PATCH 04/11] drm/r128: Fix undefined behavior due to shift overflowing the constant

2022-05-19 Thread Daniel Vetter
On Mon, Apr 25, 2022 at 11:46:53AM -0700, Randy Dunlap wrote: > > > On 4/5/22 08:15, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Fix: > > > > drivers/gpu/drm/r128/r128_cce.c: In function ‘r128_do_init_cce’: > > drivers/gpu/drm/r128/r128_cce.c:417:2: error: case label does not

Re: [PATCH 01/11] drm/radeon: switch over to ttm_bo_init_reserved

2022-05-19 Thread Christian König
Am 19.05.22 um 14:54 schrieb Ruhl, Michael J: -Original Message- From: dri-devel On Behalf Of Christian König Sent: Thursday, May 19, 2022 5:55 AM To: intel-...@lists.freedesktop.org Cc: matthew.william.a...@gmail.com; Christian König ; dri-devel@lists.freedesktop.org Subject: [PATCH 01/

RE: [PATCH 02/11] drm/nouveau: switch over to ttm_bo_init_reserved

2022-05-19 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Thursday, May 19, 2022 5:55 AM >To: intel-...@lists.freedesktop.org >Cc: matthew.william.a...@gmail.com; Christian König >; dri-devel@lists.freedesktop.org >Subject: [PATCH 02/11] drm/nouveau: switch over to ttm_bo_i

RE: [PATCH 04/11] drm/ttm: move default BO destructor into VMWGFX

2022-05-19 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Thursday, May 19, 2022 5:55 AM >To: intel-...@lists.freedesktop.org >Cc: matthew.william.a...@gmail.com; Christian König >; dri-devel@lists.freedesktop.org >Subject: [PATCH 04/11] drm/ttm: move default BO destructor

Re: [PATCH] drm/bridge: fix anx6345 power up sequence

2022-05-19 Thread Torsten Duwe
On Wed, 18 May 2022 09:53:58 -0700 Vasily Khoruzhick wrote: > On Thu, Apr 28, 2022 at 8:58 AM Torsten Duwe wrote: > > power on the eDP bridge? Could there be any leftovers from that > > mechanism? I use a hacked-up U-Boot with a procedure similar to the > > kernel driver as fixed by this change

[PATCH v3] dt-bindings: display: bridge: sil, sii9022: Convert to json-schema

2022-05-19 Thread Geert Uytterhoeven
Convert the Silicon Image sii902x HDMI bridge Device Tree binding documentation to json-schema. Add missing sil,sii9022-cpi and sil,sii9022-tpi compatible values. Signed-off-by: Geert Uytterhoeven --- v3: - Add comments clarifying CPI/TPI, - Improve wording, - Drop port@2, - Add port des

RE: [PATCH 06/11] drm/ttm: rename and cleanup ttm_bo_init_reserved

2022-05-19 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Thursday, May 19, 2022 5:55 AM >To: intel-...@lists.freedesktop.org >Cc: matthew.william.a...@gmail.com; Christian König >; dri-devel@lists.freedesktop.org >Subject: [PATCH 06/11] drm/ttm: rename and cleanup ttm_bo_i

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-19 Thread Daniel Vetter
On Thu, May 12, 2022 at 10:04:53PM +0300, Dmitry Osipenko wrote: > On 5/12/22 20:04, Daniel Vetter wrote: > > On Thu, 12 May 2022 at 13:36, Dmitry Osipenko > > wrote: > >> > >> On 5/11/22 22:09, Daniel Vetter wrote: > >>> On Wed, May 11, 2022 at 07:06:18PM +0300, Dmitry Osipenko wrote: > On 5

RE: [PATCH 09/11] drm/ttm: audit bo->resource usage

2022-05-19 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Thursday, May 19, 2022 5:55 AM >To: intel-...@lists.freedesktop.org >Cc: matthew.william.a...@gmail.com; Christian König >; dri-devel@lists.freedesktop.org >Subject: [PATCH 09/11] drm/ttm: audit bo->resource usage >

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-19 Thread Dmitry Osipenko
On 5/19/22 17:13, Daniel Vetter wrote: > On Thu, May 12, 2022 at 10:04:53PM +0300, Dmitry Osipenko wrote: >> On 5/12/22 20:04, Daniel Vetter wrote: >>> On Thu, 12 May 2022 at 13:36, Dmitry Osipenko >>> wrote: On 5/11/22 22:09, Daniel Vetter wrote: > On Wed, May 11, 2022 at 07:06:18PM

Re: [PATCH v7 3/7] drm/i915: Prepare for multiple GTs

2022-05-19 Thread Ceraolo Spurio, Daniele
On 5/11/2022 12:11 PM, Ceraolo Spurio, Daniele wrote: On 3/18/2022 4:39 PM, Andi Shyti wrote: From: Tvrtko Ursulin On a multi-tile platform, each tile has its own registers + GGTT space, and BAR 0 is extended to cover all of them. Up to four GTs are supported in i915->gt[], with slot zer

[PATCH] drm/panfrost: Job should reference MMU not file_priv

2022-05-19 Thread Steven Price
For a while now it's been allowed for a MMU context to outlive it's corresponding panfrost_priv, however the job structure still references panfrost_priv to get hold of the MMU context. If panfrost_priv has been freed this is a use-after-free which I've been able to trigger resulting in a splat. T

Re: [PATCH v3 1/3] usb: gadget: add Aspeed ast2600 udc driver

2022-05-19 Thread Greg Kroah-Hartman
On Wed, May 18, 2022 at 02:20:41PM +0800, Neal Liu wrote: > Aspeed udc is compliant with USB2.0, supports USB High Speed > and Full Speed, backward compatible with USB1.1. > > Supports independent DMA channel for each generic endpoint. > Supports 32/256 stages descriptor mode for all generic endpo

Re: [PATCH v3 0/3] add Aspeed udc driver for ast2600

2022-05-19 Thread Greg Kroah-Hartman
On Wed, May 18, 2022 at 02:20:40PM +0800, Neal Liu wrote: > This patch series aim to add Aspeed USB 2.0 Device Controller (udc) > driver, including driver itself, device tree node and documentation. > > Change since v2: > - Rename device tree nodes. > - Fix unusual indentation. > > Change since v

[GIT PULL] drm/msm: drm-msm-fixes-2022-05-19

2022-05-19 Thread Abhinav Kumar
Hi Rob Here is the pull request for the fixes for 5.19. Just a few more changes on top of msm-fixes-staging. Mainly it has the foll fixes: - Limiting WB modes to max sspp linewidth - Fixing the supported rotations to add 180 back for IGT - Fix to handle pm_runtime_get_sync() errors to avoid un

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

2022-05-19 Thread Guillaume Ranquet
On Thu, 12 May 2022 09:44, Maxime Ripard wrote: >Hi, > >On Wed, May 11, 2022 at 05:59:13AM -0700, Guillaume Ranquet wrote: >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >> +#include >> >>

[RESEND 0/6 v2] Support Geekworm MZP280 Panel for Raspberry Pi

2022-05-19 Thread Chris Morgan
From: Chris Morgan This patch series is to add support for the MZP280 panel for the Raspberry Pi. This panel requires adding support for Mode 3 of the Raspberry Pi DPI connector, which necessitates a new media bus format. This patch series has been tested on my Raspberry Pi 4 with version 1 of t

[RESEND 2/6 v2] media: uapi: Document format MEDIA_BUS_FMT_RGB565_1X24_CPADHI

2022-05-19 Thread Chris Morgan
From: Chris Morgan Add support for MEDIA_BUS_FMT_RGB565_1X24_CPADHI. This format is used by the Geekworm MZP280 panel which interfaces with the Raspberry Pi. Signed-off-by: Chris Morgan --- .../media/v4l/subdev-formats.rst | 37 +++ 1 file changed, 37 insertions(+)

  1   2   >