diff options
author | Marina Nikolic <Marina.Nikolic@amd.com> | 2021-12-14 20:57:53 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-30 08:54:45 -0500 |
commit | 11c9cc95f818f0f187e9b579a7f136f532b42445 (patch) | |
tree | 82454b125262dc63a90e5ecabf10f236f10e2a56 /lib/crc7.c | |
parent | fec8c5244fc07b1f6a3249a8714489f594ff5c4f (diff) |
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>
Diffstat (limited to 'lib/crc7.c')
0 files changed, 0 insertions, 0 deletions