RE: [PATCH 00/23] USB4 DP tunneling

2021-10-04 Thread Lin, Wayne
[Public] > -Original Message- > From: Wentland, Harry > Sent: Monday, October 4, 2021 10:48 PM > To: Lin, Wayne ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Kazlauskas, Nicholas > ; Siqueira, Rodrigo > ; Wang, Chao-kai (Stylon) ; > Shih, Jude ; Kizito, Jimmy > ; Somasundar

Re: [PATCH 3/3] drm/amd/pm: explicitly initialize cached power limits in smu struct

2021-10-04 Thread Lazar, Lijo
On 10/5/2021 10:34 AM, Powell, Darren wrote: [AMD Official Use Only] I'm just looking to clarify this code. The macro eventually expands to look like this    if ((smu)->ppt_funcs)    {       if ((smu)->ppt_funcs->get_power_limit)           (smu)->ppt_funcs->get_power_limit(smu,      

Re: [PATCH 3/3] drm/amd/pm: explicitly initialize cached power limits in smu struct

2021-10-04 Thread Powell, Darren
[AMD Official Use Only] I'm just looking to clarify this code. The macro eventually expands to look like this if ((smu)->ppt_funcs) { if ((smu)->ppt_funcs->get_power_limit) (smu)->ppt_funcs->get_power_limit(smu, &smu->current_powe

Re: [PATCH] drm/amdgpu/amdgpu_smu: Fix IP version checking in smu_set_funcs()

2021-10-04 Thread Rodrigo Siqueira
On 10/04, Alex Deucher wrote: > Was missing the IP version check for green sardine. > > Fixes: db95b2bd598d1a ("drm/amdgpu/amdgpu_smu: convert to IP version > checking") > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH] drm/amdgpu/amdgpu_smu: fix IP version check in smu_late_init()

2021-10-04 Thread Rodrigo Siqueira
On 10/04, Alex Deucher wrote: > MP1 IP version is different on newer silicon revisions. Check > for both revisions. > > Fixes: db95b2bd598d1a ("drm/amdgpu/amdgpu_smu: convert to IP version > checking") > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ++- > 1

[PATCH] drm/amdgpu/amdgpu_smu: Fix IP version checking in smu_set_funcs()

2021-10-04 Thread Alex Deucher
Was missing the IP version check for green sardine. Fixes: db95b2bd598d1a ("drm/amdgpu/amdgpu_smu: convert to IP version checking") Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_sm

[PATCH] drm/amdgpu/amdgpu_smu: fix IP version check in smu_late_init()

2021-10-04 Thread Alex Deucher
MP1 IP version is different on newer silicon revisions. Check for both revisions. Fixes: db95b2bd598d1a ("drm/amdgpu/amdgpu_smu: convert to IP version checking") Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

Re: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init

2021-10-04 Thread Zhu, James
[AMD Official Use Only] Hi Flelix, I have tested YiFan's patch and pco s3 test can pass. The original s3 issue always occurred on resume, And YiFan's patches are only related to initialization. Hi YiFan, Reviewed-by: James Zhu for the series Tested-by: James Zhu for the series Thanks & B

Re: [PATCH] drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume

2021-10-04 Thread Andrey Grodzovsky
On 2021-10-02 11:18 a.m., Guchun Chen wrote: In current code, when a PCI error state pci_channel_io_normal is detectd, it will report PCI_ERS_RESULT_CAN_RECOVER status to PCI driver, and PCI driver will continue the execution of PCI resume callback report_resume by pci_walk_bridge, and the call

Re: Lockdep spalt on killing a processes

2021-10-04 Thread Andrey Grodzovsky
I see my confusion, we hang all unsubmitted jobs on the last submitted to HW job. Yea, in this case indeed rescheduling to a different thread context will avoid the splat but the schedule work cannot be done for each dependency signalling but rather they way we do for ttm_bo_delayed_delete with

Re: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init

2021-10-04 Thread Felix Kuehling
I'm trying to understand what the end result is after James' and your patches. If I'm reading it correctly, we now initialize IOMMUv2 after kfd_device_init during initialization, but before kfd_device_init during resume from S3. Is  that the correct understanding? My concern is, that we may run in

Re: [PATCH 00/23] USB4 DP tunneling

2021-10-04 Thread Harry Wentland
On 2021-10-04 10:40, Wayne Lin wrote: > These series patches are for supporting USB4 DP tunneling feature. > Can you provide a description (with or without diagrams) of what DP4 tunneling is and some of the key parts of how it works? Does this patchset have dependencies on patches in the USB

[PATCH 23/23] drm/amd/display: USB4 bring up set correct address

2021-10-04 Thread Wayne Lin
From: Jude Shih [Why] YELLOW_CARP_B0 address was not correct [How] Set YELLOW_CARP_B0 to 0x1A. Reviewed-by: Nicholas Kazlauskas Acked-by: Wayne Lin Signed-off-by: Jude Shih --- drivers/gpu/drm/amd/display/include/dal_asic_id.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 22/23] drm/amd/display: Fix USB4 Aux via DMUB terminate unexpectedly

2021-10-04 Thread Wayne Lin
From: Jude Shih [Why] Condition variable sometimes terminated unexpectedly [How] Use wait_for_completion_timeout to avoid unexpected termination of CV Reviewed-by: Nicholas Kazlauskas Acked-by: Wayne Lin Signed-off-by: Jude Shih --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-

[PATCH 21/23] drm/amd/display: Deadlock/HPD Status/Crash Bug Fix

2021-10-04 Thread Wayne Lin
From: Jude Shih [why] 1. HPD callback function has deadlock problem 2. HPD status is not assigned 3. There is crash due to null pointer 4. link_enc is NULL in DPIA case [How] 1. Fix deadlock problem by moving it out of the drm_modeset_lock 2. Assign HPD status from the notify of outbox fro

[PATCH 20/23] drm/amd/display: Fix for access for ddc pin and aux engine

2021-10-04 Thread Wayne Lin
From: Meenakshikumar Somasundaram [Why & How] Add codes for commit "b693dfe24d61 drm/amd/display: Fix for null pointer access for ddc pin and aux engine" to take USB4 feature into account. Reviewed-by: Jimmy Kizito Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Meenakshikuma

[PATCH 19/23] drm/amd/display: Add debug flags for USB4 DP link training

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why & How] Additional debug flags that can be useful for testing USB4 DP link training. Add flags: - 0x2 : Forces USB4 DP link to non-LTTPR mode - 0x4 : Extends status read intervals to about 60s. Reviewed-by: Meenakshikumar Somasundaram Reviewed-by: Jun Lei Acked-by: Wayn

[PATCH 18/23] drm/amd/display: Fix DIG_HPD_SELECT for USB4 display endpoints

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] DIB_BE_CNTL.DIG_HPD_SELECT selects the HPD block being used by the display endpoint assigned to DIG. In the case of USB4 display endpoints, no physical HPD block is assigned. [How] Setting DIB_BE_CNTL.DIG_HPD_SELECT to 5 indicates that no HPD is assigned to a display end

[PATCH 17/23] drm/amd/display: Support for SET_CONFIG processing with DMUB

2021-10-04 Thread Wayne Lin
From: Jude Shih [Why] To process SET_CONFIG transactions with DMUB using inbox1 and outbox1 mail boxes. [How] 1) DMUB posts SET_CONFIG reply as an Outbox1 message of type DMUB_OUT_CMD__SET_CONFIG_REPLY. 2) The dmub async to sync mechanism for AUX is modified to accommodate SET_CONFIG comma

[PATCH 16/23] drm/amd/display: Add dpia debug options

2021-10-04 Thread Wayne Lin
From: Meenakshikumar Somasundaram [Why & How] To add support for dpia debug options. Reviewed-by: Jimmy Kizito Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Meenakshikumar Somasundaram --- drivers/gpu/drm/amd/display/dc/dc.h | 9 + drivers/gpu/dr

[PATCH 15/23] drm/amd/display: Read USB4 DP tunneling data from DPCD

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] We requires information from DPCD in order to identify USB4 DP tunneling targets. [How] Add USB4 DP tunneling fields to DPCD struct and populate these fields during sink detection. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by:

[PATCH 14/23] drm/amd/display: Support for SET_CONFIG processing with DMUB

2021-10-04 Thread Wayne Lin
From: Meenakshikumar Somasundaram [Why] To process SET_CONFIG transactions with DMUB using inbox1 and outbox1 mail boxes. [How] 1) Added inbox1 DPIA command subtype DMUB_CMD__DPIA_SET_CONFIG_ACCESS to issue SET_CONFIG command to DMUB in dc_process_dmub_set_config_async(). DMUB processes th

[PATCH 13/23] drm/amd/display: Implement end of training for hop in DPIA display path

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why & How] Clear training pattern sequence for hop in display path once clock recovery and equalization phases of DP tunnel link training completed. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- .../gpu/drm/amd/dis

[PATCH 12/23] drm/amd/display: Implement DPIA equalisation phase

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] Equalisation is the mandatory second phase of DisplayPort link training over a USB4 DP tunnel. [How] Implement equalisation phase for DP tunneled over USB4 in DPIA training module. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by:

[PATCH 11/23] drm/amd/display: Implement DPIA clock recovery phase

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] Clock recovery is the mandatory first phase of DP link training. [How] - Implement clock recovery phase in DPIA training module. - Add helper functions for building SET_CONFIG messages. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off

[PATCH 10/23] drm/amd/display: Implement DPIA link configuration

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] Training settings need to be applied to DPIA link at start of each training loop. Note: FEC readiness should be configured before link training while FEC enablement should be configured once training is complete. [How] - Implement DPIA link configuration function. - Acco

[PATCH 09/23] drm/amd/display: Implement DPIA training loop

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why] Training of DPIA link differs enough from that of conventional DP link to warrant a separate implementation. [How] - Implement top-level of DPIA training loop. - Make functions shared between DP and DPIA link training "public". Reviewed-by: Jun Lei Acked-by: Wayne Lin

[PATCH 08/23] drm/amd/display: Support USB4 when DP link training

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why & How] Add codes for commit "822536713066 drm/amd/display: Add fallback and abort paths for DP link training" to support USB4 DP tunneling feature Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/a

[PATCH 07/23] drm/amd/display: Update training parameters for DPIA links

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [why & how] Add codes for commit "ede4f6dac99e drm/amd/display: Update setting of DP training parameters." to support USB4 DP tunneling feature Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/amd/displ

[PATCH 06/23] drm/amd/display: Support DP tunneling when DPRX detection

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [why & how] Add codes for commit "99732e52e7f8 drm/amd/display: Update DPRX detection" to support USB4 DP tunneling feature Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/amd/display/dc/Makefile

[PATCH 05/23] drm/amd/display: Support USB4 for display endpoint control path.

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [why & how] Add codes for commit "79ed7354d70f drm/amd/display: Update display endpoint control path" to support USB4 DP tunneling feature. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- .../gpu/drm/amd/display/dc/co

[PATCH 04/23] drm/amd/display: Support USB4 dynamic link encoder selection.

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [why & how] Add codes for commit "f42ef862fb1f drm/amd/display: Add dynamic link encoder selection" to support USB4 DP tunneling feature. Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/amd/display/dc/

[PATCH 03/23] drm/amd/display: Support for DMUB HPD and HPD RX interrupt handling

2021-10-04 Thread Wayne Lin
From: Meenakshikumar Somasundaram [WHY] To add support for HPD & HPD RX interrupt handling for USB4 DPIA in YELLOW_CARP_B0. USB4 DPIA HPD & HPD RX interrupts are issued from DMUB to driver as a outbox1 message. [HOW] 1) Created get_link_index_from_dpia_port_index() to retrieve link index from

[PATCH 02/23] drm/amd/display: USB4 DPIA enumeration and AUX Tunneling

2021-10-04 Thread Wayne Lin
From: Meenakshikumar Somasundaram [WHY] To enable dc links for USB4 DPIA ports and AUX command tunneling for YELLOW_CARP_B0. [HOW] 1) Created dc links for all USB4 DPIA ports in create_links(). dc_link_construct() implementation is split for legacy DDC and DPIAs. As usb4 has no ddc, ddc->d

[PATCH 01/23] drm/amd/display: Update link encoder object creation.

2021-10-04 Thread Wayne Lin
From: Jimmy Kizito [Why & How] Add codes for commit "e1f4328f22c0 drm/amd/display: Update link encoder object creation" to support USB4 DP tunneling feature Reviewed-by: Jun Lei Acked-by: Wayne Lin Acked-by: Nicholas Kazlauskas Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/amd/display/dc/

[PATCH 00/23] USB4 DP tunneling

2021-10-04 Thread Wayne Lin
These series patches are for supporting USB4 DP tunneling feature. --- Jimmy Kizito (14): drm/amd/display: Update link encoder object creation. drm/amd/display: Support USB4 dynamic link encoder selection. drm/amd/display: Support USB4 for display endpoint control path. drm/amd/display: S

Re: [PATCH 2/2] amd/amdgpu_dm: Verify Gamma and Degamma LUT sizes using DRM Core check

2021-10-04 Thread Harry Wentland
On 2021-10-01 15:56, Sean Paul wrote: > On Wed, Sep 29, 2021 at 03:39:26PM -0400, Mark Yacoub wrote: >> From: Mark Yacoub >> >> [Why] >> drm_atomic_helper_check_crtc now verifies both legacy and non-legacy LUT >> sizes. There is no need to check it within amdgpu_dm_atomic_check. >> >> [How] >>

Re: [PATCH] drm/amdgpu: revert "Add autodump debugfs node for gpu reset v8"

2021-10-04 Thread Alex Deucher
Acked-by: Alex Deucher On Mon, Oct 4, 2021 at 4:31 AM Christian König wrote: > > Ping? Alex any objections to this? > > Otherwise I'm going to push it with Nirmoy's acked-by. > > Christian. > > Am 30.09.21 um 11:26 schrieb Christian König: > > This reverts commit 728e7e0cd61899208e924472b9e641db

RE: [PATCH 00/14] DC Patches October 1, 2021

2021-10-04 Thread Wheeler, Daniel
[Public] Hi all,   This week this patchset was tested on the following systems:   HP Envy 360, with Ryzen 5 4500U, with the following display types: eDP 1080p 60hz, 4k 60hz (via USB-C to DP/HDMI), 1440p 144hz (via USB-C to DP/HDMI), 1680*1050 60hz (via USB-C to DP and then DP to DVI/VGA)   AMD

Re: [PATCH 3/3] drm/amd/pm: explicitly initialize cached power limits in smu struct

2021-10-04 Thread Lazar, Lijo
On 10/3/2021 10:16 AM, Darren Powell wrote: Code appears to initialize values but macro will exit without error or initializing value if function is not implmented Signed-off-by: Darren Powell --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 4 1 file changed, 4 insertions(+) diff --

Re: [PATCH 1/3] amdgpu/pm: add limit_type to (pptable_funcs)->set_power_limit signature

2021-10-04 Thread Lazar, Lijo
On 10/3/2021 10:16 AM, Darren Powell wrote: modify (pptable_funcs)->set_power_limit signature modify smu11 set_power_limit signature (arcturus, navi10, sienna_cichlid) modify smu13 set_power_limit signature (aldabaran) modify vangogh_set_power_limit signature (vangogh) === Test === su

RE: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init

2021-10-04 Thread Zhang, Yifan
[AMD Official Use Only] Hi Felix, After sync w/ James, we agree that this patch series could fix both our problems, and he verified this patch series will not cause regression of his previous issue. Do you have more comments regarding this patch series ? Thanks. BRs, Yifan From: Zhu, James S

Re: [Intel-gfx] [PATCH v2 00/17] drm: cleanup: Use DRM_MODESET_LOCK_ALL_* helpers where possible

2021-10-04 Thread Jani Nikula
On Mon, 04 Oct 2021, Ville Syrjälä wrote: > On Sun, Oct 03, 2021 at 12:32:14AM +0200, Fernando Ramos wrote: >> On 21/10/02 09:13AM, Fernando Ramos wrote: >> > >> > Sean, could you revert the whole patch series? I'll have a deeper look >> > into the >> > patch set and come up with a v3 where all

Re: [PATCH] drm/amdgpu: revert "Add autodump debugfs node for gpu reset v8"

2021-10-04 Thread Christian König
Ping? Alex any objections to this? Otherwise I'm going to push it with Nirmoy's acked-by. Christian. Am 30.09.21 um 11:26 schrieb Christian König: This reverts commit 728e7e0cd61899208e924472b9e641dbeb0775c4. Further discussion reveals that this feature is severely broken and needs to be reve

Re: [PATCH] drm/amdgpu/display: fix dependencies for DRM_AMD_DC_SI

2021-10-04 Thread Christian König
Am 01.10.21 um 21:48 schrieb Alex Deucher: Depends on DRM_AMDGPU_SI and DRM_AMD_DC Signed-off-by: Alex Deucher Reviewed-by: Christian König --- drivers/gpu/drm/amd/display/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/dr

Re: [PATCH] drm/amdgpu/gmc9: convert to IP version checking

2021-10-04 Thread Christian König
Am 01.10.21 um 21:48 schrieb Alex Deucher: Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 136 ++ 1 file changed, 71 insertions

Re: [Intel-gfx] [PATCH v2 00/17] drm: cleanup: Use DRM_MODESET_LOCK_ALL_* helpers where possible

2021-10-04 Thread Ville Syrjälä
On Sun, Oct 03, 2021 at 12:32:14AM +0200, Fernando Ramos wrote: > On 21/10/02 09:13AM, Fernando Ramos wrote: > > > > Sean, could you revert the whole patch series? I'll have a deeper look into > > the > > patch set and come up with a v3 where all these issues will be addressed. > > > > Hi Sean,

Re: Lockdep spalt on killing a processes

2021-10-04 Thread Christian König
The problem is a bit different. The callback is on the dependent fence, while we need to signal the scheduler fence. Daniel is right that this needs an irq_work struct to handle this properly. Christian. Am 01.10.21 um 17:10 schrieb Andrey Grodzovsky: From what I see here you supposed to hav

Re: [Intel-gfx] [PATCH v2 00/17] drm: cleanup: Use DRM_MODESET_LOCK_ALL_* helpers where possible

2021-10-04 Thread Ville Syrjälä
On Sat, Oct 02, 2021 at 07:28:02PM +0200, Fernando Ramos wrote: > On 21/10/02 09:13AM, Fernando Ramos wrote: > > On 21/10/02 05:30AM, Ville Syrjälä wrote: > > > On Sat, Oct 02, 2021 at 01:05:47AM +0300, Ville Syrjälä wrote: > > > > On Fri, Oct 01, 2021 at 04:48:15PM -0400, Sean Paul wrote: > > > >