drm-next-5.5-2019-10-09: amdgpu: - Additional RAS enablement for vega20 - RAS page retirement and bad page storage in EEPROM - No GPU reset with unrecoverable RAS errors - Reserve vram for page tables rather than trying to evict - Fix issues with GPU reset and xgmi hives - DC i2c over aux fixes - Direct submission for clears, PTE/PDE updates - Improvements to help support recoverable GPU page faults - Silence harmless SAD block messages - Clean up code for creating a bo at a fixed location - Initial DC HDCP support - Lots of documentation fixes - GPU reset for renoir - Add IH clockgating support for soc15 asics - Powerplay improvements - DC MST cleanups - Add support for MSI-X - Misc cleanups and bug fixes amdkfd: - Query KFD device info by asic type rather than pci ids - Add navi14 support - Add renoir support - Add navi12 support - gfx10 trap handler improvements - pasid cleanups - Check against device cgroup ttm: - Return -EBUSY with pipelining with no_gpu_wait radeon: - Silence harmless SAD block messages device_cgroup: - Export devcgroup_check_permission Signed-off-by: Dave Airlie <airlied@redhat.com>
Showing the changes to include/linux (1 of 253 files). Show all
Unified · Split
| @@ -12,26 +12,15 @@ · 11 unmodified lines | |||
| 12 | #define DEVCG_DEV_ALL 4 /* this represents all devices */ | 12 | #define DEVCG_DEV_ALL 4 /* this represents all devices */ |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_CGROUP_DEVICE | 14 | #ifdef CONFIG_CGROUP_DEVICE |
| 15 | extern int __devcgroup_check_permission(short type, u32 major, u32 minor, | 15 | int devcgroup_check_permission(short type, u32 major, u32 minor, |
| 16 | short access); | 16 | short access); |
| 17 | #else | 17 | #else |
| 18 | static inline int __devcgroup_check_permission(short type, u32 major, u32 minor, | 18 | static inline int devcgroup_check_permission(short type, u32 major, u32 minor, |
| 19 | short access) | 19 | short access) |
| 20 | { return 0; } | 20 | { return 0; } |
| 21 | #endif | 21 | #endif |
| 22 | 22 | ||
| 23 | #if defined(CONFIG_CGROUP_DEVICE) || defined(CONFIG_CGROUP_BPF) | 23 | #if defined(CONFIG_CGROUP_DEVICE) || defined(CONFIG_CGROUP_BPF) |
| 24 | static inline int devcgroup_check_permission(short type, u32 major, u32 minor, | ||
| 25 | short access) | ||
| 26 | { | ||
| 27 | int rc = BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access); | ||
| 28 | |||
| 29 | if (rc) | ||
| 30 | return -EPERM; | ||
| 31 | |||
| 32 | return __devcgroup_check_permission(type, major, minor, access); | ||
| 33 | } | ||
| 34 | |||
| 35 | static inline int devcgroup_inode_permission(struct inode *inode, int mask) | 24 | static inline int devcgroup_inode_permission(struct inode *inode, int mask) |
| 36 | { | 25 | { |
| 37 | short type, access = 0; | 26 | short type, access = 0; |