[PATCH] Change the meaning of the fields in the ttm_place structure from pfn to bytes

2023-03-02 Thread Somalapuram Amaranath
Change the ttm_place structure member fpfn, lpfn, mem_type to res_start, res_end, res_type. Change the unsigned to u64. Fix the dependence in all the DRM drivers and clean up PAGE_SHIFT operation. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 11 +-

Re: [PATCH] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-02 Thread Thomas Glanzmann
Hello Mario, * Mario Limonciello [2023-03-02 18:27]: > The same strapping initialization issue that happened on NBIO 7.5.1 > appears to be happening on NBIO 7.3.0. > Apply the same fix to 7.3.0 as well. > Note: This workaround relies upon the integrated GPU being enabled > in BIOS. If the

Re: [PATCH 1/1] amdkfd: Memory availability can never be negative

2023-03-02 Thread Felix Kuehling
Am 2023-03-01 um 20:09 schrieb Daniel Phillips: Our assumptions about how much KFD memory is currently available for allocation may be violated by various complexities so we define the reported value as advisory, however we should never report negative availability. Signed-off-by: Daniel

Re: [PATCH] drm/amdgpu: avoid restore process run into dead loop.

2023-03-02 Thread Felix Kuehling
Am 2023-03-02 um 13:15 schrieb Gang Ba: In restore process worker, pinned BO cause update PTE fail, then the function re-schedule the restore_work. This will generate dead loop. Signed-off-by: Gang Ba Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 5

Re: [PATCH] drm/amdkfd: Ratelimit oversubscription message

2023-03-02 Thread Felix Kuehling
Am 2023-03-02 um 14:46 schrieb Kent Russell: On certain applications, this message could end up flooding dmesg. Ratelimit it so that the warning is still available, but doesn't take over the entire log Signed-off-by: Kent Russell Reviewed-by: Felix Kuehling ---

RE: [PATCH] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-02 Thread Limonciello, Mario
[Public] > -Original Message- > From: Thomas Glanzmann > Sent: Thursday, March 2, 2023 14:17 > To: Limonciello, Mario > Cc: amd-gfx@lists.freedesktop.org; Natikar, Basavaraj > > Subject: Re: [PATCH] drm/amd: Fix initialization mistake for NBIO 7.3.0 > > Hello Mario, > > * Mario

[PATCH] drm/amdkfd: Ratelimit oversubscription message

2023-03-02 Thread Kent Russell
On certain applications, this message could end up flooding dmesg. Ratelimit it so that the warning is still available, but doesn't take over the entire log Signed-off-by: Kent Russell --- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] drm/amdgpu: avoid restore process run into dead loop.

2023-03-02 Thread Gang Ba
In restore process worker, pinned BO cause update PTE fail, then the function re-schedule the restore_work. This will generate dead loop. Signed-off-by: Gang Ba --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-02 Thread Alex Deucher
On Thu, Mar 2, 2023 at 12:28 PM Mario Limonciello wrote: > > The same strapping initialization issue that happened on NBIO 7.5.1 > appears to be happening on NBIO 7.3.0. > Apply the same fix to 7.3.0 as well. > > Note: This workaround relies upon the integrated GPU being enabled > in BIOS. If the

[PATCH] drm/amd: Fix initialization mistake for NBIO 7.3.0

2023-03-02 Thread Mario Limonciello
The same strapping initialization issue that happened on NBIO 7.5.1 appears to be happening on NBIO 7.3.0. Apply the same fix to 7.3.0 as well. Note: This workaround relies upon the integrated GPU being enabled in BIOS. If the integrated GPU is disabled in BIOS a different workaround will be

[PATCH 4/4] drm/amdgpu: add PSP ip block for PSP 13.0.6

2023-03-02 Thread Alex Deucher
From: Hawking Zhang Add PSP IP handling for PSP 13.0.6 Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 3/4] drm/amdgpu: initialize ta ucode for psp v13_0_6

2023-03-02 Thread Alex Deucher
From: Hawking Zhang Initialize ta ucode for psp v13_0_6 Signed-off-by: Hawking Zhang Reviewed-by: Lijo Lazar Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH 2/4] drm/amdgpu: init sos microcode for psp v13_0_6

2023-03-02 Thread Alex Deucher
From: Hawking Zhang parse psp_v13_0_6_sos.bin and initialze various psp ucode arraies respectively Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 1/4] drm/amdgpu: add psp early init for PSP 13.0.6

2023-03-02 Thread Alex Deucher
From: Hawking Zhang Initialize psp ip callbacks for PSP 13.0.6. Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Re: [PATCH] drm/amd/display: Simplify same effect if/else blocks

2023-03-02 Thread Harry Wentland
On 3/1/23 15:21, Deepak R Varma wrote: > On Mon, Jan 23, 2023 at 12:23:19AM +0530, Deepak R Varma wrote: >> On Sun, Jan 15, 2023 at 12:52:10PM -0800, Joe Perches wrote: >>> On Sun, 2023-01-15 at 15:30 +0530, Deepak R Varma wrote: The if / else block code has same effect irrespective of the

Re: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Lazar, Lijo
On 3/2/2023 8:56 PM, Deucher, Alexander wrote: [AMD Official Use Only - General] -Original Message- From: Quan, Evan Sent: Thursday, March 2, 2023 4:31 AM To: Lazar, Lijo ; amd-gfx@lists.freedesktop.org; Deucher, Alexander Subject: RE: [PATCH] drm/amdgpu: disable cstate properly

RE: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Deucher, Alexander
[AMD Official Use Only - General] > -Original Message- > From: Quan, Evan > Sent: Thursday, March 2, 2023 4:31 AM > To: Lazar, Lijo ; amd-gfx@lists.freedesktop.org; > Deucher, Alexander > Subject: RE: [PATCH] drm/amdgpu: disable cstate properly for driver > reloading scenario > > [AMD

[PATCH] gpu: amd/pm: mark symbols static where possible for smu11

2023-03-02 Thread Jeff Pang
I get one warning when building kernel with -Werror=missing-prototypes : drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1600:5: error: no previous prototype for ‘vangogh_set_apu_thermal_limit’ [-Werror=missing-prototypes] int vangogh_set_apu_thermal_limit(struct smu_context *smu,

[linux-next:master] BUILD REGRESSION 26a4eaba02f7f917fc1340553b49a7efd419c730

2023-03-02 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 26a4eaba02f7f917fc1340553b49a7efd419c730 Add linux-next specific files for 20230302 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202302111601.jty4lkra-...@intel.com https

RE: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Quan, Evan
[AMD Official Use Only - General] > -Original Message- > From: Lazar, Lijo > Sent: Thursday, March 2, 2023 5:21 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH] drm/amdgpu: disable cstate properly for driver > reloading scenario > >

RE: [PATCH] gpu: amd/pm: mark symbols static where possible for smu11

2023-03-02 Thread Quan, Evan
[AMD Official Use Only - General] Thanks. But I think there was already a patch from Kun Liu to address this issue. https://lists.freedesktop.org/archives/amd-gfx/2023-March/090029.html BR Evan > -Original Message- > From: Jeff Pang > Sent: Thursday, March 2, 2023 5:16 PM > To: Quan,

Re: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Lazar, Lijo
On 3/2/2023 2:43 PM, Quan, Evan wrote: [AMD Official Use Only - General] -Original Message- From: Lazar, Lijo Sent: Thursday, March 2, 2023 4:28 PM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: Re: [PATCH] drm/amdgpu: disable cstate properly for

RE: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Quan, Evan
[AMD Official Use Only - General] > -Original Message- > From: Lazar, Lijo > Sent: Thursday, March 2, 2023 4:28 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH] drm/amdgpu: disable cstate properly for driver > reloading scenario > >

Re: [PATCH] drm/amdgpu: disable cstate properly for driver reloading scenario

2023-03-02 Thread Lazar, Lijo
On 3/2/2023 12:28 PM, Evan Quan wrote: Gpu reset might be needed during driver reloading. To guard that(gpu reset) work, df cstate needs to be disabled properly. Signed-off-by: Evan Quan Change-Id: I5c074c265c0b08a67b6934ae1ad9aa3fed245461 --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |

[PATCH] drm/amdgpu/gfx10: Drop unused variable

2023-03-02 Thread Yaoyao Lei
Trivial. Signed-off-by: leiyaoyao --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 073f5f23bc3b..516409989235 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c