We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712d98c commit 582bf7cCopy full SHA for 582bf7c
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c
@@ -55,7 +55,8 @@ u64 amdgpu_nbio_get_pcie_replay_count(struct amdgpu_device *adev)
55
56
bool amdgpu_nbio_is_replay_cnt_supported(struct amdgpu_device *adev)
57
{
58
- if (amdgpu_sriov_vf(adev) || !adev->asic_funcs->get_pcie_replay_count ||
+ if (amdgpu_sriov_vf(adev) || !adev->asic_funcs ||
59
+ !adev->asic_funcs->get_pcie_replay_count ||
60
(!adev->nbio.funcs || !adev->nbio.funcs->get_pcie_replay_count))
61
return false;
62
0 commit comments