Skip to content

Commit 820e990

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.16/asus' into for-linus
2 parents b986508 + 2ea5999 commit 820e990

File tree

3,194 files changed

+136014
-52627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,194 files changed

+136014
-52627
lines changed

Documentation/ABI/stable/sysfs-driver-dma-idxd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ Date: Aug 28, 2020
128128
KernelVersion: 5.10.0
129129
130130
Description: The last executed device administrative command's status/error.
131+
Also last configuration error overloaded.
132+
Writing to it will clear the status.
131133

132134
What: /sys/bus/dsa/devices/wq<m>.<n>/block_on_fault
133135
Date: Oct 27, 2020
@@ -211,6 +213,13 @@ Contact: [email protected]
211213
Description: Indicate whether ATS disable is turned on for the workqueue.
212214
0 indicates ATS is on, and 1 indicates ATS is off for the workqueue.
213215

216+
What: /sys/bus/dsa/devices/wq<m>.<n>/occupancy
217+
Date May 25, 2021
218+
KernelVersion: 5.14.0
219+
220+
Description: Show the current number of entries in this WQ if WQ Occupancy
221+
Support bit WQ capabilities is 1.
222+
214223
What: /sys/bus/dsa/devices/engine<m>.<n>/group_id
215224
Date: Oct 25, 2019
216225
KernelVersion: 5.6.0

Documentation/ABI/testing/debugfs-driver-habanalabs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,17 @@ Description: Sets the skip reset on timeout option for the device. Value of
215215
"0" means device will be reset in case some CS has timed out,
216216
otherwise it will not be reset.
217217

218+
What: /sys/kernel/debug/habanalabs/hl<n>/state_dump
219+
Date: Oct 2021
220+
KernelVersion: 5.15
221+
222+
Description: Gets the state dump occurring on a CS timeout or failure.
223+
State dump is used for debug and is created each time in case of
224+
a problem in a CS execution, before reset.
225+
Reading from the node returns the newest state dump available.
226+
Writing an integer X discards X state dumps, so that the
227+
next read would return X+1-st newest state dump.
228+
218229
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
219230
Date: Mar 2020
220231
KernelVersion: 5.6
@@ -230,6 +241,14 @@ Description: Displays a list with information about the currently user
230241
pointers (user virtual addresses) that are pinned and mapped
231242
to DMA addresses
232243

244+
What: /sys/kernel/debug/habanalabs/hl<n>/userptr_lookup
245+
Date: Aug 2021
246+
KernelVersion: 5.15
247+
248+
Description: Allows to search for specific user pointers (user virtual
249+
addresses) that are pinned and mapped to DMA addresses, and see
250+
their resolution to the specific dma address.
251+
233252
What: /sys/kernel/debug/habanalabs/hl<n>/vm
234253
Date: Jan 2019
235254
KernelVersion: 5.1

Documentation/ABI/testing/sysfs-bus-pci

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@ Description:
121121
child buses, and re-discover devices removed earlier
122122
from this part of the device tree.
123123

124+
What: /sys/bus/pci/devices/.../reset_method
125+
Date: August 2021
126+
Contact: Amey Narkhede <[email protected]>
127+
Description:
128+
Some devices allow an individual function to be reset
129+
without affecting other functions in the same slot.
130+
131+
For devices that have this support, a file named
132+
reset_method is present in sysfs. Reading this file
133+
gives names of the supported and enabled reset methods and
134+
their ordering. Writing a space-separated list of names of
135+
reset methods sets the reset methods and ordering to be
136+
used when resetting the device. Writing an empty string
137+
disables the ability to reset the device. Writing
138+
"default" enables all supported reset methods in the
139+
default ordering.
140+
124141
What: /sys/bus/pci/devices/.../reset
125142
Date: July 2009
126143
Contact: Michael S. Tsirkin <[email protected]>

Documentation/ABI/testing/sysfs-driver-ufs

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,3 +1298,239 @@ Description: This node is used to set or display whether UFS WriteBooster is
12981298
(if the platform supports UFSHCD_CAP_CLK_SCALING). For a
12991299
platform that doesn't support UFSHCD_CAP_CLK_SCALING, we can
13001300
disable/enable WriteBooster through this sysfs node.
1301+
1302+
What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_version
1303+
Date: June 2021
1304+
Contact: Daejun Park <[email protected]>
1305+
Description: This entry shows the HPB specification version.
1306+
The full information about the descriptor can be found in the UFS
1307+
HPB (Host Performance Booster) Extension specifications.
1308+
Example: version 1.2.3 = 0123h
1309+
1310+
The file is read only.
1311+
1312+
What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_control
1313+
Date: June 2021
1314+
Contact: Daejun Park <[email protected]>
1315+
Description: This entry shows an indication of the HPB control mode.
1316+
00h: Host control mode
1317+
01h: Device control mode
1318+
1319+
The file is read only.
1320+
1321+
What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_region_size
1322+
Date: June 2021
1323+
Contact: Daejun Park <[email protected]>
1324+
Description: This entry shows the bHPBRegionSize which can be calculated
1325+
as in the following (in bytes):
1326+
HPB Region size = 512B * 2^bHPBRegionSize
1327+
1328+
The file is read only.
1329+
1330+
What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_number_lu
1331+
Date: June 2021
1332+
Contact: Daejun Park <[email protected]>
1333+
Description: This entry shows the maximum number of HPB LU supported by
1334+
the device.
1335+
00h: HPB is not supported by the device.
1336+
01h ~ 20h: Maximum number of HPB LU supported by the device
1337+
1338+
The file is read only.
1339+
1340+
What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_subregion_size
1341+
Date: June 2021
1342+
Contact: Daejun Park <[email protected]>
1343+
Description: This entry shows the bHPBSubRegionSize, which can be
1344+
calculated as in the following (in bytes) and shall be a multiple of
1345+
logical block size:
1346+
HPB Sub-Region size = 512B x 2^bHPBSubRegionSize
1347+
bHPBSubRegionSize shall not exceed bHPBRegionSize.
1348+
1349+
The file is read only.
1350+
1351+
What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_max_active_regions
1352+
Date: June 2021
1353+
Contact: Daejun Park <[email protected]>
1354+
Description: This entry shows the maximum number of active HPB regions that
1355+
is supported by the device.
1356+
1357+
The file is read only.
1358+
1359+
What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_lu_max_active_regions
1360+
Date: June 2021
1361+
Contact: Daejun Park <[email protected]>
1362+
Description: This entry shows the maximum number of HPB regions assigned to
1363+
the HPB logical unit.
1364+
1365+
The file is read only.
1366+
1367+
What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_pinned_region_start_offset
1368+
Date: June 2021
1369+
Contact: Daejun Park <[email protected]>
1370+
Description: This entry shows the start offset of HPB pinned region.
1371+
1372+
The file is read only.
1373+
1374+
What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_number_pinned_regions
1375+
Date: June 2021
1376+
Contact: Daejun Park <[email protected]>
1377+
Description: This entry shows the number of HPB pinned regions assigned to
1378+
the HPB logical unit.
1379+
1380+
The file is read only.
1381+
1382+
What: /sys/class/scsi_device/*/device/hpb_stats/hit_cnt
1383+
Date: June 2021
1384+
Contact: Daejun Park <[email protected]>
1385+
Description: This entry shows the number of reads that changed to HPB read.
1386+
1387+
The file is read only.
1388+
1389+
What: /sys/class/scsi_device/*/device/hpb_stats/miss_cnt
1390+
Date: June 2021
1391+
Contact: Daejun Park <[email protected]>
1392+
Description: This entry shows the number of reads that cannot be changed to
1393+
HPB read.
1394+
1395+
The file is read only.
1396+
1397+
What: /sys/class/scsi_device/*/device/hpb_stats/rb_noti_cnt
1398+
Date: June 2021
1399+
Contact: Daejun Park <[email protected]>
1400+
Description: This entry shows the number of response UPIUs that has
1401+
recommendations for activating sub-regions and/or inactivating region.
1402+
1403+
The file is read only.
1404+
1405+
What: /sys/class/scsi_device/*/device/hpb_stats/rb_active_cnt
1406+
Date: June 2021
1407+
Contact: Daejun Park <[email protected]>
1408+
Description: This entry shows the number of active sub-regions recommended by
1409+
response UPIUs.
1410+
1411+
The file is read only.
1412+
1413+
What: /sys/class/scsi_device/*/device/hpb_stats/rb_inactive_cnt
1414+
Date: June 2021
1415+
Contact: Daejun Park <[email protected]>
1416+
Description: This entry shows the number of inactive regions recommended by
1417+
response UPIUs.
1418+
1419+
The file is read only.
1420+
1421+
What: /sys/class/scsi_device/*/device/hpb_stats/map_req_cnt
1422+
Date: June 2021
1423+
Contact: Daejun Park <[email protected]>
1424+
Description: This entry shows the number of read buffer commands for
1425+
activating sub-regions recommended by response UPIUs.
1426+
1427+
The file is read only.
1428+
1429+
What: /sys/class/scsi_device/*/device/hpb_params/requeue_timeout_ms
1430+
Date: June 2021
1431+
Contact: Daejun Park <[email protected]>
1432+
Description: This entry shows the requeue timeout threshold for write buffer
1433+
command in ms. The value can be changed by writing an integer to
1434+
this entry.
1435+
1436+
What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_data_size_hpb_single_cmd
1437+
Date: June 2021
1438+
Contact: Daejun Park <[email protected]>
1439+
Description: This entry shows the maximum HPB data size for using a single HPB
1440+
command.
1441+
1442+
=== ========
1443+
00h 4KB
1444+
01h 8KB
1445+
02h 12KB
1446+
...
1447+
FFh 1024KB
1448+
=== ========
1449+
1450+
The file is read only.
1451+
1452+
What: /sys/bus/platform/drivers/ufshcd/*/flags/hpb_enable
1453+
Date: June 2021
1454+
Contact: Daejun Park <[email protected]>
1455+
Description: This entry shows the status of HPB.
1456+
1457+
== ============================
1458+
0 HPB is not enabled.
1459+
1 HPB is enabled
1460+
== ============================
1461+
1462+
The file is read only.
1463+
1464+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/activation_thld
1465+
Date: February 2021
1466+
Contact: Avri Altman <[email protected]>
1467+
Description: In host control mode, reads are the major source of activation
1468+
trials. Once this threshold hs met, the region is added to the
1469+
"to-be-activated" list. Since we reset the read counter upon
1470+
write, this include sending a rb command updating the region
1471+
ppn as well.
1472+
1473+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/normalization_factor
1474+
Date: February 2021
1475+
Contact: Avri Altman <[email protected]>
1476+
Description: In host control mode, we think of the regions as "buckets".
1477+
Those buckets are being filled with reads, and emptied on write.
1478+
We use entries_per_srgn - the amount of blocks in a subregion as
1479+
our bucket size. This applies because HPB1.0 only handles
1480+
single-block reads. Once the bucket size is crossed, we trigger
1481+
a normalization work - not only to avoid overflow, but mainly
1482+
because we want to keep those counters normalized, as we are
1483+
using those reads as a comparative score, to make various decisions.
1484+
The normalization is dividing (shift right) the read counter by
1485+
the normalization_factor. If during consecutive normalizations
1486+
an active region has exhausted its reads - inactivate it.
1487+
1488+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_enter
1489+
Date: February 2021
1490+
Contact: Avri Altman <[email protected]>
1491+
Description: Region deactivation is often due to the fact that eviction took
1492+
place: A region becomes active at the expense of another. This is
1493+
happening when the max-active-regions limit has been crossed.
1494+
In host mode, eviction is considered an extreme measure. We
1495+
want to verify that the entering region has enough reads, and
1496+
the exiting region has much fewer reads. eviction_thld_enter is
1497+
the min reads that a region must have in order to be considered
1498+
a candidate for evicting another region.
1499+
1500+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_exit
1501+
Date: February 2021
1502+
Contact: Avri Altman <[email protected]>
1503+
Description: Same as above for the exiting region. A region is considered to
1504+
be a candidate for eviction only if it has fewer reads than
1505+
eviction_thld_exit.
1506+
1507+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_ms
1508+
Date: February 2021
1509+
Contact: Avri Altman <[email protected]>
1510+
Description: In order not to hang on to "cold" regions, we inactivate
1511+
a region that has no READ access for a predefined amount of
1512+
time - read_timeout_ms. If read_timeout_ms has expired, and the
1513+
region is dirty, it is less likely that we can make any use of
1514+
HPB reading it so we inactivate it. Still, deactivation has
1515+
its overhead, and we may still benefit from HPB reading this
1516+
region if it is clean - see read_timeout_expiries.
1517+
1518+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_expiries
1519+
Date: February 2021
1520+
Contact: Avri Altman <[email protected]>
1521+
Description: If the region read timeout has expired, but the region is clean,
1522+
just re-wind its timer for another spin. Do that as long as it
1523+
is clean and did not exhaust its read_timeout_expiries threshold.
1524+
1525+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/timeout_polling_interval_ms
1526+
Date: February 2021
1527+
Contact: Avri Altman <[email protected]>
1528+
Description: The frequency with which the delayed worker that checks the
1529+
read_timeouts is awakened.
1530+
1531+
What: /sys/class/scsi_device/*/device/hpb_param_sysfs/inflight_map_req
1532+
Date: February 2021
1533+
Contact: Avri Altman <[email protected]>
1534+
Description: In host control mode the host is the originator of map requests.
1535+
To avoid flooding the device with map requests, use a simple throttling
1536+
mechanism that limits the number of inflight map requests.

Documentation/ABI/testing/sysfs-fs-f2fs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ Description: This parameter controls the number of prefree segments to be
4141
What: /sys/fs/f2fs/<disk>/main_blkaddr
4242
Date: November 2019
4343
Contact: "Ramon Pantin" <[email protected]>
44-
Description:
45-
Shows first block address of MAIN area.
44+
Description: Shows first block address of MAIN area.
4645

4746
What: /sys/fs/f2fs/<disk>/ipu_policy
4847
Date: November 2013
@@ -493,3 +492,23 @@ Contact: "Chao Yu" <[email protected]>
493492
Description: When ATGC is on, it controls age threshold to bypass GCing young
494493
candidates whose age is not beyond the threshold, by default it was
495494
initialized as 604800 seconds (equals to 7 days).
495+
496+
What: /sys/fs/f2fs/<disk>/gc_reclaimed_segments
497+
Date: July 2021
498+
Contact: "Daeho Jeong" <[email protected]>
499+
Description: Show how many segments have been reclaimed by GC during a specific
500+
GC mode (0: GC normal, 1: GC idle CB, 2: GC idle greedy,
501+
3: GC idle AT, 4: GC urgent high, 5: GC urgent low)
502+
You can re-initialize this value to "0".
503+
504+
What: /sys/fs/f2fs/<disk>/gc_segment_mode
505+
Date: July 2021
506+
Contact: "Daeho Jeong" <[email protected]>
507+
Description: You can control for which gc mode the "gc_reclaimed_segments" node shows.
508+
Refer to the description of the modes in "gc_reclaimed_segments".
509+
510+
What: /sys/fs/f2fs/<disk>/seq_file_ra_mul
511+
Date: July 2021
512+
Contact: "Daeho Jeong" <[email protected]>
513+
Description: You can control the multiplier value of bdi device readahead window size
514+
between 2 (default) and 256 for POSIX_FADV_SEQUENTIAL advise option.

Documentation/ABI/testing/sysfs-kernel-iommu_groups

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ Description: /sys/kernel/iommu_groups/<grp_id>/type shows the type of default
4242
======== ======================================================
4343
DMA All the DMA transactions from the device in this group
4444
are translated by the iommu.
45+
DMA-FQ As above, but using batched invalidation to lazily
46+
remove translations after use. This may offer reduced
47+
overhead at the cost of reduced memory protection.
4548
identity All the DMA transactions from the device in this group
46-
are not translated by the iommu.
49+
are not translated by the iommu. Maximum performance
50+
but zero protection.
4751
auto Change to the type the device was booted with.
4852
======== ======================================================
4953

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
What: /sys/kernel/mm/numa/
2+
Date: June 2021
3+
Contact: Linux memory management mailing list <[email protected]>
4+
Description: Interface for NUMA
5+
6+
What: /sys/kernel/mm/numa/demotion_enabled
7+
Date: June 2021
8+
Contact: Linux memory management mailing list <[email protected]>
9+
Description: Enable/disable demoting pages during reclaim
10+
11+
Page migration during reclaim is intended for systems
12+
with tiered memory configurations. These systems have
13+
multiple types of memory with varied performance
14+
characteristics instead of plain NUMA systems where
15+
the same kind of memory is found at varied distances.
16+
Allowing page migration during reclaim enables these
17+
systems to migrate pages from fast tiers to slow tiers
18+
when the fast tier is under pressure. This migration
19+
is performed before swap. It may move data to a NUMA
20+
node that does not fall into the cpuset of the
21+
allocating process which might be construed to violate
22+
the guarantees of cpusets. This should not be enabled
23+
on systems which need strict cpuset location
24+
guarantees.

0 commit comments

Comments
 (0)