Re: [PATCH v2] drm/amdgpu: check vm ready by amdgpu_vm->evicting flag

2022-02-22 Thread Qiang Yu
On Wed, Feb 23, 2022 at 3:47 PM Paul Menzel wrote: > > Dear Qiang, > > > Am 22.02.22 um 03:46 schrieb Qiang Yu: > > Workstation application ANSA/META v21.1.4 get this error dmesg when > > running CI test suite provided by ANSA/META: > > [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO

Re: [PATCH v2] drm/amdgpu: check vm ready by amdgpu_vm->evicting flag

2022-02-22 Thread Paul Menzel
Dear Qiang, Am 22.02.22 um 03:46 schrieb Qiang Yu: Workstation application ANSA/META v21.1.4 get this error dmesg when running CI test suite provided by ANSA/META: [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA (-16) This is caused by: 1. create a 256MB buffer in invisible VR

Re: [PATCH] drm/sched: Add device pointer to drm_gpu_scheduler

2022-02-22 Thread Christian König
Well that's bad. This should not be pushed to amd-staging-drm-next at all. This patch is touching multiple drivers and therefore needs to go upstream through drm-misc-next. Alex can you drop that one before you send out a pull request? I'm going to cherry-pick it over to drm-misc-next. Than

Re: [PATCH v13 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Christian König
Am 23.02.22 um 08:13 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 82 + 2

RE: [PATCH] drm/sched: Add device pointer to drm_gpu_scheduler

2022-02-22 Thread Gu, JiaWei (Will)
[AMD Official Use Only] Hi Christian, I noticed that and it has been fixed with the latest patch. And I pushed it to amd-staging-drm-next already. Best regards, Jiawei -Original Message- From: Koenig, Christian Sent: Wednesday, February 23, 2022 3:12 PM To: kernel test robot ; Gu, Jia

[PATCH v13 2/2] drm/amdgpu: add reset register dump trace on GPU

2022-02-22 Thread Somalapuram Amaranath
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 + drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 16 2 files changed, 33 insertions(+) diff --git a/drivers/gpu/

[PATCH v13 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Somalapuram Amaranath
List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 82 + 2 files changed, 86 insertions(+) diff --git a/drivers/gpu/dr

Re: [PATCH] drm/sched: Add device pointer to drm_gpu_scheduler

2022-02-22 Thread Christian König
Hi Jiawei, can you take a look at this? The kernel build robots screaming that this breaks the V3D build. Probably just a typo or missing include. I would rather like to push this sooner than later. Thanks, Christian. Am 21.02.22 um 16:51 schrieb kernel test robot: Hi Jiawei, Thank you fo

[PATCH v2] drm/amdgpu: config HDP_MISC_CNTL.READ_BUFFER_WATERMARK to fix applications running across multiple GPU config hang.

2022-02-22 Thread Xiaogang . Chen
From: Xiaogang Chen Signed-off-by: Xiaogang Chen --- drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 3 +++ drivers/gpu/drm/amd/include/asic_reg/hdp/hdp_4_0_sh_mask.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c b/drivers/gpu/drm/amd

RE: [PATCH] drm/amd/pm: Fix missing prototype warning

2022-02-22 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Wednesday, February 23, 2022 1:27 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Liang, Prike ; kernel test robot ; Zhang, Hawking Subject: [PATCH] drm/amd/pm: Fix m

[PATCH] drm/amd/pm: Fix missing prototype warning

2022-02-22 Thread Lijo Lazar
Fix below warning warning: no previous prototype for '__smu_get_enabled_features' [-Wmissing-prototypes] Fixes: 716622108a9f("drm/amd/pm: validate SMU feature enable message for getting feature enabled mask") Reported-by: kernel test robot Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/pm/

Re: [PATCH 1/2] drm/amdgpu/nv: enable gfx10.3.7 clock gating support

2022-02-22 Thread Huang Rui
On Wed, Feb 23, 2022 at 10:42:34AM +0800, Liang, Prike wrote: > This will enable the following gfx clock gating. > - Fine clock gating > - Medium Grain clock gating > - 3D Coarse clock gating > - Coarse Grain clock gating > - RLC/CP light sleep clock gating > > Signed-off-by: Prike Liang Series

[PATCH 2/2] drm/amdgpu/nv: set mode2 reset for MP1 13.0.8

2022-02-22 Thread Prike Liang
Set mode2 reset support for MP1 13.0.8. Signed-off-by: Prike Liang --- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 5f375f3430e1..f414b7ca0ab7 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv

[PATCH 1/2] drm/amdgpu/nv: enable gfx10.3.7 clock gating support

2022-02-22 Thread Prike Liang
This will enable the following gfx clock gating. - Fine clock gating - Medium Grain clock gating - 3D Coarse clock gating - Coarse Grain clock gating - RLC/CP light sleep clock gating Signed-off-by: Prike Liang --- drivers/gpu/drm/amd/amdgpu/nv.c | 10 +- 1 file changed, 9 insertions(+),

RE: [PATCH] PCI: Apply quirk_amd_harvest_no_ats to all navi10 and 14 asics

2022-02-22 Thread Chen, Guchun
Acked-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, February 23, 2022 12:08 AM To: amd-gfx@lists.freedesktop.org; bhelg...@google.com; linux-...@vger.kernel.org Cc: Deucher, Alexander Subject: [PATCH] PCI: Apply quirk_amd_h

Re: [PATCH] drm/amdgpu: limit harvest bit read on several ASICs

2022-02-22 Thread Deucher, Alexander
[AMD Official Use Only] No that's fine. Just checking. Alex From: Chen, Guchun Sent: Tuesday, February 22, 2022 9:29 PM To: Alex Deucher Cc: amd-gfx list ; Deucher, Alexander ; Zhang, Hawking ; Koenig, Christian ; Pan, Xinhui Subject: RE: [PATCH] drm/amdgpu

[PATCH AUTOSEL 5.15 20/28] drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby

2022-02-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit 0136f5844b006e2286f873457c3fcba8c45a3735 ] Correct the UMD pstate profiling clocks for Dimgrey Cavefish and Beige Goby. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../amd/pm/swsmu/smu11/sie

RE: [PATCH] drm/amdgpu: limit harvest bit read on several ASICs

2022-02-22 Thread Chen, Guchun
Hi Alex, This patch has covered the check of VCN as well. So you want me to modify the comments to add VCN as well? Regards, Guchun -Original Message- From: Alex Deucher Sent: Wednesday, February 23, 2022 1:00 AM To: Chen, Guchun Cc: amd-gfx list ; Deucher, Alexander ; Zhang, Hawkin

[PATCH AUTOSEL 5.16 22/30] drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby

2022-02-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit 0136f5844b006e2286f873457c3fcba8c45a3735 ] Correct the UMD pstate profiling clocks for Dimgrey Cavefish and Beige Goby. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../amd/pm/swsmu/smu11/sie

[PATCH] Revert "drm/amd/display: Remove unused temp variable"

2022-02-22 Thread Alex Deucher
This reverts commit b1f0ab445ec609f9b58e0969c5d052b52d9a54e7. This patch is not valid. The driver needs to actually read the entries in the ring buffer. Add a comment to make this clear. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1916 Cc: Maíra Canal Signed-off-by: Alex Deucher ---

RE: [PATCH] drm/amdgpu: fix typo in amdgpu_discovery.c

2022-02-22 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, February 23, 2022 4:57 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH] drm/amdgpu: fix typo in amdgpu_discovery.c disocvery -> discovery S

[PATCH 4/4] drm/amd/display: increasing DRAM BW percent for DCN315

2022-02-22 Thread Qingqing Zhuo
From: Sung Joon Kim [why] DML validation fails when we connect two or more displays with HDR. Need to increase DRAM BW to make the validation passing. Following the value from DCN31. [how] Change the max DRAM BW DML field to 60%. Reviewed-by: Charlene Liu Acked-by: Qingqing Zhuo Signed-off-by

[PATCH 3/4] drm/amd/display: Set compbuf size to min at prep prevent overbook crb

2022-02-22 Thread Qingqing Zhuo
From: "Ma, Duncan" [Why] Detbuffer size is dynamically set for dcn31x. At certain moment, compbuf+(def size * num pipes) > config return buffer size causing flickering. This is easily reproducible when MPO is enabled with two displays. [How] At prepare BW, use the min comp buffer size. When it i

[PATCH 2/4] drm/amd/display: revert populating dcn315 clk table based on dcfclk

2022-02-22 Thread Qingqing Zhuo
From: Dmytro Laktyushkin [Why & How] Due to how pmfw fills out the table when dcfclk states are disabled, using dcfclk based clk table would cause a no read situation. Revert the change to prevent underflow until a better solution is coded. Reviewed-by: Charlene Liu Acked-by: Qingqing Zhuo Sig

[PATCH 1/4] drm/amd/display: limit unbounded requesting to 5k

2022-02-22 Thread Qingqing Zhuo
From: Dmytro Laktyushkin [WHy & How] Unbounded requesting is unsupported on pipe split modes and this change prevents us running into such a situation with wide modes. Reviewed-by: Charlene Liu Acked-by: Qingqing Zhuo Signed-off-by: Dmytro Laktyushkin Reviewed-by: Harry Wentland --- drivers

[PATCH] drm/amdgpu: fix typo in amdgpu_discovery.c

2022-02-22 Thread Alex Deucher
disocvery -> discovery Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 2e0ff1ace6fc..e4fcbb

Re: [PATCH v2] drm/amdkfd: Print bdf in peer map failure message

2022-02-22 Thread Felix Kuehling
Am 2022-02-22 um 13:55 schrieb Harish Kasiviswanathan: Print alloc node, peer node and memory domain when peer map fails. This is more useful v2: use dev_err instead of pr_err use bdf for identify peer gpu Signed-off-by: Harish Kasiviswanathan Reviewed-by: Felix Kuehling --- drive

Re: [PATCH] drm/amdgpu: fix amdgpu_ras_block_late_init error handler

2022-02-22 Thread Kenny Ho
On Thu, Feb 17, 2022 at 2:06 PM Alex Deucher wrote: > > On Thu, Feb 17, 2022 at 2:04 PM Nick Desaulniers > wrote: > > > > > > Alex, > > Has AMD been able to set up clang builds, yet? > > No. I think some individual teams do, but it's never been integrated > into our larger CI systems as of yet a

Re: [PATCH v2] drm/amdkfd: Print bdf in peer map failure message

2022-02-22 Thread Alex Deucher
On Tue, Feb 22, 2022 at 1:56 PM Harish Kasiviswanathan wrote: > > Print alloc node, peer node and memory domain when peer map fails. This > is more useful > > v2: use dev_err instead of pr_err > use bdf for identify peer gpu > > Signed-off-by: Harish Kasiviswanathan Reviewed-by: Alex Deucher

Re: [PATCH 2/7] drm/selftests: add drm buddy alloc limit testcase

2022-02-22 Thread Arunpravin
On 08/02/22 3:10 pm, Matthew Auld wrote: > On 03/02/2022 13:32, Arunpravin wrote: >> add a test to check the maximum allocation limit >> >> Signed-off-by: Arunpravin >> --- >> .../gpu/drm/selftests/drm_buddy_selftests.h | 1 + >> drivers/gpu/drm/selftests/test-drm_buddy.c| 60

[PATCH v2] drm/amdkfd: Print bdf in peer map failure message

2022-02-22 Thread Harish Kasiviswanathan
Print alloc node, peer node and memory domain when peer map fails. This is more useful v2: use dev_err instead of pr_err use bdf for identify peer gpu Signed-off-by: Harish Kasiviswanathan --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 11 +-- 1 file changed, 9 insertions(+), 2 dele

Re: [PATCH 1/7] drm/selftests: Move i915 buddy selftests into drm

2022-02-22 Thread Arunpravin
On 08/02/22 4:05 pm, Matthew Auld wrote: > On 03/02/2022 13:32, Arunpravin wrote: >> - move i915 buddy selftests into drm selftests folder >> - add Makefile and Kconfig support >> - add sanitycheck testcase >> >> Prerequisites >> - These series of selftests patches are created on top of >>dr

Re: [PATCH 2/2] drm/amdgpu: use ktime rather than jiffies for benchmark results

2022-02-22 Thread Felix Kuehling
Am 2022-02-21 um 17:30 schrieb Alex Deucher: To protect against wraparounds. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 31 ++- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c

[PATCH v2 7/7] drm/selftests: add drm buddy pathological testcase

2022-02-22 Thread Arunpravin
create a pot-sized mm, then allocate one of each possible order within. This should leave the mm with exactly one page left. Free the largest block, then whittle down again. Eventually we will have a fully 50% fragmented mm. v2(Matthew Auld): - removed unnecessary test succeeded print - replac

[PATCH v2 6/7] drm/selftests: add drm buddy smoke testcase

2022-02-22 Thread Arunpravin
- add a test to ascertain that the critical functionalities of the program is working fine - add a timeout helper function v2: - removed unnecessary test succeeded print - replace list_del()/list_add_tail() with list_move_tail() Signed-off-by: Arunpravin Reviewed-by: Matthew Auld Acked-by

[PATCH v2 5/7] drm/selftests: add drm buddy pessimistic testcase

2022-02-22 Thread Arunpravin
create a pot-sized mm, then allocate one of each possible order within. This should leave the mm with exactly one page left. v2: - removed unnecessary test succeeded print - replace list_del()/list_add_tail() with list_move_tail() Signed-off-by: Arunpravin Reviewed-by: Matthew Auld Acked-by

[PATCH v2 4/7] drm/selftests: add drm buddy optimistic testcase

2022-02-22 Thread Arunpravin
create a mm with one block of each order available, and try to allocate them all. v2(Matthew Auld): - removed unnecessary test succeeded print - replace list_del()/list_add_tail() with list_move_tail() Signed-off-by: Arunpravin Reviewed-by: Matthew Auld Acked-by: Christian König --- .../g

[PATCH v2 2/7] drm/selftests: add drm buddy alloc limit testcase

2022-02-22 Thread Arunpravin
add a test to check the maximum allocation limit v2(Matthew Auld): - added err = -EINVAL in block NULL check - removed unnecessary test succeeded print Signed-off-by: Arunpravin Reviewed-by: Matthew Auld Acked-by: Christian König --- .../gpu/drm/selftests/drm_buddy_selftests.h | 1 + d

[PATCH v2 3/7] drm/selftests: add drm buddy alloc range testcase

2022-02-22 Thread Arunpravin
- add a test to check the range allocation - export get_buddy() function in drm_buddy.c - export drm_prandom_u32_max_state() in lib/drm_random.c - include helper functions - include prime number header file v2: - add drm_get_buddy() function description (Matthew Auld) - removed unnecessary tes

[PATCH v2 1/7] drm/selftests: Move i915 buddy selftests into drm

2022-02-22 Thread Arunpravin
- move i915 buddy selftests into drm selftests folder - add Makefile and Kconfig support - add sanitycheck testcase Prerequisites - These series of selftests patches are created on top of drm buddy series - Enable kselftests for DRM as a module in .config Signed-off-by: Arunpravin Acked-by: Ch

Re: [PATCH v11 2/2] drm/amdgpu: add reset register dump trace on GPU

2022-02-22 Thread Andrey Grodzovsky
Reviewed-by: Andrey Grodzovsky Andrey On 2022-02-22 09:37, Somalapuram Amaranath wrote: Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 + drivers/gpu/drm/amd/amdgpu/amdg

Re: [PATCH] drm/amdgpu: limit harvest bit read on several ASICs

2022-02-22 Thread Alex Deucher
On Tue, Feb 22, 2022 at 10:07 AM Guchun Chen wrote: > > Due to faulty VBIOS out there, harvest bit setting is not > consistently correct especially for display IP. So far, > it's hard to work out a solution on all the legacy Navi1x > ASICs in a short time, so to avoid regression, limit harvest > b

Re: [PATCH 10/10] drm/amd/display: Turn global functions into static functions

2022-02-22 Thread Alex Deucher
On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Turn previously global functions into static functions to avoid > -Wmissing-prototype warnings, such as: > > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn30/irq_service_dcn30.c:50:20: > warning: no previous prototype for function 'to_dal_ir

Re: [PATCH 09/10] drm/amd/display: Add missing prototypes to dcn201_init

2022-02-22 Thread Alex Deucher
Applied. Thanks! On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Include the header with the prototype to silence the following clang > warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_init.c:127:6: > warning: no previous prototype for function 'dcn201_hw_sequencer_cons

Re: [PATCH 08/10] drm/amd/display: Remove unused variable

2022-02-22 Thread Alex Deucher
Applied. Thanks! On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Remove the variable clamshell_closed from the function > dcn10_align_pixel_clocks. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2063:7: > w

Re: [PATCH 07/10] drm/amd/display: Remove unused dmub_outbox_irq_info_funcs variable

2022-02-22 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Remove the unused struct irq_source_info_funcs > dmub_outbox_irq_info_funcs from the file, which was declared but never > hooked up. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amd

Re: [PATCH 06/10] drm/amd/display: Remove vupdate_int_entry definition

2022-02-22 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Remove the vupdate_int_entry definition and utilization to avoid the > following warning by Clang: > > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:410:2: > warning: initializer overrides prio

Re: [PATCH 05/10] drm/amd/display: Remove unused dcn316_smu_set_voltage_via_phyclk function

2022-02-22 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Remove dcn316_smu_set_voltage_via_phyclk function, which is not used in the > codebase. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c

Re: [PATCH 04/10] drm/amd/display: Remove unused temp variable

2022-02-22 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:18 AM Maíra Canal wrote: > > Remove unused temp variable from the dmub_rb_flush_pending function by > using arithmetic to remove the loop. > > The -Wunused-but-set-variable warning was pointed out by Clang with the > following warning: > > drivers

Re: [PATCH 03/10] drm/amdgpu: Remove unused get_umc_v8_7_channel_index function

2022-02-22 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:17 AM Maíra Canal wrote: > > Remove get_umc_v8_7_channel_index function, which is not used > in the codebase. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/umc_v8_7.c:50:24: warning: unused function > 'ge

Re: [PATCH 02/10] drm/amdgpu: Remove tmp unused variable

2022-02-22 Thread Alex Deucher
On Tue, Feb 22, 2022 at 8:17 AM Maíra Canal wrote: > > The variable tmp is not used in the dce_v6_0_hpd_fini and > dce_v8_0_hpd_fini functions. Therefor, the variable is removed in order to > avoid the following Clang warnings: > > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:331:6: warning: variable 'tm

Re: [PATCH 01/10] drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope

2022-02-22 Thread Alex Deucher
Applied. Thanks! On Tue, Feb 22, 2022 at 8:17 AM Maíra Canal wrote: > > Turn previously global function into a static function to avoid the > following Clang warning: > > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:5: warning: no previous prototype > for function 'amdgpu_ras_block_late_init_def

Re: [PATCH] PCI: Apply quirk_amd_harvest_no_ats to all navi10 and 14 asics

2022-02-22 Thread Christian König
Am 22.02.22 um 17:08 schrieb Alex Deucher: There are enough vbios escapes without the proper workaround that some users still hit this. MS never productized ATS on windows so OEM platforms that were windows only didn't always validate ATS. The advantages of ATS are not worth it compared to the

[PATCH] PCI: Apply quirk_amd_harvest_no_ats to all navi10 and 14 asics

2022-02-22 Thread Alex Deucher
There are enough vbios escapes without the proper workaround that some users still hit this. MS never productized ATS on windows so OEM platforms that were windows only didn't always validate ATS. The advantages of ATS are not worth it compared to the potential instabilities on harvested boards.

Re: [PATCH] drm/amdkfd: make CRAT table missing message informational only

2022-02-22 Thread Felix Kuehling
Am 2022-02-21 um 17:45 schrieb Alex Deucher: On Fri, Feb 18, 2022 at 11:25 PM Paul Menzel wrote: Dear Alex, Thank you for the patch. Am 18.02.22 um 21:42 schrieb Alex Deucher: The driver has a fallback, to make the message informational s/to/so/? fixed up locally. rather than a warning.

Re: [PATCH v12 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Somalapuram, Amaranath
On 2/22/2022 9:08 PM, Christian König wrote: Am 22.02.22 um 16:34 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath ---   drivers/gpu/drm/amd/amdgpu/amdgpu.h |  4 +   drivers/gpu/drm/amd/amdgpu/amd

Re: [PATCH v12 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Christian König
Am 22.02.22 um 16:34 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 83 + 2 fil

[PATCH v12 2/2] drm/amdgpu: add reset register dump trace on GPU

2022-02-22 Thread Somalapuram Amaranath
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 + drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 16 2 files changed, 33 insertions(+) diff --git a/drivers/gpu/

[PATCH v12 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Somalapuram Amaranath
List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 83 + 2 files changed, 87 insertions(+) diff --git a/drivers/gpu/dr

Re: [PATCH] drm/amdgpu: limit harvest bit read on several ASICs

2022-02-22 Thread Deucher, Alexander
[AMD Official Use Only] Acked-by: Alex Deucher From: Chen, Guchun Sent: Tuesday, February 22, 2022 10:07 AM To: amd-gfx@lists.freedesktop.org ; Deucher, Alexander ; Zhang, Hawking ; Koenig, Christian ; Pan, Xinhui Cc: Chen, Guchun Subject: [PATCH] drm/amdgpu:

[PATCH] drm/amdgpu: limit harvest bit read on several ASICs

2022-02-22 Thread Guchun Chen
Due to faulty VBIOS out there, harvest bit setting is not consistently correct especially for display IP. So far, it's hard to work out a solution on all the legacy Navi1x ASICs in a short time, so to avoid regression, limit harvest bit read on several ASICs. Will revisit later once VBIOS has corre

RE: [PATCH] drm/amdgpu: config HDP_MISC_CNTL.READ_BUFFER_WATERMARK to fix applications running across multiple GPU config hang.

2022-02-22 Thread Kasiviswanathan, Harish
[Public] I think is safer only to set it for IP_VERSION(4, 4, 0): which is Aldebaran. From: amd-gfx On Behalf Of Deucher, Alexander Sent: Tuesday, February 22, 2022 8:55 AM To: Chen, Xiaogang ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: config HDP_MISC_CNTL.READ_BUFFER_WATE

RE: [PATCH v2] drm/amd/display: add GTT domain support for dcn 3.1.5 and 3.1.6

2022-02-22 Thread Zhang, Yifan
[AMD Official Use Only] Hi Alex, I'm OK w/ this series. Acked. BRs, Yifan -Original Message- From: Alex Deucher Sent: Tuesday, February 22, 2022 10:17 PM To: Wentland, Harry Cc: Zhang, Yifan ; amd-gfx list ; Li, Sun peng (Leo) ; Deucher, Alexander ; Liang, Prike ; Yin, Tianci (Ric

RE: [PATCH 1/2] drm/amdgpu/display: split dmcu and gpuvm handling logic

2022-02-22 Thread Zhang, Yifan
[AMD Official Use Only] This series is Acked-by: Yifan Zhang -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Tuesday, February 22, 2022 3:54 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 1/2] drm/amdgpu/display: split dmcu and gpuvm handl

Re: [PATCH v11 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Christian König
Am 22.02.22 um 15:37 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 81 + 2

[PATCH v11 2/2] drm/amdgpu: add reset register dump trace on GPU

2022-02-22 Thread Somalapuram Amaranath
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 + drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 16 2 files changed, 33 insertions(+) diff --git a/drivers/gpu/

[PATCH v11 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Somalapuram Amaranath
List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 81 + 2 files changed, 85 insertions(+) diff --git a/drivers/gpu/dr

Re: [PATCH v2] drm/amd/display: add GTT domain support for dcn 3.1.5 and 3.1.6

2022-02-22 Thread Alex Deucher
How about this series instead? https://patchwork.freedesktop.org/series/100519/ Alex On Tue, Feb 22, 2022 at 8:53 AM Harry Wentland wrote: > > On 2022-02-22 01:03, Yifan Zhang wrote: > > From: "Tianci.Yin" > > > > this patch adds GTT domain support for dcn 3.1.5 and 3.1.6 > > > > Signed-off-by:

[PATCH 10/10] drm/amd/display: Turn global functions into static functions

2022-02-22 Thread Maíra Canal
Turn previously global functions into static functions to avoid -Wmissing-prototype warnings, such as: drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn30/irq_service_dcn30.c:50:20: warning: no previous prototype for function 'to_dal_irq_source_dcn30' [-Wmissing-prototypes] enum dc_irq_source to_da

[PATCH 02/10] drm/amdgpu: Remove tmp unused variable

2022-02-22 Thread Maíra Canal
The variable tmp is not used in the dce_v6_0_hpd_fini and dce_v8_0_hpd_fini functions. Therefor, the variable is removed in order to avoid the following Clang warnings: drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:331:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] u32 tmp;

[PATCH 06/10] drm/amd/display: Remove vupdate_int_entry definition

2022-02-22 Thread Maíra Canal
Remove the vupdate_int_entry definition and utilization to avoid the following warning by Clang: drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:410:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] vupdate_no_lock_int_ent

[PATCH 03/10] drm/amdgpu: Remove unused get_umc_v8_7_channel_index function

2022-02-22 Thread Maíra Canal
Remove get_umc_v8_7_channel_index function, which is not used in the codebase. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/umc_v8_7.c:50:24: warning: unused function 'get_umc_v8_7_channel_index' [-Wunused-function] static inline uint32_t get_umc_v8_7_channel_i

[PATCH 01/10] drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope

2022-02-22 Thread Maíra Canal
Turn previously global function into a static function to avoid the following Clang warning: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:5: warning: no previous prototype for function 'amdgpu_ras_block_late_init_default' [-Wmissing-prototypes] int amdgpu_ras_block_late_init_default(struct amdgpu_

[PATCH 00/10] Fix multiple compilation warnings

2022-02-22 Thread Maíra Canal
This patchset intends to deal with a couple of warnings in the AMD graphic drivers. All warnings were generated with Clang and W=1 flag. Maíra Canal (10): drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope drm/amdgpu: Remove tmp unused variable drm/amdgpu: Remove unused get

[PATCH 08/10] drm/amd/display: Remove unused variable

2022-02-22 Thread Maíra Canal
Remove the variable clamshell_closed from the function dcn10_align_pixel_clocks. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2063:7: warning: variable 'clamshell_closed' set but not used [-Wunused-but-set-variable]

[PATCH 04/10] drm/amd/display: Remove unused temp variable

2022-02-22 Thread Maíra Canal
Remove unused temp variable from the dmub_rb_flush_pending function by using arithmetic to remove the loop. The -Wunused-but-set-variable warning was pointed out by Clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:12: warning: variable 'temp' set bu

[PATCH 05/10] drm/amd/display: Remove unused dcn316_smu_set_voltage_via_phyclk function

2022-02-22 Thread Maíra Canal
Remove dcn316_smu_set_voltage_via_phyclk function, which is not used in the codebase. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:171:5: warning: no previous prototype for function 'dcn316_smu_set_voltage_via_phyclk' [

[PATCH 09/10] drm/amd/display: Add missing prototypes to dcn201_init

2022-02-22 Thread Maíra Canal
Include the header with the prototype to silence the following clang warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_init.c:127:6: warning: no previous prototype for function 'dcn201_hw_sequencer_construct' [-Wmissing-prototypes] void dcn201_hw_sequencer_construct(struct dc *dc

[PATCH 07/10] drm/amd/display: Remove unused dmub_outbox_irq_info_funcs variable

2022-02-22 Thread Maíra Canal
Remove the unused struct irq_source_info_funcs dmub_outbox_irq_info_funcs from the file, which was declared but never hooked up. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn201/irq_service_dcn201.c:141:43: warning: unused variable 'dmub_ou

Re: [PATCH] drm/amdgpu: config HDP_MISC_CNTL.READ_BUFFER_WATERMARK to fix applications running across multiple GPU config hang.

2022-02-22 Thread Deucher, Alexander
[Public] Please be sure to test this on other asics which use the HDP 4.0 code. I don't think this field exists for all of them. Alex From: amd-gfx on behalf of Xiaogang.Chen Sent: Monday, February 21, 2022 6:05 PM To: amd-gfx@lists.freedesktop.org Cc: Chen

Re: [PATCH v2] drm/amd/display: add GTT domain support for dcn 3.1.5 and 3.1.6

2022-02-22 Thread Harry Wentland
On 2022-02-22 01:03, Yifan Zhang wrote: > From: "Tianci.Yin" > > this patch adds GTT domain support for dcn 3.1.5 and 3.1.6 > > Signed-off-by: Tianci.Yin > Signed-off-by: Yifan Zhang Acked-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 ++ > 1 file change

Re: [PATCH v13 4/5] drm/amdgpu: move vram inline functions into a header

2022-02-22 Thread Christian König
Am 21.02.22 um 17:45 schrieb Arunpravin: Move shared vram inline functions and structs into a header file Signed-off-by: Arunpravin Patches #1-#3 haven been pushed to drm-misc-next. For this one it might be better to squash that into commit #5 as well since this is otherwise unused. Might

Re: [PATCH v13 5/5] drm/amdgpu: add drm buddy support to amdgpu

2022-02-22 Thread Christian König
Am 21.02.22 um 17:45 schrieb Arunpravin: - Remove drm_mm references and replace with drm buddy functionalities - Add res cursor support for drm buddy v2(Matthew Auld): - replace spinlock with mutex as we call kmem_cache_zalloc (..., GFP_KERNEL) in drm_buddy_alloc() function - lock dr

Re: [PATCH 1/2] drm/amdgpu: use kernel BO API for benchmark buffer management

2022-02-22 Thread Christian König
Am 21.02.22 um 23:30 schrieb Alex Deucher: Simplifies the code quite a bit. Signed-off-by: Alex Deucher Reviewed-by: Christian König for the series. --- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 78 --- 1 file changed, 17 insertions(+), 61 deletions(-) diff --git

Re: [PATCH 7/7] drm/amdgpu: drop testing module parameter

2022-02-22 Thread Christian König
Am 22.02.22 um 10:07 schrieb Michel Dänzer: On 2022-02-21 22:35, Alex Deucher wrote: On Mon, Feb 21, 2022 at 12:44 PM Michel Dänzer wrote: On 2022-02-18 23:26, Alex Deucher wrote: This was always duplicate functionality with the benchmark tests. Not really. The purpose of amdgpu_do_test_m

Re: [PATCH] drm/amdgpu: Fixed warning reported by kernel test robot

2022-02-22 Thread Paul Menzel
Dear yipechai, Am 22.02.22 um 09:39 schrieb Zhou1, Tao: [AMD Official Use Only] With my inline concerns addressed, the patch is: Reviewed-by: Tao Zhou -Original Message- From: Chai, Thomas Can you please configure the full name too for the From: header field, and Signed-off-by

[PATCH] drm/sched: Add device pointer to drm_gpu_scheduler

2022-02-22 Thread Jiawei Gu
Add device pointer so scheduler's printing can use DRM_DEV_ERROR() instead, which makes life easier under multiple GPU scenario. v2: amend all calls of drm_sched_init() v3: fill dev pointer for all drm_sched_init() calls Signed-off-by: Jiawei Gu --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c |

Re: [PATCH v10 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Christian König
Am 22.02.22 um 10:35 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 92 + 2 fil

[PATCH v10 2/2] drm/amdgpu: add reset register dump trace on GPU reset

2022-02-22 Thread Somalapuram Amaranath
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 16 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 16 2 files changed, 32 insertions(+) diff --git a/drivers/gpu/d

[PATCH v10 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-22 Thread Somalapuram Amaranath
List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 92 + 2 files changed, 96 insertions(+) diff --git a/drivers/gpu/dr

Re: [PATCH 7/7] drm/amdgpu: drop testing module parameter

2022-02-22 Thread Michel Dänzer
On 2022-02-21 22:35, Alex Deucher wrote: > On Mon, Feb 21, 2022 at 12:44 PM Michel Dänzer > wrote: >> >> On 2022-02-18 23:26, Alex Deucher wrote: >>> This was always duplicate functionality with the benchmark tests. >> >> Not really. The purpose of amdgpu_do_test_moves is testing that copies >> b

RE: [PATCH] drm/amdgpu: add mode2 reset support for smu 13.0.5

2022-02-22 Thread Huang, Ray
[AMD Official Use Only] Reviewed-by: Huang Rui -Original Message- From: Zhang, Yifan Sent: Tuesday, February 22, 2022 4:26 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Huang, Ray ; Zhang, Yifan Subject: [PATCH] drm/amdgpu: add mode2 reset support for smu 13.0.5 This

[PATCH] powerpc: Fix missing declaration of [en/dis]able_kernel_altivec()

2022-02-22 Thread Magali Lemes
When CONFIG_PPC64 is set and CONFIG_ALTIVEC is not the following build failures occur: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c: In function 'dc_fpu_begin': >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:61:17: error: >> implicit declaration of function 'enable_ke

RE: [PATCH] drm/amdgpu: Fixed warning reported by kernel test robot

2022-02-22 Thread Zhou1, Tao
[AMD Official Use Only] With my inline concerns addressed, the patch is: Reviewed-by: Tao Zhou > -Original Message- > From: Chai, Thomas > Sent: Tuesday, February 22, 2022 3:07 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chai, Thomas ; Zhang, Hawking > ; Zhou1, Tao ; Clements, > John

[PATCH] drm/amdgpu: add mode2 reset support for smu 13.0.5

2022-02-22 Thread Yifan Zhang
This patch adds mode2 reset support for smu 13.0.5. Signed-off-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 74e0550d00bd..80caf73bc2ce 100644 --- a/drivers/gpu/drm/a