]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: enable pm sysfs write for one VF mode
authorYiqing Yao <yiqing.yao@amd.com>
Mon, 24 Jan 2022 08:11:20 +0000 (16:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 21:58:11 +0000 (16:58 -0500)
commitdb4b5664c7e8fa8e5a818f75c203b9eb413e4712
tree10e467dc558ca0704fb627507742c26766e0f7ae
parent643614fa720b3b23357aa7b8e59bbd84220cd279
drm/amd/pm: enable pm sysfs write for one VF mode

[why]
pm sysfs should be writable in one VF mode as is in passthrough

[how]
do not remove write access on pm sysfs if device is in one VF mode

Fixes: cc83e79fbaa1 ("amdgpu/pm: Make sysfs pm attributes as read-only for VFs")
Signed-off-by: Yiqing Yao <yiqing.yao@amd.com>
Reviewed-by: Monk Liu <Monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c