RE: [PATCH] drm/amdgpu: drop duplicated ecc check for vega10 (v2)

2020-09-28 Thread Chen, Guchun
[AMD Public Use] My BAD. Will correct it in v3. Regards, Guchun -Original Message- From: Zhang, Hawking Sent: Tuesday, September 29, 2020 2:36 PM To: Chen, Guchun ; amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Li, Dennis ; Zhou1, Tao ; Clements, John Subject: RE: [PATCH] drm/

[PATCH] drm/amdgpu: drop duplicated ecc check for vega10 (v3)

2020-09-28 Thread Guchun Chen
The same ECC check has been executed in amdgpu_ras_init for vega10, prior to gmc_v9_0_late_init. v2: drop all atombios helper callings v3: use bit operation Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 16 1 file changed, 4 insertions(+), 12 deletions(

RE: [PATCH 1/2] drm/amdgpu: fix incorrect comment

2020-09-28 Thread Zhou1, Tao
[AMD Public Use] Reviewed-by: Tao Zhou > -Original Message- > From: Chen, Guchun > Sent: Tuesday, September 29, 2020 12:55 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander > ; Zhang, Hawking ; > Li, Dennis ; Zhou1, Tao ; > Clements, John > Cc: Chen, Guchun > Subject: [PATCH

RE: [PATCH] drm/amdgpu: drop duplicated ecc check for vega10 (v2)

2020-09-28 Thread Zhang, Hawking
[AMD Public Use] + if (adev->ras_features & AMDGPU_RAS_BLOCK__UMC) ras_feature is in bitmask, so it should be 1 << block or use BIT macro here for the check Regards, Hawking -Original Message- From: Chen, Guchun Sent: Tuesday, September 29, 2020 14:14 To: amd-gfx@lists.

[PATCH] drm/amdgpu: drop duplicated ecc check for vega10 (v2)

2020-09-28 Thread Guchun Chen
The same ECC check has been executed in amdgpu_ras_init for vega10, prior to gmc_v9_0_late_init. v2: drop all atombios helper callings Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drive

RE: [PATCH] drm/amdgpu: drop duplicated ecc check for vega10

2020-09-28 Thread Chen, Guchun
[AMD Public Use] Let me send v2 later to correct it. Regards, Guchun -Original Message- From: Zhang, Hawking Sent: Tuesday, September 29, 2020 2:05 PM To: Chen, Guchun ; amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Li, Dennis ; Zhou1, Tao ; Clements, John Subject: RE: [PATCH]

RE: [PATCH] drm/amdgpu: drop duplicated ecc check for vega10

2020-09-28 Thread Zhang, Hawking
[AMD Public Use] Although we unified check ecc capability to ras_init, we still need to query the ecc capability here to apply the vega10 specific workaround. So we don't need to call the atomfirmware helper again, but leverage adev->ras_features to decide apply the workaround or not. Regards,

[PATCH v2] amd/amdgpu: Fix resv shared fence overflow

2020-09-28 Thread xinhui pan
[ 179.556745] kernel BUG at drivers/dma-buf/dma-resv.c:282! [snip] [ 179.702910] Call Trace: [ 179.705696] amdgpu_bo_fence+0x21/0x50 [amdgpu] [ 179.710707] amdgpu_vm_sdma_commit+0x299/0x430 [amdgpu] [ 179.716497] amdgpu_vm_bo_update_mapping.constprop.0+0x29f/0x390 [amdgpu] [ 179.723927] ?

RE: [PATCH] amd/amdgpu: Fix resv shared fence overflow

2020-09-28 Thread Pan, Xinhui
[AMD Official Use Only - Internal Distribution Only] Pls ignore this patch. -Original Message- From: Pan, Xinhui Sent: 2020年9月29日 13:17 To: amd-gfx@lists.freedesktop.org Cc: Koenig, Christian ; Deucher, Alexander ; Pan, Xinhui Subject: [PATCH] amd/amdgpu: Fix resv shared fence overflow

[PATCH] amd/amdgpu: Fix resv shared fence overflow

2020-09-28 Thread xinhui pan
[ 179.556745] kernel BUG at drivers/dma-buf/dma-resv.c:282! [snip] [ 179.702910] Call Trace: [ 179.705696] amdgpu_bo_fence+0x21/0x50 [amdgpu] [ 179.710707] amdgpu_vm_sdma_commit+0x299/0x430 [amdgpu] [ 179.716497] amdgpu_vm_bo_update_mapping.constprop.0+0x29f/0x390 [amdgpu] [ 179.723927] ?

[PATCH] drm/amdgpu: drop duplicated ecc check for vega10

2020-09-28 Thread Guchun Chen
The same ECC check has been executed in amdgpu_ras_init for vega10, prior to gmc_v9_0_late_init. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/driver

[PATCH 1/2] drm/amdgpu: fix incorrect comment

2020-09-28 Thread Guchun Chen
It should be one copy-paste typo. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h index f29a8611d69b.

Re: [PATCH] amdgpu/drm: cleanup navi10 ih logic about older ASIC

2020-09-28 Thread Felix Kuehling
[+Alex] I think this was added for Arcturus, which shares the same IH IP as Navi10 and needs to support virtualization. Regards,   Felix Am 2020-09-25 um 7:30 a.m. schrieb Zhang, Hawking: > [AMD Public Use] > > Hi Likun, > > Let's take a step back to check with Alex S why he add the ASIC type ch

[PATCH] drm/amdkcl: include linux/vmalloc.h in kcl_mm.h

2020-09-28 Thread Jiawei
Include linux/vmalloc.h to fix compile failure in 4.9.184 kernel Signed-off-by: Jiawei --- include/kcl/kcl_mm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/kcl/kcl_mm.h b/include/kcl/kcl_mm.h index 0afe2f099aa1..dac2f84c9dd3 100644 --- a/include/kcl/kcl_mm.h +++ b/include/kcl/kcl

RE: [PATCH] drm/amdgpu/swsmu/smu12: fix force clock handling for mclk

2020-09-28 Thread Liang, Prike
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Prike Liang Thanks, Prike > -Original Message- > From: amd-gfx On Behalf Of Alex > Deucher > Sent: Tuesday, September 29, 2020 2:19 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: [PATCH] drm/a

Re: [PATCH 41/45] drm/amdgpu: add gfx power gating for gfx10

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:10 p.m., Alex Deucher wrote: > From: Huang Rui > > This patch is to add power gating handle for gfx10. Ray, you can just say: "This patch adds power gating handler for gfx10." You can drop "is to" and just use "adds". And similarly for all other patches where you use that. >

Re: [PATCH 36/45] drm/amdgpu: add TOC firmware support for apu (v2)

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:10 p.m., Alex Deucher wrote: > From: Huang Rui > > APU needs load toc firmware for gfx10 series on psp front door loading. > > v2: rebase against latest code > > Signed-off-by: Huang Rui > Acked-by: Alex Deucher > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgp

RE: [PATCH] drm/amdgpu: use function pointer for gfxhub functions

2020-09-28 Thread Zeng, Oak
[AMD Official Use Only - Internal Distribution Only] Forgot the mention, the main reason I think it is not necessary to write a comment in this case is, if you program with C language and write something like below, the unset function pointer is NULL guaranteed by compiler. +const struct amdgpu

RE: [PATCH] drm/amdgpu: use function pointer for gfxhub functions

2020-09-28 Thread Zeng, Oak
[AMD Official Use Only - Internal Distribution Only] Sorry for late reply… Yes some of the function pointers can be NULL. For those NULL function pointer, it is the call’s responsibility to *not* call them. We have been practicing like this for many function pointers before. For example, if you

Re: Regression in amdgpu driver / kernel v5.8.6

2020-09-28 Thread Alex Deucher
On Mon, Sep 28, 2020 at 9:23 AM Jean Delvare wrote: > > Hi all, > > I have recently experienced a regression in stable kernel series 5.8. > The problem is that my display will randomly turn to black after just a > few seconds of inactivity. I have to switch to text console then back > to X to reco

Re: [PATCH 27/45] drm/admgpu/powerplay: add smu v11.5 driver interface header for vangogh

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:10 p.m., Alex Deucher wrote: > From: Xiaojian Du > > This patch is to add smu v11.5 driver interface header for vangogh. > > Signed-off-by: Xiaojian Du > Reviewed-by: Kevin Wang > Reviewed-by: Huang Rui > Signed-off-by: Alex Deucher > --- > .../drm/amd/pm/inc/smu11_driver_if

Re: [PATCH] drm/amd/display: make two symbols static

2020-09-28 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Sep 28, 2020 at 10:06 AM Harry Wentland wrote: > > On 2020-09-27 10:35 p.m., Jason Yan wrote: > > This addresses the following sparse warning: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2740:6: > > warning: symbol 'dce110_set_curs

Re: [PATCH] drm/amd/display: make get_color_space_type() static

2020-09-28 Thread Alex Deucher
Applied. Thanks! On Mon, Sep 28, 2020 at 10:06 AM Harry Wentland wrote: > > On 2020-09-27 10:36 p.m., Jason Yan wrote: > > This addresses the following sparse warning: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.c:180:26: > > warning: symbol 'get_color_space_type' was n

Re: [PATCH 09/45] drm/amdgpu: use gpu virtual address for interrupt packet write space for vangogh

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:09 p.m., Alex Deucher wrote: > From: Huang Rui > > The interrupts are not stable while uses guest physical address (GPA) > for interrupt packet write space even on direct loading case. > > Signed-off-by: Huang Rui > Acked-by: Alex Deucher > Signed-off-by: Alex Deucher > --- >

Re: [PATCH 07/45] drm/amdgpu: skip sdma1 in nv_allowed_read_registers list for van gogh (v2)

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:09 p.m., Alex Deucher wrote: > From: Huang Rui > > Van gogh only has one sdma. > > v2: use num_instances rather than APU flag > > Signed-off-by: Huang Rui > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/nv.c | 3 ++- > 1 file changed, 2 insertions(+), 1 delet

Re: [PATCH 06/45] drm/amdgpu: add nv common ip block support for van gogh

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:09 p.m., Alex Deucher wrote: > From: Huang Rui > > This patch adds common ip support for van gogh. > > Signed-off-by: Huang Rui > Reviewed-by: Alex Deucher > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/nv.c | 8 > 1 file changed, 8 insertions(+) >

Re: [PATCH 05/45] drm/amdgpu: add vangogh_reg_base_init function for van gogh

2020-09-28 Thread Luben Tuikov
On 2020-09-25 4:09 p.m., Alex Deucher wrote: > From: Huang Rui > > This patch adds vangogh_reg_base_init function to init the register base for > van gogh. > > Signed-off-by: Huang Rui > Reviewed-by: Alex Deucher > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/Makefile

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread James Ettle
On Mon, 2020-09-28 at 16:32 -0400, Alex Deucher wrote: > Yes, but module parameters global for all devices claimed by that > driver. E.g., if you have a system with 2 or 3 AMD GPUs in it, that > will be applied to all of them. I think if we want to be able to set > KMS properties on the kernel co

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread Alex Deucher
On Mon, Sep 28, 2020 at 4:24 PM James Ettle wrote: > > On Mon, 2020-09-28 at 16:12 -0400, Kazlauskas, Nicholas wrote: > > > > The problem with the module parameters is that it'd be applying a > > default to every DRM connector. No way to specify different defaults > > per > > DRM connector, nor do

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread James Ettle
On Mon, 2020-09-28 at 16:12 -0400, Kazlauskas, Nicholas wrote: > > The problem with the module parameters is that it'd be applying a > default to every DRM connector. No way to specify different defaults > per > DRM connector, nor do we know the full connector set at driver > initialization. Th

[PATCH] drm/amdgpu: fix perms of gfx_v10_0.c

2020-09-28 Thread Luben Tuikov
Fix perms: a+x --> a-x. Signed-off-by: Luben Tuikov --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amd

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread Kazlauskas, Nicholas
On 2020-09-28 3:31 p.m., Christian König wrote: Am 28.09.20 um 19:35 schrieb James Ettle: On Mon, 2020-09-28 at 10:26 -0400, Harry Wentland wrote: On 2020-09-25 5:18 p.m., Alex Deucher wrote: On Tue, Sep 22, 2020 at 4:51 PM James Ettle wrote: On 22/09/2020 21:33, Alex Deucher wrote: +/** +

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread Christian König
Am 28.09.20 um 19:35 schrieb James Ettle: On Mon, 2020-09-28 at 10:26 -0400, Harry Wentland wrote: On 2020-09-25 5:18 p.m., Alex Deucher wrote: On Tue, Sep 22, 2020 at 4:51 PM James Ettle wrote: On 22/09/2020 21:33, Alex Deucher wrote: +/** + * DOC: pixel_encoding (string) + * Specify the in

[PATCH] drm/amdgpu/swsmu/smu12: fix force clock handling for mclk

2020-09-28 Thread Alex Deucher
The state array is in the reverse order compared to other asics (high to low rather than low to high). Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1313 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 8 +--- 1 file changed, 5 insertions(+), 3 deleti

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread James Ettle
On Mon, 2020-09-28 at 10:26 -0400, Harry Wentland wrote: > > On 2020-09-25 5:18 p.m., Alex Deucher wrote: > > On Tue, Sep 22, 2020 at 4:51 PM James Ettle > > wrote: > > > On 22/09/2020 21:33, Alex Deucher wrote: > > > > > +/** > > > > > + * DOC: pixel_encoding (string) > > > > > + * Specify the i

Re: [PATCH] amd/drm/display: avoid dcn3 on flip opp change for slave pipes

2020-09-28 Thread Rodrigo Siqueira
LGTM, Reviewed-by: Rodrigo Siqueira On 09/28, Bhawanpreet Lakha wrote: > From: Dmytro Laktyushkin > > At the moment on flip opp reassignment does not work in all cases > for non root pipes. > This change simply makes sure we prefer pipes not used previously > when splitting in dcn3. > > Signe

[PATCH] amd/drm/display: avoid dcn3 on flip opp change for slave pipes

2020-09-28 Thread Bhawanpreet Lakha
From: Dmytro Laktyushkin At the moment on flip opp reassignment does not work in all cases for non root pipes. This change simply makes sure we prefer pipes not used previously when splitting in dcn3. Signed-off-by: Dmytro Laktyushkin Acked-by: Bhawanpreet Lakha --- .../drm/amd/display/dc/dcn

Re: CONFIG_AMDGPU triggers full rebuild

2020-09-28 Thread Felix Kuehling
If I had to guess, I'd say something HMM-related. There has been some back-and-forth between kernel releases. So I won't say anything more specific without knowing exactly which branch or release you're on. Regards,   Felix Am 2020-09-25 um 10:29 a.m. schrieb Thomas Zimmermann: > Hi, > > whenever

Re: [PATCH] drm/amd/display: add debugfs entry for trigger_hotplug

2020-09-28 Thread Jason Yan
ping... 在 2020/9/12 10:22, Jason Yan 写道: The 'trigger_hotplug' entry in debugfs is defined but not wired up. This causes a gcc warning build with W=1. drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:2045:37: warning: ‘dp_trigger_hotplug_debugfs_fops’ defined but not used [-W

Re: [PATCH] drm/amdgpu/dc: Pixel encoding DRM property and module parameter

2020-09-28 Thread Harry Wentland
On 2020-09-25 5:18 p.m., Alex Deucher wrote: > On Tue, Sep 22, 2020 at 4:51 PM James Ettle wrote: >> >> On 22/09/2020 21:33, Alex Deucher wrote: +/** + * DOC: pixel_encoding (string) + * Specify the initial pixel encoding used by a connector. + */ +static char amdgpu_pi

Re: [PATCH] drm/amd/display: add debugfs entry for trigger_hotplug

2020-09-28 Thread Harry Wentland
On 2020-09-28 10:06 a.m., Jason Yan wrote: > ping... > Fix by YueHaibing is already merged for this: commit 73b1acd54e13686fbb002afdf892c670177f0c57 Author: YueHaibing Date: Thu Sep 10 11:13:52 2020 +0800 drm/amd/display: Create trigger_hotplug entry Add trigger_hotplug debugfs entr

Re: [PATCH] drm/amd/display: make two symbols static

2020-09-28 Thread Harry Wentland
On 2020-09-27 10:35 p.m., Jason Yan wrote: > This addresses the following sparse warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2740:6: > warning: symbol 'dce110_set_cursor_position' was not declared. Should it > be static? > drivers/gpu/drm/amd/amdgpu/../displa

Re: [PATCH] drm/amd/display: make get_color_space_type() static

2020-09-28 Thread Harry Wentland
On 2020-09-27 10:36 p.m., Jason Yan wrote: > This addresses the following sparse warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.c:180:26: > warning: symbol 'get_color_space_type' was not declared. Should it be > static? > If you have multiple fixes of the same or simi

Regression in amdgpu driver / kernel v5.8.6

2020-09-28 Thread Jean Delvare
Hi all, I have recently experienced a regression in stable kernel series 5.8. The problem is that my display will randomly turn to black after just a few seconds of inactivity. I have to switch to text console then back to X to recover. I bisected it down to: commit b86657e328b601a5b98f8c4c21d10

RE: [PATCH 3/3] drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of compute units that are in use.

2020-09-28 Thread Russell, Kent
[AMD Public Use] Some minor things inline > -Original Message- > From: amd-gfx On Behalf Of Ramesh > Errabolu > Sent: Friday, September 25, 2020 6:03 PM > To: amd-gfx@lists.freedesktop.org > Cc: Errabolu, Ramesh > Subject: [PATCH 3/3] drm/amd/amdkfd: Surface files in Sysfs to allow use

RE: [PATCH 2/3] drm/amd/amdgpu: Define and implement a function that collects number of waves that are in flight.

2020-09-28 Thread Russell, Kent
[AMD Public Use] Some minor typos > -Original Message- > From: amd-gfx On Behalf Of Ramesh > Errabolu > Sent: Friday, September 25, 2020 6:03 PM > To: amd-gfx@lists.freedesktop.org > Cc: Errabolu, Ramesh > Subject: [PATCH 2/3] drm/amd/amdgpu: Define and implement a function that > col

RE: [PATCH 1/3] drm/amd/amdgpu: Prepare implementation to support reporting of CU usage

2020-09-28 Thread Russell, Kent
[AMD Public Use] Comments inline > -Original Message- > From: amd-gfx On Behalf Of Ramesh > Errabolu > Sent: Friday, September 25, 2020 6:03 PM > To: amd-gfx@lists.freedesktop.org > Cc: Errabolu, Ramesh > Subject: [PATCH 1/3] drm/amd/amdgpu: Prepare implementation to support > reporti

Re: [PATCH] drm/amd/powerplay: add one sysfs file -- "pp_od_clk_voltage" to support the feature to modify gfx engine clock(Mhz units) on Raven/Raven2/Picasso APU.

2020-09-28 Thread Huang Rui
On Mon, Sep 28, 2020 at 03:15:30PM +0800, Du, Xiaojian wrote: > From: Xiaojian Du > > From: Xiaojian Du > > This patch is to add one sysfs file -- "pp_od_clk_voltage" for > Raven/Raven2/Picasso APU, which is only used by dGPU like VEGA10. > This sysfs file supports the feature to modify gfx eng

Re: [PATCH] drm/amd/powerplay: add one sysfs file -- "pp_od_clk_voltage" to support the feature to modify gfx engine clock(Mhz units) on Raven/Raven2/Picasso APU.

2020-09-28 Thread Wang, Kevin(Yang)
[AMD Official Use Only - Internal Distribution Only] comment inline. after fixed, the patch is Reviewed-by: Kevin Wang Best Regards, Kevin From: Du, Xiaojian Sent: Monday, September 28, 2020 3:15 PM To: amd-gfx@lists.freedesktop.org Cc: Huang, Ray ; Wang, Kevi

[PATCH] drm/amd/powerplay: add one sysfs file -- "pp_od_clk_voltage" to support the feature to modify gfx engine clock(Mhz units) on Raven/Raven2/Picasso APU.

2020-09-28 Thread xiaojian . du
From: Xiaojian Du From: Xiaojian Du This patch is to add one sysfs file -- "pp_od_clk_voltage" for Raven/Raven2/Picasso APU, which is only used by dGPU like VEGA10. This sysfs file supports the feature to modify gfx engine clock(Mhz units), it can be used to configure the min value and the max

Re: amdgpu: call trace introduced in 5.9-rc1 for Lenovo L14 Renoir

2020-09-28 Thread Dirk Gouders
Alex Deucher writes: > On Wed, Sep 23, 2020 at 3:45 PM Dirk Gouders wrote: >> >> Dirk Gouders writes: >> >> > Alex Deucher writes: >> > >> >> On Wed, Sep 23, 2020 at 8:54 AM Dirk Gouders wrote: >> >>> >> >>> Dirk Gouders writes: >> >>> >> >>> > Hi, >> >>> > >> >>> > I noticed a call trace (a

[PATCH] drm/amd/display: make get_color_space_type() static

2020-09-28 Thread Jason Yan
This addresses the following sparse warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.c:180:26: warning: symbol 'get_color_space_type' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/core/dc_hw_sequ

[PATCH] drm/amd/display: remove duplicate call to rn_vbios_smu_get_smu_version()

2020-09-28 Thread Dirk Gouders
Commit 78fe9f63947a2b (drm/amd/display: Remove DISPCLK Limit Floor for Certain SMU Versions) added a call to rn_vbios_smu_get_smu_version() to set clk_mgr->smu_ver. That field is initialized prior to the if-statement, already. Fixes: 78fe9f63947a2b (drm/amd/display: Remove DISPCLK Limit Floor for

[PATCH] drm/amd/display: make two symbols static

2020-09-28 Thread Jason Yan
This addresses the following sparse warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2740:6: warning: symbol 'dce110_set_cursor_position' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2785:6: warning: symb