[PATCH] drm/amdgpu: drop kiq access while in reset

2024-06-24 Thread Vignesh Chander
correctly handle the case when trylock fails when gpu is about to be reset by dropping the request instead of using mmio Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 38 -- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git

[PATCH] drm/amdgpu: process RAS fatal error MB notification

2024-06-20 Thread Vignesh Chander
timeout first v3: set host_flr bit and use wait_for_reset Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 25 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 4 +++- drivers/gpu/drm/amd

[PATCH] drm/amdgpu: process RAS fatal error MB notification

2024-06-18 Thread Vignesh Chander
timeout first Signed-off-by: Vignesh Chander Change-Id: Ib501c653265883999c62a12a209ce5eb81c80846 --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 25 +--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 4 +++- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c| 22

[PATCH 2/2] drm/amdgpu: process RAS fatal error MB notification

2024-06-17 Thread Vignesh Chander
For RAS error scenario, VF guest driver will check mailbox and set fed flag to avoid unnecessary HW accesses. additionally, poll for reset completion message first to avoid accidentally spamming multiple reset requests to host. Signed-off-by: Vignesh Chander Change-Id

[PATCH 1/2] drm/amdgpu: Use dev_ prints for virtualization as it supports multi adapter

2024-06-17 Thread Vignesh Chander
Signed-off-by: Vignesh Chander Change-Id: Ifead637951c00e5b4e97c766d172323dcac4da08 --- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 19 +++ drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 23 +++ 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/drivers/gpu

[PATCH] drm/amdgpu: xgmi_fill_topology_info

2023-12-07 Thread Vignesh Chander
as its not supported Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 58 2 files changed, 52 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers

[PATCH] drm/amdgpu: Skip put_reset_domain if it doesnt exist

2022-09-28 Thread Vignesh Chander
For xgmi sriov, the reset is handled by host driver and hive->reset_domain is not initialized so need to check if it exists before doing a put. Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[PATCH] drm/amdgpu: Skip put_reset_domain if it doesnt exist

2022-09-28 Thread Vignesh Chander
For xgmi sriov, the reset is handled by host driver and hive->reset_domain is not initialized so need to check if it exists before doing a put. Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[PATCH] drm/amdgpu: Skip put_reset_domain if it doesnt exist

2022-09-28 Thread Vignesh Chander
For sriov, the reset domain is no longer created so need to check if it exists before doing a put. Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers

[PATCH] drm/amdgpu: Skip put_reset_domain if it doesnt exist

2022-09-28 Thread Vignesh Chander
Change-Id: Ifd6121fb94db3fadaa1dee61d35699abe1259409 Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index

[PATCH] drm/amdgpu: Fix hive reference count leak

2022-09-09 Thread Vignesh Chander
both get_xgmi_hive and put_xgmi_hive can be skipped since the reset domain is not necessary for VF Signed-off-by: Vignesh Chander Reviewed-by: Shaoyun Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: skip set_topology_info for VF

2022-08-24 Thread Vignesh Chander
Skip set_topology_info as xgmi TA will now block it and host needs to program it. Signed-off-by: Vignesh Chander --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: Enable GPU metrics for One VF mode

2021-10-19 Thread Vignesh Chander
Signed-off-by: Vignesh Chander Change-Id: I14a5c4d6b9d790b7f298b67cece2c501a003e2a7 --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index