diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-11 03:51:42 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-11 03:51:42 +0000 |
commit | 65d292b7a4db591ccf040b92417b4b7f37933c5b (patch) | |
tree | 6f6deafd8046405eb5527fd1147a814f24972444 /sys | |
parent | c1720ed58a9bbd6550580dd5b5e3a1093f58ff19 (diff) |
drm/amd/pm: enable pm sysfs write for one VF mode
From Yiqing Yao
ac98fdec111485b5eb88cb91d20473fb67631684 in linux 5.15.y/5.15.33
e610941c45bad75aa839af015c27d236ab6749e5 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/pm/amdgpu_pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/pm/amdgpu_pm.c b/sys/dev/pci/drm/amd/pm/amdgpu_pm.c index 06a1eaee847..8d1774f3501 100644 --- a/sys/dev/pci/drm/amd/pm/amdgpu_pm.c +++ b/sys/dev/pci/drm/amd/pm/amdgpu_pm.c @@ -2119,8 +2119,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ } } - /* setting should not be allowed from VF */ - if (amdgpu_sriov_vf(adev)) { + /* setting should not be allowed from VF if not in one VF mode */ + if (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev)) { dev_attr->attr.mode &= ~S_IWUGO; dev_attr->store = NULL; } |