mirror_ubuntu-kernels/drivers/gpu/drm/amd
Marina Nikolic 11c9cc95f8 amdgpu/pm: Make sysfs pm attributes as read-only for VFs
== Description ==
Setting values of pm attributes through sysfs
should not be allowed in SRIOV mode.
These calls will not be processed by FW anyway,
but error handling on sysfs level should be improved.

== Changes ==
This patch prohibits performing of all set commands
in SRIOV mode on sysfs level.
It offers better error handling as calls that are
not allowed will not be propagated further.

== Test ==
Writing to any sysfs file in passthrough mode will succeed.
Writing to any sysfs file in ONEVF mode will yield error:
"calling process does not have sufficient permission to execute a command".

Signed-off-by: Marina Nikolic <Marina.Nikolic@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-12-30 08:54:45 -05:00
..
acp
amdgpu drm/amdgpu: save error count in RAS poison handler 2021-12-30 08:54:45 -05:00
amdkfd drm/amdkfd: correct sdma queue number in kfd device init (v3) 2021-12-30 08:54:43 -05:00
display drm/amd/display: get and restore link res map 2021-12-30 08:54:45 -05:00
include drm/amdgpu: add support for IP discovery gc_info table v2 2021-12-16 14:08:20 -05:00
pm amdgpu/pm: Make sysfs pm attributes as read-only for VFs 2021-12-30 08:54:45 -05:00