UAPI Changes: - Add additional error components to xe drm_ras (Riana) - Drop 'force_execlist' module parameter (Roper) Cross-subsystem Changes: - Perf events: Export perf_allow_{cpu,tracepoint} to be used by Xe (John) Display Changes: - Skip FORCE_WC and vm_bound check for external dma-bufs (Auld) Driver Changes: - Gate observation streams with perf_allow_cpu (John Hubbard) - Documentation updates and fixes (Michal, Zhan) - Remove unreleased NVL-S GuC (Daniele) - Fix pcode init path (Michal) - RTP fixes and improvements (Gustavo, Violet, Thomas, Roper) - TLB invalidation fixes and improvements (Tilak) - PXP detachment from HuC for newer platforms (Daniele) - Multi-queue fix (Niranjana) - Improve Kconfig.profile help (Rodrigo) - Xe_drm_ras and hw_error updates and fixes (Raag, Riana) - NVL-S updated PCI-IDs and W/a (Gustavo, Nitin) - Fix dma_fence refcound (Wentao) - Madvise: optimize invalidation path (Arvind) - Fix a infinite gt-reset loop in the timeout recovery (Rodrigo) - Fix wa_oob codegen recipe for external module builds (Thomas) - Avoid global forcewake in cycle query path (Xin) - Update TTM device benefical_order (Brost) - Fix buffer overflow in guc capture (Tejas) - Page-table fixes and improvements (Brian, Francois, Auld, Brost) - Removing redundant check (Lu) - General MCR and MMIO clean-up and improvements (Michal) - Don't whitelist OA registers unconditionally (Ashutosh) - SVM error return fix (Brost) - Userptr fix and small related clean-ups (Shuicheng) - Don't attempt to process FAST_REQ or EVENT relays on PF (Michal) - Couple fdinfo improvements (Auld) - Drop manual VF check on i2c (Raag) - Probe info outside of xe_info_init functions (Gustavo) Signed-off-by: Dave Airlie <airlied@redhat.com>
Showing the changes to kernel (1 of 65 files). Show all
Unified · Split
| @@ -14769,6 +14769,24 @@ int perf_allow_kernel(void) · 14768 unmodified lines | ||
| 14769 | 14769 | } |
| 14770 | 14770 | EXPORT_SYMBOL_GPL(perf_allow_kernel); |
| 14771 | 14771 | |
| 14772 | +int perf_allow_cpu(void) | |
| 14773 | +{ | |
| 14774 | + if (sysctl_perf_event_paranoid > 0 && !perfmon_capable()) | |
| 14775 | + return -EACCES; | |
| 14776 | + | |
| 14777 | + return security_perf_event_open(PERF_SECURITY_CPU); | |
| 14778 | +} | |
| 14779 | +EXPORT_SYMBOL_GPL(perf_allow_cpu); | |
| 14780 | + | |
| 14781 | +int perf_allow_tracepoint(void) | |
| 14782 | +{ | |
| 14783 | + if (sysctl_perf_event_paranoid > -1 && !perfmon_capable()) | |
| 14784 | + return -EPERM; | |
| 14785 | + | |
| 14786 | + return security_perf_event_open(PERF_SECURITY_TRACEPOINT); | |
| 14787 | +} | |
| 14788 | +EXPORT_SYMBOL_GPL(perf_allow_tracepoint); | |
| 14789 | + | |
| 14772 | 14790 | /* |
| 14773 | 14791 | * Inherit an event from parent task to child task. |
| 14774 | 14792 | * |