- Don't expose sysfs attributes not applicable for VFs (Michal) - Fix build with CONFIG_MODULES=n (Lucas) - Don't copy pinned kernel bos twice on suspend (Thomas) Signed-off-by: Dave Airlie <airlied@redhat.com>
Unified · Split
| @@ -158,8 +158,8 @@ int xe_bo_evict_all(struct xe_device *xe) · 157 unmodified lines | ||
| 158 | 158 | if (ret) |
| 159 | 159 | return ret; |
| 160 | 160 | |
| 161 | − ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present, | |
| 162 | − &xe->pinned.late.evicted, xe_bo_evict_pinned); | |
| 161 | + ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.external, | |
| 162 | + &xe->pinned.late.external, xe_bo_evict_pinned); | |
| 163 | 163 | |
| 164 | 164 | if (!ret) |
| 165 | 165 | ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present, |
| @@ -404,7 +404,7 @@ int __init xe_configfs_init(void) · 403 unmodified lines | ||
| 404 | 404 | return 0; |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | −void __exit xe_configfs_exit(void) | |
| 407 | +void xe_configfs_exit(void) | |
| 408 | 408 | { |
| 409 | 409 | configfs_unregister_subsystem(&xe_configfs); |
| 410 | 410 | } |
| @@ -308,7 +308,7 @@ int xe_device_sysfs_init(struct xe_device *xe) · 307 unmodified lines | ||
| 308 | 308 | return ret; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | − if (xe->info.platform == XE_BATTLEMAGE) { | |
| 311 | + if (xe->info.platform == XE_BATTLEMAGE && !IS_SRIOV_VF(xe)) { | |
| 312 | 312 | ret = sysfs_create_files(&dev->kobj, auto_link_downgrade_attrs); |
| 313 | 313 | if (ret) |
| 314 | 314 | goto cleanup; |