[PATCH] drm/amdgpu: Fix memory leak in hpd_rx_irq_create_workqueue()

2022-09-12 Thread Rafael Mendonca
If construction of the array of work queues to handle hpd_rx_irq offload work fails, we need to unwind. Destroy all the created workqueues and the allocated memory for the hpd_rx_irq_offload_work_queue struct array. Fixes: 8e794421bc98 ("drm/amd/display: Fork thread to offload work of

A divide error bug in framebuffer_check

2022-09-12 Thread butt3rflyh4ck
Hi, there is a divide error bug in framebuffer_check in drivers/gpu/drm/drm_framebuffer.c in the latest kernel. we can trigger it via drm_mode_addfb2 IOCTL. The call trace is drm_mode_addfb2 -> drm_internal_framebuffer_create -> framebuffer_check. let us see code below: ``` static int

[PATCH] drm/writeback: Remove redundant initialization of variable ret

2022-09-12 Thread Jingyu Wang
The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Signed-off-by: Jingyu Wang --- drivers/gpu/drm/drm_writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] dt-bindings: it6505: add properties to restrict output bandwidth

2022-09-12 Thread allen
From: allen chen Add properties to restrict dp output data-lanes and clock. Signed-off-by: Pin-Yen Lin Signed-off-by: Allen Chen --- .../devicetree/bindings/display/bridge/ite,it6505.yaml | 10 ++ 1 file changed, 10 insertions(+) diff --git

linux-next: manual merge of the drm-intel tree with the drm tree

2022-09-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_drv.h between commit: 3bb6a44251b4 ("drm/i915: Rename ggtt_view as gtt_view") from the drm tree and commit: 5fd5cc73e449 ("drm/i915: split out i915_gem.c declarations to i915_gem.h")

Re: [PATCH 4/7] drm/msm/dp: fix aux-bus EP lifetime

2022-09-12 Thread kernel test robot
Hi Johan, I love your patch! Yet something to improve: [auto build test ERROR on next-20220912] [also build test ERROR on v6.0-rc5] [cannot apply to drm-misc/drm-misc-next drm/drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.0-rc5 v6.0-rc4 v6.0-rc3] [If your patch is applied

[PATCH 1/1] drm/i915/guc: Fix release build bug in 'remove log size module parameters'

2022-09-12 Thread John . C . Harrison
From: John Harrison A patch was merged to remove the GuC log size override module parameters. That patch was broken and caused kernel error messages on boot in non CONFIG_DEBUG_GUC|GEM builds: [ 12.085121] i915 :00:02.0: [drm] *ERROR* Zero GuC log crash dump size! [ 12.092035] i915

[PATCH 0/1] Fix 'remove log size module parameters'

2022-09-12 Thread John . C . Harrison
From: John Harrison The patch 'remove log size module parameters' broke loading the kernel when not compiling for debug. Fix it. Signed-off-by: John Harrison John Harrison (1): drm/i915/guc: Fix release build bug in 'remove log size module parameters'

[PATCH v5 12/15] drm/i915/huc: stall media submission until HuC is loaded

2022-09-12 Thread Daniele Ceraolo Spurio
Wait on the fence to be signalled to avoid the submissions finding HuC not yet loaded. Signed-off-by: Daniele Ceraolo Spurio Cc: Tony Ye Reviewed-by: Alan Previn Acked-by: Tony Ye --- drivers/gpu/drm/i915/gt/uc/intel_huc.h | 6 ++ drivers/gpu/drm/i915/i915_request.c| 24

[PATCH v5 09/15] drm/i915/pxp: add huc authentication and loading command

2022-09-12 Thread Daniele Ceraolo Spurio
From: Tomas Winkler Add support for loading HuC via a pxp stream command. V4: 1. Remove unnecessary include in intel_pxp_huc.h (Jani) 2. Adjust copyright year to 2022 Signed-off-by: Tomas Winkler Signed-off-by: Vitaly Lubart Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn

[PATCH v5 06/15] mei: pxp: support matching with a gfx discrete card

2022-09-12 Thread Daniele Ceraolo Spurio
From: Tomas Winkler With on-boards graphics card, both i915 and MEI are in the same device hierarchy with the same parent, while for discrete gfx card the MEI is its child device. Adjust the match function for that scenario by matching MEI parent device with i915. Signed-off-by: Tomas Winkler

[PATCH v5 08/15] drm/i915/pxp: implement function for sending tee stream command

2022-09-12 Thread Daniele Ceraolo Spurio
From: Vitaly Lubart Command to be sent via the stream interface are written to a local memory page, whose address is then provided to the GSC. The interface supports providing a full sg with multiple pages for both input and output messages, but since for now we only aim to support short and

[PATCH v5 14/15] drm/i915/huc: define gsc-compatible HuC fw for DG2

2022-09-12 Thread Daniele Ceraolo Spurio
The fw name is different and we need to record the fact that the blob is gsc-loaded, so add a new macro to help. Note: A-step DG2 G10 does not support HuC loading via GSC and would require a separate firmware to be loaded the legacy way, but that's not a production stepping so we're not going to

[PATCH v5 13/15] drm/i915/huc: better define HuC status getparam possible return values.

2022-09-12 Thread Daniele Ceraolo Spurio
The current HuC status getparam return values are a bit confusing in regards to what happens in some scenarios. In particular, most of the error cases cause the ioctl to return an error, but a couple of them, INIT_FAIL and LOAD_FAIL, are not explicitly handled and neither is their expected return

[PATCH v5 10/15] drm/i915/dg2: setup HuC loading via GSC

2022-09-12 Thread Daniele Ceraolo Spurio
The GSC will perform both the load and the authentication, so we just need to check the auth bit after the GSC has replied. Since we require the PXP module to load the HuC, the earliest we can trigger the load is during the pxp_bind operation. Note that GSC-loaded HuC survives GT reset, so we

[PATCH v5 15/15] HAX: drm/i915: force INTEL_MEI_GSC and INTEL_MEI_PXP on for CI

2022-09-12 Thread Daniele Ceraolo Spurio
Both are required for HuC loading. Signed-off-by: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/Kconfig.debug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/Kconfig.debug b/drivers/gpu/drm/i915/Kconfig.debug index e7fd3e76f8a2..a6576ffbc4dc 100644 ---

[PATCH v5 11/15] drm/i915/huc: track delayed HuC load with a fence

2022-09-12 Thread Daniele Ceraolo Spurio
Given that HuC load is delayed on DG2, this patch adds support for a fence that can be used to wait for load completion. No waiters are added in this patch (they're coming up in the next one), to keep the focus of the patch on the tracking logic. The full HuC loading flow on boot DG2 is as

[PATCH v5 05/15] mei: pxp: add command streamer API to the PXP driver

2022-09-12 Thread Daniele Ceraolo Spurio
From: Vitaly Lubart The discrete graphics card with GSC firmware using command streamer API hence it requires to enhance pxp module with the new gsc_command() handler. The handler is implemented via mei_pxp_gsc_command() which is just a thin wrapper around mei_cldev_send_gsc_command()

[PATCH v5 04/15] mei: bus: extend bus API to support command streamer API

2022-09-12 Thread Daniele Ceraolo Spurio
From: Vitaly Lubart Add mei bus API for sending gsc commands: mei_cldev_send_gsc_command() The GSC commands are originated in the graphics stack and are in form of SGL DMA buffers. The GSC commands are synchronous, the response is received in the same call on the out sg list buffers. The

[PATCH v5 07/15] drm/i915/pxp: load the pxp module when we have a gsc-loaded huc

2022-09-12 Thread Daniele Ceraolo Spurio
The mei_pxp module is required to send the command to load authenticate the HuC to the GSC even if pxp is not in use for protected content management. Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Reviewed-by: Alan Previn --- drivers/gpu/drm/i915/Makefile| 10 +++---

[PATCH v5 02/15] mei: bus: enable sending gsc commands

2022-09-12 Thread Daniele Ceraolo Spurio
From: Tomas Winkler GSC command is and extended header containing a scatter gather list and without a data buffer. Using MEI_CL_IO_SGL flag, the caller send the GSC command as a data and the function internally moves it to the extended header. Signed-off-by: Tomas Winkler Signed-off-by:

[PATCH v5 03/15] mei: adjust extended header kdocs

2022-09-12 Thread Daniele Ceraolo Spurio
From: Tomas Winkler Fix kdoc for struct mei_ext_hdr and mei_ext_begin(). Signed-off-by: Tomas Winkler Signed-off-by: Daniele Ceraolo Spurio Cc: Greg Kroah-Hartman --- V4: New in the series V5: Rebase drivers/misc/mei/hw.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

[PATCH v5 01/15] mei: add support to GSC extended header

2022-09-12 Thread Daniele Ceraolo Spurio
From: Tomas Winkler GSC extend header is of variable size and data is provided in a sgl list inside the header and not in the data buffers, need to enable the path. Signed-off-by: Tomas Winkler Signed-off-by: Daniele Ceraolo Spurio Cc: Vitaly Lubart Cc: Greg Kroah-Hartman --- V2-3: Rebase

[PATCH v5 00/15] drm/i915: HuC loading for DG2

2022-09-12 Thread Daniele Ceraolo Spurio
On DG2, HuC loading is performed by the GSC, via a PXP command. The load operation itself is relatively simple (just send a message to the GSC with the physical address of the HuC in LMEM), but there are timing changes that requires special attention. In particular, to send a PXP command we need

[PATCH 1/1] drm/i915/uc: Fix issues with overriding firmware files

2022-09-12 Thread John . C . Harrison
From: John Harrison The earlier update to support reduced versioning of firmware files introduced an issue with the firmware override module parameter. If an invalid file was specified then an infinite loop could occur trying to find a backup firmware. The fix is that if an explicit override

[PATCH 0/1] Fix bug in version reduced firmware update

2022-09-12 Thread John . C . Harrison
From: John Harrison The earlier patch to support firmware files with reduced versioning introduced an issue with the firmware override module parameter. So fix that. Signed-off-by: John Harrison John Harrison (1): drm/i915/uc: Fix issues with overriding firmware files

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

2022-09-12 Thread John Harrison
On 9/12/2022 00:12, Joonas Lahtinen wrote: Quoting Joonas Lahtinen (2022-08-26 09:23:08) Quoting John Harrison (2022-08-25 19:31:39) On 8/25/2022 00:15, Joonas Lahtinen wrote: Quoting John Harrison (2022-08-24 21:45:09) We also don't want to tie the GuC logging buffer size to the DRM

Re: [PATCH] drm/msm/mdp5: fix kernel panic during shutdown

2022-09-12 Thread Abhinav Kumar
Hi Fabien Thanks for the patch. I believe this issue should get resolved with https://patchwork.freedesktop.org/patch/490326/ as this avoids the override. I have acked that change and will pick it up for the next fixes. Thanks Abhinav On 9/9/2022 8:28 AM, Fabien Parent wrote: The kernel

Re: [PATCH] drm/mediatek: Fix wrong dither settings

2022-09-12 Thread Chun-Kuang Hu
Hi, Allen: Allen-KH Cheng 於 2022年9月8日 週四 晚上10:12寫道: > > The width and height arguments in the cmdq packet for mtk_dither_config() > are inverted. We fix the incorrect width and height for dither settings > in mtk_dither_config(). Applied to mediatek-drm-fixes [1], thanks. [1]

Re: [PATCH] drm/panfrost: Give name to anonymous coredump object union

2022-09-12 Thread Alyssa Rosenzweig
Have we checked that this actually fixes the Mesa build? If so, R-b. > Commit 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump") > introduces one such union, breaking the Mesa build. > > Give it a name, and also rename pan_reg_hdr structure because it will > always be prefixed by the

[linux-next:master] BUILD REGRESSION 044b771be9c5de9d817dfafb829d2f049c71c3b4

2022-09-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 044b771be9c5de9d817dfafb829d2f049c71c3b4 Add linux-next specific files for 20220912 Error/Warning reports: https://lore.kernel.org/linux-media/202209020437.exeodmfe-...@intel.com https

Re: [PATCH v6 17/57] dyndbg: validate class FOO by checking with module

2022-09-12 Thread jim . cromie
On Mon, Sep 12, 2022 at 2:17 PM Jason Baron wrote: > > > > On 9/9/22 16:44, jim.cro...@gmail.com wrote: > > On Wed, Sep 7, 2022 at 12:19 PM Jason Baron wrote: > >> > >> > >> > >> On 9/4/22 17:40, Jim Cromie wrote: > >>> Add module-to-class validation: > >>> > >>> #> echo class DRM_UT_KMS +p >

Re: [PATCH 0/5] drm/amd/display: Reduce stack usage for clang

2022-09-12 Thread Nathan Chancellor
Hi Rodrigo, On Mon, Sep 12, 2022 at 05:50:31PM -0400, Rodrigo Siqueira Jordao wrote: > > > On 2022-08-30 16:34, Nathan Chancellor wrote: > > Hi all, > > > > This series aims to address the following warnings, which are visible > > when building x86_64 allmodconfig with clang after commit

RE: [PATCH] drm/hyperv: Don't overwrite dirt_needed value set by host

2022-09-12 Thread Dexuan Cui
> From: Saurabh Sengar > Sent: Monday, September 12, 2022 8:33 AM > ... > Existing code is causing a race condition where dirt_needed value is > already set by the host and gets overwritten with default value. Remove > this default setting of dirt_needed, to avoid overwriting the value >

Re: [PATCH 4/7] drm/msm/dp: fix aux-bus EP lifetime

2022-09-12 Thread Steev Klimaszewski
On 9/12/22 1:10 PM, Dmitry Baryshkov wrote: On 12/09/2022 18:40, Johan Hovold wrote: Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This

Re: [PATCH 0/5] drm/amd/display: Reduce stack usage for clang

2022-09-12 Thread Rodrigo Siqueira Jordao
On 2022-08-30 16:34, Nathan Chancellor wrote: Hi all, This series aims to address the following warnings, which are visible when building x86_64 allmodconfig with clang after commit 3876a8b5e241 ("drm/amd/display: Enable building new display engine with KCOV enabled").

Re: [PATCH 1/2] dt-bindings: display: panel: Add NewVision NV3051D panel bindings

2022-09-12 Thread Chris Morgan
On Thu, Sep 08, 2022 at 08:42:35PM -0500, Rob Herring wrote: > On Wed, Sep 07, 2022 at 08:35:13AM -0500, Chris Morgan wrote: > > On Wed, Sep 07, 2022 at 02:53:56PM +0200, Krzysztof Kozlowski wrote: > > > On 06/09/2022 20:52, Chris Morgan wrote: > > > > From: Chris Morgan > > > > > > > > Add

Re: [PATCH v1 0/2] Revert chrontel-ch7033 byteswap order series

2022-09-12 Thread Chris Morgan
On Mon, Sep 12, 2022 at 01:38:54PM +0200, Robert Foss wrote: > After applying the "chrontel-ch7033: Add byteswap order option" series, > Laurent reported an issues with the approach. Since no fix has been submitted > for the issues outlined in time for the next kernel release, I'd like to > revert

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Lucas De Marchi
On Mon, Sep 12, 2022 at 10:12:57PM +0200, Andi Shyti wrote: Hi Lucas, On Mon, Sep 12, 2022 at 11:12:47AM -0700, Lucas De Marchi wrote: On Mon, Sep 12, 2022 at 06:59:53PM +0200, Andi Shyti wrote: > Hi Lucas, > > On Mon, Sep 12, 2022 at 09:19:38AM -0700, Lucas De Marchi wrote: > > Support for

Re: [PATCH v7 2/9] drm: POC drm on dyndbg - use in core, 2 helpers, 3 drivers.

2022-09-12 Thread jim . cromie
On Mon, Sep 12, 2022 at 4:29 AM Jani Nikula wrote: > > On Sun, 11 Sep 2022, Jim Cromie wrote: > > Use DECLARE_DYNDBG_CLASSMAP across DRM: > > > > - in .c files, since macro defines/initializes a record > > > > - in drivers, $mod_{drv,drm,param}.c > >ie where param setup is done, since a

Re: [PATCH 2/3] dt-bindings: Add Host1x context stream IDs on Tegra234

2022-09-12 Thread Rob Herring
On Wed, 07 Sep 2022 11:38:43 +0300, Mikko Perttunen wrote: > From: Mikko Perttunen > > Add defines for stream IDs used for Host1x context isolation > on Tegra234. The same stream IDs are used for both NISO0 and > NISO1 SMMUs since Host1x's stream ID protection tables don't > make a distinction

Re: [PATCH v6 17/57] dyndbg: validate class FOO by checking with module

2022-09-12 Thread Jason Baron
On 9/9/22 16:44, jim.cro...@gmail.com wrote: > On Wed, Sep 7, 2022 at 12:19 PM Jason Baron wrote: >> >> >> >> On 9/4/22 17:40, Jim Cromie wrote: >>> Add module-to-class validation: >>> >>> #> echo class DRM_UT_KMS +p > /proc/dynamic_debug/control >>> >>> If a query has "class FOO", then

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Andi Shyti
Hi Lucas, On Mon, Sep 12, 2022 at 11:12:47AM -0700, Lucas De Marchi wrote: > On Mon, Sep 12, 2022 at 06:59:53PM +0200, Andi Shyti wrote: > > Hi Lucas, > > > > On Mon, Sep 12, 2022 at 09:19:38AM -0700, Lucas De Marchi wrote: > > > Support for reading the fuses to check what are the Link Copy

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-12 Thread Danilo Krummrich
Hi Liviu, Thanks for having a look! This is not about this patch, it's about patch 3/7 "drm/arm/hdlcd: crtc: use drmm_crtc_init_with_planes()". And there it's the other way around. When using drmm_crtc_init_with_planes() we shouldn't have a destroy hook in place, that's the whole purpose

Re: [PATCH v5 3/3] drm/msm/dp: retry 3 times if set sink to D0 poweer state failed

2022-09-12 Thread Kuogee Hsieh
On 9/12/2022 11:37 AM, Dmitry Baryshkov wrote: On 12/09/2022 19:23, Kuogee Hsieh wrote: Bring sink out of D3 (power down) mode into D0 (normal operation) mode by setting DP_SET_POWER_D0 bit to DP_SET_POWER dpcd register. This patch will retry 3 times if written to DP_SET_POWER register

Re: [PATCH v5 1/3] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 22:21, Kuogee Hsieh wrote: On 9/12/2022 11:39 AM, Dmitry Baryshkov wrote: On 12/09/2022 19:23, Kuogee Hsieh wrote: DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch will enforce this rule by always cleared

Re: [PATCH v5 1/3] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-12 Thread Kuogee Hsieh
On 9/12/2022 11:39 AM, Dmitry Baryshkov wrote: On 12/09/2022 19:23, Kuogee Hsieh wrote: DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch will enforce this rule by always cleared DOWNSPREAD_CTRL register to 0 before start link

Re: [PATCH v2 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel

2022-09-12 Thread Jagan Teki
Hi Dave, On Thu, 8 Sept 2022 at 20:33, Dave Stevenson wrote: > > Hi Jagan > > On Thu, 8 Sept 2022 at 15:00, Jagan Teki wrote: > > > > Jadard JD9365DA-H3 is WUXGA MIPI DSI panel and it support TFT > > dot matrix LCD with 800RGBx1280 dots at maximum. Look like I wrapped the wrong text, maybe

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Andrzej Hajda
On 12.09.2022 18:19, Lucas De Marchi wrote: Support for reading the fuses to check what are the Link Copy engines was added in commit ad5f74f34201 ("drm/i915/pvc: read fuses for link copy engines"). However they were added unconditionally because the FUSE3 register is present since graphics

Re: [PATCH] Revert "drm: bridge: analogix/dp: add panel prepare/unprepare in suspend/resume time"

2022-09-12 Thread Brian Norris
On Thu, Aug 25, 2022 at 11:06 AM Brian Norris wrote: > On Thu, Aug 25, 2022 at 10:37 AM Doug Anderson wrote: > > Given that this is _not_ an area that I'm an expert in nor is it an > > area where the consequences are super easy to analyze, I'm a little > > hesitant to apply this to drm-misc-next

Re: [PATCH v5 1/3] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 19:23, Kuogee Hsieh wrote: DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch will enforce this rule by always cleared DOWNSPREAD_CTRL register to 0 before start link training. At rare case that DP MSA timing parameters

Re: [PATCH v5 3/3] drm/msm/dp: retry 3 times if set sink to D0 poweer state failed

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 19:23, Kuogee Hsieh wrote: Bring sink out of D3 (power down) mode into D0 (normal operation) mode by setting DP_SET_POWER_D0 bit to DP_SET_POWER dpcd register. This patch will retry 3 times if written to DP_SET_POWER register failed. Could you please elaborate this change? Can

Re: [PATCH v5 2/3] drm/msm/dp: replace variable err with len at dp_aux_link_power_up()

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 19:23, Kuogee Hsieh wrote: drm_dp_dpcd_readb() will return 1 to indicate one byte had been read successfully. This patch replace variable "err" with "len" have more correct meaning. changes in v5: -- split into 3 patches Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry

Re: [PATCH 0/2] Add support for HDR color formats

2022-09-12 Thread Dmitry Baryshkov
On 01/09/2022 23:34, Jessica Zhang wrote: Add support for HDR color formats. XR30 linear/compressed format has been validated with null_platform_test on SC7180, and P010 linear has been validated with plane_test (also on SC7180). Are they supported on sdm845? On msm8998? Jessica Zhang (2):

Re: [PATCH 2/2] drm/msm/dpu: Add support for P010 format

2022-09-12 Thread Rob Clark
On Thu, Sep 1, 2022 at 1:34 PM Jessica Zhang wrote: > > Add support for P010 color format. This adds support for both linear and > compressed formats. > > Signed-off-by: Jessica Zhang Reviewed-by: Rob Clark > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c| 17 - >

Re: [PATCH 1/2] drm/msm/dpu: Add support for XR30 format

2022-09-12 Thread Rob Clark
On Thu, Sep 1, 2022 at 1:34 PM Jessica Zhang wrote: > > Add support for XR30 color format. This supports both linear and > compressed formats. > > Signed-off-by: Jessica Zhang Reviewed-by: Rob Clark > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c| 7 +++ >

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Lucas De Marchi
On Mon, Sep 12, 2022 at 06:59:53PM +0200, Andi Shyti wrote: Hi Lucas, On Mon, Sep 12, 2022 at 09:19:38AM -0700, Lucas De Marchi wrote: Support for reading the fuses to check what are the Link Copy engines was added in commit ad5f74f34201 ("drm/i915/pvc: read fuses for link copy engines").

Re: [PATCH 5/7] drm/msm/dp: fix bridge lifetime

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This can lead resource leaks or failure to bind the

Re: [PATCH 4/7] drm/msm/dp: fix aux-bus EP lifetime

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This can lead resource leaks or failure to bind the

Re: [PATCH 3/7] drm/msm/dp: fix IRQ lifetime

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This is specifically true for the DP IRQ, which

Re: [PATCH 7/7] drm/msm: drop modeset sanity checks

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Signed-off-by: Johan Hovold Again, please split into dp and dsi patches. After that: Reviewed-by: Dmitry Baryshkov ---

Re: [PATCH v3] drm/msm/dp: add atomic_check to bridge ops

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 20:34, Kuogee Hsieh wrote: DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space display manager issue an extra screen update immediately

[PATCH] drm/rockchip: vop2: Fix Null Pointer Dereference on Multiple VPs

2022-09-12 Thread Chris Morgan
From: Chris Morgan If I use more than one VP to output on an RK3566 based device I receive the following error (and then everything freezes): [0.838375] Unable to handle kernel NULL pointer dereference at virtual address 0250 [0.839191] Mem abort info: [0.839442] ESR

Re: [PATCH 6/7] drm/msm/hdmi: fix IRQ lifetime

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This is specifically true for the HDMI IRQ, which

Re: [PATCH 2/7] drm/msm: fix memory corruption with too many bridges

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: Add the missing sanity checks on the bridge counter to avoid corrupting data beyond the fixed-sized bridge array in case there are ever more than eight bridges. a3376e3ec81c ("drm/msm: convert to drm_bridge") ab5b0107ccf3 ("drm/msm: Initial add eDP

Re: [PATCH 1/7] drm/msm: fix use-after-free on probe deferral

2022-09-12 Thread Dmitry Baryshkov
On 12/09/2022 18:40, Johan Hovold wrote: The bridge counter was never reset when tearing down the DRM device so that stale pointers to deallocated structures would be accessed on the next tear down (e.g. after a second late bind deferral). Given enough bridges and a few probe deferrals this

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-12 Thread Liviu Dudau
Hi Danilo, I have applied your patch series for HDLCD on top of drm-next (commit 213cb76ddc8b) and on start up I get a warning: [ 12.882554] hdlcd 7ff5.hdlcd: drm_WARN_ON(funcs && funcs->destroy) [ 12.882596] WARNING: CPU: 1 PID: 211 at drivers/gpu/drm/drm_crtc.c:393

[PATCH v3] drm/msm/dp: add atomic_check to bridge ops

2022-09-12 Thread Kuogee Hsieh
DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space display manager issue an extra screen update immediately followed by close DRM device while down

Re: [PATCH v3 19/37] drm/i915: stop using kernel-doc markups for something else

2022-09-12 Thread Matt Roper
On Mon, Sep 12, 2022 at 06:47:56PM +0200, Mauro Carvalho Chehab wrote: > Hi Matt, > > Em Mon, 12 Sep 2022 08:09:57 -0700 > Matt Roper escreveu: > > > > --- a/drivers/gpu/drm/i915/gt/intel_context_types.h > > > +++ b/drivers/gpu/drm/i915/gt/intel_context_types.h > > > > Several of the

Re: [PATCH] drm/plane-helper: Add a drm_plane_helper_atomic_check() helper

2022-09-12 Thread Ville Syrjälä
On Mon, Sep 12, 2022 at 04:22:49PM +0200, Thomas Zimmermann wrote: > Hi > > Am 12.09.22 um 14:34 schrieb Ville Syrjälä: > > On Mon, Sep 12, 2022 at 02:05:36PM +0200, Thomas Zimmermann wrote: > >> Hi > >> > >> Am 12.09.22 um 13:18 schrieb Ville Syrjälä: > >>> On Mon, Sep 12, 2022 at 01:05:45PM

Re: [PATCH 0/7] drm/msm: probe deferral fixes

2022-09-12 Thread Abhinav Kumar
Adding kuogee to this series Hi Johan Thanks for posting this. We will take a look at this, re-validate and give our reviews/tested-bys. Thanks Abhinav On 9/12/2022 8:40 AM, Johan Hovold wrote: The MSM DRM is currently broken in multiple ways with respect to probe deferral. Not only does

Re: [PATCH v2] drm/msm/dp: add atomic_check to bridge ops

2022-09-12 Thread Abhinav Kumar
On 9/9/2022 10:16 AM, Kuogee Hsieh wrote: DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space display manager issue an extra screen update

[Bug 213145] AMDGPU resets, timesout and crashes after "*ERROR* Waiting for fences timed out!"

2022-09-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213145 nvaert1986 (nvaert1...@hotmail.com) changed: What|Removed |Added CC|

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Andi Shyti
Hi Lucas, On Mon, Sep 12, 2022 at 09:19:38AM -0700, Lucas De Marchi wrote: > Support for reading the fuses to check what are the Link Copy engines > was added in commit ad5f74f34201 ("drm/i915/pvc: read fuses for link > copy engines"). However they were added unconditionally because the > FUSE3

Re: [Intel-gfx] [PATCH] drm/i915: Fix display problems after resume

2022-09-12 Thread Ville Syrjälä
On Mon, Sep 12, 2022 at 02:48:54PM +0200, Thomas Hellström wrote: > On Mon, 2022-09-12 at 15:43 +0300, Ville Syrjälä wrote: > > On Mon, Sep 12, 2022 at 02:19:57PM +0200, Thomas Hellström wrote: > > > Commit 39a2bd34c933 ("drm/i915: Use the vma resource as argument > > > for gtt > > > binding /

Re: [PATCH v3 19/37] drm/i915: stop using kernel-doc markups for something else

2022-09-12 Thread Mauro Carvalho Chehab
Hi Matt, Em Mon, 12 Sep 2022 08:09:57 -0700 Matt Roper escreveu: > > --- a/drivers/gpu/drm/i915/gt/intel_context_types.h > > +++ b/drivers/gpu/drm/i915/gt/intel_context_types.h > > Several of the comments in this file do appear to be kerneldoc (in fact > kerneldoc that was specifically

[PATCH] drm/panfrost: Give name to anonymous coredump object union

2022-09-12 Thread Adrián Larumbe
Building Mesa's Perfetto requires including the panfrost drm uAPI header in C++ code, but the C++ compiler requires anonymous unions to have only public non-static data members. Commit 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump") introduces one such union, breaking the Mesa build.

[PATCH v5 0/3] cleared DP_DOWNSPREAD_CTRL register

2022-09-12 Thread Kuogee Hsieh
cleared DP_DOWNSPREAD_CTRL register before start link training Kuogee Hsieh (3): drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training drm/msm/dp: replace variable err with len at dp_aux_link_power_up() drm/msm/dp: retry 3 times if set sink to D0 poweer state failed

[PATCH v5 3/3] drm/msm/dp: retry 3 times if set sink to D0 poweer state failed

2022-09-12 Thread Kuogee Hsieh
Bring sink out of D3 (power down) mode into D0 (normal operation) mode by setting DP_SET_POWER_D0 bit to DP_SET_POWER dpcd register. This patch will retry 3 times if written to DP_SET_POWER register failed. Changes in v5: -- split into two patches Signed-off-by: Kuogee Hsieh ---

Re: [PATCH] drm: Fix EDID firmware load on resume

2022-09-12 Thread Matthieu CHARETTE
Hi, Sorry for late reply. How do you propose to go then? Can we still use a persistent platform device to load the firmware and cache it? But, in this case the system will still crash in case the user change drm.edid_firmware then, without replugging the device, he suspends and resumes the

[PATCH v5 2/3] drm/msm/dp: replace variable err with len at dp_aux_link_power_up()

2022-09-12 Thread Kuogee Hsieh
drm_dp_dpcd_readb() will return 1 to indicate one byte had been read successfully. This patch replace variable "err" with "len" have more correct meaning. changes in v5: -- split into 3 patches Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_link.c | 14 +++--- 1 file

[PATCH v5 1/3] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-12 Thread Kuogee Hsieh
DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch will enforce this rule by always cleared DOWNSPREAD_CTRL register to 0 before start link training. At rare case that DP MSA timing parameters may be mis-interpreted by the sink which

[PATCH v1 1/1] drm/i915: Skip applying copy engine fuses

2022-09-12 Thread Lucas De Marchi
Support for reading the fuses to check what are the Link Copy engines was added in commit ad5f74f34201 ("drm/i915/pvc: read fuses for link copy engines"). However they were added unconditionally because the FUSE3 register is present since graphics version 10. However the bitfield with meml3 fuses

[PATCH v1 0/1] drm/i915: Copy engine fuses future-proofing

2022-09-12 Thread Lucas De Marchi
: 088771790e5d121c70c358468abbebb4710eb02f change-id: 20220912-copy-engine-526db816b088 Best regards, -- Lucas De Marchi

Re: [Intel-gfx] [PATCH v2 0/2] drm/i915: Media fuses future-proofing

2022-09-12 Thread Lucas De Marchi
On Fri, Sep 09, 2022 at 04:18:14PM -0700, Lucas De Marchi wrote: Update fuse handling for media to future-proof it. Signed-off-by: Lucas De Marchi Thanks Matt Roper and Andrzej for the review. Applied. Lucas De Marchi

[PATCH v3 8/8] Documentation/gpu: Add Display Core Unit Test documentation

2022-09-12 Thread Maíra Canal
Explain how to run the KUnit tests present in the AMDGPU's Display Core and clarify which architectures and tools can be used to run the tests. Moreover, explains how to add new tests to the existing tests. Signed-off-by: Maíra Canal --- .../gpu/amdgpu/display/display-test.rst | 88

[PATCH v3 7/8] drm/amd/display: Introduce KUnit tests to dc_dmub_srv library

2022-09-12 Thread Maíra Canal
Add unit test to the SubVP feature in order to avoid possible regressions and assure the code robustness. Signed-off-by: Maíra Canal --- drivers/gpu/drm/amd/display/Kconfig | 13 + drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 + .../gpu/drm/amd/display/tests/.kunitconfig|

[PATCH v3 5/8] drm/amd/display: Introduce KUnit to dcn20/display_mode_vba_20 library

2022-09-12 Thread Maíra Canal
The display_mode_vba_20 deals with hundreds of display parameters for the DCN20 and sometimes does it in odd ways. The addition of unit tests intends to assure the quality of the code delivered by HW engineers and, also make it possible to refactor the code decreasing concerns about adding bugs to

[PATCH v3 6/8] drm/amd/display: Introduce KUnit tests for dcn20_fpu

2022-09-12 Thread Maíra Canal
From: Magali Lemes This commit adds unit tests to the functions dcn20_cap_soc_clocks and dcn21_update_bw_bounding_box from dcn20/dcn20_fpu. Signed-off-by: Magali Lemes Signed-off-by: Maíra Canal --- drivers/gpu/drm/amd/display/tests/Makefile| 3 +-

[PATCH v3 4/8] drm/amd/display: Introduce KUnit tests to the display_mode_vba library

2022-09-12 Thread Maíra Canal
The display_mode_vba library deals with hundreds of display parameters and sometimes does it in odd ways. The addition of unit tests intends to assure the quality of the code delivered by HW engineers and, also make it possible to refactor the code decreasing concerns about adding bugs to the

[PATCH v3 3/8] drm/amd/display: Introduce KUnit tests to display_rq_dlg_calc_20

2022-09-12 Thread Maíra Canal
From: Isabella Basso This adds tests to the bit encoding format verification functions on the file. They're meant to be simpler so as to provide a proof of concept on testing DML code. Signed-off-by: Isabella Basso Signed-off-by: Maíra Canal --- drivers/gpu/drm/amd/display/Kconfig

[PATCH v3 2/8] drm/amd/display: Introduce KUnit tests to the bw_fixed library

2022-09-12 Thread Maíra Canal
KUnit unifies the test structure and provides helper tools that simplify the development of tests. Basic use case allows running tests as regular processes, which makes easier to run unit tests on a development machine and to integrate the tests in a CI system. This commit introduces a unit test

[PATCH v3 1/8] drm/amd/display: Introduce KUnit tests for fixed31_32 library

2022-09-12 Thread Maíra Canal
From: Tales Aparecida The fixed31_32 library performs a lot of the mathematical operations involving fixed-point arithmetic and the conversion of integers to fixed-point representation. This unit tests intend to assure the proper functioning of the basic mathematical operations of fixed-point

[PATCH v3 0/8] drm/amd/display: Introduce KUnit to Display Mode Library

2022-09-12 Thread Maíra Canal
Hello, This series is version 3 of the introduction of unit testing to the AMDPGU driver [1]. Our main goal is to bring unit testing to the AMD display driver; in particular, we'll focus on the Display Mode Library (DML) for DCN2.0, DMUB, and some of the DCE functions. This implementation

[PATCH 3/7] drm/msm/dp: fix IRQ lifetime

2022-09-12 Thread Johan Hovold
Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This is specifically true for the DP IRQ, which will otherwise remain requested so that the

[PATCH 7/7] drm/msm: drop modeset sanity checks

2022-09-12 Thread Johan Hovold
Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Signed-off-by: Johan Hovold --- drivers/gpu/drm/msm/dp/dp_display.c | 7 +-- drivers/gpu/drm/msm/dsi/dsi.c | 7 +-- 2 files changed, 2 insertions(+), 12

[PATCH 2/7] drm/msm: fix memory corruption with too many bridges

2022-09-12 Thread Johan Hovold
Add the missing sanity checks on the bridge counter to avoid corrupting data beyond the fixed-sized bridge array in case there are ever more than eight bridges. a3376e3ec81c ("drm/msm: convert to drm_bridge") ab5b0107ccf3 ("drm/msm: Initial add eDP support in msm drm driver (v5)") a689554ba6ed

[PATCH 1/7] drm/msm: fix use-after-free on probe deferral

2022-09-12 Thread Johan Hovold
The bridge counter was never reset when tearing down the DRM device so that stale pointers to deallocated structures would be accessed on the next tear down (e.g. after a second late bind deferral). Given enough bridges and a few probe deferrals this could currently also lead to data beyond the

[PATCH 5/7] drm/msm/dp: fix bridge lifetime

2022-09-12 Thread Johan Hovold
Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This can lead resource leaks or failure to bind the aggregate device when binding is later

[PATCH 6/7] drm/msm/hdmi: fix IRQ lifetime

2022-09-12 Thread Johan Hovold
Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred. This is specifically true for the HDMI IRQ, which will otherwise remain requested so that the

  1   2   >