[PATCH] drm/amdgpu: use local xcc write to flush tlb

2024-06-03 Thread Yiqing Yao
When flushing gpu tlb using kiq from gfxhub, kiq ring is always local as xcc instance is selected for it. Thus using lower 18 bits to access mmregs inside local xcc instead of full address used when accessing regs outside of local xcc. Remove redundent code. Signed-off-by: Yiqing Yao

[PATCH v2] drm/amdgpu: use local xcc to flush tlb

2024-06-12 Thread Yiqing Yao
d can cause flush to timeout. So keep the lower 16 bits only. Remove redundant code. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/dr

[PATCH] drm/amd/pm: enable pm sysfs write for one VF mode

2022-01-24 Thread Yiqing Yao
[why] pm sysfs should be writable in one VF mode as is in passthrough [how] do not remove write access on pm sysfs if device is in one VF mode Fixes: 4436ea3c43a7 ("amdgpu/pm: Make sysfs pm attributes as read-only for VFs") Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/pm/amdgp

[PATCH] Adjust MES polling timeout for sriov worst case

2022-10-18 Thread Yiqing Yao
[why] MES response time in sriov may be longer than default value due to reset or init in other VF. A timeout value specific to sriov is needed. [how] When in sriov, adjust the timeout value to calculated worst case scenario. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

[PATCH v2] Adjust MES polling timeout for sriov worst case

2022-10-18 Thread Yiqing Yao
[why] MES response time in sriov may be longer than default value due to reset or init in other VF. A timeout value specific to sriov is needed. [how] When in sriov, adjust the timeout value to calculated worst case scenario. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

[PATCH 1/2] drm/amdgpu: Clean up soc21 early init for sriov

2022-11-01 Thread Yiqing Yao
Use virt_init_setting instead of per ip version setting. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/soc21.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index e08044008186

[PATCH 2/2] drm/amdgpu: Disable MCBP from soc21 for SRIOV

2022-11-01 Thread Yiqing Yao
[why] Start from soc21, CP does not support MCBP, so disable it. [how] Used amgpu_mcbp flag alone instead of checking if is in SRIOV to enable/disable MCBP. Only set flag to enable on asic_type prior to soc21 in SRIOV. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/amdgpu: Enable vclk dclk node for gc11.0.3

2023-01-31 Thread Yiqing Yao
These sysfs nodes are tested supported, so enable it. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 76b9ec64ca50

[PATCH v2] drm/amdgpu: Enable vclk dclk node for gc11.0.3

2023-01-31 Thread Yiqing Yao
These sysfs nodes are tested supported, so enable them. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 76b9ec64ca50

[PATCH] drm/amdgpu: flush delete wq after wait fence

2022-05-04 Thread Yiqing Yao
[why] lru_list not empty warning in sw fini during repeated device bind unbind. There should be a amdgpu_fence_wait_empty() before the flush_delayed_work() call as sugested. [how] Do flush_delayed_work for ttm bo delayed delete wq after fence_driver_hw_fini. Signed-off-by: Yiqing Yao

[PATCH] drm/amdgpu: fix refcount underflow in device reset

2022-06-01 Thread Yiqing Yao
sched_main. [how] Check if the job to submit has signaled and avoid submission if signaled in device reset for both advanced TDR and normal job resume. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 72 -- 1 file changed, 41 insertions(+), 31 deletions

[PATCH] drm/amdgpu: fix refcount underflow in device reset

2022-06-06 Thread Yiqing Yao
sched_main. [how] Check if the job to submit has signaled and avoid submission if signaled in device reset for both advanced TDR and normal job resume. Signed-off-by: Yiqing Yao --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 72 -- 1 file changed, 41 insertions(+), 31 deletions