|
@@ -5841,6 +5841,9 @@ static int gfx_v8_0_set_powergating_state(void *handle,
|
|
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
|
|
bool enable = (state == AMD_PG_STATE_GATE) ? true : false;
|
|
|
|
|
|
+ if (amdgpu_sriov_vf(adev))
|
|
|
+ return 0;
|
|
|
+
|
|
|
switch (adev->asic_type) {
|
|
|
case CHIP_CARRIZO:
|
|
|
case CHIP_STONEY:
|
|
@@ -5898,6 +5901,9 @@ static void gfx_v8_0_get_clockgating_state(void *handle, u32 *flags)
|
|
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
|
|
int data;
|
|
|
|
|
|
+ if (amdgpu_sriov_vf(adev))
|
|
|
+ *flags = 0;
|
|
|
+
|
|
|
/* AMD_CG_SUPPORT_GFX_MGCG */
|
|
|
data = RREG32(mmRLC_CGTT_MGCG_OVERRIDE);
|
|
|
if (!(data & RLC_CGTT_MGCG_OVERRIDE__CPF_MASK))
|
|
@@ -6411,6 +6417,9 @@ static int gfx_v8_0_set_clockgating_state(void *handle,
|
|
|
{
|
|
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
|
|
|
|
|
+ if (amdgpu_sriov_vf(adev))
|
|
|
+ return 0;
|
|
|
+
|
|
|
switch (adev->asic_type) {
|
|
|
case CHIP_FIJI:
|
|
|
case CHIP_CARRIZO:
|