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

2022-04-01 Thread kernel test robot
Hi Sui, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on robh/for-next linus/master v5.17 next-20220401] [cannot apply to mripard/sunxi/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH v6 resend 5/5] phy: freescale: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2022-04-01 Thread Liu Ying
i.MX8qxp SoC embeds a Mixel MIPI DPHY + LVDS PHY combo which supports either a MIPI DSI display or a LVDS display. The PHY mode is controlled by SCU firmware and the driver would call a SCU firmware function to configure the PHY mode. The single LVDS PHY has 4 data lanes to support a LVDS

[PATCH v6 resend 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp

2022-04-01 Thread Liu Ying
Add support for Mixel MIPI DPHY + LVDS PHY combo IP as found on Freescale i.MX8qxp SoC. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Reviewed-by: Rob Herring Reviewed-by: Guido Günther Signed-off-by: Liu Ying --- v5->v6: * No change.

[PATCH v6 resend 3/5] dt-bindings: phy: Convert mixel, mipi-dsi-phy to json-schema

2022-04-01 Thread Liu Ying
This patch converts the mixel,mipi-dsi-phy binding to DT schema format using json-schema. Comparing to the plain text version, the new binding adds the 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' properites, otherwise 'make dtbs_check' would complain that there are

[PATCH v6 resend 2/5] phy: Add LVDS configuration options

2022-04-01 Thread Liu Ying
This patch allows LVDS PHYs to be configured through the generic functions and through a custom structure added to the generic union. The parameters added here are based on common LVDS PHY implementation practices. The set of parameters should cover all potential users. Cc: Kishon Vijay Abraham

[PATCH v6 resend 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_mode_set()

2022-04-01 Thread Liu Ying
The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp works with a Mixel MIPI DPHY + LVDS PHY combo to support either a MIPI DSI display or a LVDS display. So, this patch calls phy_set_mode() from nwl_dsi_mode_set() to set PHY mode to MIPI DPHY explicitly. Cc: Guido Günther Cc:

[PATCH v6 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2022-04-01 Thread Liu Ying
Hi, This is the v6 series to add i.MX8qxp LVDS PHY mode support for the Mixel PHY in the Freescale i.MX8qxp SoC. Comparing to v5, this version only rebases the series upon v5.17-rc1. The Mixel PHY is MIPI DPHY + LVDS PHY combo, which can works in either MIPI DPHY mode or LVDS PHY mode. The PHY

Re: [RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode()

2022-04-01 Thread Marek Vasut
On 4/2/22 05:19, Laurent Pinchart wrote: On Fri, Apr 01, 2022 at 10:36:24PM +0200, Marek Vasut wrote: On 4/1/22 20:46, Laurent Pinchart wrote: On Fri, Apr 01, 2022 at 06:37:54PM +0200, Marek Vasut wrote: Make the width-mm/height-mm panel properties mandatory in

[PATCH v6 5/5] phy: freescale: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2022-04-01 Thread Liu Ying
i.MX8qxp SoC embeds a Mixel MIPI DPHY + LVDS PHY combo which supports either a MIPI DSI display or a LVDS display. The PHY mode is controlled by SCU firmware and the driver would call a SCU firmware function to configure the PHY mode. The single LVDS PHY has 4 data lanes to support a LVDS

[PATCH v6 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp

2022-04-01 Thread Liu Ying
Add support for Mixel MIPI DPHY + LVDS PHY combo IP as found on Freescale i.MX8qxp SoC. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Reviewed-by: Rob Herring Reviewed-by: Guido Günther Signed-off-by: Liu Ying --- v5->v6: * No change.

[PATCH v6 3/5] dt-bindings: phy: Convert mixel, mipi-dsi-phy to json-schema

2022-04-01 Thread Liu Ying
This patch converts the mixel,mipi-dsi-phy binding to DT schema format using json-schema. Comparing to the plain text version, the new binding adds the 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' properites, otherwise 'make dtbs_check' would complain that there are

[PATCH v6 2/5] phy: Add LVDS configuration options

2022-04-01 Thread Liu Ying
This patch allows LVDS PHYs to be configured through the generic functions and through a custom structure added to the generic union. The parameters added here are based on common LVDS PHY implementation practices. The set of parameters should cover all potential users. Cc: Kishon Vijay Abraham

[PATCH v6 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_mode_set()

2022-04-01 Thread Liu Ying
The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp works with a Mixel MIPI DPHY + LVDS PHY combo to support either a MIPI DSI display or a LVDS display. So, this patch calls phy_set_mode() from nwl_dsi_mode_set() to set PHY mode to MIPI DPHY explicitly. Cc: Guido Günther Cc:

[PATCH v6 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2022-04-01 Thread Liu Ying
Hi, This is the v6 series to add i.MX8qxp LVDS PHY mode support for the Mixel PHY in the Freescale i.MX8qxp SoC. Comparing to v5, this version only rebases the series upon v5.17-rc1. The Mixel PHY is MIPI DPHY + LVDS PHY combo, which can works in either MIPI DPHY mode or LVDS PHY mode. The PHY

Re: [RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode()

2022-04-01 Thread Laurent Pinchart
On Fri, Apr 01, 2022 at 10:36:24PM +0200, Marek Vasut wrote: > On 4/1/22 20:46, Laurent Pinchart wrote: > > On Fri, Apr 01, 2022 at 06:37:54PM +0200, Marek Vasut wrote: > >> Make the width-mm/height-mm panel properties mandatory in > >> of_get_drm_panel_display_mode(), print error message and > >>

Re: [PATCH v7 7/9] drm/ttm: Add a parameter to add extra pages into ttm_tt

2022-04-01 Thread Ramalingam C
On 2022-04-01 at 16:31:19 +0200, Christian König wrote: > I would be nicer to push this through drm-misc-next, but the intel branch > works for me as well. Hi Christian I have pushed this patch into drm-misc-next. Regards, Ram. > > Regards, > Christian. > > Am 01.04.22 um 16:28 schrieb

Re: [PATCH 2/4] drm/msm/adreno: use a single register offset for gpu_read64/gpu_write64

2022-04-01 Thread Rob Clark
On Sun, Mar 27, 2022 at 1:27 PM Jonathan Marek wrote: > > The high half of 64-bit registers is always at +1 offset, so change these > helpers to be more convenient by removing the unnecessary argument. > > Signed-off-by: Jonathan Marek I'd been meaning to do this for a while.. so I think I'll

Re: [PATCH v9 00/23] drm/rockchip: RK356x VOP2 support

2022-04-01 Thread Andy Yan
Hi Sacha: On 4/1/22 20:52, Sascha Hauer wrote: -- >From cbc03073623a7180243331ac24c3afaf9dec7522 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 1 Apr 2022 14:48:49 +0200 Subject: [PATCH] fixup! drm: rockchip: Add VOP2 driver --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 14

Re: [PATCH v9 20/23] drm/rockchip: Make VOP driver optional

2022-04-01 Thread Andy Yan
Hi Sascha: On 4/1/22 20:55, Sascha Hauer wrote: On Thu, Mar 31, 2022 at 07:00:34PM +0800, Andy Yan wrote: Hi: On 3/31/22 16:18, Sascha Hauer wrote: On Thu, Mar 31, 2022 at 03:20:37PM +0800, Andy Yan wrote: Hi Sascha: On 3/31/22 15:06, Sascha Hauer wrote: On Wed, Mar 30, 2022 at 08:50:09PM

Re: [PATCH v6] drm/msm/disp/dpu1: add inline rotation support for sc7280 target

2022-04-01 Thread Dmitry Baryshkov
On 22/03/2022 20:55, Vinod Polimera wrote: - Some DPU versions support inline rot90. It is supported only for limited amount of UBWC formats. - There are two versions of inline rotators, v1 (present on sm8250 and sm7250) and v2 (sc7280). These versions differ in the list of supported formats and

[PATCH] drm: bridge: icn6211: Fix DSI-to-DPI PLL configuration

2022-04-01 Thread Marek Vasut
The datasheet for this bridge is not available, the PLL behavior has been inferred from [1] and [2] and by analyzing the DPI pixel clock with scope. After further testing with other displays and different DSI data lane count, it turns out the P-factor is not 1/2^N divider, but rather only 1/N

[PATCH] drm/msm/dsi: fix error checks and return values for DSI xmit functions

2022-04-01 Thread Dmitry Baryshkov
As noticed by Dan ([1] an the followup thread) there are multiple issues with the return values for MSM DSI command transmission callback. In the error case it can easily return a positive value when it should have returned a proper error code. This commits attempts to fix these issues both in TX

Re: [PATCH v4 RFC] drm/i915/uapi: Add DRM_I915_QUERY_GEOMETRY_SUBSLICES

2022-04-01 Thread Francisco Jerez
Daniel Vetter writes: > On Wed, Mar 30, 2022 at 02:53:11PM -0700, Matt Atwood wrote: >> 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

Re: [PATCH v4 3/3] drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp

2022-04-01 Thread Dmitry Baryshkov
On 17/02/2022 21:35, Kuogee Hsieh wrote: Since DRM_DEBUG_DP is deprecated in favor of drm_dbg_dp(NULL, ...), this patch replace all DRM_DEBUG_DP with drm_dbg_dp(). Changes in v4: -- replace (strucr drm_dev *)NULL with drm_dev Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov ---

Re: [PATCH v12 4/4] drm/msm/dp: enable widebus feature for display port

2022-04-01 Thread Dmitry Baryshkov
On 26/02/2022 00:23, Kuogee Hsieh wrote: Widebus feature will transmit two pixel data per pixel clock to interface. This feature now is required to be enabled to easy migrant to higher resolution applications in future. However since some legacy chipsets does not support this feature, this

[PATCH next v2] dma-buf/sync-file: do not allow zero size allocation

2022-04-01 Thread Pavel Skripkin
num_fences is user-controlled value and it can be equal to 0. Code should not pass 0 to kcalloc(), since it will cause kcalloc() to return ZERO_PTR. ZERO_PTR will pass `!fences` check and kernel will panic because of dereferencing ZERO_PTR in add_fence() Fix it by validating num_fences and bail

Re: [PATCH] linux/fb.h: Spelling s/palette/palette/

2022-04-01 Thread Helge Deller
On 2/17/22 11:16, Pekka Paalanen wrote: > On Wed, 16 Feb 2022 09:39:22 +0100 > Geert Uytterhoeven wrote: > >> Fix a misspelling of "palette" in a comment. >> >> Signed-off-by: Geert Uytterhoeven >> --- >> include/uapi/linux/fb.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >>

Re: [PATCH] Hvideo: fbdev: pm2fb: Fix a kernel-doc formatting issue

2022-04-01 Thread Helge Deller
On 4/1/22 10:41, Haowen Bai wrote: > This function had kernel-doc that not used a hash to separate > the function name from the one line description. > > The warning was found by running scripts/kernel-doc, which is > caused by using 'make W=1'. > > drivers/video/fbdev/pm2fb.c:1507: warning: This

[PATCH 3/3] drm/vmwgfx: Fix gem refcounting on prime exported surfaces

2022-04-01 Thread Zack Rusin
From: Zack Rusin vmwgfx exports two different kinds of gpu buffers to the userspace: surfaces and mob's. Surfaces are backed by mob's. Currently only surfaces are allowed with prime. Surfaces exported as prime weren't increasing the reference count on the backing mob's (gem objects), which meant

[PATCH 1/3] drm/vmwgfx: Add debugfs entries for ttm placements

2022-04-01 Thread Zack Rusin
From: Zack Rusin Add a few debugfs entries for every used TTM placement that vmwgfx is using. This allows basic tracking of memory usage inside vmwgfx, e.g. 'cat /sys/kernel/debug/dri/0/mob_ttm' will display mob memory usage. Signed-off-by: Zack Rusin Reviewed-by: Martin Krastev ---

[PATCH 2/3] drm/vmwgfx: Write the driver id registers

2022-04-01 Thread Zack Rusin
From: Zack Rusin Driver id registers are a new mechanism in the svga device to hint to the device which driver is running. This should not change device behavior in any way, but might be convenient to work-around specific bugs in guest drivers. Signed-off-by: Zack Rusin Reviewed-by: Martin

Re: [PATCH] video: fbdev: sis: fix potential NULL dereference in sisfb_post_sis300()

2022-04-01 Thread Helge Deller
On 4/1/22 05:41, Haowen Bai wrote: > bios could be null without checking null and return in this function, > but still dereference bios[0xf5]. > > Signed-off-by: Haowen Bai applied. Thanks! Helge > --- > drivers/video/fbdev/sis/sis_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode()

2022-04-01 Thread Marek Vasut
On 4/1/22 20:46, Laurent Pinchart wrote: Hi, On Fri, Apr 01, 2022 at 06:37:54PM +0200, Marek Vasut wrote: Make the width-mm/height-mm panel properties mandatory in of_get_drm_panel_display_mode(), print error message and return -ve in case these DT properties are not present. This is needed

Re: [PATCH AUTOSEL 5.17 001/149] drm: Add orientation quirk for GPD Win Max

2022-04-01 Thread Anisse Astier
Hi Sasha, Le Fri, Apr 01, 2022 at 10:23:08AM -0400, Sasha Levin a écrit : > From: Anisse Astier > > [ Upstream commit 0b464ca3e0dd3cec65f28bc6d396d82f19080f69 ] > > Panel is 800x1280, but mounted on a laptop form factor, sideways. > > Signed-off-by: Anisse Astier > Reviewed-by: Hans de Goede

Re: [PATCH] drm: bridge: mcde_dsi: Drop explicit bridge remove

2022-04-01 Thread Linus Walleij
On Fri, Apr 1, 2022 at 5:05 PM Jagan Teki wrote: > This driver has been changed to use the resource managed > devm_drm_of_get_bridge() to get bridge from ->bind(), it's > unnecessary to call drm_of_panel_bridge_remove() to remove the > bridge from ->unbind() as devm_drm_of_get_bridge() > is

Re: [PATCH v4 3/3] drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp

2022-04-01 Thread Kuogee Hsieh
On 4/1/2022 12:51 PM, Kuogee Hsieh wrote: Hi Stephen, Would you please help to pick this patch up to msm-next? my mistake, should kernel v5.15 Thanks, On 2/24/2022 10:40 AM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-02-17 10:35:30) Since DRM_DEBUG_DP is deprecated in favor of

Re: [PATCH v12 4/4] drm/msm/dp: enable widebus feature for display port

2022-04-01 Thread Kuogee Hsieh
On 4/1/2022 1:00 PM, Kuogee Hsieh wrote: Hi Stephen, Would you please to help land this serial of 4 patch into msm-next? My mistake, should be kernel v5.15 Thanks, On 2/25/2022 2:17 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-02-25 13:23:12) Widebus feature will transmit two

Re: [PATCH v2 1/3] mm: add vm_normal_lru_pages for LRU handled pages only

2022-04-01 Thread Felix Kuehling
On 2022-03-31 04:53, Christoph Hellwig wrote: - page = vm_normal_page(vma, addr, pte); + page = vm_normal_lru_page(vma, addr, pte); Why can't this deal with ZONE_DEVICE pages? It certainly has nothing do with a LRU I think. In fact being able to have stats that count say the

Re: [PATCH v12 4/4] drm/msm/dp: enable widebus feature for display port

2022-04-01 Thread Kuogee Hsieh
Hi Stephen, Would you please to help land this serial of 4 patch into msm-next? Thanks, On 2/25/2022 2:17 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-02-25 13:23:12) Widebus feature will transmit two pixel data per pixel clock to interface. This feature now is required to be enabled

Re: [PATCH v4 3/3] drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp

2022-04-01 Thread Kuogee Hsieh
Hi Stephen, Would you please help to pick this patch up to msm-next? Thanks, On 2/24/2022 10:40 AM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-02-17 10:35:30) Since DRM_DEBUG_DP is deprecated in favor of drm_dbg_dp(NULL, ...), this patch replace all DRM_DEBUG_DP with drm_dbg_dp().

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Rob Herring
On Fri, Apr 01, 2022 at 09:48:28PM +0300, Laurent Pinchart wrote: > On Fri, Apr 01, 2022 at 01:33:15PM -0500, Rob Herring wrote: > > On Fri, Apr 1, 2022 at 1:25 PM Marek Vasut wrote: > > > On 4/1/22 20:21, Rob Herring wrote: > > > > On Fri, Apr 1, 2022 at 1:06 PM Marek Vasut wrote: > > > >> On

RE: [PATCH v8 3/3] i915/gvt: Use the initial HW state snapshot saved in i915

2022-04-01 Thread zhi.wang.linux
Hi Chirs: Thanks for the testing. I will find a kabelake and try it. :) -Original Message- From: Christoph Hellwig Sent: Friday, April 1, 2022 8:22 PM To: Zhi Wang Cc: dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org; intel-...@lists.freedesktop.org;

Re: [RFC][PATCH 3/3] drm/panel: lvds: Drop duplicate width-mm/height-mm check

2022-04-01 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Fri, Apr 01, 2022 at 06:37:55PM +0200, Marek Vasut wrote: > The of_get_drm_panel_display_mode() now does check for > presence of width-mm/height-mm DT properties, drop the > duplicate check here. > > Signed-off-by: Marek Vasut > Cc: Christoph Niedermaier

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Laurent Pinchart
On Fri, Apr 01, 2022 at 01:33:15PM -0500, Rob Herring wrote: > On Fri, Apr 1, 2022 at 1:25 PM Marek Vasut wrote: > > On 4/1/22 20:21, Rob Herring wrote: > > > On Fri, Apr 1, 2022 at 1:06 PM Marek Vasut wrote: > > >> On 4/1/22 19:34, Rob Herring wrote: > > >>> On Fri, Apr 01, 2022 at 03:22:19AM

Re: [RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode()

2022-04-01 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Fri, Apr 01, 2022 at 06:37:54PM +0200, Marek Vasut wrote: > Make the width-mm/height-mm panel properties mandatory in > of_get_drm_panel_display_mode(), print error message and > return -ve in case these DT properties are not present. > This is needed to

Re: [RFC][PATCH 1/3] dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory

2022-04-01 Thread Laurent Pinchart
On Fri, Apr 01, 2022 at 01:36:53PM -0500, Rob Herring wrote: > On Fri, Apr 1, 2022 at 11:38 AM Marek Vasut wrote: > > > > Make the width-mm/height-mm panel properties mandatory > > to correctly report the panel dimensions to the OS. > > Adding required properties is an ABI break. Only if

Re: [RFC][PATCH 1/3] dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory

2022-04-01 Thread Rob Herring
On Fri, Apr 1, 2022 at 11:38 AM Marek Vasut wrote: > > Make the width-mm/height-mm panel properties mandatory > to correctly report the panel dimensions to the OS. Adding required properties is an ABI break. > > Signed-off-by: Marek Vasut > Cc: Christoph Niedermaier > Cc: Daniel Vetter > Cc:

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Rob Herring
On Fri, Apr 1, 2022 at 1:25 PM Marek Vasut wrote: > > On 4/1/22 20:21, Rob Herring wrote: > > On Fri, Apr 1, 2022 at 1:06 PM Marek Vasut wrote: > >> > >> On 4/1/22 19:34, Rob Herring wrote: > >>> On Fri, Apr 01, 2022 at 03:22:19AM +0200, Marek Vasut wrote: > On 4/1/22 01:52, Rob Herring

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Marek Vasut
On 4/1/22 20:21, Rob Herring wrote: On Fri, Apr 1, 2022 at 1:06 PM Marek Vasut wrote: On 4/1/22 19:34, Rob Herring wrote: On Fri, Apr 01, 2022 at 03:22:19AM +0200, Marek Vasut wrote: On 4/1/22 01:52, Rob Herring wrote: On Wed, 23 Mar 2022 16:48:23 +0100, Maxime Ripard wrote: MIPI-DSI

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Rob Herring
On Fri, Apr 1, 2022 at 1:06 PM Marek Vasut wrote: > > On 4/1/22 19:34, Rob Herring wrote: > > On Fri, Apr 01, 2022 at 03:22:19AM +0200, Marek Vasut wrote: > >> On 4/1/22 01:52, Rob Herring wrote: > >>> On Wed, 23 Mar 2022 16:48:23 +0100, Maxime Ripard wrote: > MIPI-DSI devices, if they are

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Marek Vasut
On 4/1/22 19:34, Rob Herring wrote: On Fri, Apr 01, 2022 at 03:22:19AM +0200, Marek Vasut wrote: On 4/1/22 01:52, Rob Herring wrote: On Wed, 23 Mar 2022 16:48:23 +0100, Maxime Ripard wrote: MIPI-DSI devices, if they are controlled through the bus itself, have to be described as a child node

Re: [PATCH] dt-bindings: display: bridge: Drop requirement on input port for DSI devices

2022-04-01 Thread Rob Herring
On Fri, Apr 01, 2022 at 03:22:19AM +0200, Marek Vasut wrote: > On 4/1/22 01:52, Rob Herring wrote: > > On Wed, 23 Mar 2022 16:48:23 +0100, Maxime Ripard wrote: > > > MIPI-DSI devices, if they are controlled through the bus itself, have to > > > be described as a child node of the controller they

Re: [PATCH v2 1/5] dt-bindings: reserved-memory: Document memory region specifier

2022-04-01 Thread Janne Grunau
On 2022-03-31 18:25:05 +0200, Thierry Reding wrote: > On Fri, Feb 11, 2022 at 12:15:44AM +0100, Janne Grunau wrote: > > On 2022-02-09 17:31:16 +0100, Thierry Reding wrote: > > > On Sun, Feb 06, 2022 at 11:27:00PM +0100, Janne Grunau wrote: > > > > On 2021-09-15 17:19:39 +0200, Thierry Reding

[drm-tip:drm-tip 4/8] drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:200:33: error: no member named 'tbo' in 'struct ttm_range_mgr_node'

2022-04-01 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip head: e797b8d09704b91463456234efdf04dc8f8c385d commit: edc1a46d62b7a03d53067f598db831092f9e1b05 [4/8] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip config: arm-randconfig-r033-20220401 (https://download.01.org/0day

Re: [PATCH 1/2] drm/panel: lvds: Simplify mode parsing

2022-04-01 Thread Marek Vasut
On 4/1/22 19:02, Laurent Pinchart wrote: On Fri, Apr 01, 2022 at 06:11:22PM +0200, Marek Vasut wrote: On 4/1/22 17:48, Laurent Pinchart wrote: Hi, [...] diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c index 27a1c9923b09..65c6a6e9e223 100644 ---

Re: [PATCH 1/2] drm/panel: lvds: Simplify mode parsing

2022-04-01 Thread Laurent Pinchart
On Fri, Apr 01, 2022 at 06:11:22PM +0200, Marek Vasut wrote: > On 4/1/22 17:48, Laurent Pinchart wrote: > > Hi, > > [...] > > >> diff --git a/drivers/gpu/drm/panel/panel-lvds.c > >> b/drivers/gpu/drm/panel/panel-lvds.c > >> index 27a1c9923b09..65c6a6e9e223 100644 > >> ---

Re: [PATCH v6 4/4] drm: allow real encoder to be passed for drm_writeback_connector

2022-04-01 Thread Abhinav Kumar
Hi Laurent Thanks for the review. One question below. On 4/1/2022 8:38 AM, Laurent Pinchart wrote: Hi Abhinav, Thank you for the patch. On Thu, Mar 31, 2022 at 05:12:13PM -0700, Abhinav Kumar wrote: For some vendor driver implementations, display hardware can be shared between the encoder

[linux-next:master] BUILD REGRESSION e5071887cd2296a7704dbcd10c1cedf0f11cdbd5

2022-04-01 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: e5071887cd2296a7704dbcd10c1cedf0f11cdbd5 Add linux-next specific files for 20220401 Error/Warning reports: https://lore.kernel.org/linux-media/202203171537.svhye362-...@intel.com https

[RFC][PATCH 3/3] drm/panel: lvds: Drop duplicate width-mm/height-mm check

2022-04-01 Thread Marek Vasut
The of_get_drm_panel_display_mode() now does check for presence of width-mm/height-mm DT properties, drop the duplicate check here. Signed-off-by: Marek Vasut Cc: Christoph Niedermaier Cc: Daniel Vetter Cc: Dmitry Osipenko Cc: Laurent Pinchart Cc: Noralf Trønnes Cc: Rob Herring Cc: Robert

[RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode()

2022-04-01 Thread Marek Vasut
Make the width-mm/height-mm panel properties mandatory in of_get_drm_panel_display_mode(), print error message and return -ve in case these DT properties are not present. This is needed to correctly report panel dimensions. Signed-off-by: Marek Vasut Cc: Christoph Niedermaier Cc: Daniel Vetter

[RFC][PATCH 1/3] dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory

2022-04-01 Thread Marek Vasut
Make the width-mm/height-mm panel properties mandatory to correctly report the panel dimensions to the OS. Signed-off-by: Marek Vasut Cc: Christoph Niedermaier Cc: Daniel Vetter Cc: Dmitry Osipenko Cc: Laurent Pinchart Cc: Noralf Trønnes Cc: Rob Herring Cc: Robert Foss Cc: Sam Ravnborg

Re: [PATCH v2 00/12] drm/edid: cleanup and refactoring around validity checks

2022-04-01 Thread Jani Nikula
On Fri, 01 Apr 2022, Ville Syrjälä wrote: > On Fri, Apr 01, 2022 at 11:55:21AM +0300, Jani Nikula wrote: >> On Thu, 31 Mar 2022, Jani Nikula wrote: >> > v2 of https://patchwork.freedesktop.org/series/101931/ >> > >> > Rebased, review comments addressed. >> >> Ville, care to double check patches

[PATCH v14 6/6] MAINTAINERS: add maintainers for DRM LOONGSON driver

2022-04-01 Thread Sui Jingfeng
This patch add myself as maintainer Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10476280acb8..21184d8577f4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6487,6 +6487,15 @@ T:

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

2022-04-01 Thread Sui Jingfeng
There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge chip, the display controller is a PCI device. It have two display pipes but with only one hardware cursor. Each way has a DVO interface which provide RGB888 signals, vertical & horizontal synchronisations, data enable and

[PATCH v14 4/6] MIPS: Loongson64: defconfig: enable display bridge drivers

2022-04-01 Thread Sui Jingfeng
ls3A4000 evb board ship with adv7123 and tfp410 while ls2k1000 PI board use a DPI panel from FORLINX company and a sii9022 HDMI transmitter. Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- arch/mips/configs/loongson2k_defconfig | 5 + arch/mips/configs/loongson3_defconfig | 5 + 2

[PATCH v14 3/6] dt-bindings: display: Add Loongson display controller

2022-04-01 Thread Sui Jingfeng
Add DT bindings and simple usages for Loongson display controller found in LS7A1000 bridge chip and LS2k1000 SoC. Signed-off-by: Sui Jingfeng <15330273...@189.cn> --- .../loongson/loongson,display-controller.yaml | 295 ++ 1 file changed, 295 insertions(+) create mode 100644

[PATCH v14 2/6] MIPS: Loongson64: introduce board specific dts and add model property

2022-04-01 Thread Sui Jingfeng
This patch introduce three dts which are board specific and each of them is assigned a model property according to the board name printed on the top overlay of the PCB. The model property added can be used to provide board specific information, mips kernel use it as machine name. For example: $

[PATCH v14 1/6] MIPS: Loongson64: dts: update the display controller device node

2022-04-01 Thread Sui Jingfeng
The display controller is a pci device, it is used in ls2k1000 SoC and LS7A1000 bridge. Its PCI vendor id is 0x0014, its PCI device id is 0x7a06. In order to let the driver to know which chip the DC is contained in, the compatible of the display controller is named according to the chip's name.

[PATCH v14 0/6] drm/loongson: add drm driver for loongson display controller

2022-04-01 Thread Sui Jingfeng
There is a display controller in loongson's LS2K1000 SoC and LS7A1000 bridge chip, the display controller is a PCI device. It have two display pipes but with only one hardware cursor. Each way has a DVO interface which provide RGB888 signals, vertical & horizontal synchronisations, data enable and

[PATCH v2 2/2] drm/panel: lvds: Use bus_flags from DT panel-timing property

2022-04-01 Thread Marek Vasut
This driver currently rewrites bus_flags based solely on the value of DT property 'data-mirror' and ignores bus_flags which might have been set in DT panel-timing node. Specificaly, the 'de-active' DT property sets DRM_BUS_FLAG_DE_ bus_flags. Since of_get_drm_panel_display_mode() conveniently

[PATCH v2 1/2] drm/panel: lvds: Simplify mode parsing

2022-04-01 Thread Marek Vasut
The mode parsing is currently implemented in three steps: of_get_display_timing() - DT panel-timing to struct display_timing videomode_from_timing() - struct display_timing to struct videomode drm_display_mode_from_videomode() - struct videomode to struct drm_display_mode Replace all that with

Re: [PATCH 17/23] dma-buf: specify usage while adding fences to dma_resv obj v5

2022-04-01 Thread Daniel Vetter
On Fri, Apr 01, 2022 at 05:01:13PM +0200, Christian König wrote: > > > Am 29.03.22 um 17:43 schrieb Daniel Vetter: > > On Mon, Mar 21, 2022 at 02:58:50PM +0100, Christian König wrote: > > [SNIP] > > > /** > > > - * dma_resv_add_shared_fence - Add a fence to a shared slot > > > + *

Re: [PATCH 1/2] drm/panel: lvds: Simplify mode parsing

2022-04-01 Thread Marek Vasut
On 4/1/22 17:48, Laurent Pinchart wrote: Hi, [...] diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c index 27a1c9923b09..65c6a6e9e223 100644 --- a/drivers/gpu/drm/panel/panel-lvds.c +++ b/drivers/gpu/drm/panel/panel-lvds.c @@ -30,7 +30,8 @@ struct

Re: [PATCH 03/23] dma-buf: add dma_resv_get_singleton v2

2022-04-01 Thread Daniel Vetter
On Fri, Apr 01, 2022 at 10:21:22AM +0200, Christian König wrote: > Daniel any more comments on this one here? > > It's the prerequisite to a bunch of other patches and I would like to get it > out of my feet. Apologies for the miss, I thought I've r-b stamped this one already. > > Thanks, >

Re: [PATCH 1/1] drm: add PSR2 support and capability definition as per eDP 1.5

2022-04-01 Thread Zhang, Dingchen (David)
[AMD Official Use Only] Hi Paul and Harry, Thanks for reviewing the patch and commit msg has been revised as per your comments in the v2. From: Paul Menzel Sent: Friday, April 1, 2022 1:46 AM To: Zhang, Dingchen (David) Cc: amd-...@lists.freedesktop.org ; dri-devel@lists.freedesktop.org ;

Re: [PATCH 2/2] drm/panel: lvds: Use bus_flags from DT panel-timing property

2022-04-01 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Thu, Mar 31, 2022 at 09:23:47PM +0200, Marek Vasut wrote: > This driver currently rewrites bus_flags based solely on the value of > DT property 'data-mirror' and ignores bus_flags which might have been > set in DT panel-timing node. Specificaly, the

Re: [PATCH 1/2] drm/panel: lvds: Simplify mode parsing

2022-04-01 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Thu, Mar 31, 2022 at 09:23:46PM +0200, Marek Vasut wrote: > The mode parsing is currently implemented in three steps: > of_get_display_timing() - DT panel-timing to struct display_timing > videomode_from_timing() - struct display_timing to struct videomode >

Re: [PATCH v6 4/4] drm: allow real encoder to be passed for drm_writeback_connector

2022-04-01 Thread Laurent Pinchart
Hi Abhinav, Thank you for the patch. On Thu, Mar 31, 2022 at 05:12:13PM -0700, Abhinav Kumar wrote: > For some vendor driver implementations, display hardware can > be shared between the encoder used for writeback and the physical > display. > > In addition resources such as clocks and

Re: [PATCH V2] drm/amdgpu/vcn: Remove unneeded semicolon

2022-04-01 Thread Alex Deucher
Applied. Thanks! Alex On Fri, Apr 1, 2022 at 3:23 AM Haowen Bai wrote: > > report by coccicheck: > drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:1951:2-3: Unneeded semicolon > > Fixes: c543dcbe4237 ("drm/amdgpu/vcn: Add VCN ras error query support") > > Signed-off-by: Haowen Bai > --- > V1->V2:

Re: [PATCH v2] drm/amd/display: Fix unused-but-set-variable warning

2022-04-01 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Mar 24, 2022 at 9:46 AM Aashish Sharma wrote: > > Fix the kernel test robot warning below: > > drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2893:12: > warning: variable 'temp' set but not used [-Wunused-but-set-variable] > > Replaced the assignment to

Re: [PATCH v6 1/4] drm: allow passing possible_crtcs to drm_writeback_connector_init()

2022-04-01 Thread Laurent Pinchart
Hello Abhinav, Thank you for the patch. On Thu, Mar 31, 2022 at 05:12:10PM -0700, Abhinav Kumar wrote: > Clients of drm_writeback_connector_init() initialize the > possible_crtcs and then invoke the call to this API. > > To simplify things, allow passing possible_crtcs as a parameter > to

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib: Helper library for parsing i915 fdinfo output

2022-04-01 Thread Umesh Nerlige Ramappa
lgtm, thanks for clarifications on the other patch. Reviewed-by: Umesh Nerlige Ramappa Umesh On Fri, Apr 01, 2022 at 03:11:53PM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Tests and intel_gpu_top will share common code for parsing this file. v2: * Fix key-value parsing if valid key

[PATCH] drm: bridge: mcde_dsi: Drop explicit bridge remove

2022-04-01 Thread Jagan Teki
This driver has been changed to use the resource managed devm_drm_of_get_bridge() to get bridge from ->bind(), it's unnecessary to call drm_of_panel_bridge_remove() to remove the bridge from ->unbind() as devm_drm_of_get_bridge() is automatically remove the bridge when @dev is unbound. Drop it

Re: [PATCH 17/23] dma-buf: specify usage while adding fences to dma_resv obj v5

2022-04-01 Thread Christian König
Am 29.03.22 um 17:43 schrieb Daniel Vetter: On Mon, Mar 21, 2022 at 02:58:50PM +0100, Christian König wrote: [SNIP] /** - * dma_resv_add_shared_fence - Add a fence to a shared slot + * dma_resv_add_fence - Add a fence to the dma_resv obj * @obj: the reservation object - * @fence: the

Re: [PATCH] drm: bridge: icn6211: Drop I2C module owner assignment

2022-04-01 Thread Jagan Teki
On Fri, Apr 1, 2022 at 5:03 PM Marek Vasut wrote: > > The module owner = THIS_MODULE is set by I2C core, drop duplicate assignment. > > Fixes: 8dde6f7452a1 ("drm: bridge: icn6211: Add I2C configuration support") > Signed-off-by: Marek Vasut > Cc: Jagan Teki > Cc: Maxime Ripard > Cc: Robert

Re: [PATCH] drm/bridge: nwl-dsi: Drop the drm_of_panel_bridge_remove() function call

2022-04-01 Thread Jagan Teki
On Fri, Apr 1, 2022 at 7:26 AM Liu Ying wrote: > > Since this driver has been changed to use the resource managed > devm_drm_of_get_bridge() to get bridge from ->attach(), it's > unnecessary to call drm_of_panel_bridge_remove() to remove the > bridge from ->detach(). So, let's drop the

[PATCH AUTOSEL 4.19 16/29] drm/amdkfd: make CRAT table missing message informational only

2022-04-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 9dff13f9edf755a15f6507874185a3290c1ae8bb ] The driver has a fallback so make the message informational rather than a warning. The driver has a fallback if the Component Resource Association Table (CRAT) is missing, so make this informational now. Bug:

[PATCH AUTOSEL 4.19 03/29] drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

2022-04-01 Thread Sasha Levin
From: Xin Xiong [ Upstream commit dfced44f122c54a48ecc8db516bb6a295a1b ] This issue takes place in an error path in amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into default case, the function simply returns -EINVAL, forgetting to decrement the reference count of a

[PATCH AUTOSEL 4.19 01/29] drm: Add orientation quirk for GPD Win Max

2022-04-01 Thread Sasha Levin
From: Anisse Astier [ Upstream commit 0b464ca3e0dd3cec65f28bc6d396d82f19080f69 ] Panel is 800x1280, but mounted on a laptop form factor, sideways. Signed-off-by: Anisse Astier Reviewed-by: Hans de Goede Signed-off-by: Jani Nikula Link:

[PATCH AUTOSEL 5.4 20/37] drm/amdkfd: make CRAT table missing message informational only

2022-04-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 9dff13f9edf755a15f6507874185a3290c1ae8bb ] The driver has a fallback so make the message informational rather than a warning. The driver has a fallback if the Component Resource Association Table (CRAT) is missing, so make this informational now. Bug:

[PATCH AUTOSEL 5.4 12/37] drm/amdgpu: Fix recursive locking warning

2022-04-01 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 447c7997b62a5115ba4da846dcdee4fc12298a6a ] Noticed the below warning while running a pytorch workload on vega10 GPUs. Change to trylock to avoid conflicts with already held reservation locks. [ +0.03] WARNING: possible recursive locking detected [

[PATCH AUTOSEL 5.4 03/37] drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

2022-04-01 Thread Sasha Levin
From: Xin Xiong [ Upstream commit dfced44f122c54a48ecc8db516bb6a295a1b ] This issue takes place in an error path in amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into default case, the function simply returns -EINVAL, forgetting to decrement the reference count of a

[PATCH AUTOSEL 5.4 01/37] drm: Add orientation quirk for GPD Win Max

2022-04-01 Thread Sasha Levin
From: Anisse Astier [ Upstream commit 0b464ca3e0dd3cec65f28bc6d396d82f19080f69 ] Panel is 800x1280, but mounted on a laptop form factor, sideways. Signed-off-by: Anisse Astier Reviewed-by: Hans de Goede Signed-off-by: Jani Nikula Link:

[PATCH AUTOSEL 5.10 32/65] drm/amdkfd: make CRAT table missing message informational only

2022-04-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 9dff13f9edf755a15f6507874185a3290c1ae8bb ] The driver has a fallback so make the message informational rather than a warning. The driver has a fallback if the Component Resource Association Table (CRAT) is missing, so make this informational now. Bug:

[PATCH AUTOSEL 5.10 20/65] drm/amdgpu: Fix recursive locking warning

2022-04-01 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 447c7997b62a5115ba4da846dcdee4fc12298a6a ] Noticed the below warning while running a pytorch workload on vega10 GPUs. Change to trylock to avoid conflicts with already held reservation locks. [ +0.03] WARNING: possible recursive locking detected [

[PATCH AUTOSEL 5.10 04/65] drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

2022-04-01 Thread Sasha Levin
From: Xin Xiong [ Upstream commit dfced44f122c54a48ecc8db516bb6a295a1b ] This issue takes place in an error path in amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into default case, the function simply returns -EINVAL, forgetting to decrement the reference count of a

[PATCH AUTOSEL 5.10 03/65] drm/amd/display: Add signal type check when verify stream backends same

2022-04-01 Thread Sasha Levin
From: Dale Zhao [ Upstream commit 047db281c026de5971cedb5bb486aa29bd16a39d ] [Why] For allow eDP hot-plug feature, the stream signal may change to VIRTUAL when plug-out and back to eDP when plug-in. OS will still setPathMode with same timing for each plugging, but eDP gets no stream update as

[PATCH AUTOSEL 5.10 01/65] drm: Add orientation quirk for GPD Win Max

2022-04-01 Thread Sasha Levin
From: Anisse Astier [ Upstream commit 0b464ca3e0dd3cec65f28bc6d396d82f19080f69 ] Panel is 800x1280, but mounted on a laptop form factor, sideways. Signed-off-by: Anisse Astier Reviewed-by: Hans de Goede Signed-off-by: Jani Nikula Link:

[PATCH AUTOSEL 5.15 59/98] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels

2022-04-01 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 94fa115f7b28a3f02611499175e134f0a823b686 ] Some devices use e.g. a portrait panel in a standard laptop casing made for landscape panels. efifb calls drm_get_panel_orientation_quirk() and sets fb_info.fbcon_rotate_hint to make fbcon rotate the console so

[PATCH AUTOSEL 5.15 51/98] drm/amdkfd: make CRAT table missing message informational only

2022-04-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 9dff13f9edf755a15f6507874185a3290c1ae8bb ] The driver has a fallback so make the message informational rather than a warning. The driver has a fallback if the Component Resource Association Table (CRAT) is missing, so make this informational now. Bug:

  1   2   3   >