Loading Documentation/ABI/stable/sysfs-devices-node +6 −0 Original line number Diff line number Diff line Loading @@ -176,3 +176,9 @@ Contact: Keith Busch <keith.busch@intel.com> Description: The cache write policy: 0 for write-back, 1 for write-through, other or unknown. What: /sys/devices/system/node/nodeX/x86/sgx_total_bytes Date: November 2021 Contact: Jarkko Sakkinen <jarkko@kernel.org> Description: The total amount of SGX physical memory in bytes. Documentation/admin-guide/cifs/usage.rst +3 −4 Original line number Diff line number Diff line Loading @@ -734,10 +734,9 @@ SecurityFlags Flags which control security negotiation and using weaker password hashes is 0x37037 (lanman, plaintext, ntlm, ntlmv2, signing allowed). Some SecurityFlags require the corresponding menuconfig options to be enabled (lanman and plaintext require CONFIG_CIFS_WEAK_PW_HASH for example). Enabling plaintext authentication currently requires also enabling lanman authentication in the security flags options to be enabled. Enabling plaintext authentication currently requires also enabling lanman authentication in the security flags because the cifs module only supports sending laintext passwords using the older lanman dialect form of the session setup SMB. (e.g. for authentication Loading Documentation/admin-guide/devices.txt +1 −7 Original line number Diff line number Diff line Loading @@ -2339,13 +2339,7 @@ disks (see major number 3) except that the limit on partitions is 31. 162 char Raw block device interface 0 = /dev/rawctl Raw I/O control device 1 = /dev/raw/raw1 First raw I/O device 2 = /dev/raw/raw2 Second raw I/O device ... max minor number of raw device is set by kernel config MAX_RAW_DEVS or raw module parameter 'max_raw_devs' 162 char Used for (now removed) raw block device interface 163 char Loading Documentation/admin-guide/kernel-parameters.txt +1 −1 Original line number Diff line number Diff line Loading @@ -2940,7 +2940,7 @@ both parameters are enabled, hugetlb_free_vmemmap takes precedence over memory_hotplug.memmap_on_memory. memtest= [KNL,X86,ARM,PPC,RISCV] Enable memtest memtest= [KNL,X86,ARM,M68K,PPC,RISCV] Enable memtest Format: <integer> default : 0 <disable> Specifies the number of memtest passes to be Loading Documentation/admin-guide/perf/hisi-pcie-pmu.rst 0 → 100644 +106 −0 Original line number Diff line number Diff line ================================================ HiSilicon PCIe Performance Monitoring Unit (PMU) ================================================ On Hip09, HiSilicon PCIe Performance Monitoring Unit (PMU) could monitor bandwidth, latency, bus utilization and buffer occupancy data of PCIe. Each PCIe Core has a PMU to monitor multi Root Ports of this PCIe Core and all Endpoints downstream these Root Ports. HiSilicon PCIe PMU driver ========================= The PCIe PMU driver registers a perf PMU with the name of its sicl-id and PCIe Core id.:: /sys/bus/event_source/hisi_pcie<sicl>_<core> PMU driver provides description of available events and filter options in sysfs, see /sys/bus/event_source/devices/hisi_pcie<sicl>_<core>. The "format" directory describes all formats of the config (events) and config1 (filter options) fields of the perf_event_attr structure. The "events" directory describes all documented events shown in perf list. The "identifier" sysfs file allows users to identify the version of the PMU hardware device. The "bus" sysfs file allows users to get the bus number of Root Ports monitored by PMU. Example usage of perf:: $# perf list hisi_pcie0_0/rx_mwr_latency/ [kernel PMU event] hisi_pcie0_0/rx_mwr_cnt/ [kernel PMU event] ------------------------------------------ $# perf stat -e hisi_pcie0_0/rx_mwr_latency/ $# perf stat -e hisi_pcie0_0/rx_mwr_cnt/ $# perf stat -g -e hisi_pcie0_0/rx_mwr_latency/ -e hisi_pcie0_0/rx_mwr_cnt/ The current driver does not support sampling. So "perf record" is unsupported. Also attach to a task is unsupported for PCIe PMU. Filter options -------------- 1. Target filter PMU could only monitor the performance of traffic downstream target Root Ports or downstream target Endpoint. PCIe PMU driver support "port" and "bdf" interfaces for users, and these two interfaces aren't supported at the same time. -port "port" filter can be used in all PCIe PMU events, target Root Port can be selected by configuring the 16-bits-bitmap "port". Multi ports can be selected for AP-layer-events, and only one port can be selected for TL/DL-layer-events. For example, if target Root Port is 0000:00:00.0 (x8 lanes), bit0 of bitmap should be set, port=0x1; if target Root Port is 0000:00:04.0 (x4 lanes), bit8 is set, port=0x100; if these two Root Ports are both monitored, port=0x101. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mwr_latency,port=0x1/ sleep 5 -bdf "bdf" filter can only be used in bandwidth events, target Endpoint is selected by configuring BDF to "bdf". Counter only counts the bandwidth of message requested by target Endpoint. For example, "bdf=0x3900" means BDF of target Endpoint is 0000:39:00.0. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,bdf=0x3900/ sleep 5 2. Trigger filter Event statistics start when the first time TLP length is greater/smaller than trigger condition. You can set the trigger condition by writing "trig_len", and set the trigger mode by writing "trig_mode". This filter can only be used in bandwidth events. For example, "trig_len=4" means trigger condition is 2^4 DW, "trig_mode=0" means statistics start when TLP length > trigger condition, "trig_mode=1" means start when TLP length < condition. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,trig_len=0x4,trig_mode=1/ sleep 5 3. Threshold filter Counter counts when TLP length within the specified range. You can set the threshold by writing "thr_len", and set the threshold mode by writing "thr_mode". This filter can only be used in bandwidth events. For example, "thr_len=4" means threshold is 2^4 DW, "thr_mode=0" means counter counts when TLP length >= threshold, and "thr_mode=1" means counts when TLP length < threshold. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,thr_len=0x4,thr_mode=1/ sleep 5 Loading
Documentation/ABI/stable/sysfs-devices-node +6 −0 Original line number Diff line number Diff line Loading @@ -176,3 +176,9 @@ Contact: Keith Busch <keith.busch@intel.com> Description: The cache write policy: 0 for write-back, 1 for write-through, other or unknown. What: /sys/devices/system/node/nodeX/x86/sgx_total_bytes Date: November 2021 Contact: Jarkko Sakkinen <jarkko@kernel.org> Description: The total amount of SGX physical memory in bytes.
Documentation/admin-guide/cifs/usage.rst +3 −4 Original line number Diff line number Diff line Loading @@ -734,10 +734,9 @@ SecurityFlags Flags which control security negotiation and using weaker password hashes is 0x37037 (lanman, plaintext, ntlm, ntlmv2, signing allowed). Some SecurityFlags require the corresponding menuconfig options to be enabled (lanman and plaintext require CONFIG_CIFS_WEAK_PW_HASH for example). Enabling plaintext authentication currently requires also enabling lanman authentication in the security flags options to be enabled. Enabling plaintext authentication currently requires also enabling lanman authentication in the security flags because the cifs module only supports sending laintext passwords using the older lanman dialect form of the session setup SMB. (e.g. for authentication Loading
Documentation/admin-guide/devices.txt +1 −7 Original line number Diff line number Diff line Loading @@ -2339,13 +2339,7 @@ disks (see major number 3) except that the limit on partitions is 31. 162 char Raw block device interface 0 = /dev/rawctl Raw I/O control device 1 = /dev/raw/raw1 First raw I/O device 2 = /dev/raw/raw2 Second raw I/O device ... max minor number of raw device is set by kernel config MAX_RAW_DEVS or raw module parameter 'max_raw_devs' 162 char Used for (now removed) raw block device interface 163 char Loading
Documentation/admin-guide/kernel-parameters.txt +1 −1 Original line number Diff line number Diff line Loading @@ -2940,7 +2940,7 @@ both parameters are enabled, hugetlb_free_vmemmap takes precedence over memory_hotplug.memmap_on_memory. memtest= [KNL,X86,ARM,PPC,RISCV] Enable memtest memtest= [KNL,X86,ARM,M68K,PPC,RISCV] Enable memtest Format: <integer> default : 0 <disable> Specifies the number of memtest passes to be Loading
Documentation/admin-guide/perf/hisi-pcie-pmu.rst 0 → 100644 +106 −0 Original line number Diff line number Diff line ================================================ HiSilicon PCIe Performance Monitoring Unit (PMU) ================================================ On Hip09, HiSilicon PCIe Performance Monitoring Unit (PMU) could monitor bandwidth, latency, bus utilization and buffer occupancy data of PCIe. Each PCIe Core has a PMU to monitor multi Root Ports of this PCIe Core and all Endpoints downstream these Root Ports. HiSilicon PCIe PMU driver ========================= The PCIe PMU driver registers a perf PMU with the name of its sicl-id and PCIe Core id.:: /sys/bus/event_source/hisi_pcie<sicl>_<core> PMU driver provides description of available events and filter options in sysfs, see /sys/bus/event_source/devices/hisi_pcie<sicl>_<core>. The "format" directory describes all formats of the config (events) and config1 (filter options) fields of the perf_event_attr structure. The "events" directory describes all documented events shown in perf list. The "identifier" sysfs file allows users to identify the version of the PMU hardware device. The "bus" sysfs file allows users to get the bus number of Root Ports monitored by PMU. Example usage of perf:: $# perf list hisi_pcie0_0/rx_mwr_latency/ [kernel PMU event] hisi_pcie0_0/rx_mwr_cnt/ [kernel PMU event] ------------------------------------------ $# perf stat -e hisi_pcie0_0/rx_mwr_latency/ $# perf stat -e hisi_pcie0_0/rx_mwr_cnt/ $# perf stat -g -e hisi_pcie0_0/rx_mwr_latency/ -e hisi_pcie0_0/rx_mwr_cnt/ The current driver does not support sampling. So "perf record" is unsupported. Also attach to a task is unsupported for PCIe PMU. Filter options -------------- 1. Target filter PMU could only monitor the performance of traffic downstream target Root Ports or downstream target Endpoint. PCIe PMU driver support "port" and "bdf" interfaces for users, and these two interfaces aren't supported at the same time. -port "port" filter can be used in all PCIe PMU events, target Root Port can be selected by configuring the 16-bits-bitmap "port". Multi ports can be selected for AP-layer-events, and only one port can be selected for TL/DL-layer-events. For example, if target Root Port is 0000:00:00.0 (x8 lanes), bit0 of bitmap should be set, port=0x1; if target Root Port is 0000:00:04.0 (x4 lanes), bit8 is set, port=0x100; if these two Root Ports are both monitored, port=0x101. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mwr_latency,port=0x1/ sleep 5 -bdf "bdf" filter can only be used in bandwidth events, target Endpoint is selected by configuring BDF to "bdf". Counter only counts the bandwidth of message requested by target Endpoint. For example, "bdf=0x3900" means BDF of target Endpoint is 0000:39:00.0. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,bdf=0x3900/ sleep 5 2. Trigger filter Event statistics start when the first time TLP length is greater/smaller than trigger condition. You can set the trigger condition by writing "trig_len", and set the trigger mode by writing "trig_mode". This filter can only be used in bandwidth events. For example, "trig_len=4" means trigger condition is 2^4 DW, "trig_mode=0" means statistics start when TLP length > trigger condition, "trig_mode=1" means start when TLP length < condition. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,trig_len=0x4,trig_mode=1/ sleep 5 3. Threshold filter Counter counts when TLP length within the specified range. You can set the threshold by writing "thr_len", and set the threshold mode by writing "thr_mode". This filter can only be used in bandwidth events. For example, "thr_len=4" means threshold is 2^4 DW, "thr_mode=0" means counter counts when TLP length >= threshold, and "thr_mode=1" means counts when TLP length < threshold. Example usage of perf:: $# perf stat -e hisi_pcie0_0/rx_mrd_flux,thr_len=0x4,thr_mode=1/ sleep 5