mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-27 21:56:34 +00:00
drm/amdgpu: Wrong order for config and counter_id parameters
Wrong order for config and counter_id parameters was passed, when calling df_v3_6_pmc_set_deferred and df_v3_6_pmc_is_deferred functions. Signed-off-by: huangqu <jinsdb@126.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1ec5a44331
commit
c57f5ba2c8
@ -458,7 +458,7 @@ static int df_v3_6_pmc_add_cntr(struct amdgpu_device *adev,
|
||||
|
||||
#define DEFERRED_ARM_MASK (1 << 31)
|
||||
static int df_v3_6_pmc_set_deferred(struct amdgpu_device *adev,
|
||||
int counter_idx, uint64_t config,
|
||||
uint64_t config, int counter_idx,
|
||||
bool is_deferred)
|
||||
{
|
||||
|
||||
@ -476,8 +476,8 @@ static int df_v3_6_pmc_set_deferred(struct amdgpu_device *adev,
|
||||
}
|
||||
|
||||
static bool df_v3_6_pmc_is_deferred(struct amdgpu_device *adev,
|
||||
int counter_idx,
|
||||
uint64_t config)
|
||||
uint64_t config,
|
||||
int counter_idx)
|
||||
{
|
||||
return (df_v3_6_pmc_has_counter(adev, config, counter_idx) &&
|
||||
(adev->df_perfmon_config_assign_mask[counter_idx]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user