1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-25 14:45:52 +00:00

don't return an error when skipping sysfs bits in amdgpu_ras_sysfs_create()

should avoid fatal init error on Radeon VII reported by Justin Roberts
This commit is contained in:
jsg
2026-02-23 00:38:34 +00:00
parent 11a5864391
commit c1c10b3e4d

View File

@@ -1807,14 +1807,12 @@ int amdgpu_ras_sysfs_create(struct amdgpu_device *adev,
if (!obj || obj->attr_inuse)
return -EINVAL;
STUB();
return -ENOSYS;
#ifdef notyet
get_obj(obj);
snprintf(obj->fs_data.sysfs_name, sizeof(obj->fs_data.sysfs_name),
"%s_err_count", head->name);
#ifdef notyet
obj->sysfs_attr = (struct device_attribute){
.attr = {
.name = obj->fs_data.sysfs_name,
@@ -1830,11 +1828,11 @@ int amdgpu_ras_sysfs_create(struct amdgpu_device *adev,
put_obj(obj);
return -EINVAL;
}
#endif
obj->attr_inuse = 1;
return 0;
#endif
}
int amdgpu_ras_sysfs_remove(struct amdgpu_device *adev,