]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:07 +0000 (13:58 +0200)
commitd13c90e636cd363bc5b01f4694c408f28d772f9a
treea453b31f5bdd5e0dfd065af1ecdc07a0c306ffac
parente8b42ba320f5fde6eee1c3fb99939ed48e27d899
drm/amd/pm: enable pm sysfs write for one VF mode

[ Upstream commit e610941c45bad75aa839af015c27d236ab6749e5 ]

[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: 11c9cc95f818 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/amdgpu_pm.c