[PATCH 2/4] amdgpu/pm: Replace vega12, 20 usage of sprintf with sysfs_emit

2021-08-08 Thread Darren Powell
=== Test === AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1` AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | awk '{print $9}'` HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON} LOGFILE=pp_printf.test.log lspci -nn | grep "VGA\|Display" > $LOGFILE FILES="pp_dpm_sclk p

[PATCHv3 1/2] drm/amd/amdgpu embed hw_fence into amdgpu_job

2021-08-08 Thread Jingwen Chen
From: 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_j

[PATCH] drm/amdgpu: Extend full access wait time in guest

2021-08-08 Thread Peng Ju Zhou
From: Victor Zhao - Extend wait time and add retry, currently 3s * 4times - Change timing algorithm Signed-off-by: Victor Zhao Signed-off-by: Peng Ju Zhou --- drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gp

[PATCH v2] drm/amdgpu: Extend full access wait time in guest

2021-08-08 Thread Peng Ju Zhou
From: Victor Zhao - Extend wait time and add retry, currently 6s * 2times - Change timing algorithm Signed-off-by: Victor Zhao Signed-off-by: Peng Ju Zhou --- drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gp

RE: [PATCH v2] drm/amdgpu: Extend full access wait time in guest

2021-08-08 Thread Zhao, Victor
[AMD Official Use Only] Reviewed-by: Victor Zhao -Original Message- From: Peng Ju Zhou Sent: Monday, August 9, 2021 1:31 PM To: amd-gfx@lists.freedesktop.org Cc: Zhao, Victor ; Zhou, Peng Ju Subject: [PATCH v2] drm/amdgpu: Extend full access wait time in guest From: Victor Zhao - E

Re: [PATCHv2 1/2] drm/amd/amdgpu embed hw_fence into amdgpu_job

2021-08-08 Thread Jingwen Chen
On Fri Aug 06, 2021 at 11:48:04AM +0200, Christian König wrote: > > > Am 06.08.21 um 07:52 schrieb Jingwen Chen: > > On Thu Aug 05, 2021 at 05:13:22PM -0400, Andrey Grodzovsky wrote: > > > On 2021-08-05 4:31 a.m., Jingwen Chen wrote: > > > > From: Jack Zhang > > > > > > > > Why: Previously hw f