Skip to content

Commit 9ac669f

Browse files
committed
Merge tag 'y2038' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground into timers/core
Pull more y2038 work from Arnd Bergman: y2038: convert more syscalls Here is another set of system call changes to prepare the change over to 64-bit time_t. As before, the strategy is to change system calls that take a 'struct timespec' argument over to 'struct __kernel_timespec', which for now is defined to be the same but will get redefined to use a 64-bit time_t argument once we are ready to modify the system call tables. The major change from previous patches is that the plan is no longer to directly use the 'compat' system calls for providing compatibility with the existing 32-bit time_t based entry points. Instead, we rename the compat code to something that makes more sense on 32-bit architectures, e.g. compat_timespec becomes old_timespec32. With the renamed types in place, change over the 'stat' and 'utimes' families of system calls, sched_rr_get_interval, recvmmsg and rt_sigtimedwait. Another series for poll, select and io_pgetevents is currently being tested.
2 parents fbfa926 + 67314ec commit 9ac669f

File tree

11,465 files changed

+537795
-232119
lines changed

Some content is hidden

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

11,465 files changed

+537795
-232119
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ IncludeIsMainRegex: '(Test)?$'
382382
IndentCaseLabels: false
383383
#IndentPPDirectives: None # Unknown to clang-format-5.0
384384
IndentWidth: 8
385-
IndentWrappedFunctionNames: true
385+
IndentWrappedFunctionNames: false
386386
JavaScriptQuotes: Leave
387387
JavaScriptWrapImports: true
388388
KeepEmptyLinesAtTheStartOfBlocks: false

.mailmap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Arnaud Patard <[email protected]>
3131
Arnd Bergmann <[email protected]>
3232
Axel Dyks <[email protected]>
3333
34+
35+
3436
Ben Gardner <[email protected]>
3537
Ben M Cahill <[email protected]>
3638
Björn Steinbrink <[email protected]>
@@ -81,6 +83,9 @@ Javi Merino <[email protected]> <[email protected]>
8183
8284
Jean Tourrilhes <[email protected]>
8385
Jeff Garzik <[email protected]>
86+
87+
88+
8489
Jens Axboe <[email protected]>
8590
Jens Osterkamp <[email protected]>
8691
@@ -154,6 +159,7 @@ Ralf Wildenhues <[email protected]>
154159
155160
Rémi Denis-Courmont <[email protected]>
156161
Ricardo Ribalda Delgado <[email protected]>
162+
157163
Rudolf Marek <[email protected]>
158164
Rui Saraiva <[email protected]>
159165
Sachin P Sant <[email protected]>

CREDITS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,11 @@ S: Helstorfer Str. 7
25712571
S: D-30625 Hannover
25722572
S: Germany
25732573

2574+
N: Ron Minnich
2575+
2576+
2577+
D: 9p filesystem development
2578+
25742579
N: Corey Minyard
25752580
25762581
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
These files are deprecated and will be removed. The same files are available
2+
under /sys/bus/typec (see Documentation/ABI/testing/sysfs-bus-typec).
3+
4+
What: /sys/class/typec/<port|partner|cable>/<dev>/svid
5+
Date: April 2017
6+
Contact: Heikki Krogerus <[email protected]>
7+
Description:
8+
The SVID (Standard or Vendor ID) assigned by USB-IF for this
9+
alternate mode.
10+
11+
What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/
12+
Date: April 2017
13+
Contact: Heikki Krogerus <[email protected]>
14+
Description:
15+
Every supported mode will have its own directory. The name of
16+
a mode will be "mode<index>" (for example mode1), where <index>
17+
is the actual index to the mode VDO returned by Discover Modes
18+
USB power delivery command.
19+
20+
What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description
21+
Date: April 2017
22+
Contact: Heikki Krogerus <[email protected]>
23+
Description:
24+
Shows description of the mode. The description is optional for
25+
the drivers, just like with the Billboard Devices.
26+
27+
What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
28+
Date: April 2017
29+
Contact: Heikki Krogerus <[email protected]>
30+
Description:
31+
Shows the VDO in hexadecimal returned by Discover Modes command
32+
for this mode.
33+
34+
What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active
35+
Date: April 2017
36+
Contact: Heikki Krogerus <[email protected]>
37+
Description:
38+
Shows if the mode is active or not. The attribute can be used
39+
for entering/exiting the mode with partners and cable plugs, and
40+
with the port alternate modes it can be used for disabling
41+
support for specific alternate modes. Entering/exiting modes is
42+
supported as synchronous operation so write(2) to the attribute
43+
does not return until the enter/exit mode operation has
44+
finished. The attribute is notified when the mode is
45+
entered/exited so poll(2) on the attribute wakes up.
46+
Entering/exiting a mode will also generate uevent KOBJ_CHANGE.
47+
48+
Valid values: yes, no

Documentation/ABI/stable/sysfs-bus-vmbus

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Contact: K. Y. Srinivasan <[email protected]>
4242
Description: The 16 bit vendor ID of the device
4343
Users: tools/hv/lsvmbus and user level RDMA libraries
4444

45+
What: /sys/bus/vmbus/devices/<UUID>/numa_node
46+
Date: Jul 2018
47+
KernelVersion: 4.19
48+
Contact: Stephen Hemminger <[email protected]>
49+
Description: This NUMA node to which the VMBUS device is
50+
attached, or -1 if the node is unknown.
51+
4552
What: /sys/bus/vmbus/devices/<UUID>/channels/<N>
4653
Date: September. 2017
4754
KernelVersion: 4.14

Documentation/ABI/stable/sysfs-class-rfkill

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ KernelVersion: v2.6.22
1111
1212
Description: The rfkill class subsystem folder.
1313
Each registered rfkill driver is represented by an rfkillX
14-
subfolder (X being an integer > 0).
14+
subfolder (X being an integer >= 0).
1515

1616

1717
What: /sys/class/rfkill/rfkill[0-9]+/name
@@ -48,8 +48,8 @@ Contact: [email protected]
4848
Description: Current state of the transmitter.
4949
This file was scheduled to be removed in 2014, but due to its
5050
large number of users it will be sticking around for a bit
51-
longer. Despite it being marked as stabe, the newer "hard" and
52-
"soft" interfaces should be preffered, since it is not possible
51+
longer. Despite it being marked as stable, the newer "hard" and
52+
"soft" interfaces should be preferred, since it is not possible
5353
to express the 'soft and hard block' state of the rfkill driver
5454
through this interface. There will likely be another attempt to
5555
remove it in the future.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
2+
asic_health
3+
4+
Date: June 2018
5+
KernelVersion: 4.19
6+
Contact: Vadim Pasternak <vadimpmellanox.com>
7+
Description: This file shows ASIC health status. The possible values are:
8+
0 - health failed, 2 - health OK, 3 - ASIC in booting state.
9+
10+
The files are read only.
11+
12+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
13+
cpld1_version
14+
cpld2_version
15+
16+
Date: June 2018
17+
KernelVersion: 4.19
18+
Contact: Vadim Pasternak <vadimpmellanox.com>
19+
Description: These files show with which CPLD versions have been burned
20+
on carrier and switch boards.
21+
22+
The files are read only.
23+
24+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio
25+
Date: June 2018
26+
KernelVersion: 4.19
27+
Contact: Vadim Pasternak <vadimpmellanox.com>
28+
Description: This file allows iio devices selection.
29+
30+
Attribute select_iio can be written with 0 or with 1. It
31+
selects which one of iio devices can be accessed.
32+
33+
The file is read/write.
34+
35+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on
36+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on
37+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle
38+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down
39+
Date: June 2018
40+
KernelVersion: 4.19
41+
Contact: Vadim Pasternak <vadimpmellanox.com>
42+
Description: These files allow asserting system power cycling, switching
43+
power supply units on and off and system's main power domain
44+
shutdown.
45+
Expected behavior:
46+
When pwr_cycle is written 1: auxiliary power domain will go
47+
down and after short period (about 1 second) up.
48+
When psu1_on or psu2_on is written 1, related unit will be
49+
disconnected from the power source, when written 0 - connected.
50+
If both are written 1 - power supplies main power domain will
51+
go down.
52+
When pwr_down is written 1, system's main power domain will go
53+
down.
54+
55+
The files are write only.
56+
57+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
58+
reset_aux_pwr_or_ref
59+
reset_asic_thermal
60+
reset_hotswap_or_halt
61+
reset_hotswap_or_wd
62+
reset_fw_reset
63+
reset_long_pb
64+
reset_main_pwr_fail
65+
reset_short_pb
66+
reset_sw_reset
67+
Date: June 2018
68+
KernelVersion: 4.19
69+
Contact: Vadim Pasternak <vadimpmellanox.com>
70+
Description: These files show the system reset cause, as following: power
71+
auxiliary outage or power refresh, ASIC thermal shutdown, halt,
72+
hotswap, watchdog, firmware reset, long press power button,
73+
short press power button, software reset. Value 1 in file means
74+
this is reset cause, 0 - otherwise. Only one of the above
75+
causes could be 1 at the same time, representing only last
76+
reset cause.
77+
78+
The files are read only.

Documentation/ABI/testing/configfs-usb-gadget-uvc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,8 @@ Description: Specific streaming header descriptors
263263
is connected
264264
bmInfo - capabilities of this video streaming
265265
interface
266+
267+
What: /sys/class/udc/udc.name/device/gadget/video4linux/video.name/function_name
268+
Date: May 2018
269+
KernelVersion: 4.19
270+
Description: UVC configfs function instance name

Documentation/ABI/testing/ppc-memtrace

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Contact: [email protected]
1313
Description: Write an integer containing the size in bytes of the memory
1414
you want removed from each NUMA node to this file - it must be
1515
aligned to the memblock size. This amount of RAM will be removed
16-
from the kernel mappings and the following debugfs files will be
17-
created. This can only be successfully done once per boot. Once
18-
memory is successfully removed from each node, the following
19-
files are created.
16+
from each NUMA node in the kernel mappings and the following
17+
debugfs files will be created. Once memory is successfully
18+
removed from each node, the following files are created. To
19+
re-add memory to the kernel, echo 0 into this file (it will be
20+
automatically onlined).
2021

2122
What: /sys/kernel/debug/powerpc/memtrace/<node-id>
2223
Date: Aug 2017

Documentation/ABI/testing/procfs-diskstats

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Description:
55
The /proc/diskstats file displays the I/O statistics
66
of block devices. Each line contains the following 14
77
fields:
8+
89
1 - major number
910
2 - minor mumber
1011
3 - device name
@@ -19,4 +20,13 @@ Description:
1920
12 - I/Os currently in progress
2021
13 - time spent doing I/Os (ms)
2122
14 - weighted time spent doing I/Os (ms)
23+
24+
Kernel 4.18+ appends four more fields for discard
25+
tracking putting the total at 18:
26+
27+
15 - discards completed successfully
28+
16 - discards merged
29+
17 - sectors discarded
30+
18 - time spent discarding
31+
2232
For more details refer to Documentation/iostats.txt

0 commit comments

Comments
 (0)