forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tgupdate: merge t/mptcp-add-bpf_mptcp_sched_ops base into t/mptcp-add…
…-bpf_mptcp_sched_ops
- Loading branch information
Showing
610 changed files
with
33,982 additions
and
5,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
.. _fs_kfuncs-header-label: | ||
|
||
===================== | ||
BPF filesystem kfuncs | ||
===================== | ||
|
||
BPF LSM programs need to access filesystem data from LSM hooks. The following | ||
BPF kfuncs can be used to get these data. | ||
|
||
* ``bpf_get_file_xattr()`` | ||
|
||
* ``bpf_get_fsverity_digest()`` | ||
|
||
To avoid recursions, these kfuncs follow the following rules: | ||
|
||
1. These kfuncs are only permitted from BPF LSM function. | ||
2. These kfuncs should not call into other LSM hooks, i.e. security_*(). For | ||
example, ``bpf_get_file_xattr()`` does not use ``vfs_getxattr()``, because | ||
the latter calls LSM hook ``security_inode_getxattr``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,7 @@ available subsections can be seen below. | |
hte/index | ||
wmi | ||
dpll | ||
wbrf | ||
|
||
.. only:: subproject and html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.. SPDX-License-Identifier: GPL-2.0-or-later | ||
================================= | ||
WBRF - Wifi Band RFI Mitigations | ||
================================= | ||
|
||
Due to electrical and mechanical constraints in certain platform designs | ||
there may be likely interference of relatively high-powered harmonics of | ||
the GPU memory clocks with local radio module frequency bands used by | ||
certain Wifi bands. | ||
|
||
To mitigate possible RFI interference producers can advertise the | ||
frequencies in use and consumers can use this information to avoid using | ||
these frequencies for sensitive features. | ||
|
||
When a platform is known to have this issue with any contained devices, | ||
the platform designer will advertise the availability of this feature via | ||
ACPI devices with a device specific method (_DSM). | ||
* Producers with this _DSM will be able to advertise the frequencies in use. | ||
* Consumers with this _DSM will be able to register for notifications of | ||
frequencies in use. | ||
|
||
Some general terms | ||
================== | ||
|
||
Producer: such component who can produce high-powered radio frequency | ||
Consumer: such component who can adjust its in-use frequency in | ||
response to the radio frequencies of other components to mitigate the | ||
possible RFI. | ||
|
||
To make the mechanism function, those producers should notify active use | ||
of their particular frequencies so that other consumers can make relative | ||
internal adjustments as necessary to avoid this resonance. | ||
|
||
ACPI interface | ||
============== | ||
|
||
Although initially used by for wifi + dGPU use cases, the ACPI interface | ||
can be scaled to any type of device that a platform designer discovers | ||
can cause interference. | ||
|
||
The GUID used for the _DSM is 7B7656CF-DC3D-4C1C-83E9-66E721DE3070. | ||
|
||
3 functions are available in this _DSM: | ||
|
||
* 0: discover # of functions available | ||
* 1: record RF bands in use | ||
* 2: retrieve RF bands in use | ||
|
||
Driver programming interface | ||
============================ | ||
|
||
.. kernel-doc:: drivers/platform/x86/amd/wbrf.c | ||
|
||
Sample Usage | ||
============= | ||
|
||
The expected flow for the producers: | ||
1. During probe, call `acpi_amd_wbrf_supported_producer` to check if WBRF | ||
can be enabled for the device. | ||
2. On using some frequency band, call `acpi_amd_wbrf_add_remove` with 'add' | ||
param to get other consumers properly notified. | ||
3. Or on stopping using some frequency band, call | ||
`acpi_amd_wbrf_add_remove` with 'remove' param to get other consumers notified. | ||
|
||
The expected flow for the consumers: | ||
1. During probe, call `acpi_amd_wbrf_supported_consumer` to check if WBRF | ||
can be enabled for the device. | ||
2. Call `amd_wbrf_register_notifier` to register for notification | ||
of frequency band change(add or remove) from other producers. | ||
3. Call the `amd_wbrf_retrieve_freq_band` initally to retrieve | ||
current active frequency bands considering some producers may broadcast | ||
such information before the consumer is up. | ||
4. On receiving a notification for frequency band change, run | ||
`amd_wbrf_retrieve_freq_band` again to retrieve the latest | ||
active frequency bands. | ||
5. During driver cleanup, call `amd_wbrf_unregister_notifier` to | ||
unregister the notifier. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.