Commits on Source (12)
-
Christian König authored
We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by:
Christian König <christian.koenig@amd.com> Acked-by:
Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
-
FengWei authored
Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by:
FengWei <feng.wei8@zte.com.cn> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
Harish Kasiviswanathan authored
For certain ASICs where dequeue_wait_count don't need to be initialized, pm_config_dequeue_wait_counts_v9 return without filling in the packet information. However, the calling function interprets this as a success and sends the uninitialized packet to firmware causing hang. Fix the above bug by not calling pm_config_dequeue_wait_counts_v9 for ASICs that don't need the value to be initialized. v2: Removed redudant code. Tidy up code based on review comments v3: Don't call pm_config_dequeue_wait_counts_v9 for certain ASICs Fixes: <98a5af81> ("drm/amdkfd: Add pm_config_dequeue_wait_counts API") Signed-off-by:
Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Reviewed-by:
Jonathan Kim <jonathan.kim@amd.com>
-
Alex Deucher authored
We need to make sure the workload profile ref counts are balanced. This isn't currently the case because we can increment the count on submissions, but the decrement may be delayed as work comes in. Track when we enable the workload profile so the references are balanced. v2: switch to a mutex and active flag v3: fix mutex init Fixes: 8fdb3958 ("drm/amdgpu/gfx: add ring helpers for setting workload profile") Cc: Yang Wang <kevinyang.wang@amd.com> Cc: Kenneth Feng <kenneth.feng@amd.com> Tested-by:
Kenneth Feng <kenneth.feng@amd.com> Reviewed-by:
Kenneth Feng <kenneth.feng@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
Alex Deucher authored
We need to make sure the workload profile ref counts are balanced. This isn't currently the case because we can increment the count on submissions, but the decrement may be delayed as work comes in. Track when we enable the workload profile so the references are balanced. v2: switch to a mutex and active flag v3: fix mutex init Fixes: 1443dd3c ("drm/amd/pm: fix and simplify workload handling") Cc: Yang Wang <kevinyang.wang@amd.com> Cc: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by:
Kenneth Feng <kenneth.feng@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
Candice Li authored
Add EEPROM I2C address support for smu v13_0_12. Signed-off-by:
Candice Li <candice.li@amd.com> Reviewed-by:
Hawking Zhang <Hawking.Zhang@amd.com>
-
Alex Deucher authored
No need to make the workload profile setup dependent on the results of cancelling the delayed work thread. We have all of the necessary checking in place for the workload profile reference counting, so separate the two. As it is now, we can theoretically end up with the call from begin_use happening while the worker thread is executing which would result in the profile not getting set for that submission. It should not affect the reference counting. v2: bail early if the the profile is already active (Lijo) Reviewed-by:
Lijo Lazar <lijo.lazar@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
Alex Deucher authored
No need to make the workload profile setup dependent on the results of cancelling the delayed work thread. We have all of the necessary checking in place for the workload profile reference counting, so separate the two. As it is now, we can theoretically end up with the call from begin_use happening while the worker thread is executing which would result in the profile not getting set for that submission. It should not affect the reference counting. v2: bail early if the the profile is already active (Lijo) Reviewed-by:
Lijo Lazar <lijo.lazar@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
lijo lazar authored
In certain cases, it's desirable to avoid PMFW log transactions to system memory. Add a mask bit to decide whether to allocate smu pool in device memory or system memory. Signed-off-by:
Lijo Lazar <lijo.lazar@amd.com> Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
lijo lazar authored
Add description for debug_mask bit options. Signed-off-by:
Lijo Lazar <lijo.lazar@amd.com> Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
Candice Li authored
Add active_umc_mask to ras init_flags. Signed-off-by:
Candice Li <candice.li@amd.com> Reviewed-by:
Hawking Zhang <Hawking.Zhang@amd.com>
-
Victor Skvortsov authored
VFs cannot read the NAK_COUNTER register. This information is only available through PMFW metrics. Signed-off-by:
Victor Skvortsov <victor.skvortsov@amd.com> Reviewed-by:
Lijo Lazar <lijo.lazar@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 31 additions, 8 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 10 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 23 additions, 6 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h 2 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c 2 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 24 additions, 6 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h 3 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
- drivers/gpu/drm/amd/amdgpu/ta_ras_if.h 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdgpu/ta_ras_if.h
- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 23 additions, 5 deletionsdrivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 11 additions, 7 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c 21 additions, 13 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
- drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h 2 additions, 1 deletiondrivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c 4 additions, 1 deletiondrivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
- drivers/gpu/drm/radeon/radeon_uvd.c 1 addition, 1 deletiondrivers/gpu/drm/radeon/radeon_uvd.c