[PATCH] drm/amdgpu: Fix a a typo in a comment

2021-06-07 Thread Christophe JAILLET
s/than/then/ Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 89ebbf363e27..1476236f5c7c 100644 --- a/drivers/gpu

[PATCH] drm/amd/display: remove no need variable

2021-06-07 Thread Bernard Zhao
remove no need variable, just return the DC_OK Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn1

[PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Clements, John
[AMD Official Use Only - Internal Distribution Only] Submitting patch to disable PSP FW attestation support on APU Thank you, John Clements 0001-drm-amdgpu-Update-psp-fw-attestation-support-list.patch Description: 0001-drm-amdgpu-Update-psp-fw-attestation-support-list.patch

RE: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
Hi John, I think it's better to replace if (adev->flags & AMD_IS_APU) with if (adev->asic_type >= CHIP_VANGOGH) As you say, rembrandt should support this feature. BR, Changfeng. From: Clements, John Sent: Monday, June 7, 2021 11:13 AM To: amd-gfx@lists.freedesktop.org Cc: Zhu, Changfeng Subje

RE: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
if (adev->asic_type == CHIP_VANGOGH) BR, Changfeng. From: amd-gfx On Behalf Of Zhu, Changfeng Sent: Monday, June 7, 2021 11:24 AM To: Clements, John ; amd-gfx@lists.freedesktop.org Subject: RE: [PATCH] drm/amdgpu: Update psp fw attestation support list Hi John, I think it's better to replace

Recall: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
Zhu, Changfeng would like to recall the message, "[PATCH] drm/amdgpu: Update psp fw attestation support list". ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Recall: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
Zhu, Changfeng would like to recall the message, "[PATCH] drm/amdgpu: Update psp fw attestation support list". ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: [PATCH 2/4] drm/uAPI: Add "active bpc" as feedback channel for "max bpc" drm property

2021-06-07 Thread Pekka Paalanen
On Fri, 4 Jun 2021 19:17:21 +0200 Werner Sembach wrote: > Add a new general drm property "active bpc" which can be used by graphic > drivers > to report the applied bit depth per pixel back to userspace. > > While "max bpc" can be used to change the color depth, there was no way to > check >

Re: [PATCH 2/4] drm/uAPI: Add "active bpc" as feedback channel for "max bpc" drm property

2021-06-07 Thread Werner Sembach
Am 07.06.21 um 09:40 schrieb Maxime Ripard: Hi, On Fri, Jun 04, 2021 at 07:17:21PM +0200, Werner Sembach wrote: Add a new general drm property "active bpc" which can be used by graphic drivers to report the applied bit depth per pixel back to userspace. Just a heads up, we'll need an open so

Re: New uAPI for color management proposal and feedback request

2021-06-07 Thread Pekka Paalanen
On Mon, 7 Jun 2021 09:48:05 +0200 Maxime Ripard wrote: > I've started to implement this for the raspberrypi some time ago. > > https://github.com/raspberrypi/linux/pull/4201 > > It's basically two properties: a bitmask of the available output pixel > encoding to report both what the display and

Recall: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
Zhu, Changfeng would like to recall the message, "[PATCH] drm/amdgpu: Update psp fw attestation support list". ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

RE: [PATCH] drm/amdgpu: Update psp fw attestation support list

2021-06-07 Thread Zhu, Changfeng
Hi John, As talked offline, the patch fine with apu at present. Reviewed-by: Changfeng BR, Changfeng. From: Clements, John Sent: Monday, June 7, 2021 11:13 AM To: amd-gfx@lists.freedesktop.org Cc: Zhu, Changfeng Subject: [PATCH] drm/amdgpu: Update psp fw attestation support list [AMD Offi

Re: [PATCH 2/4] drm/uAPI: Add "active bpc" as feedback channel for "max bpc" drm property

2021-06-07 Thread Werner Sembach
Am 07.06.21 um 09:52 schrieb Pekka Paalanen: On Fri, 4 Jun 2021 19:17:21 +0200 Werner Sembach wrote: Add a new general drm property "active bpc" which can be used by graphic drivers to report the applied bit depth per pixel back to userspace. While "max bpc" can be used to change the color

[PATCH] drm/amdgpu: Fixing "Indirect register access for Navi12 sriov" for vega10

2021-06-07 Thread Peng Ju Zhou
The NV12 and VEGA10 share the same interface W/RREG32_SOC15*, the callback functions in these macros may not be defined, so NULL pointer must be checked but not in macro __WREG32_SOC15_RLC__, fixing the lock of NULL pointer check. Signed-off-by: Peng Ju Zhou --- drivers/gpu/drm/amd/amdgpu/gfx_v9

Re: [PATCH] drm/amdgpu: Fix a a typo in a comment

2021-06-07 Thread Christian König
Am 05.06.21 um 11:06 schrieb Christophe JAILLET: s/than/then/ Signed-off-by: Christophe JAILLET Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/

RE: [PATCH V2 3/5] drm/amdgpu: correct the audio function initial Dstate

2021-06-07 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Friday, June 4, 2021 8:24 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH V2 3/5] drm/amdgpu: correct the audio function initial > Dstate > > > > On 6/4/2021 3

[PATCH] drm/amd/amdgpu embed hw_fence into amdgpu_job

2021-06-07 Thread Jack Zhang
Why: Previously hw fence is alloced separately with job. It caused historical lifetime issues and corner cases. The ideal situation is to take fence to manage both job and fence's lifetime, and simplify the design of gpu-scheduler. How: We propose to embed hw_fence into amdgpu_job. 1. We cover the

RE: [PATCH V2 4/5] drm/amd/pm: clear the cached dpm feature status

2021-06-07 Thread Quan, Evan
[AMD Official Use Only] Hi Lijo, I got your concern. However, the problem is what amdgpu_smu.c can see is SMU_FEATURE_x_BIT(e.g. SMU_FEATURE_BACO_BIT) related. While the bit mask stored in feature->enabled is FEATURE_x_BIT(e.g. FEATURE_BACO_BIT which is asic specific) related. So, a SMU

RE: [PATCH V2 4/5] drm/amd/pm: clear the cached dpm feature status

2021-06-07 Thread Lazar, Lijo
[Public] What about separating to smu_cmn_utils.c/smu_utils.c or similar which is meant for software based common/util functions? In general, it will have sw based common funcs (not ASIC specific) and may be used outside (for ex: in amdgpu_smu.c). smu_cmn continues to have the hw based common/

RE: [PATCH 2/2] drm/amd/amdgpu: add instance_number check in amdgpu_discovery_get_ip_version

2021-06-07 Thread Zhou, Peng Ju
[AMD Official Use Only] Hi Alex The following patch series were ported from amd-staging-dkms to fix VCN IB test fail. Can you help to review it? [PATCH 1/2] drm/amd/amdgpu: Use IP discovery data to determine VCN enablement instead of MMSCH [PATCH 2/2] drm/amd/amdgpu: add instance_number check i

RE: [PATCH V2 3/5] drm/amdgpu: correct the audio function initial Dstate

2021-06-07 Thread Lazar, Lijo
[Public] Thanks, that explains. You may modify the comment to something like " amdgpu_get_audio_func() makes a PMFW-aware D-state transition to update audio dev's D-state in PMFW" (now it gives the impression that function makes audio dev to stay in D0 state). > > +* Via amdgpu_g

RE: [PATCH V2 3/5] drm/amdgpu: correct the audio function initial Dstate

2021-06-07 Thread Quan, Evan
[Public] > -Original Message- > From: Lazar, Lijo > Sent: Monday, June 7, 2021 4:19 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: RE: [PATCH V2 3/5] drm/amdgpu: correct the audio function initial > Dstate > > [Public] > > Thanks, that explain

RE: [PATCH] drm/amdgpu: Fixing "Indirect register access for Navi12 sriov" for vega10

2021-06-07 Thread Deng, Emily
[AMD Official Use Only] Reviewed-by: Emily Deng >-Original Message- >From: amd-gfx On Behalf Of Peng Ju >Zhou >Sent: Monday, June 7, 2021 1:55 PM >To: amd-gfx@lists.freedesktop.org >Subject: [PATCH] drm/amdgpu: Fixing "Indirect register access for Navi12 sriov" >for vega10 > >The NV12 a

Re: [PATCH] drm/amdgpu: fix VM handling for GART allocations

2021-06-07 Thread Das, Nirmoy
Reviewed-by: Nirmoy Das On 6/5/2021 4:51 PM, Christian König wrote: For GTT allocations with a GART address the res contains the VMID0 addresses and can't be used for VM handling. So ignore the res when the pages array is given or we fill the page tables with nonsense. Signed-off-by: Christia

[PATCH][next] drm/amd/display: Fix two spelling mistakes, clean wide lines

2021-06-07 Thread Colin King
From: Colin Ian King There are two spelling mistakes in dml_print messages, fix these and clear up checkpatch warning on overly wide line length. Signed-off-by: Colin Ian King --- .../drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletio

[PATCH] drm/amd/display: Fix duplicate included dce110_hw_sequencer.h

2021-06-07 Thread Jiapeng Chong
Clean up the following includecheck warning: ./drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c: dce110_hw_sequencer.h is included more than once. No functional change. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequenc

Re: New uAPI for color management proposal and feedback request

2021-06-07 Thread Maxime Ripard
Hi, On Wed, May 12, 2021 at 02:06:56PM +0200, Werner Sembach wrote: > Hello, > > In addition to the existing "max bpc", and "Broadcast RGB/output_csc" > drm properties I propose 4 new properties: "preferred pixel encoding", > "active color depth", "active color range", and "active pixel > encodin

Re: [PATCH 2/4] drm/uAPI: Add "active bpc" as feedback channel for "max bpc" drm property

2021-06-07 Thread Maxime Ripard
Hi, On Fri, Jun 04, 2021 at 07:17:21PM +0200, Werner Sembach wrote: > Add a new general drm property "active bpc" which can be used by graphic > drivers > to report the applied bit depth per pixel back to userspace. Just a heads up, we'll need an open source project that has accepted it before m

RE: [PATCH v3 0/6] Modify smu_get_power_limit to implement Powerplay API

2021-06-07 Thread Lazar, Lijo
[Public] Series is Reviewed-by: Lijo Lazar -Original Message- From: Powell, Darren Sent: Sunday, June 6, 2021 10:30 AM To: amd-gfx@lists.freedesktop.org Cc: Powell, Darren Subject: [PATCH v3 0/6] Modify smu_get_power_limit to implement Powerplay API === Description === modify smu_g

Re: [PATCH] drm/radeon: Always call radeon_suspend_kms() in radeon_pci_shutdown()

2021-06-07 Thread Alex Deucher
On Mon, Jun 7, 2021 at 8:30 AM Christian König wrote: > > Am 07.06.21 um 14:27 schrieb Tiezhu Yang: > > radeon_suspend_kms() puts the hw in the suspend state (all asics), > > it should always call radeon_suspend_kms() in radeon_pci_shutdown(), > > this is a normal cleanup process to avoid more ope

Re: [PATCH] drm/amdgpu: Fix warning of Function parameter or member not described

2021-06-07 Thread Christian König
Am 07.06.21 um 16:21 schrieb Eric Huang: Add the parameter table_freed description on function description. Signed-off-by: Eric Huang Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/

Re: [PATCH] drm/amd/display: Verify Gamma & Degamma LUT sizes in amdgpu_dm_atomic_check

2021-06-07 Thread Mark Yacoub
On Fri, Jun 4, 2021 at 4:17 PM Harry Wentland wrote: > > > > On 2021-06-04 1:01 p.m., Mark Yacoub wrote: > > From: Mark Yacoub > > > > For each CRTC state, check the size of Gamma and Degamma LUTs so > > unexpected and larger sizes wouldn't slip through. > > > > TEST: IGT:kms_color::pipe-invalid

[PATCH AUTOSEL 5.12 42/49] drm/amdgpu: refine amdgpu_fru_get_product_info

2021-06-07 Thread Sasha Levin
From: Jiansong Chen [ Upstream commit 5cfc912582e13b05d71fb7acc4ec69ddfa9af320 ] 1. eliminate potential array index out of bounds. 2. return meaningful value for failure. Signed-off-by: Jiansong Chen Reviewed-by: Jack Gui Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/d

[PATCH AUTOSEL 5.12 41/49] drm/amd/display: Allow bandwidth validation for 0 streams.

2021-06-07 Thread Sasha Levin
From: Bindu Ramamurthy [ Upstream commit ba8e59773ae59818695d1e20b8939282da80ec8c ] [Why] Bandwidth calculations are triggered for non zero streams, and in case of 0 streams, these calculations were skipped with pstate status not being updated. [How] As the pstate status is applicable for non z

[PATCH AUTOSEL 5.12 43/49] drm/amd/display: Fix overlay validation by considering cursors

2021-06-07 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit 33f409e60eb0c59a4d0d06a62ab4642a988e17f7 ] A few weeks ago, we saw a two cursor issue in a ChromeOS system. We fixed it in the commit: drm/amd/display: Fix two cursor duplication when using overlay (read the commit message for more details) After this

[PATCH AUTOSEL 5.12 44/49] drm/amd/display: Fix potential memory leak in DMUB hw_init

2021-06-07 Thread Sasha Levin
From: Roman Li [ Upstream commit c5699e2d863f58221044efdc3fa712dd32d55cde ] [Why] On resume we perform DMUB hw_init which allocates memory: dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc That results in memory leak in suspend/resume scenarios. [How] Allocate memory for the DC wrapper t

[PATCH AUTOSEL 5.12 45/49] drm/amd/amdgpu:save psp ring wptr to avoid attack

2021-06-07 Thread Sasha Levin
From: Victor Zhao [ Upstream commit 2370eba9f552eaae3d8aa1f70b8e9eec5c560f9e ] [Why] When some tools performing psp mailbox attack, the readback value of register can be a random value which may break psp. [How] Use a psp wptr cache machanism to aovid the change made by attack. v2: unify chang

[PATCH AUTOSEL 5.10 31/39] drm/amd/display: Allow bandwidth validation for 0 streams.

2021-06-07 Thread Sasha Levin
From: Bindu Ramamurthy [ Upstream commit ba8e59773ae59818695d1e20b8939282da80ec8c ] [Why] Bandwidth calculations are triggered for non zero streams, and in case of 0 streams, these calculations were skipped with pstate status not being updated. [How] As the pstate status is applicable for non z

[PATCH AUTOSEL 5.10 32/39] drm/amdgpu: refine amdgpu_fru_get_product_info

2021-06-07 Thread Sasha Levin
From: Jiansong Chen [ Upstream commit 5cfc912582e13b05d71fb7acc4ec69ddfa9af320 ] 1. eliminate potential array index out of bounds. 2. return meaningful value for failure. Signed-off-by: Jiansong Chen Reviewed-by: Jack Gui Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/d

[PATCH AUTOSEL 5.10 33/39] drm/amd/display: Fix overlay validation by considering cursors

2021-06-07 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit 33f409e60eb0c59a4d0d06a62ab4642a988e17f7 ] A few weeks ago, we saw a two cursor issue in a ChromeOS system. We fixed it in the commit: drm/amd/display: Fix two cursor duplication when using overlay (read the commit message for more details) After this

[PATCH AUTOSEL 5.10 34/39] drm/amd/display: Fix potential memory leak in DMUB hw_init

2021-06-07 Thread Sasha Levin
From: Roman Li [ Upstream commit c5699e2d863f58221044efdc3fa712dd32d55cde ] [Why] On resume we perform DMUB hw_init which allocates memory: dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc That results in memory leak in suspend/resume scenarios. [How] Allocate memory for the DC wrapper t

[PATCH AUTOSEL 5.10 35/39] drm/amd/amdgpu:save psp ring wptr to avoid attack

2021-06-07 Thread Sasha Levin
From: Victor Zhao [ Upstream commit 2370eba9f552eaae3d8aa1f70b8e9eec5c560f9e ] [Why] When some tools performing psp mailbox attack, the readback value of register can be a random value which may break psp. [How] Use a psp wptr cache machanism to aovid the change made by attack. v2: unify chang

[PATCH AUTOSEL 5.4 24/29] drm/amd/display: Allow bandwidth validation for 0 streams.

2021-06-07 Thread Sasha Levin
From: Bindu Ramamurthy [ Upstream commit ba8e59773ae59818695d1e20b8939282da80ec8c ] [Why] Bandwidth calculations are triggered for non zero streams, and in case of 0 streams, these calculations were skipped with pstate status not being updated. [How] As the pstate status is applicable for non z

[PATCH AUTOSEL 5.4 25/29] drm/amd/display: Fix overlay validation by considering cursors

2021-06-07 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit 33f409e60eb0c59a4d0d06a62ab4642a988e17f7 ] A few weeks ago, we saw a two cursor issue in a ChromeOS system. We fixed it in the commit: drm/amd/display: Fix two cursor duplication when using overlay (read the commit message for more details) After this

Re: [PATCH] drm/radeon: Always call radeon_suspend_kms() in radeon_pci_shutdown()

2021-06-07 Thread Christian König
Am 07.06.21 um 14:27 schrieb Tiezhu Yang: radeon_suspend_kms() puts the hw in the suspend state (all asics), it should always call radeon_suspend_kms() in radeon_pci_shutdown(), this is a normal cleanup process to avoid more operations on radeon, just remove #ifdef CONFIG_PPC64 and the related co

[PATCH] drm/amd/pm: fix warning reported by kernel test robot

2021-06-07 Thread Xiaomeng Hou
Kernel test robot throws warning -> >> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/yellow_carp_ppt.c:483:2: warning: variable 'member_type' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~ drivers/gpu/drm/amd/amdgpu/../pm/s

[PATCH 06/30] drm/amd/display: Refactor visual confirm

2021-06-07 Thread Stylon Wang
From: Wyatt Wood [Why + How] Visual confirm has no asic-specific logic, so we can refactor and unify these functions that are currently spread out across multiple dcn files. Add a new hw sequencer interface update_visual_confirm_color, and a new mpc function pointer set_bg_color. This will allow

[PATCH 07/30] drm/amd/display: add visual confirm colors to differentiate layer_index > 0

2021-06-07 Thread Stylon Wang
From: Evgenii Krasnikov [WHY] Currently there is no way to visually identify if there is one or more layers presented fullscreen on the display [HOW] Add new visual confirm colors in get_surface_visual_confirm_color for planes with layer_index > 0 Signed-off-by: Evgenii Krasnikov Reviewed-by:

[PATCH 28/30] drm/amd/display: Add swizzle visual confirm mode

2021-06-07 Thread Stylon Wang
From: Po-Ting Chen [Why] To support a new visual confirm mode: swizzle to show the specific color at the screen border according to different surface swizzle mode. Currently we only support the Linear mode with red color. Signed-off-by: Po-Ting Chen --- .../drm/amd/display/dc/core/dc_hw_sequen

Re: [PATCH] drm/amd/display: remove no need variable

2021-06-07 Thread Alex Deucher
On Sat, Jun 5, 2021 at 8:31 AM Bernard Zhao wrote: > > remove no need variable, just return the DC_OK > > Signed-off-by: Bernard Zhao Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git

Re: [PATCH] drm/amd/display: Fix duplicate included dce110_hw_sequencer.h

2021-06-07 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jun 7, 2021 at 6:27 AM Jiapeng Chong wrote: > > Clean up the following includecheck warning: > > ./drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c: > dce110_hw_sequencer.h is included more than once. > > No functional change. > > Reported-by: Abaci Robo

Re: [PATCH] drm/amdgpu: Fix a a typo in a comment

2021-06-07 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jun 7, 2021 at 6:46 AM Christian König wrote: > > Am 05.06.21 um 11:06 schrieb Christophe JAILLET: > > s/than/then/ > > > > Signed-off-by: Christophe JAILLET > > Acked-by: Christian König > > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- > > 1 file

Re: [PATCH][next] drm/amd/display: Fix two spelling mistakes, clean wide lines

2021-06-07 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jun 7, 2021 at 7:58 AM Colin King wrote: > > From: Colin Ian King > > There are two spelling mistakes in dml_print messages, fix these and > clear up checkpatch warning on overly wide line length. > > Signed-off-by: Colin Ian King > --- > .../drm/amd/display/dc/

Re: [PATCH] drm/amdkfd: remove duplicate include of kfd_svm.h

2021-06-07 Thread Felix Kuehling
Am 2021-06-04 um 10:54 p.m. schrieb Wan Jiabing: > kfd_svm.h is included duplicately in commit 42de677f7 > ("drm/amdkfd: register svm range"). > > After checking possible related header files, > remove the former one to make the code format more reasonable. > > Signed-off-by: Wan Jiabing Rev

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Christian König
That won't work either. We still need to initialize the control registers and tell the hardware that we have properly setup the ring buffers. Just add the error message to psp_reg_program() instead of duplicating that over and over again. Christian. Am 07.06.21 um 19:33 schrieb Khaire, Roh

[PATCH v5 3/9] drm/amd/pm: Add common throttler translation func

2021-06-07 Thread Graham Sider
Defines smu_cmn_get_indep_throttler_status which performs ASIC independent translation given a corresponding lookup table. Signed-off-by: Graham Sider --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 13 + drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h | 4 2 files changed, 17 insertions(+

[PATCH v5 1/9] drm/amd/pm: Add u64 throttler status field to gpu_metrics

2021-06-07 Thread Graham Sider
This patch set adds support for a new ASIC independant u64 throttler status field (indep_throttle_status). Piggybacks off the gpu_metrics_v1_3 bump and similarly bumps gpu_metrics_v2 version (to v2_2) to add field. Signed-off-by: Graham Sider --- .../gpu/drm/amd/include/kgd_pp_interface.h|

[PATCH v5 5/9] drm/amd/pm: Add navi1x throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for navi1x. Signed-off-by: Graham Sider --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/p

[PATCH v5 2/9] drm/amd/pm: Add ASIC independent throttle bits

2021-06-07 Thread Graham Sider
Add new defines for thermal throttle status bits which are ASIC independent. This bit field will be visible to userspace via gpu_metrics alongside the previous ASIC dependent bit fields. Seperated into four 16-bit types: power throttlers, current throttlers, temperature, other. Signed-off-by: Grah

[PATCH v5 4/9] drm/amd/pm: Add arcturus throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for arcturus. Signed-off-by: Graham Sider --- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 33 --- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c b/d

[PATCH v5 9/9] drm/amd/pm: Add aldebaran throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for aldebaran. Signed-off-by: Graham Sider --- .../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c| 27 +++ 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b

[PATCH v5 6/9] drm/amd/pm: Add sienna cichlid throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for sienna cichlid. Signed-off-by: Graham Sider --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 34 --- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichli

[PATCH v5 7/9] drm/amd/pm: Add vangogh throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for vangogh. Signed-off-by: Graham Sider --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 38 ++- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/dri

[PATCH v5 8/9] drm/amd/pm: Add renoir throttler translation

2021-06-07 Thread Graham Sider
Perform dependent to independent throttle status translation for renoir. Signed-off-by: Graham Sider --- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 29 +++ 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c b/drive

RE: [PATCH 4/5] drm/amdgpu: add psp microcode init for arcturus and aldebaran sriov vf

2021-06-07 Thread Zhang, Hawking
[AMD Official Use Only] You can call psp_init_ta_microcode directly in sriov vf case so you don't need to initialize unnecessary psp firmware structures. Regards, Hawking -Original Message- From: amd-gfx On Behalf Of Luo, Zhigang Sent: Thursday, June 3, 2021 23:32 To: Liu, Shaoyun ; am

RE: [PATCH 4/5] drm/amdgpu: add psp microcode init for arcturus and aldebaran sriov vf

2021-06-07 Thread Luo, Zhigang
[Public] Okay. I will update the change as you suggested. Thanks, Zhigang -Original Message- From: Zhang, Hawking Sent: June 7, 2021 9:52 AM To: Luo, Zhigang ; Liu, Shaoyun ; amd-gfx@lists.freedesktop.org Subject: RE: [PATCH 4/5] drm/amdgpu: add psp microcode init for arcturus and ald

[PATCH] drm/amdgpu: Fix warning of Function parameter or member not described

2021-06-07 Thread Eric Huang
Add the parameter table_freed description on function description. Signed-off-by: Eric Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index b4f189ab672e..9db1b64

[PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Rohit Khaire
This is similar to IH_RB_CNTL programming in navi10_ih_toggle_ring_interrupts Signed-off-by: Rohit Khaire --- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm

Re: [PATCH 0/7] libdrm tests for hot-unplug fe goature

2021-06-07 Thread Andrey Grodzovsky
Hey, MR created at https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/172, please help review. Andrey On 2021-06-03 10:26 p.m., Alex Deucher wrote: Code review happens on gitlab now for libdrm. Alex On Thu, Jun 3, 2021 at 6:02 PM Grodzovsky, Andrey wrote: Is libdrm on gitlab ? I was

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Christian König
Why are the ring 1&2 enabled on SRIOV in the first place? Christian. Am 07.06.21 um 16:23 schrieb Rohit Khaire: This is similar to IH_RB_CNTL programming in navi10_ih_toggle_ring_interrupts Signed-off-by: Rohit Khaire --- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 20 ++-- 1

Re: [PATCH v5 7/9] drm/amd/pm: Add vangogh throttler translation

2021-06-07 Thread Lazar, Lijo
On 6/7/2021 7:14 PM, Graham Sider wrote: Perform dependent to independent throttle status translation for vangogh. Signed-off-by: Graham Sider --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 38 ++- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers

RE: [PATCH v5 7/9] drm/amd/pm: Add vangogh throttler translation

2021-06-07 Thread Sider, Graham
Great, thanks for all the feedback Lijo. Out of the new bit definitions in amdgpu_smu.h are there any that currently exist that are more applicable for these mappings? *_THM_GFX and *_THM_SOC only exist in VanGogh and Renoir. With the expansion of the MEM and LIQUID bits there is not enough room

Re: [PATCH] drm/amd/pm: fix warning reported by kernel test robot

2021-06-07 Thread Deucher, Alexander
[Public] Acked-by: Alex Deucher From: amd-gfx on behalf of Xiaomeng Hou Sent: Monday, June 7, 2021 8:45 AM To: amd-gfx@lists.freedesktop.org Cc: Huang, Ray ; Hou, Xiaomeng (Matthew) ; Wang, Kevin(Yang) Subject: [PATCH] drm/amd/pm: fix warning reported by ker

RE: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Khaire, Rohit
[AMD Public Use] We don't need RING1 and RING2 functionality for SRIOV afaik. But looking at the description of the original commit message it affects RING0 too? " drm/amdgpu: add timeout flush mechanism to update wptr for self interrupt (v2) outstanding log reaches threshold will trigger IH r

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Christian König
Do you have the hash for this commit? Thanks, Christian. Am 07.06.21 um 17:30 schrieb Khaire, Rohit: [AMD Public Use] We don't need RING1 and RING2 functionality for SRIOV afaik. But looking at the description of the original commit message it affects RING0 too? " drm/amdgpu: add timeout fl

RE: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Khaire, Rohit
[AMD Public Use] The hash is 5ea6f9c Rohit -Original Message- From: Koenig, Christian Sent: June 7, 2021 11:58 AM To: Khaire, Rohit ; amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Zhang, Hawking ; Deng, Emily ; Liu, Monk ; Zhou, Peng Ju ; Chen, Horace Cc: Ming, Davis Subjec

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Christian König
That's a workaround for bare metal and as far as I know doesn't apply to SRIOV. We only need the additional IH rings for page fault handling or log handling and as far as I know that is incompatible with SRIOV for the moment. But Felix might have some more updates on this. So as long as we d

Re: [PATCH 4/4] drm/i915/display: Add handling for new "active bpc" property

2021-06-07 Thread Werner Sembach
Am 07.06.21 um 08:47 schrieb Werner Sembach: Am 04.06.21 um 19:30 schrieb Ville Syrjälä: On Fri, Jun 04, 2021 at 07:17:23PM +0200, Werner Sembach wrote: This commits implements the "active bpc" drm property for the Intel GPU driver. Signed-off-by: Werner Sembach ---   drivers/gpu/drm/i915/d

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Felix Kuehling
With SRIOV, the interrupt routing is setup by the hypervisor driver. We need the secondary IH rings in case the hypervisor enabled rerouting of page fault interrupts. I'm not sure what the hypervisor driver does today. Regards,   Felix Am 2021-06-07 um 12:29 p.m. schrieb Christian König: > That'

Re: [PATCH] drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

2021-06-07 Thread Christian König
Ah, good point. In this case we should probably rather save than sorry. Then I suggest to clean up this patch, repeating the psp_reg_program() and error message is pretty horrible coding style. Christian. Am 07.06.21 um 18:36 schrieb Felix Kuehling: With SRIOV, the interrupt routing is setup

[PATCH 01/30] drm/amd/display: Trigger full update after DCC on/off

2021-06-07 Thread Stylon Wang
From: Jake Wang [Why] During DCC on/off, stutter period is calculated before DCC has fully transitioned. This results in incorrect stutter period calculation. [How] Trigger a full update when DCC changes between on/off. Signed-off-by: Jake Wang Reviewed-by: Aric Cyr Acked-by: Stylon Wang --

[PATCH 00/30] DC Patches June, 7, 2021

2021-06-07 Thread Stylon Wang
This DC patchset brings improvements in multiple areas. In summary, we highlight: * DC v3.2.139 * FW v0.0.69 * Improvements across DP, eDP, DMUB, MPO, etc -- Anthony Koo (1): drm/amd/display: [FW Promotion] Release 0.0.68 Aric Cyr (4): drm/amd/display: Change default policy for MPO with mul

[PATCH 02/30] drm/amd/display: Enabling PSR support for multiple panels

2021-06-07 Thread Stylon Wang
From: Mikita Lipski [why] Updating PSR interfaces to allow PSR enablement per eDP panel. [how] - Copying PSR command structures to DC - Changing function interfaces to pass panel instance - Communicating with DMUB per link instead of assuming to use a single one -Iterating through all PSR capable

[PATCH 10/30] drm/amd/display: Support mappable encoders when transmitting training patterns.

2021-06-07 Thread Stylon Wang
From: Jimmy Kizito [Why & How] Add support for transmitting training pattern sequences for links whose encoders have been dynamically assigned. Signed-off-by: Jimmy Kizito Reviewed-by: Jun Lei Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 11 ++- 1 fi

[PATCH 04/30] drm/amd/display: Fix DCN 3.01 DSCCLK validation

2021-06-07 Thread Stylon Wang
From: Nikola Cornij [why] DSCCLK validation is not necessary because DSCCLK is derrived from DISPCLK, therefore if DISPCLK validation passes, DSCCLK is valid, too. Doing DSCLK validation in addition to DISPCLK leads to modes being wrongly rejected when DSCCLK was incorrectly set outside of DML.

[PATCH 03/30] drm/amd/display: delay 100ms before restart after failing to read CP_IRQ

2021-06-07 Thread Stylon Wang
From: Wenjing Liu [why] Some DPRX will issue CP_IRQ when user disconnects a display that has been authenticated. Since display is being disconnecting dpcd read will fail. This will cause us to attempt HDCP retry on disconnection. We are adding a 100ms delay before retry. So we will only start ret

[PATCH 05/30] drm/amd/display: Control power gating by driver.

2021-06-07 Thread Stylon Wang
From: "JinZe.Xu" [Why] This disablement would be specific for Nav10 and shouldn’t be propagated to the other programs. [How] Power gating is controlled by driver. Signed-off-by: JinZe.Xu Reviewed-by: Jun Lei Acked-by: Stylon Wang --- .../drm/amd/display/dc/dcn302/dcn302_hwseq.c | 34 +

[PATCH 08/30] drm/amd/display: Revert "Fix clock table filling logic"

2021-06-07 Thread Stylon Wang
From: Ilya Bakoulin [Why] This change was found to break some high-refresh modes. Reverting to unblock mainline. Signed-off-by: Ilya Bakoulin Reviewed-by: Sung Lee Acked-by: Stylon Wang --- .../amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c | 78 +++ .../drm/amd/display/dc/dcn21/d

[PATCH 12/30] drm/amd/display: Remove unused definition of DMUB SET_CONFIG

2021-06-07 Thread Stylon Wang
From: Meenakshikumar Somasundaram [Why & How] SET_CONFIG transactions with DMUB is not used and removed. Signed-off-by: Meenakshikumar Somasundaram Reviewed-by: Jun Lei Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 1 file changed, 4 deletions(-) diff --

[PATCH 13/30] drm/amd/display: Return last used DRR VTOTAL from DC

2021-06-07 Thread Stylon Wang
From: Jayendran Ramani [How] Add call to get the last used VTOTAL from DC Signed-off-by: Jayendran Ramani Reviewed-by: Anthony Koo Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dc/core/dc.c | 42 +++ drivers/gpu/drm/amd/display/dc/dc_stream.h| 4 ++ .../dc/d

[PATCH 15/30] drm/amd/display: Release MST resources on switch from MST to SST

2021-06-07 Thread Stylon Wang
From: Vladimir Stempen [why] When OS overrides training link training parameters for MST device to SST mode, MST resources are not released and leak of the resource may result crash and incorrect MST discovery during following hot plugs. [how] Retaining sink object to be reused by SST link and r

[PATCH 14/30] drm/amd/display: Enable PSR Residency for multiple panels

2021-06-07 Thread Stylon Wang
From: Mikita Lipski [why] Allow specifying which panel to take PSR Residency measurements from. [how] Pass panel instance to DMUB through GPINT in the upper 8 bits of the parameter. Signed-off-by: Mikita Lipski Reviewed-by: Nicholas Kazlauskas Acked-by: Stylon Wang --- drivers/gpu/drm/amd/di

[PATCH 17/30] drm/amd/display: [FW Promotion] Release 0.0.68

2021-06-07 Thread Stylon Wang
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Anthony Koo Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd/d

[PATCH 09/30] drm/amd/display: Expand DP module equalization API.

2021-06-07 Thread Stylon Wang
From: Jimmy Kizito [Why & How] Add functionality useful for DP equalization phase of link training to public interface. Signed-off-by: Jimmy Kizito Reviewed-by: Jun Lei Acked-by: Stylon Wang --- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 22 +-- .../gpu/drm/amd/display/d

[PATCH 18/30] drm/amd/display: 3.2.138

2021-06-07 Thread Stylon Wang
From: Aric Cyr Signed-off-by: Aric Cyr Reviewed-by: Aric Cyr Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index c0fbcbd4cbfc..356e15c

[PATCH 11/30] drm/amd/display: Update scaling settings on modeset

2021-06-07 Thread Stylon Wang
From: Roman Li [Why] We update scaling settings when scaling mode has been changed. However when changing mode from native resolution the scaling mode previously set gets ignored. [How] Perform scaling settings update on modeset. Signed-off-by: Roman Li Reviewed-by: Nicholas Kazlauskas Acked-

[PATCH 16/30] drm/amd/display: Change default policy for MPO with multidisplay

2021-06-07 Thread Stylon Wang
From: Aric Cyr [Why] Rearranging pipes with multiple displays and multiple planes cannot be done atomically and requires a much improved sequence to deal with it. [How] To workaround such issues, prefer avoid pipe-split policy for multidisplay scenarios. Signed-off-by: Aric Cyr Reviewed-by: Kr

[PATCH 19/30] drm/amd/display: Add Interface to set FIFO ERRDET SW Override

2021-06-07 Thread Stylon Wang
From: Wesley Chalmers [WHY] HW has handed down a new sequence which requires access to the FIFO ERRDET SW Override register. Signed-off-by: Wesley Chalmers Reviewed-by: Dmytro Laktyushkin Acked-by: Stylon Wang --- .../gpu/drm/amd/display/dc/dcn20/dcn20_dccg.c | 10 +++ .../gpu/drm/amd/di

[PATCH 25/30] drm/amd/display: Revert "Disconnect non-DP with no EDID"

2021-06-07 Thread Stylon Wang
From: Roy Chan [Why] Found a use case (IPKVM) that DP-VGA active dongle does not return any EDID and the mentioned commit broke it. [How] This reverts "Disconnect non-DP with no EDID" Signed-off-by: Roy Chan Reviewed-by: Chris Park Acked-by: Stylon Wang --- drivers/gpu/drm/amd/display/dc/co

[PATCH 24/30] drm/amd/display: Add debugfs entry for dsc passthrough

2021-06-07 Thread Stylon Wang
From: Fangzhi Zuo [Why & How] Add debugfs entry to force dsc decoding at PCON when DSC capable external RX is connected. In such case, it is free to test DSC decoding at external RX or at PCON. Signed-off-by: Fangzhi Zuo Reviewed-by: Hersen Wu Acked-by: Stylon Wang --- .../gpu/drm/amd/displa

  1   2   >