[pull] amdgpu drm-fixes-6.4

2023-05-31 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 6.4. The following changes since commit 7877cb91f1081754a1487c144d85dc0d2e2e7fc4: Linux 6.4-rc4 (2023-05-28 07:49:00 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-fixes-6.4-2023-05-31 for you to

Re: [PATCH v2 1/2] drm/amd: Disallow s0ix without BIOS support again

2023-05-31 Thread Alex Deucher
On Wed, May 31, 2023 at 9:26 AM Alex Deucher wrote: > > On Tue, May 30, 2023 at 6:34 PM Mario Limonciello > wrote: > > > > commit cf488dcd0ab7 ("drm/amd: Allow s0ix without BIOS support") showed > > improvements to power consumption over suspend when s0ix wasn't enabled in > > BIOS and the

[PATCH 4/4] drm/amd/pm: fulfill the OD support for SMU13.0.7

2023-05-31 Thread Evan Quan
Fulfill the interfaces for OD settings retrieving and setting. Signed-off-by: Evan Quan --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 445 -- 1 file changed, 402 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

[PATCH 3/4] drm/amd/pm: fulfill the OD support for SMU13.0.0

2023-05-31 Thread Evan Quan
Fulfill the interfaces for OD settings retrieving and setting. Signed-off-by: Evan Quan --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 445 -- 1 file changed, 402 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

[PATCH 2/4] drm/amd/pm: fulfill SMU13 OD settings init and restore

2023-05-31 Thread Evan Quan
Gfxclk fmin/fmax, Uclk fmin/fmax and Gfx v/f curve voltage offset OD settings are supported for SMU13. Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/amdgpu_pm.c| 26 +++- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c| 13 +- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c |

[PATCH 1/4] drm/amd/pm: update SMU13 header files for coming OD support

2023-05-31 Thread Evan Quan
Correct the data structures for OD feature support. Signed-off-by: Evan Quan --- .../gpu/drm/amd/pm/inc/smu_v13_0_0_pptable.h | 16 +- .../inc/pmfw_if/smu13_driver_if_v13_0_0.h | 18 +++- .../inc/pmfw_if/smu13_driver_if_v13_0_7.h | 29 ---

[PATCH 0/4] Enable legacy OD support for SMU13

2023-05-31 Thread Evan Quan
Enable the following OD features support for SMU13: - Maxinum and minimum gfxclk frequency settings - Maxinum and minimum uclk frequency settings - Voltage offset settings for gfxclk v/f curve line - This is quite different from previous generations/ASICs. For SMU13, there are six anchor

[PATCH] drm/amd/pm: Vangogh: Add new gpu_metrics_v2_4 to acquire gpu_metrics

2023-05-31 Thread Wenyou Yang
To acquire the voltage and current info from gpu_metrics interface, but gpu_metrics_v2_3 doesn't contain them, and to be backward compatible, add new gpu_metrics_v2_4 structure. Acked-by: Evan Quan Signed-off-by: Wenyou Yang --- .../gpu/drm/amd/include/kgd_pp_interface.h| 69 +++

RE: [PATCH 01/33] drm/amdkfd: add debug and runtime enable interface

2023-05-31 Thread Kim, Jonathan
[Public] > -Original Message- > From: Alex Deucher > Sent: Wednesday, May 31, 2023 2:15 PM > To: Kuehling, Felix > Cc: Kim, Jonathan ; amd- > g...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Huang, JinHuiEric > > Subject: Re: [PATCH 01/33] drm/amdkfd: add debug and runtime

Re: [PATCH] drm/amdkfd: remove unused sq_int_priv variable

2023-05-31 Thread Alex Deucher
On Thu, Mar 30, 2023 at 12:04 PM Kim, Jonathan wrote: > > [Public] > > Hi Felix, > > That is correct. The debugger will need sq_int_priv to work. I'll just apply this for now. We can squash the revert into the debugger changes once those land. Alex > > Thanks, > > Jon > > > -Original

Re: [PATCH] drm/amdgpu: Add function parameter 'event' to kdoc in svm_range_evict()

2023-05-31 Thread Felix Kuehling
Am 2023-05-31 um 14:10 schrieb Srinivasan Shanmugam: Fixes the following gcc with W=1: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c:1841: warning: Function parameter or member 'event' not described in 'svm_range_evict' Cc: Felix Kuehling Cc: Christian König Cc: Alex Deucher

Re: [PATCH 01/33] drm/amdkfd: add debug and runtime enable interface

2023-05-31 Thread Alex Deucher
On Tue, May 30, 2023 at 3:17 PM Felix Kuehling wrote: > > Am 2023-05-25 um 13:27 schrieb Jonathan Kim: > > Introduce the GPU debug operations interface. > > > > For ROCm-GDB to extend the GNU Debugger's ability to inspect the AMD GPU > > instruction set, provide the necessary interface to allow

Re: [PATCH] drm/amdgpu: Fix up kdoc in amdgpu_device.c

2023-05-31 Thread Alex Deucher
Reviewed-by: Alex Deucher On Thu, May 25, 2023 at 1:29 PM Srinivasan Shanmugam wrote: > > Fix these warnings by deleting the deviant arguments. > > gcc with W=1 > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:799: warning: Excess function > parameter 'pcie_index' description in

[PATCH] drm/amdgpu: Add function parameter 'event' to kdoc in svm_range_evict()

2023-05-31 Thread Srinivasan Shanmugam
Fixes the following gcc with W=1: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c:1841: warning: Function parameter or member 'event' not described in 'svm_range_evict' Cc: Felix Kuehling Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam ---

Re: [PATCH] drm/amdgpu: Fix up kdoc 'ring' parameter in sdma_v6_0_ring_pad_ib

2023-05-31 Thread Alex Deucher
Reviewed-by: Alex Deucher On Tue, May 30, 2023 at 2:49 PM Srinivasan Shanmugam wrote: > > Fix this warning by adding 'ring' arguments to kdoc. > > gcc with W=1 > drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:1128: warning: Function parameter or > member 'ring' not described in 'sdma_v6_0_ring_pad_ib'

[PATCH v2] drm/amd/display: Drop unused DCN_BASE variable in dcn314_resource.c

2023-05-31 Thread Srinivasan Shanmugam
Fixes the following W=1 kernel build warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:128:29: warning: ‘DCN_BASE’ defined but not used [-Wunused-const-variable=] 128 | static const struct IP_BASE DCN_BASE = { { { { 0x0012, 0x00C0, 0x34C0, 0x9000,

Re: [PATCH] drm/amdgpu/gfx9: switch to golden tsc registers for raven/raven2

2023-05-31 Thread Michel Dänzer
On 5/31/23 16:01, Alex Deucher wrote: > On Mon, May 29, 2023 at 5:45 AM Michel Dänzer wrote: >> >> On 4/12/23 03:23, Zhang, Jesse(Jie) wrote: >>> >>> Due to raven/raven2 maybe enable sclk slow down, >>> they cannot get clock count by the RLC at the auto level of dpm >>> performance. >>>

Re: [PATCH] drm/amd: SVM flag error added at svm_range flags

2023-05-31 Thread Felix Kuehling
This flag was never meant for user mode. Alex ended up implementing it differently in a way that doesn't need to change the flags exposed to user mode. See his patch "drm/amdkfd: flag added to handle errors from svm validate and map". This patch is no longer needed. Regards,   Felix Am

Re: [PATCH v2] drm/amd/display: Fix up kdoc formatting in dcn32_resource_helpers.c

2023-05-31 Thread Aurabindo Pillai
Reviewed-by: Aurabindo Pillai On 5/31/23 05:22, Srinivasan Shanmugam wrote: > Fixes the following W=1 kernel build warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:97: > warning: Cannot understand * >

Re: [PATCH v2] drm/amd/display: Fix up missing 'dc' & 'pipe_ctx' kdoc parameters in delay_cursor_until_vupdate()

2023-05-31 Thread Aurabindo Pillai
Reviewed-by: Aurabindo Pillai On 5/31/23 01:11, Srinivasan Shanmugam wrote: > Fixes the following gcc with W=1: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:1904: > warning: Function parameter or member 'dc' not described in > 'delay_cursor_until_vupdate' >

Re: [PATCH] drm/amd/display: Correct kdoc formatting for DCN32_CRB_SEGMENT_SIZE_KB in dcn32_hubbub.c

2023-05-31 Thread Aurabindo Pillai
Reviewed-by: Aurabindo Pillai On 5/30/23 23:52, Srinivasan Shanmugam wrote: > Fixes the following W=1 kernel build warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hubbub.c:45: warning: > Cannot understand * @DCN32_CRB_SEGMENT_SIZE_KB: Maximum Configurable Return > Buffer

[PATCH] Revert "drm/amdgpu: Enable VM_CONTEXT1_CNTL after page table addr is set."

2023-05-31 Thread Alex Deucher
This reverts commit f57a74f5b42d1627bd5366f88952d42819e91146. After talking this over with Christian, the original programming sequence was correct. The enable bit needs to be set before programming the rest of the context. Signed-off-by: Alex Deucher Cc: Zibin Liu ---

Re: [PATCH v2 1/2] drm/amd: Disallow s0ix without BIOS support again

2023-05-31 Thread Alex Deucher
On Wed, May 31, 2023 at 10:20 AM Mario Limonciello wrote: > > On 5/31/23 08:26, Alex Deucher wrote: > > On Tue, May 30, 2023 at 6:34 PM Mario Limonciello > > wrote: > >> > >> commit cf488dcd0ab7 ("drm/amd: Allow s0ix without BIOS support") showed > >> improvements to power consumption over

Re: [PATCH v2 1/2] drm/amd: Disallow s0ix without BIOS support again

2023-05-31 Thread Mario Limonciello
On 5/31/23 08:26, Alex Deucher wrote: On Tue, May 30, 2023 at 6:34 PM Mario Limonciello wrote: commit cf488dcd0ab7 ("drm/amd: Allow s0ix without BIOS support") showed improvements to power consumption over suspend when s0ix wasn't enabled in BIOS and the system didn't support S3. This patch

Re: [PATCH] drm/amd/display: Fix up kdoc formatting in display_mode_vba.c

2023-05-31 Thread Aurabindo Pillai
Reviewed-by: Aurabindo Pillai On 5/30/23 15:08, Srinivasan Shanmugam wrote: > Fixes the following W=1 kernel build warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_vba.c:936: warning: > Cannot understand * >

Re: [PATCH] drm/amd: SVM flag error added at svm_range flags

2023-05-31 Thread Deucher, Alexander
[Public] Where is the userspace code which uses this new interface? Can you add a link to the relevant branch to the commit message? Alex From: amd-gfx on behalf of Alex Sierra Sent: Monday, May 29, 2023 4:09 PM To: amd-gfx@lists.freedesktop.org ; Kuehling,

RE: [PATCH] drm/amd/pm: add unique serial number support for smu_v13_0_6

2023-05-31 Thread Zhang, Hawking
[AMD Official Use Only - General] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Kamal, Asad Sent: Wednesday, May 31, 2023 21:16 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Lazar, Lijo ; Ma, Le ; Zhang, Morris ; Wang, Yang(Kevin) Subject: [PATCH]

Re: [PATCH] drm/amdgpu/gfx9: switch to golden tsc registers for raven/raven2

2023-05-31 Thread Alex Deucher
On Mon, May 29, 2023 at 5:45 AM Michel Dänzer wrote: > > On 4/12/23 03:23, Zhang, Jesse(Jie) wrote: > > > > Due to raven/raven2 maybe enable sclk slow down, > > they cannot get clock count by the RLC at the auto level of dpm > > performance. > > So switch to golden tsc register. > >

Re: [PATCH v2] drm/ttm: Remove redundant code in ttm_tt_init_fields

2023-05-31 Thread Ma, Jun
On 5/31/2023 4:45 PM, Christian König wrote: > Am 31.05.23 um 08:20 schrieb Chen, Guchun: >> [Public] >> >>> -Original Message- >>> From: amd-gfx On Behalf Of Ma >>> Jun >>> Sent: Wednesday, May 31, 2023 1:31 PM >>> To: amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org;

[PATCH AUTOSEL 5.4 17/17] drm:amd:amdgpu: Fix missing buffer object unlock in failure path

2023-05-31 Thread Sasha Levin
From: Sukrut Bellary [ Upstream commit 60ecaaf54886b0642d5c4744f7fbf1ff0d6b3e42 ] smatch warning - 1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume() warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'. 2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901

[PATCH AUTOSEL 5.10 21/21] drm:amd:amdgpu: Fix missing buffer object unlock in failure path

2023-05-31 Thread Sasha Levin
From: Sukrut Bellary [ Upstream commit 60ecaaf54886b0642d5c4744f7fbf1ff0d6b3e42 ] smatch warning - 1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume() warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'. 2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901

[PATCH AUTOSEL 5.15 23/24] drm:amd:amdgpu: Fix missing buffer object unlock in failure path

2023-05-31 Thread Sasha Levin
From: Sukrut Bellary [ Upstream commit 60ecaaf54886b0642d5c4744f7fbf1ff0d6b3e42 ] smatch warning - 1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume() warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'. 2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901

[PATCH AUTOSEL 6.1 31/33] drm:amd:amdgpu: Fix missing buffer object unlock in failure path

2023-05-31 Thread Sasha Levin
From: Sukrut Bellary [ Upstream commit 60ecaaf54886b0642d5c4744f7fbf1ff0d6b3e42 ] smatch warning - 1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume() warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'. 2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901

[PATCH AUTOSEL 6.3 35/37] drm:amd:amdgpu: Fix missing buffer object unlock in failure path

2023-05-31 Thread Sasha Levin
From: Sukrut Bellary [ Upstream commit 60ecaaf54886b0642d5c4744f7fbf1ff0d6b3e42 ] smatch warning - 1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume() warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'. 2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901

Re: [PATCH] drm/amdgpu: Rearrange WREG32 operations in gfxhub_v2_1.c

2023-05-31 Thread Christian König
Am 20.05.23 um 13:59 schrieb ghostfly233: In gfxhub_v2_1_setup_vmid_config(), the GCVM_CONTEXT1_CNTL reg is written before related GCVM_CONTEXT1_PAGE_TABLE_START_ADDR and GCVM_CONTEXT1_PAGE_TABLE_END_ADDR regs are written, which may cause undefined behavior. In which hw documentation did you

Re: [PATCH v2 1/2] drm/amd: Disallow s0ix without BIOS support again

2023-05-31 Thread Alex Deucher
On Tue, May 30, 2023 at 6:34 PM Mario Limonciello wrote: > > commit cf488dcd0ab7 ("drm/amd: Allow s0ix without BIOS support") showed > improvements to power consumption over suspend when s0ix wasn't enabled in > BIOS and the system didn't support S3. > > This patch however was misguided because

[PATCH] drm/amd/pm: add unique serial number support for smu_v13_0_6

2023-05-31 Thread Asad Kamal
From: Yang Wang add unique serial number support for smu_v13_0_6. (use aid0 serial number by default) Signed-off-by: Yang Wang Signed-off-by: Asad Kamal Reviewed-by: Lijo Lazar --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 20 --- 1 file changed, 8 insertions(+), 12

[PATCH 3/3] drm/amd/pm: Add throttle status in power context

2023-05-31 Thread Asad Kamal
From: Lijo Lazar Keep throttle status indicator in SMUv13 power context Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h

[PATCH 2/3] drm/amd/pm: Fix SMUv13.0.6 throttle status report

2023-05-31 Thread Asad Kamal
From: Lijo Lazar Instead of accumulated counters, PMFW will pass the throttle reason along with throttle interrupt. Use that context information to report the exact reason for throttling. Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c |

[PATCH 1/3] drm/amd/pm: Update SMUv13.0.6 PMFW headers

2023-05-31 Thread Asad Kamal
From: Lijo Lazar Update PMFW interface headers to for new metrics table format and throttling information. Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang --- .../inc/pmfw_if/smu13_driver_if_v13_0_6.h | 31 ++- .../pm/swsmu/inc/pmfw_if/smu_v13_0_6_pmfw.h | 13

Re: [PATCH v2] drm/amd/display: Fix up kdoc formatting in dcn32_resource_helpers.c

2023-05-31 Thread Deucher, Alexander
[Public] Reviewed-by: Alex Deucher From: amd-gfx on behalf of Srinivasan Shanmugam Sent: Wednesday, May 31, 2023 5:22 AM To: Pillai, Aurabindo ; Mahfooz, Hamza ; Siqueira, Rodrigo ; Wentland, Harry Cc: SHANMUGAM, SRINIVASAN ; amd-gfx@lists.freedesktop.org

Re: [PATCH v2] drm/amdgpu: skip force complete fences when ring is uninitialized

2023-05-31 Thread Christian König
Am 31.05.23 um 11:34 schrieb Bob Zhou: uvd ring in uvd_v7_0_sw_init only initializes ring in bare metal case, so when executing amdgpu_uvd_resume to restore fence seq in SRIOV, a null pointer dereference will occur. This patch correct this. Mhm, taking a higher level look at this why isn't the

Re: [PATCH] drm/amd/pm: conditionally disable pcie lane switching for some sienna_cichlid SKUs

2023-05-31 Thread Alex Deucher
Reviewed-by: Alex Deucher On Wed, May 31, 2023 at 8:12 AM Alex Deucher wrote: > > Sure. Please go ahead. > > Alex > > On Wed, May 31, 2023 at 5:54 AM Quan, Evan wrote: > > > > [AMD Official Use Only - General] > > > > Hi Alex, > > > > Can we land this as a temporary solution while we are

Re: [PATCH] drm/dp_mst: Clear MSG_RDY flag before sending new message

2023-05-31 Thread Alex Deucher
+ dri-devel On Wed, May 31, 2023 at 12:01 AM Wayne Lin wrote: > > [Why] > The sequence for collecting down_reply from source perspective should > be: > > Request_n->repeat (get partial reply of Request_n->clear message ready > flag to ack DPRX that the message is received) till all partial >

Re: [PATCH v5 08/13] drm/omapdrm: Use regular fbdev I/O helpers

2023-05-31 Thread Tomi Valkeinen
On 30/05/2023 18:02, Thomas Zimmermann wrote: Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Omapdrm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can

Re: [PATCH] drm/amd/pm: conditionally disable pcie lane switching for some sienna_cichlid SKUs

2023-05-31 Thread Alex Deucher
Sure. Please go ahead. Alex On Wed, May 31, 2023 at 5:54 AM Quan, Evan wrote: > > [AMD Official Use Only - General] > > Hi Alex, > > Can we land this as a temporary solution while we are seeking a more proper > one? > This is gating our customer and I was pushed for a solution. > > BR, > Evan

RE: [PATCH] drm/amd/pm: conditionally disable pcie lane switching for some sienna_cichlid SKUs

2023-05-31 Thread Quan, Evan
[AMD Official Use Only - General] Hi Alex, Can we land this as a temporary solution while we are seeking a more proper one? This is gating our customer and I was pushed for a solution. BR, Evan > -Original Message- > From: Quan, Evan > Sent: Friday, April 21, 2023 3:32 PM > To:

[PATCH v2] drm/amdgpu: skip force complete fences when ring is uninitialized

2023-05-31 Thread Bob Zhou
uvd ring in uvd_v7_0_sw_init only initializes ring in bare metal case, so when executing amdgpu_uvd_resume to restore fence seq in SRIOV, a null pointer dereference will occur. This patch correct this. Fixes: 043f2271e2d0 ("drm/amdgpu: mark force completed fences with -ECANCELED") BUG: kernel

[PATCH v2] drm/amd/display: Fix up kdoc formatting in dcn32_resource_helpers.c

2023-05-31 Thread Srinivasan Shanmugam
Fixes the following W=1 kernel build warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:97: warning: Cannot understand * **

RE: [PATCH] drm/amdgpu: skip force complete fences when ring is uninitialized

2023-05-31 Thread Zhou, Bob
[AMD Official Use Only - General] Hi Christian, Thanks for your suggestion. I will apply it and send out the v2 patch for review. Regards, Bob -Original Message- From: Koenig, Christian Sent: Wednesday, May 31, 2023 4:33 PM To: Zhou, Bob ; amd-gfx@lists.freedesktop.org; Min, Frank

Re: [PATCH v2] drm/ttm: Remove redundant code in ttm_tt_init_fields

2023-05-31 Thread Christian König
Am 31.05.23 um 08:20 schrieb Chen, Guchun: [Public] -Original Message- From: amd-gfx On Behalf Of Ma Jun Sent: Wednesday, May 31, 2023 1:31 PM To: amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Koenig, Christian Cc: Ma, Jun Subject: [PATCH v2] drm/ttm: Remove

Re: [PATCH] drm/amdgpu: skip force complete fences when ring is uninitialized

2023-05-31 Thread Christian König
Am 31.05.23 um 06:48 schrieb Bob Zhou: uvd ring in uvd_v7_0_sw_init only initializes ring in bare metal case, so when executing amdgpu_uvd_resume to restore fence seq in SRIOV, a null pointer dereference will occur. This patch correct this. Ah! I was already wondering how this bug reports

Re: [PATCH v2] drm/ttm: Remove redundant code in ttm_tt_init_fields

2023-05-31 Thread Ma, Jun
On 5/31/2023 2:20 PM, Chen, Guchun wrote: > [Public] > >> -Original Message- >> From: amd-gfx On Behalf Of Ma >> Jun >> Sent: Wednesday, May 31, 2023 1:31 PM >> To: amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Koenig, >> Christian >> Cc: Ma, Jun >> Subject: [PATCH

RE: [PATCH 1/3] drm/amdgpu/sdma: set sched.ready status after ring/IB test in sdma

2023-05-31 Thread Chen, Guchun
[Public] Thanks for your review, Christian. I have pushed them to amd-staging-drm-next branch with Alex's Acked-by last week. Regards, Guchun > -Original Message- > From: Koenig, Christian > Sent: Wednesday, May 31, 2023 2:39 PM > To: Alex Deucher ; Chen, Guchun > > Cc:

RE: [PATCH 1/2] drm/amd: Disallow s0ix without BIOS support again

2023-05-31 Thread Rafael Ávila de Espíndola
As far as I know the "no S3 if SMT off" is just an oddity of the particular BIOS I got on the "B550I AORUS PRO AX". Also, what has changed that would prevent the same issue I was hitting before?: https://gitlab.freedesktop.org/drm/amd/-/issues/2364#note_1735422 Cheers, Rafael "Limonciello,

Re: [PATCH][next] drm/amdgpu/discovery: Replace fake flex-arrays with flexible-array members

2023-05-31 Thread Kees Cook
On Sun, May 28, 2023 at 02:26:37PM -0600, Gustavo A. R. Silva wrote: > Zero-length and one-element arrays are deprecated, and we are moving > towards adopting C99 flexible-array members, instead. > > Use the DECLARE_FLEX_ARRAY() helper macro to transform zero-length > arrays in a union into

[PATCH -next] drm/amdkfd: clean up one inconsistent indenting

2023-05-31 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:1036 kgd2kfd_interrupt() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c

Re: [PATCH 1/3] drm/amdgpu/sdma: set sched.ready status after ring/IB test in sdma

2023-05-31 Thread Christian König
If you haven't already pushed it: Reviewed-by: Christian König for the entire series. Thanks for looking into that, Christian. Am 22.05.23 um 16:47 schrieb Alex Deucher: Series is: Acked-by: Alex Deucher On Thu, May 18, 2023 at 3:04 AM Guchun Chen wrote: sched.ready is nothing with ring

RE: [PATCH] drm/amdgpu: skip force complete fences when ring is uninitialized

2023-05-31 Thread Chen, Guchun
[Public] Reviewed-by: Guchun Chen Regards, Guchun > -Original Message- > From: Bob Zhou > Sent: Wednesday, May 31, 2023 12:48 PM > To: amd-gfx@lists.freedesktop.org; Min, Frank ; > Koenig, Christian > Cc: Chen, Guchun ; Zhou, Bob > > Subject: [PATCH] drm/amdgpu: skip force complete

RE: [PATCH v2] drm/ttm: Remove redundant code in ttm_tt_init_fields

2023-05-31 Thread Chen, Guchun
[Public] > -Original Message- > From: amd-gfx On Behalf Of Ma > Jun > Sent: Wednesday, May 31, 2023 1:31 PM > To: amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Koenig, > Christian > Cc: Ma, Jun > Subject: [PATCH v2] drm/ttm: Remove redundant code in ttm_tt_init_fields