Convert files to ReST
Subsystems (167)
PATCH v2 79/79 docs: block: convert to ReST
In reply to Mauro Carvalho ChehabRename the block documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../admin-guide/kernel-parameters.txt | 8 +-
.../{bfq-iosched.txt => bfq-iosched.rst} | 66 ++--
.../block/{biodoc.txt => biodoc.rst} | 363 +++++++++++-------
.../block/{biovecs.txt => biovecs.rst} | 20 +-
Documentation/block/capability.rst | 18 +
Documentation/block/capability.txt | 15 -
...ne-partition.txt => cmdline-partition.rst} | 13 +-
...{data-integrity.txt => data-integrity.rst} | 58 +--
...dline-iosched.txt => deadline-iosched.rst} | 19 +-
Documentation/block/index.rst | 25 ++
.../block/{ioprio.txt => ioprio.rst} | 95 +++--
.../{kyber-iosched.txt => kyber-iosched.rst} | 3 +-
.../block/{null_blk.txt => null_blk.rst} | 65 +++-
Documentation/block/{pr.txt => pr.rst} | 14 +-
.../{queue-sysfs.txt => queue-sysfs.rst} | 7 +-
.../block/{request.txt => request.rst} | 47 ++-
Documentation/block/{stat.txt => stat.rst} | 13 +-
...witching-sched.txt => switching-sched.rst} | 28 +-
...ontrol.txt => writeback_cache_control.rst} | 12 +-
Documentation/blockdev/zram.rst | 2 +-
MAINTAINERS | 2 +-
block/Kconfig | 2 +-
block/Kconfig.iosched | 2 +-
block/bfq-iosched.c | 2 +-
block/blk-integrity.c | 2 +-
block/ioprio.c | 2 +-
block/mq-deadline.c | 2 +-
block/partitions/cmdline.c | 2 +-
28 files changed, 555 insertions(+), 352 deletions(-)
rename Documentation/block/{bfq-iosched.txt => bfq-iosched.rst} (95%)
rename Documentation/block/{biodoc.txt => biodoc.rst} (83%)
rename Documentation/block/{biovecs.txt => biovecs.rst} (92%)
create mode 100644 Documentation/block/capability.rst
delete mode 100644 Documentation/block/capability.txt
rename Documentation/block/{cmdline-partition.txt => cmdline-partition.rst} (92%)
rename Documentation/block/{data-integrity.txt => data-integrity.rst} (92%)
rename Documentation/block/{deadline-iosched.txt => deadline-iosched.rst} (89%)
create mode 100644 Documentation/block/index.rst
rename Documentation/block/{ioprio.txt => ioprio.rst} (75%)
rename Documentation/block/{kyber-iosched.txt => kyber-iosched.rst} (86%)
rename Documentation/block/{null_blk.txt => null_blk.rst} (60%)
rename Documentation/block/{pr.txt => pr.rst} (95%)
rename Documentation/block/{queue-sysfs.txt => queue-sysfs.rst} (99%)
rename Documentation/block/{request.txt => request.rst} (59%)
rename Documentation/block/{stat.txt => stat.rst} (89%)
rename Documentation/block/{switching-sched.txt => switching-sched.rst} (71%)
rename Documentation/block/{writeback_cache_control.txt => writeback_cache_control.rst} (94%)Documentation/admin-guide/kernel-parameters.txt +4 -4
@@ -430,7 +430,7 @@ blkdevparts= Manual partition parsing of block device(s) for embedded devices based on command line input. - See Documentation/block/cmdline-partition.txt + See Documentation/block/cmdline-partition.rst boot_delay= Milliseconds to delay each printk during boot. Values larger than 10 seconds (10000) are changed to
@@ -1198,9 +1198,9 @@ elevator= [IOSCHED] Format: { "mq-deadline" | "kyber" | "bfq" } - See Documentation/block/deadline-iosched.txt, - Documentation/block/kyber-iosched.txt and - Documentation/block/bfq-iosched.txt for details. + See Documentation/block/deadline-iosched.rst, + Documentation/block/kyber-iosched.rst and + Documentation/block/bfq-iosched.rst for details. elfcorehdr=[size[KMG]@]offset[KMG] [IA64,PPC,SH,X86,S390] Specifies physical address of start of kernel core
Documentation/block/bfq-iosched.rst renamed from Documentation/block/bfq-iosched.txt +40 -26
159 lines not on this page · raw message
Documentation/block/biodoc.rst renamed from Documentation/block/biodoc.txt +228 -135
714 lines not on this page · raw message
Documentation/block/biovecs.rst renamed from Documentation/block/biovecs.txt +11 -9
@@ -1,6 +1,6 @@ - -Immutable biovecs and biovec iterators: -======================================= +====================================== +Immutable biovecs and biovec iterators +====================================== Kent Overstreet <[email protected]>
@@ -121,10 +121,12 @@ Other implications: Usage of helpers: ================= -* The following helpers whose names have the suffix of "_all" can only be used -on non-BIO_CLONED bio. They are usually used by filesystem code. Drivers -shouldn't use them because the bio may have been split before it reached the -driver. +* The following helpers whose names have the suffix of `_all` can only be used + on non-BIO_CLONED bio. They are usually used by filesystem code. Drivers + shouldn't use them because the bio may have been split before it reached the + driver. + +:: bio_for_each_segment_all() bio_first_bvec_all()
@@ -132,13 +134,13 @@ driver. bio_last_bvec_all() * The following helpers iterate over single-page segment. The passed 'struct -bio_vec' will contain a single-page IO vector during the iteration + bio_vec' will contain a single-page IO vector during the iteration:: bio_for_each_segment() bio_for_each_segment_all() * The following helpers iterate over multi-page bvec. The passed 'struct -bio_vec' will contain a multi-page IO vector during the iteration + bio_vec' will contain a multi-page IO vector during the iteration:: bio_for_each_bvec() rq_for_each_bvec()
Documentation/block/capability.rst new file +18 -0
@@ -0,0 +1,18 @@ +=============================== +Generic Block Device Capability +=============================== + +This file documents the sysfs file block/<disk>/capability + +capability is a hex word indicating which capabilities a specific disk +supports. For more information on bits not listed here, see +include/linux/genhd.h + +GENHD_FL_MEDIA_CHANGE_NOTIFY +---------------------------- + +Value: 4 + +When this bit is set, the disk supports Asynchronous Notification +of media change events. These events will be broadcast to user +space via kernel uevent.
Documentation/block/capability.txt deleted +0 -15
@@ -1,15 +0,0 @@ -Generic Block Device Capability -=============================================================================== -This file documents the sysfs file block/<disk>/capability - -capability is a hex word indicating which capabilities a specific disk -supports. For more information on bits not listed here, see -include/linux/genhd.h - -Capability Value -------------------------------------------------------------------------------- -GENHD_FL_MEDIA_CHANGE_NOTIFY 4 - When this bit is set, the disk supports Asynchronous Notification - of media change events. These events will be broadcast to user - space via kernel uevent. -
Documentation/block/cmdline-partition.rst renamed from Documentation/block/cmdline-partition.txt +10 -3
@@ -1,5 +1,6 @@ +============================================== Embedded device command line partition parsing -===================================================================== +============================================== The "blkdevparts" command line option adds support for reading the block device partition table from the kernel command line.
@@ -22,12 +23,15 @@ blkdevparts=<blkdev-def>[;<blkdev-def>] <size> partition size, in bytes, such as: 512, 1m, 1G. size may contain an optional suffix of (upper or lower case): + K, M, G, T, P, E. + "-" is used to denote all remaining space. <offset> partition start address, in bytes. offset may contain an optional suffix of (upper or lower case): + K, M, G, T, P, E. (part-name)
@@ -36,11 +40,14 @@ blkdevparts=<blkdev-def>[;<blkdev-def>] User space application can access partition by partition name. Example: + eMMC disk names are "mmcblk0" and "mmcblk0boot0". - bootargs: + bootargs:: + 'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)' - dmesg: + dmesg:: + mmcblk0: p1(data0) p2(data1) p3() mmcblk0boot0: p1(boot) p2(kernel)
Documentation/block/data-integrity.rst renamed from Documentation/block/data-integrity.txt +34 -24
148 lines not on this page · raw message
Documentation/block/deadline-iosched.rst renamed from Documentation/block/deadline-iosched.txt +9 -10
@@ -1,3 +1,4 @@ +============================== Deadline IO scheduler tunables ==============================
@@ -7,15 +8,13 @@ of interest to power users. Selecting IO schedulers ----------------------- -Refer to Documentation/block/switching-sched.txt for information on +Refer to Documentation/block/switching-sched.rst for information on selecting an io scheduler on a per-device basis. - -******************************************************************************** - +------------------------------------------------------------------------------ read_expire (in ms) ------------ +----------------------- The goal of the deadline io scheduler is to attempt to guarantee a start service time for a request. As we focus mainly on read latencies, this is
@@ -25,15 +24,15 @@ milliseconds. write_expire (in ms) ------------ +----------------------- Similar to read_expire mentioned above, but for writes. fifo_batch (number of requests) ----------- +------------------------------------ -Requests are grouped into ``batches'' of a particular data direction (read or +Requests are grouped into ``batches`` of a particular data direction (read or write) which are serviced in increasing sector order. To limit extra seeking, deadline expiries are only checked between batches. fifo_batch controls the maximum number of requests per batch.
@@ -45,7 +44,7 @@ generally improves throughput, at the cost of latency variation. writes_starved (number of dispatches) --------------- +-------------------------------------- When we have to move requests from the io scheduler queue to the block device dispatch queue, we always give a preference to reads. However, we
@@ -56,7 +55,7 @@ same criteria as reads. front_merges (bool) ------------- +---------------------- Sometimes it happens that a request enters the io scheduler that is contiguous with a request that is already on the queue. Either it fits in the back of that
Documentation/block/index.rst new file +25 -0
@@ -0,0 +1,25 @@ +:orphan: + +===== +Block +===== + +.. toctree:: + :maxdepth: 1 + + bfq-iosched + biodoc + biovecs + capability + cmdline-partition + data-integrity + deadline-iosched + ioprio + kyber-iosched + null_blk + pr + queue-sysfs + request + stat + switching-sched + writeback_cache_control
Documentation/block/ioprio.rst renamed from Documentation/block/ioprio.txt +47 -48
140 lines not on this page · raw message
Documentation/block/kyber-iosched.rst renamed from Documentation/block/kyber-iosched.txt +2 -1
@@ -1,5 +1,6 @@ +============================ Kyber I/O scheduler tunables -=========================== +============================ The only two tunables for the Kyber scheduler are the target latencies for reads and synchronous writes. Kyber will throttle requests in order to meet
Documentation/block/null_blk.rst renamed from Documentation/block/null_blk.txt +46 -19
121 lines not on this page · raw message
Documentation/block/pr.rst renamed from Documentation/block/pr.txt +7 -7
@@ -1,4 +1,4 @@ - +=============================================== Block layer support for Persistent Reservations ===============================================
@@ -23,22 +23,18 @@ The following types of reservations are supported: -------------------------------------------------- - PR_WRITE_EXCLUSIVE - Only the initiator that owns the reservation can write to the device. Any initiator can read from the device. - PR_EXCLUSIVE_ACCESS - Only the initiator that owns the reservation can access the device. - PR_WRITE_EXCLUSIVE_REG_ONLY - Only initiators with a registered key can write to the device, Any initiator can read from the device. - PR_EXCLUSIVE_ACCESS_REG_ONLY - Only initiators with a registered key can access the device. - PR_WRITE_EXCLUSIVE_ALL_REGS
@@ -51,7 +47,6 @@ The following types of reservations are supported: holder if you want to use this type. - PR_EXCLUSIVE_ACCESS_ALL_REGS - Only initiators with a registered key can access the device. All initiators with a registered key are considered reservation holders.
@@ -63,6 +58,7 @@ The following ioctl are supported: ---------------------------------- 1. IOC_PR_REGISTER +^^^^^^^^^^^^^^^^^^ This ioctl command registers a new reservation if the new_key argument is non-null. If no existing reservation exists old_key must be zero,
@@ -74,6 +70,7 @@ in old_key. 2. IOC_PR_RESERVE +^^^^^^^^^^^^^^^^^ This ioctl command reserves the device and thus restricts access for other devices based on the type argument. The key argument must be the existing
@@ -82,12 +79,14 @@ IOC_PR_REGISTER_IGNORE, IOC_PR_PREEMPT or IOC_PR_PREEMPT_ABORT commands. 3. IOC_PR_RELEASE +^^^^^^^^^^^^^^^^^ This ioctl command releases the reservation specified by key and flags and thus removes any access restriction implied by it. 4. IOC_PR_PREEMPT +^^^^^^^^^^^^^^^^^ This ioctl command releases the existing reservation referred to by old_key and replaces it with a new reservation of type for the
@@ -95,11 +94,13 @@ reservation key new_key. 5. IOC_PR_PREEMPT_ABORT +^^^^^^^^^^^^^^^^^^^^^^^ This ioctl command works like IOC_PR_PREEMPT except that it also aborts any outstanding command sent over a connection identified by old_key. 6. IOC_PR_CLEAR +^^^^^^^^^^^^^^^ This ioctl command unregisters both key and any other reservation key registered with the device and drops any existing reservation.
@@ -111,7 +112,6 @@ Flags All the ioctls have a flag field. Currently only one flag is supported: - PR_FL_IGNORE_KEY - Ignore the existing reservation key. This is commonly supported for IOC_PR_REGISTER, and some implementation may support the flag for IOC_PR_RESERVE.
Documentation/block/queue-sysfs.rst renamed from Documentation/block/queue-sysfs.txt +4 -3
@@ -1,3 +1,4 @@ +================= Queue sysfs files =================
@@ -10,7 +11,7 @@ Files denoted with a RO postfix are readonly and the RW postfix means read-write. add_random (RW) ----------------- +--------------- This file allows to turn off the disk entropy contribution. Default value of this file is '1'(on).
@@ -21,13 +22,13 @@ used by CPU-addressable storage to bypass the pagecache. It shows '1' if true, '0' if not. discard_granularity (RO) ------------------------ +------------------------ This shows the size of internal allocation of the device in bytes, if reported by the device. A value of '0' means device does not support the discard functionality. discard_max_hw_bytes (RO) ----------------------- +------------------------- Devices that support discard functionality may have internal limits on the number of bytes that can be trimmed or unmapped in a single operation. The discard_max_bytes parameter is set by the device driver to the maximum
Documentation/block/request.rst renamed from Documentation/block/request.txt +29 -18
87 lines not on this page · raw message
Documentation/block/stat.rst renamed from Documentation/block/stat.txt +10 -3
@@ -1,3 +1,4 @@ +=============================================== Block layer statistics in /sys/block/<dev>/stat ===============================================
@@ -6,9 +7,12 @@ This file documents the contents of the /sys/block/<dev>/stat file. The stat file provides several statistics about the state of block device <dev>. -Q. Why are there multiple statistics in a single file? Doesn't sysfs +Q. + Why are there multiple statistics in a single file? Doesn't sysfs normally contain a single value per file? -A. By having a single file, the kernel can guarantee that the statistics + +A. + By having a single file, the kernel can guarantee that the statistics represent a consistent snapshot of the state of the device. If the statistics were exported as multiple files containing one statistic each, it would be impossible to guarantee that a set of readings
@@ -18,8 +22,10 @@ The stat file consists of a single line of text containing 11 decimal values separated by whitespace. The fields are summarized in the following table, and described in more detail below. + +=============== ============= ================================================= Name units description ----- ----- ----------- +=============== ============= ================================================= read I/Os requests number of read I/Os processed read merges requests number of read I/Os merged with in-queue I/O read sectors sectors number of sectors read
@@ -35,6 +41,7 @@ discard I/Os requests number of discard I/Os processed discard merges requests number of discard I/Os merged with in-queue I/O discard sectors sectors number of sectors discarded discard ticks milliseconds total wait time for discard requests +=============== ============= ================================================= read I/Os, write I/Os, discard I/0s ===================================
Documentation/block/switching-sched.rst renamed from Documentation/block/switching-sched.txt +16 -12
@@ -1,17 +1,21 @@ +=================== +Switching Scheduler +=================== + To choose IO schedulers at boot time, use the argument 'elevator=deadline'. 'noop' and 'cfq' (the default) are also available. IO schedulers are assigned globally at boot time only presently. Each io queue has a set of io scheduler tunables associated with it. These tunables control how the io scheduler works. You can find these entries -in: +in:: -/sys/block/<device>/queue/iosched + /sys/block/<device>/queue/iosched assuming that you have sysfs mounted on /sys. If you don't have sysfs mounted, -you can do so by typing: +you can do so by typing:: -# mount none /sys -t sysfs + # mount none /sys -t sysfs As of the Linux 2.6.10 kernel, it is now possible to change the IO scheduler for a given block device on the fly (thus making it possible,
@@ -19,19 +23,19 @@ for instance, to set the CFQ scheduler for the system default, but set a specific device to use the deadline or noop schedulers - which can improve that device's throughput). -To set a specific scheduler, simply do this: +To set a specific scheduler, simply do this:: -echo SCHEDNAME > /sys/block/DEV/queue/scheduler + echo SCHEDNAME > /sys/block/DEV/queue/scheduler where SCHEDNAME is the name of a defined IO scheduler, and DEV is the device name (hda, hdb, sga, or whatever you happen to have). The list of defined schedulers can be found by simply doing a "cat /sys/block/DEV/queue/scheduler" - the list of valid names -will be displayed, with the currently selected scheduler in brackets: +will be displayed, with the currently selected scheduler in brackets:: -# cat /sys/block/hda/queue/scheduler -noop deadline [cfq] -# echo deadline > /sys/block/hda/queue/scheduler -# cat /sys/block/hda/queue/scheduler -noop [deadline] cfq + # cat /sys/block/hda/queue/scheduler + noop deadline [cfq] + # echo deadline > /sys/block/hda/queue/scheduler + # cat /sys/block/hda/queue/scheduler + noop [deadline] cfq
Documentation/block/writeback_cache_control.rst renamed from Documentation/block/writeback_cache_control.txt +6 -6
@@ -1,6 +1,6 @@ - +========================================== Explicit volatile write back cache control -===================================== +========================================== Introduction ------------
@@ -31,7 +31,7 @@ the blkdev_issue_flush() helper for a pure cache flush. Forced Unit Access ------------------ +------------------ The REQ_FUA flag can be OR ed into the r/w flags of a bio submitted from the filesystem and will make sure that I/O completion for this request is only
@@ -62,14 +62,14 @@ flags themselves without any help from the block layer. Implementation details for request_fn based block drivers --------------------------------------------------------------- +--------------------------------------------------------- For devices that do not support volatile write caches there is no driver support required, the block layer completes empty REQ_PREFLUSH requests before entering the driver and strips off the REQ_PREFLUSH and REQ_FUA bits from requests that have a payload. For devices with volatile write caches the driver needs to tell the block layer that it supports flushing caches by -doing: +doing:: blk_queue_write_cache(sdkp->disk->queue, true, false);
@@ -77,7 +77,7 @@ and handle empty REQ_OP_FLUSH requests in its prep_fn/request_fn. Note that REQ_PREFLUSH requests with a payload are automatically turned into a sequence of an empty REQ_OP_FLUSH request followed by the actual write by the block layer. For devices that also support the FUA bit the block layer needs -to be told to pass through the REQ_FUA bit using: +to be told to pass through the REQ_FUA bit using:: blk_queue_write_cache(sdkp->disk->queue, true, true);
Documentation/blockdev/zram.rst +1 -1
@@ -215,7 +215,7 @@ User space is advised to use the following files to read the device statistics. File /sys/block/zram<id>/stat -Represents block layer statistics. Read Documentation/block/stat.txt for +Represents block layer statistics. Read Documentation/block/stat.rst for details. File /sys/block/zram<id>/io_stat
MAINTAINERS +1 -1
@@ -2868,7 +2868,7 @@ M: Jens Axboe <[email protected]> L: [email protected] S: Maintained F: block/bfq-* -F: Documentation/block/bfq-iosched.txt +F: Documentation/block/bfq-iosched.rst BFS FILE SYSTEM M: "Tigran A. Aivazian" <[email protected]>
block/Kconfig +1 -1
@@ -109,7 +109,7 @@ config BLK_CMDLINE_PARSER which don't otherwise have any standardized method for listing the partitions on a block device. - See Documentation/block/cmdline-partition.txt for more information. + See Documentation/block/cmdline-partition.rst for more information. config BLK_WBT bool "Enable support for block device writeback throttling"
block/Kconfig.iosched +1 -1
@@ -26,7 +26,7 @@ config IOSCHED_BFQ regardless of the device parameters and with any workload. It also guarantees a low latency to interactive and soft real-time applications. Details in - Documentation/block/bfq-iosched.txt + Documentation/block/bfq-iosched.rst config BFQ_GROUP_IOSCHED bool "BFQ hierarchical scheduling support"
block/bfq-iosched.c +1 -1
@@ -26,7 +26,7 @@* low-latency capabilities. BFQ also supports full hierarchical * scheduling through cgroups. Next paragraphs provide an introduction * on BFQ inner workings. Details on BFQ benefits, usage and -* limitations can be found in Documentation/block/bfq-iosched.txt. +* limitations can be found in Documentation/block/bfq-iosched.rst. * * BFQ is a proportional-share storage-I/O scheduling algorithm based * on the slice-by-slice service scheme of CFQ. But BFQ assigns
block/blk-integrity.c +1 -1
@@ -396,7 +396,7 @@ static const struct blk_integrity_profile nop_profile = {* send/receive integrity metadata it must use this function to register * the capability with the block layer. The template is a blk_integrity * struct with values appropriate for the underlying hardware. See -* Documentation/block/data-integrity.txt. +* Documentation/block/data-integrity.rst. */ void blk_integrity_register (struct gendisk *disk,struct blk_integrity *template) {
block/ioprio.c +1 -1
@@ -16,7 +16,7 @@* * ioprio_set(PRIO_PROCESS, pid, prio); * -* See also Documentation/block/ioprio.txt +* See also Documentation/block/ioprio.rst * */ #include <linux/gfp.h>
block/mq-deadline.c +1 -1
@@ -24,7 +24,7 @@#include "blk-mq-sched.h" /* -* See Documentation/block/deadline-iosched.txt +* See Documentation/block/deadline-iosched.rst */ static const int read_expire =HZ /2 ;/* max time before a read is submitted. */ static const int write_expire =5 *HZ ;/* ditto for writes, these limits are SOFT! */
block/partitions/cmdline.c +1 -1
@@ -11,7 +11,7 @@* * The format for the command line is just like mtdparts. * -* For further information, see "Documentation/block/cmdline-partition.txt" +* For further information, see "Documentation/block/cmdline-partition.rst" * */
Signature · 1 line
2.20.1
PATCH v2 40/79 convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabAs it has some function definitions, move them to connector.h.
The remaining conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../{connector.txt => connector.rst} | 130 ++++++------------
drivers/w1/Kconfig | 2 +-
include/linux/connector.h | 63 ++++++++-
samples/Kconfig | 2 +-
4 files changed, 109 insertions(+), 88 deletions(-)
rename Documentation/connector/{connector.txt => connector.rst} (57%)Documentation/connector/connector.rst renamed from Documentation/connector/connector.txt +45 -85
@@ -1,6 +1,8 @@ -/*****************************************/ -Kernel Connector. -/*****************************************/ +:orphan: + +================ +Kernel Connector +================ Kernel connector - new netlink based userspace <-> kernel space easy to use communication module.
@@ -12,94 +14,55 @@ identifier, the appropriate callback will be called. From the userspace point of view it's quite straightforward: - socket(); - bind(); - send(); - recv(); + - socket(); + - bind(); + - send(); + - recv(); But if kernelspace wants to use the full power of such connections, the driver writer must create special sockets, must know about struct sk_buff handling, etc... The Connector driver allows any kernelspace agents to use netlink based networking for inter-process communication in a significantly -easier way: +easier way:: -int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink_skb_parms *)); -void cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask); -void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask); + int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink_skb_parms *)); + void cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask); + void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask); -struct cb_id -{ + struct cb_id + { __u32 idx; __u32 val; -}; + }; idx and val are unique identifiers which must be registered in the -connector.h header for in-kernel usage. void (*callback) (void *) is a +connector.h header for in-kernel usage. `void (*callback) (void *)` is a callback function which will be called when a message with above idx.val is received by the connector core. The argument for that function must -be dereferenced to struct cn_msg *. +be dereferenced to `struct cn_msg *`:: -struct cn_msg -{ + struct cn_msg + { struct cb_id id; __u32 seq; __u32 ack; - __u32 len; /* Length of the following data */ + __u32 len; /* Length of the following data */ __u8 data[0]; -}; + }; -/*****************************************/ -Connector interfaces. -/*****************************************/ +Connector interfaces +==================== -int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink_skb_parms *)); + .. kernel-doc:: include/linux/connector.h - Registers new callback with connector core. + Note: + When registering new callback user, connector core assigns + netlink group to the user which is equal to its id.idx. - struct cb_id *id - unique connector's user identifier. - It must be registered in connector.h for legal in-kernel users. - char *name - connector's callback symbolic name. - void (*callback) (struct cn..) - connector's callback. - cn_msg and the sender's credentials - - -void cn_del_callback(struct cb_id *id); - - Unregisters new callback with connector core. - - struct cb_id *id - unique connector's user identifier. - - -int cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __groups, int gfp_mask); -int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __groups, int gfp_mask); - - Sends message to the specified groups. It can be safely called from - softirq context, but may silently fail under strong memory pressure. - If there are no listeners for given group -ESRCH can be returned. - - struct cn_msg * - message header(with attached data). - u16 len - for *_multi multiple cn_msg messages can be sent - u32 port - destination port. - If non-zero the message will be sent to the - given port, which should be set to the - original sender. - u32 __group - destination group. - If port and __group is zero, then appropriate group will - be searched through all registered connector users, - and message will be delivered to the group which was - created for user with the same ID as in msg. - If __group is not zero, then message will be delivered - to the specified group. - int gfp_mask - GFP mask. - - Note: When registering new callback user, connector core assigns - netlink group to the user which is equal to its id.idx. - -/*****************************************/ -Protocol description. -/*****************************************/ +Protocol description +==================== The current framework offers a transport layer with fixed headers. The recommended protocol which uses such a header is as following:
@@ -132,9 +95,8 @@ driver (it also registers itself with id={-1, -1}). As example of this usage can be found in the cn_test.c module which uses the connector to request notification and to send messages. -/*****************************************/ -Reliability. -/*****************************************/ +Reliability +=========== Netlink itself is not a reliable protocol. That means that messages can be lost due to memory pressure or process' receiving queue overflowed,
@@ -142,32 +104,31 @@ so caller is warned that it must be prepared. That is why the struct cn_msg [main connector's message header] contains u32 seq and u32 ack fields. -/*****************************************/ -Userspace usage. -/*****************************************/ +Userspace usage +=============== 2.6.14 has a new netlink socket implementation, which by default does not allow people to send data to netlink groups other than 1. So, if you wish to use a netlink socket (for example using connector) with a different group number, the userspace application must subscribe to -that group first. It can be achieved by the following pseudocode: +that group first. It can be achieved by the following pseudocode:: -s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); + s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); -l_local.nl_family = AF_NETLINK; -l_local.nl_groups = 12345; -l_local.nl_pid = 0; + l_local.nl_family = AF_NETLINK; + l_local.nl_groups = 12345; + l_local.nl_pid = 0; -if (bind(s, (struct sockaddr *)&l_local, sizeof(struct sockaddr_nl)) == -1) { + if (bind(s, (struct sockaddr *)&l_local, sizeof(struct sockaddr_nl)) == -1) { perror("bind"); close(s); return -1; -} + } -{ + { int on = l_local.nl_groups; setsockopt(s, 270, 1, &on, sizeof(on)); -} + } Where 270 above is SOL_NETLINK, and 1 is a NETLINK_ADD_MEMBERSHIP socket option. To drop a multicast subscription, one should call the above socket
@@ -180,16 +141,15 @@ group number 12345, you must increment CN_NETLINK_USERS to that number. Additional 0xf numbers are allocated to be used by non-in-kernel users. Due to this limitation, group 0xffffffff does not work now, so one can -not use add/remove connector's group notifications, but as far as I know, +not use add/remove connector's group notifications, but as far as I know, only cn_test.c test module used it. Some work in netlink area is still being done, so things can be changed in 2.6.15 timeframe, if it will happen, documentation will be updated for that kernel. -/*****************************************/ Code samples -/*****************************************/ +============ Sample code for a connector test module and user space can be found in samples/connector/. To build this code, enable CONFIG_CONNECTOR
drivers/w1/Kconfig +1 -1
@@ -18,7 +18,7 @@ config W1_CON default y ---help--- This allows to communicate with userspace using connector. For more - information see <file:Documentation/connector/connector.txt>. + information see <file:Documentation/connector/connector.rst>. There are three types of messages between w1 core and userspace: 1. Events. They are generated each time new master or slave device found either due to automatic or requested search.
include/linux/connector.h +62 -1
72 lines not on this page · raw message
samples/Kconfig +1 -1
@@ -100,7 +100,7 @@ config SAMPLE_CONNECTOR When enabled, this builds both a sample kernel module for the connector interface and a user space tool to communicate with it. - See also Documentation/connector/connector.txt + See also Documentation/connector/connector.rst config SAMPLE_SECCOMP tristate "Build seccomp sample code -- loadable modules only"
Signature · 1 line
2.20.1
PATCH v2 31/79 docs: s390: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabConvert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../admin-guide/kernel-parameters.txt | 4 +-
Documentation/driver-api/s390-drivers.rst | 4 +-
Documentation/s390/{3270.txt => 3270.rst} | 85 +-
Documentation/s390/{cds.txt => cds.rst} | 354 ++-
.../s390/{CommonIO => common_io.rst} | 49 +-
Documentation/s390/{DASD => dasd.rst} | 33 +-
.../{Debugging390.txt => debugging390.rst} | 2389 ++++++++++-------
.../{driver-model.txt => driver-model.rst} | 179 +-
Documentation/s390/index.rst | 30 +
.../s390/{monreader.txt => monreader.rst} | 85 +-
Documentation/s390/{qeth.txt => qeth.rst} | 36 +-
Documentation/s390/s390dbf.rst | 803 ++++++
Documentation/s390/s390dbf.txt | 667 -----
Documentation/s390/text_files.rst | 11 +
.../s390/{vfio-ap.txt => vfio-ap.rst} | 487 ++--
.../s390/{vfio-ccw.txt => vfio-ccw.rst} | 90 +-
.../s390/{zfcpdump.txt => zfcpdump.rst} | 2 +
MAINTAINERS | 4 +-
arch/s390/Kconfig | 4 +-
arch/s390/include/asm/debug.h | 4 +-
drivers/s390/char/zcore.c | 2 +-
21 files changed, 3089 insertions(+), 2233 deletions(-)
rename Documentation/s390/{3270.txt => 3270.rst} (90%)
rename Documentation/s390/{cds.txt => cds.rst} (64%)
rename Documentation/s390/{CommonIO => common_io.rst} (87%)
rename Documentation/s390/{DASD => dasd.rst} (92%)
rename Documentation/s390/{Debugging390.txt => debugging390.rst} (53%)
rename Documentation/s390/{driver-model.txt => driver-model.rst} (73%)
create mode 100644 Documentation/s390/index.rst
rename Documentation/s390/{monreader.txt => monreader.rst} (81%)
rename Documentation/s390/{qeth.txt => qeth.rst} (62%)
create mode 100644 Documentation/s390/s390dbf.rst
delete mode 100644 Documentation/s390/s390dbf.txt
create mode 100644 Documentation/s390/text_files.rst
rename Documentation/s390/{vfio-ap.txt => vfio-ap.rst} (72%)
rename Documentation/s390/{vfio-ccw.txt => vfio-ccw.rst} (89%)
rename Documentation/s390/{zfcpdump.txt => zfcpdump.rst} (97%)Documentation/admin-guide/kernel-parameters.txt +2 -2
@@ -478,7 +478,7 @@ others). ccw_timeout_log [S390] - See Documentation/s390/CommonIO for details. + See Documentation/s390/common_io.rst for details. cgroup_disable= [KNL] Disable a particular controller Format: {name of the controller(s) to disable}
@@ -516,7 +516,7 @@ /selinux/checkreqprot. cio_ignore= [S390] - See Documentation/s390/CommonIO for details. + See Documentation/s390/common_io.rst for details. clk_ignore_unused [CLK] Prevents the clock framework from automatically gating
Documentation/driver-api/s390-drivers.rst +2 -2
@@ -27,7 +27,7 @@ not strictly considered I/O devices. They are considered here as well, although they are not the focus of this document. Some additional information can also be found in the kernel source under -Documentation/s390/driver-model.txt. +Documentation/s390/driver-model.rst. The css bus ===========
@@ -38,7 +38,7 @@ into several categories: * Standard I/O subchannels, for use by the system. They have a child device on the ccw bus and are described below. * I/O subchannels bound to the vfio-ccw driver. See - Documentation/s390/vfio-ccw.txt. + Documentation/s390/vfio-ccw.rst. * Message subchannels. No Linux driver currently exists. * CHSC subchannels (at most one). The chsc subchannel driver can be used to send asynchronous chsc commands.
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +56 -29
216 lines not on this page · raw message
Documentation/s390/cds.rst renamed from Documentation/s390/cds.txt +206 -148
537 lines not on this page · raw message
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +32 -17
109 lines not on this page · raw message
Documentation/s390/dasd.rst renamed from Documentation/s390/DASD +22 -11
@@ -1,4 +1,6 @@ +================== DASD device driver +================== S/390's disk devices (DASDs) are managed by Linux via the DASD device driver. It is valid for all types of DASDs and represents them to
@@ -14,14 +16,14 @@ parameters are to be given in hexadecimal notation without a leading If you supply kernel parameters the different instances are processed in order of appearance and a minor number is reserved for any device covered by the supplied range up to 64 volumes. Additional DASDs are -ignored. If you do not supply the 'dasd=' kernel parameter at all, the +ignored. If you do not supply the 'dasd=' kernel parameter at all, the DASD driver registers all supported DASDs of your system to a minor number in ascending order of the subchannel number. The driver currently supports ECKD-devices and there are stubs for support of the FBA and CKD architectures. For the FBA architecture only some smart data structures are missing to make the support -complete. +complete. We performed our testing on 3380 and 3390 type disks of different sizes, under VM and on the bare hardware (LPAR), using internal disks of the multiprise as well as a RAMAC virtual array. Disks exported by
@@ -34,19 +36,22 @@ accessibility of the DASD from other OSs. In a later stage we will provide support of partitions, maybe VTOC oriented or using a kind of partition table in the label record. -USAGE +Usage +===== -Low-level format (?CKD only) For using an ECKD-DASD as a Linux harddisk you have to low-level format the tracks by issuing the BLKDASDFORMAT-ioctl on that device. This will erase any data on that volume including IBM volume -labels, VTOCs etc. The ioctl may take a 'struct format_data *' or -'NULL' as an argument. -typedef struct { +labels, VTOCs etc. The ioctl may take a `struct format_data *` or +'NULL' as an argument:: + + typedef struct { int start_unit; int stop_unit; int blksize; -} format_data_t; + } format_data_t; + When a NULL argument is passed to the BLKDASDFORMAT ioctl the whole disk is formatted to a blocksize of 1024 bytes. Otherwise start_unit and stop_unit are the first and last track to be formatted. If
@@ -56,17 +61,23 @@ up to the last track. blksize can be any power of two between 512 and 1kB blocks anyway and you gain approx. 50% of capacity increasing your blksize from 512 byte to 1kB. --Make a filesystem +Make a filesystem +================= + Then you can mk??fs the filesystem of your choice on that volume or partition. For reasons of sanity you should build your filesystem on -the partition /dev/dd?1 instead of the whole volume. You only lose 3kB +the partition /dev/dd?1 instead of the whole volume. You only lose 3kB but may be sure that you can reuse your data after introduction of a real partition table. -BUGS: +Bugs +==== + - Performance sometimes is rather low because we don't fully exploit clustering -TODO-List: +TODO-List +========= + - Add IBM'S Disk layout to genhd - Enhance driver to use more than one major number - Enable usage as a module
Documentation/s390/debugging390.rst renamed from Documentation/s390/Debugging390.txt +1415 -974
2,030 lines not on this page · raw message
Documentation/s390/driver-model.rst renamed from Documentation/s390/driver-model.txt +110 -69
179 lines not on this page · raw message
Documentation/s390/monreader.rst renamed from Documentation/s390/monreader.txt +50 -35
85 lines not on this page · raw message
Documentation/s390/qeth.rst renamed from Documentation/s390/qeth.txt +25 -11
Lines of this file are not shown. View the raw message.
Documentation/s390/s390dbf.rst new file +803 -0
803 lines not on this page · raw message
Documentation/s390/s390dbf.txt deleted +0 -667
667 lines not on this page · raw message
Documentation/s390/text_files.rst new file +11 -0
Lines of this file are not shown. View the raw message.
Documentation/s390/vfio-ap.rst renamed from Documentation/s390/vfio-ap.txt +258 -229
487 lines not on this page · raw message
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +58 -32
90 lines not on this page · raw message
Documentation/s390/zfcpdump.rst renamed from Documentation/s390/zfcpdump.txt +2 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.
PATCH v2 54/79 docs: phy: convert samsung-usb2.txt to ReST format
In reply to Mauro Carvalho ChehabIn order to merge it into a Sphinx book, we need first to convert to ReST.
While this is not part of any book, mark it as :orphan:, in order to avoid build warnings.
---
.../{samsung-usb2.txt => samsung-usb2.rst} | 62 ++++++++++---------
MAINTAINERS | 2 +-
2 files changed, 34 insertions(+), 30 deletions(-)
rename Documentation/phy/{samsung-usb2.txt => samsung-usb2.rst} (77%)Documentation/phy/samsung-usb2.rst renamed from Documentation/phy/samsung-usb2.txt +33 -29
@@ -1,9 +1,11 @@ -.------------------------------------------------------------------------------+ -| Samsung USB 2.0 PHY adaptation layer | -+-----------------------------------------------------------------------------+' +:orphan: -| 1. Description -+---------------- +==================================== +Samsung USB 2.0 PHY adaptation layer +==================================== + +1. Description +-------------- The architecture of the USB 2.0 PHY module in Samsung SoCs is similar among many SoCs. In spite of the similarities it proved difficult to
@@ -14,8 +16,8 @@ the PHY powering up process had to be altered. This adaptation layer is a compromise between having separate drivers and having a single driver with added support for many special cases. -| 2. Files description -+---------------------- +2. Files description +-------------------- - phy-samsung-usb2.c This is the main file of the adaptation layer. This file contains
@@ -32,44 +34,45 @@ with added support for many special cases. driver. In addition it should contain extern declarations for structures that describe particular SoCs. -| 3. Supporting SoCs -+-------------------- +3. Supporting SoCs +------------------ To support a new SoC a new file should be added to the drivers/phy directory. Each SoC's configuration is stored in an instance of the -struct samsung_usb2_phy_config. +struct samsung_usb2_phy_config:: -struct samsung_usb2_phy_config { + struct samsung_usb2_phy_config { const struct samsung_usb2_common_phy *phys; int (*rate_to_clk)(unsigned long, u32 *); unsigned int num_phys; bool has_mode_switch; -}; + }; -The num_phys is the number of phys handled by the driver. *phys is an +The num_phys is the number of phys handled by the driver. `*phys` is an array that contains the configuration for each phy. The has_mode_switch property is a boolean flag that determines whether the SoC has USB host and device on a single pair of pins. If so, a special register has to be modified to change the internal routing of these pins between a USB device or host module. -For example the configuration for Exynos 4210 is following: +For example the configuration for Exynos 4210 is following:: -const struct samsung_usb2_phy_config exynos4210_usb2_phy_config = { + const struct samsung_usb2_phy_config exynos4210_usb2_phy_config = { .has_mode_switch = 0, .num_phys = EXYNOS4210_NUM_PHYS, .phys = exynos4210_phys, .rate_to_clk = exynos4210_rate_to_clk, -} + } + +- `int (*rate_to_clk)(unsigned long, u32 *)` -- int (*rate_to_clk)(unsigned long, u32 *) The rate_to_clk callback is to convert the rate of the clock used as the reference clock for the PHY module to the value that should be written in the hardware register. -The exynos4210_phys configuration array is as follows: +The exynos4210_phys configuration array is as follows:: -static const struct samsung_usb2_common_phy exynos4210_phys[] = { + static const struct samsung_usb2_common_phy exynos4210_phys[] = { { .label = "device", .id = EXYNOS4210_DEVICE,
@@ -95,29 +98,30 @@ static const struct samsung_usb2_common_phy exynos4210_phys[] = { .power_off = exynos4210_power_off, }, {}, -}; + }; + +- `int (*power_on)(struct samsung_usb2_phy_instance *);` + `int (*power_off)(struct samsung_usb2_phy_instance *);` -- int (*power_on)(struct samsung_usb2_phy_instance *); -- int (*power_off)(struct samsung_usb2_phy_instance *); These two callbacks are used to power on and power off the phy by modifying appropriate registers. Final change to the driver is adding appropriate compatible value to the phy-samsung-usb2.c file. In case of Exynos 4210 the following lines were -added to the struct of_device_id samsung_usb2_phy_of_match[] array: +added to the struct of_device_id samsung_usb2_phy_of_match[] array:: -#ifdef CONFIG_PHY_EXYNOS4210_USB2 + #ifdef CONFIG_PHY_EXYNOS4210_USB2 { .compatible = "samsung,exynos4210-usb2-phy", .data = &exynos4210_usb2_phy_config, }, -#endif + #endif To add further flexibility to the driver the Kconfig file enables to include support for selected SoCs in the compiled driver. The Kconfig -entry for Exynos 4210 is following: +entry for Exynos 4210 is following:: -config PHY_EXYNOS4210_USB2 + config PHY_EXYNOS4210_USB2 bool "Support for Exynos 4210" depends on PHY_SAMSUNG_USB2 depends on CPU_EXYNOS4210
@@ -128,8 +132,8 @@ config PHY_EXYNOS4210_USB2 phys are available - device, host, HSCI0 and HSCI1. The newly created file that supports the new SoC has to be also added to the -Makefile. In case of Exynos 4210 the added line is following: +Makefile. In case of Exynos 4210 the added line is following:: -obj-$(CONFIG_PHY_EXYNOS4210_USB2) += phy-exynos4210-usb2.o + obj-$(CONFIG_PHY_EXYNOS4210_USB2) += phy-exynos4210-usb2.o After completing these steps the support for the new SoC should be ready.
MAINTAINERS +1 -1
@@ -13783,7 +13783,7 @@ M: Sylwester Nawrocki <[email protected]> L: [email protected] S: Supported F: Documentation/devicetree/bindings/phy/samsung-phy.txt -F: Documentation/phy/samsung-usb2.txt +F: Documentation/phy/samsung-usb2.rst F: drivers/phy/samsung/phy-exynos4210-usb2.c F: drivers/phy/samsung/phy-exynos4x12-usb2.c F: drivers/phy/samsung/phy-exynos5250-usb2.c
Signature · 1 line
2.20.1
PATCH v2 27/79 docs: pps.txt: convert to ReST and rename to pps.rst
In reply to Mauro Carvalho ChehabThis file is already in a good shape: just its title and adding some literal block markups is needed for it to be part of the document.
While it has a small chapter with sysfs stuff, most of the document is focused on driver development.
As it describes a kernel API, move it to the driver-api directory.
In order to avoid conflicts, let's add an :orphan: tag to it, to be removed when added to the driver-api book.
---
.../{pps/pps.txt => driver-api/pps.rst} | 67 ++++++++++---------
MAINTAINERS | 2 +-
2 files changed, 36 insertions(+), 33 deletions(-)
rename Documentation/{pps/pps.txt => driver-api/pps.rst} (89%)Documentation/driver-api/pps.rst renamed from Documentation/pps/pps.txt +35 -32
@@ -1,8 +1,10 @@ +:orphan: - PPS - Pulse Per Second - ---------------------- +====================== +PPS - Pulse Per Second +====================== -(C) Copyright 2007 Rodolfo Giometti <[email protected]> +Copyright (C) 2007 Rodolfo Giometti <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
@@ -88,7 +90,7 @@ Coding example -------------- To register a PPS source into the kernel you should define a struct -pps_source_info as follows: +pps_source_info as follows:: static struct pps_source_info pps_ktimer_info = { .name = "ktimer",
@@ -101,12 +103,12 @@ pps_source_info as follows: }; and then calling the function pps_register_source() in your -initialization routine as follows: +initialization routine as follows:: source = pps_register_source(&pps_ktimer_info, PPS_CAPTUREASSERT | PPS_OFFSETASSERT); -The pps_register_source() prototype is: +The pps_register_source() prototype is:: int pps_register_source(struct pps_source_info *info, int default_params)
@@ -118,7 +120,7 @@ pps_source_info which describe the capabilities of the driver). Once you have registered a new PPS source into the system you can signal an assert event (for example in the interrupt handler routine) -just using: +just using:: pps_event(source, &ts, PPS_CAPTUREASSERT, ptr)
@@ -134,13 +136,13 @@ Please see the file drivers/pps/clients/pps-ktimer.c for example code. SYSFS support ------------- -If the SYSFS filesystem is enabled in the kernel it provides a new class: +If the SYSFS filesystem is enabled in the kernel it provides a new class:: $ ls /sys/class/pps/ pps0/ pps1/ pps2/ Every directory is the ID of a PPS sources defined in the system and -inside you find several files: +inside you find several files:: $ ls -F /sys/class/pps/pps0/ assert dev mode path subsystem@
@@ -148,7 +150,7 @@ inside you find several files: Inside each "assert" and "clear" file you can find the timestamp and a -sequence number: +sequence number:: $ cat /sys/class/pps/pps0/assert 1170026870.983207967#8
@@ -175,11 +177,11 @@ and the userland tools available in your distribution's pps-tools package, http://linuxpps.org , or https://github.com/redlab-i/pps-tools. Once you have enabled the compilation of pps-ktimer just modprobe it (if -not statically compiled): +not statically compiled):: # modprobe pps-ktimer -and the run ppstest as follow: +and the run ppstest as follow:: $ ./ppstest /dev/pps1 trying PPS source "/dev/pps1"
@@ -204,26 +206,27 @@ nor affordable. The cheap way is to load a PPS generator on one of the computers (master) and PPS clients on others (slaves), and use very simple cables to deliver signals using parallel ports, for example. -Parallel port cable pinout: -pin name master slave -1 STROBE *------ * -2 D0 * | * -3 D1 * | * -4 D2 * | * -5 D3 * | * -6 D4 * | * -7 D5 * | * -8 D6 * | * -9 D7 * | * -10 ACK * ------* -11 BUSY * * -12 PE * * -13 SEL * * -14 AUTOFD * * -15 ERROR * * -16 INIT * * -17 SELIN * * -18-25 GND *-----------* +Parallel port cable pinout:: + + pin name master slave + 1 STROBE *------ * + 2 D0 * | * + 3 D1 * | * + 4 D2 * | * + 5 D3 * | * + 6 D4 * | * + 7 D5 * | * + 8 D6 * | * + 9 D7 * | * + 10 ACK * ------* + 11 BUSY * * + 12 PE * * + 13 SEL * * + 14 AUTOFD * * + 15 ERROR * * + 16 INIT * * + 17 SELIN * * + 18-25 GND *-----------* Please note that parallel port interrupt occurs only on high->low transition, so it is used for PPS assert edge. PPS clear edge can be determined only
MAINTAINERS +1 -1
@@ -12543,7 +12543,7 @@ M: Rodolfo Giometti <[email protected]> W: http://wiki.enneenne.com/index.php/LinuxPPS_support L: [email protected] (subscribers-only) S: Maintained -F: Documentation/pps/ +F: Documentation/driver-api/pps.rst F: Documentation/devicetree/bindings/pps/pps-gpio.txt F: Documentation/ABI/testing/sysfs-pps F: drivers/pps/
Signature · 1 line
2.20.1
PATCH v2 43/79 docs: m68k: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabConvert the m68k kernel-options.txt file to ReST.
The conversion is trivial, as the document is already on a format close enough to ReST. Just some small adjustments were needed in order to make it both good for being parsed while keeping it on a good txt shape.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../admin-guide/kernel-parameters.rst | 2 +-
Documentation/m68k/index.rst | 17 +
...{kernel-options.txt => kernel-options.rst} | 319 ++++++++++--------
3 files changed, 191 insertions(+), 147 deletions(-)
create mode 100644 Documentation/m68k/index.rst
rename Documentation/m68k/{kernel-options.txt => kernel-options.rst} (78%)Documentation/admin-guide/kernel-parameters.rst +1 -1
@@ -117,7 +117,7 @@ parameter is applicable:: LOOP Loopback device support is enabled. M68k M68k architecture is enabled. These options have more detailed description inside of - Documentation/m68k/kernel-options.txt. + Documentation/m68k/kernel-options.rst. MDA MDA console support is enabled. MIPS MIPS architecture is enabled. MOUSE Appropriate mouse support is enabled.
Documentation/m68k/index.rst new file +17 -0
@@ -0,0 +1,17 @@ +:orphan: + +================= +m68k Architecture +================= + +.. toctree:: + :maxdepth: 2 + + kernel-options + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/m68k/kernel-options.rst renamed from Documentation/m68k/kernel-options.txt +173 -146
802 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH v2 58/79 docs: fmc: convert to ReST
In reply to Mauro Carvalho ChehabRename the FMC documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At least some of this files seemed to be using some markup language similar to ReST, but with a different markup for cross-references. Adjust those to use the ReST syntax.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/fmc/{API.txt => api.rst} | 10 +--
.../fmc/{carrier.txt => carrier.rst} | 65 ++++++++++---------
.../fmc/{FMC-and-SDB.txt => fmc-and-sdb.rst} | 19 ++++--
.../fmc/{fmc-chardev.txt => fmc-chardev.rst} | 9 +--
.../fmc/{fmc-fakedev.txt => fmc-fakedev.rst} | 13 ++--
.../fmc/{fmc-trivial.txt => fmc-trivial.rst} | 11 ++--
...-write-eeprom.txt => fmc-write-eeprom.rst} | 36 +++++-----
.../fmc/{identifiers.txt => identifiers.rst} | 20 +++---
Documentation/fmc/index.rst | 21 ++++++
.../fmc/{mezzanine.txt => mezzanine.rst} | 34 +++++-----
.../fmc/{parameters.txt => parameters.rst} | 11 ++--
11 files changed, 147 insertions(+), 102 deletions(-)
rename Documentation/fmc/{API.txt => api.rst} (87%)
rename Documentation/fmc/{carrier.txt => carrier.rst} (91%)
rename Documentation/fmc/{FMC-and-SDB.txt => fmc-and-sdb.rst} (88%)
rename Documentation/fmc/{fmc-chardev.txt => fmc-chardev.rst} (96%)
rename Documentation/fmc/{fmc-fakedev.txt => fmc-fakedev.rst} (85%)
rename Documentation/fmc/{fmc-trivial.txt => fmc-trivial.rst} (69%)
rename Documentation/fmc/{fmc-write-eeprom.txt => fmc-write-eeprom.rst} (79%)
rename Documentation/fmc/{identifiers.txt => identifiers.rst} (93%)
create mode 100644 Documentation/fmc/index.rst
rename Documentation/fmc/{mezzanine.txt => mezzanine.rst} (87%)
rename Documentation/fmc/{parameters.txt => parameters.rst} (96%)Documentation/fmc/api.rst renamed from Documentation/fmc/API.txt +5 -5
@@ -2,7 +2,7 @@ Functions Exported by fmc.ko **************************** The FMC core exports the usual 4 functions that are needed for a bus to -work, and a few more: +work, and a few more:: int fmc_driver_register(struct fmc_driver *drv); void fmc_driver_unregister(struct fmc_driver *drv);
@@ -20,9 +20,9 @@ work, and a few more: int fmc_reprogram(struct fmc_device *f, struct fmc_driver *d, char *gw, int sdb_entry); -The data structure that describe a device is detailed in *note FMC -Device::, the one that describes a driver is detailed in *note FMC -Driver::. Please note that structures of type fmc_device must be +The data structure that describe a device is detailed in :ref:`fmc_device`, +the one that describes a driver is detailed in :ref:`fmc_driver`. +Please note that structures of type fmc_device must be allocated by the caller, but must not be released after unregistering. The fmc-bus itself takes care of releasing the structure when their use count reaches zero - actually, the device model does that in lieu of us.
@@ -39,7 +39,7 @@ should register as a group only mezzanines that are driven by the same FPGA, for the reason outlined above. Finally, the fmc_reprogram function calls the reprogram method (see -*note The API Offered by Carriers:: and also scans the memory area for +:ref:`fmc_api_offered_by_carriers`) and also scans the memory area for an SDB tree. You can pass -1 as sdb_entry to disable such scan. Otherwise, the function fails if no tree is found at the specified entry point. The function is meant to factorize common code, and by
Documentation/fmc/carrier.rst renamed from Documentation/fmc/carrier.txt +33 -32
149 lines not on this page · raw message
Documentation/fmc/fmc-and-sdb.rst renamed from Documentation/fmc/FMC-and-SDB.txt +12 -7
@@ -1,3 +1,6 @@ +============ +Introduction +============ FMC (FPGA Mezzanine Card) is the standard we use for our I/O devices, in the context of White Rabbit and related hardware.
@@ -18,12 +21,12 @@ submodule. The most up to date version of code and documentation is always available from the repository you can clone from: - git://ohwr.org/fmc-projects/fmc-bus.git (read-only) - [email protected]:fmc-projects/fmc-bus.git (read-write for developers) + - git://ohwr.org/fmc-projects/fmc-bus.git (read-only) + - [email protected]:fmc-projects/fmc-bus.git (read-write for developers) Selected versions of the documentation, as well as complete tar archives for selected revisions are placed to the Files section of the -project: `http://www.ohwr.org/projects/fmc-bus/files' +project: `http://www.ohwr.org/projects/fmc-bus/files` What is FMC
@@ -62,13 +65,15 @@ a filesystem inside the FMC EEPROM. SDB is not mandatory for use of this FMC kernel bus, but if you have SDB this package can make good use of it. SDB itself is developed in the fpga-config-space OHWR project. The link to the repository is -`git://ohwr.org/hdl-core-lib/fpga-config-space.git' and what is used in +`git://ohwr.org/hdl-core-lib/fpga-config-space.git` and what is used in this project lives in the sdbfs subdirectory in there. -SDB support for FMC is described in *note FMC Identification:: and -*note SDB Support:: +SDB support for FMC is described in :ref:`fmc_identification` and +:ref:`fmc_sdb_support`. +.. _fmc_sdb_support: + SDB Support ***********
@@ -79,7 +84,7 @@ memory image. The module exports the following functions, in the special header <linux/fmc-sdb.h>. The linux/ prefix in the name is there because we plan to submit it upstream in the future, and don't want to force -changes on our drivers if that happens. +changes on our drivers if that happens:: int fmc_scan_sdb_tree(struct fmc_device *fmc, unsigned long address); void fmc_show_sdb_tree(struct fmc_device *fmc);
Documentation/fmc/fmc-chardev.rst renamed from Documentation/fmc/fmc-chardev.txt +5 -4
@@ -1,5 +1,6 @@ -fmc-chardev -=========== +================ +Character device +================ This is a simple generic driver, that allows user access by means of a character device (actually, one for each mezzanine it takes hold of).
@@ -27,7 +28,7 @@ arises. The example below shows raw access to a SPEC card programmed with its golden FPGA file, that features an SDB structure at offset 256 - i.e. 64 words. The mezzanine's EEPROM in this case is not programmed, so the -default name is fmc-<bus><devfn>, and there are two cards in the system: +default name is fmc-<bus><devfn>, and there are two cards in the system:: spusa.root# insmod fmc-chardev.ko [ 1073.339332] spec 0000:02:00.0: Driver has no ID: matches all
@@ -52,7 +53,7 @@ repeated reading data is written to stdout; repeated writes read from stdin and the value argument is ignored. The following examples show reading the SDB magic number and the first -SDB record from a SPEC device programmed with its golden image: +SDB record from a SPEC device programmed with its golden image:: spusa.root# ./fmc-mem /dev/fmc-0200 100 5344422d
Documentation/fmc/fmc-fakedev.rst renamed from Documentation/fmc/fmc-fakedev.txt +8 -5
@@ -1,7 +1,10 @@ -fmc-fakedev -=========== +.. _fmc_fakedev: -This package includes a software-only device, called fmc-fakedev, which +========================= +Software-only Fake Device +========================= + +This package includes a software-only device, called **fmc-fakedev**, which is able to register up to 4 mezzanines (by default it registers one). Unlike the SPEC driver, which creates an FMC device for each PCI cards it manages, this module creates a single instance of its set of
@@ -9,14 +12,14 @@ mezzanines. It is meant as the simplest possible example of how a driver should be written, and it includes a fake EEPROM image (built using the tools -described in *note FMC Identification::),, which by default is +described in :ref:`fmc_identification` which by default is replicated for each fake mezzanine. You can also use this device to verify the match algorithms, by asking it to test your own EEPROM image. You can provide the image by means of the eeprom= module parameter: the new EEPROM image is loaded, as usual, by means of the firmware loader. This example shows the defaults and a -custom EEPROM image: +custom EEPROM image:: spusa.root# insmod fmc-fakedev.ko [ 99.971247] fake-fmc-carrier: mezzanine 0
Documentation/fmc/fmc-trivial.rst renamed from Documentation/fmc/fmc-trivial.txt +6 -5
@@ -1,7 +1,9 @@ -fmc-trivial -=========== +.. _fmc_trivial: -The simple module fmc-trivial is just a simple client that registers an +FMC trivial driver +================== + +The simple module **fmc-trivial** is just a simple client that registers an interrupt handler. I used it to verify the basic mechanism of the FMC bus and how interrupts worked.
@@ -9,8 +11,7 @@ The module implements the generic FMC parameters, so it can program a different gateware file in each card. The whole list of parameters it accepts are: -`busid=' -`gateware=' +`busid=`, `gateware=` Generic parameters. See mezzanine.txt
Documentation/fmc/fmc-write-eeprom.rst renamed from Documentation/fmc/fmc-write-eeprom.txt +20 -16
@@ -1,9 +1,12 @@ -fmc-write-eeprom +.. _fmc_write_eeprom: + +================ +FMC write eeprom ================ -This module is designed to load a binary file from /lib/firmware and to -write it to the internal EEPROM of the mezzanine card. This driver uses -the `busid' generic parameter. +The module **fmc-write-eeprom** is designed to load a binary file from +/lib/firmware and to write it to the internal EEPROM of the mezzanine card. +This driver uses the `busid` generic parameter. Overwriting the EEPROM is not something you should do daily, and it is expected to only happen during manufacturing. For this reason, the
@@ -11,36 +14,36 @@ module makes it unlikely for the random user to change a working EEPROM. However, since the EEPROM may include application-specific information other than the identification, later versions of this packages added -write-support through sysfs. See *note Accessing the EEPROM::. +write-support through sysfs. See :ref:`fmc_accessing_eeprom`. To avoid damaging the EEPROM content, the module takes the following measures: - * It accepts a `file=' argument (within /lib/firmware) and if no + * It accepts a `file=` argument (within /lib/firmware) and if no such argument is received, it doesn't write anything to EEPROM (i.e. there is no default file name). - * If the file name ends with `.bin' it is written verbatim starting + * If the file name ends with `.bin` it is written verbatim starting at offset 0. - * If the file name ends with `.tlv' it is interpreted as + * If the file name ends with `.tlv` it is interpreted as type-length-value (i.e., it allows writev(2)-like operation). * If the file name doesn't match any of the patterns above, it is ignored and no write is performed. - * Only cards listed with `busid=' are written to. If no busid is + * Only cards listed with `busid=` are written to. If no busid is specified, no programming is done (and the probe function of the driver will fail). Each TLV tuple is formatted in this way: the header is 5 bytes, -followed by data. The first byte is `w' for write, the next two bytes +followed by data. The first byte is `w` for write, the next two bytes represent the address, in little-endian byte order, and the next two represent the data length, in little-endian order. The length does not include the header (it is the actual number of bytes to be written). -This is a real example: that writes 5 bytes at position 0x110: +This is a real example: that writes 5 bytes at position 0x110:: spusa.root# od -t x1 -Ax /lib/firmware/try.tlv 000000 77 10 01 05 00 30 31 32 33 34
@@ -55,13 +58,13 @@ Rabbit environment. For this reason the TLV format is not expected to be used much and is not expected to be developed further. If you want to try reflashing fake EEPROM devices, you can use the -fmc-fakedev.ko module (see *note fmc-fakedev::). Whenever you change +fmc-fakedev.ko module (see :ref:`fmc_fakedev`). Whenever you change the image starting at offset 0, it will deregister and register again after two seconds. Please note, however, that if fmc-write-eeprom is still loaded, the system will associate it to the new device, which will be reprogrammed and thus will be unloaded after two seconds. The following example removes the module after it reflashed fakedev the -first time. +first time:: spusa.root# insmod fmc-fakedev.ko [ 72.984733] fake-fmc: Manufacturer: fake-vendor
@@ -74,12 +77,13 @@ first time. [ 132.895794] fake-fmc: Manufacturer: CERN [ 132.899872] fake-fmc: Product name: FmcDelay1ns4cha +.. _fmc_accessing_eeprom: Accessing the EEPROM -===================== +==================== The bus creates a sysfs binary file called eeprom for each mezzanine it -knows about: +knows about:: spusa.root# cd /sys/bus/fmc/devices; ls -l */eeprom -r--r--r-- 1 root root 8192 Feb 21 12:30 FmcAdc100m14b4cha-0800/eeprom
@@ -94,5 +98,5 @@ the FPGA with a custom circuit, the carrier is unable to access the EEPROM and returns ENOTSUPP. An alternative way to write the EEPROM is the mezzanine driver -fmc-write-eeprom (See *note fmc-write-eeprom::), but the procedure is +fmc-write-eeprom (See :ref:`fmc_write_eeprom`), but the procedure is more complex.
Documentation/fmc/identifiers.rst renamed from Documentation/fmc/identifiers.txt +12 -8
@@ -1,3 +1,5 @@ +.. _fmc_identification: + FMC Identification ******************
@@ -19,7 +21,7 @@ package and SDB (part of the fpga-config-space package). The first sections are only interesting for manufacturers who need to write the EEPROM. If you are just a software developer writing an FMC -device or driver, you may jump straight to *note SDB Support::. +device or driver, you may jump straight to :ref:`fmc_sdb_support`. Building the FRU Structure
@@ -27,7 +29,7 @@ Building the FRU Structure If you want to know the internals of the FRU structure and despair, you can retrieve the document from -`http://download.intel.com/design/servers/ipmi/FRU1011.pdf' . The +`http://download.intel.com/design/servers/ipmi/FRU1011.pdf` . The standard is awful and difficult without reason, so we only support the minimum mandatory subset - we create a simple structure and parse it back at run time, but we are not able to either generate or parse more
@@ -43,13 +45,15 @@ line takes precedence) To make a long story short, in order to build a standard-compliant binary file to be burned in your EEPROM, you need the following items: + =========== === ===================== ============ Environment Opt Official Name Default ---------------------------------------------------------------------- + =========== === ===================== ============ FRU_VENDOR -v "Board Manufacturer" fmc-example FRU_NAME -n "Board Product Name" mezzanine - FRU_SERIAL -s `Board Serial Number" 0001 + FRU_SERIAL -s "Board Serial Number" 0001 FRU_PART -p "Board Part Number" sample-part FRU_OUTPUT -o not applicable /dev/stdout + =========== === ===================== ============ The "Official Name" above is what you find in the FRU official documentation, chapter 11, page 7 ("Board Info Area Format"). The
@@ -63,7 +67,7 @@ soon as I find some time for that. FIXME: consumption etc for FRU are here or in PTS? -The following example creates a binary image for a specific board: +The following example creates a binary image for a specific board:: ./tools/fru-generator -v CERN -n FmcAdc100m14b4cha \ -s HCCFFIA___-CR000003 -p EDA-02063-V5-0 > eeprom.bin
@@ -71,7 +75,7 @@ The following example creates a binary image for a specific board: The following example shows a script that builds several binary EEPROM images for a series of boards, changing the serial number for each of them. The script uses a mix of environment variables and command line -options, and uses the same string patterns shown above. +options, and uses the same string patterns shown above:: #!/bin/sh
@@ -131,7 +135,7 @@ name. The IPMI-FRU name is not mandatory, but a strongly suggested choice; the name filename is mandatory, because this is the preferred short name used by the FMC core. For example, a name of "fdelay" may supplement a Product Name like "FmcDelay1ns4cha" - exactly as -demonstrated in `tools/sdbfs'. +demonstrated in `tools/sdbfs`. Note: SDB access to flash memory is not yet supported, so the short name currently in use is just the "Product Name" FRU string.
@@ -139,7 +143,7 @@ name currently in use is just the "Product Name" FRU string. The example in tools/sdbfs includes an extra file, that is needed by the fine-delay driver, and must live at a known address of 0x1800. By running gensdbfs on that directory you can output your binary EEPROM -image (here below spusa$ is the shell prompt): +image (here below spusa$ is the shell prompt):: spusa$ ../fru-generator -v CERN -n FmcDelay1ns4cha -s proto-0 \ -p EDA-02267-V3 > IPMI-FRU
Documentation/fmc/index.rst new file +21 -0
@@ -0,0 +1,21 @@ +:orphan: + +========================= +FMC (FPGA Mezzanine Card) +========================= + +.. toctree:: + :maxdepth: 1 + + fmc-and-sdb + carrier + identifiers + mezzanine + parameters + + api + + fmc-fakedev + fmc-trivial + fmc-write-eeprom + fmc-chardev
Documentation/fmc/mezzanine.rst renamed from Documentation/fmc/mezzanine.txt +19 -15
@@ -1,5 +1,8 @@ +.. _fmc_driver: + +========== FMC Driver -********** +========== An FMC driver is concerned with the specific mezzanine and associated gateware. As such, it is expected to be independent of the carrier
@@ -12,23 +15,23 @@ configured in the FPGA; the latter technique is used when the FPGA is already programmed when the device is registered to the bus core. In some special cases it is possible for a driver to directly access -FPGA registers, by means of the `fpga_base' field of the device +FPGA registers, by means of the `fpga_base` field of the device structure. This may be needed for high-bandwidth peripherals like fast ADC cards. If the device module registered a remote device (for example -by means of Etherbone), the `fpga_base' pointer will be NULL. +by means of Etherbone), the `fpga_base` pointer will be NULL. Therefore, drivers must be ready to deal with NULL base pointers, and fail gracefully. Most driver, however, are not expected to access the pointer directly but run fmc_readl and fmc_writel instead, which will work in any case. In even more special cases, the driver may access carrier-specific -functionality: the `carrier_name' string allows the driver to check -which is the current carrier and make use of the `carrier_data' +functionality: the `carrier_name` string allows the driver to check +which is the current carrier and make use of the `carrier_data` pointer. We chose to use carrier names rather than numeric identifiers for greater flexibility, but also to avoid a central registry within -the `fmc.h' file - we hope other users will exploit our framework with +the `fmc.h` file - we hope other users will exploit our framework with their own carriers. An example use of carrier names is in GPIO setup -(see *note The GPIO Abstraction::), although the name match is not +(see :ref:`fmc_gpio_abstraction`), although the name match is not expected to be performed by the driver. If you depend on specific carriers, please check the carrier name and fail gracefully if your driver finds it is running in a yet-unknown-to-it environment.
@@ -44,7 +47,7 @@ their EEPROM or on the actual FPGA cores that can be enumerated. Therefore, we have two tables of identifiers. Matching of FRU information depends on two names, the manufacturer (or -vendor) and the device (see *note FMC Identification::); for +vendor) and the device (see :ref:`fmc_identification`); for flexibility during production (i.e. before writing to the EEPROM) the bus supports a catch-all driver that specifies NULL strings. For this reason, the table is specified as pointer-and-length, not a a
@@ -58,7 +61,7 @@ instantiated), and for consistency the list is passed as pointer-and-length. Several similar devices can be driven by the same driver, and thus the driver specifies and array of such arrays. -The complete set of involved data structures is thus the following: +The complete set of involved data structures is thus the following:: struct fmc_fru_id { char *manufacturer; char *product_name; }; struct fmc_sdb_one_id { uint64_t vendor; uint32_t device; };
@@ -71,13 +74,14 @@ The complete set of involved data structures is thus the following: A better reference, with full explanation, is the <linux/fmc.h> header. +.. _fmc_module_parameters: Module Parameters ================= Most of the FMC drivers need the same set of kernel parameters. This package includes support to implement common parameters by means of -fields in the `fmc_driver' structure and simple macro definitions. +fields in the `fmc_driver` structure and simple macro definitions. The parameters are carrier-specific, in that they rely on the busid concept, that varies among carriers. For the SPEC, the identifier is a
@@ -88,20 +92,20 @@ and some code duplication is unavoidable. This is the list of parameters that are common to several modules to see how they are actually used, please look at spec-trivial.c. -`busid=' +`busid=` This is an array of integers, listing carrier-specific - identification numbers. For PIC, for example, `0x0400' represents + identification numbers. For PIC, for example, `0x0400` represents bus 4, slot 0. If any such ID is specified, the driver will only accept to drive cards that appear in the list (even if the FMC ID matches). This is accomplished by the validate carrier method. -`gateware=' +`gateware=` The argument is an array of strings. If no busid= is specified, the first string of gateware= is used for all cards; otherwise the identifiers and gateware names are paired one by one, in the order specified. -`show_sdb=' +`show_sdb=` For modules supporting it, this parameter asks to show the SDB internal structure by means of kernel messages. It is disabled by default because those lines tend to hide more important messages,
@@ -113,7 +117,7 @@ see how they are actually used, please look at spec-trivial.c. For example, if you are using the trivial driver to load two different gateware files to two different cards, you can use the following parameters to load different binaries to the cards, after looking up -the PCI identifiers. This has been tested with a SPEC carrier. +the PCI identifiers. This has been tested with a SPEC carrier:: insmod fmc-trivial.ko \ busid=0x0200,0x0400 \
Documentation/fmc/parameters.rst renamed from Documentation/fmc/parameters.txt +6 -5
@@ -1,16 +1,17 @@ +=========================== Module Parameters in fmc.ko -*************************** +=========================== The core driver receives two module parameters, meant to help debugging client modules. Both parameters can be modified by writing to /sys/module/fmc/parameters/, because they are used when client drivers are devices are registered, not when fmc.ko is loaded. -`dump_eeprom=' +`dump_eeprom=` If not zero, the parameter asks the bus controller to dump the EEPROM of any device that is registered, using printk. -`dump_sdb=' +`dump_sdb=` If not zero, the parameter prints the SDB tree of every FPGA it is loaded by fmc_reprogram(). If greater than one, it asks to dump the binary content of SDB records. This currently only dumps the
@@ -19,7 +20,7 @@ are devices are registered, not when fmc.ko is loaded. EEPROM dumping avoids repeating lines, since most of the contents is usually empty and all bits are one or zero. This is an example of the -output: +output:: [ 6625.850480] spec 0000:02:00.0: FPGA programming successful [ 6626.139949] spec 0000:02:00.0: Manufacturer: CERN
@@ -40,7 +41,7 @@ output: The dump of SDB looks like the following; the example shows the simple golden gateware for the SPEC card, removing the leading timestamps to -fit the page: +fit the page:: spec 0000:02:00.0: SDB: 00000651:e6a542c9 WB4-Crossbar-GSI spec 0000:02:00.0: SDB: 0000ce42:ff07fc47 WR-Periph-Syscon (00000000-000000ff)
Signature · 1 line
2.20.1
PATCH v2 50/79 docs: memory-devices: convert ti-emif.txt to ReST
In reply to Mauro Carvalho ChehabPrepare this file to be moved to a kernel book by converting it to ReST format and renaming it to ti-emif.rst.
While this is not part of any book, mark it as :orphan:, in order to avoid build warnings.
---
.../{ti-emif.txt => ti-emif.rst} | 27 ++++++++++++-------
1 file changed, 17 insertions(+), 10 deletions(-)
rename Documentation/memory-devices/{ti-emif.txt => ti-emif.rst} (81%)Documentation/memory-devices/ti-emif.rst renamed from Documentation/memory-devices/ti-emif.txt +17 -10
@@ -1,20 +1,24 @@ -TI EMIF SDRAM Controller Driver: +:orphan: + +=============================== +TI EMIF SDRAM Controller Driver +=============================== Author -======== +====== Aneesh V <[email protected]> Location -============ +======== driver/memory/emif.c Supported SoCs: -=================== +=============== TI OMAP44xx TI OMAP54xx Menuconfig option: -========================== +================== Device Drivers Memory devices Texas Instruments EMIF driver
@@ -29,10 +33,11 @@ functions of the driver includes re-configuring AC timing parameters and other settings during frequency, voltage and temperature changes -Platform Data (see include/linux/platform_data/emif_plat.h): -===================================================================== +Platform Data (see include/linux/platform_data/emif_plat.h) +=========================================================== DDR device details and other board dependent and SoC dependent information can be passed through platform data (struct emif_platform_data) + - DDR device details: 'struct ddr_device_info' - Device AC timings: 'struct lpddr2_timings' and 'struct lpddr2_min_tck' - Custom configurations: customizable policy options through
@@ -40,17 +45,19 @@ information can be passed through platform data (struct emif_platform_data) - IP revision - PHY type -Interface to the external world: -================================ +Interface to the external world +=============================== EMIF driver registers notifiers for voltage and frequency changes affecting EMIF and takes appropriate actions when these are invoked. + - freq_pre_notify_handling() - freq_post_notify_handling() - volt_notify_handling() Debugfs -======== +======= The driver creates two debugfs entries per device. + - regcache_dump : dump of register values calculated and saved for all frequencies used so far. - mr4 : last polled value of MR4 register in the LPDDR2 device. MR4
Signature · 1 line
2.20.1
PATCH v2 47/79 docs: early-userspace: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabThe two files there describes a Kernel API feature, used to support early userspace stuff. Prepare for moving them to the kernel API book by converting to ReST format.
The conversion itself was quite trivial: just add/mark a few titles as such, add a literal block markup, add a table markup and a few blank lines, in order to make Sphinx to properly parse it.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../{buffer-format.txt => buffer-format.rst} | 19 +++++++++++++------
.../{README => early_userspace_support.rst} | 3 +++
Documentation/early-userspace/index.rst | 18 ++++++++++++++++++
Documentation/filesystems/nfs/nfsroot.txt | 2 +-
.../filesystems/ramfs-rootfs-initramfs.txt | 4 ++--
usr/Kconfig | 2 +-
6 files changed, 38 insertions(+), 10 deletions(-)
rename Documentation/early-userspace/{buffer-format.txt => buffer-format.rst} (91%)
rename Documentation/early-userspace/{README => early_userspace_support.rst} (99%)
create mode 100644 Documentation/early-userspace/index.rstDocumentation/early-userspace/buffer-format.rst renamed from Documentation/early-userspace/buffer-format.txt +13 -6
@@ -1,8 +1,10 @@ - initramfs buffer format - ----------------------- +======================= +initramfs buffer format +======================= - Al Viro, H. Peter Anvin - Last revision: 2002-01-13 +Al Viro, H. Peter Anvin + +Last revision: 2002-01-13 Starting with kernel 2.5.x, the old "initial ramdisk" protocol is getting {replaced/complemented} with the new "initial ramfs"
@@ -18,7 +20,8 @@ archive can be compressed using gzip(1). One valid version of an initramfs buffer is thus a single .cpio.gz file. The full format of the initramfs buffer is defined by the following -grammar, where: +grammar, where:: + * is used to indicate "0 or more occurrences of" (|) indicates alternatives + indicates concatenation
@@ -49,7 +52,9 @@ hexadecimal ASCII numbers fully padded with '0' on the left to the full width of the field, for example, the integer 4780 is represented by the ASCII string "000012ac"): +============= ================== ============================================== Field name Field size Meaning +============= ================== ============================================== c_magic 6 bytes The string "070701" or "070702" c_ino 8 bytes File inode number c_mode 8 bytes File mode and permissions
@@ -65,6 +70,7 @@ c_rmin 8 bytes Minor part of device node reference c_namesize 8 bytes Length of filename, including final \0 c_chksum 8 bytes Checksum of data field if c_magic is 070702; otherwise zero +============= ================== ============================================== The c_mode field matches the contents of st_mode returned by stat(2) on Linux, and encodes the file type and file permissions.
@@ -82,7 +88,8 @@ If the filename is "TRAILER!!!" this is actually an end-of-archive marker; the c_filesize for an end-of-archive marker must be zero. -*** Handling of hard links +Handling of hard links +====================== When a nondirectory with c_nlink > 1 is seen, the (c_maj,c_min,c_ino) tuple is looked up in a tuple buffer. If not found, it is entered in
Documentation/early-userspace/early_userspace_support.rst renamed from Documentation/early-userspace/README +3 -0
@@ -1,3 +1,4 @@ +======================= Early userspace support =======================
@@ -26,6 +27,7 @@ archive to be used as the image or have the kernel build process build the image from specifications. CPIO ARCHIVE method +------------------- You can create a cpio archive that contains the early userspace image. Your cpio archive should be specified in CONFIG_INITRAMFS_SOURCE and it
@@ -34,6 +36,7 @@ CONFIG_INITRAMFS_SOURCE and directory and file names are not allowed in combination with a cpio archive. IMAGE BUILDING method +--------------------- The kernel build process can also build an early userspace image from source parts rather than supplying a cpio archive. This method provides
Documentation/early-userspace/index.rst new file +18 -0
@@ -0,0 +1,18 @@ +:orphan: + +=============== +Early Userspace +=============== + +.. toctree:: + :maxdepth: 1 + + early_userspace_support + buffer-format + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/filesystems/nfs/nfsroot.txt +1 -1
@@ -239,7 +239,7 @@ rdinit=<executable file> A description of the process of mounting the root file system can be found in: - Documentation/early-userspace/README + Documentation/early-userspace/early_userspace_support.rst
Documentation/filesystems/ramfs-rootfs-initramfs.txt +2 -2
@@ -105,7 +105,7 @@ All this differs from the old initrd in several ways: - The old initrd file was a gzipped filesystem image (in some file format, such as ext2, that needed a driver built into the kernel), while the new initramfs archive is a gzipped cpio archive (like tar only simpler, - see cpio(1) and Documentation/early-userspace/buffer-format.txt). The + see cpio(1) and Documentation/early-userspace/buffer-format.rst). The kernel's cpio extraction code is not only extremely small, it's also __init text and data that can be discarded during the boot process.
@@ -159,7 +159,7 @@ One advantage of the configuration file is that root access is not required to set permissions or create device nodes in the new archive. (Note that those two example "file" entries expect to find files named "init.sh" and "busybox" in a directory called "initramfs", under the linux-2.6.* directory. See -Documentation/early-userspace/README for more details.) +Documentation/early-userspace/early_userspace_support.rst for more details.) The kernel does not depend on external cpio tools. If you specify a directory instead of a configuration file, the kernel's build infrastructure
usr/Kconfig +1 -1
@@ -18,7 +18,7 @@ config INITRAMFS_SOURCE When multiple directories and files are specified then the initramfs image will be the aggregate of all of them. - See <file:Documentation/early-userspace/README> for more details. + See <file:Documentation/early-userspace/early_userspace_support.rst> for more details. If you are not sure, leave it blank.
Signature · 1 line
2.20.1
PATCH v2 55/79 docs: rbtree.txt: fix Sphinx build warnings
In reply to Mauro Carvalho ChehabThs file is already at ReST format. Yet, some recent changes made it to produce a few warnings when building it with Sphinx.
Those are trivially fixed by marking some literal blocks.
Fix them before adding it to the docs building system.
--- Documentation/rbtree.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/rbtree.txt +3 -3
@@ -204,21 +204,21 @@ potentially expensive tree iterations. This is done at negligible runtime overhead for maintanence; albeit larger memory footprint. Similar to the rb_root structure, cached rbtrees are initialized to be -empty via: +empty via:: struct rb_root_cached mytree = RB_ROOT_CACHED; Cached rbtree is simply a regular rb_root with an extra pointer to cache the leftmost node. This allows rb_root_cached to exist wherever rb_root does, which permits augmented trees to be supported as well as only a few extra -interfaces: +interfaces:: struct rb_node *rb_first_cached(struct rb_root_cached *tree); void rb_insert_color_cached(struct rb_node *, struct rb_root_cached *, bool); void rb_erase_cached(struct rb_node *node, struct rb_root_cached *); Both insert and erase calls have their respective counterpart of augmented -trees: +trees:: void rb_insert_augmented_cached(struct rb_node *node, struct rb_root_cached *, bool, struct rb_augment_callbacks *);
Signature · 1 line
2.20.1
PATCH v2 37/79 docs: xilinx: convert eemi.txt to eemi.rst
In reply to Mauro Carvalho ChehabThis is a very trivial conversion: adjust the title markup and add a few literal block markups to produce a better visual when parsed and avoid warnings.
As newer documents related to xilinx could be added in the future, create a new index file for it.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/xilinx/{eemi.txt => eemi.rst} | 8 ++++----
Documentation/xilinx/index.rst | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 4 deletions(-)
rename Documentation/xilinx/{eemi.txt => eemi.rst} (92%)
create mode 100644 Documentation/xilinx/index.rstDocumentation/xilinx/eemi.rst renamed from Documentation/xilinx/eemi.txt +4 -4
@@ -1,6 +1,6 @@ ---------------------------------------------------------------------- +==================================== Xilinx Zynq MPSoC EEMI Documentation ---------------------------------------------------------------------- +==================================== Xilinx Zynq MPSoC Firmware Interface -------------------------------------
@@ -21,7 +21,7 @@ The zynqmp-firmware driver maintain all EEMI APIs in zynqmp_eemi_ops structure. Any driver who want to communicate with PMC using EEMI APIs can call zynqmp_pm_get_eemi_ops(). -Example of EEMI ops: +Example of EEMI ops:: /* zynqmp-firmware driver maintain all EEMI APIs */ struct zynqmp_eemi_ops {
@@ -34,7 +34,7 @@ Example of EEMI ops: .query_data = zynqmp_pm_query_data, }; -Example of EEMI ops usage: +Example of EEMI ops usage:: static const struct zynqmp_eemi_ops *eemi_ops; u32 ret_payload[PAYLOAD_ARG_CNT];
Documentation/xilinx/index.rst new file +17 -0
@@ -0,0 +1,17 @@ +:orphan: + +=========== +Xilinx FPGA +=========== + +.. toctree:: + :maxdepth: 1 + + eemi + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Signature · 7 lines
2.20.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v2 23/79 docs: netlabel: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabConvert netlabel documentation to ReST.
This was trivial: just add proper title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../{cipso_ipv4.txt => cipso_ipv4.rst} | 19 +++++++++++------
Documentation/netlabel/draft_ietf.rst | 5 +++++
Documentation/netlabel/index.rst | 21 +++++++++++++++++++
.../{introduction.txt => introduction.rst} | 16 +++++++++-----
.../{lsm_interface.txt => lsm_interface.rst} | 16 +++++++++-----
5 files changed, 61 insertions(+), 16 deletions(-)
rename Documentation/netlabel/{cipso_ipv4.txt => cipso_ipv4.rst} (87%)
create mode 100644 Documentation/netlabel/draft_ietf.rst
create mode 100644 Documentation/netlabel/index.rst
rename Documentation/netlabel/{introduction.txt => introduction.rst} (91%)
rename Documentation/netlabel/{lsm_interface.txt => lsm_interface.rst} (88%)Documentation/netlabel/cipso_ipv4.rst renamed from Documentation/netlabel/cipso_ipv4.txt +13 -6
@@ -1,10 +1,13 @@ +=================================== NetLabel CIPSO/IPv4 Protocol Engine -============================================================================== +=================================== + Paul Moore, [email protected] May 17, 2006 - * Overview +Overview +======== The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial IP Security Option (CIPSO) draft from July 16, 1992. A copy of this
@@ -13,7 +16,8 @@ draft can be found in this directory it to an RFC standard it has become a de-facto standard for labeled networking and is used in many trusted operating systems. - * Outbound Packet Processing +Outbound Packet Processing +========================== The CIPSO/IPv4 protocol engine applies the CIPSO IP option to packets by adding the CIPSO label to the socket. This causes all packets leaving the
@@ -24,7 +28,8 @@ label by using the NetLabel security module API; if the NetLabel "domain" is configured to use CIPSO for packet labeling then a CIPSO IP option will be generated and attached to the socket. - * Inbound Packet Processing +Inbound Packet Processing +========================= The CIPSO/IPv4 protocol engine validates every CIPSO IP option it finds at the IP layer without any special handling required by the LSM. However, in order
@@ -33,7 +38,8 @@ NetLabel security module API to extract the security attributes of the packet. This is typically done at the socket layer using the 'socket_sock_rcv_skb()' LSM hook. - * Label Translation +Label Translation +================= The CIPSO/IPv4 protocol engine contains a mechanism to translate CIPSO security attributes such as sensitivity level and category to values which are
@@ -42,7 +48,8 @@ Domain Of Interpretation (DOI) definition and are configured through the NetLabel user space communication layer. Each DOI definition can have a different security attribute mapping table. - * Label Translation Cache +Label Translation Cache +======================= The NetLabel system provides a framework for caching security attribute mappings from the network labels to the corresponding LSM identifiers. The
Documentation/netlabel/draft_ietf.rst new file +5 -0
@@ -0,0 +1,5 @@ +Draft IETF CIPSO IP Security +---------------------------- + + .. include:: draft-ietf-cipso-ipsecurity-01.txt + :literal:
Documentation/netlabel/index.rst new file +21 -0
@@ -0,0 +1,21 @@ +:orphan: + +======== +NetLabel +======== + +.. toctree:: + :maxdepth: 1 + + introduction + cipso_ipv4 + lsm_interface + + draft_ietf + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/netlabel/introduction.rst renamed from Documentation/netlabel/introduction.txt +11 -5
@@ -1,10 +1,13 @@ +===================== NetLabel Introduction -============================================================================== +===================== + Paul Moore, [email protected] August 2, 2006 - * Overview +Overview +======== NetLabel is a mechanism which can be used by kernel security modules to attach security attributes to outgoing network packets generated from user space
@@ -12,7 +15,8 @@ applications and read security attributes from incoming network packets. It is composed of three main components, the protocol engines, the communication layer, and the kernel security module API. - * Protocol Engines +Protocol Engines +================ The protocol engines are responsible for both applying and retrieving the network packet's security attributes. If any translation between the network
@@ -24,7 +28,8 @@ the NetLabel kernel security module API described below. Detailed information about each NetLabel protocol engine can be found in this directory. - * Communication Layer +Communication Layer +=================== The communication layer exists to allow NetLabel configuration and monitoring from user space. The NetLabel communication layer uses a message based
@@ -33,7 +38,8 @@ formatting of these NetLabel messages as well as the Generic NETLINK family names can be found in the 'net/netlabel/' directory as comments in the header files as well as in 'include/net/netlabel.h'. - * Security Module API +Security Module API +=================== The purpose of the NetLabel security module API is to provide a protocol independent interface to the underlying NetLabel protocol engines. In addition
Documentation/netlabel/lsm_interface.rst renamed from Documentation/netlabel/lsm_interface.txt +11 -5
@@ -1,10 +1,13 @@ +======================================== NetLabel Linux Security Module Interface -============================================================================== +======================================== + Paul Moore, [email protected] May 17, 2006 - * Overview +Overview +======== NetLabel is a mechanism which can set and retrieve security attributes from network packets. It is intended to be used by LSM developers who want to make
@@ -12,7 +15,8 @@ use of a common code base for several different packet labeling protocols. The NetLabel security module API is defined in 'include/net/netlabel.h' but a brief overview is given below. - * NetLabel Security Attributes +NetLabel Security Attributes +============================ Since NetLabel supports multiple different packet labeling protocols and LSMs it uses the concept of security attributes to refer to the packet's security
@@ -24,7 +28,8 @@ configuration. It is up to the LSM developer to translate the NetLabel security attributes into whatever security identifiers are in use for their particular LSM. - * NetLabel LSM Protocol Operations +NetLabel LSM Protocol Operations +================================ These are the functions which allow the LSM developer to manipulate the labels on outgoing packets as well as read the labels on incoming packets. Functions
@@ -32,7 +37,8 @@ exist to operate both on sockets as well as the sk_buffs directly. These high level functions are translated into low level protocol operations based on how the administrator has configured the NetLabel subsystem. - * NetLabel Label Mapping Cache Operations +NetLabel Label Mapping Cache Operations +======================================= Depending on the exact configuration, translation between the network packet label and the internal LSM security identifier can be time consuming. The
Signature · 1 line
2.20.1
PATCH v2 51/79 docs: xen-tpmfront.txt: convert it to .rst
In reply to Mauro Carvalho ChehabIn order to be able to add this file to the security book, we need first to convert it to reST.
While this is not part of any book, mark it as :orphan:, in order to avoid build warnings.
---
.../{xen-tpmfront.txt => xen-tpmfront.rst} | 103 ++++++++++--------
1 file changed, 58 insertions(+), 45 deletions(-)
rename Documentation/security/tpm/{xen-tpmfront.txt => xen-tpmfront.rst} (66%)Documentation/security/tpm/xen-tpmfront.rst renamed from Documentation/security/tpm/xen-tpmfront.txt +58 -45
@@ -1,4 +1,8 @@ +:orphan: + +============================= Virtual TPM interface for Xen +============================= Authors: Matthew Fioravante (JHUAPL), Daniel De Graaf (NSA)
@@ -6,7 +10,8 @@ This document describes the virtual Trusted Platform Module (vTPM) subsystem for Xen. The reader is assumed to have familiarity with building and installing Xen, Linux, and a basic understanding of the TPM and vTPM concepts. -INTRODUCTION +Introduction +------------ The goal of this work is to provide a TPM functionality to a virtual guest operating system (in Xen terms, a DomU). This allows programs to interact with
@@ -24,81 +29,89 @@ This mini-os vTPM subsystem was built on top of the previous vTPM work done by IBM and Intel corporation. -DESIGN OVERVIEW +Design Overview --------------- -The architecture of vTPM is described below: +The architecture of vTPM is described below:: -+------------------+ -| Linux DomU | ... -| | ^ | -| v | | -| xen-tpmfront | -+------------------+ - | ^ - v | -+------------------+ -| mini-os/tpmback | -| | ^ | -| v | | -| vtpm-stubdom | ... -| | ^ | -| v | | -| mini-os/tpmfront | -+------------------+ - | ^ - v | -+------------------+ -| mini-os/tpmback | -| | ^ | -| v | | -| vtpmmgr-stubdom | -| | ^ | -| v | | -| mini-os/tpm_tis | -+------------------+ - | ^ - v | -+------------------+ -| Hardware TPM | -+------------------+ + +------------------+ + | Linux DomU | ... + | | ^ | + | v | | + | xen-tpmfront | + +------------------+ + | ^ + v | + +------------------+ + | mini-os/tpmback | + | | ^ | + | v | | + | vtpm-stubdom | ... + | | ^ | + | v | | + | mini-os/tpmfront | + +------------------+ + | ^ + v | + +------------------+ + | mini-os/tpmback | + | | ^ | + | v | | + | vtpmmgr-stubdom | + | | ^ | + | v | | + | mini-os/tpm_tis | + +------------------+ + | ^ + v | + +------------------+ + | Hardware TPM | + +------------------+ - * Linux DomU: The Linux based guest that wants to use a vTPM. There may be +* Linux DomU: + The Linux based guest that wants to use a vTPM. There may be more than one of these. - * xen-tpmfront.ko: Linux kernel virtual TPM frontend driver. This driver +* xen-tpmfront.ko: + Linux kernel virtual TPM frontend driver. This driver provides vTPM access to a Linux-based DomU. - * mini-os/tpmback: Mini-os TPM backend driver. The Linux frontend driver +* mini-os/tpmback: + Mini-os TPM backend driver. The Linux frontend driver connects to this backend driver to facilitate communications between the Linux DomU and its vTPM. This driver is also used by vtpmmgr-stubdom to communicate with vtpm-stubdom. - * vtpm-stubdom: A mini-os stub domain that implements a vTPM. There is a +* vtpm-stubdom: + A mini-os stub domain that implements a vTPM. There is a one to one mapping between running vtpm-stubdom instances and logical vtpms on the system. The vTPM Platform Configuration Registers (PCRs) are normally all initialized to zero. - * mini-os/tpmfront: Mini-os TPM frontend driver. The vTPM mini-os domain +* mini-os/tpmfront: + Mini-os TPM frontend driver. The vTPM mini-os domain vtpm-stubdom uses this driver to communicate with vtpmmgr-stubdom. This driver is also used in mini-os domains such as pv-grub that talk to the vTPM domain. - * vtpmmgr-stubdom: A mini-os domain that implements the vTPM manager. There is +* vtpmmgr-stubdom: + A mini-os domain that implements the vTPM manager. There is only one vTPM manager and it should be running during the entire lifetime of the machine. This domain regulates access to the physical TPM on the system and secures the persistent state of each vTPM. - * mini-os/tpm_tis: Mini-os TPM version 1.2 TPM Interface Specification (TIS) +* mini-os/tpm_tis: + Mini-os TPM version 1.2 TPM Interface Specification (TIS) driver. This driver used by vtpmmgr-stubdom to talk directly to the hardware TPM. Communication is facilitated by mapping hardware memory pages into vtpmmgr-stubdom. - * Hardware TPM: The physical TPM that is soldered onto the motherboard. +* Hardware TPM: + The physical TPM that is soldered onto the motherboard. -INTEGRATION WITH XEN +Integration With Xen -------------------- Support for the vTPM driver was added in Xen using the libxl toolstack in Xen
Signature · 1 line
2.20.1
PATCH v2 63/79 docs: iio: convert to ReST
In reply to Mauro Carvalho ChehabRename the iio documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../iio/{ep93xx_adc.txt => ep93xx_adc.rst} | 15 +++++-
.../{iio_configfs.txt => iio_configfs.rst} | 52 +++++++++++--------
Documentation/iio/index.rst | 12 +++++
drivers/iio/Kconfig | 2 +-
4 files changed, 56 insertions(+), 25 deletions(-)
rename Documentation/iio/{ep93xx_adc.txt => ep93xx_adc.rst} (71%)
rename Documentation/iio/{iio_configfs.txt => iio_configfs.rst} (73%)
create mode 100644 Documentation/iio/index.rstDocumentation/iio/ep93xx_adc.rst renamed from Documentation/iio/ep93xx_adc.txt +13 -2
@@ -1,12 +1,16 @@ -Cirrus Logic EP93xx ADC driver. +============================== +Cirrus Logic EP93xx ADC driver +============================== 1. Overview +=========== The driver is intended to work on both low-end (EP9301, EP9302) devices with 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel touchscreen/ADC module. 2. Channel numbering +==================== Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets. EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
@@ -17,13 +21,20 @@ Assuming ep93xx_adc is IIO device0, you'd find the following entries under +-----------------+---------------+ | sysfs entry | ball/pin name | - +-----------------+---------------+ + +=================+===============+ | in_voltage0_raw | YM | + +-----------------+---------------+ | in_voltage1_raw | SXP | + +-----------------+---------------+ | in_voltage2_raw | SXM | + +-----------------+---------------+ | in_voltage3_raw | SYP | + +-----------------+---------------+ | in_voltage4_raw | SYM | + +-----------------+---------------+ | in_voltage5_raw | XP | + +-----------------+---------------+ | in_voltage6_raw | XM | + +-----------------+---------------+ | in_voltage7_raw | YP | +-----------------+---------------+
Documentation/iio/iio_configfs.rst renamed from Documentation/iio/iio_configfs.txt +30 -22
117 lines not on this page · raw message
Documentation/iio/index.rst new file +12 -0
@@ -0,0 +1,12 @@ +:orphan: + +============== +Industrial I/O +============== + +.. toctree:: + :maxdepth: 1 + + iio_configfs + + ep93xx_adc
drivers/iio/Kconfig +1 -1
@@ -28,7 +28,7 @@ config IIO_CONFIGFS help This allows configuring various IIO bits through configfs (e.g. software triggers). For more info see - Documentation/iio/iio_configfs.txt. + Documentation/iio/iio_configfs.rst. config IIO_TRIGGER bool "Enable triggered sampling support"
Signature · 1 line
2.20.1
PATCH v2 67/79 docs: nfc: convert to ReST
In reply to Mauro Carvalho ChehabRename the nfc documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/nfc/index.rst | 11 ++
.../nfc/{nfc-hci.txt => nfc-hci.rst} | 163 ++++++++++--------
.../nfc/{nfc-pn544.txt => nfc-pn544.rst} | 6 +-
3 files changed, 107 insertions(+), 73 deletions(-)
create mode 100644 Documentation/nfc/index.rst
rename Documentation/nfc/{nfc-hci.txt => nfc-hci.rst} (71%)
rename Documentation/nfc/{nfc-pn544.txt => nfc-pn544.rst} (82%)Documentation/nfc/index.rst new file +11 -0
@@ -0,0 +1,11 @@ +:orphan: + +======================== +Near Field Communication +======================== + +.. toctree:: + :maxdepth: 1 + + nfc-hci + nfc-pn544
Documentation/nfc/nfc-hci.rst renamed from Documentation/nfc/nfc-hci.txt +92 -71
264 lines not on this page · raw message
Documentation/nfc/nfc-pn544.rst renamed from Documentation/nfc/nfc-pn544.txt +4 -2
@@ -1,5 +1,7 @@ -Kernel driver for the NXP Semiconductors PN544 Near Field -Communication chip +============================================================================ +Kernel driver for the NXP Semiconductors PN544 Near Field Communication chip +============================================================================ + General -------
Signature · 1 line
2.20.1
PATCH v2 75/79 docs: rapidio: convert to ReST
In reply to Mauro Carvalho ChehabRename the rapidio documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/rapidio/index.rst | 15 +++++
.../{mport_cdev.txt => mport_cdev.rst} | 47 ++++++-------
.../rapidio/{rapidio.txt => rapidio.rst} | 39 +++++++----
.../rapidio/{rio_cm.txt => rio_cm.rst} | 66 ++++++++++++-------
.../rapidio/{sysfs.txt => sysfs.rst} | 4 ++
.../rapidio/{tsi721.txt => tsi721.rst} | 45 ++++++++-----
drivers/rapidio/Kconfig | 2 +-
7 files changed, 141 insertions(+), 77 deletions(-)
create mode 100644 Documentation/rapidio/index.rst
rename Documentation/rapidio/{mport_cdev.txt => mport_cdev.rst} (84%)
rename Documentation/rapidio/{rapidio.txt => rapidio.rst} (97%)
rename Documentation/rapidio/{rio_cm.txt => rio_cm.rst} (76%)
rename Documentation/rapidio/{sysfs.txt => sysfs.rst} (75%)
rename Documentation/rapidio/{tsi721.txt => tsi721.rst} (79%)Documentation/rapidio/index.rst new file +15 -0
@@ -0,0 +1,15 @@ +:orphan: + +=========================== +The Linux RapidIO Subsystem +=========================== + +.. toctree:: + :maxdepth: 1 + + rapidio + sysfs + + tsi721 + mport_cdev + rio_cm
Documentation/rapidio/mport_cdev.rst renamed from Documentation/rapidio/mport_cdev.txt +25 -22
107 lines not on this page · raw message
Documentation/rapidio/rapidio.rst renamed from Documentation/rapidio/rapidio.txt +25 -14
@@ -1,6 +1,6 @@ - The Linux RapidIO Subsystem - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +============ +Introduction +============ The RapidIO standard is a packet-based fabric interconnect standard designed for use in embedded systems. Development of the RapidIO standard is directed by the
@@ -11,7 +11,7 @@ This document describes the basics of the Linux RapidIO subsystem and provides information on its major components. 1 Overview ----------- +========== Because the RapidIO subsystem follows the Linux device model it is integrated into the kernel similarly to other buses by defining RapidIO-specific device and
@@ -22,7 +22,7 @@ architecture-specific interfaces that provide support for common RapidIO subsystem operations. 2. Core Components ------------------- +================== A typical RapidIO network is a combination of endpoints and switches. Each of these components is represented in the subsystem by an associated data
@@ -30,6 +30,7 @@ structure. The core logical components of the RapidIO subsystem are defined in include/linux/rio.h file. 2.1 Master Port +--------------- A master port (or mport) is a RapidIO interface controller that is local to the processor executing the Linux code. A master port generates and receives RapidIO
@@ -46,6 +47,7 @@ includes rio_ops data structure which contains pointers to hardware specific implementations of RapidIO functions. 2.2 Device +---------- A RapidIO device is any endpoint (other than mport) or switch in the network. All devices are presented in the RapidIO subsystem by corresponding rio_dev data
@@ -53,6 +55,7 @@ structure. Devices form one global device list and per-network device lists (depending on number of available mports and networks). 2.3 Switch +---------- A RapidIO switch is a special class of device that routes packets between its ports towards their final destination. The packet destination port within a
@@ -66,6 +69,7 @@ specific switch drivers that are designed to provide hardware-specific implementation of common switch management routines. 2.4 Network +----------- A RapidIO network is a combination of interconnected endpoint and switch devices. Each RapidIO network known to the system is represented by corresponding rio_net
@@ -74,11 +78,13 @@ ports that form the same network. It also contains a pointer to the default master port that is used to communicate with devices within the network. 2.5 Device Drivers +------------------ RapidIO device-specific drivers follow Linux Kernel Driver Model and are intended to support specific RapidIO devices attached to the RapidIO network. 2.6 Subsystem Interfaces +------------------------ RapidIO interconnect specification defines features that may be used to provide one or more common service layers for all participating RapidIO devices. These
@@ -90,7 +96,7 @@ subsystem interfaces. This allows to have multiple common services attached to the same device without blocking attachment of a device-specific driver. 3. Subsystem Initialization ---------------------------- +=========================== In order to initialize the RapidIO subsystem, a platform must initialize and register at least one master port within the RapidIO network. To register mport
@@ -105,7 +111,7 @@ RapidIO subsystem can be configured to be built as a statically linked or modular component of the kernel (see details below). 4. Enumeration and Discovery ----------------------------- +============================ 4.1 Overview ------------
@@ -168,14 +174,16 @@ on RapidIO subsystem build configuration: (b) If the RapidIO subsystem core is built as a loadable module, in addition to the method shown above, the host destination ID(s) can be specified using traditional methods of passing module parameter "hdid=" during its loading: + - from command line: "modprobe rapidio hdid=-1,7", or - from modprobe configuration file using configuration command "options", like in this example: "options rapidio hdid=-1,7". An example of modprobe configuration file is provided in the section below. - NOTES: +NOTES: (i) if "hdid=" parameter is omitted all available mport will be assigned destination ID = -1; + (ii) the "hdid=" parameter in systems with multiple mports can have destination ID assignments omitted from the end of list (default = -1).
@@ -317,8 +325,7 @@ must ensure that they are loaded before the enumeration/discovery starts. This process can be automated by specifying pre- or post- dependencies in the RapidIO-specific modprobe configuration file as shown in the example below. - File /etc/modprobe.d/rapidio.conf: - ---------------------------------- +File /etc/modprobe.d/rapidio.conf:: # Configure RapidIO subsystem modules
@@ -335,17 +342,21 @@ RapidIO-specific modprobe configuration file as shown in the example below. -------------------------- -NOTE: In the example above, one of "softdep" commands must be removed or -commented out to keep required module loading sequence. +NOTE: + In the example above, one of "softdep" commands must be removed or + commented out to keep required module loading sequence. -A. References -------------- +5. References +============= [1] RapidIO Trade Association. RapidIO Interconnect Specifications. http://www.rapidio.org. + [2] Rapidio TA. Technology Comparisons. http://www.rapidio.org/education/technology_comparisons/ + [3] RapidIO support for Linux. http://lwn.net/Articles/139118/ + [4] Matt Porter. RapidIO for Linux. Ottawa Linux Symposium, 2005 http://www.kernel.org/doc/ols/2005/ols2005v2-pages-43-56.pdf
Documentation/rapidio/rio_cm.rst renamed from Documentation/rapidio/rio_cm.txt +41 -25
133 lines not on this page · raw message
Documentation/rapidio/sysfs.rst renamed from Documentation/rapidio/sysfs.txt +4 -0
@@ -1,3 +1,7 @@ +============= +Sysfs entries +============= + The RapidIO sysfs files have moved to: Documentation/ABI/testing/sysfs-bus-rapidio and Documentation/ABI/testing/sysfs-class-rapidio
Documentation/rapidio/tsi721.rst renamed from Documentation/rapidio/tsi721.txt +30 -15
98 lines not on this page · raw message
drivers/rapidio/Kconfig +1 -1
@@ -85,7 +85,7 @@ config RAPIDIO_CHMAN This option includes RapidIO channelized messaging driver which provides socket-like interface to allow sharing of single RapidIO messaging mailbox between multiple user-space applications. - See "Documentation/rapidio/rio_cm.txt" for driver description. + See "Documentation/rapidio/rio_cm.rst" for driver description. config RAPIDIO_MPORT_CDEV tristate "RapidIO /dev mport device driver"
Signature · 1 line
2.20.1
PATCH v2 71/79 docs: xtensa: convert to ReST
In reply to Mauro Carvalho ChehabRename the xtensa documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../xtensa/{atomctl.txt => atomctl.rst} | 13 +-
.../xtensa/{booting.txt => booting.rst} | 5 +-
Documentation/xtensa/index.rst | 12 ++
Documentation/xtensa/mmu.rst | 195 ++++++++++++++++++
Documentation/xtensa/mmu.txt | 189 -----------------
arch/xtensa/include/asm/initialize_mmu.h | 2 +-
6 files changed, 222 insertions(+), 194 deletions(-)
rename Documentation/xtensa/{atomctl.txt => atomctl.rst} (81%)
rename Documentation/xtensa/{booting.txt => booting.rst} (91%)
create mode 100644 Documentation/xtensa/index.rst
create mode 100644 Documentation/xtensa/mmu.rst
delete mode 100644 Documentation/xtensa/mmu.txtDocumentation/xtensa/atomctl.rst renamed from Documentation/xtensa/atomctl.txt +10 -3
@@ -1,3 +1,7 @@ +=========================================== +Atomic Operation Control (ATOMCTL) Register +=========================================== + We Have Atomic Operation Control (ATOMCTL) Register. This register determines the effect of using a S32C1I instruction with various combinations of:
@@ -8,7 +12,7 @@ with various combinations of: 2. With and without An Intelligent Memory Controller which can do Atomic Transactions itself. -The Core comes up with a default value of for the three types of cache ops: +The Core comes up with a default value of for the three types of cache ops:: 0x28: (WB: Internal, WT: Internal, BY:Exception)
@@ -30,15 +34,18 @@ CUSTOMER-WARNING: Developers might find using RCW in Bypass mode convenient when testing with the cache being bypassed; for example studying cache alias problems. -See Section 4.3.12.4 of ISA; Bits: +See Section 4.3.12.4 of ISA; Bits:: WB WT BY 5 4 | 3 2 | 1 0 + +========= ================== ================== =============== 2 Bit Field Values WB - Write Back WT - Write Thru BY - Bypass ---------- --------------- ----------------- ---------------- +========= ================== ================== =============== 0 Exception Exception Exception 1 RCW Transaction RCW Transaction RCW Transaction 2 Internal Operation Internal Operation Reserved 3 Reserved Reserved Reserved +========= ================== ================== ===============
Documentation/xtensa/booting.rst renamed from Documentation/xtensa/booting.txt +4 -1
@@ -1,10 +1,13 @@ -Passing boot parameters to the kernel. +===================================== +Passing boot parameters to the kernel +===================================== Boot parameters are represented as a TLV list in the memory. Please see arch/xtensa/include/asm/bootparam.h for definition of the bp_tag structure and tag value constants. First entry in the list must have type BP_TAG_FIRST, last entry must have type BP_TAG_LAST. The address of the first list entry is passed to the kernel in the register a2. The address type depends on MMU type: + - For configurations without MMU, with region protection or with MPU the address must be the physical address. - For configurations with region translarion MMU or with MMUv3 and CONFIG_MMU=n
Documentation/xtensa/index.rst new file +12 -0
@@ -0,0 +1,12 @@ +:orphan: + +=================== +Xtensa Architecture +=================== + +.. toctree:: + :maxdepth: 1 + + atomctl + booting + mmu
Documentation/xtensa/mmu.rst new file +195 -0
195 lines not on this page · raw message
Documentation/xtensa/mmu.txt deleted +0 -189
189 lines not on this page · raw message
arch/xtensa/include/asm/initialize_mmu.h +1 -1
@@ -46,7 +46,7 @@#if XCHAL_HAVE_S32C1I && (XCHAL_HW_MIN_VERSION >=XTENSA_HWVERSION_RC_2009_0 )/* * We Have Atomic Operation Control (ATOMCTL) Register; Initialize it. -* For details see Documentation/xtensa/atomctl.txt +* For details see Documentation/xtensa/atomctl.rst */ #if XCHAL_DCACHE_IS_COHERENT movi a3, 0x25 /* For SMP/MX -- internal for writeback,
Signature · 1 line
2.20.1
PATCH v2 68/79 docs: md: convert to ReST
In reply to Mauro Carvalho ChehabRename the md documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/md/index.rst | 12 ++
.../md/{md-cluster.txt => md-cluster.rst} | 188 ++++++++++++------
.../md/{raid5-cache.txt => raid5-cache.rst} | 28 +--
.../md/{raid5-ppl.txt => raid5-ppl.rst} | 2 +
4 files changed, 153 insertions(+), 77 deletions(-)
create mode 100644 Documentation/md/index.rst
rename Documentation/md/{md-cluster.txt => md-cluster.rst} (68%)
rename Documentation/md/{raid5-cache.txt => raid5-cache.rst} (92%)
rename Documentation/md/{raid5-ppl.txt => raid5-ppl.rst} (98%)Documentation/md/index.rst new file +12 -0
@@ -0,0 +1,12 @@ +:orphan: + +==== +RAID +==== + +.. toctree:: + :maxdepth: 1 + + md-cluster + raid5-cache + raid5-ppl
Documentation/md/md-cluster.rst renamed from Documentation/md/md-cluster.txt +124 -64
390 lines not on this page · raw message
Documentation/md/raid5-cache.rst renamed from Documentation/md/raid5-cache.txt +15 -13
@@ -1,4 +1,6 @@ -RAID5 cache +================ +RAID 4/5/6 cache +================ Raid 4/5/6 could include an extra disk for data cache besides normal RAID disks. The role of RAID disks isn't changed with the cache disk. The cache disk
@@ -6,19 +8,19 @@ caches data to the RAID disks. The cache can be in write-through (supported since 4.4) or write-back mode (supported since 4.10). mdadm (supported since 3.4) has a new option '--write-journal' to create array with cache. Please refer to mdadm manual for details. By default (RAID array starts), the cache is -in write-through mode. A user can switch it to write-back mode by: +in write-through mode. A user can switch it to write-back mode by:: -echo "write-back" > /sys/block/md0/md/journal_mode + echo "write-back" > /sys/block/md0/md/journal_mode -And switch it back to write-through mode by: +And switch it back to write-through mode by:: -echo "write-through" > /sys/block/md0/md/journal_mode + echo "write-through" > /sys/block/md0/md/journal_mode In both modes, all writes to the array will hit cache disk first. This means the cache disk must be fast and sustainable. -------------------------------------- -write-through mode: +write-through mode +================== This mode mainly fixes the 'write hole' issue. For RAID 4/5/6 array, an unclean shutdown can cause data in some stripes to not be in consistent state, eg, data
@@ -42,8 +44,8 @@ exposed to 'write hole' again. In write-through mode, the cache disk isn't required to be big. Several hundreds megabytes are enough. --------------------------------------- -write-back mode: +write-back mode +=============== write-back mode fixes the 'write hole' issue too, since all write data is cached on cache disk. But the main goal of 'write-back' cache is to speed up
@@ -64,16 +66,16 @@ data loss. In write-back mode, MD also caches data in memory. The memory cache includes the same data stored on cache disk, so a power loss doesn't cause data loss. The memory cache size has performance impact for the array. It's recommended -the size is big. A user can configure the size by: +the size is big. A user can configure the size by:: -echo "2048" > /sys/block/md0/md/stripe_cache_size + echo "2048" > /sys/block/md0/md/stripe_cache_size Too small cache disk will make the write aggregation less efficient in this mode depending on the workloads. It's recommended to use a cache disk with at least several gigabytes size in write-back mode. --------------------------------------- -The implementation: +The implementation +================== The write-through and write-back cache use the same disk format. The cache disk is organized as a simple write log. The log consists of 'meta data' and 'data'
Documentation/md/raid5-ppl.rst renamed from Documentation/md/raid5-ppl.txt +2 -0
@@ -1,4 +1,6 @@ +================== Partial Parity Log +================== Partial Parity Log (PPL) is a feature available for RAID5 arrays. The issue addressed by PPL is that after a dirty shutdown, parity of a particular stripe
Signature · 1 line
2.20.1
PATCH v2 66/79 docs: namespaces: convert to ReST
In reply to Mauro Carvalho ChehabRename the namespaces documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
There are two upper case file names. Rename them to lower case, as we're working to avoid upper case file names at Documentation.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
...{compatibility-list.txt => compatibility-list.rst} | 9 +++++++--
Documentation/namespaces/index.rst | 11 +++++++++++
.../{resource-control.txt => resource-control.rst} | 4 ++++
3 files changed, 22 insertions(+), 2 deletions(-)
rename Documentation/namespaces/{compatibility-list.txt => compatibility-list.rst} (86%)
create mode 100644 Documentation/namespaces/index.rst
rename Documentation/namespaces/{resource-control.txt => resource-control.rst} (89%)Documentation/namespaces/compatibility-list.rst renamed from Documentation/namespaces/compatibility-list.txt +7 -2
@@ -1,4 +1,6 @@ - Namespaces compatibility list +============================= +Namespaces compatibility list +============================= This document contains the information about the problems user may have when creating tasks living in different namespaces.
@@ -7,13 +9,16 @@ Here's the summary. This matrix shows the known problems, that occur when tasks share some namespace (the columns) while living in different other namespaces (the rows): - UTS IPC VFS PID User Net +==== === === === === ==== === +- UTS IPC VFS PID User Net +==== === === === === ==== === UTS X IPC X 1 VFS X PID 1 1 X User 2 2 X Net X +==== === === === === ==== === 1. Both the IPC and the PID namespaces provide IDs to address object inside the kernel. E.g. semaphore with IPCID or
Documentation/namespaces/index.rst new file +11 -0
@@ -0,0 +1,11 @@ +:orphan: + +========== +Namespaces +========== + +.. toctree:: + :maxdepth: 1 + + compatibility-list + resource-control
Documentation/namespaces/resource-control.rst renamed from Documentation/namespaces/resource-control.txt +4 -0
@@ -1,3 +1,7 @@ +=========================== +Namespaces research control +=========================== + There are a lot of kinds of objects in the kernel that don't have individual limits or that have limits that are ineffective when a set of processes is allowed to switch user ids. With user namespaces
Signature · 1 line
2.20.1
PATCH v2 9/79 docs: cgroup-v1/blkio-controller.rst: add a note about CFQ scheduler
In reply to Mauro Carvalho ChehabThe CFQ scheduler was removed on this changeset:
commit f382fb0bcef4c37dc049e9f6963e3baf204d815c
Author: Jens Axboe <[email protected]>
Date: Fri Oct 12 10:14:46 2018 -0600
block: remove legacy IO schedulers
Retain the deadline documentation, as that carries over to mq-deadline as well.
However, the cgroups-v1 documentation still mentions it and points to a removed file that used to belong to such scheduler.
Add a note about that, as someone needs to fix the document pointing to another scheduler, if cgroups-v1 blockio is not dependent of CFQ scheduler.
--- Documentation/cgroup-v1/blkio-controller.rst | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/cgroup-v1/blkio-controller.rst +7 -0
@@ -17,6 +17,13 @@ one is throttling policy which can be used to specify upper IO rate limits on devices. This policy is implemented in generic block layer and can be used on leaf nodes as well as higher level logical devices like device mapper. +.. note:: + + While this document mentions the CFQ scheduler, it got removed at + Kernel 4.20, as there are other schedulers that are more efficient. + + Someone needs to update this file in order to reflect such change. + HOWTO ===== Proportional Weight division of bandwidth
Signature · 1 line
2.20.1
PATCH v2 12/79 docs: fault-injection: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabThe conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
...ault-injection.txt => fault-injection.rst} | 265 +++++++++---------
Documentation/fault-injection/index.rst | 20 ++
...r-inject.txt => notifier-error-inject.rst} | 18 +-
.../fault-injection/nvme-fault-injection.rst | 120 ++++++++
.../fault-injection/nvme-fault-injection.txt | 116 --------
.../fault-injection/provoke-crashes.rst | 48 ++++
.../fault-injection/provoke-crashes.txt | 38 ---
Documentation/process/4.Coding.rst | 2 +-
.../translations/it_IT/process/4.Coding.rst | 2 +-
.../translations/zh_CN/process/4.Coding.rst | 2 +-
drivers/misc/lkdtm/core.c | 2 +-
include/linux/fault-inject.h | 2 +-
lib/Kconfig.debug | 2 +-
tools/testing/fault-injection/failcmd.sh | 2 +-
14 files changed, 344 insertions(+), 295 deletions(-)
rename Documentation/fault-injection/{fault-injection.txt => fault-injection.rst} (68%)
create mode 100644 Documentation/fault-injection/index.rst
rename Documentation/fault-injection/{notifier-error-inject.txt => notifier-error-inject.rst} (83%)
create mode 100644 Documentation/fault-injection/nvme-fault-injection.rst
delete mode 100644 Documentation/fault-injection/nvme-fault-injection.txt
create mode 100644 Documentation/fault-injection/provoke-crashes.rst
delete mode 100644 Documentation/fault-injection/provoke-crashes.txtDocumentation/fault-injection/fault-injection.rst renamed from Documentation/fault-injection/fault-injection.txt +138 -127
@@ -1,3 +1,4 @@ +=========================================== Fault injection capabilities infrastructure ===========================================
@@ -7,36 +8,36 @@ See also drivers/md/md-faulty.c and "every_nth" module option for scsi_debug. Available fault injection capabilities -------------------------------------- -o failslab +- failslab injects slab allocation failures. (kmalloc(), kmem_cache_alloc(), ...) -o fail_page_alloc +- fail_page_alloc injects page allocation failures. (alloc_pages(), get_free_pages(), ...) -o fail_futex +- fail_futex injects futex deadlock and uaddr fault errors. -o fail_make_request +- fail_make_request injects disk IO errors on devices permitted by setting /sys/block/<device>/make-it-fail or /sys/block/<device>/<partition>/make-it-fail. (generic_make_request()) -o fail_mmc_request +- fail_mmc_request injects MMC data errors on devices permitted by setting debugfs entries under /sys/kernel/debug/mmc0/fail_mmc_request -o fail_function +- fail_function injects error return on specific functions, which are marked by ALLOW_ERROR_INJECTION() macro, by setting debugfs entries under /sys/kernel/debug/fail_function. No boot option supported. -o NVMe fault injection +- NVMe fault injection inject NVMe status code and retry flag on devices permitted by setting debugfs entries under /sys/kernel/debug/nvme*/fault_inject. The default
@@ -47,7 +48,8 @@ o NVMe fault injection Configure fault-injection capabilities behavior ----------------------------------------------- -o debugfs entries +debugfs entries +^^^^^^^^^^^^^^^ fault-inject-debugfs kernel module provides some debugfs entries for runtime configuration of fault-injection capabilities.
@@ -55,6 +57,7 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail*/probability: likelihood of failure injection, in percent. + Format: <percent> Note that one-failure-per-hundred is a very high error rate
@@ -83,6 +86,7 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail*/verbose Format: { 0 | 1 | 2 } + specifies the verbosity of the messages when failure is injected. '0' means no messages; '1' will print only a single log line per failure; '2' will print a call trace too -- useful
@@ -91,14 +95,15 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail*/task-filter: Format: { 'Y' | 'N' } + A value of 'N' disables filtering by process (default). Any positive value limits failures to only processes indicated by /proc/<pid>/make-it-fail==1. -- /sys/kernel/debug/fail*/require-start: -- /sys/kernel/debug/fail*/require-end: -- /sys/kernel/debug/fail*/reject-start: -- /sys/kernel/debug/fail*/reject-end: +- /sys/kernel/debug/fail*/require-start, + /sys/kernel/debug/fail*/require-end, + /sys/kernel/debug/fail*/reject-start, + /sys/kernel/debug/fail*/reject-end: specifies the range of virtual addresses tested during stacktrace walking. Failure is injected only if some caller
@@ -116,6 +121,7 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail_page_alloc/ignore-gfp-highmem: Format: { 'Y' | 'N' } + default is 'N', setting it to 'Y' won't inject failures into highmem/user allocations.
@@ -123,6 +129,7 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail_page_alloc/ignore-gfp-wait: Format: { 'Y' | 'N' } + default is 'N', setting it to 'Y' will inject failures only into non-sleep allocations (GFP_ATOMIC allocations).
@@ -134,12 +141,14 @@ configuration of fault-injection capabilities. - /sys/kernel/debug/fail_futex/ignore-private: Format: { 'Y' | 'N' } + default is 'N', setting it to 'Y' will disable failure injections when dealing with private (address space) futexes. - /sys/kernel/debug/fail_function/inject: Format: { 'function-name' | '!function-name' | '' } + specifies the target function of error injection by name. If the function name leads '!' prefix, given function is removed from injection list. If nothing specified ('')
@@ -160,10 +169,11 @@ configuration of fault-injection capabilities. function for given function. This will be created when user specifies new injection entry. -o Boot option +Boot option +^^^^^^^^^^^ In order to inject faults while debugfs is not available (early boot time), -use the boot option: +use the boot option:: failslab= fail_page_alloc=
@@ -171,10 +181,11 @@ use the boot option: fail_futex= mmc_core.fail_request=<interval>,<probability>,<space>,<times> -o proc entries +proc entries +^^^^^^^^^^^^ -- /proc/<pid>/fail-nth: -- /proc/self/task/<tid>/fail-nth: +- /proc/<pid>/fail-nth, + /proc/self/task/<tid>/fail-nth: Write to this file of integer N makes N-th call in the task fail. Read from this file returns a integer value. A value of '0' indicates
@@ -191,16 +202,16 @@ o proc entries How to add new fault injection capability ----------------------------------------- -o #include <linux/fault-inject.h> +- #include <linux/fault-inject.h> -o define the fault attributes +- define the fault attributes DECLARE_FAULT_ATTR(name); Please see the definition of struct fault_attr in fault-inject.h for details. -o provide a way to configure fault attributes +- provide a way to configure fault attributes - boot option
@@ -222,126 +233,126 @@ o provide a way to configure fault attributes single kernel module, it is better to provide module parameters to configure the fault attributes. -o add a hook to insert failures +- add a hook to insert failures - Upon should_fail() returning true, client code should inject a failure. + Upon should_fail() returning true, client code should inject a failure: should_fail(attr, size); Application Examples -------------------- -o Inject slab allocation failures into module init/exit code +- Inject slab allocation failures into module init/exit code:: -#!/bin/bash + #!/bin/bash -FAILTYPE=failslab -echo Y > /sys/kernel/debug/$FAILTYPE/task-filter -echo 10 > /sys/kernel/debug/$FAILTYPE/probability -echo 100 > /sys/kernel/debug/$FAILTYPE/interval -echo -1 > /sys/kernel/debug/$FAILTYPE/times -echo 0 > /sys/kernel/debug/$FAILTYPE/space -echo 2 > /sys/kernel/debug/$FAILTYPE/verbose -echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-wait + FAILTYPE=failslab + echo Y > /sys/kernel/debug/$FAILTYPE/task-filter + echo 10 > /sys/kernel/debug/$FAILTYPE/probability + echo 100 > /sys/kernel/debug/$FAILTYPE/interval + echo -1 > /sys/kernel/debug/$FAILTYPE/times + echo 0 > /sys/kernel/debug/$FAILTYPE/space + echo 2 > /sys/kernel/debug/$FAILTYPE/verbose + echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-wait -faulty_system() -{ + faulty_system() + { bash -c "echo 1 > /proc/self/make-it-fail && exec $*" -} + } -if [ $# -eq 0 ] -then + if [ $# -eq 0 ] + then echo "Usage: $0 modulename [ modulename ... ]" exit 1 -fi + fi -for m in $* -do + for m in $* + do echo inserting $m... faulty_system modprobe $m echo removing $m... faulty_system modprobe -r $m -done + done ------------------------------------------------------------------------------ -o Inject page allocation failures only for a specific module +- Inject page allocation failures only for a specific module:: -#!/bin/bash + #!/bin/bash -FAILTYPE=fail_page_alloc -module=$1 + FAILTYPE=fail_page_alloc + module=$1 -if [ -z $module ] -then + if [ -z $module ] + then echo "Usage: $0 <modulename>" exit 1 -fi + fi -modprobe $module + modprobe $module -if [ ! -d /sys/module/$module/sections ] -then + if [ ! -d /sys/module/$module/sections ] + then echo Module $module is not loaded exit 1 -fi + fi -cat /sys/module/$module/sections/.text > /sys/kernel/debug/$FAILTYPE/require-start -cat /sys/module/$module/sections/.data > /sys/kernel/debug/$FAILTYPE/require-end + cat /sys/module/$module/sections/.text > /sys/kernel/debug/$FAILTYPE/require-start + cat /sys/module/$module/sections/.data > /sys/kernel/debug/$FAILTYPE/require-end -echo N > /sys/kernel/debug/$FAILTYPE/task-filter -echo 10 > /sys/kernel/debug/$FAILTYPE/probability -echo 100 > /sys/kernel/debug/$FAILTYPE/interval -echo -1 > /sys/kernel/debug/$FAILTYPE/times -echo 0 > /sys/kernel/debug/$FAILTYPE/space -echo 2 > /sys/kernel/debug/$FAILTYPE/verbose -echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-wait -echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-highmem -echo 10 > /sys/kernel/debug/$FAILTYPE/stacktrace-depth + echo N > /sys/kernel/debug/$FAILTYPE/task-filter + echo 10 > /sys/kernel/debug/$FAILTYPE/probability + echo 100 > /sys/kernel/debug/$FAILTYPE/interval + echo -1 > /sys/kernel/debug/$FAILTYPE/times + echo 0 > /sys/kernel/debug/$FAILTYPE/space + echo 2 > /sys/kernel/debug/$FAILTYPE/verbose + echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-wait + echo 1 > /sys/kernel/debug/$FAILTYPE/ignore-gfp-highmem + echo 10 > /sys/kernel/debug/$FAILTYPE/stacktrace-depth -trap "echo 0 > /sys/kernel/debug/$FAILTYPE/probability" SIGINT SIGTERM EXIT + trap "echo 0 > /sys/kernel/debug/$FAILTYPE/probability" SIGINT SIGTERM EXIT -echo "Injecting errors into the module $module... (interrupt to stop)" -sleep 1000000 + echo "Injecting errors into the module $module... (interrupt to stop)" + sleep 1000000 ------------------------------------------------------------------------------ -o Inject open_ctree error while btrfs mount +- Inject open_ctree error while btrfs mount:: -#!/bin/bash + #!/bin/bash -rm -f testfile.img -dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1 -DEVICE=$(losetup --show -f testfile.img) -mkfs.btrfs -f $DEVICE -mkdir -p tmpmnt + rm -f testfile.img + dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1 + DEVICE=$(losetup --show -f testfile.img) + mkfs.btrfs -f $DEVICE + mkdir -p tmpmnt -FAILTYPE=fail_function -FAILFUNC=open_ctree -echo $FAILFUNC > /sys/kernel/debug/$FAILTYPE/inject -echo -12 > /sys/kernel/debug/$FAILTYPE/$FAILFUNC/retval -echo N > /sys/kernel/debug/$FAILTYPE/task-filter -echo 100 > /sys/kernel/debug/$FAILTYPE/probability -echo 0 > /sys/kernel/debug/$FAILTYPE/interval -echo -1 > /sys/kernel/debug/$FAILTYPE/times -echo 0 > /sys/kernel/debug/$FAILTYPE/space -echo 1 > /sys/kernel/debug/$FAILTYPE/verbose + FAILTYPE=fail_function + FAILFUNC=open_ctree + echo $FAILFUNC > /sys/kernel/debug/$FAILTYPE/inject + echo -12 > /sys/kernel/debug/$FAILTYPE/$FAILFUNC/retval + echo N > /sys/kernel/debug/$FAILTYPE/task-filter + echo 100 > /sys/kernel/debug/$FAILTYPE/probability + echo 0 > /sys/kernel/debug/$FAILTYPE/interval + echo -1 > /sys/kernel/debug/$FAILTYPE/times + echo 0 > /sys/kernel/debug/$FAILTYPE/space + echo 1 > /sys/kernel/debug/$FAILTYPE/verbose -mount -t btrfs $DEVICE tmpmnt -if [ $? -ne 0 ] -then + mount -t btrfs $DEVICE tmpmnt + if [ $? -ne 0 ] + then echo "SUCCESS!" -else + else echo "FAILED!" umount tmpmnt -fi + fi -echo > /sys/kernel/debug/$FAILTYPE/inject + echo > /sys/kernel/debug/$FAILTYPE/inject -rmdir tmpmnt -losetup -d $DEVICE -rm testfile.img + rmdir tmpmnt + losetup -d $DEVICE + rm testfile.img Tool to run command with failslab or fail_page_alloc
@@ -354,43 +365,43 @@ see the following examples. Examples: Run a command "make -C tools/testing/selftests/ run_tests" with injecting slab -allocation failure. +allocation failure:: # ./tools/testing/fault-injection/failcmd.sh \ -- make -C tools/testing/selftests/ run_tests Same as above except to specify 100 times failures at most instead of one time -at most by default. +at most by default:: # ./tools/testing/fault-injection/failcmd.sh --times=100 \ -- make -C tools/testing/selftests/ run_tests Same as above except to inject page allocation failure instead of slab -allocation failure. +allocation failure:: # env FAILCMD_TYPE=fail_page_alloc \ ./tools/testing/fault-injection/failcmd.sh --times=100 \ - -- make -C tools/testing/selftests/ run_tests + -- make -C tools/testing/selftests/ run_tests Systematic faults using fail-nth --------------------------------- The following code systematically faults 0-th, 1-st, 2-nd and so on -capabilities in the socketpair() system call. +capabilities in the socketpair() system call:: -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/socket.h> -#include <sys/syscall.h> -#include <fcntl.h> -#include <unistd.h> -#include <string.h> -#include <stdlib.h> -#include <stdio.h> -#include <errno.h> + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/socket.h> + #include <sys/syscall.h> + #include <fcntl.h> + #include <unistd.h> + #include <string.h> + #include <stdlib.h> + #include <stdio.h> + #include <errno.h> -int main() -{ + int main() + { int i, err, res, fail_nth, fds[2]; char buf[128];
@@ -413,23 +424,23 @@ int main() break; } return 0; -} + } -An example output: +An example output:: -1-th fault Y: res=-1/23 -2-th fault Y: res=-1/23 -3-th fault Y: res=-1/12 -4-th fault Y: res=-1/12 -5-th fault Y: res=-1/23 -6-th fault Y: res=-1/23 -7-th fault Y: res=-1/23 -8-th fault Y: res=-1/12 -9-th fault Y: res=-1/12 -10-th fault Y: res=-1/12 -11-th fault Y: res=-1/12 -12-th fault Y: res=-1/12 -13-th fault Y: res=-1/12 -14-th fault Y: res=-1/12 -15-th fault Y: res=-1/12 -16-th fault N: res=0/12 + 1-th fault Y: res=-1/23 + 2-th fault Y: res=-1/23 + 3-th fault Y: res=-1/12 + 4-th fault Y: res=-1/12 + 5-th fault Y: res=-1/23 + 6-th fault Y: res=-1/23 + 7-th fault Y: res=-1/23 + 8-th fault Y: res=-1/12 + 9-th fault Y: res=-1/12 + 10-th fault Y: res=-1/12 + 11-th fault Y: res=-1/12 + 12-th fault Y: res=-1/12 + 13-th fault Y: res=-1/12 + 14-th fault Y: res=-1/12 + 15-th fault Y: res=-1/12 + 16-th fault N: res=0/12
Documentation/fault-injection/index.rst new file +20 -0
@@ -0,0 +1,20 @@ +:orphan: + +=============== +fault-injection +=============== + +.. toctree:: + :maxdepth: 1 + + fault-injection + notifier-error-inject + nvme-fault-injection + provoke-crashes + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/fault-injection/notifier-error-inject.rst renamed from Documentation/fault-injection/notifier-error-inject.txt +11 -7
@@ -14,7 +14,8 @@ modules that can be used to test the following notifiers. PM notifier error injection module ---------------------------------- This feature is controlled through debugfs interface -/sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error + + /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error Possible PM notifier events to be failed are:
@@ -22,7 +23,7 @@ Possible PM notifier events to be failed are: * PM_SUSPEND_PREPARE * PM_RESTORE_PREPARE -Example: Inject PM suspend error (-12 = -ENOMEM) +Example: Inject PM suspend error (-12 = -ENOMEM):: # cd /sys/kernel/debug/notifier-error-inject/pm/ # echo -12 > actions/PM_SUSPEND_PREPARE/error
@@ -32,14 +33,15 @@ Example: Inject PM suspend error (-12 = -ENOMEM) Memory hotplug notifier error injection module ---------------------------------------------- This feature is controlled through debugfs interface -/sys/kernel/debug/notifier-error-inject/memory/actions/<notifier event>/error + + /sys/kernel/debug/notifier-error-inject/memory/actions/<notifier event>/error Possible memory notifier events to be failed are: * MEM_GOING_ONLINE * MEM_GOING_OFFLINE -Example: Inject memory hotplug offline error (-12 == -ENOMEM) +Example: Inject memory hotplug offline error (-12 == -ENOMEM):: # cd /sys/kernel/debug/notifier-error-inject/memory # echo -12 > actions/MEM_GOING_OFFLINE/error
@@ -49,7 +51,8 @@ Example: Inject memory hotplug offline error (-12 == -ENOMEM) powerpc pSeries reconfig notifier error injection module -------------------------------------------------------- This feature is controlled through debugfs interface -/sys/kernel/debug/notifier-error-inject/pSeries-reconfig/actions/<notifier event>/error + + /sys/kernel/debug/notifier-error-inject/pSeries-reconfig/actions/<notifier event>/error Possible pSeries reconfig notifier events to be failed are:
@@ -61,7 +64,8 @@ Possible pSeries reconfig notifier events to be failed are: Netdevice notifier error injection module ---------------------------------------------- This feature is controlled through debugfs interface -/sys/kernel/debug/notifier-error-inject/netdev/actions/<notifier event>/error + + /sys/kernel/debug/notifier-error-inject/netdev/actions/<notifier event>/error Netdevice notifier events which can be failed are:
@@ -75,7 +79,7 @@ Netdevice notifier events which can be failed are: * NETDEV_PRECHANGEUPPER * NETDEV_CHANGEUPPER -Example: Inject netdevice mtu change error (-22 == -EINVAL) +Example: Inject netdevice mtu change error (-22 == -EINVAL):: # cd /sys/kernel/debug/notifier-error-inject/netdev # echo -22 > actions/NETDEV_CHANGEMTU/error
Documentation/fault-injection/nvme-fault-injection.rst new file +120 -0
120 lines not on this page · raw message
Documentation/fault-injection/nvme-fault-injection.txt deleted +0 -116
116 lines not on this page · raw message
Documentation/fault-injection/provoke-crashes.rst new file +48 -0
48 lines not on this page · raw message
Documentation/fault-injection/provoke-crashes.txt deleted +0 -38
@@ -1,38 +0,0 @@ -The lkdtm module provides an interface to crash or injure the kernel at -predefined crashpoints to evaluate the reliability of crash dumps obtained -using different dumping solutions. The module uses KPROBEs to instrument -crashing points, but can also crash the kernel directly without KRPOBE -support. - - -You can provide the way either through module arguments when inserting -the module, or through a debugfs interface. - -Usage: insmod lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<> - [cpoint_count={>0}] - - recur_count : Recursion level for the stack overflow test. Default is 10. - - cpoint_name : Crash point where the kernel is to be crashed. It can be - one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY, - FS_DEVRW, MEM_SWAPOUT, TIMERADD, SCSI_DISPATCH_CMD, - IDE_CORE_CP, DIRECT - - cpoint_type : Indicates the action to be taken on hitting the crash point. - It can be one of PANIC, BUG, EXCEPTION, LOOP, OVERFLOW, - CORRUPT_STACK, UNALIGNED_LOAD_STORE_WRITE, OVERWRITE_ALLOCATION, - WRITE_AFTER_FREE, - - cpoint_count : Indicates the number of times the crash point is to be hit - to trigger an action. The default is 10. - -You can also induce failures by mounting debugfs and writing the type to -<mountpoint>/provoke-crash/<crashpoint>. E.g., - - mount -t debugfs debugfs /mnt - echo EXCEPTION > /mnt/provoke-crash/INT_HARDWARE_ENTRY - - -A special file is `DIRECT' which will induce the crash directly without -KPROBE instrumentation. This mode is the only one available when the module -is built on a kernel without KPROBEs support.
Documentation/process/4.Coding.rst +1 -1
@@ -298,7 +298,7 @@ enabled, a configurable percentage of memory allocations will be made to fail; these failures can be restricted to a specific range of code. Running with fault injection enabled allows the programmer to see how the code responds when things go badly. See -Documentation/fault-injection/fault-injection.txt for more information on +Documentation/fault-injection/fault-injection.rst for more information on how to use this facility. Other kinds of errors can be found with the "sparse" static analysis tool.
Documentation/translations/it_IT/process/4.Coding.rst +1 -1
@@ -314,7 +314,7 @@ di allocazione di memoria sarà destinata al fallimento; questi fallimenti possono essere ridotti ad uno specifico pezzo di codice. Procedere con l'inserimento dei fallimenti attivo permette al programmatore di verificare come il codice risponde quando le cose vanno male. Consultate: -Documentation/fault-injection/fault-injection.txt per avere maggiori +Documentation/fault-injection/fault-injection.rst per avere maggiori informazioni su come utilizzare questo strumento. Altre tipologie di errori possono essere riscontrati con lo strumento di
Documentation/translations/zh_CN/process/4.Coding.rst +1 -1
@@ -205,7 +205,7 @@ Linus对这个问题给出了最佳答案: 启用故障注入后,内存分配的可配置百分比将失败;这些失败可以限制在特定的代码 范围内。在启用了故障注入的情况下运行,程序员可以看到当情况恶化时代码如何响 应。有关如何使用此工具的详细信息,请参阅 -Documentation/fault-injection/fault-injection.txt。 +Documentation/fault-injection/fault-injection.rst。 使用“sparse”静态分析工具可以发现其他类型的错误。对于sparse,可以警告程序员 用户空间和内核空间地址之间的混淆、big endian和small endian数量的混合、在需
drivers/misc/lkdtm/core.c +1 -1
@@ -28,7 +28,7 @@* * Debugfs support added by Simon Kagstrom <[email protected]> * -* See Documentation/fault-injection/provoke-crashes.txt for instructions +* See Documentation/fault-injection/provoke-crashes.rst for instructions */ #include "lkdtm.h" #include <linux/fs.h>
include/linux/fault-inject.h +1 -1
@@ -11,7 +11,7 @@/* * For explanation of the elements of this struct, see -* Documentation/fault-injection/fault-injection.txt +* Documentation/fault-injection/fault-injection.rst */ struct fault_attr {unsigned long probability;
lib/Kconfig.debug +1 -1
@@ -1681,7 +1681,7 @@ config LKDTM called lkdtm. Documentation on how to use the module can be found in - Documentation/fault-injection/provoke-crashes.txt + Documentation/fault-injection/provoke-crashes.rst config TEST_LIST_SORT tristate "Linked list sorting test"
tools/testing/fault-injection/failcmd.sh +1 -1
@@ -42,7 +42,7 @@ OPTIONS --interval=value, --space=value, --verbose=value, --task-filter=value, --stacktrace-depth=value, --require-start=value, --require-end=value, --reject-start=value, --reject-end=value, --ignore-gfp-wait=value - See Documentation/fault-injection/fault-injection.txt for more + See Documentation/fault-injection/fault-injection.rst for more information failslab options:
Signature · 1 line
2.20.1
PATCH v2 35/79 docs: timers: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabThe conversion here is really trivial: just a bunch of title markups and very few puntual changes is enough to make it to be parsed by Sphinx and generate a nice html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../timers/{highres.txt => highres.rst} | 13 +++---
Documentation/timers/{hpet.txt => hpet.rst} | 4 +-
.../timers/{hrtimers.txt => hrtimers.rst} | 6 +--
Documentation/timers/index.rst | 22 ++++++++++
Documentation/timers/{NO_HZ.txt => no_hz.rst} | 40 +++++++++++--------
.../{timekeeping.txt => timekeeping.rst} | 3 +-
.../{timers-howto.txt => timers-howto.rst} | 15 +++++--
MAINTAINERS | 2 +-
drivers/media/usb/dvb-usb-v2/anysee.c | 2 +-
drivers/regulator/core.c | 2 +-
include/linux/iopoll.h | 4 +-
include/linux/regmap.h | 4 +-
scripts/checkpatch.pl | 8 ++--
13 files changed, 83 insertions(+), 42 deletions(-)
rename Documentation/timers/{highres.txt => highres.rst} (98%)
rename Documentation/timers/{hpet.txt => hpet.rst} (91%)
rename Documentation/timers/{hrtimers.txt => hrtimers.rst} (98%)
create mode 100644 Documentation/timers/index.rst
rename Documentation/timers/{NO_HZ.txt => no_hz.rst} (93%)
rename Documentation/timers/{timekeeping.txt => timekeeping.rst} (98%)
rename Documentation/timers/{timers-howto.txt => timers-howto.rst} (93%)Documentation/timers/highres.rst renamed from Documentation/timers/highres.txt +7 -6
@@ -1,5 +1,6 @@ +===================================================== High resolution timers and dynamic ticks design notes ------------------------------------------------------ +===================================================== Further information can be found in the paper of the OLS 2006 talk "hrtimers and beyond". The paper is part of the OLS 2006 Proceedings Volume 1, which can
@@ -30,11 +31,12 @@ hrtimer base infrastructure --------------------------- The hrtimer base infrastructure was merged into the 2.6.16 kernel. Details of -the base implementation are covered in Documentation/timers/hrtimers.txt. See +the base implementation are covered in Documentation/timers/hrtimers.rst. See also figure #2 (OLS slides p. 15) The main differences to the timer wheel, which holds the armed timer_list type timers are: + - time ordered enqueueing into a rb-tree - independent of ticks (the processing is based on nanoseconds)
@@ -55,7 +57,8 @@ merged into the 2.6.18 kernel. Further information about the Generic Time Of Day framework is available in the OLS 2005 Proceedings Volume 1: -http://www.linuxsymposium.org/2005/linuxsymposium_procv1.pdf + + http://www.linuxsymposium.org/2005/linuxsymposium_procv1.pdf The paper "We Are Not Getting Any Younger: A New Approach to Time and Timers" was written by J. Stultz, D.V. Hart, & N. Aravamudan.
@@ -100,6 +103,7 @@ accounting, profiling, and high resolution timers. The management layer assigns one or more of the following functions to a clock event device: + - system global periodic tick (jiffies update) - cpu local update_process_times - cpu local profiling
@@ -244,6 +248,3 @@ extended to x86_64 and ARM already. Initial (work in progress) support is also available for MIPS and PowerPC. Thomas, Ingo - - -
Documentation/timers/hpet.rst renamed from Documentation/timers/hpet.txt +3 -1
@@ -1,4 +1,6 @@ - High Precision Event Timer Driver for Linux +=========================================== +High Precision Event Timer Driver for Linux +=========================================== The High Precision Event Timer (HPET) hardware follows a specification by Intel and Microsoft, revision 1.
Documentation/timers/hrtimers.rst renamed from Documentation/timers/hrtimers.txt +3 -3
@@ -1,6 +1,6 @@ - +====================================================== hrtimers - subsystem for high-resolution kernel timers ----------------------------------------------------- +====================================================== This patch introduces a new subsystem for high-resolution kernel timers.
@@ -146,7 +146,7 @@ the clock_getres() interface. This will return whatever real resolution a given clock has - be it low-res, high-res, or artificially-low-res. hrtimers - testing and verification ----------------------------------- +----------------------------------- We used the high-resolution clock subsystem ontop of hrtimers to verify the hrtimer implementation details in praxis, and we also ran the posix
Documentation/timers/index.rst new file +22 -0
@@ -0,0 +1,22 @@ +:orphan: + +====== +timers +====== + +.. toctree:: + :maxdepth: 1 + + highres + hpet + hrtimers + no_hz + timekeeping + timers-howto + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/timers/no_hz.rst renamed from Documentation/timers/NO_HZ.txt +24 -16
@@ -1,4 +1,6 @@ - NO_HZ: Reducing Scheduling-Clock Ticks +====================================== +NO_HZ: Reducing Scheduling-Clock Ticks +====================================== This document describes Kconfig options and boot parameters that can
@@ -28,7 +30,8 @@ by a third section on RCU-specific considerations, a fourth section discussing testing, and a fifth and final section listing known issues. -NEVER OMIT SCHEDULING-CLOCK TICKS +Never Omit Scheduling-Clock Ticks +================================= Very old versions of Linux from the 1990s and the very early 2000s are incapable of omitting scheduling-clock ticks. It turns out that
@@ -59,7 +62,8 @@ degrade your applications performance. If this describes your workload, you should read the following two sections. -OMIT SCHEDULING-CLOCK TICKS FOR IDLE CPUs +Omit Scheduling-Clock Ticks For Idle CPUs +========================================= If a CPU is idle, there is little point in sending it a scheduling-clock interrupt. After all, the primary purpose of a scheduling-clock interrupt
@@ -97,7 +101,8 @@ By default, CONFIG_NO_HZ_IDLE=y kernels boot with "nohz=on", enabling dyntick-idle mode. -OMIT SCHEDULING-CLOCK TICKS FOR CPUs WITH ONLY ONE RUNNABLE TASK +Omit Scheduling-Clock Ticks For CPUs With Only One Runnable Task +================================================================ If a CPU has only one runnable task, there is little point in sending it a scheduling-clock interrupt because there is no other task to switch to.
@@ -174,7 +179,8 @@ However, the drawbacks listed above mean that adaptive ticks should not (yet) be enabled by default. -RCU IMPLICATIONS +RCU Implications +================ There are situations in which idle CPUs cannot be permitted to enter either dyntick-idle mode or adaptive-tick mode, the most
@@ -199,7 +205,8 @@ scheduler will decide where to run them, which might or might not be where you want them to run. -TESTING +Testing +======= So you enable all the OS-jitter features described in this document, but do not see any change in your workload's behavior. Is this because
@@ -222,9 +229,10 @@ We do not currently have a good way to remove OS jitter from single-CPU systems. -KNOWN ISSUES +Known Issues +============ -o Dyntick-idle slows transitions to and from idle slightly. +* Dyntick-idle slows transitions to and from idle slightly. In practice, this has not been a problem except for the most aggressive real-time workloads, which have the option of disabling dyntick-idle mode, an option that most of them take. However,
@@ -248,13 +256,13 @@ o Dyntick-idle slows transitions to and from idle slightly. this parameter effectively disables Turbo Mode on Intel CPUs, which can significantly reduce maximum performance. -o Adaptive-ticks slows user/kernel transitions slightly. +* Adaptive-ticks slows user/kernel transitions slightly. This is not expected to be a problem for computationally intensive workloads, which have few such transitions. Careful benchmarking will be required to determine whether or not other workloads are significantly affected by this effect. -o Adaptive-ticks does not do anything unless there is only one +* Adaptive-ticks does not do anything unless there is only one runnable task for a given CPU, even though there are a number of other situations where the scheduling-clock tick is not needed. To give but one example, consider a CPU that has one
@@ -275,7 +283,7 @@ o Adaptive-ticks does not do anything unless there is only one Better handling of these sorts of situations is future work. -o A reboot is required to reconfigure both adaptive idle and RCU +* A reboot is required to reconfigure both adaptive idle and RCU callback offloading. Runtime reconfiguration could be provided if needed, however, due to the complexity of reconfiguring RCU at runtime, there would need to be an earthshakingly good reason.
@@ -283,12 +291,12 @@ o A reboot is required to reconfigure both adaptive idle and RCU simply offloading RCU callbacks from all CPUs and pinning them where you want them whenever you want them pinned. -o Additional configuration is required to deal with other sources +* Additional configuration is required to deal with other sources of OS jitter, including interrupts and system-utility tasks and processes. This configuration normally involves binding interrupts and tasks to particular CPUs. -o Some sources of OS jitter can currently be eliminated only by +* Some sources of OS jitter can currently be eliminated only by constraining the workload. For example, the only way to eliminate OS jitter due to global TLB shootdowns is to avoid the unmapping operations (such as kernel module unload operations) that
@@ -299,17 +307,17 @@ o Some sources of OS jitter can currently be eliminated only by helpful, especially when combined with the mlock() and mlockall() system calls. -o Unless all CPUs are idle, at least one CPU must keep the +* Unless all CPUs are idle, at least one CPU must keep the scheduling-clock interrupt going in order to support accurate timekeeping. -o If there might potentially be some adaptive-ticks CPUs, there +* If there might potentially be some adaptive-ticks CPUs, there will be at least one CPU keeping the scheduling-clock interrupt going, even if all CPUs are otherwise idle. Better handling of this situation is ongoing work. -o Some process-handling operations still require the occasional +* Some process-handling operations still require the occasional scheduling-clock tick. These operations include calculating CPU load, maintaining sched average, computing CFS entity vruntime, computing avenrun, and carrying out load balancing. They are
Documentation/timers/timekeeping.rst renamed from Documentation/timers/timekeeping.txt +2 -1
@@ -1,5 +1,6 @@ +=========================================================== Clock sources, Clock events, sched_clock() and delay timers ------------------------------------------------------------ +=========================================================== This document tries to briefly explain some basic kernel timekeeping abstractions. It partly pertains to the drivers usually found in
Documentation/timers/timers-howto.rst renamed from Documentation/timers/timers-howto.txt +11 -4
@@ -1,5 +1,6 @@ +=================================================================== delays - Information on the various kernel delay / sleep mechanisms -------------------------------------------------------------------- +=================================================================== This document seeks to answer the common question: "What is the RightWay (TM) to insert a delay?"
@@ -17,7 +18,7 @@ code in an atomic context?" This should be followed closely by "Does it really need to delay in atomic context?" If so... ATOMIC CONTEXT: - You must use the *delay family of functions. These + You must use the `*delay` family of functions. These functions use the jiffie estimation of clock speed and will busy wait for enough loop cycles to achieve the desired delay:
@@ -35,21 +36,26 @@ ATOMIC CONTEXT: be refactored to allow for the use of msleep. NON-ATOMIC CONTEXT: - You should use the *sleep[_range] family of functions. + You should use the `*sleep[_range]` family of functions. There are a few more options here, while any of them may work correctly, using the "right" sleep function will help the scheduler, power management, and just make your driver better :) -- Backed by busy-wait loop: + udelay(unsigned long usecs) + -- Backed by hrtimers: + usleep_range(unsigned long min, unsigned long max) + -- Backed by jiffies / legacy_timers + msleep(unsigned long msecs) msleep_interruptible(unsigned long msecs) - Unlike the *delay family, the underlying mechanism + Unlike the `*delay` family, the underlying mechanism driving each of these calls varies, thus there are quirks you should be aware of.
@@ -70,6 +76,7 @@ NON-ATOMIC CONTEXT: - Why not msleep for (1ms - 20ms)? Explained originally here: http://lkml.org/lkml/2007/8/3/250 + msleep(1~20) may not do what the caller intends, and will often sleep longer (~20 ms actual sleep for any value given in the 1~20ms range). In many cases this
MAINTAINERS +1 -1
@@ -7127,7 +7127,7 @@ F: drivers/net/ethernet/hp/hp100.* HPET: High Precision Event Timers driver M: Clemens Ladisch <[email protected]> S: Maintained -F: Documentation/timers/hpet.txt +F: Documentation/timers/hpet.rst F: drivers/char/hpet.c F: include/linux/hpet.h F: include/uapi/linux/hpet.h
drivers/media/usb/dvb-usb-v2/anysee.c +1 -1
@@ -65,7 +65,7 @@ static int anysee_ctrl_msg(struct dvb_usb_device *d,/* TODO FIXME: dvb_usb_generic_rw() fails rarely with error code -32 * (EPIPE, Broken pipe). Function supports currently msleep() as a * parameter but I would not like to use it, since according to -* Documentation/timers/timers-howto.txt it should not be used such +* Documentation/timers/timers-howto.rst it should not be used such * short, under < 20ms, sleeps. Repeating failed message would be * better choice as not to add unwanted delays... * Fixing that correctly is one of those or both;
drivers/regulator/core.c +1 -1
@@ -2308,7 +2308,7 @@ static int regulator_ena_gpio_ctrl(struct regulator_dev *rdev, bool enable)* * Delay for the requested amount of time as per the guidelines in: * -* Documentation/timers/timers-howto.txt +* Documentation/timers/timers-howto.rst * * The assumption here is that regulators will never be enabled in * atomic context and therefore sleeping functions can be used.
include/linux/iopoll.h +2 -2
@@ -30,7 +30,7 @@* @cond: Break condition (usually involving @val) * @sleep_us: Maximum time to sleep between reads in us (0 * tight-loops). Should be less than ~20ms since usleep_range -* is used (see Documentation/timers/timers-howto.txt). +* is used (see Documentation/timers/timers-howto.rst). * @timeout_us: Timeout in us, 0 means never timeout * * Returns 0 on success and -ETIMEDOUT upon a timeout. In either
@@ -69,7 +69,7 @@* @cond: Break condition (usually involving @val) * @delay_us: Time to udelay between reads in us (0 tight-loops). Should * be less than ~10us since udelay is used (see -* Documentation/timers/timers-howto.txt). +* Documentation/timers/timers-howto.rst). * @timeout_us: Timeout in us, 0 means never timeout * * Returns 0 on success and -ETIMEDOUT upon a timeout. In either
include/linux/regmap.h +2 -2
@@ -112,7 +112,7 @@ struct reg_sequence {* @cond: Break condition (usually involving @val) * @sleep_us: Maximum time to sleep between reads in us (0 * tight-loops). Should be less than ~20ms since usleep_range -* is used (see Documentation/timers/timers-howto.txt). +* is used (see Documentation/timers/timers-howto.rst). * @timeout_us: Timeout in us, 0 means never timeout * * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
@@ -154,7 +154,7 @@ struct reg_sequence {* @cond: Break condition (usually involving @val) * @sleep_us: Maximum time to sleep between reads in us (0 * tight-loops). Should be less than ~20ms since usleep_range -* is used (see Documentation/timers/timers-howto.txt). +* is used (see Documentation/timers/timers-howto.rst). * @timeout_us: Timeout in us, 0 means never timeout * * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_field_read
scripts/checkpatch.pl +4 -4
@@ -5714,7 +5714,7 @@ sub process { # ignore udelay's < 10, however if (! ($delay < 10) ) { CHK("USLEEP_RANGE", - "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt\n" . $herecurr); + "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst\n" . $herecurr); } if ($delay > 2000) { WARN("LONG_UDELAY",
@@ -5726,7 +5726,7 @@ sub process { if ($line =~ /\bmsleep\s*\((\d+)\);/) { if ($1 < 20) { WARN("MSLEEP", - "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt\n" . $herecurr); + "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst\n" . $herecurr); } }
@@ -6117,11 +6117,11 @@ sub process { my $max = $7; if ($min eq $max) { WARN("USLEEP_RANGE", - "usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); + "usleep_range should not use min == max args; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ && $min > $max) { WARN("USLEEP_RANGE", - "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); + "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); } }
Signature · 1 line
2.20.1
PATCH v2 24/79 docs: pcmcia: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabConvert the pcmcia docs to ReST format. Most of the changes here are trivial.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
.../{devicetable.txt => devicetable.rst} | 4 ++
...{driver-changes.txt => driver-changes.rst} | 35 +++++++++++------
.../pcmcia/{driver.txt => driver.rst} | 18 ++++-----
Documentation/pcmcia/index.rst | 20 ++++++++++
.../pcmcia/{locking.txt => locking.rst} | 39 +++++++++++++------
drivers/pcmcia/ds.c | 2 +-
include/pcmcia/ds.h | 2 +-
include/pcmcia/ss.h | 2 +-
8 files changed, 86 insertions(+), 36 deletions(-)
rename Documentation/pcmcia/{devicetable.txt => devicetable.rst} (97%)
rename Documentation/pcmcia/{driver-changes.txt => driver-changes.rst} (90%)
rename Documentation/pcmcia/{driver.txt => driver.rst} (66%)
create mode 100644 Documentation/pcmcia/index.rst
rename Documentation/pcmcia/{locking.txt => locking.rst} (81%)Documentation/pcmcia/devicetable.rst renamed from Documentation/pcmcia/devicetable.txt +4 -0
@@ -1,3 +1,7 @@ +============ +Device table +============ + Matching of PCMCIA devices to drivers is done using one or more of the following criteria:
Documentation/pcmcia/driver-changes.rst renamed from Documentation/pcmcia/driver-changes.txt +23 -12
@@ -1,15 +1,21 @@ +============== +Driver changes +============== + This file details changes in 2.6 which affect PCMCIA card driver authors: + * pcmcia_loop_config() and autoconfiguration (as of 2.6.36) - If struct pcmcia_device *p_dev->config_flags is set accordingly, + If `struct pcmcia_device *p_dev->config_flags` is set accordingly, pcmcia_loop_config() now sets up certain configuration values automatically, though the driver may still override the settings in the callback function. The following autoconfiguration options are provided at the moment: - CONF_AUTO_CHECK_VCC : check for matching Vcc - CONF_AUTO_SET_VPP : set Vpp - CONF_AUTO_AUDIO : auto-enable audio line, if required - CONF_AUTO_SET_IO : set ioport resources (->resource[0,1]) - CONF_AUTO_SET_IOMEM : set first iomem resource (->resource[2]) + + - CONF_AUTO_CHECK_VCC : check for matching Vcc + - CONF_AUTO_SET_VPP : set Vpp + - CONF_AUTO_AUDIO : auto-enable audio line, if required + - CONF_AUTO_SET_IO : set ioport resources (->resource[0,1]) + - CONF_AUTO_SET_IOMEM : set first iomem resource (->resource[2]) * pcmcia_request_configuration -> pcmcia_enable_device (as of 2.6.36) pcmcia_request_configuration() got renamed to pcmcia_enable_device(),
@@ -19,14 +25,14 @@ This file details changes in 2.6 which affect PCMCIA card driver authors: * pcmcia_request_window changes (as of 2.6.36) Instead of win_req_t, drivers are now requested to fill out - struct pcmcia_device *p_dev->resource[2,3,4,5] for up to four ioport + `struct pcmcia_device *p_dev->resource[2,3,4,5]` for up to four ioport ranges. After a call to pcmcia_request_window(), the regions found there are reserved and may be used immediately -- until pcmcia_release_window() is called. * pcmcia_request_io changes (as of 2.6.36) Instead of io_req_t, drivers are now requested to fill out - struct pcmcia_device *p_dev->resource[0,1] for up to two ioport + `struct pcmcia_device *p_dev->resource[0,1]` for up to two ioport ranges. After a call to pcmcia_request_io(), the ports found there are reserved, after calling pcmcia_request_configuration(), they may be used.
@@ -42,7 +48,8 @@ This file details changes in 2.6 which affect PCMCIA card driver authors: * New IRQ request rules (as of 2.6.35) Instead of the old pcmcia_request_irq() interface, drivers may now choose between: - - calling request_irq/free_irq directly. Use the IRQ from *p_dev->irq. + + - calling request_irq/free_irq directly. Use the IRQ from `*p_dev->irq`. - use pcmcia_request_irq(p_dev, handler_t); the PCMCIA core will clean up automatically on calls to pcmcia_disable_device() or device ejection.
@@ -72,13 +79,16 @@ This file details changes in 2.6 which affect PCMCIA card driver authors: exports for them were removed. * Unify detach and REMOVAL event code, as well as attach and INSERTION - code (as of 2.6.16) + code (as of 2.6.16):: + void (*remove) (struct pcmcia_device *dev); int (*probe) (struct pcmcia_device *dev); -* Move suspend, resume and reset out of event handler (as of 2.6.16) +* Move suspend, resume and reset out of event handler (as of 2.6.16):: + int (*suspend) (struct pcmcia_device *dev); int (*resume) (struct pcmcia_device *dev); + should be initialized in struct pcmcia_driver, and handle (SUSPEND == RESET_PHYSICAL) and (RESUME == CARD_RESET) events
@@ -117,7 +127,8 @@ This file details changes in 2.6 which affect PCMCIA card driver authors: * core functions no longer available (as of 2.6.11) The following functions have been removed from the kernel source because they are unused by all in-kernel drivers, and no external - driver was reported to rely on them: + driver was reported to rely on them:: + pcmcia_get_first_region() pcmcia_get_next_region() pcmcia_modify_window()
Documentation/pcmcia/driver.rst renamed from Documentation/pcmcia/driver.txt +9 -9
@@ -1,16 +1,16 @@ +============= PCMCIA Driver -------------- - +============= sysfs ----- New PCMCIA IDs may be added to a device driver pcmcia_device_id table at -runtime as shown below: +runtime as shown below:: -echo "match_flags manf_id card_id func_id function device_no \ -prod_id_hash[0] prod_id_hash[1] prod_id_hash[2] prod_id_hash[3]" > \ -/sys/bus/pcmcia/drivers/{driver}/new_id + echo "match_flags manf_id card_id func_id function device_no \ + prod_id_hash[0] prod_id_hash[1] prod_id_hash[2] prod_id_hash[3]" > \ + /sys/bus/pcmcia/drivers/{driver}/new_id All fields are passed in as hexadecimal values (no leading 0x). The meaning is described in the PCMCIA specification, the match_flags is
@@ -22,9 +22,9 @@ PCMCIA device listed in its (newly updated) pcmcia_device_id list. A common use-case is to add a new device according to the manufacturer ID and the card ID (form the manf_id and card_id file in the device tree). -For this, just use: +For this, just use:: -echo "0x3 manf_id card_id 0 0 0 0 0 0 0" > \ - /sys/bus/pcmcia/drivers/{driver}/new_id + echo "0x3 manf_id card_id 0 0 0 0 0 0 0" > \ + /sys/bus/pcmcia/drivers/{driver}/new_id after loading the driver.
Documentation/pcmcia/index.rst new file +20 -0
@@ -0,0 +1,20 @@ +:orphan: + +====== +pcmcia +====== + +.. toctree:: + :maxdepth: 1 + + driver + devicetable + locking + driver-changes + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/pcmcia/locking.rst renamed from Documentation/pcmcia/locking.txt +27 -12
@@ -1,3 +1,7 @@ +======= +Locking +======= + This file explains the locking and exclusion scheme used in the PCCARD and PCMCIA subsystems.
@@ -5,16 +9,21 @@ and PCMCIA subsystems. A) Overview, Locking Hierarchy: =============================== -pcmcia_socket_list_rwsem - protects only the list of sockets -- skt_mutex - serializes card insert / ejection - - ops_mutex - serializes socket operation +pcmcia_socket_list_rwsem + - protects only the list of sockets + +- skt_mutex + - serializes card insert / ejection + + - ops_mutex + - serializes socket operation B) Exclusion ============ The following functions and callbacks to struct pcmcia_socket must -be called with "skt_mutex" held: +be called with "skt_mutex" held:: socket_detect_change() send_event()
@@ -31,7 +40,7 @@ be called with "skt_mutex" held: struct pcmcia_callback *callback The following functions and callbacks to struct pcmcia_socket must -be called with "ops_mutex" held: +be called with "ops_mutex" held:: socket_reset() socket_setup()
@@ -39,7 +48,7 @@ be called with "ops_mutex" held: struct pccard_operations *ops struct pccard_resource_ops *resource_ops; -Note that send_event() and struct pcmcia_callback *callback must not be +Note that send_event() and `struct pcmcia_callback *callback` must not be called with "ops_mutex" held.
@@ -60,19 +69,23 @@ The resource_ops and their data are protected by ops_mutex. The "main" struct pcmcia_socket is protected as follows (read-only fields or single-use fields not mentioned): -- by pcmcia_socket_list_rwsem: +- by pcmcia_socket_list_rwsem:: + struct list_head socket_list; -- by thread_lock: +- by thread_lock:: + unsigned int thread_events; -- by skt_mutex: +- by skt_mutex:: + u_int suspended_state; void (*tune_bridge); struct pcmcia_callback *callback; int resume_status; -- by ops_mutex: +- by ops_mutex:: + socket_state_t socket; u_int state; u_short lock_count;
@@ -100,7 +113,8 @@ The "main" struct pcmcia_device is protected as follows (read-only fields or single-use fields not mentioned): -- by pcmcia_socket->ops_mutex: +- by pcmcia_socket->ops_mutex:: + struct list_head socket_device_list; struct config_t *function_config; u16 _irq:1;
@@ -111,7 +125,8 @@ or single-use fields not mentioned): u16 suspended:1; u16 _removed:1; -- by the PCMCIA driver: +- by the PCMCIA driver:: + io_req_t io; irq_req_t irq; config_req_t conf;
drivers/pcmcia/ds.c +1 -1
@@ -67,7 +67,7 @@ static void pcmcia_check_driver(struct pcmcia_driver *p_drv)"be 0x%x\n" , p_drv->name, did->prod_id[i], did->prod_id_hash[i], hash);printk (KERN_DEBUG "pcmcia: see " -"Documentation/pcmcia/devicetable.txt for " +"Documentation/pcmcia/devicetable.rst for " "details\n" ); } did++;
include/pcmcia/ds.h +1 -1
@@ -39,7 +39,7 @@ struct config_t;struct net_device ;/* dynamic device IDs for PCMCIA device drivers. See -* Documentation/pcmcia/driver.txt for details. +* Documentation/pcmcia/driver.rst for details. */ struct pcmcia_dynids {struct mutex lock;
include/pcmcia/ss.h +1 -1
@@ -190,7 +190,7 @@ struct pcmcia_socket {unsigned int sysfs_events;/* For the non-trivial interaction between these locks, -* see Documentation/pcmcia/locking.txt */ +* see Documentation/pcmcia/locking.rst */ struct mutex skt_mutex;struct mutex ops_mutex;
Signature · 1 line
2.20.1
PATCH v2 1/79 docs: core-api: fix broken references for div64.c and gcd.c
In reply to Mauro Carvalho ChehabThose files were moved to lib/math.
--- Documentation/core-api/kernel-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/kernel-api.rst +2 -2
@@ -147,10 +147,10 @@ Division Functions .. kernel-doc:: include/linux/math64.h :internal: -.. kernel-doc:: lib/div64.c +.. kernel-doc:: lib/math/div64.c :functions: div_s64_rem div64_u64_rem div64_u64 div64_s64 -.. kernel-doc:: lib/gcd.c +.. kernel-doc:: lib/math/gcd.c :export: UUID/GUID
Signature · 1 line
2.20.1
PATCH v2 3/79 scripts/documentation-file-ref-check: don't parse Next/ dir
In reply to Mauro Carvalho ChehabIf one tries to run this script under linux-next, it would hit lots of false-positives, due to the tree merges that are stored under the Next/ directory.
So, add a logic to ignore it.
--- scripts/documentation-file-ref-check | 3 +++ 1 file changed, 3 insertions(+)
scripts/documentation-file-ref-check +3 -0
@@ -38,6 +38,9 @@ while (<IN>) { my $f = $1; my $ln = $2; + # On linux-next, discard the Next/ directory + next if ($f =~ m,^Next/,); + # Makefiles and scripts contain nasty expressions to parse docs next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);
Signature · 1 line
2.20.1
PATCH v2 4/79 docs: aoe: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabThere are only two files within Documentation/aoe dir that are documentation. The remaining ones are examples and shell scripts.
Convert the two AoE files to ReST format, and add the others as literal, as they're part of the documentation.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/aoe/{aoe.txt => aoe.rst} | 63 +++++++++++++-----------
Documentation/aoe/examples.rst | 23 +++++++++
Documentation/aoe/index.rst | 19 +++++++
Documentation/aoe/{todo.txt => todo.rst} | 3 ++
Documentation/aoe/udev.txt | 2 +-
5 files changed, 81 insertions(+), 29 deletions(-)
rename Documentation/aoe/{aoe.txt => aoe.rst} (79%)
create mode 100644 Documentation/aoe/examples.rst
create mode 100644 Documentation/aoe/index.rst
rename Documentation/aoe/{todo.txt => todo.rst} (98%)Documentation/aoe/aoe.rst renamed from Documentation/aoe/aoe.txt +35 -28
@@ -1,3 +1,6 @@ +Introduction +============ + ATA over Ethernet is a network protocol that provides simple access to block storage on the LAN.
@@ -22,7 +25,8 @@ document the use of the driver and are not necessary if you install the aoetools. -CREATING DEVICE NODES +Creating Device Nodes +===================== Users of udev should find the block device nodes created automatically, but to create all the necessary device nodes, use the
@@ -38,7 +42,8 @@ CREATING DEVICE NODES confusing when an AoE device is not present the first time the a command is run but appears a second later. -USING DEVICE NODES +Using Device Nodes +================== "cat /dev/etherd/err" blocks, waiting for error diagnostic output, like any retransmitted packets.
@@ -55,7 +60,7 @@ USING DEVICE NODES by sysfs counterparts. Using the commands in aoetools insulates users from these implementation details. - The block devices are named like this: + The block devices are named like this:: e{shelf}.{slot} e{shelf}.{slot}p{part}
@@ -64,7 +69,8 @@ USING DEVICE NODES first shelf (shelf address zero). That's the whole disk. The first partition on that disk would be "e0.2p1". -USING SYSFS +Using sysfs +=========== Each aoe block device in /sys/block has the extra attributes of state, mac, and netif. The state attribute is "up" when the device
@@ -78,29 +84,29 @@ USING SYSFS There is a script in this directory that formats this information in a convenient way. Users with aoetools should use the aoe-stat - command. + command:: - root@makki root# sh Documentation/aoe/status.sh - e10.0 eth3 up - e10.1 eth3 up - e10.2 eth3 up - e10.3 eth3 up - e10.4 eth3 up - e10.5 eth3 up - e10.6 eth3 up - e10.7 eth3 up - e10.8 eth3 up - e10.9 eth3 up - e4.0 eth1 up - e4.1 eth1 up - e4.2 eth1 up - e4.3 eth1 up - e4.4 eth1 up - e4.5 eth1 up - e4.6 eth1 up - e4.7 eth1 up - e4.8 eth1 up - e4.9 eth1 up + root@makki root# sh Documentation/aoe/status.sh + e10.0 eth3 up + e10.1 eth3 up + e10.2 eth3 up + e10.3 eth3 up + e10.4 eth3 up + e10.5 eth3 up + e10.6 eth3 up + e10.7 eth3 up + e10.8 eth3 up + e10.9 eth3 up + e4.0 eth1 up + e4.1 eth1 up + e4.2 eth1 up + e4.3 eth1 up + e4.4 eth1 up + e4.5 eth1 up + e4.6 eth1 up + e4.7 eth1 up + e4.8 eth1 up + e4.9 eth1 up Use /sys/module/aoe/parameters/aoe_iflist (or better, the driver option discussed below) instead of /dev/etherd/interfaces to limit
@@ -113,12 +119,13 @@ USING SYSFS for this purpose. You can also directly use the /dev/etherd/discover special file described above. -DRIVER OPTIONS +Driver Options +============== There is a boot option for the built-in aoe driver and a corresponding module parameter, aoe_iflist. Without this option, all network interfaces may be used for ATA over Ethernet. Here is a - usage example for the module parameter. + usage example for the module parameter:: modprobe aoe_iflist="eth1 eth3"
Documentation/aoe/examples.rst new file +23 -0
@@ -0,0 +1,23 @@ +Example of udev rules +--------------------- + + .. include:: udev.txt + :literal: + +Example of udev install rules script +------------------------------------ + + .. literalinclude:: udev-install.sh + :language: shell + +Example script to get status +---------------------------- + + .. literalinclude:: status.sh + :language: shell + +Example of AoE autoload script +------------------------------ + + .. literalinclude:: autoload.sh + :language: shell
Documentation/aoe/index.rst new file +19 -0
@@ -0,0 +1,19 @@ +:orphan: + +======================= +ATA over Ethernet (AoE) +======================= + +.. toctree:: + :maxdepth: 1 + + aoe + todo + examples + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/aoe/todo.rst renamed from Documentation/aoe/todo.txt +3 -0
@@ -1,3 +1,6 @@ +TODO +==== + There is a potential for deadlock when allocating a struct sk_buff for data that needs to be written out to aoe storage. If the data is being written from a dirty page in order to free that page, and if
Documentation/aoe/udev.txt +1 -1
@@ -11,7 +11,7 @@ # udev_rules="/etc/udev/rules.d/" # bash# ls /etc/udev/rules.d/ # 10-wacom.rules 50-udev.rules -# bash# cp /path/to/linux-2.6.xx/Documentation/aoe/udev.txt \ +# bash# cp /path/to/linux/Documentation/aoe/udev.txt \ # /etc/udev/rules.d/60-aoe.rules #
Signature · 1 line
2.20.1
PATCH v2 22/79 docs: mic: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabConvert Intel Many Integrated Core architecture docs to ReST.
The conversion is trivial: just add title and literal block markups, and adjust some identation.
At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
---
Documentation/mic/index.rst | 18 ++++++
.../{mic_overview.txt => mic_overview.rst} | 6 +-
.../{scif_overview.txt => scif_overview.rst} | 58 +++++++++++--------
3 files changed, 57 insertions(+), 25 deletions(-)
create mode 100644 Documentation/mic/index.rst
rename Documentation/mic/{mic_overview.txt => mic_overview.rst} (96%)
rename Documentation/mic/{scif_overview.txt => scif_overview.rst} (76%)Documentation/mic/index.rst new file +18 -0
@@ -0,0 +1,18 @@ +:orphan: + +============================================= +Intel Many Integrated Core (MIC) architecture +============================================= + +.. toctree:: + :maxdepth: 1 + + mic_overview + scif_overview + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex`
Documentation/mic/mic_overview.rst renamed from Documentation/mic/mic_overview.txt +5 -1
@@ -1,3 +1,7 @@ +====================================================== +Intel Many Integrated Core (MIC) architecture overview +====================================================== + An Intel MIC X100 device is a PCIe form factor add-in coprocessor card based on the Intel Many Integrated Core (MIC) architecture that runs a Linux OS. It is a PCIe endpoint in a platform and therefore
@@ -45,7 +49,7 @@ Here is a block diagram of the various components described above. The virtio backends are situated on the host rather than the card given better single threaded performance for the host compared to MIC, the ability of the host to initiate DMA's to/from the card using the MIC DMA engine and -the fact that the virtio block storage backend can only be on the host. +the fact that the virtio block storage backend can only be on the host:: +----------+ | +----------+ | Card OS | | | Host OS |
Documentation/mic/scif_overview.rst renamed from Documentation/mic/scif_overview.txt +34 -24
87 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH v2 2/79 docs: trace: fix some Sphinx warnings
In reply to Mauro Carvalho ChehabThere are some warnings produced when building trace. Fix them.
--- Documentation/trace/ftrace.rst | 1 + Documentation/trace/histogram.rst | 86 ++++++++++++++++--------------- 2 files changed, 45 insertions(+), 42 deletions(-)
Documentation/trace/ftrace.rst +1 -0
@@ -1435,6 +1435,7 @@ trace has provided some very helpful debugging information. If we prefer function graph output instead of function, we can set display-graph option:: + with echo 1 > options/display-graph # tracer: irqsoff
Documentation/trace/histogram.rst +44 -42
118 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH v2 28/79 docs: ptp.txt: convert to ReST and move to driver-api
In reply to Mauro Carvalho ChehabThe conversion is trivial: just adjust title markups.
In order to avoid conflicts, let's add an :orphan: tag to it, to be removed when this file gets added to the driver-api book.
---
.../{ptp/ptp.txt => driver-api/ptp.rst} | 26 +++++++++++++------
Documentation/networking/timestamping.txt | 2 +-
MAINTAINERS | 2 +-
3 files changed, 20 insertions(+), 10 deletions(-)
rename Documentation/{ptp/ptp.txt => driver-api/ptp.rst} (88%)Documentation/driver-api/ptp.rst renamed from Documentation/ptp/ptp.txt +18 -8
@@ -1,5 +1,8 @@ +:orphan: -* PTP hardware clock infrastructure for Linux +=========================================== +PTP hardware clock infrastructure for Linux +=========================================== This patch set introduces support for IEEE 1588 PTP clocks in Linux. Together with the SO_TIMESTAMPING socket options, this
@@ -22,7 +25,8 @@ - Period output signals configurable from user space - Synchronization of the Linux system time via the PPS subsystem -** PTP hardware clock kernel API +PTP hardware clock kernel API +============================= A PTP clock driver registers itself with the class driver. The class driver handles all of the dealings with user space. The
@@ -36,7 +40,8 @@ development, it can be useful to have more than one clock in a single system, in order to allow performance comparisons. -** PTP hardware clock user space API +PTP hardware clock user space API +================================= The class driver also creates a character device for each registered clock. User space can use an open file descriptor from
@@ -49,7 +54,8 @@ ancillary clock features. User space can receive time stamped events via blocking read() and poll(). -** Writing clock drivers +Writing clock drivers +===================== Clock drivers include include/linux/ptp_clock_kernel.h and register themselves by presenting a 'struct ptp_clock_info' to the
@@ -66,14 +72,17 @@ class driver, since the lock may also be needed by the clock driver's interrupt service routine. -** Supported hardware +Supported hardware +================== + + * Freescale eTSEC gianfar - + Freescale eTSEC gianfar - 2 Time stamp external triggers, programmable polarity (opt. interrupt) - 2 Alarm registers (optional interrupt) - 3 Periodic signals (optional interrupt) - + National DP83640 + * National DP83640 + - 6 GPIOs programmable as inputs or outputs - 6 GPIOs with dedicated functions (LED/JTAG/clock) can also be used as general inputs or outputs
@@ -81,6 +90,7 @@ - GPIO outputs can produce periodic signals - 1 interrupt pin - + Intel IXP465 + * Intel IXP465 + - Auxiliary Slave/Master Mode Snapshot (optional interrupt) - Target Time (optional interrupt)
Documentation/networking/timestamping.txt +1 -1
@@ -368,7 +368,7 @@ ts[1] used to hold hardware timestamps converted to system time. Instead, expose the hardware clock device on the NIC directly as a HW PTP clock source, to allow time conversion in userspace and optionally synchronize system time with a userspace PTP stack such -as linuxptp. For the PTP clock API, see Documentation/ptp/ptp.txt. +as linuxptp. For the PTP clock API, see Documentation/driver-api/ptp.rst. Note that if the SO_TIMESTAMP or SO_TIMESTAMPNS option is enabled together with SO_TIMESTAMPING using SOF_TIMESTAMPING_SOFTWARE, a false
MAINTAINERS +1 -1
@@ -12649,7 +12649,7 @@ L: [email protected] S: Maintained W: http://linuxptp.sourceforge.net/ F: Documentation/ABI/testing/sysfs-ptp -F: Documentation/ptp/* +F: Documentation/driver-api/ptp.rst F: drivers/net/phy/dp83640* F: drivers/ptp/* F: include/linux/ptp_cl*
Signature · 1 line
2.20.1
Re: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho Chehab[+cc Changbin, -cc many others]
Quoted 6 lines · Mauro Carvalho Chehab
Convert the PM documents to ReST, in order to allow them to build with Sphinx.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
s/identation/indentation/
Quoted 9 lines
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
The PCI part of this is fine with me but may conflict with Changbin's work:
https://lore.kernel.org/lkml/[email protected]
Since this doesn't look like it's targeting merge via the PCI tree, I'll let you two work out any conflicts.
Bjorn
Re: [PATCH v2 64/79] docs: ioctl-number.txt: convert it to ReST format
In reply to Mauro Carvalho ChehabQuoted 2 lines · Mauro Carvalho Chehab
+0x1b all InfiniBand Subsystem
+ <http://infiniband.sourceforge.net/>
I did not know this link was in there. That sourceforge site is 15 years old and totally obsolete/irrelevant at this point. This patch doesn't have the purpose of fixing this up, but now that it's pointed out, we'll make a follow up patch to correct this.
Signature · 3 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Re: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
In reply to Bjorn HelgaasEm Mon, 22 Apr 2019 08:48:10 -0500
Bjorn Helgaas <[email protected]> escreveu:
Quoted 18 lines
[+cc Changbin, -cc many others]
Quoted 6 lines · Mauro Carvalho Chehab
Convert the PM documents to ReST, in order to allow them to build with Sphinx.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;s/identation/indentation/
Quoted 5 lines
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
Quoted 8 lines
Quoted 4 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>The PCI part of this is fine with me but may conflict with Changbin's work:
Yes it could generate a conflict, but it is a trivial change:
Documentation/PCI/pci.txt +1 -1
@@ -110,7 +110,7 @@ initialization with a pointer to a structure describing the driver resume_early Wake device from low power state. resume Wake device from low power state. - (Please see Documentation/power/pci.txt for descriptions + (Please see Documentation/power/pci.rst for descriptions of PCI Power Management and the related functions.) shutdown Hook into reboot_notifier_list (kernel/sys.c).
Looking at Changbin's patch 02/12 v3:
https://lore.kernel.org/lkml/[email protected]/
It doesn't touch the above line, nor the context lines, and it doesn't change more than 50% of the file. So, even if this patch gets merged after the PCI changeset, git will very likely recognize it as a rename and will apply it anyway.
Quoted 4 lines
Since this doesn't look like it's targeting merge via the PCI tree, I'll let you two work out any conflicts.
Acked-by Bjorn Helgaas <[email protected]>
Thanks!
Mauro
Re: [PATCH v2 64/79] docs: ioctl-number.txt: convert it to ReST format
In reply to Doug LedfordEm Mon, 22 Apr 2019 10:05:39 -0400
Doug Ledford <[email protected]> escreveu:
Quoted 8 lines · Mauro Carvalho Chehab
Quoted 2 lines
+0x1b all InfiniBand Subsystem
+ <http://infiniband.sourceforge.net/>I did not know this link was in there. That sourceforge site is 15 years old and totally obsolete/irrelevant at this point. This patch doesn't have the purpose of fixing this up, but now that it's pointed out, we'll make a follow up patch to correct this.
Yeah, I suspect that there are lots of broken links over there.
It seems that some people ended by prepending some broken URLs with:
http://web.archive.org/web/%2A/
In order to use the web archive to get an old copy of such documents.
So, replacing the link with something like:
http://web.archive.org/web/%2A/http://infiniband.sourceforge.net/
Would allow retrieving pages. It seems that the last version is there at:
https://web.archive.org/web/20190212201603/http://infiniband.sourceforge.net/
Yet, if are there any new repository with updated info, it would make sense to replace it by the new stuff.
Alternatively, one could import existing docs (if license is compatible with GPLv2) and add to the Kernel documentation.
Thanks,
Mauro
Re: [PATCH v2 63/79] docs: iio: convert to ReST
In reply to Mauro Carvalho ChehabQuoted 8 lines · On Mon, 22 Apr 2019 10:27:52 -0300 Mauro Carvalho Chehab…
Rename the iio documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Thanks Mauro,
Looks good to me.
At somepoint, we should figure out how to fit these elements into the main IIO docs, but this is a good intermediate step.
Quoted 216 lines
--- .../iio/{ep93xx_adc.txt => ep93xx_adc.rst} | 15 +++++- .../{iio_configfs.txt => iio_configfs.rst} | 52 +++++++++++-------- Documentation/iio/index.rst | 12 +++++ drivers/iio/Kconfig | 2 +- 4 files changed, 56 insertions(+), 25 deletions(-) rename Documentation/iio/{ep93xx_adc.txt => ep93xx_adc.rst} (71%) rename Documentation/iio/{iio_configfs.txt => iio_configfs.rst} (73%) create mode 100644 Documentation/iio/index.rstDocumentation/iio/ep93xx_adc.rst renamed from Documentation/iio/ep93xx_adc.txt +13
-2@@ -1,12 +1,16 @@ -Cirrus Logic EP93xx ADC driver. +============================== +Cirrus Logic EP93xx ADC driver +============================== 1. Overview +=========== The driver is intended to work on both low-end (EP9301, EP9302) devices with 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel touchscreen/ADC module. 2. Channel numbering +==================== Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets. EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is@@ -17,13 +21,20 @@ Assuming ep93xx_adc is IIO device0, you'd find the following entries under +-----------------+---------------+ | sysfs entry | ball/pin name | - +-----------------+---------------+ + +=================+===============+ | in_voltage0_raw | YM | + +-----------------+---------------+ | in_voltage1_raw | SXP | + +-----------------+---------------+ | in_voltage2_raw | SXM | + +-----------------+---------------+ | in_voltage3_raw | SYP | + +-----------------+---------------+ | in_voltage4_raw | SYM | + +-----------------+---------------+ | in_voltage5_raw | XP | + +-----------------+---------------+ | in_voltage6_raw | XM | + +-----------------+---------------+ | in_voltage7_raw | YP | +-----------------+---------------+Documentation/iio/iio_configfs.rst renamed from Documentation/iio/iio_configfs.txt +30
-22@@ -1,6 +1,9 @@ +=============================== Industrial IIO configfs support +=============================== 1. Overview +=========== Configfs is a filesystem-based manager of kernel objects. IIO uses some objects that could be easily configured using configfs (e.g.: devices,@@ -10,20 +13,22 @@ See Documentation/filesystems/configfs/configfs.txt for more information about how configfs works. 2. Usage +======== In order to use configfs support in IIO we need to select it at compile time via CONFIG_IIO_CONFIGFS config option. -Then, mount the configfs filesystem (usually under /config directory): +Then, mount the configfs filesystem (usually under /config directory):: -$ mkdir /config -$ mount -t configfs none /config + $ mkdir /config + $ mount -t configfs none /config At this point, all default IIO groups will be created and can be accessed under /config/iio. Next chapters will describe available IIO configuration objects. 3. Software triggers +==================== One of the IIO default configfs groups is the "triggers" group. It is automagically accessible when the configfs is mounted and can be found@@ -31,40 +36,40 @@ under /config/iio/triggers. IIO software triggers implementation offers support for creating multiple trigger types. A new trigger type is usually implemented as a separate -kernel module following the interface in include/linux/iio/sw_trigger.h: +kernel module following the interface in include/linux/iio/sw_trigger.h:: -/* - * drivers/iio/trigger/iio-trig-sample.c - * sample kernel module implementing a new trigger type - */ -#include <linux/iio/sw_trigger.h> + /* + * drivers/iio/trigger/iio-trig-sample.c + * sample kernel module implementing a new trigger type + */ + #include <linux/iio/sw_trigger.h> -static struct iio_sw_trigger *iio_trig_sample_probe(const char *name) -{ + static struct iio_sw_trigger *iio_trig_sample_probe(const char *name) + { /* * This allocates and registers an IIO trigger plus other * trigger type specific initialization. */ -} + } -static int iio_trig_hrtimer_remove(struct iio_sw_trigger *swt) -{ + static int iio_trig_hrtimer_remove(struct iio_sw_trigger *swt) + { /* * This undoes the actions in iio_trig_sample_probe */ -} + } -static const struct iio_sw_trigger_ops iio_trig_sample_ops = { + static const struct iio_sw_trigger_ops iio_trig_sample_ops = { .probe = iio_trig_sample_probe, .remove = iio_trig_sample_remove, -}; + }; -static struct iio_sw_trigger_type iio_trig_sample = { + static struct iio_sw_trigger_type iio_trig_sample = { .name = "trig-sample", .owner = THIS_MODULE, .ops = &iio_trig_sample_ops, -}; + }; module_iio_sw_trigger_driver(iio_trig_sample);@@ -73,21 +78,24 @@ iio-trig-sample module will create 'trig-sample' trigger type directory /config/iio/triggers/trig-sample. We support the following interrupt sources (trigger types): + * hrtimer, uses high resolution timers as interrupt source 3.1 Hrtimer triggers creation and destruction +--------------------------------------------- Loading iio-trig-hrtimer module will register hrtimer trigger types allowing users to create hrtimer triggers under /config/iio/triggers/hrtimer. -e.g: +e.g:: -$ mkdir /config/iio/triggers/hrtimer/instance1 -$ rmdir /config/iio/triggers/hrtimer/instance1 + $ mkdir /config/iio/triggers/hrtimer/instance1 + $ rmdir /config/iio/triggers/hrtimer/instance1 Each trigger can have one or more attributes specific to the trigger type. 3.2 "hrtimer" trigger types attributes +-------------------------------------- "hrtimer" trigger type doesn't have any configurable attribute from /config dir. It does introduce the sampling_frequency attribute to trigger directory.Documentation/iio/index.rst new file +12
-0@@ -0,0 +1,12 @@ +:orphan: + +============== +Industrial I/O +============== + +.. toctree:: + :maxdepth: 1 + + iio_configfs + + ep93xx_adcdrivers/iio/Kconfig +1
-1@@ -28,7 +28,7 @@ config IIO_CONFIGFS help This allows configuring various IIO bits through configfs (e.g. software triggers). For more info see - Documentation/iio/iio_configfs.txt. + Documentation/iio/iio_configfs.rst. config IIO_TRIGGER bool "Enable triggered sampling support"
Re: [PATCH v2 48/79] docs: driver-model: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho Chehabscripts/coccinelle/free/devm_free.cocci line 8
Quoted 13 lines
scripts/coccinelle/free/devm_free.cocci +1
-1@@ -2,7 +2,7 @@ /// functions. Values allocated using the devm_functions are freed when /// the device is detached, and thus the use of the standard freeing /// function would cause a double free. -/// See Documentation/driver-model/devres.txt for more information. +/// See Documentation/driver-model/devres.rst for more information. /// /// A difficulty of detecting this problem is that the standard freeing /// function might be called from a different function than the one
Quoted 4 lines
--
2.20.1
Em Mon, 22 Apr 2019 10:26:49 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 1,755 lines
This series convert lots of files to be properly parsed by Sphinx as ReST files.
As it touches on lot of stuff, this series is based on linux-next, at tag next-20190418.
The version 2 is mainly focused on addressing a comment I received from several subsystem maintainters:
- While it was doing the conversion, the files were not being renamed to ReST. So, they weren't producing any document.
So, I opted to do the rename as well, on each patch, and to add a :orphan: markup at the beginning of each file, in order to shut up the Sphinx warning that the file was not included on any TOC.
The second version of this series also touches a lot more directories without any
index.rst.After this patch, just a few directories at Documentation won't have an
index.rstfile:$ for i in $(find Documentation/ -name '*.txt'|perl -ne 's,([^/]*/[^/]*/).*,\1,; print $_;'|sort|uniq|grep -v Documentation/output|grep -v Documentation/sphinx); do if [ ! -f $i/index.rst ]; then echo $i; fi; done|grep -v .txt
Documentation/ABI/
Documentation/devicetree/
Documentation/features/
Documentation/platform/
Documentation/RCU/
Documentation/scsi/
Documentation/virtual/I'm working on another patch patch series with removes the :orphan: from the added files while adding them to some book. As such series would cause lots of conflicts, the best would be to wait for this series to be applied by each subsystem maintainer before adding it (probably late on some merge window).
Ah, I removed the patches with converts /acpi, /x86 and /PCI from this submission. As pointed by Rafael, Changbin is already working on those.
Also, I got some acks from some of those conversions. I'm opting to not adding here, as all patches were changed (due to the rename and addition of the
index.rstfile). So, if you send your ack already, feel free to re-send.Both this series and the next steps are on my devel git tree, at:
https://git.linuxtv.org/mchehab/experimental.git/log/?h=convert_rst_v2
The final output in html can be seen at:
https://www.infradead.org/~mchehab/rst_conversion/
Mauro Carvalho Chehab (79):
docs: core-api: fix broken references fordiv64.candgcd.c
docs: trace: fix some Sphinx warningsscripts/documentation-file-ref-check: don't parse Next/ dir
docs: aoe: convert docs to ReST and rename to *.rst
docs: arm64: convert docs to ReST and rename to .rst
docs: cdrom-standard.tex: convert from LaTeX to ReST
docs: cdrom: convert docs to ReST and rename to *.rst
docs: cgroup-v1: convert docs to ReST and rename to *.rst
docs:cgroup-v1/blkio-controller.rst: add a note about CFQ scheduler
docs: cpu-freq: convert docs to ReST and rename to *.rst
docs: convert docs to ReST and rename to *.rst
docs: fault-injection: convert docs to ReST and rename to *.rst
docs: fb: convert docs to ReST and rename to *.rst
docs: fpga: convert docs to ReST and rename to *.rst
docs: gpio: convert docs to ReST and rename to *.rst
docs: ide: convert docs to ReST and rename to *.rst
docs: infiniband: convert docs to ReST and rename to *.rst
docs: kbuild: convert docs to ReST and rename to *.rst
docs: kdump: convert docs to ReST and rename to *.rst
docs: livepatch: convert docs to ReST and rename to *.rst
docs: locking: convert docs to ReST and rename to *.rst
docs: mic: convert docs to ReST and rename to *.rst
docs: netlabel: convert docs to ReST and rename to *.rst
docs: pcmcia: convert docs to ReST and rename to *.rst
docs: convert docs to ReST and rename to *.rst
docs: powerpc: convert docs to ReST and rename to *.rst
docs: pps.txt: convert to ReST and rename topps.rst
docs: ptp.txt: convert to ReST and move to driver-api
docs: riscv: convert docs to ReST and rename to *.rst
docs: Debugging390.txt: convert table to ascii artwork
docs: s390: convert docs to ReST and rename to *.rst
s390:include/asm/debug.hadd kerneldoc markups
docs: serial: convert docs to ReST and rename to *.rst
docs: target: convert docs to ReST and rename to *.rst
docs: timers: convert docs to ReST and rename to *.rst
docs: watchdog: convert docs to ReST and rename to *.rst
docs: xilinx: convert eemi.txt toeemi.rst
docs: scheduler: convert docs to ReST and rename to *.rst
docs:EDID/HOWTO.txt: convert it and rename tohowto.rstconvert docs to ReST and rename to *.rst
docs: lcd-panel-cgram.txt: convert docs to ReST and rename to *.rst
docs: lp855x-driver.txt: convert to ReST and move to kernel-api
docs: m68k: convert docs to ReST and rename to *.rst
docs:cma/debugfs.txt: convert docs to ReST and rename to *.rst
docs: console.txt: convert docs to ReST and rename to *.rst
docs: pti_intel_mid.txt: convert it topti_intel_mid.rst
docs: early-userspace: convert docs to ReST and rename to *.rst
docs: driver-model: convert docs to ReST and rename to *.rst
docs: arm: convert docs to ReST and rename to *.rst
docs: memory-devices: convert ti-emif.txt to ReST
docs: xen-tpmfront.txt: convert it to .rst
docs: bus-devices:ti-gpmc.rst: convert it to ReST
docs: nvmem: convert docs to ReST and rename to *.rst
docs: phy: convert samsung-usb2.txt to ReST format
docs: rbtree.txt: fix Sphinx build warnings
docs:Documentation/*.txt: rename all ReST files to *.rst
docs: accounting: convert to ReST
docs: fmc: convert to ReST
docs: hid: convert to ReST
docs: ia64: convert to ReST
docs: leds: convert to ReST
docs: laptops: convert to ReST
docs: iio: convert to ReST
docs: ioctl-number.txt: convert it to ReST format
docs: ioctl: convert to ReST
docs: namespaces: convert to ReST
docs: nfc: convert to ReST
docs: md: convert to ReST
docs: mtd: convert to ReST
docs: nvdimm: convert to ReST
docs: xtensa: convert to ReST
docs: mmc: convert to ReST
docs: sparc: convert to ReST
docs: thermal: convert to ReST
docs: rapidio: convert to ReST
docs: blockdev: convert to ReST
docs: perf: convert to ReST
docs: sysctl: convert to ReST
docs: block: convert to ReSTDocumentation/ABI/removed/sysfs-class-rfkill | 2 +- Documentation/ABI/stable/sysfs-class-rfkill | 2 +- Documentation/ABI/stable/sysfs-devices-node | 2 +- Documentation/ABI/testing/procfs-diskstats | 2 +- Documentation/ABI/testing/sysfs-block | 2 +- Documentation/ABI/testing/sysfs-block-device | 2 +- .../ABI/testing/sysfs-class-powercap | 2 +- .../ABI/testing/sysfs-class-switchtec | 2 +- .../ABI/testing/sysfs-devices-system-cpu | 4 +- .../ABI/testing/sysfs-kernel-livepatch | 2 +- Documentation/ABI/testing/sysfs-kernel-uids | 2 +- .../ABI/testing/sysfs-platform-asus-laptop | 2 +- .../{DMA-API-HOWTO.txt => DMA-API-HOWTO.rst} | 2 + Documentation/{DMA-API.txt => DMA-API.rst} | 8 +- .../{DMA-ISA-LPC.txt => DMA-ISA-LPC.rst} | 4 +- ...{DMA-attributes.txt => DMA-attributes.rst} | 2 + Documentation/EDID/{HOWTO.txt => howto.rst} | 31 +- Documentation/{IPMI.txt => IPMI.rst} | 2 + .../{IRQ-affinity.txt => IRQ-affinity.rst} | 2 + .../{IRQ-domain.txt => IRQ-domain.rst} | 2 + Documentation/{IRQ.txt => IRQ.rst} | 2 + .../{Intel-IOMMU.txt => Intel-IOMMU.rst} | 2 + Documentation/PCI/pci-error-recovery.txt | 2 +- Documentation/PCI/pci.txt | 10 +- Documentation/{SAK.txt => SAK.rst} | 2 + Documentation/{SM501.txt => SM501.rst} | 2 + .../{cgroupstats.txt => cgroupstats.rst} | 14 +- ...ay-accounting.txt => delay-accounting.rst} | 61 +- Documentation/accounting/index.rst | 14 + Documentation/accounting/{psi.txt => psi.rst} | 40 +- ...kstats-struct.txt => taskstats-struct.rst} | 53 +- .../{taskstats.txt => taskstats.rst} | 15 +- Documentation/admin-guide/README.rst | 2 +- Documentation/admin-guide/bug-hunting.rst | 2 +- Documentation/admin-guide/cgroup-v2.rst | 6 +- .../admin-guide/kernel-parameters.rst | 2 +- .../admin-guide/kernel-parameters.txt | 64 +- Documentation/admin-guide/l1tf.rst | 4 +- Documentation/admin-guide/mm/index.rst | 2 +- Documentation/admin-guide/mm/ksm.rst | 2 +- .../admin-guide/mm/numa_memory_policy.rst | 2 +- Documentation/aoe/{aoe.txt => aoe.rst} | 63 +- Documentation/aoe/examples.rst | 23 + Documentation/aoe/index.rst | 19 + Documentation/aoe/{todo.txt => todo.rst} | 3 + Documentation/aoe/udev.txt | 2 +- Documentation/arm/Marvell/README | 395 --- Documentation/arm/Netwinder | 78 - Documentation/arm/SA1100/FreeBird | 21 - Documentation/arm/SA1100/empeg | 2 - Documentation/arm/SA1100/serial_UART | 47 - Documentation/arm/{README => arm.rst} | 50 +- Documentation/arm/{Booting => booting.rst} | 71 +- ...ance.txt => cluster-pm-race-avoidance.rst} | 177 +- .../arm/{firmware.txt => firmware.rst} | 14 +- Documentation/arm/index.rst | 80 + .../arm/{Interrupts => interrupts.rst} | 86 +- Documentation/arm/{IXP4xx => ixp4xx.rst} | 61 +- ...nel_mode_neon.txt => kernel_mode_neon.rst} | 3 + ...er_helpers.txt => kernel_user_helpers.rst} | 79 +- .../keystone/{knav-qmss.txt => knav-qmss.rst} | 6 +- .../keystone/{Overview.txt => overview.rst} | 47 +- Documentation/arm/marvel.rst | 488 +++ .../arm/{mem_alignment => mem_alignment.rst} | 11 +- Documentation/arm/{memory.txt => memory.rst} | 9 +- .../arm/{Microchip/README => microchip.rst} | 63 +- Documentation/arm/netwinder.rst | 85 + Documentation/arm/nwfpe/index.rst | 11 + .../nwfpe/{README.FPE => netwinder-fpe.rst} | 24 +- Documentation/arm/nwfpe/{NOTES => notes.rst} | 3 + Documentation/arm/nwfpe/{README => nwfpe.rst} | 10 +- Documentation/arm/nwfpe/{TODO => todo.rst} | 47 +- Documentation/arm/{OMAP/DSS => omap/dss.rst} | 112 +- Documentation/arm/omap/index.rst | 10 + .../arm/{OMAP/README => omap/omap.rst} | 7 + .../arm/{OMAP/omap_pm => omap/omap_pm.rst} | 55 +- Documentation/arm/{Porting => porting.rst} | 14 +- Documentation/arm/pxa/{mfp.txt => mfp.rst} | 106 +- .../{SA1100/ADSBitsy => sa1100/adsbitsy.rst} | 14 +- .../{SA1100/Assabet => sa1100/assabet.rst} | 185 +- .../arm/{SA1100/Brutus => sa1100/brutus.rst} | 45 +- .../arm/{SA1100/CERF => sa1100/cerf.rst} | 10 +- Documentation/arm/sa1100/freebird.rst | 25 + .../graphicsclient.rst} | 46 +- .../graphicsmaster.rst} | 13 +- .../HUW_WEBPANEL => sa1100/huw_webpanel.rst} | 8 +- Documentation/arm/sa1100/index.rst | 23 + .../arm/{SA1100/Itsy => sa1100/itsy.rst} | 14 +- .../arm/{SA1100/LART => sa1100/lart.rst} | 3 +- .../nanoEngine => sa1100/nanoengine.rst} | 6 +- .../{SA1100/Pangolin => sa1100/pangolin.rst} | 10 +- .../arm/{SA1100/PLEB => sa1100/pleb.rst} | 6 +- Documentation/arm/sa1100/serial_uart.rst | 51 + .../arm/{SA1100/Tifon => sa1100/tifon.rst} | 4 +- .../arm/{SA1100/Yopy => sa1100/yopy.rst} | 5 +- .../cpufreq.rst} | 5 +- .../eb2410itx.rst} | 5 +- .../GPIO.txt => samsung-s3c24xx/gpio.rst} | 23 +- .../H1940.txt => samsung-s3c24xx/h1940.rst} | 5 +- Documentation/arm/samsung-s3c24xx/index.rst | 18 + .../NAND.txt => samsung-s3c24xx/nand.rst} | 6 +- .../overview.rst} | 21 +- .../s3c2412.rst} | 5 +- .../s3c2413.rst} | 7 +- .../smdk2440.rst} | 5 +- .../suspend.rst} | 20 +- .../usb-host.rst} | 16 +- .../bootloader-interface.rst} | 27 +- .../clksrc-change-registers.awk | 0 .../{Samsung/GPIO.txt => samsung/gpio.rst} | 7 +- Documentation/arm/samsung/index.rst | 10 + .../Overview.txt => samsung/overview.rst} | 15 +- Documentation/arm/{Setup => setup.rst} | 49 +- .../arm/{SH-Mobile => sh-mobile}/.gitignore | 0 .../overview.txt => spear/overview.rst} | 20 +- .../arm/sti/{overview.txt => overview.rst} | 21 +- ...h407-overview.txt => stih407-overview.rst} | 9 +- ...h415-overview.txt => stih415-overview.rst} | 8 +- ...h416-overview.txt => stih416-overview.rst} | 5 +- ...h418-overview.txt => stih418-overview.rst} | 9 +- .../arm/stm32/stm32f429-overview.rst | 5 +- .../arm/stm32/stm32f746-overview.rst | 5 +- .../arm/stm32/stm32f769-overview.rst | 5 +- .../arm/stm32/stm32h743-overview.rst | 5 +- .../arm/stm32/stm32mp157-overview.rst | 1 + Documentation/arm/{sunxi/README => sunxi.rst} | 98 +- .../arm/sunxi/{clocks.txt => clocks.rst} | 7 +- .../arm/{swp_emulation => swp_emulation.rst} | 24 +- Documentation/arm/{tcm.txt => tcm.rst} | 54 +- Documentation/arm/{uefi.txt => uefi.rst} | 39 +- .../release-notes.rst} | 4 +- Documentation/arm/{vlocks.txt => vlocks.rst} | 9 +- ...object_usage.txt => acpi_object_usage.rst} | 288 +- .../arm64/{arm-acpi.txt => arm-acpi.rst} | 155 +- .../arm64/{booting.txt => booting.rst} | 91 +- ...egisters.txt => cpu-feature-registers.rst} | 190 +- .../arm64/{elf_hwcaps.txt => elf_hwcaps.rst} | 56 +- .../{hugetlbpage.txt => hugetlbpage.rst} | 7 +- Documentation/arm64/index.rst | 28 + ...structions.txt => legacy_instructions.rst} | 43 +- Documentation/arm64/memory.rst | 98 + Documentation/arm64/memory.txt | 97 - ...ication.txt => pointer-authentication.rst} | 2 + ...{silicon-errata.txt => silicon-errata.rst} | 63 +- Documentation/arm64/{sve.txt => sve.rst} | 12 +- ...agged-pointers.txt => tagged-pointers.rst} | 6 +- .../{atomic_bitops.txt => atomic_bitops.rst} | 2 + ...cd-panel-cgram.txt => lcd-panel-cgram.rst} | 9 +- Documentation/backlight/lp855x-driver.rst | 83 + Documentation/backlight/lp855x-driver.txt | 66 - .../{bfq-iosched.txt => bfq-iosched.rst} | 68 +- .../block/{biodoc.txt => biodoc.rst} | 365 ++- .../block/{biovecs.txt => biovecs.rst} | 20 +- Documentation/block/capability.rst | 18 + Documentation/block/capability.txt | 15 - ...ne-partition.txt => cmdline-partition.rst} | 13 +- ...{data-integrity.txt => data-integrity.rst} | 58 +- ...dline-iosched.txt => deadline-iosched.rst} | 19 +- Documentation/block/index.rst | 25 + .../block/{ioprio.txt => ioprio.rst} | 95 +- .../{kyber-iosched.txt => kyber-iosched.rst} | 3 +- .../block/{null_blk.txt => null_blk.rst} | 65 +- Documentation/block/{pr.txt => pr.rst} | 14 +- .../{queue-sysfs.txt => queue-sysfs.rst} | 7 +- .../block/{request.txt => request.rst} | 47 +- Documentation/block/{stat.txt => stat.rst} | 13 +- ...witching-sched.txt => switching-sched.rst} | 28 +- ...ontrol.txt => writeback_cache_control.rst} | 12 +- ...structure-v9.txt => data-structure-v9.rst} | 6 +- Documentation/blockdev/drbd/figures.rst | 28 + .../blockdev/drbd/{README.txt => index.rst} | 15 +- .../blockdev/{floppy.txt => floppy.rst} | 88 +- Documentation/blockdev/index.rst | 16 + Documentation/blockdev/{nbd.txt => nbd.rst} | 1 + .../blockdev/{paride.txt => paride.rst} | 144 +- .../blockdev/{ramdisk.txt => ramdisk.rst} | 55 +- Documentation/blockdev/{zram.txt => zram.rst} | 197 +- .../{bt8xxgpio.txt => bt8xxgpio.rst} | 2 + Documentation/{btmrvl.txt => btmrvl.rst} | 2 + .../bus-devices/{ti-gpmc.txt => ti-gpmc.rst} | 159 +- ...-mapping.txt => bus-virt-phys-mapping.rst} | 4 +- Documentation/cdrom/Makefile | 21 - Documentation/cdrom/cdrom-standard.rst | 1063 +++++++ Documentation/cdrom/cdrom-standard.tex | 1026 ------- Documentation/cdrom/{ide-cd => ide-cd.rst} | 196 +- Documentation/cdrom/index.rst | 19 + ...{packet-writing.txt => packet-writing.rst} | 27 +- ...io-controller.txt => blkio-controller.rst} | 103 +- .../cgroup-v1/{cgroups.txt => cgroups.rst} | 184 +- .../cgroup-v1/{cpuacct.txt => cpuacct.rst} | 15 +- .../cgroup-v1/{cpusets.txt => cpusets.rst} | 205 +- .../cgroup-v1/{devices.txt => devices.rst} | 40 +- ...er-subsystem.txt => freezer-subsystem.rst} | 14 +- .../cgroup-v1/{hugetlb.txt => hugetlb.rst} | 31 +- Documentation/cgroup-v1/index.rst | 30 + .../{memcg_test.txt => memcg_test.rst} | 261 +- .../cgroup-v1/{memory.txt => memory.rst} | 449 +-- .../cgroup-v1/{net_cls.txt => net_cls.rst} | 37 +- .../cgroup-v1/{net_prio.txt => net_prio.rst} | 24 +- .../cgroup-v1/{pids.txt => pids.rst} | 78 +- .../cgroup-v1/{rdma.txt => rdma.rst} | 66 +- ...g-warn-once.txt => clearing-warn-once.rst} | 2 + .../cma/{debugfs.txt => debugfs.rst} | 8 +- .../{connector.txt => connector.rst} | 130 +- .../console/{console.txt => console.rst} | 63 +- Documentation/core-api/kernel-api.rst | 4 +- Documentation/core-api/printk-formats.rst | 2 +- .../{amd-powernow.txt => amd-powernow.rst} | 11 +- Documentation/cpu-freq/{core.txt => core.rst} | 68 +- .../{cpu-drivers.txt => cpu-drivers.rst} | 217 +- ...pufreq-nforce2.txt => cpufreq-nforce2.rst} | 12 +- Documentation/cpu-freq/cpufreq-stats.rst | 128 + Documentation/cpu-freq/cpufreq-stats.txt | 127 - Documentation/cpu-freq/index.rst | 52 + Documentation/cpu-freq/index.txt | 56 - .../{pcc-cpufreq.txt => pcc-cpufreq.rst} | 102 +- Documentation/{cpu-load.txt => cpu-load.rst} | 2 + .../{cputopology.txt => cputopology.rst} | 2 + Documentation/{crc32.txt => crc32.rst} | 2 + Documentation/{dcdbas.txt => dcdbas.rst} | 2 + ...ging-modules.txt => debugging-modules.rst} | 2 + ...hci1394.txt => debugging-via-ohci1394.rst} | 2 + Documentation/{dell_rbu.txt => dell_rbu.rst} | 2 + ...{cache-policies.txt => cache-policies.rst} | 24 +- .../device-mapper/{cache.txt => cache.rst} | 206 +- .../device-mapper/{delay.txt => delay.rst} | 29 +- .../{dm-crypt.txt => dm-crypt.rst} | 57 +- .../{dm-flakey.txt => dm-flakey.rst} | 45 +- .../{dm-init.txt => dm-init.rst} | 75 +- .../{dm-integrity.txt => dm-integrity.rst} | 55 +- .../device-mapper/{dm-io.txt => dm-io.rst} | 14 +- .../device-mapper/{dm-log.txt => dm-log.rst} | 5 +- ...m-queue-length.txt => dm-queue-length.rst} | 25 +- .../{dm-raid.txt => dm-raid.rst} | 225 +- ...m-service-time.txt => dm-service-time.rst} | 68 +- Documentation/device-mapper/dm-uevent.rst | 110 + Documentation/device-mapper/dm-uevent.txt | 97 - .../{dm-zoned.txt => dm-zoned.rst} | 10 +- .../device-mapper/{era.txt => era.rst} | 36 +- Documentation/device-mapper/index.rst | 44 + .../device-mapper/{kcopyd.txt => kcopyd.rst} | 10 +- Documentation/device-mapper/linear.rst | 63 + Documentation/device-mapper/linear.txt | 61 - .../{log-writes.txt => log-writes.rst} | 91 +- ...ersistent-data.txt => persistent-data.rst} | 4 + .../{snapshot.txt => snapshot.rst} | 116 +- .../{statistics.txt => statistics.rst} | 66 +- Documentation/device-mapper/striped.rst | 61 + Documentation/device-mapper/striped.txt | 57 - .../device-mapper/{switch.txt => switch.rst} | 47 +- ...provisioning.txt => thin-provisioning.rst} | 68 +- .../{unstriped.txt => unstriped.rst} | 111 +- .../device-mapper/{verity.txt => verity.rst} | 20 +- .../{writecache.txt => writecache.rst} | 13 +- .../device-mapper/{zero.txt => zero.rst} | 14 +- Documentation/devicetree/bindings/arm/xen.txt | 2 +- .../devicetree/bindings/phy/phy-bindings.txt | 2 +- .../devicetree/booting-without-of.txt | 4 +- Documentation/{digsig.txt => digsig.rst} | 2 + Documentation/driver-api/gpio/driver.rst | 2 +- Documentation/driver-api/pm/devices.rst | 6 +- .../{pps/pps.txt => driver-api/pps.rst} | 67 +- .../{ptp/ptp.txt => driver-api/ptp.rst} | 26 +- Documentation/driver-api/s390-drivers.rst | 4 +- Documentation/driver-api/usb/dma.rst | 6 +- .../driver-api/usb/power-management.rst | 2 +- .../driver-model/{binding.txt => binding.rst} | 20 +- .../driver-model/{bus.txt => bus.rst} | 69 +- .../driver-model/{class.txt => class.rst} | 74 +- ...esign-patterns.txt => design-patterns.rst} | 106 +- .../driver-model/{device.txt => device.rst} | 59 +- .../driver-model/{devres.txt => devres.rst} | 50 +- .../driver-model/{driver.txt => driver.rst} | 112 +- Documentation/driver-model/index.rst | 26 + .../{overview.txt => overview.rst} | 37 +- .../{platform.txt => platform.rst} | 30 +- .../driver-model/{porting.txt => porting.rst} | 333 +-- .../{buffer-format.txt => buffer-format.rst} | 19 +- .../{README => early_userspace_support.rst} | 3 + Documentation/early-userspace/index.rst | 18 + Documentation/{efi-stub.txt => efi-stub.rst} | 2 + Documentation/{eisa.txt => eisa.rst} | 6 +- ...ault-injection.txt => fault-injection.rst} | 265 +- Documentation/fault-injection/index.rst | 20 + ...r-inject.txt => notifier-error-inject.rst} | 18 +- .../fault-injection/nvme-fault-injection.rst | 120 + .../fault-injection/nvme-fault-injection.txt | 116 - .../fault-injection/provoke-crashes.rst | 48 + .../fault-injection/provoke-crashes.txt | 38 - Documentation/fb/{api.txt => api.rst} | 29 +- Documentation/fb/{arkfb.txt => arkfb.rst} | 8 +- .../fb/{aty128fb.txt => aty128fb.rst} | 35 +- .../fb/{cirrusfb.txt => cirrusfb.rst} | 47 +- .../fb/{cmap_xfbdev.txt => cmap_xfbdev.rst} | 57 +- .../fb/{deferred_io.txt => deferred_io.rst} | 28 +- Documentation/fb/{efifb.txt => efifb.rst} | 18 +- .../fb/{ep93xx-fb.txt => ep93xx-fb.rst} | 27 +- Documentation/fb/{fbcon.txt => fbcon.rst} | 181 +- .../fb/{framebuffer.txt => framebuffer.rst} | 79 +- Documentation/fb/{gxfb.txt => gxfb.rst} | 24 +- Documentation/fb/index.rst | 50 + .../fb/{intel810.txt => intel810.rst} | 79 +- Documentation/fb/{intelfb.txt => intelfb.rst} | 62 +- .../fb/{internals.txt => internals.rst} | 24 +- Documentation/fb/{lxfb.txt => lxfb.rst} | 25 +- Documentation/fb/matroxfb.rst | 443 +++ Documentation/fb/matroxfb.txt | 413 --- .../fb/{metronomefb.txt => metronomefb.rst} | 8 +- Documentation/fb/{modedb.txt => modedb.rst} | 44 +- Documentation/fb/pvr2fb.rst | 66 + Documentation/fb/pvr2fb.txt | 65 - Documentation/fb/{pxafb.txt => pxafb.rst} | 81 +- Documentation/fb/{s3fb.txt => s3fb.rst} | 8 +- .../fb/{sa1100fb.txt => sa1100fb.rst} | 23 +- Documentation/fb/sh7760fb.rst | 130 + Documentation/fb/sh7760fb.txt | 131 - Documentation/fb/{sisfb.txt => sisfb.rst} | 40 +- Documentation/fb/{sm501.txt => sm501.rst} | 7 +- Documentation/fb/{sm712fb.txt => sm712fb.rst} | 18 +- Documentation/fb/sstfb.rst | 207 ++ Documentation/fb/sstfb.txt | 174 -- Documentation/fb/{tgafb.txt => tgafb.rst} | 30 +- .../fb/{tridentfb.txt => tridentfb.rst} | 36 +- Documentation/fb/{udlfb.txt => udlfb.rst} | 55 +- Documentation/fb/{uvesafb.txt => uvesafb.rst} | 128 +- Documentation/fb/{vesafb.txt => vesafb.rst} | 123 +- Documentation/fb/viafb.rst | 297 ++ Documentation/fb/viafb.txt | 252 -- .../fb/{vt8623fb.txt => vt8623fb.rst} | 10 +- Documentation/filesystems/nfs/nfsroot.txt | 2 +- .../filesystems/ramfs-rootfs-initramfs.txt | 4 +- Documentation/filesystems/sysfs.txt | 2 +- Documentation/filesystems/tmpfs.txt | 2 +- .../filesystems/ubifs-authentication.md | 4 +- Documentation/fmc/{API.txt => api.rst} | 10 +- .../fmc/{carrier.txt => carrier.rst} | 65 +- .../fmc/{FMC-and-SDB.txt => fmc-and-sdb.rst} | 19 +- .../fmc/{fmc-chardev.txt => fmc-chardev.rst} | 9 +- .../fmc/{fmc-fakedev.txt => fmc-fakedev.rst} | 13 +- .../fmc/{fmc-trivial.txt => fmc-trivial.rst} | 11 +- ...-write-eeprom.txt => fmc-write-eeprom.rst} | 36 +- .../fmc/{identifiers.txt => identifiers.rst} | 20 +- Documentation/fmc/index.rst | 21 + .../fmc/{mezzanine.txt => mezzanine.rst} | 34 +- .../fmc/{parameters.txt => parameters.rst} | 11 +- Documentation/fpga/{dfl.txt => dfl.rst} | 58 +- Documentation/fpga/index.rst | 17 + ...ex-requeue-pi.txt => futex-requeue-pi.rst} | 2 + .../{gcc-plugins.txt => gcc-plugins.rst} | 2 + Documentation/gpio/index.rst | 17 + Documentation/gpio/{sysfs.txt => sysfs.rst} | 39 +- Documentation/gpu/drm-mm.rst | 2 +- .../hid/{hid-alps.txt => hid-alps.rst} | 85 +- .../hid/{hid-sensor.txt => hid-sensor.rst} | 192 +- .../{hid-transport.txt => hid-transport.rst} | 82 +- Documentation/hid/{hiddev.txt => hiddev.rst} | 130 +- Documentation/hid/{hidraw.txt => hidraw.rst} | 53 +- Documentation/hid/index.rst | 18 + Documentation/hid/intel-ish-hid.rst | 485 +++ Documentation/hid/intel-ish-hid.txt | 454 --- Documentation/hid/{uhid.txt => uhid.rst} | 46 +- Documentation/{highuid.txt => highuid.rst} | 2 + .../{hw_random.txt => hw_random.rst} | 2 + Documentation/hwmon/submitting-patches.rst | 2 +- .../{hwspinlock.txt => hwspinlock.rst} | 2 + .../ia64/{aliasing.txt => aliasing.rst} | 71 +- Documentation/ia64/{efirtc.txt => efirtc.rst} | 86 +- .../ia64/{err_inject.txt => err_inject.rst} | 347 ++- Documentation/ia64/{fsys.txt => fsys.rst} | 127 +- Documentation/ia64/{README => ia64.rst} | 26 +- Documentation/ia64/index.rst | 18 + .../ia64/{IRQ-redir.txt => irq-redir.rst} | 32 +- Documentation/ia64/{mca.txt => mca.rst} | 10 +- Documentation/ia64/{serial.txt => serial.rst} | 36 +- Documentation/ia64/xen.rst | 206 ++ Documentation/ia64/xen.txt | 183 -- Documentation/ide/changelogs.rst | 17 + .../ide/{ide-tape.txt => ide-tape.rst} | 23 +- Documentation/ide/{ide.txt => ide.rst} | 147 +- Documentation/ide/index.rst | 21 + ...arm-plug-howto.txt => warm-plug-howto.rst} | 10 +- .../iio/{ep93xx_adc.txt => ep93xx_adc.rst} | 15 +- .../{iio_configfs.txt => iio_configfs.rst} | 52 +- Documentation/iio/index.rst | 12 + Documentation/index.rst | 1 + .../{core_locking.txt => core_locking.rst} | 64 +- Documentation/infiniband/index.rst | 23 + .../infiniband/{ipoib.txt => ipoib.rst} | 24 +- .../infiniband/{opa_vnic.txt => opa_vnic.rst} | 108 +- .../infiniband/{sysfs.txt => sysfs.rst} | 4 +- .../{tag_matching.txt => tag_matching.rst} | 5 + .../infiniband/{user_mad.txt => user_mad.rst} | 33 +- .../{user_verbs.txt => user_verbs.rst} | 12 +- Documentation/input/input.rst | 2 +- .../{intel_txt.txt => intel_txt.rst} | 2 + .../{io-mapping.txt => io-mapping.rst} | 2 + .../{io_ordering.txt => io_ordering.rst} | 2 + ...g-up-ioctls.txt => botching-up-ioctls.rst} | 1 + Documentation/ioctl/cdrom.rst | 1233 ++++++++ Documentation/ioctl/cdrom.txt | 967 ------ Documentation/ioctl/{hdio.txt => hdio.rst} | 835 ++++-- Documentation/ioctl/index.rst | 16 + ...{ioctl-decoding.txt => ioctl-decoding.rst} | 13 +- Documentation/ioctl/ioctl-number.rst | 360 +++ Documentation/ioctl/ioctl-number.txt | 350 --- Documentation/{iostats.txt => iostats.rst} | 2 + ...flags-tracing.txt => irqflags-tracing.rst} | 2 + Documentation/{isa.txt => isa.rst} | 2 + Documentation/{isapnp.txt => isapnp.rst} | 2 + ...eaders_install.txt => headers_install.rst} | 5 +- Documentation/kbuild/index.rst | 27 + Documentation/kbuild/issues.rst | 11 + .../kbuild/{kbuild.txt => kbuild.rst} | 119 +- ...nfig-language.txt => kconfig-language.rst} | 232 +- ...anguage.txt => kconfig-macro-language.rst} | 37 +- .../kbuild/{kconfig.txt => kconfig.rst} | 136 +- .../kbuild/{makefiles.txt => makefiles.rst} | 518 ++-- .../kbuild/{modules.txt => modules.rst} | 168 +- Documentation/kdump/index.rst | 21 + Documentation/kdump/{kdump.txt => kdump.rst} | 131 +- .../kdump/{vmcoreinfo.txt => vmcoreinfo.rst} | 59 +- Documentation/kernel-hacking/hacking.rst | 4 +- Documentation/kernel-hacking/locking.rst | 2 +- ...hreads.txt => kernel-per-CPU-kthreads.rst} | 6 +- Documentation/{kobject.txt => kobject.rst} | 4 +- Documentation/{kprobes.txt => kprobes.rst} | 2 + Documentation/{kref.txt => kref.rst} | 2 + .../{asus-laptop.txt => asus-laptop.rst} | 91 +- ...otection.txt => disk-shock-protection.rst} | 32 +- Documentation/laptops/index.rst | 17 + .../{laptop-mode.txt => laptop-mode.rst} | 509 ++-- .../{sony-laptop.txt => sony-laptop.rst} | 58 +- .../laptops/{sonypi.txt => sonypi.rst} | 28 +- .../{thinkpad-acpi.txt => thinkpad-acpi.rst} | 373 ++- .../{toshiba_haps.txt => toshiba_haps.rst} | 47 +- Documentation/{ldm.txt => ldm.rst} | 2 + Documentation/leds/index.rst | 25 + .../leds/{leds-blinkm.txt => leds-blinkm.rst} | 63 +- ...s-class-flash.txt => leds-class-flash.rst} | 49 +- .../leds/{leds-class.txt => leds-class.rst} | 15 +- .../leds/{leds-lm3556.txt => leds-lm3556.rst} | 100 +- .../leds/{leds-lp3944.txt => leds-lp3944.rst} | 23 +- Documentation/leds/leds-lp5521.rst | 115 + Documentation/leds/leds-lp5521.txt | 101 - Documentation/leds/leds-lp5523.rst | 147 + Documentation/leds/leds-lp5523.txt | 130 - Documentation/leds/leds-lp5562.rst | 137 + Documentation/leds/leds-lp5562.txt | 120 - Documentation/leds/leds-lp55xx.rst | 224 ++ Documentation/leds/leds-lp55xx.txt | 194 -- Documentation/leds/leds-mlxcpld.rst | 118 + Documentation/leds/leds-mlxcpld.txt | 110 - ...edtrig-oneshot.txt => ledtrig-oneshot.rst} | 11 +- ...ig-transient.txt => ledtrig-transient.rst} | 63 +- ...edtrig-usbport.txt => ledtrig-usbport.rst} | 11 +- Documentation/leds/{uleds.txt => uleds.rst} | 5 +- .../{callbacks.txt => callbacks.rst} | 12 +- ...ive-patches.txt => cumulative-patches.rst} | 14 +- Documentation/livepatch/index.rst | 21 + .../{livepatch.txt => livepatch.rst} | 60 +- ...e-elf-format.txt => module-elf-format.rst} | 211 +- .../{shadow-vars.txt => shadow-vars.rst} | 65 +- Documentation/locking/index.rst | 24 + ...{lockdep-design.txt => lockdep-design.rst} | 41 +- Documentation/locking/lockstat.rst | 204 ++ Documentation/locking/lockstat.txt | 183 -- .../{locktorture.txt => locktorture.rst} | 105 +- .../{mutex-design.txt => mutex-design.rst} | 26 +- ...t-mutex-design.txt => rt-mutex-design.rst} | 139 +- .../locking/{rt-mutex.txt => rt-mutex.rst} | 32 +- .../locking/{spinlocks.txt => spinlocks.rst} | 32 +- ...w-mutex-design.txt => ww-mutex-design.rst} | 82 +- ...kup-watchdogs.txt => lockup-watchdogs.rst} | 2 + Documentation/{lsm.txt => lsm.rst} | 2 + Documentation/{lzo.txt => lzo.rst} | 2 + Documentation/m68k/index.rst | 17 + ...{kernel-options.txt => kernel-options.rst} | 319 +- Documentation/{mailbox.txt => mailbox.rst} | 2 + Documentation/md/index.rst | 12 + .../md/{md-cluster.txt => md-cluster.rst} | 188 +- .../md/{raid5-cache.txt => raid5-cache.rst} | 28 +- .../md/{raid5-ppl.txt => raid5-ppl.rst} | 2 + Documentation/memory-barriers.txt | 6 +- .../{ti-emif.txt => ti-emif.rst} | 27 +- ...hameleon-bus.txt => men-chameleon-bus.rst} | 2 + Documentation/mic/index.rst | 18 + .../{mic_overview.txt => mic_overview.rst} | 6 +- .../{scif_overview.txt => scif_overview.rst} | 58 +- Documentation/mmc/index.rst | 13 + .../{mmc-async-req.txt => mmc-async-req.rst} | 53 +- .../{mmc-dev-attrs.txt => mmc-dev-attrs.rst} | 32 +- .../{mmc-dev-parts.txt => mmc-dev-parts.rst} | 13 +- .../mmc/{mmc-tools.txt => mmc-tools.rst} | 5 +- Documentation/mtd/index.rst | 12 + .../mtd/{intel-spi.txt => intel-spi.rst} | 46 +- .../mtd/{nand_ecc.txt => nand_ecc.rst} | 481 +-- .../mtd/{spi-nor.txt => spi-nor.rst} | 7 +- ...bility-list.txt => compatibility-list.rst} | 9 +- Documentation/namespaces/index.rst | 11 + ...ource-control.txt => resource-control.rst} | 4 + .../{cipso_ipv4.txt => cipso_ipv4.rst} | 19 +- Documentation/netlabel/draft_ietf.rst | 5 + Documentation/netlabel/index.rst | 21 + .../{introduction.txt => introduction.rst} | 16 +- .../{lsm_interface.txt => lsm_interface.rst} | 16 +- Documentation/networking/ip-sysctl.txt | 2 +- Documentation/networking/scaling.rst | 4 +- Documentation/networking/timestamping.txt | 2 +- Documentation/nfc/index.rst | 11 + .../nfc/{nfc-hci.txt => nfc-hci.rst} | 163 +- .../nfc/{nfc-pn544.txt => nfc-pn544.rst} | 6 +- .../{nommu-mmap.txt => nommu-mmap.rst} | 2 + Documentation/{ntb.txt => ntb.rst} | 2 + Documentation/{numastat.txt => numastat.rst} | 2 + Documentation/nvdimm/{btt.txt => btt.rst} | 139 +- Documentation/nvdimm/index.rst | 12 + .../nvdimm/{nvdimm.txt => nvdimm.rst} | 518 ++-- .../nvdimm/{security.txt => security.rst} | 4 +- Documentation/nvmem/{nvmem.txt => nvmem.rst} | 112 +- Documentation/{padata.txt => padata.rst} | 2 + ...port-lowlevel.txt => parport-lowlevel.rst} | 2 + .../{devicetable.txt => devicetable.rst} | 4 + ...{driver-changes.txt => driver-changes.rst} | 35 +- .../pcmcia/{driver.txt => driver.rst} | 18 +- Documentation/pcmcia/index.rst | 20 + .../pcmcia/{locking.txt => locking.rst} | 39 +- ...-semaphore.txt => percpu-rw-semaphore.rst} | 2 + .../perf/{arm-ccn.txt => arm-ccn.rst} | 18 +- .../perf/{arm_dsu_pmu.txt => arm_dsu_pmu.rst} | 5 +- .../perf/{hisi-pmu.txt => hisi-pmu.rst} | 35 +- Documentation/perf/index.rst | 16 + .../perf/{qcom_l2_pmu.txt => qcom_l2_pmu.rst} | 3 +- .../perf/{qcom_l3_pmu.txt => qcom_l3_pmu.rst} | 3 +- .../{thunderx2-pmu.txt => thunderx2-pmu.rst} | 25 +- .../perf/{xgene-pmu.txt => xgene-pmu.rst} | 3 +- Documentation/{phy.txt => phy.rst} | 2 + .../{samsung-usb2.txt => samsung-usb2.rst} | 62 +- Documentation/{pi-futex.txt => pi-futex.rst} | 4 +- Documentation/{pnp.txt => pnp.rst} | 2 + .../power/{apm-acpi.txt => apm-acpi.rst} | 10 +- ...m-debugging.txt => basic-pm-debugging.rst} | 79 +- ...harger-manager.txt => charger-manager.rst} | 101 +- ...rivers-testing.txt => drivers-testing.rst} | 15 +- .../{energy-model.txt => energy-model.rst} | 101 +- ...ing-of-tasks.txt => freezing-of-tasks.rst} | 91 +- Documentation/power/index.rst | 46 + .../power/{interface.txt => interface.rst} | 24 +- Documentation/power/{opp.txt => opp.rst} | 175 +- Documentation/power/{pci.txt => pci.rst} | 87 +- ...qos_interface.txt => pm_qos_interface.rst} | 127 +- Documentation/power/power_supply_class.rst | 282 ++ Documentation/power/power_supply_class.txt | 231 -- Documentation/power/powercap/powercap.rst | 257 ++ Documentation/power/powercap/powercap.txt | 236 -- .../regulator/{consumer.txt => consumer.rst} | 141 +- .../regulator/{design.txt => design.rst} | 9 +- .../regulator/{machine.txt => machine.rst} | 47 +- .../regulator/{overview.txt => overview.rst} | 57 +- Documentation/power/regulator/regulator.rst | 32 + Documentation/power/regulator/regulator.txt | 30 - .../power/{runtime_pm.txt => runtime_pm.rst} | 234 +- Documentation/power/{s2ram.txt => s2ram.rst} | 20 +- ...hotplug.txt => suspend-and-cpuhotplug.rst} | 42 +- ...errupts.txt => suspend-and-interrupts.rst} | 2 + ...ap-files.txt => swsusp-and-swap-files.rst} | 17 +- ...{swsusp-dmcrypt.txt => swsusp-dmcrypt.rst} | 120 +- Documentation/power/swsusp.rst | 501 ++++ Documentation/power/swsusp.txt | 446 --- .../power/{tricks.txt => tricks.rst} | 6 +- ...serland-swsusp.txt => userland-swsusp.rst} | 55 +- Documentation/power/{video.txt => video.rst} | 156 +- .../{bootwrapper.txt => bootwrapper.rst} | 28 +- .../{cpu_families.txt => cpu_families.rst} | 23 +- .../{cpu_features.txt => cpu_features.rst} | 6 +- Documentation/powerpc/{cxl.txt => cxl.rst} | 46 +- .../powerpc/{cxlflash.txt => cxlflash.rst} | 10 +- .../{DAWR-POWER9.txt => dawr-power9.rst} | 10 +- Documentation/powerpc/{dscr.txt => dscr.rst} | 18 +- ...ecovery.txt => eeh-pci-error-recovery.rst} | 108 +- ...ed-dump.txt => firmware-assisted-dump.rst} | 119 +- Documentation/powerpc/{hvcs.txt => hvcs.rst} | 108 +- Documentation/powerpc/index.rst | 34 + Documentation/powerpc/isa-versions.rst | 13 +- .../powerpc/{mpc52xx.txt => mpc52xx.rst} | 12 +- ...nv.txt => pci_iov_resource_on_powernv.rst} | 15 +- .../powerpc/{pmu-ebb.txt => pmu-ebb.rst} | 1 + Documentation/powerpc/ptrace.rst | 156 + Documentation/powerpc/ptrace.txt | 151 - .../{qe_firmware.txt => qe_firmware.rst} | 37 +- .../{syscall64-abi.txt => syscall64-abi.rst} | 29 +- ...al_memory.txt => transactional_memory.rst} | 45 +- ...reempt-locking.txt => preempt-locking.rst} | 2 + Documentation/process/4.Coding.rst | 2 +- Documentation/process/coding-style.rst | 2 +- Documentation/process/submit-checklist.rst | 4 +- Documentation/process/submitting-drivers.rst | 2 +- Documentation/pti/pti_intel_mid.rst | 106 + Documentation/pti/pti_intel_mid.txt | 99 - Documentation/{pwm.txt => pwm.rst} | 2 + Documentation/rapidio/index.rst | 15 + .../{mport_cdev.txt => mport_cdev.rst} | 47 +- .../rapidio/{rapidio.txt => rapidio.rst} | 39 +- .../rapidio/{rio_cm.txt => rio_cm.rst} | 66 +- .../rapidio/{sysfs.txt => sysfs.rst} | 4 + .../rapidio/{tsi721.txt => tsi721.rst} | 45 +- Documentation/{rbtree.txt => rbtree.rst} | 8 +- .../{remoteproc.txt => remoteproc.rst} | 4 +- Documentation/{rfkill.txt => rfkill.rst} | 2 + Documentation/riscv/index.rst | 17 + Documentation/riscv/{pmu.txt => pmu.rst} | 98 +- ...ust-futex-ABI.txt => robust-futex-ABI.rst} | 2 + ...{robust-futexes.txt => robust-futexes.rst} | 2 + Documentation/{rpmsg.txt => rpmsg.rst} | 2 + Documentation/{rtc.txt => rtc.rst} | 2 + Documentation/s390/{3270.txt => 3270.rst} | 85 +- Documentation/s390/Debugging390.txt | 2142 -------------- Documentation/s390/{cds.txt => cds.rst} | 354 ++- .../s390/{CommonIO => common_io.rst} | 49 +- Documentation/s390/{DASD => dasd.rst} | 33 +- Documentation/s390/debugging390.rst | 2613 +++++++++++++++++ .../{driver-model.txt => driver-model.rst} | 179 +- Documentation/s390/index.rst | 30 + .../s390/{monreader.txt => monreader.rst} | 85 +- Documentation/s390/{qeth.txt => qeth.rst} | 36 +- Documentation/s390/s390dbf.rst | 133 + Documentation/s390/s390dbf.txt | 667 ----- Documentation/s390/text_files.rst | 11 + .../s390/{vfio-ap.txt => vfio-ap.rst} | 487 +-- .../s390/{vfio-ccw.txt => vfio-ccw.rst} | 96 +- .../s390/{zfcpdump.txt => zfcpdump.rst} | 2 + .../{completion.txt => completion.rst} | 38 +- Documentation/scheduler/index.rst | 29 + .../{sched-arch.txt => sched-arch.rst} | 18 +- .../{sched-bwc.txt => sched-bwc.rst} | 30 +- ...{sched-deadline.txt => sched-deadline.rst} | 297 +- ...ed-design-CFS.txt => sched-design-CFS.rst} | 17 +- .../{sched-domains.txt => sched-domains.rst} | 8 +- .../{sched-energy.txt => sched-energy.rst} | 53 +- ...-nice-design.txt => sched-nice-design.rst} | 6 +- ...{sched-rt-group.txt => sched-rt-group.rst} | 30 +- .../{sched-stats.txt => sched-stats.rst} | 35 +- Documentation/scheduler/text_files.rst | 5 + .../{xen-tpmfront.txt => xen-tpmfront.rst} | 103 +- .../{README.cycladesZ => cyclades_z.rst} | 5 +- Documentation/serial/{driver => driver.rst} | 115 +- Documentation/serial/index.rst | 32 + Documentation/serial/moxa-smartio | 523 ---- Documentation/serial/moxa-smartio.rst | 615 ++++ Documentation/serial/n_gsm.rst | 103 + Documentation/serial/n_gsm.txt | 96 - .../serial/{rocket.txt => rocket.rst} | 144 +- ...{serial-iso7816.txt => serial-iso7816.rst} | 21 +- .../{serial-rs485.txt => serial-rs485.rst} | 22 +- Documentation/serial/{tty.txt => tty.rst} | 111 +- Documentation/{sgi-ioc4.txt => sgi-ioc4.rst} | 2 + Documentation/{siphash.txt => siphash.rst} | 2 + .../{smsc_ece1099.txt => smsc_ece1099.rst} | 2 + Documentation/sparc/{adi.txt => adi.rst} | 174 +- .../sparc/{console.txt => console.rst} | 4 +- Documentation/sparc/index.rst | 13 + .../oradax/{oracle-dax.txt => oracle-dax.rst} | 58 +- .../{speculation.txt => speculation.rst} | 2 + .../{static-keys.txt => static-keys.rst} | 2 + Documentation/{svga.txt => svga.rst} | 2 + .../{switchtec.txt => switchtec.rst} | 4 +- .../{sync_file.txt => sync_file.rst} | 2 + Documentation/sysctl/abi.rst | 67 + Documentation/sysctl/abi.txt | 54 - Documentation/sysctl/{fs.txt => fs.rst} | 141 +- Documentation/sysctl/{README => index.rst} | 36 +- .../sysctl/{kernel.txt => kernel.rst} | 378 +-- Documentation/sysctl/{net.txt => net.rst} | 141 +- .../sysctl/{sunrpc.txt => sunrpc.rst} | 13 +- Documentation/sysctl/{user.txt => user.rst} | 32 +- Documentation/sysctl/{vm.txt => vm.rst} | 264 +- Documentation/target/index.rst | 19 + Documentation/target/scripts.rst | 11 + Documentation/target/tcm_mod_builder.rst | 149 + Documentation/target/tcm_mod_builder.txt | 145 - .../{tcmu-design.txt => tcmu-design.rst} | 268 +- Documentation/{tee.txt => tee.rst} | 2 + ...pu-cooling-api.txt => cpu-cooling-api.rst} | 39 +- .../{exynos_thermal => exynos_thermal.rst} | 47 +- .../thermal/exynos_thermal_emulation | 53 - .../thermal/exynos_thermal_emulation.rst | 61 + Documentation/thermal/index.rst | 18 + ...el_powerclamp.txt => intel_powerclamp.rst} | 177 +- .../{nouveau_thermal => nouveau_thermal.rst} | 54 +- ...ower_allocator.txt => power_allocator.rst} | 140 +- .../thermal/{sysfs-api.txt => sysfs-api.rst} | 490 ++-- ...hermal => x86_pkg_temperature_thermal.rst} | 28 +- .../{this_cpu_ops.txt => this_cpu_ops.rst} | 2 + .../timers/{highres.txt => highres.rst} | 13 +- Documentation/timers/{hpet.txt => hpet.rst} | 4 +- .../timers/{hrtimers.txt => hrtimers.rst} | 6 +- Documentation/timers/index.rst | 22 + Documentation/timers/{NO_HZ.txt => no_hz.rst} | 40 +- .../{timekeeping.txt => timekeeping.rst} | 3 +- .../{timers-howto.txt => timers-howto.rst} | 15 +- Documentation/trace/coresight-cpu-debug.txt | 2 +- Documentation/trace/ftrace.rst | 1 + Documentation/trace/histogram.rst | 86 +- Documentation/trace/kprobetrace.rst | 2 +- .../it_IT/kernel-hacking/hacking.rst | 4 +- .../it_IT/kernel-hacking/locking.rst | 2 +- .../translations/it_IT/process/4.Coding.rst | 2 +- .../it_IT/process/submit-checklist.rst | 4 +- .../translations/ko_KR/memory-barriers.txt | 6 +- Documentation/translations/zh_CN/IRQ.txt | 4 +- Documentation/translations/zh_CN/arm/Booting | 4 +- .../zh_CN/arm/kernel_user_helpers.txt | 4 +- .../translations/zh_CN/arm64/booting.txt | 4 +- .../zh_CN/arm64/legacy_instructions.txt | 4 +- .../translations/zh_CN/arm64/memory.txt | 4 +- .../zh_CN/arm64/silicon-errata.txt | 4 +- .../zh_CN/arm64/tagged-pointers.txt | 4 +- .../translations/zh_CN/filesystems/sysfs.txt | 2 +- .../translations/zh_CN/io_ordering.txt | 4 +- .../translations/zh_CN/oops-tracing.txt | 2 +- .../translations/zh_CN/process/4.Coding.rst | 2 +- .../zh_CN/process/coding-style.rst | 2 +- .../zh_CN/process/submit-checklist.rst | 4 +- .../zh_CN/process/submitting-drivers.rst | 2 +- ...access.txt => unaligned-memory-access.rst} | 2 + ...ed-device.txt => vfio-mediated-device.rst} | 4 +- Documentation/{vfio.txt => vfio.rst} | 2 + .../{video-output.txt => video-output.rst} | 2 + Documentation/virtual/kvm/api.txt | 2 +- Documentation/vm/numa.rst | 6 +- Documentation/vm/page_migration.rst | 2 +- Documentation/vm/unevictable-lru.rst | 4 +- ....txt => convert_drivers_to_kernel_api.rst} | 109 +- .../watchdog/{hpwdt.txt => hpwdt.rst} | 27 +- Documentation/watchdog/index.rst | 25 + .../watchdog/{mlx-wdt.txt => mlx-wdt.rst} | 24 +- .../{pcwd-watchdog.txt => pcwd-watchdog.rst} | 13 +- .../{watchdog-api.txt => watchdog-api.rst} | 76 +- ...kernel-api.txt => watchdog-kernel-api.rst} | 91 +- .../watchdog/watchdog-parameters.rst | 736 +++++ .../watchdog/watchdog-parameters.txt | 410 --- .../{watchdog-pm.txt => watchdog-pm.rst} | 3 + Documentation/watchdog/{wdt.txt => wdt.rst} | 31 +- Documentation/x86/topology.txt | 2 +- .../x86/x86_64/fake-numa-for-cpusets | 4 +- Documentation/xilinx/{eemi.txt => eemi.rst} | 8 +- Documentation/xilinx/index.rst | 17 + Documentation/{xillybus.txt => xillybus.rst} | 2 + .../xtensa/{atomctl.txt => atomctl.rst} | 13 +- .../xtensa/{booting.txt => booting.rst} | 5 +- Documentation/xtensa/index.rst | 12 + Documentation/xtensa/mmu.rst | 195 ++ Documentation/xtensa/mmu.txt | 189 -- Documentation/{xz.txt => xz.rst} | 2 + Documentation/{zorro.txt => zorro.rst} | 2 + Kconfig | 2 +- MAINTAINERS | 132 +- arch/Kconfig | 4 +- arch/arc/plat-eznps/Kconfig | 2 +- arch/arm/Kconfig | 8 +- arch/arm/common/mcpm_entry.c | 2 +- arch/arm/common/mcpm_head.S | 2 +- arch/arm/common/vlock.S | 2 +- arch/arm/include/asm/setup.h | 2 +- arch/arm/include/uapi/asm/setup.h | 2 +- arch/arm/kernel/entry-armv.S | 2 +- arch/arm/mach-exynos/common.h | 2 +- arch/arm/mach-ixp4xx/Kconfig | 14 +- arch/arm/mach-s3c24xx/pm.c | 2 +- arch/arm/mm/Kconfig | 4 +- arch/arm/plat-samsung/Kconfig | 6 +- arch/arm/tools/mach-types | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/include/asm/efi.h | 2 +- arch/arm64/include/asm/image.h | 2 +- arch/arm64/include/uapi/asm/sigcontext.h | 2 +- arch/arm64/kernel/kexec_image.c | 2 +- arch/arm64/kernel/kuser32.S | 2 +- arch/c6x/Kconfig | 2 +- arch/ia64/hp/common/sba_iommu.c | 12 +- arch/ia64/kernel/efi.c | 2 +- arch/ia64/kernel/fsys.S | 2 +- arch/ia64/mm/ioremap.c | 2 +- arch/ia64/pci/pci.c | 2 +- arch/ia64/sn/pci/pci_dma.c | 4 +- arch/m68k/q40/README | 2 +- arch/microblaze/Kconfig.debug | 2 +- arch/microblaze/Kconfig.platform | 2 +- arch/mips/bmips/setup.c | 2 +- arch/nds32/Kconfig | 2 +- arch/openrisc/Kconfig | 2 +- arch/parisc/Kconfig | 2 +- arch/parisc/kernel/pci-dma.c | 2 +- arch/powerpc/kernel/exceptions-64s.S | 2 +- arch/powerpc/sysdev/Kconfig | 2 +- arch/riscv/Kconfig | 2 +- arch/s390/Kconfig | 4 +- arch/s390/include/asm/debug.h | 235 +- arch/sh/Kconfig | 4 +- arch/sparc/Kconfig | 2 +- arch/unicore32/include/asm/io.h | 2 +- arch/x86/Kconfig | 10 +- arch/x86/include/asm/dma-mapping.h | 4 +- arch/x86/kernel/amd_gart_64.c | 2 +- arch/xtensa/include/asm/initialize_mmu.h | 2 +- block/Kconfig | 4 +- block/Kconfig.iosched | 2 +- block/bfq-iosched.c | 2 +- block/blk-integrity.c | 2 +- block/ioprio.c | 2 +- block/mq-deadline.c | 2 +- block/partitions/Kconfig | 2 +- block/partitions/cmdline.c | 2 +- drivers/auxdisplay/Kconfig | 2 +- drivers/base/core.c | 2 +- drivers/base/platform.c | 2 +- drivers/block/Kconfig | 10 +- drivers/block/floppy.c | 2 +- drivers/block/zram/Kconfig | 6 +- drivers/cdrom/cdrom.c | 2 +- drivers/char/Kconfig | 6 +- drivers/char/hw_random/core.c | 2 +- drivers/char/ipmi/Kconfig | 2 +- drivers/char/ipmi/ipmi_si_hotmod.c | 2 +- drivers/char/ipmi/ipmi_si_intf.c | 2 +- drivers/cpufreq/Kconfig.x86 | 2 +- drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 2 +- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 2 +- drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 2 +- drivers/crypto/sunxi-ss/sun4i-ss.h | 2 +- drivers/dma-buf/Kconfig | 2 +- drivers/firmware/Kconfig | 2 +- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-cs5535.c | 2 +- drivers/gpu/drm/Kconfig | 2 +- drivers/gpu/drm/drm_ioctl.c | 2 +- drivers/gpu/drm/drm_modeset_lock.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/ide/Kconfig | 20 +- drivers/ide/ide-cd.c | 2 +- drivers/iio/Kconfig | 2 +- drivers/infiniband/core/user_mad.c | 2 +- drivers/infiniband/ulp/ipoib/Kconfig | 2 +- drivers/input/touchscreen/sun4i-ts.c | 2 +- drivers/leds/trigger/Kconfig | 2 +- drivers/leds/trigger/ledtrig-transient.c | 2 +- drivers/md/Kconfig | 2 +- drivers/md/dm-init.c | 2 +- drivers/md/dm-raid.c | 2 +- drivers/media/usb/dvb-usb-v2/anysee.c | 2 +- drivers/misc/lkdtm/core.c | 2 +- drivers/mtd/devices/Kconfig | 2 +- drivers/mtd/nand/raw/nand_ecc.c | 2 +- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- drivers/net/ethernet/smsc/Kconfig | 6 +- drivers/net/wireless/intel/iwlegacy/Kconfig | 4 +- drivers/net/wireless/intel/iwlwifi/Kconfig | 2 +- drivers/nvdimm/Kconfig | 2 +- drivers/opp/Kconfig | 2 +- drivers/parisc/sba_iommu.c | 16 +- drivers/parport/Kconfig | 2 +- drivers/pci/switch/Kconfig | 2 +- drivers/pcmcia/ds.c | 2 +- drivers/perf/qcom_l3_pmu.c | 2 +- drivers/platform/x86/Kconfig | 8 +- drivers/platform/x86/dcdbas.c | 2 +- drivers/platform/x86/dell_rbu.c | 2 +- drivers/pnp/isapnp/Kconfig | 2 +- drivers/power/supply/power_supply_core.c | 2 +- drivers/rapidio/Kconfig | 2 +- drivers/regulator/core.c | 2 +- drivers/s390/char/zcore.c | 2 +- drivers/sbus/char/oradax.c | 2 +- drivers/scsi/Kconfig | 4 +- drivers/soc/fsl/qe/qe.c | 2 +- drivers/staging/sm750fb/Kconfig | 2 +- drivers/tty/Kconfig | 8 +- drivers/tty/hvc/hvcs.c | 2 +- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/ucc_uart.c | 2 +- drivers/usb/misc/Kconfig | 4 +- drivers/vfio/Kconfig | 2 +- drivers/vfio/mdev/Kconfig | 2 +- drivers/video/fbdev/Kconfig | 38 +- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- drivers/video/fbdev/pxafb.c | 2 +- drivers/video/fbdev/sh7760fb.c | 2 +- drivers/w1/Kconfig | 2 +- drivers/watchdog/Kconfig | 6 +- drivers/watchdog/smsc37b787_wdt.c | 2 +- include/asm-generic/bitops/atomic.h | 2 +- include/linux/cgroup-defs.h | 2 +- include/linux/connector.h | 63 +- include/linux/dma-mapping.h | 2 +- include/linux/fault-inject.h | 2 +- include/linux/hw_random.h | 2 +- include/linux/interrupt.h | 2 +- include/linux/io-mapping.h | 2 +- include/linux/iopoll.h | 4 +- include/linux/jump_label.h | 2 +- include/linux/kobject.h | 2 +- include/linux/kobject_ns.h | 2 +- include/linux/lockdep.h | 2 +- include/linux/mutex.h | 2 +- include/linux/pm.h | 2 +- include/linux/rbtree.h | 2 +- include/linux/rbtree_augmented.h | 2 +- include/linux/regmap.h | 4 +- include/linux/rwsem.h | 2 +- include/linux/serial_core.h | 2 +- include/linux/thermal.h | 4 +- include/media/videobuf-dma-sg.h | 2 +- include/pcmcia/ds.h | 2 +- include/pcmcia/ss.h | 2 +- include/soc/fsl/qe/qe.h | 2 +- include/uapi/linux/bpf.h | 2 +- include/uapi/rdma/rdma_user_ioctl_cmds.h | 2 +- init/Kconfig | 12 +- kernel/cgroup/cpuset.c | 2 +- kernel/dma/debug.c | 2 +- kernel/locking/mutex.c | 2 +- kernel/locking/rtmutex.c | 2 +- kernel/padata.c | 2 +- kernel/panic.c | 2 +- kernel/power/Kconfig | 6 +- kernel/sched/deadline.c | 2 +- lib/Kconfig | 2 +- lib/Kconfig.debug | 8 +- lib/crc32.c | 2 +- lib/kobject.c | 4 +- lib/lzo/lzo1x_decompress_safe.c | 2 +- lib/xz/Kconfig | 2 +- mm/Kconfig | 2 +- mm/nommu.c | 2 +- mm/swap.c | 2 +- net/bridge/netfilter/Kconfig | 2 +- net/ipv4/netfilter/Kconfig | 2 +- net/ipv6/netfilter/Kconfig | 2 +- net/netfilter/Kconfig | 18 +- net/tipc/Kconfig | 2 +- net/wireless/Kconfig | 2 +- samples/Kconfig | 2 +- samples/kprobes/kprobe_example.c | 2 +- samples/kprobes/kretprobe_example.c | 2 +- scripts/Kbuild.include | 4 +- scripts/Makefile.host | 2 +- scripts/checkpatch.pl | 8 +- scripts/coccinelle/free/devm_free.cocci | 2 +- scripts/documentation-file-ref-check | 5 +- scripts/gcc-plugins/Kconfig | 2 +- scripts/kconfig/symbol.c | 2 +- .../tests/err_recursive_dep/expected_stderr | 14 +- security/Kconfig | 2 +- security/device_cgroup.c | 2 +- sound/oss/dmasound/Kconfig | 6 +- tools/include/linux/rbtree.h | 2 +- tools/include/linux/rbtree_augmented.h | 2 +- tools/include/uapi/linux/bpf.h | 2 +- .../Documentation/stack-validation.txt | 2 +- tools/testing/fault-injection/failcmd.sh | 2 +- tools/testing/selftests/zram/README | 2 +- usr/Kconfig | 2 +- 961 files changed, 31818 insertions(+), 24040 deletions(-) rename Documentation/{DMA-API-HOWTO.txt => DMA-API-HOWTO.rst} (99%) rename Documentation/{DMA-API.txt => DMA-API.rst} (99%) rename Documentation/{DMA-ISA-LPC.txt => DMA-ISA-LPC.rst} (98%) rename Documentation/{DMA-attributes.txt => DMA-attributes.rst} (99%) rename Documentation/EDID/{HOWTO.txt => howto.rst} (83%) rename Documentation/{IPMI.txt => IPMI.rst} (99%) rename Documentation/{IRQ-affinity.txt => IRQ-affinity.rst} (99%) rename Documentation/{IRQ-domain.txt => IRQ-domain.rst} (99%) rename Documentation/{IRQ.txt => IRQ.rst} (99%) rename Documentation/{Intel-IOMMU.txt => Intel-IOMMU.rst} (99%) rename Documentation/{SAK.txt => SAK.rst} (99%) rename Documentation/{SM501.txt => SM501.rst} (99%) rename Documentation/accounting/{cgroupstats.txt => cgroupstats.rst} (77%) rename Documentation/accounting/{delay-accounting.txt => delay-accounting.rst} (77%) create mode 100644 Documentation/accounting/index.rst rename Documentation/accounting/{psi.txt => psi.rst} (91%) rename Documentation/accounting/{taskstats-struct.txt => taskstats-struct.rst} (90%) rename Documentation/accounting/{taskstats.txt => taskstats.rst} (95%) rename Documentation/aoe/{aoe.txt => aoe.rst} (79%) create mode 100644 Documentation/aoe/examples.rst create mode 100644 Documentation/aoe/index.rst rename Documentation/aoe/{todo.txt => todo.rst} (98%) delete mode 100644 Documentation/arm/Marvell/README delete mode 100644 Documentation/arm/Netwinder delete mode 100644 Documentation/arm/SA1100/FreeBird delete mode 100644 Documentation/arm/SA1100/empeg delete mode 100644 Documentation/arm/SA1100/serial_UART rename Documentation/arm/{README => arm.rst} (88%) rename Documentation/arm/{Booting => booting.rst} (89%) rename Documentation/arm/{cluster-pm-race-avoidance.txt => cluster-pm-race-avoidance.rst} (84%) rename Documentation/arm/{firmware.txt => firmware.rst} (86%) create mode 100644 Documentation/arm/index.rst rename Documentation/arm/{Interrupts => interrupts.rst} (81%) rename Documentation/arm/{IXP4xx => ixp4xx.rst} (84%) rename Documentation/arm/{kernel_mode_neon.txt => kernel_mode_neon.rst} (99%) rename Documentation/arm/{kernel_user_helpers.txt => kernel_user_helpers.rst} (78%) rename Documentation/arm/keystone/{knav-qmss.txt => knav-qmss.rst} (92%) rename Documentation/arm/keystone/{Overview.txt => overview.rst} (59%) create mode 100644 Documentation/arm/marvel.rst rename Documentation/arm/{mem_alignment => mem_alignment.rst} (89%) rename Documentation/arm/{memory.txt => memory.rst} (90%) rename Documentation/arm/{Microchip/README => microchip.rst} (92%) create mode 100644 Documentation/arm/netwinder.rst create mode 100644 Documentation/arm/nwfpe/index.rst rename Documentation/arm/nwfpe/{README.FPE => netwinder-fpe.rst} (94%) rename Documentation/arm/nwfpe/{NOTES => notes.rst} (99%) rename Documentation/arm/nwfpe/{README => nwfpe.rst} (98%) rename Documentation/arm/nwfpe/{TODO => todo.rst} (75%) rename Documentation/arm/{OMAP/DSS => omap/dss.rst} (86%) create mode 100644 Documentation/arm/omap/index.rst rename Documentation/arm/{OMAP/README => omap/omap.rst} (62%) rename Documentation/arm/{OMAP/omap_pm => omap/omap_pm.rst} (83%) rename Documentation/arm/{Porting => porting.rst} (94%) rename Documentation/arm/pxa/{mfp.txt => mfp.rst} (83%) rename Documentation/arm/{SA1100/ADSBitsy => sa1100/adsbitsy.rst} (90%) rename Documentation/arm/{SA1100/Assabet => sa1100/assabet.rst} (62%) rename Documentation/arm/{SA1100/Brutus => sa1100/brutus.rst} (75%) rename Documentation/arm/{SA1100/CERF => sa1100/cerf.rst} (91%) create mode 100644 Documentation/arm/sa1100/freebird.rst rename Documentation/arm/{SA1100/GraphicsClient => sa1100/graphicsclient.rst} (87%) rename Documentation/arm/{SA1100/GraphicsMaster => sa1100/graphicsmaster.rst} (92%) rename Documentation/arm/{SA1100/HUW_WEBPANEL => sa1100/huw_webpanel.rst} (78%) create mode 100644 Documentation/arm/sa1100/index.rst rename Documentation/arm/{SA1100/Itsy => sa1100/itsy.rst} (88%) rename Documentation/arm/{SA1100/LART => sa1100/lart.rst} (90%) rename Documentation/arm/{SA1100/nanoEngine => sa1100/nanoengine.rst} (74%) rename Documentation/arm/{SA1100/Pangolin => sa1100/pangolin.rst} (81%) rename Documentation/arm/{SA1100/PLEB => sa1100/pleb.rst} (95%) create mode 100644 Documentation/arm/sa1100/serial_uart.rst rename Documentation/arm/{SA1100/Tifon => sa1100/tifon.rst} (88%) rename Documentation/arm/{SA1100/Yopy => sa1100/yopy.rst} (74%) rename Documentation/arm/{Samsung-S3C24XX/CPUfreq.txt => samsung-s3c24xx/cpufreq.rst} (96%) rename Documentation/arm/{Samsung-S3C24XX/EB2410ITX.txt => samsung-s3c24xx/eb2410itx.rst} (92%) rename Documentation/arm/{Samsung-S3C24XX/GPIO.txt => samsung-s3c24xx/gpio.rst} (89%) rename Documentation/arm/{Samsung-S3C24XX/H1940.txt => samsung-s3c24xx/h1940.rst} (94%) create mode 100644 Documentation/arm/samsung-s3c24xx/index.rst rename Documentation/arm/{Samsung-S3C24XX/NAND.txt => samsung-s3c24xx/nand.rst} (92%) rename Documentation/arm/{Samsung-S3C24XX/Overview.txt => samsung-s3c24xx/overview.rst} (94%) rename Documentation/arm/{Samsung-S3C24XX/S3C2412.txt => samsung-s3c24xx/s3c2412.rst} (96%) rename Documentation/arm/{Samsung-S3C24XX/S3C2413.txt => samsung-s3c24xx/s3c2413.rst} (77%) rename Documentation/arm/{Samsung-S3C24XX/SMDK2440.txt => samsung-s3c24xx/smdk2440.rst} (94%) rename Documentation/arm/{Samsung-S3C24XX/Suspend.txt => samsung-s3c24xx/suspend.rst} (94%) rename Documentation/arm/{Samsung-S3C24XX/USB-Host.txt => samsung-s3c24xx/usb-host.rst} (94%) rename Documentation/arm/{Samsung/Bootloader-interface.txt => samsung/bootloader-interface.rst} (72%) rename Documentation/arm/{Samsung => samsung}/clksrc-change-registers.awk (100%) rename Documentation/arm/{Samsung/GPIO.txt => samsung/gpio.rst} (87%) create mode 100644 Documentation/arm/samsung/index.rst rename Documentation/arm/{Samsung/Overview.txt => samsung/overview.rst} (86%) rename Documentation/arm/{Setup => setup.rst} (87%) rename Documentation/arm/{SH-Mobile => sh-mobile}/.gitignore (100%) rename Documentation/arm/{SPEAr/overview.txt => spear/overview.rst} (91%) rename Documentation/arm/sti/{overview.txt => overview.rst} (82%) rename Documentation/arm/sti/{stih407-overview.txt => stih407-overview.rst} (82%) rename Documentation/arm/sti/{stih415-overview.txt => stih415-overview.rst} (79%) rename Documentation/arm/sti/{stih416-overview.txt => stih416-overview.rst} (83%) rename Documentation/arm/sti/{stih418-overview.txt => stih418-overview.rst} (83%) rename Documentation/arm/{sunxi/README => sunxi.rst} (83%) rename Documentation/arm/sunxi/{clocks.txt => clocks.rst} (92%) rename Documentation/arm/{swp_emulation => swp_emulation.rst} (63%) rename Documentation/arm/{tcm.txt => tcm.rst} (86%) rename Documentation/arm/{uefi.txt => uefi.rst} (63%) rename Documentation/arm/{VFP/release-notes.txt => vfp/release-notes.rst} (92%) rename Documentation/arm/{vlocks.txt => vlocks.rst} (98%) rename Documentation/arm64/{acpi_object_usage.txt => acpi_object_usage.rst} (84%) rename Documentation/arm64/{arm-acpi.txt => arm-acpi.rst} (86%) rename Documentation/arm64/{booting.txt => booting.rst} (86%) rename Documentation/arm64/{cpu-feature-registers.txt => cpu-feature-registers.rst} (66%) rename Documentation/arm64/{elf_hwcaps.txt => elf_hwcaps.rst} (92%) rename Documentation/arm64/{hugetlbpage.txt => hugetlbpage.rst} (86%) create mode 100644 Documentation/arm64/index.rst rename Documentation/arm64/{legacy_instructions.txt => legacy_instructions.rst} (73%) create mode 100644 Documentation/arm64/memory.rst delete mode 100644 Documentation/arm64/memory.txt rename Documentation/arm64/{pointer-authentication.txt => pointer-authentication.rst} (98%) rename Documentation/arm64/{silicon-errata.txt => silicon-errata.rst} (55%) rename Documentation/arm64/{sve.txt => sve.rst} (98%) rename Documentation/arm64/{tagged-pointers.txt => tagged-pointers.rst} (94%) rename Documentation/{atomic_bitops.txt => atomic_bitops.rst} (99%) rename Documentation/auxdisplay/{lcd-panel-cgram.txt => lcd-panel-cgram.rst} (88%) create mode 100644 Documentation/backlight/lp855x-driver.rst delete mode 100644 Documentation/backlight/lp855x-driver.txt rename Documentation/block/{bfq-iosched.txt => bfq-iosched.rst} (95%) rename Documentation/block/{biodoc.txt => biodoc.rst} (83%) rename Documentation/block/{biovecs.txt => biovecs.rst} (92%) create mode 100644 Documentation/block/capability.rst delete mode 100644 Documentation/block/capability.txt rename Documentation/block/{cmdline-partition.txt => cmdline-partition.rst} (92%) rename Documentation/block/{data-integrity.txt => data-integrity.rst} (92%) rename Documentation/block/{deadline-iosched.txt => deadline-iosched.rst} (89%) create mode 100644 Documentation/block/index.rst rename Documentation/block/{ioprio.txt => ioprio.rst} (75%) rename Documentation/block/{kyber-iosched.txt => kyber-iosched.rst} (86%) rename Documentation/block/{null_blk.txt => null_blk.rst} (60%) rename Documentation/block/{pr.txt => pr.rst} (95%) rename Documentation/block/{queue-sysfs.txt => queue-sysfs.rst} (99%) rename Documentation/block/{request.txt => request.rst} (59%) rename Documentation/block/{stat.txt => stat.rst} (89%) rename Documentation/block/{switching-sched.txt => switching-sched.rst} (71%) rename Documentation/block/{writeback_cache_control.txt => writeback_cache_control.rst} (94%) rename Documentation/blockdev/drbd/{data-structure-v9.txt => data-structure-v9.rst} (94%) create mode 100644 Documentation/blockdev/drbd/figures.rst rename Documentation/blockdev/drbd/{README.txt => index.rst} (55%) rename Documentation/blockdev/{floppy.txt => floppy.rst} (81%) create mode 100644 Documentation/blockdev/index.rst rename Documentation/blockdev/{nbd.txt => nbd.rst} (96%) rename Documentation/blockdev/{paride.txt => paride.rst} (85%) rename Documentation/blockdev/{ramdisk.txt => ramdisk.rst} (84%) rename Documentation/blockdev/{zram.txt => zram.rst} (76%) rename Documentation/{bt8xxgpio.txt => bt8xxgpio.rst} (99%) rename Documentation/{btmrvl.txt => btmrvl.rst} (99%) rename Documentation/bus-devices/{ti-gpmc.txt => ti-gpmc.rst} (58%) rename Documentation/{bus-virt-phys-mapping.txt => bus-virt-phys-mapping.rst} (99%) delete mode 100644 Documentation/cdrom/Makefile create mode 100644 Documentation/cdrom/cdrom-standard.rst delete mode 100644 Documentation/cdrom/cdrom-standard.tex rename Documentation/cdrom/{ide-cd => ide-cd.rst} (82%) create mode 100644 Documentation/cdrom/index.rst rename Documentation/cdrom/{packet-writing.txt => packet-writing.rst} (91%) rename Documentation/cgroup-v1/{blkio-controller.txt => blkio-controller.rst} (89%) rename Documentation/cgroup-v1/{cgroups.txt => cgroups.rst} (88%) rename Documentation/cgroup-v1/{cpuacct.txt => cpuacct.rst} (90%) rename Documentation/cgroup-v1/{cpusets.txt => cpusets.rst} (90%) rename Documentation/cgroup-v1/{devices.txt => devices.rst} (88%) rename Documentation/cgroup-v1/{freezer-subsystem.txt => freezer-subsystem.rst} (95%) rename Documentation/cgroup-v1/{hugetlb.txt => hugetlb.rst} (74%) create mode 100644 Documentation/cgroup-v1/index.rst rename Documentation/cgroup-v1/{memcg_test.txt => memcg_test.rst} (62%) rename Documentation/cgroup-v1/{memory.txt => memory.rst} (71%) rename Documentation/cgroup-v1/{net_cls.txt => net_cls.rst} (50%) rename Documentation/cgroup-v1/{net_prio.txt => net_prio.rst} (71%) rename Documentation/cgroup-v1/{pids.txt => pids.rst} (62%) rename Documentation/cgroup-v1/{rdma.txt => rdma.rst} (79%) rename Documentation/{clearing-warn-once.txt => clearing-warn-once.rst} (96%) rename Documentation/cma/{debugfs.txt => debugfs.rst} (91%) rename Documentation/connector/{connector.txt => connector.rst} (57%) rename Documentation/console/{console.txt => console.rst} (80%) rename Documentation/cpu-freq/{amd-powernow.txt => amd-powernow.rst} (91%) rename Documentation/cpu-freq/{core.txt => core.rst} (66%) rename Documentation/cpu-freq/{cpu-drivers.txt => cpu-drivers.rst} (57%) rename Documentation/cpu-freq/{cpufreq-nforce2.txt => cpufreq-nforce2.rst} (65%) create mode 100644 Documentation/cpu-freq/cpufreq-stats.rst delete mode 100644 Documentation/cpu-freq/cpufreq-stats.txt create mode 100644 Documentation/cpu-freq/index.rst delete mode 100644 Documentation/cpu-freq/index.txt rename Documentation/cpu-freq/{pcc-cpufreq.txt => pcc-cpufreq.rst} (80%) rename Documentation/{cpu-load.txt => cpu-load.rst} (99%) rename Documentation/{cputopology.txt => cputopology.rst} (99%) rename Documentation/{crc32.txt => crc32.rst} (99%) rename Documentation/{dcdbas.txt => dcdbas.rst} (99%) rename Documentation/{debugging-modules.txt => debugging-modules.rst} (98%) rename Documentation/{debugging-via-ohci1394.txt => debugging-via-ohci1394.rst} (99%) rename Documentation/{dell_rbu.txt => dell_rbu.rst} (99%) rename Documentation/device-mapper/{cache-policies.txt => cache-policies.rst} (94%) rename Documentation/device-mapper/{cache.txt => cache.rst} (61%) rename Documentation/device-mapper/{delay.txt => delay.rst} (53%) rename Documentation/device-mapper/{dm-crypt.txt => dm-crypt.rst} (87%) rename Documentation/device-mapper/{dm-flakey.txt => dm-flakey.rst} (60%) rename Documentation/device-mapper/{dm-init.txt => dm-init.rst} (68%) rename Documentation/device-mapper/{dm-integrity.txt => dm-integrity.rst} (90%) rename Documentation/device-mapper/{dm-io.txt => dm-io.rst} (92%) rename Documentation/device-mapper/{dm-log.txt => dm-log.rst} (90%) rename Documentation/device-mapper/{dm-queue-length.txt => dm-queue-length.rst} (76%) rename Documentation/device-mapper/{dm-raid.txt => dm-raid.rst} (71%) rename Documentation/device-mapper/{dm-service-time.txt => dm-service-time.rst} (60%) create mode 100644 Documentation/device-mapper/dm-uevent.rst delete mode 100644 Documentation/device-mapper/dm-uevent.txt rename Documentation/device-mapper/{dm-zoned.txt => dm-zoned.rst} (97%) rename Documentation/device-mapper/{era.txt => era.rst} (70%) create mode 100644 Documentation/device-mapper/index.rst rename Documentation/device-mapper/{kcopyd.txt => kcopyd.rst} (93%) create mode 100644 Documentation/device-mapper/linear.rst delete mode 100644 Documentation/device-mapper/linear.txt rename Documentation/device-mapper/{log-writes.txt => log-writes.rst} (61%) rename Documentation/device-mapper/{persistent-data.txt => persistent-data.rst} (98%) rename Documentation/device-mapper/{snapshot.txt => snapshot.rst} (62%) rename Documentation/device-mapper/{statistics.txt => statistics.rst} (86%) create mode 100644 Documentation/device-mapper/striped.rst delete mode 100644 Documentation/device-mapper/striped.txt rename Documentation/device-mapper/{switch.txt => switch.rst} (84%) rename Documentation/device-mapper/{thin-provisioning.txt => thin-provisioning.rst} (92%) rename Documentation/device-mapper/{unstriped.txt => unstriped.rst} (60%) rename Documentation/device-mapper/{verity.txt => verity.rst} (98%) rename Documentation/device-mapper/{writecache.txt => writecache.rst} (96%) rename Documentation/device-mapper/{zero.txt => zero.rst} (83%) rename Documentation/{digsig.txt => digsig.rst} (99%) rename Documentation/{pps/pps.txt => driver-api/pps.rst} (89%) rename Documentation/{ptp/ptp.txt => driver-api/ptp.rst} (88%) rename Documentation/driver-model/{binding.txt => binding.rst} (92%) rename Documentation/driver-model/{bus.txt => bus.rst} (76%) rename Documentation/driver-model/{class.txt => class.rst} (75%) rename Documentation/driver-model/{design-patterns.txt => design-patterns.rst} (59%) rename Documentation/driver-model/{device.txt => device.rst} (69%) rename Documentation/driver-model/{devres.txt => devres.rst} (93%) rename Documentation/driver-model/{driver.txt => driver.rst} (75%) create mode 100644 Documentation/driver-model/index.rst rename Documentation/driver-model/{overview.txt => overview.rst} (90%) rename Documentation/driver-model/{platform.txt => platform.rst} (95%) rename Documentation/driver-model/{porting.txt => porting.rst} (62%) rename Documentation/early-userspace/{buffer-format.txt => buffer-format.rst} (91%) rename Documentation/early-userspace/{README => early_userspace_support.rst} (99%) create mode 100644 Documentation/early-userspace/index.rst rename Documentation/{efi-stub.txt => efi-stub.rst} (99%) rename Documentation/{eisa.txt => eisa.rst} (98%) rename Documentation/fault-injection/{fault-injection.txt => fault-injection.rst} (68%) create mode 100644 Documentation/fault-injection/index.rst rename Documentation/fault-injection/{notifier-error-inject.txt => notifier-error-inject.rst} (83%) create mode 100644 Documentation/fault-injection/nvme-fault-injection.rst delete mode 100644 Documentation/fault-injection/nvme-fault-injection.txt create mode 100644 Documentation/fault-injection/provoke-crashes.rst delete mode 100644 Documentation/fault-injection/provoke-crashes.txt rename Documentation/fb/{api.txt => api.rst} (97%) rename Documentation/fb/{arkfb.txt => arkfb.rst} (92%) rename Documentation/fb/{aty128fb.txt => aty128fb.rst} (61%) rename Documentation/fb/{cirrusfb.txt => cirrusfb.rst} (75%) rename Documentation/fb/{cmap_xfbdev.txt => cmap_xfbdev.rst} (50%) rename Documentation/fb/{deferred_io.txt => deferred_io.rst} (86%) rename Documentation/fb/{efifb.txt => efifb.rst} (75%) rename Documentation/fb/{ep93xx-fb.txt => ep93xx-fb.rst} (85%) rename Documentation/fb/{fbcon.txt => fbcon.rst} (68%) rename Documentation/fb/{framebuffer.txt => framebuffer.rst} (92%) rename Documentation/fb/{gxfb.txt => gxfb.rst} (60%) create mode 100644 Documentation/fb/index.rst rename Documentation/fb/{intel810.txt => intel810.rst} (83%) rename Documentation/fb/{intelfb.txt => intelfb.rst} (73%) rename Documentation/fb/{internals.txt => internals.rst} (82%) rename Documentation/fb/{lxfb.txt => lxfb.rst} (60%) create mode 100644 Documentation/fb/matroxfb.rst delete mode 100644 Documentation/fb/matroxfb.txt rename Documentation/fb/{metronomefb.txt => metronomefb.rst} (98%) rename Documentation/fb/{modedb.txt => modedb.rst} (87%) create mode 100644 Documentation/fb/pvr2fb.rst delete mode 100644 Documentation/fb/pvr2fb.txt rename Documentation/fb/{pxafb.txt => pxafb.rst} (78%) rename Documentation/fb/{s3fb.txt => s3fb.rst} (94%) rename Documentation/fb/{sa1100fb.txt => sa1100fb.rst} (64%) create mode 100644 Documentation/fb/sh7760fb.rst delete mode 100644 Documentation/fb/sh7760fb.txt rename Documentation/fb/{sisfb.txt => sisfb.rst} (85%) rename Documentation/fb/{sm501.txt => sm501.rst} (65%) rename Documentation/fb/{sm712fb.txt => sm712fb.rst} (59%) create mode 100644 Documentation/fb/sstfb.rst delete mode 100644 Documentation/fb/sstfb.txt rename Documentation/fb/{tgafb.txt => tgafb.rst} (71%) rename Documentation/fb/{tridentfb.txt => tridentfb.rst} (70%) rename Documentation/fb/{udlfb.txt => udlfb.rst} (77%) rename Documentation/fb/{uvesafb.txt => uvesafb.rst} (52%) rename Documentation/fb/{vesafb.txt => vesafb.rst} (56%) create mode 100644 Documentation/fb/viafb.rst delete mode 100644 Documentation/fb/viafb.txt rename Documentation/fb/{vt8623fb.txt => vt8623fb.rst} (85%) rename Documentation/fmc/{API.txt => api.rst} (87%) rename Documentation/fmc/{carrier.txt => carrier.rst} (91%) rename Documentation/fmc/{FMC-and-SDB.txt => fmc-and-sdb.rst} (88%) rename Documentation/fmc/{fmc-chardev.txt => fmc-chardev.rst} (96%) rename Documentation/fmc/{fmc-fakedev.txt => fmc-fakedev.rst} (85%) rename Documentation/fmc/{fmc-trivial.txt => fmc-trivial.rst} (69%) rename Documentation/fmc/{fmc-write-eeprom.txt => fmc-write-eeprom.rst} (79%) rename Documentation/fmc/{identifiers.txt => identifiers.rst} (93%) create mode 100644 Documentation/fmc/index.rst rename Documentation/fmc/{mezzanine.txt => mezzanine.rst} (87%) rename Documentation/fmc/{parameters.txt => parameters.rst} (96%) rename Documentation/fpga/{dfl.txt => dfl.rst} (89%) create mode 100644 Documentation/fpga/index.rst rename Documentation/{futex-requeue-pi.txt => futex-requeue-pi.rst} (99%) rename Documentation/{gcc-plugins.txt => gcc-plugins.rst} (99%) create mode 100644 Documentation/gpio/index.rst rename Documentation/gpio/{sysfs.txt => sysfs.rst} (86%) rename Documentation/hid/{hid-alps.txt => hid-alps.rst} (64%) rename Documentation/hid/{hid-sensor.txt => hid-sensor.rst} (61%) rename Documentation/hid/{hid-transport.txt => hid-transport.rst} (93%) rename Documentation/hid/{hiddev.txt => hiddev.rst} (80%) rename Documentation/hid/{hidraw.txt => hidraw.rst} (89%) create mode 100644 Documentation/hid/index.rst create mode 100644 Documentation/hid/intel-ish-hid.rst delete mode 100644 Documentation/hid/intel-ish-hid.txt rename Documentation/hid/{uhid.txt => uhid.rst} (94%) rename Documentation/{highuid.txt => highuid.rst} (99%) rename Documentation/{hw_random.txt => hw_random.rst} (99%) rename Documentation/{hwspinlock.txt => hwspinlock.rst} (99%) rename Documentation/ia64/{aliasing.txt => aliasing.rst} (84%) rename Documentation/ia64/{efirtc.txt => efirtc.rst} (76%) rename Documentation/ia64/{err_inject.txt => err_inject.rst} (82%) rename Documentation/ia64/{fsys.txt => fsys.rst} (76%) rename Documentation/ia64/{README => ia64.rst} (61%) create mode 100644 Documentation/ia64/index.rst rename Documentation/ia64/{IRQ-redir.txt => irq-redir.rst} (84%) rename Documentation/ia64/{mca.txt => mca.rst} (96%) rename Documentation/ia64/{serial.txt => serial.rst} (87%) create mode 100644 Documentation/ia64/xen.rst delete mode 100644 Documentation/ia64/xen.txt create mode 100644 Documentation/ide/changelogs.rst rename Documentation/ide/{ide-tape.txt => ide-tape.rst} (83%) rename Documentation/ide/{ide.txt => ide.rst} (72%) create mode 100644 Documentation/ide/index.rst rename Documentation/ide/{warm-plug-howto.txt => warm-plug-howto.rst} (61%) rename Documentation/iio/{ep93xx_adc.txt => ep93xx_adc.rst} (71%) rename Documentation/iio/{iio_configfs.txt => iio_configfs.rst} (73%) create mode 100644 Documentation/iio/index.rst rename Documentation/infiniband/{core_locking.txt => core_locking.rst} (78%) create mode 100644 Documentation/infiniband/index.rst rename Documentation/infiniband/{ipoib.txt => ipoib.rst} (90%) rename Documentation/infiniband/{opa_vnic.txt => opa_vnic.rst} (63%) rename Documentation/infiniband/{sysfs.txt => sysfs.rst} (69%) rename Documentation/infiniband/{tag_matching.txt => tag_matching.rst} (98%) rename Documentation/infiniband/{user_mad.txt => user_mad.rst} (90%) rename Documentation/infiniband/{user_verbs.txt => user_verbs.rst} (93%) rename Documentation/{intel_txt.txt => intel_txt.rst} (99%) rename Documentation/{io-mapping.txt => io-mapping.rst} (99%) rename Documentation/{io_ordering.txt => io_ordering.rst} (99%) rename Documentation/ioctl/{botching-up-ioctls.txt => botching-up-ioctls.rst} (99%) create mode 100644 Documentation/ioctl/cdrom.rst delete mode 100644 Documentation/ioctl/cdrom.txt rename Documentation/ioctl/{hdio.txt => hdio.rst} (54%) create mode 100644 Documentation/ioctl/index.rst rename Documentation/ioctl/{ioctl-decoding.txt => ioctl-decoding.rst} (54%) create mode 100644 Documentation/ioctl/ioctl-number.rst delete mode 100644 Documentation/ioctl/ioctl-number.txt rename Documentation/{iostats.txt => iostats.rst} (99%) rename Documentation/{irqflags-tracing.txt => irqflags-tracing.rst} (99%) rename Documentation/{isa.txt => isa.rst} (99%) rename Documentation/{isapnp.txt => isapnp.rst} (98%) rename Documentation/kbuild/{headers_install.txt => headers_install.rst} (96%) create mode 100644 Documentation/kbuild/index.rst create mode 100644 Documentation/kbuild/issues.rst rename Documentation/kbuild/{kbuild.txt => kbuild.rst} (72%) rename Documentation/kbuild/{kconfig-language.txt => kconfig-language.rst} (85%) rename Documentation/kbuild/{kconfig-macro-language.txt => kconfig-macro-language.rst} (94%) rename Documentation/kbuild/{kconfig.txt => kconfig.rst} (80%) rename Documentation/kbuild/{makefiles.txt => makefiles.rst} (84%) rename Documentation/kbuild/{modules.txt => modules.rst} (84%) create mode 100644 Documentation/kdump/index.rst rename Documentation/kdump/{kdump.txt => kdump.rst} (91%) rename Documentation/kdump/{vmcoreinfo.txt => vmcoreinfo.rst} (95%) rename Documentation/{kernel-per-CPU-kthreads.txt => kernel-per-CPU-kthreads.rst} (99%) rename Documentation/{kobject.txt => kobject.rst} (99%) rename Documentation/{kprobes.txt => kprobes.rst} (99%) rename Documentation/{kref.txt => kref.rst} (99%) rename Documentation/laptops/{asus-laptop.txt => asus-laptop.rst} (84%) rename Documentation/laptops/{disk-shock-protection.txt => disk-shock-protection.rst} (91%) create mode 100644 Documentation/laptops/index.rst rename Documentation/laptops/{laptop-mode.txt => laptop-mode.rst} (62%) rename Documentation/laptops/{sony-laptop.txt => sony-laptop.rst} (85%) rename Documentation/laptops/{sonypi.txt => sonypi.rst} (87%) rename Documentation/laptops/{thinkpad-acpi.txt => thinkpad-acpi.rst} (88%) rename Documentation/laptops/{toshiba_haps.txt => toshiba_haps.rst} (60%) rename Documentation/{ldm.txt => ldm.rst} (99%) create mode 100644 Documentation/leds/index.rst rename Documentation/leds/{leds-blinkm.txt => leds-blinkm.rst} (56%) rename Documentation/leds/{leds-class-flash.txt => leds-class-flash.rst} (74%) rename Documentation/leds/{leds-class.txt => leds-class.rst} (92%) rename Documentation/leds/{leds-lm3556.txt => leds-lm3556.rst} (70%) rename Documentation/leds/{leds-lp3944.txt => leds-lp3944.rst} (78%) create mode 100644 Documentation/leds/leds-lp5521.rst delete mode 100644 Documentation/leds/leds-lp5521.txt create mode 100644 Documentation/leds/leds-lp5523.rst delete mode 100644 Documentation/leds/leds-lp5523.txt create mode 100644 Documentation/leds/leds-lp5562.rst delete mode 100644 Documentation/leds/leds-lp5562.txt create mode 100644 Documentation/leds/leds-lp55xx.rst delete mode 100644 Documentation/leds/leds-lp55xx.txt create mode 100644 Documentation/leds/leds-mlxcpld.rst delete mode 100644 Documentation/leds/leds-mlxcpld.txt rename Documentation/leds/{ledtrig-oneshot.txt => ledtrig-oneshot.rst} (90%) rename Documentation/leds/{ledtrig-transient.txt => ledtrig-transient.rst} (81%) rename Documentation/leds/{ledtrig-usbport.txt => ledtrig-usbport.rst} (86%) rename Documentation/leds/{uleds.txt => uleds.rst} (95%) rename Documentation/livepatch/{callbacks.txt => callbacks.rst} (94%) rename Documentation/livepatch/{cumulative-patches.txt => cumulative-patches.rst} (89%) create mode 100644 Documentation/livepatch/index.rst rename Documentation/livepatch/{livepatch.txt => livepatch.rst} (93%) rename Documentation/livepatch/{module-elf-format.txt => module-elf-format.rst} (68%) rename Documentation/livepatch/{shadow-vars.txt => shadow-vars.rst} (87%) create mode 100644 Documentation/locking/index.rst rename Documentation/locking/{lockdep-design.txt => lockdep-design.rst} (93%) create mode 100644 Documentation/locking/lockstat.rst delete mode 100644 Documentation/locking/lockstat.txt rename Documentation/locking/{locktorture.txt => locktorture.rst} (57%) rename Documentation/locking/{mutex-design.txt => mutex-design.rst} (94%) rename Documentation/locking/{rt-mutex-design.txt => rt-mutex-design.rst} (91%) rename Documentation/locking/{rt-mutex.txt => rt-mutex.rst} (70%) rename Documentation/locking/{spinlocks.txt => spinlocks.rst} (89%) rename Documentation/locking/{ww-mutex-design.txt => ww-mutex-design.rst} (93%) rename Documentation/{lockup-watchdogs.txt => lockup-watchdogs.rst} (99%) rename Documentation/{lsm.txt => lsm.rst} (99%) rename Documentation/{lzo.txt => lzo.rst} (99%) create mode 100644 Documentation/m68k/index.rst rename Documentation/m68k/{kernel-options.txt => kernel-options.rst} (78%) rename Documentation/{mailbox.txt => mailbox.rst} (99%) create mode 100644 Documentation/md/index.rst rename Documentation/md/{md-cluster.txt => md-cluster.rst} (68%) rename Documentation/md/{raid5-cache.txt => raid5-cache.rst} (92%) rename Documentation/md/{raid5-ppl.txt => raid5-ppl.rst} (98%) rename Documentation/memory-devices/{ti-emif.txt => ti-emif.rst} (81%) rename Documentation/{men-chameleon-bus.txt => men-chameleon-bus.rst} (99%) create mode 100644 Documentation/mic/index.rst rename Documentation/mic/{mic_overview.txt => mic_overview.rst} (96%) rename Documentation/mic/{scif_overview.txt => scif_overview.rst} (76%) create mode 100644 Documentation/mmc/index.rst rename Documentation/mmc/{mmc-async-req.txt => mmc-async-req.rst} (75%) rename Documentation/mmc/{mmc-dev-attrs.txt => mmc-dev-attrs.rst} (73%) rename Documentation/mmc/{mmc-dev-parts.txt => mmc-dev-parts.rst} (83%) rename Documentation/mmc/{mmc-tools.txt => mmc-tools.rst} (92%) create mode 100644 Documentation/mtd/index.rst rename Documentation/mtd/{intel-spi.txt => intel-spi.rst} (71%) rename Documentation/mtd/{nand_ecc.txt => nand_ecc.rst} (67%) rename Documentation/mtd/{spi-nor.txt => spi-nor.rst} (94%) rename Documentation/namespaces/{compatibility-list.txt => compatibility-list.rst} (86%) create mode 100644 Documentation/namespaces/index.rst rename Documentation/namespaces/{resource-control.txt => resource-control.rst} (89%) rename Documentation/netlabel/{cipso_ipv4.txt => cipso_ipv4.rst} (87%) create mode 100644 Documentation/netlabel/draft_ietf.rst create mode 100644 Documentation/netlabel/index.rst rename Documentation/netlabel/{introduction.txt => introduction.rst} (91%) rename Documentation/netlabel/{lsm_interface.txt => lsm_interface.rst} (88%) create mode 100644 Documentation/nfc/index.rst rename Documentation/nfc/{nfc-hci.txt => nfc-hci.rst} (71%) rename Documentation/nfc/{nfc-pn544.txt => nfc-pn544.rst} (82%) rename Documentation/{nommu-mmap.txt => nommu-mmap.rst} (99%) rename Documentation/{ntb.txt => ntb.rst} (99%) rename Documentation/{numastat.txt => numastat.rst} (99%) rename Documentation/nvdimm/{btt.txt => btt.rst} (71%) create mode 100644 Documentation/nvdimm/index.rst rename Documentation/nvdimm/{nvdimm.txt => nvdimm.rst} (60%) rename Documentation/nvdimm/{security.txt => security.rst} (99%) rename Documentation/nvmem/{nvmem.txt => nvmem.rst} (62%) rename Documentation/{padata.txt => padata.rst} (99%) rename Documentation/{parport-lowlevel.txt => parport-lowlevel.rst} (99%) rename Documentation/pcmcia/{devicetable.txt => devicetable.rst} (97%) rename Documentation/pcmcia/{driver-changes.txt => driver-changes.rst} (90%) rename Documentation/pcmcia/{driver.txt => driver.rst} (66%) create mode 100644 Documentation/pcmcia/index.rst rename Documentation/pcmcia/{locking.txt => locking.rst} (81%) rename Documentation/{percpu-rw-semaphore.txt => percpu-rw-semaphore.rst} (99%) rename Documentation/perf/{arm-ccn.txt => arm-ccn.rst} (86%) rename Documentation/perf/{arm_dsu_pmu.txt => arm_dsu_pmu.rst} (92%) rename Documentation/perf/{hisi-pmu.txt => hisi-pmu.rst} (73%) create mode 100644 Documentation/perf/index.rst rename Documentation/perf/{qcom_l2_pmu.txt => qcom_l2_pmu.rst} (94%) rename Documentation/perf/{qcom_l3_pmu.txt => qcom_l3_pmu.rst} (93%) rename Documentation/perf/{thunderx2-pmu.txt => thunderx2-pmu.rst} (73%) rename Documentation/perf/{xgene-pmu.txt => xgene-pmu.rst} (96%) rename Documentation/{phy.txt => phy.rst} (99%) rename Documentation/phy/{samsung-usb2.txt => samsung-usb2.rst} (77%) rename Documentation/{pi-futex.txt => pi-futex.rst} (99%) rename Documentation/{pnp.txt => pnp.rst} (99%) rename Documentation/power/{apm-acpi.txt => apm-acpi.rst} (87%) rename Documentation/power/{basic-pm-debugging.txt => basic-pm-debugging.rst} (87%) rename Documentation/power/{charger-manager.txt => charger-manager.rst} (78%) rename Documentation/power/{drivers-testing.txt => drivers-testing.rst} (86%) rename Documentation/power/{energy-model.txt => energy-model.rst} (74%) rename Documentation/power/{freezing-of-tasks.txt => freezing-of-tasks.rst} (75%) create mode 100644 Documentation/power/index.rst rename Documentation/power/{interface.txt => interface.rst} (84%) rename Documentation/power/{opp.txt => opp.rst} (78%) rename Documentation/power/{pci.txt => pci.rst} (97%) rename Documentation/power/{pm_qos_interface.txt => pm_qos_interface.rst} (62%) create mode 100644 Documentation/power/power_supply_class.rst delete mode 100644 Documentation/power/power_supply_class.txt create mode 100644 Documentation/power/powercap/powercap.rst delete mode 100644 Documentation/power/powercap/powercap.txt rename Documentation/power/regulator/{consumer.txt => consumer.rst} (61%) rename Documentation/power/regulator/{design.txt => design.rst} (86%) rename Documentation/power/regulator/{machine.txt => machine.rst} (75%) rename Documentation/power/regulator/{overview.txt => overview.rst} (79%) create mode 100644 Documentation/power/regulator/regulator.rst delete mode 100644 Documentation/power/regulator/regulator.txt rename Documentation/power/{runtime_pm.txt => runtime_pm.rst} (89%) rename Documentation/power/{s2ram.txt => s2ram.rst} (92%) rename Documentation/power/{suspend-and-cpuhotplug.txt => suspend-and-cpuhotplug.rst} (90%) rename Documentation/power/{suspend-and-interrupts.txt => suspend-and-interrupts.rst} (98%) rename Documentation/power/{swsusp-and-swap-files.txt => swsusp-and-swap-files.rst} (83%) rename Documentation/power/{swsusp-dmcrypt.txt => swsusp-dmcrypt.rst} (67%) create mode 100644 Documentation/power/swsusp.rst delete mode 100644 Documentation/power/swsusp.txt rename Documentation/power/{tricks.txt => tricks.rst} (93%) rename Documentation/power/{userland-swsusp.txt => userland-swsusp.rst} (85%) rename Documentation/power/{video.txt => video.rst} (56%) rename Documentation/powerpc/{bootwrapper.txt => bootwrapper.rst} (93%) rename Documentation/powerpc/{cpu_families.txt => cpu_families.rst} (95%) rename Documentation/powerpc/{cpu_features.txt => cpu_features.rst} (97%) rename Documentation/powerpc/{cxl.txt => cxl.rst} (95%) rename Documentation/powerpc/{cxlflash.txt => cxlflash.rst} (98%) rename Documentation/powerpc/{DAWR-POWER9.txt => dawr-power9.rst} (95%) rename Documentation/powerpc/{dscr.txt => dscr.rst} (91%) rename Documentation/powerpc/{eeh-pci-error-recovery.txt => eeh-pci-error-recovery.rst} (82%) rename Documentation/powerpc/{firmware-assisted-dump.txt => firmware-assisted-dump.rst} (80%) rename Documentation/powerpc/{hvcs.txt => hvcs.rst} (91%) create mode 100644 Documentation/powerpc/index.rst rename Documentation/powerpc/{mpc52xx.txt => mpc52xx.rst} (91%) rename Documentation/powerpc/{pci_iov_resource_on_powernv.txt => pci_iov_resource_on_powernv.rst} (97%) rename Documentation/powerpc/{pmu-ebb.txt => pmu-ebb.rst} (99%) create mode 100644 Documentation/powerpc/ptrace.rst delete mode 100644 Documentation/powerpc/ptrace.txt rename Documentation/powerpc/{qe_firmware.txt => qe_firmware.rst} (95%) rename Documentation/powerpc/{syscall64-abi.txt => syscall64-abi.rst} (82%) rename Documentation/powerpc/{transactional_memory.txt => transactional_memory.rst} (93%) rename Documentation/{preempt-locking.txt => preempt-locking.rst} (99%) create mode 100644 Documentation/pti/pti_intel_mid.rst delete mode 100644 Documentation/pti/pti_intel_mid.txt rename Documentation/{pwm.txt => pwm.rst} (99%) create mode 100644 Documentation/rapidio/index.rst rename Documentation/rapidio/{mport_cdev.txt => mport_cdev.rst} (84%) rename Documentation/rapidio/{rapidio.txt => rapidio.rst} (97%) rename Documentation/rapidio/{rio_cm.txt => rio_cm.rst} (76%) rename Documentation/rapidio/{sysfs.txt => sysfs.rst} (75%) rename Documentation/rapidio/{tsi721.txt => tsi721.rst} (79%) rename Documentation/{rbtree.txt => rbtree.rst} (99%) rename Documentation/{remoteproc.txt => remoteproc.rst} (99%) rename Documentation/{rfkill.txt => rfkill.rst} (99%) create mode 100644 Documentation/riscv/index.rst rename Documentation/riscv/{pmu.txt => pmu.rst} (77%) rename Documentation/{robust-futex-ABI.txt => robust-futex-ABI.rst} (99%) rename Documentation/{robust-futexes.txt => robust-futexes.rst} (99%) rename Documentation/{rpmsg.txt => rpmsg.rst} (99%) rename Documentation/{rtc.txt => rtc.rst} (99%) rename Documentation/s390/{3270.txt => 3270.rst} (90%) delete mode 100644 Documentation/s390/Debugging390.txt rename Documentation/s390/{cds.txt => cds.rst} (64%) rename Documentation/s390/{CommonIO => common_io.rst} (87%) rename Documentation/s390/{DASD => dasd.rst} (92%) create mode 100644 Documentation/s390/debugging390.rst rename Documentation/s390/{driver-model.txt => driver-model.rst} (73%) create mode 100644 Documentation/s390/index.rst rename Documentation/s390/{monreader.txt => monreader.rst} (81%) rename Documentation/s390/{qeth.txt => qeth.rst} (62%) create mode 100644 Documentation/s390/s390dbf.rst delete mode 100644 Documentation/s390/s390dbf.txt create mode 100644 Documentation/s390/text_files.rst rename Documentation/s390/{vfio-ap.txt => vfio-ap.rst} (72%) rename Documentation/s390/{vfio-ccw.txt => vfio-ccw.rst} (88%) rename Documentation/s390/{zfcpdump.txt => zfcpdump.rst} (97%) rename Documentation/scheduler/{completion.txt => completion.rst} (94%) create mode 100644 Documentation/scheduler/index.rst rename Documentation/scheduler/{sched-arch.txt => sched-arch.rst} (81%) rename Documentation/scheduler/{sched-bwc.txt => sched-bwc.rst} (90%) rename Documentation/scheduler/{sched-deadline.txt => sched-deadline.rst} (88%) rename Documentation/scheduler/{sched-design-CFS.txt => sched-design-CFS.rst} (97%) rename Documentation/scheduler/{sched-domains.txt => sched-domains.rst} (97%) rename Documentation/scheduler/{sched-energy.txt => sched-energy.rst} (96%) rename Documentation/scheduler/{sched-nice-design.txt => sched-nice-design.rst} (98%) rename Documentation/scheduler/{sched-rt-group.txt => sched-rt-group.rst} (95%) rename Documentation/scheduler/{sched-stats.txt => sched-stats.rst} (91%) create mode 100644 Documentation/scheduler/text_files.rst rename Documentation/security/tpm/{xen-tpmfront.txt => xen-tpmfront.rst} (66%) rename Documentation/serial/{README.cycladesZ => cyclades_z.rst} (85%) rename Documentation/serial/{driver => driver.rst} (92%) create mode 100644 Documentation/serial/index.rst delete mode 100644 Documentation/serial/moxa-smartio create mode 100644 Documentation/serial/moxa-smartio.rst create mode 100644 Documentation/serial/n_gsm.rst delete mode 100644 Documentation/serial/n_gsm.txt rename Documentation/serial/{rocket.txt => rocket.rst} (68%) rename Documentation/serial/{serial-iso7816.txt => serial-iso7816.rst} (85%) rename Documentation/serial/{serial-rs485.txt => serial-rs485.rst} (89%) rename Documentation/serial/{tty.txt => tty.rst} (74%) rename Documentation/{sgi-ioc4.txt => sgi-ioc4.rst} (99%) rename Documentation/{siphash.txt => siphash.rst} (99%) rename Documentation/{smsc_ece1099.txt => smsc_ece1099.rst} (99%) rename Documentation/sparc/{adi.txt => adi.rst} (70%) rename Documentation/sparc/{console.txt => console.rst} (53%) create mode 100644 Documentation/sparc/index.rst rename Documentation/sparc/oradax/{oracle-dax.txt => oracle-dax.rst} (95%) rename Documentation/{speculation.txt => speculation.rst} (99%) rename Documentation/{static-keys.txt => static-keys.rst} (99%) rename Documentation/{svga.txt => svga.rst} (99%) rename Documentation/{switchtec.txt => switchtec.rst} (98%) rename Documentation/{sync_file.txt => sync_file.rst} (99%) create mode 100644 Documentation/sysctl/abi.rst delete mode 100644 Documentation/sysctl/abi.txt rename Documentation/sysctl/{fs.txt => fs.rst} (77%) rename Documentation/sysctl/{README => index.rst} (78%) rename Documentation/sysctl/{kernel.txt => kernel.rst} (79%) rename Documentation/sysctl/{net.txt => net.rst} (85%) rename Documentation/sysctl/{sunrpc.txt => sunrpc.rst} (62%) rename Documentation/sysctl/{user.txt => user.rst} (77%) rename Documentation/sysctl/{vm.txt => vm.rst} (84%) create mode 100644 Documentation/target/index.rst create mode 100644 Documentation/target/scripts.rst create mode 100644 Documentation/target/tcm_mod_builder.rst delete mode 100644 Documentation/target/tcm_mod_builder.txt rename Documentation/target/{tcmu-design.txt => tcmu-design.rst} (69%) rename Documentation/{tee.txt => tee.rst} (99%) rename Documentation/thermal/{cpu-cooling-api.txt => cpu-cooling-api.rst} (82%) rename Documentation/thermal/{exynos_thermal => exynos_thermal.rst} (67%) delete mode 100644 Documentation/thermal/exynos_thermal_emulation create mode 100644 Documentation/thermal/exynos_thermal_emulation.rst create mode 100644 Documentation/thermal/index.rst rename Documentation/thermal/{intel_powerclamp.txt => intel_powerclamp.rst} (76%) rename Documentation/thermal/{nouveau_thermal => nouveau_thermal.rst} (64%) rename Documentation/thermal/{power_allocator.txt => power_allocator.rst} (74%) rename Documentation/thermal/{sysfs-api.txt => sysfs-api.rst} (66%) rename Documentation/thermal/{x86_pkg_temperature_thermal => x86_pkg_temperature_thermal.rst} (80%) rename Documentation/{this_cpu_ops.txt => this_cpu_ops.rst} (99%) rename Documentation/timers/{highres.txt => highres.rst} (98%) rename Documentation/timers/{hpet.txt => hpet.rst} (91%) rename Documentation/timers/{hrtimers.txt => hrtimers.rst} (98%) create mode 100644 Documentation/timers/index.rst rename Documentation/timers/{NO_HZ.txt => no_hz.rst} (93%) rename Documentation/timers/{timekeeping.txt => timekeeping.rst} (98%) rename Documentation/timers/{timers-howto.txt => timers-howto.rst} (93%) rename Documentation/{unaligned-memory-access.txt => unaligned-memory-access.rst} (99%) rename Documentation/{vfio-mediated-device.txt => vfio-mediated-device.rst} (99%) rename Documentation/{vfio.txt => vfio.rst} (99%) rename Documentation/{video-output.txt => video-output.rst} (99%) rename Documentation/watchdog/{convert_drivers_to_kernel_api.txt => convert_drivers_to_kernel_api.rst} (75%) rename Documentation/watchdog/{hpwdt.txt => hpwdt.rst} (77%) create mode 100644 Documentation/watchdog/index.rst rename Documentation/watchdog/{mlx-wdt.txt => mlx-wdt.rst} (78%) rename Documentation/watchdog/{pcwd-watchdog.txt => pcwd-watchdog.rst} (89%) rename Documentation/watchdog/{watchdog-api.txt => watchdog-api.rst} (80%) rename Documentation/watchdog/{watchdog-kernel-api.txt => watchdog-kernel-api.rst} (90%) create mode 100644 Documentation/watchdog/watchdog-parameters.rst delete mode 100644 Documentation/watchdog/watchdog-parameters.txt rename Documentation/watchdog/{watchdog-pm.txt => watchdog-pm.rst} (92%) rename Documentation/watchdog/{wdt.txt => wdt.rst} (68%) rename Documentation/xilinx/{eemi.txt => eemi.rst} (92%) create mode 100644 Documentation/xilinx/index.rst
Quoted 8 lines
rename Documentation/{xillybus.txt => xillybus.rst} (99%)
rename Documentation/xtensa/{atomctl.txt => atomctl.rst} (81%)
rename Documentation/xtensa/{booting.txt => booting.rst} (91%)
create mode 100644 Documentation/xtensa/index.rst
create mode 100644 Documentation/xtensa/mmu.rst
delete mode 100644 Documentation/xtensa/mmu.txt
rename Documentation/{xz.txt => xz.rst} (99%)
rename Documentation/{zorro.txt => zorro.rst} (99%)Ah, I forgot to mention on this description: the conversions were hand-made (except for one or two exceptions where I wrote small scripts to help on some specific patches - explicitly mentioned).
In order to fix the broken documentation links, after the changes, I used the enclosed script. It basically detects renames and run a loop to fix all occurrences of such renames.
It doesn't work 100% - as it only works when the changes of the file is smaller than 50% of the file - with is the default logic for git merge detection. Yet, that saves a lot of time when adjusting the renames. I used it together with ./scripts/documentation-file-ref-check in order to double-check if all references to renamed files were properly addressed.
Thanks,
Mauro
--
#!/bin/perl
use strict;
open IN,"git show|";
my $from;
while(<IN>) {
if (m/rename from (\S.*)/) {
die "Error: two froms!" if ($from ne "");
$from = $1;
next;
}
if (m/rename to (\S.*)/) {
die "Error: no from!" if ($from eq "");
my $cmd = "for i in \$(git grep -l $from); do sed s,$from,$1,g -i \$i; done";
$from = "";
print "$cmd\n";
qx($cmd);
}
}Re: [PATCH v2 28/79] docs: ptp.txt: convert to ReST and move to driver-api
In reply to Mauro Carvalho ChehabQuoted 5 lines · Mauro Carvalho Chehab
The conversion is trivial: just adjust title markups.
In order to avoid conflicts, let's add an :orphan: tag to it, to be removed when this file gets added to the driver-api book.
Re: [PATCH v2 27/79] docs: pps.txt: convert to ReST and rename to pps.rst
In reply to Mauro Carvalho ChehabQuoted 7 lines · Mauro Carvalho Chehab
This file is already in a good shape: just its title and adding some literal block markups is needed for it to be part of the document.
While it has a small chapter with sysfs stuff, most of the document is focused on driver development.
Quoted 7 lines
As it describes a kernel API, move it to the driver-api directory.
In order to avoid conflicts, let's add an :orphan: tag to it, to be removed when added to the driver-api book.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Signature · 4 lines
GNU/Linux Solutions e-mail: [email protected] Linux Device Driver [email protected] Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Mauro Carvalho ChehabQuoted 95 lines · Mauro Carvalho Chehab
Later patches will move them to a better place and remove the :orphan: markup.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/ABI/removed/sysfs-class-rfkill | 2 +- Documentation/ABI/stable/sysfs-class-rfkill | 2 +- Documentation/ABI/stable/sysfs-devices-node | 2 +- Documentation/ABI/testing/procfs-diskstats | 2 +- Documentation/ABI/testing/sysfs-block | 2 +- .../ABI/testing/sysfs-class-switchtec | 2 +- .../ABI/testing/sysfs-devices-system-cpu | 4 +- .../{DMA-API-HOWTO.txt => DMA-API-HOWTO.rst} | 2 + Documentation/{DMA-API.txt => DMA-API.rst} | 8 ++- .../{DMA-ISA-LPC.txt => DMA-ISA-LPC.rst} | 4 +- ...{DMA-attributes.txt => DMA-attributes.rst} | 2 + Documentation/{IPMI.txt => IPMI.rst} | 2 + .../{IRQ-affinity.txt => IRQ-affinity.rst} | 2 + .../{IRQ-domain.txt => IRQ-domain.rst} | 2 + Documentation/{IRQ.txt => IRQ.rst} | 2 + .../{Intel-IOMMU.txt => Intel-IOMMU.rst} | 2 + Documentation/PCI/pci.txt | 8 +-- Documentation/{SAK.txt => SAK.rst} | 2 + Documentation/{SM501.txt => SM501.rst} | 2 + .../admin-guide/kernel-parameters.txt | 6 +- Documentation/admin-guide/l1tf.rst | 2 +- .../{atomic_bitops.txt => atomic_bitops.rst} | 2 + Documentation/block/biodoc.txt | 2 +- .../{bt8xxgpio.txt => bt8xxgpio.rst} | 2 + Documentation/{btmrvl.txt => btmrvl.rst} | 2 + ...-mapping.txt => bus-virt-phys-mapping.rst} | 4 +- ...g-warn-once.txt => clearing-warn-once.rst} | 2 + Documentation/{cpu-load.txt => cpu-load.rst} | 2 + .../{cputopology.txt => cputopology.rst} | 2 + Documentation/{crc32.txt => crc32.rst} | 2 + Documentation/{dcdbas.txt => dcdbas.rst} | 2 + ...ging-modules.txt => debugging-modules.rst} | 2 + ...hci1394.txt => debugging-via-ohci1394.rst} | 2 + Documentation/{dell_rbu.txt => dell_rbu.rst} | 2 + Documentation/device-mapper/statistics.rst | 4 +- .../devicetree/bindings/phy/phy-bindings.txt | 2 +- Documentation/{digsig.txt => digsig.rst} | 2 + Documentation/driver-api/usb/dma.rst | 6 +- Documentation/driver-model/device.rst | 2 +- Documentation/{efi-stub.txt => efi-stub.rst} | 2 + Documentation/{eisa.txt => eisa.rst} | 2 + Documentation/fb/vesafb.rst | 2 +- Documentation/filesystems/sysfs.txt | 2 +- ...ex-requeue-pi.txt => futex-requeue-pi.rst} | 2 + .../{gcc-plugins.txt => gcc-plugins.rst} | 2 + Documentation/gpu/drm-mm.rst | 2 +- Documentation/{highuid.txt => highuid.rst} | 2 + .../{hw_random.txt => hw_random.rst} | 2 + .../{hwspinlock.txt => hwspinlock.rst} | 2 + Documentation/ia64/IRQ-redir.txt | 2 +- .../{intel_txt.txt => intel_txt.rst} | 2 + .../{io-mapping.txt => io-mapping.rst} | 2 + .../{io_ordering.txt => io_ordering.rst} | 2 + Documentation/{iostats.txt => iostats.rst} | 2 + ...flags-tracing.txt => irqflags-tracing.rst} | 2 + Documentation/{isa.txt => isa.rst} | 2 + Documentation/{isapnp.txt => isapnp.rst} | 2 + ...hreads.txt => kernel-per-CPU-kthreads.rst} | 4 +- Documentation/{kobject.txt => kobject.rst} | 4 +- Documentation/{kprobes.txt => kprobes.rst} | 2 + Documentation/{kref.txt => kref.rst} | 2 + Documentation/laptops/thinkpad-acpi.txt | 6 +- Documentation/{ldm.txt => ldm.rst} | 2 + Documentation/locking/rt-mutex.rst | 2 +- ...kup-watchdogs.txt => lockup-watchdogs.rst} | 2 + Documentation/{lsm.txt => lsm.rst} | 2 + Documentation/{lzo.txt => lzo.rst} | 2 + Documentation/{mailbox.txt => mailbox.rst} | 2 + Documentation/memory-barriers.txt | 6 +- ...hameleon-bus.txt => men-chameleon-bus.rst} | 2 + Documentation/networking/scaling.rst | 4 +- .../{nommu-mmap.txt => nommu-mmap.rst} | 2 + Documentation/{ntb.txt => ntb.rst} | 2 + Documentation/{numastat.txt => numastat.rst} | 2 + Documentation/{padata.txt => padata.rst} | 2 + ...port-lowlevel.txt => parport-lowlevel.rst} | 2 + ...-semaphore.txt => percpu-rw-semaphore.rst} | 2 + Documentation/{phy.txt => phy.rst} | 2 + Documentation/{pi-futex.txt => pi-futex.rst} | 2 + Documentation/{pnp.txt => pnp.rst} | 2 + ...reempt-locking.txt => preempt-locking.rst} | 2 + Documentation/{pwm.txt => pwm.rst} | 2 + Documentation/{rbtree.txt => rbtree.rst} | 2 + .../{remoteproc.txt => remoteproc.rst} | 4 +- Documentation/{rfkill.txt => rfkill.rst} | 2 + ...ust-futex-ABI.txt => robust-futex-ABI.rst} | 2 + ...{robust-futexes.txt => robust-futexes.rst} | 2 + Documentation/{rpmsg.txt => rpmsg.rst} | 2 + Documentation/{rtc.txt => rtc.rst} | 2 +
Quoted 8 lines
Documentation/s390/vfio-ccw.rst | 6 +-
Documentation/{sgi-ioc4.txt => sgi-ioc4.rst} | 2 +
Documentation/{siphash.txt => siphash.rst} | 2 +
.../{smsc_ece1099.txt => smsc_ece1099.rst} | 2 +
.../{speculation.txt => speculation.rst} | 2 +
.../{static-keys.txt => static-keys.rst} | 2 +
Documentation/{svga.txt => svga.rst} | 2 +
.../{switchtec.txt => switchtec.rst} | 4 +-For all the switchtec changes:
Thanks,
Logan
Re: [PATCH v2 23/79] docs: netlabel: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 9 lines · Mauro Carvalho Chehab
Convert netlabel documentation to ReST.
This was trivial: just add proper title markups.
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Quoted 12 lines
---
.../{cipso_ipv4.txt => cipso_ipv4.rst} | 19 +++++++++++------
Documentation/netlabel/draft_ietf.rst | 5 +++++
Documentation/netlabel/index.rst | 21 +++++++++++++++++++
.../{introduction.txt => introduction.rst} | 16 +++++++++-----
.../{lsm_interface.txt => lsm_interface.rst} | 16 +++++++++-----
5 files changed, 61 insertions(+), 16 deletions(-)
rename Documentation/netlabel/{cipso_ipv4.txt => cipso_ipv4.rst} (87%)
create mode 100644 Documentation/netlabel/draft_ietf.rst
create mode 100644 Documentation/netlabel/index.rst
rename Documentation/netlabel/{introduction.txt => introduction.rst} (91%)
rename Documentation/netlabel/{lsm_interface.txt => lsm_interface.rst} (88%)Still looks fine to me. I should go through these docs again to make sure they are current (the old email address definitely is a bad sign).
Signature · 2 lines
paul moore www.paul-moore.com
Re: [PATCH v2 48/79] docs: driver-model: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 15 lines · Mauro Carvalho Chehab
Convert the various documents at the driver-model, preparing them to be part of the driver-api book.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>Acked-by Julia Lawall <[email protected]>
Quoted 15 lines
---
Documentation/driver-api/gpio/driver.rst | 2 +-
.../driver-model/{binding.txt => binding.rst} | 20 +-
.../driver-model/{bus.txt => bus.rst} | 69 ++--
.../driver-model/{class.txt => class.rst} | 74 ++--
...esign-patterns.txt => design-patterns.rst} | 106 +++---
.../driver-model/{device.txt => device.rst} | 57 +--
.../driver-model/{devres.txt => devres.rst} | 50 +--
.../driver-model/{driver.txt => driver.rst} | 112 +++---
Documentation/driver-model/index.rst | 26 ++
.../{overview.txt => overview.rst} | 37 +-
.../{platform.txt => platform.rst} | 30 +-
.../driver-model/{porting.txt => porting.rst} | 333 +++++++++---------
Documentation/eisa.txt | 4 +-
Documentation/hwmon/submitting-patches.rst | 2 +-For hwmon:
Rafael J. Wysocki
maintainerRe: [PATCH v2 10/79] docs: cpu-freq: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 10 lines · Mauro Carvalho Chehab
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.
Well, as stated before, please drop this one too.
There is a plan to convert the remaining cpufreq documentation into .rst (and which has already been done for the admin-guide part) and the resulting files should go into driver-api.
Thanks,
Rafael
Peter Zijlstra
maintainerRe: [PATCH v2 38/79] docs: scheduler: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 10 lines · Mauro Carvalho Chehab
In order to prepare to add them to the Kernel API book, convert the files to ReST format.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
Quoted 2 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.
Well, just don't expect me to ever touch these files again.
Peter Zijlstra
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Mauro Carvalho ChehabQuoted 1 line · Mauro Carvalho Chehab
.../{atomic_bitops.txt => atomic_bitops.rst} | 2 +What's happend to atomic_t.txt, also NAK, I still occationally touch these files.
Re: [PATCH v2 38/79] docs: scheduler: convert docs to ReST and rename to *.rst
In reply to Peter ZijlstraQuoted 11 lines · Peter Zijlstra
Quoted 10 lines · Mauro Carvalho Chehab
In order to prepare to add them to the Kernel API book, convert the files to ReST format.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
Quoted 4 lines
Quoted 2 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Well, just don't expect me to ever touch these files again.
The .rst files still read like text files, right?
So just pretend they are text files, I'll fix up any markup errors! :-)
Thanks,
Ingo
Peter Zijlstra
maintainerRe: [PATCH v2 38/79] docs: scheduler: convert docs to ReST and rename to *.rst
Quoted 1 line · Ingo Molnar
The .rst files still read like text files, right?
Like a harder to read text file for no gains.
Re: [PATCH v2 15/79] docs: gpio: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 6 lines · Mauro Carvalho Chehab
The API described at sysfs.txt is deprecated.
Still, as it is still part of the Kernel (and will likely be there for some time, as we don't simply remove APIs). So, it makes sense to keep it there.
Quoted 8 lines
The conversion of this file is trivial:
- add blank lines and identation in order to identify paragraphs;
- mark a literal block as such.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Same question as the v1: should I apply it or will you :)
Yours,
Linus Walleij
Re: [PATCH v2 38/79] docs: scheduler: convert docs to ReST and rename to *.rst
In reply to Peter ZijlstraQuoted 5 lines · Peter Zijlstra
Quoted 1 line · Ingo Molnar
The .rst files still read like text files, right?
Like a harder to read text file for no gains.
I just looked through a couple of RST files in Documentation/, and they look like perfectly readable text files to me.
Some of the formatting details are arguably 'special' and can be broken via "text edits" without being aware of the RST markup relevance - but I don't think it's a problem for RST-unaware developers to break that markup, the Documentation/ folks have been rather generous and flexible in fixing those up, in addition to fixing all the typos as well.
So I'd be cautiously in favor of the RST conversion, assuming I don't get yelled at if I break the markup. ;-)
Thanks,
Ingo
Re: [PATCH v2 15/79] docs: gpio: convert docs to ReST and rename to *.rst
In reply to Linus WalleijEm Tue, 23 Apr 2019 13:23:50 +0200
Linus Walleij <[email protected]> escreveu:
Quoted 13 lines
Quoted 10 lines · Mauro Carvalho Chehab
The API described at sysfs.txt is deprecated.
Still, as it is still part of the Kernel (and will likely be there for some time, as we don't simply remove APIs). So, it makes sense to keep it there.
The conversion of this file is trivial:
- add blank lines and identation in order to identify paragraphs;
- mark a literal block as such.
Quoted 8 lines
Quoted 4 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>Acked-by Linus Walleij <[email protected]>Same question as the v1: should I apply it or will you :)
I suspect that it would be better if it gets applied via the GPIO tree, in order to reduce potential merge conflicts.
Regards,
Mauro
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Peter ZijlstraQuoted 6 lines · Peter Zijlstra
Quoted 1 line · Mauro Carvalho Chehab
.../{atomic_bitops.txt => atomic_bitops.rst} | 2 +What's happend to atomic_t.txt, also NAK, I still occationally touch these files.
Seems Mauro's point is in the future we need to touch these .rst files in terms of ReST compatible changes.
I'm dreading DM documentation changes in the future.. despite Mauro and Jon Corbet informing me that ReST is simple, etc.
Mike
Peter Zijlstra
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
Quoted 7 lines · Mike Snitzer
Quoted 4 lines · Peter Zijlstra
Quoted 1 line · Mauro Carvalho Chehab
.../{atomic_bitops.txt => atomic_bitops.rst} | 2 +
Quoted 8 lines
Quoted 2 lines
What's happend to atomic_t.txt, also NAK, I still occationally touch these files.
Seems Mauro's point is in the future we need to touch these .rst files in terms of ReST compatible changes.
I'm dreading DM documentation changes in the future.. despite Mauro and Jon Corbet informing me that ReST is simple, etc.
Well, it _can_ be simple, I've seen examples of rst that were not far from generated HTML contents. And I must give Jon credit for not accepting that atrocious crap.
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
Quoted 17 lines · Peter Zijlstra
Quoted 7 lines · Mike Snitzer
Quoted 4 lines · Peter Zijlstra
Quoted 1 line · Mauro Carvalho Chehab
.../{atomic_bitops.txt => atomic_bitops.rst} | 2 +Quoted 8 lines
Quoted 2 lines
What's happend to atomic_t.txt, also NAK, I still occationally touch these files.
Seems Mauro's point is in the future we need to touch these .rst files in terms of ReST compatible changes.
I'm dreading DM documentation changes in the future.. despite Mauro and Jon Corbet informing me that ReST is simple, etc.
Quoted 6 lines
Well, it _can_ be simple, I've seen examples of rst that were not far from generated HTML contents. And I must give Jon credit for not accepting that atrocious crap.
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
Right, but these changes aren't meant for our benefit. They are for users who get cleaner web accessible Linux kernel docs. Seems the decision has been made that the users' benefit, and broader modernization of Linux docs, outweighs the inconvenience for engineers who maintain the content of said documentation.
This kind of thing happens a lot these days: pile on engineers, they can take it :/
David Howells
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
Quoted 10 lines · Mike Snitzer
Quoted 2 lines · Peter Zijlstra
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
Right, but these changes aren't meant for our benefit. They are for users who get cleaner web accessible Linux kernel docs. Seems the decision has been made that the users' benefit, and broader modernization of Linux docs, outweighs the inconvenience for engineers who maintain the content of said documentation.
Whilst I can sympathise with Mauro and Jon - and appreciate the hard work they've put into this, I do think that the engineers dealing directly with the kernel code should be considered the primary audience.
There've been some changes that I've particularly objected to, such as removing contents lists from files and replacing them with markup like:
.. contents:: :local:
This actually impedes use of the file. It should not be necessary to build the docs to get that for ordinary use.
Anyway, the biggest doc issue in the kernel isn't addressed by the conversion to ReST: and that is that most people don't seem interested in documenting stuff - whether because writing documentation isn't as fun as writing code or the fact that English isn't their native language, I don't know. I can sympathise more with the latter.
Kerneldoc is a start - and probably means that a lot of API functions are at least slightly documented - but too many APIs are not mentioned in the Documentation directory at all. Remember: if you can't describe it, it's probably wrong!
I'm not sure what we could do about this, but it would probably have to be imposed from the top: no more undocumented APIs. Any new API must come with documentation; changes to APIs must include changes to the documentation.
If you really want to upset people, you could add: anyone who wants to alter an already existing undocumented API must supply documentation for the whole API (but that could be considered a bit cruel).
And anyone who says "But the code is the documentation!" needs to consider carefully what happens to their code after it has been trampled, generalised, split, combined, renormalised, cthulhuised, janitorised and had parts of it migrate.
</rant>
And now, after that, I think a fresh cup of tea is called for!
David
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveEm Tue, 23 Apr 2019 09:21:00 -0400
Mike Snitzer <[email protected]> escreveu:
Quoted 11 lines
Quoted 8 lines · Peter Zijlstra
Quoted 7 lines · Mike Snitzer
Quoted 4 lines · Peter Zijlstra
Quoted 1 line · Mauro Carvalho Chehab
.../{atomic_bitops.txt => atomic_bitops.rst} | 2 +
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
What's happend to atomic_t.txt, also NAK, I still occationally touch these files.
Seems Mauro's point is in the future we need to touch these .rst files in terms of ReST compatible changes.
I'm dreading DM documentation changes in the future.. despite Mauro and Jon Corbet informing me that ReST is simple, etc.
ReST is simple[1], and neither Jon or me wants to burden developers to use complex documents all over the Kernel tree. ReST is just a way to make the documents with similar visual. The main advantage of ReST is that documents can be better organized, as they will be inside some index.rst file.
[1] Ok, as any document, you could write an easy or hard to read stuff. The way we're using on most places is to be just a coding style with benefits. I wrote a quick 101 guide to ReST at the end, with all you probably need to know about it.
So, for example, in the specific case of atomic_bitops, all it takes for it to be parsed by Sphinx is to rename it to .rst. With that, it can be added into an index.rst file, like at Documentation/driver-api/index.rst.
The document, as is, will be displayed like this:
https://www.infradead.org/~mchehab/rst_conversion/driver-api/atomic_bitops.html?highlight=atomic_t
And the original text file can also be seen from the output data:
https://www.infradead.org/~mchehab/rst_conversion/_sources/driver-api/atomic_bitops.rst.txt
Quoted 8 lines
Quoted 7 lines
Well, it _can_ be simple, I've seen examples of rst that were not far from generated HTML contents. And I must give Jon credit for not accepting that atrocious crap.
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
Quoted 8 lines
Right, but these changes aren't meant for our benefit. They are for users who get cleaner web accessible Linux kernel docs. Seems the decision has been made that the users' benefit, and broader modernization of Linux docs, outweighs the inconvenience for engineers who maintain the content of said documentation.
This kind of thing happens a lot these days: pile on engineers, they can take it :/
Yes, that's the main goal: ensure that more people will see the documents and write less crappy code. So, overall, reducing the time we spent with reviews of bad code.
----
=================================
My 101 ReST quick reference guide
=================================
Basically, a "quick" ReST guide for those that don't want to learn it and like to have an easy to read text document would be
1) to format documents like:
========= Doc Title ========= foo chapter =========== bar section ----------- foobar sub-section ^^^^^^^^^^^^^^^^^^ foobarzeta sub-sub-section ..........................
(the actual character used to mark the titles can be different, provided that you use the same character for the same title level - the above is just the way *I* use, as it makes easier for me to remember the title level).
2) remember that ReST considers new lines with same indentation as belonging to the same paragraph. So,
foo
bar
is identical to:
foo bar
while
foo
bar
will make "foo" bold, and write bar on the next line. So, if you want to have them on two separate lines on its output, it should be either write it as:
foo
bar
or you could use a list:
- foo
- bar
Btw, *a lot* of Kernel documents already have the above format.
3) literal values should be either inside ``foo``, foo or on an indented line after a ::, like:
example::
# some_command_to_be_typed
If you follow those three simple rules, your document will be properly parsed. The above covers 90% of what we normally use.
Tables are also easy to write there, as it recognizes two ways to write ascii tables, with are already popular ways to write them.
So, those are valid tables:
Without a title:
=== =============== foo foo description bar bar description === ===============
+-------+-----------------+ | foo | foo description | +-------+-----------------+ | bar | bar description | +-------+-----------------+
(both will produce exactly the same output)
With a title:
===== =============== field description ===== =============== foo foo description bar bar description === =============== +-------+-----------------+ | field | description | +=======+=================+ | foo | foo description | +-------+-----------------+ | bar | bar description | +-------+-----------------+
(both will produce exactly the same output)
This is not too different on what we usually do on documents - except that some documents sometimes use UTF8, or a different character set to mark the table lines. So the "conversion" is simply to follow one of the above styles.
Thanks,
Mauro
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 14 lines · Mauro Carvalho Chehab
Convert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
Quoted 5 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab<[email protected]>---
Hi Mauro,
How would the s390 rst files be accessed from a top level index.rst file? Is there a view of the changes? I looked at a link you posted [1] as a reply in another thread, but I couldn't find the s390 docs there.
[1] https://www.infradead.org/~mchehab/rst_conversion/
Thanks
Farhan
Jonathan Corbet
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Peter ZijlstraQuoted 2 lines · On Tue, 23 Apr 2019 15:01:32 +0200 Peter Zijlstra…
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
So I believe it gives even you one thing in return: documentation that is more accessible for both readers and authors. More readable docs should lead to more educated developers who understand the code better. More writable docs will bring more people in to help to improve them. The former effect has been reported in the GPU community, where they say that the quality of submissions has improved along with the docs. The latter can be observed in the increased number of people working on the docs overall, something that Linus noted in the 5.1-rc1 announcement.
Hopefully that's worth something :)
Thanks,
jon
Jonathan Corbet
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to David HowellsQuoted 7 lines · On Tue, 23 Apr 2019 15:52:26 +0100 David Howells <[email protected]> wrote:
There've been some changes that I've particularly objected to, such as removing contents lists from files and replacing them with markup like:
.. contents:: :local:This actually impedes use of the file. It should not be necessary to build the docs to get that for ordinary use.
Usability of the text files versus that of the built docs is occasionally something that has to be traded off. As a general rule, I want the text files to remain useful on their own. There is a lot of value in the built docs for a lot of people, but that should not be the only, or even the primary, form of access
Tables of contents are certainly a place where that tradeoff makes itself felt. Doing them by hand ensures that they are always present, but requires that people editing the docs also maintain the TOCS - something that experience has shown tends not to happen. That's more of a pain than a little bit of markup, and people don't do it. An automatically generated TOC, instead, is always correct and is linkable.
Few people complain about the biggest impediment to the readability of text files, though: the use of kerneldoc comments. That splits the information between the text file and multiple random-seeming locations among tends of thousands of source files. Sometimes the solution here is to move all of the documentation into the source, but that tends to fragment it and make it harder to find; it's certainly not the right place for many kinds of docs. In general, it's hard to create a coherent story that way.
Suggestions / patches on how to improve things for *all* users of the docs are certainly welcome!
I am, incidentally, toying with the idea of trying to put together a documentation microconf at the Linux Plumbers Conference this year. If anybody out there thinks that's a good idea and would like to participate, please let me know.
Quoted 5 lines
Anyway, the biggest doc issue in the kernel isn't addressed by the conversion to ReST: and that is that most people don't seem interested in documenting stuff - whether because writing documentation isn't as fun as writing code or the fact that English isn't their native language, I don't know. I can sympathise more with the latter.
I believe there's enough experience now to say that using RST increases contributions to the documentation. Just having something that approaches a coherent approach to docs (though we are a *long* way from that still) makes the whole thing more accessible. It doesn't solve our documentation issues by any stretch, but it helps.
Thanks,
jon
Peter Zijlstra
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Jonathan CorbetQuoted 8 lines · Jonathan Corbet
Quoted 2 lines · On Tue, 23 Apr 2019 15:01:32 +0200 Peter Zijlstra…
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
So I believe it gives even you one thing in return: documentation that is more accessible for both readers and authors.
I know I'm an odd duck; but no. They're _less_ accessible for me, as both a reader and author. They look 'funny' when read as a text file (the only way it makes sense to read them; I spend 99% of my time on a computer looking at monospace text interfaces; mutt, vim and console, in that approximate order).
When writing, I now have to be bothered about this format crap over just trying to write a coherent document.
Look at crap like this:
"The memory allocations via :c:func:kmalloc, :c:func:vmalloc, :c:func:kmem_cache_alloc and"
That should've been written like:
"The memory allocations via kmalloc(), vmalloc(), kmem_cache_alloc() and"
Heck, that paragraph isn't even properly flowed.
Then there's the endless stuck ':' key, and the mysterious "''" because \" isn't a character, oh wait.
Bah..
Peter Zijlstra
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Jonathan CorbetQuoted 2 lines · Jonathan Corbet
Few people complain about the biggest impediment to the readability of text files, though: the use of kerneldoc comments.
I just stopped using kerneldoc.
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Jonathan Corbet- Accessible, usable docs are worth something in ROI
- https://www.writethedocs.org/
- https://read-the-docs.readthedocs.io/en/latest/
-
https://github.com/rtfd/readthedocs-docker-images/issues/47#issuecomment-485712800
- Dockerfile that extends from readthedocs/build:latest (which has the
GBs of latex necessary to run make latexpdf for all you PDF lovers out there)
- https://github.com/yoloseem/awesome-sphinxdoc
- There are various Sphinx extensions for optionally including generated
API docs for various languages
- If you add the extensions you want installed to your requirements.txt
or environment.yml, ReadTheDocs will install those for every build. You can also create (and maintain) a custom Docker image with all of the docs building dependencies installed (e.g. requirements_dev.txt and/or docs/requirements.txt)
- https://kernel.readthedocs.io/en/latest/kernel-documentation.html
- This says "Copyright 2016"? That's set in conf.py
I keep a tools doc in ReST:
- https://westurner.github.io/tools/#sphinx
- https://westurner.github.io/tools/#docutils
I'll just CC those sections here:
```rst .. index:: Docutils .. _docutils: Docutils ~~~~~~~~~~~~~~~~~~~ | Homepage: http://docutils.sourceforge.net | PyPI: https://pypi.python.org/pypi/docutils | Docs: http://docutils.sourceforge.net/docs/ | Docs: http://docutils.sourceforge.net/rst.html | Docs: http://docutils.sourceforge.net/docs/ref/doctree.html | Docs: https://docutils.readthedocs.io/en/sphinx-docs/ | Docs: https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html | Src: svn http://svn.code.sf.net/p/docutils/code/trunk Docutils is a :ref:`Python` library which 'parses" :ref:`ReStructuredText` lightweight markup language into a doctree (~DOM) which can be serialized into HTML, ePub, MOBI, LaTeX, man pages, Open Document files, XML, JSON, and a number of other formats. .. index:: Sphinx .. _sphinx: Sphinx ~~~~~~~~~~~~~~~~~ | Wikipedia: `< https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)>`_ | Homepage: https://pypi.python.org/pypi/Sphinx | Src: git https://github.com/sphinx-doc/sphinx | Pypi: https://pypi.python.org/pypi/Sphinx | Docs: http://sphinx-doc.org/contents.html | Docs: http://sphinx-doc.org/markup/code.html | Docs: http://www.sphinx-doc.org/en/stable/markup/inline.html#ref-role | Docs: http://pygments.org/docs/lexers/ | Docs: http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html | Docs: https://github.com/yoloseem/awesome-sphinxdoc Sphinx is a tool for working with :ref:`ReStructuredText` documentation trees and rendering them into HTML, PDF, LaTeX, ePub, and a number of other formats. Sphinx extends :ref:`Docutils` with a number of useful markup behaviors which are not supported by other ReStructuredText parsers. Most other ReStructuredText parsers do not support Sphinx directives; so, for example, * GitHub and BitBucket do not support Sphinx but do support ReStructuredText so ``README.rst`` containing Sphinx tags renders in plaintext or raises errors. For example, the index page of this :ref:`Sphinx` documentation set is generated from a file named ``index.rst`` that referenced by ``docs/conf.py``, which is utilized by ``sphinx-build`` in the ``Makefile``. * Input: .. code:: bash _indexrst="$WORKON_HOME/src/westurner/tools/index.rst" e $_indexrst # with westurner/dotfiles.venv mkvirtualenv westurner we westurner tools; mkdir -p $_SRC git clone ssh://[email protected]/westurner/tools cdw; e index.rst # ew index.rst https://github.com/westurner/tools/blob/master/index.rst https://raw.githubusercontent.com/westurner/tools/master/index.rst * Output: .. code:: bash cd $_WRD # cdwrd; cdw git status; make <tab> # gitw status; makew <tab> make html singlehtml # make docs web ./_build/html/index.html # make open make gh-pages # ghp-import -n -p ./_build/html/ -b gh-pages make push # gitw push <origin> <destbranch> https://github.com/westurner/tools/blob/gh-pages/index.html https://westurner.github.io/tools/ * RawGit: dev/test: https://rawgit.com/westurner/tools/gh-pages/index.html CDN: https://cdn.rawgit.com/westurner/tools/gh-pages/index.html * Output: *ReadTheDocs*: https://<projectname>.readthedocs.io/en/<version>/ https://read-the-docs.readthedocs.io/en/latest/ .. glossary:: Sphinx Builder A Sphinx Builder transforms :ref:`ReStructuredText` into various output forms: * HTML * LaTeX * PDF * ePub * MOBI * JSON * OpenDocument (OpenOffice) * Office Open XML (MS Word) See: `Sphinx Builders <http://sphinx-doc.org/builders.html>`_ Sphinx ReStructuredText Sphinx extends :ref:`ReStructuredText` with roles and directives which only work with Sphinx. Sphinx Directive Sphinx extensions of :ref:`Docutils` :ref:`ReStructuredText` directives. Most other ReStructuredText parsers do not support Sphinx directives. .. code-block:: rest .. toctree:: readme installation usage See: `Sphinx Directives <http://sphinx-doc.org/rest.html#directives>`_ Sphinx Role Sphinx extensions of :ref:`Docutils` :ref:`RestructuredText` roles Most other ReStructuredText parsers do not support Sphinx directives. .. code-block:: rest .. _anchor-name: A link to :ref:`anchor <anchor-name>`. ```
Quoted 21 lines · Jonathan Corbet
Quoted 2 lines · On Tue, 23 Apr 2019 15:01:32 +0200 Peter Zijlstra <[email protected]> wrote:
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
So I believe it gives even you one thing in return: documentation that is more accessible for both readers and authors. More readable docs should lead to more educated developers who understand the code better. More writable docs will bring more people in to help to improve them. The former effect has been reported in the GPU community, where they say that the quality of submissions has improved along with the docs. The latter can be observed in the increased number of people working on the docs overall, something that Linus noted in the 5.1-rc1 announcement.
Hopefully that's worth something :)
Thanks,
jon
Borislav Petkov
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Peter ZijlstraQuoted 5 lines · Peter Zijlstra
I know I'm an odd duck; but no. They're _less_ accessible for me, as both a reader and author. They look 'funny' when read as a text file (the only way it makes sense to read them; I spend 99% of my time on a computer looking at monospace text interfaces; mutt, vim and console, in that approximate order).
+1
It is probably fine to stare at them here
https://www.kernel.org/doc/html/latest/ and the end result is good for showing them in browsers but after this conversion, it is getting more and more painful to work with those files. For example, Documentation/x86/x86_64/mm.txt we use a lot. I'd hate it if I had to go sort out rest muck first just so that I can read it.
I think we can simply leave some text files be text files and be done with it.
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Jonathan Corbet- Accessible, usable docs are worth something in ROI
- https://www.writethedocs.org/
- https://read-the-docs.readthedocs.io/en/latest/
-
https://github.com/rtfd/readthedocs-docker-images/issues/47#issuecomment-485712800
- Dockerfile that extends from readthedocs/build:latest (which has the
GBs of latex necessary to run make latexpdf for all you PDF lovers out there)
- https://github.com/yoloseem/awesome-sphinxdoc
- There are various Sphinx extensions for optionally including generated
API docs for various languages
- If you add the extensions you want installed to your requirements.txt
or environment.yml, ReadTheDocs will install those for every build. You can also create (and maintain) a custom Docker image with all of the docs building dependencies installed (e.g. requirements_dev.txt and/or docs/requirements.txt)
- https://kernel.readthedocs.io/en/latest/kernel-documentation.html
- This says "Copyright 2016"? That's set in conf.py
I keep a tools doc in ReST:
- https://westurner.github.io/tools/#sphinx
- https://westurner.github.io/tools/#docutils
I'll just CC those sections here
wrapped in a Markdown fenced code block
```rst .. index:: Docutils .. _docutils: Docutils ~~~~~~~~~~~~~~~~~~~ | Homepage: http://docutils.sourceforge.net | PyPI: https://pypi.python.org/pypi/docutils | Docs: http://docutils.sourceforge.net/docs/ | Docs: http://docutils.sourceforge.net/rst.html | Docs: http://docutils.sourceforge.net/docs/ref/doctree.html | Docs: https://docutils.readthedocs.io/en/sphinx-docs/ | Docs: https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html | Src: svn http://svn.code.sf.net/p/docutils/code/trunk Docutils is a :ref:`Python` library which 'parses" :ref:`ReStructuredText` lightweight markup language into a doctree (~DOM) which can be serialized into HTML, ePub, MOBI, LaTeX, man pages, Open Document files, XML, JSON, and a number of other formats. .. index:: Sphinx .. _sphinx: Sphinx ~~~~~~~~~~~~~~~~~ | Wikipedia: `< https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)>`_ | Homepage: https://pypi.python.org/pypi/Sphinx | Src: git https://github.com/sphinx-doc/sphinx | Pypi: https://pypi.python.org/pypi/Sphinx | Docs: http://sphinx-doc.org/contents.html | Docs: http://sphinx-doc.org/markup/code.html | Docs: http://www.sphinx-doc.org/en/stable/markup/inline.html#ref-role | Docs: http://pygments.org/docs/lexers/ | Docs: http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html | Docs: https://github.com/yoloseem/awesome-sphinxdoc Sphinx is a tool for working with :ref:`ReStructuredText` documentation trees and rendering them into HTML, PDF, LaTeX, ePub, and a number of other formats. [...] ```
FWIW, ReadTheDocs can host multiple versions of the docs according to the repo
tags you specify in the web admin.
There may be a way to use the RTD JS UI for selecting versions with the docs hosted on your own server?
Such as https://www.kernel.org/doc/html/latest/
- https://github.com/torvalds/linux/blob/master/Documentation/conf.py
- https://github.com/torvalds/linux/blob/master/Documentation/Makefile
-
https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/index.rst
-
https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/sphinx.rst
-
https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/kernel-doc.rst
- https://www.kernel.org/doc/html/latest/
- https://www.kernel.org/doc/html/latest/doc-guide/
-
https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html#sphinx-install
-
https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#writing-kernel-doc-comments
Quoted 21 lines · Jonathan Corbet
Quoted 2 lines · On Tue, 23 Apr 2019 15:01:32 +0200 Peter Zijlstra <[email protected]> wrote:
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
So I believe it gives even you one thing in return: documentation that is more accessible for both readers and authors. More readable docs should lead to more educated developers who understand the code better. More writable docs will bring more people in to help to improve them. The former effect has been reported in the GPU community, where they say that the quality of submissions has improved along with the docs. The latter can be observed in the increased number of people working on the docs overall, something that Linus noted in the 5.1-rc1 announcement.
Hopefully that's worth something :)
Thanks,
jon
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveA: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Jonathan Corbet
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Peter ZijlstraQuoted 2 lines · On Tue, 23 Apr 2019 19:11:58 +0200 Peter Zijlstra…
When writing, I now have to be bothered about this format crap over just trying to write a coherent document.
Just write text, it'll all work out in the end :)
Quoted 9 lines
Look at crap like this:
"The memory allocations via :c:func:
kmalloc, :c:func:vmalloc, :c:func:kmem_cache_allocand"That should've been written like:
"The memory allocations via
kmalloc(),vmalloc(),kmem_cache_alloc()and"
Yeah, I get it. That markup generates cross-references, which can be seriously useful for readers - we want that. But I do wonder if we couldn't do it automatically with just a little bit of scripting work. It's not to hard to recognize this_is_a_function(), after all. I'll look into that, it would definitely help to remove some gunk from the source docs.
jon
Peter Zijlstra
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
Quoted 5 lines · Jonathan Corbet
Quoted 5 lines
Look at crap like this:
"The memory allocations via :c:func:
kmalloc, :c:func:vmalloc, :c:func:kmem_cache_allocand"
Quoted 7 lines
Quoted 4 lines
That should've been written like:
"The memory allocations via
kmalloc(),vmalloc(),kmem_cache_alloc()and"Yeah, I get it. That markup generates cross-references, which can be seriously useful for readers - we want that.
The funny thing is; that sentence continues (on a new line) like:
"friends are traced and the pointers, together with additional"
So while it then has cross-references to a few functions, all 'friends' are left dangling. So what's the point of the cross-references?
Also, 'make ctags' and follow tag (ctrl-] for fellow vim users) will get you to the function, no magic markup required.
Quoted 5 lines
But I do wonder if we
couldn't do it automatically with just a little bit of scripting work. It's not to hard to recognizethis_is_a_function(), after all. I'll look into that, it would definitely help to remove some gunk from the source docs.
That would be good; less markup is more.
Re: [PATCH v2 61/79] docs: leds: convert to ReST
In reply to Mauro Carvalho ChehabHi Mauro,
Thank you for your effort.
Documentation/laptops/thinkpad-acpi.txt
Quoted 58 lines · Mauro Carvalho Chehab
Rename the leds documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system.
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/laptops/thinkpad-acpi.txt | 4 +- Documentation/leds/index.rst | 25 ++ .../leds/{leds-blinkm.txt => leds-blinkm.rst} | 63 ++--- ...s-class-flash.txt => leds-class-flash.rst} | 49 ++-- .../leds/{leds-class.txt => leds-class.rst} | 15 +- .../leds/{leds-lm3556.txt => leds-lm3556.rst} | 100 ++++++-- .../leds/{leds-lp3944.txt => leds-lp3944.rst} | 23 +- Documentation/leds/leds-lp5521.rst | 115 +++++++++ Documentation/leds/leds-lp5521.txt | 101 -------- Documentation/leds/leds-lp5523.rst | 147 ++++++++++++ Documentation/leds/leds-lp5523.txt | 130 ---------- Documentation/leds/leds-lp5562.rst | 137 +++++++++++ Documentation/leds/leds-lp5562.txt | 120 ---------- Documentation/leds/leds-lp55xx.rst | 224 ++++++++++++++++++ Documentation/leds/leds-lp55xx.txt | 194 --------------- Documentation/leds/leds-mlxcpld.rst | 118 +++++++++ Documentation/leds/leds-mlxcpld.txt | 110 --------- ...edtrig-oneshot.txt => ledtrig-oneshot.rst} | 11 +- ...ig-transient.txt => ledtrig-transient.rst} | 63 +++-- ...edtrig-usbport.txt => ledtrig-usbport.rst} | 11 +- Documentation/leds/{uleds.txt => uleds.rst} | 5 +- MAINTAINERS | 2 +- drivers/leds/trigger/Kconfig | 2 +- drivers/leds/trigger/ledtrig-transient.c | 2 +- net/netfilter/Kconfig | 2 +- 25 files changed, 996 insertions(+), 777 deletions(-)create mode 100644
Documentation/leds/index.rst
renameDocumentation/leds/{leds-blinkm.txt=>leds-blinkm.rst} (56%) renameDocumentation/leds/{leds-class-flash.txt=>leds-class-flash.rst} (74%) renameDocumentation/leds/{leds-class.txt=>leds-class.rst} (92%) renameDocumentation/leds/{leds-lm3556.txt=>leds-lm3556.rst} (70%) renameDocumentation/leds/{leds-lp3944.txt=>leds-lp3944.rst} (78%) create mode 100644Documentation/leds/leds-lp5521.rst
delete mode 100644Documentation/leds/leds-lp5521.txt
create mode 100644Documentation/leds/leds-lp5523.rst
delete mode 100644Documentation/leds/leds-lp5523.txt
create mode 100644Documentation/leds/leds-lp5562.rst
delete mode 100644Documentation/leds/leds-lp5562.txt
create mode 100644Documentation/leds/leds-lp55xx.rst
delete mode 100644Documentation/leds/leds-lp55xx.txt
create mode 100644Documentation/leds/leds-mlxcpld.rst
delete mode 100644Documentation/leds/leds-mlxcpld.txt
renameDocumentation/leds/{ledtrig-oneshot.txt=>ledtrig-oneshot.rst} (90%) renameDocumentation/leds/{ledtrig-transient.txt=>ledtrig-transient.rst} (81%) renameDocumentation/leds/{ledtrig-usbport.txt=>ledtrig-usbport.rst} (86%) renameDocumentation/leds/{uleds.txt=>uleds.rst} (95%)Documentation/laptops/thinkpad-acpi.txt +0
-0
Signature · 2 lines
Best regards, Jacek Anaszewski
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to David HowellsEm Tue, 23 Apr 2019 15:52:26 +0100
David Howells <[email protected]> escreveu:
Quoted 13 lines
Quoted 10 lines · Mike Snitzer
Quoted 2 lines · Peter Zijlstra
But yes, I have 0 motivation to learn or abide by rst. It simply doesn't give me anything in return. There is no upside, only worse text files :/
Right, but these changes aren't meant for our benefit. They are for users who get cleaner web accessible Linux kernel docs. Seems the decision has been made that the users' benefit, and broader modernization of Linux docs, outweighs the inconvenience for engineers who maintain the content of said documentation.
Quoted 8 lines
Whilst I can sympathise with Mauro and Jon - and appreciate the hard work they've put into this, I do think that the engineers dealing directly with the kernel code should be considered the primary audience.
There've been some changes that I've particularly objected to, such as removing contents lists from files and replacing them with markup like:
.. contents:: :local:
Actually, just:
.. contents
Is enough. The goal here is just to avoid having two indexes when generating an html output - and sometimes the internal contents index is broken - I got one of these during this patch series: a very confusing internal "contents" that doesn't really match the contents of the file - probably because some patch changed the contents but didn't update the internal index.
Quoted 3 lines
This actually impedes use of the file. It should not be necessary to build the docs to get that for ordinary use.
IMHO, replacing:
Contents 1. Introduction ...
By:
.. Contents 1. Introduction ...
won't make the document harder to read as plain text file. With html output, the contents will be at both the index.html and at the lateral bar, so the text "Contents" can be hidden (and that's what the two points
make: it transforms the block into a comment).
Quoted 7 lines
Anyway, the biggest doc issue in the kernel isn't addressed by the conversion to ReST: and that is that most people don't seem interested in documenting stuff - whether because writing documentation isn't as fun as writing code or the fact that English isn't their native language, I don't know. I can sympathise more with the latter.
Yeah, foreign people gets afraid on writing English documents. Yet, my personal perception is that we end by getting more contributions once the documents get converted, as more people end reading them and ends by sending us more contributions.
Quoted 4 lines
Kerneldoc is a start - and probably means that a lot of API functions are at least slightly documented - but too many APIs are not mentioned in the Documentation directory at all. Remember: if you can't describe it, it's probably wrong!
Fully agreed.
Quoted 3 lines
I'm not sure what we could do about this, but it would probably have to be imposed from the top: no more undocumented APIs. Any new API must come with documentation; changes to APIs must include changes to the documentation.
This is a requirement on media: we don't accept for quite a while uAPI changes without documentation, and we're doing the same for new kAPI changes (although it is a little more complex to track kAPI changes).
Quoted 3 lines
If you really want to upset people, you could add: anyone who wants to alter an already existing undocumented API must supply documentation for the whole API (but that could be considered a bit cruel).
Well, we may politely request that ;-) If it doesn't work, we can accept documentation for just the new stuff.
Quoted 5 lines
And anyone who says "But the code is the documentation!" needs to consider carefully what happens to their code after it has been trampled, generalised, split, combined, renormalised, cthulhuised, janitorised and had parts of it migrate.
Yes, on a complex system like the Kernel, having just access to the code is not enough, as developers don't usually have the time to read the code for every single function call his code needs to use.
Quoted 6 lines
</rant>
And now, after that, I think a fresh cup of tea is called for!
David
Thanks,
Mauro
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
In reply to Farhan AliEm Tue, 23 Apr 2019 12:12:41 -0400
Farhan Ali <[email protected]> escreveu:
Quoted 21 lines · Mauro Carvalho Chehab
Quoted 14 lines
Convert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.Quoted 5 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab<[email protected]>---
Quoted 7 lines
Hi Mauro,
How would the s390 rst files be accessed from a top level
index.rstfile? Is there a view of the changes? I looked at a link you posted [1] as a reply in another thread, but I couldn't find the s390 docs there.
With just the patch I added on this series, you'll find the s390 index.html, and one file for each .rst at Documentation/output/s390/.
In order to have it linked to the main index, you need to add s390/index to Documentation/index.rst, but, if you just want to see the results, you can just call:
$ firefox file://`pwd`/Documentation/output/s390/index.html
I have a patch already that adds s390 to the main index, together with other arch conversions:
https://git.linuxtv.org/mchehab/experimental.git/commit/?h=convert_rst_renames&id=d28c466a495488e5e57c7893123011342eea40b2
However, as subsystem maintainers may take a while to apply some of those patches, and there's a patchset converting x86 arch too, I opted to do such additions on a separate patch, in order to reduce merge conflicts.
Thanks,
Mauro
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveEm Tue, 23 Apr 2019 19:20:06 +0200
Borislav Petkov <[email protected]> escreveu:
Quoted 7 lines · Peter Zijlstra
Quoted 5 lines
I know I'm an odd duck; but no. They're _less_ accessible for me, as both a reader and author. They look 'funny' when read as a text file (the only way it makes sense to read them; I spend 99% of my time on a computer looking at monospace text interfaces; mutt, vim and console, in that approximate order).
Quoted 8 lines
+1
It is probably fine to stare at them here
https://www.kernel.org/doc/html/latest/ and the end result is good for showing them in browsers but after this conversion, it is getting more and more painful to work with those files. For example,Documentation/x86/x86_64/mm.txtwe use a lot. I'd hate it if I had to go sort out rest muck first just so that I can read it.
That's my view about how that specific file would be after converted to ReST:
I don't have any troubles reading/understanding it as a plain text file, and its html output is also nice (although Sphinx 1.7.8 seems to have some issues when parsing some cells - probably due to some bug):
https://www.infradead.org/~mchehab/rst_conversion/x86/x86_64/mm.html
Quoted 3 lines
I think we can simply leave some text files be text files and be done with it.
Changbin's approach was somewhat close to what you want. He simply prepended the tables with ::, in order to show them as plain old ascii:
https://lore.kernel.org/lkml/20190423162932.21428-60-changbin.du-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/
Both equally works, from ReST conversion PoV. I'm fine ether way.
I prefer my approach, as, IMHO, it is visually nicer on both text and html versions, but his approach is likely easier to maintain, as doing ascii artwork by hand is sometimes painful.
Thanks,
Mauro
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveEm Tue, 23 Apr 2019 11:53:49 -0600
Jonathan Corbet <[email protected]> escreveu:
Quoted 14 lines
Quoted 9 lines · On Tue, 23 Apr 2019 19:11:58 +0200 Peter Zijlstra…
Look at crap like this:
"The memory allocations via :c:func:
kmalloc, :c:func:vmalloc, :c:func:kmem_cache_allocand"That should've been written like:
"The memory allocations via
kmalloc(),vmalloc(),kmem_cache_alloc()and"
Quoted 6 lines
Yeah, I get it. That markup generates cross-references, which can be seriously useful for readers - we want that. But I do wonder if we couldn't do it automatically with just a little bit of scripting work. It's not to hard to recognize
this_is_a_function(), after all. I'll look into that, it would definitely help to remove some gunk from the source docs.
While on it, one thing that I noticed on several documents is that they reference other documents by their names. On this conversion, I avoided replacing that by a :ref:`` tag or a :doc:`` tag. I only added cross references on two cases:
- a latex file that got converted to ReST and had such cross-references already;
- one of the document sets that seemed to be using some other markup language very close to ReST, but with a different cross-reference markup. So, I just converted it to use the syntax that Sphinx would recognize.
Anyway, one of the things that occurred to me is that maybe some scripting work or a ReST extension could do something to parse "Documentation/foo" as :doc:Documentation/foo without needing to explicitly use any ReST specific tags.
Thanks,
Mauro
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Jonathan CorbetEm Tue, 23 Apr 2019 10:54:15 -0600
Jonathan Corbet <[email protected]> escreveu:
Quoted 33 lines
Quoted 7 lines · On Tue, 23 Apr 2019 15:52:26 +0100 David Howells <[email protected]> wrote:
There've been some changes that I've particularly objected to, such as removing contents lists from files and replacing them with markup like:
.. contents:: :local:This actually impedes use of the file. It should not be necessary to build the docs to get that for ordinary use.
Usability of the text files versus that of the built docs is occasionally something that has to be traded off. As a general rule, I want the text files to remain useful on their own. There is a lot of value in the built docs for a lot of people, but that should not be the only, or even the primary, form of access
Tables of contents are certainly a place where that tradeoff makes itself felt. Doing them by hand ensures that they are always present, but requires that people editing the docs also maintain the TOCS - something that experience has shown tends not to happen. That's more of a pain than a little bit of markup, and people don't do it. An automatically generated TOC, instead, is always correct and is linkable.
Few people complain about the biggest impediment to the readability of text files, though: the use of kerneldoc comments. That splits the information between the text file and multiple random-seeming locations among tends of thousands of source files. Sometimes the solution here is to move all of the documentation into the source, but that tends to fragment it and make it harder to find; it's certainly not the right place for many kinds of docs. In general, it's hard to create a coherent story that way.
Quoted 7 lines
Suggestions / patches on how to improve things for *all* users of the docs are certainly welcome!
I am, incidentally, toying with the idea of trying to put together a documentation microconf at the Linux Plumbers Conference this year. If anybody out there thinks that's a good idea and would like to participate, please let me know.
If you add a microconf to LPC, I'm in.
IMO, we made big advances with documentation, but there's a lot more to be done. Having a microconf to discuss those things may help us to bring new ideas about how to keep improving it.
Thanks,
Mauro
Jonathan Corbet
maintainerRe: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Tue, 23 Apr 2019 17:19:44 -0300 Mauro Carvalho Chehab…
Anyway, one of the things that occurred to me is that maybe some scripting work or a ReST extension could do something to parse "
Documentation/foo" as :doc:Documentation/foowithout needing to explicitly use any ReST specific tags.
That probably makes sense too. People do want to link to specific subsections within documents, though; maybe we could allow "Documentation/foo#bar" for that. Such "markup" could even be useful for people reading the plain-text files.
Thanks,
jon
Re: [PATCH v2 15/79] docs: gpio: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 6 lines · Mauro Carvalho Chehab
The API described at sysfs.txt is deprecated.
Still, as it is still part of the Kernel (and will likely be there for some time, as we don't simply remove APIs). So, it makes sense to keep it there.
Quoted 8 lines
The conversion of this file is trivial:
- add blank lines and identation in order to identify paragraphs;
- mark a literal block as such.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Patch applied to the GPIO tree.
Yours,
Linus Walleij
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveQuoted 7 lines · Mauro Carvalho Chehab
That's my view about how that specific file would be after converted to ReST:
I don't have any troubles reading/understanding it as a plain text file,
If that is all the changes it would need, then I guess that's ok. Btw, those rst-conversion patches don't really show what got changed. Dunno if git can even show that properly. I diffed the two files by hand to see what got changed, see end of mail.
So I guess if table in rst means, one needs to draw rows and columns, I guess that's ok. It's not like I have to do it every day.
But exactly this - *having* to do rst formatting would mean a lot of getting used to and people writing something which is not necessarily correct rst and someone else fixing up after them.
Another pain point is changing the file paths. Without cscope I would've been cursing each time I'm looking for kernel-parameters.txt, for example. First of all, it is in Documentation/admin-guide/ now and then there's Documentation/admin-guide/kernel-parameters.rst too.
I guess the .rst sucks in the .txt file and shows it monospaced. Oh well.
So* I'd suggest having as less markup in those files as possible and if it is needed, automate adding the needed markup, as Jon suggested.
The perfect example was the one which Peter gave and I had to paste in a thread today:
"The memory allocations via :c:func:kmalloc, :c:func:vmalloc, :c:func:kmem_cache_alloc and"
That is very unreadable.
Anyway, stuff like that. Just giving my feedback here in case you're interested. :-)
Quoted 4 lines
and its html output is also nice (although Sphinx 1.7.8 seems to have some issues when parsing some cells - probably due to some bug):
https://www.infradead.org/~mchehab/rst_conversion/x86/x86_64/mm.html
I don't know how that looks in your browser but in mine those addresses are not in monospaced font and there's no properly reading them.
And yap, the cells parsing fun I see too.
Quoted 5 lines
Changbin's approach was somewhat close to what you want. He simply prepended the tables with ::, in order to show them as plain old ascii:
https://lore.kernel.org/lkml/20190423162932.21428-60-changbin.du-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/
Yap, that's better.
I mean, the file is just as readable in plain old ASCII, if not even more so. At least to me but I prefer simple things so...
Quoted 6 lines
Both equally works, from ReST conversion PoV. I'm fine ether way.
I prefer my approach, as, IMHO, it is visually nicer on both text and html versions, but his approach is likely easier to maintain, as doing ascii artwork by hand is sometimes painful.
Yap.
Thx.
---
mm.new renamed from mm.old +122 -90
@@ -18,51 +18,68 @@ Notes: notation than "16 EB", which few will recognize at first sight as 16 exabytes. It also shows it nicely how incredibly large 64-bit address space is. -======================================================================================================================== - Start addr | Offset | End addr | Size | VM area description -======================================================================================================================== - | | | | - 0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory, different per mm -__________________|____________|__________________|_________|___________________________________________________________ - | | | | - 0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | ... huge, almost 64 bits wide hole of non-canonical - | | | | virtual memory addresses up to the -128 TB - | | | | starting offset of kernel mappings. -__________________|____________|__________________|_________|___________________________________________________________ - | - | Kernel-space virtual memory, shared between all processes: -____________________________________________________________|___________________________________________________________ - | | | | - ffff800000000000 | -128 TB | ffff87ffffffffff | 8 TB | ... guard hole, also reserved for hypervisor - ffff880000000000 | -120 TB | ffff887fffffffff | 0.5 TB | LDT remap for PTI - ffff888000000000 | -119.5 TB | ffffc87fffffffff | 64 TB | direct mapping of all physical memory (page_offset_base) - ffffc88000000000 | -55.5 TB | ffffc8ffffffffff | 0.5 TB | ... unused hole - ffffc90000000000 | -55 TB | ffffe8ffffffffff | 32 TB | vmalloc/ioremap space (vmalloc_base) - ffffe90000000000 | -23 TB | ffffe9ffffffffff | 1 TB | ... unused hole - ffffea0000000000 | -22 TB | ffffeaffffffffff | 1 TB | virtual memory map (vmemmap_base) - ffffeb0000000000 | -21 TB | ffffebffffffffff | 1 TB | ... unused hole - ffffec0000000000 | -20 TB | fffffbffffffffff | 16 TB | KASAN shadow memory -__________________|____________|__________________|_________|____________________________________________________________ - | - | Identical layout to the 56-bit one from here on: -____________________________________________________________|____________________________________________________________ - | | | | - fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole - | | | | vaddr_end for KASLR - fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping - fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole - ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks - ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole - ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space - ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole - ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 - ffffffff80000000 |-2048 MB | | | - ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space - ffffffffff000000 | -16 MB | | | - FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset - ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI - ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole -__________________|____________|__________________|_________|___________________________________________________________ ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| Start addr | Offset | End addr | Size | VM area description | ++=================+============+==================+=========+===========================================================+ +| | | | | | +|0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory, different per mm | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| | | | | | +|0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | ... huge, almost 64 bits wide hole of non-canonical | +| | | | | virtual memory addresses up to the -128 TB | +| | | | | starting offset of kernel mappings. | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Kernel-space virtual memory, shared between all processes:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff800000000000 | -128 TB | ffff87ffffffffff | 8 TB | ... guard hole, also reserved for hypervisor | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff880000000000 | -120 TB | ffff887fffffffff | 0.5 TB | LDT remap for PTI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff888000000000 | -119.5 TB | ffffc87fffffffff | 64 TB | direct mapping of all physical memory (page_offset_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffc88000000000 | -55.5 TB | ffffc8ffffffffff | 0.5 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffc90000000000 | -55 TB | ffffe8ffffffffff | 32 TB | vmalloc/ioremap space (vmalloc_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffe90000000000 | -23 TB | ffffe9ffffffffff | 1 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffea0000000000 | -22 TB | ffffeaffffffffff | 1 TB | virtual memory map (vmemmap_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffeb0000000000 | -21 TB | ffffebffffffffff | 1 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffec0000000000 | -20 TB | fffffbffffffffff | 16 TB | KASAN shadow memory | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Identical layout to the 56-bit one from here on:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole | +| | | | | vaddr_end for KASLR | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 |-2048 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff000000 | -16 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ ====================================================
@@ -76,51 +93,66 @@ Notes: offset and many of the regions expand to support the much larger physical memory supported. -======================================================================================================================== - Start addr | Offset | End addr | Size | VM area description -======================================================================================================================== - | | | | - 0000000000000000 | 0 | 00ffffffffffffff | 64 PB | user-space virtual memory, different per mm -__________________|____________|__________________|_________|___________________________________________________________ - | | | | - 0100000000000000 | +64 PB | feffffffffffffff | ~16K PB | ... huge, still almost 64 bits wide hole of non-canonical - | | | | virtual memory addresses up to the -64 PB - | | | | starting offset of kernel mappings. -__________________|____________|__________________|_________|___________________________________________________________ - | - | Kernel-space virtual memory, shared between all processes: -____________________________________________________________|___________________________________________________________ - | | | | - ff00000000000000 | -64 PB | ff0fffffffffffff | 4 PB | ... guard hole, also reserved for hypervisor - ff10000000000000 | -60 PB | ff10ffffffffffff | 0.25 PB | LDT remap for PTI - ff11000000000000 | -59.75 PB | ff90ffffffffffff | 32 PB | direct mapping of all physical memory (page_offset_base) - ff91000000000000 | -27.75 PB | ff9fffffffffffff | 3.75 PB | ... unused hole - ffa0000000000000 | -24 PB | ffd1ffffffffffff | 12.5 PB | vmalloc/ioremap space (vmalloc_base) - ffd2000000000000 | -11.5 PB | ffd3ffffffffffff | 0.5 PB | ... unused hole - ffd4000000000000 | -11 PB | ffd5ffffffffffff | 0.5 PB | virtual memory map (vmemmap_base) - ffd6000000000000 | -10.5 PB | ffdeffffffffffff | 2.25 PB | ... unused hole - ffdf000000000000 | -8.25 PB | fffffbffffffffff | ~8 PB | KASAN shadow memory -__________________|____________|__________________|_________|____________________________________________________________ - | - | Identical layout to the 47-bit one from here on: -____________________________________________________________|____________________________________________________________ - | | | | - fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole - | | | | vaddr_end for KASLR - fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping - fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole - ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks - ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole - ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space - ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole - ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 - ffffffff80000000 |-2048 MB | | | - ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space - ffffffffff000000 | -16 MB | | | - FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset - ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI - ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole -__________________|____________|__________________|_________|___________________________________________________________ ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| Start addr | Offset | End addr | Size | VM area description | ++=================+============+==================+=========+===========================================================+ +|0000000000000000 | 0 | 00ffffffffffffff | 64 PB | user-space virtual memory, different per mm | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|0100000000000000 | +64 PB | feffffffffffffff | ~16K PB | ... huge, still almost 64 bits wide hole of non-canonical | +| | | | | virtual memory addresses up to the -64 PB | +| | | | | starting offset of kernel mappings. | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Kernel-space virtual memory, shared between all processes:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ff00000000000000 | -64 PB | ff0fffffffffffff | 4 PB | ... guard hole, also reserved for hypervisor | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ff10000000000000 | -60 PB | ff10ffffffffffff | 0.25 PB | LDT remap for PTI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ff11000000000000 | -59.75 PB | ff90ffffffffffff | 32 PB | direct mapping of all physical memory (page_offset_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ff91000000000000 | -27.75 PB | ff9fffffffffffff | 3.75 PB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffa0000000000000 | -24 PB | ffd1ffffffffffff | 12.5 PB | vmalloc/ioremap space (vmalloc_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffd2000000000000 | -11.5 PB | ffd3ffffffffffff | 0.5 PB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffd4000000000000 | -11 PB | ffd5ffffffffffff | 0.5 PB | virtual memory map (vmemmap_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffd6000000000000 | -10.5 PB | ffdeffffffffffff | 2.25 PB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffdf000000000000 | -8.25 PB | fffffbffffffffff | ~8 PB | KASAN shadow memory | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Identical layout to the 47-bit one from here on:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole | +| | | | | vaddr_end for KASLR | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 |-2048 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff000000 | -16 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ Architecture defines a 64-bit virtual address. Implementations can support less. Currently supported are 48- and 57-bit virtual addresses. Bits 63
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveQuoted 3 lines · On Tue, 23 Apr 2019 23:38:16 +0200 Borislav Petkov…
But exactly this - *having* to do rst formatting would mean a lot of getting used to and people writing something which is not necessarily correct rst and someone else fixing up after them.
Remember that most of our docs are 99% RST even though they were written by people who had never even heard of RST. I really don't think it's a big deal - a far smaller cognitive load than trying to keep up with any given subsystem's variable-declaration-ordering rules, for example :)
Quoted 4 lines
Another pain point is changing the file paths. Without cscope I would've been cursing each time I'm looking for kernel-parameters.txt, for example. First of all, it is in
Documentation/admin-guide/now and then there'sDocumentation/admin-guide/kernel-parameters.rsttoo.
Moving of files has nothing to do with RST, of course. That you can blame entirely on me trying to bring some order to Documentation/. As a predecessor of mine once put it (https://lkml.org/lkml/2007/7/3/422):
Documentation/* is a gigantic mess, currently organized based on where random passers-by put things down last.
When other parts of the kernel tree turn out to be organized in less-than-useful ways, we move things around. I'm trying to do the same in Documentation/, with an attempt to be sympathetic toward our readers, sort things by intended audience, and create (someday) a coherent whole. I agree that moving docs is a short-term annoyance, but I'm hoping that it brings a long-term benefit.
Quoted 2 lines
So* I'd suggest having as less markup in those files as possible and if it is needed, automate adding the needed markup, as Jon suggested.
Minimal markup is the policy (it's even documented :). Automating stuff that can be automated is an area that has definitely not received enough attention; hopefully some things can be done there in the very near future.
Thanks,
jon
Re: [PATCH v2 26/79] docs: powerpc: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 14 lines · Mauro Carvalho Chehab
Convert docs to ReST and add them to the arch-specific book.
The conversion here was trivial, as almost every file there was already using an elegant format close to ReST standard.
The changes were mostly to mark literal blocks and add a few missing section title identifiers.
One note with regards to "--": on Sphinx, this can't be used to identify a list, as it will format it badly. This can be used, however, to identify a long hyphen - and "---" is an even longer one.
Quoted 4 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Minor possible improvement below, otherwise compiled output looks very nice.
Quoted 22 lines
Documentation/powerpc/cxl.rst renamed from Documentation/powerpc/cxl.txt +3
-0@@ -1,3 +1,4 @@ +==================================== Coherent Accelerator Interface (CXL) ====================================@@ -21,6 +22,8 @@ Introduction Hardware overview ================= + :: + POWER8/9 FPGA +----------+ +---------+ | | | |
Documentation/powerpc/cxl.rst Hardware overview · line 67
Quoted 8 lines
Documentation/powerpc/cxl.rst renamed from Documentation/powerpc/cxl.txt +3
-2@@ -59,14 +62,16 @@ Hardware overview the fault. The context to which this fault is serviced is based on who owns that acceleration function. - POWER8 <-----> PSL Version 8 is compliant to the CAIA Version 1.0. - POWER9 <-----> PSL Version 9 is compliant to the CAIA Version 2.0. + - POWER8 <------> PSL Version 8 is compliant to the CAIA Version 1.0. + - POWER9 <------> PSL Version 9 is compliant to the CAIA Version 2.0. +
This could probably be changed to "POWER8 and PSL Version 8 are compliant" or something like that to avoid the ASCII art arrows turning into dashes. Happy to pick this up myself if I ever get around to revising the rest of the documentation.
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveQuoted 4 lines · Borislav Petkov
If that is all the changes it would need, then I guess that's ok. Btw, those rst-conversion patches don't really show what got changed. Dunno if git can even show that properly. I diffed the two files by hand to see what got changed, see end of mail.
That is not a happy diff; that table has gotten waay worse to read due to all that extra table crap.
Quoted 114 lines
---
mm.new renamed from mm.old +62
-45@@ -18,51 +18,68 @@ Notes: notation than "16 EB", which few will recognize at first sight as 16 exabytes. It also shows it nicely how incredibly large 64-bit address space is. -======================================================================================================================== - Start addr | Offset | End addr | Size | VM area description -======================================================================================================================== - | | | | - 0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory, different per mm -__________________|____________|__________________|_________|___________________________________________________________ - | | | | - 0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | ... huge, almost 64 bits wide hole of non-canonical - | | | | virtual memory addresses up to the -128 TB - | | | | starting offset of kernel mappings. -__________________|____________|__________________|_________|___________________________________________________________ - | - | Kernel-space virtual memory, shared between all processes: -____________________________________________________________|___________________________________________________________ - | | | | - ffff800000000000 | -128 TB | ffff87ffffffffff | 8 TB | ... guard hole, also reserved for hypervisor - ffff880000000000 | -120 TB | ffff887fffffffff | 0.5 TB | LDT remap for PTI - ffff888000000000 | -119.5 TB | ffffc87fffffffff | 64 TB | direct mapping of all physical memory (page_offset_base) - ffffc88000000000 | -55.5 TB | ffffc8ffffffffff | 0.5 TB | ... unused hole - ffffc90000000000 | -55 TB | ffffe8ffffffffff | 32 TB | vmalloc/ioremap space (vmalloc_base) - ffffe90000000000 | -23 TB | ffffe9ffffffffff | 1 TB | ... unused hole - ffffea0000000000 | -22 TB | ffffeaffffffffff | 1 TB | virtual memory map (vmemmap_base) - ffffeb0000000000 | -21 TB | ffffebffffffffff | 1 TB | ... unused hole - ffffec0000000000 | -20 TB | fffffbffffffffff | 16 TB | KASAN shadow memory -__________________|____________|__________________|_________|____________________________________________________________ - | - | Identical layout to the 56-bit one from here on: -____________________________________________________________|____________________________________________________________ - | | | | - fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole - | | | | vaddr_end for KASLR - fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping - fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole - ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks - ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole - ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space - ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole - ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 - ffffffff80000000 |-2048 MB | | | - ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space - ffffffffff000000 | -16 MB | | | - FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset - ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI - ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole -__________________|____________|__________________|_________|___________________________________________________________ ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| Start addr | Offset | End addr | Size | VM area description | ++=================+============+==================+=========+===========================================================+ +| | | | | | +|0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory, different per mm | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| | | | | | +|0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | ... huge, almost 64 bits wide hole of non-canonical | +| | | | | virtual memory addresses up to the -128 TB | +| | | | | starting offset of kernel mappings. | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Kernel-space virtual memory, shared between all processes:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff800000000000 | -128 TB | ffff87ffffffffff | 8 TB | ... guard hole, also reserved for hypervisor | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff880000000000 | -120 TB | ffff887fffffffff | 0.5 TB | LDT remap for PTI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffff888000000000 | -119.5 TB | ffffc87fffffffff | 64 TB | direct mapping of all physical memory (page_offset_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffc88000000000 | -55.5 TB | ffffc8ffffffffff | 0.5 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffc90000000000 | -55 TB | ffffe8ffffffffff | 32 TB | vmalloc/ioremap space (vmalloc_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffe90000000000 | -23 TB | ffffe9ffffffffff | 1 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffea0000000000 | -22 TB | ffffeaffffffffff | 1 TB | virtual memory map (vmemmap_base) | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffeb0000000000 | -21 TB | ffffebffffffffff | 1 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffec0000000000 | -20 TB | fffffbffffffffff | 16 TB | KASAN shadow memory | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| **Identical layout to the 56-bit one from here on:** | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffc0000000000 | -4 TB | fffffdffffffffff | 2 TB | ... unused hole | +| | | | | vaddr_end for KASLR | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe0000000000 | -2 TB | fffffe7fffffffff | 0.5 TB | cpu_entry_area mapping | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|fffffe8000000000 | -1.5 TB | fffffeffffffffff | 0.5 TB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff0000000000 | -1 TB | ffffff7fffffffff | 0.5 TB | %esp fixup stacks | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffff8000000000 | -512 GB | ffffffeeffffffff | 444 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffff80000000 |-2048 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff000000 | -16 MB | | | | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +| FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable size and offset | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+ +|ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole | ++-----------------+------------+------------------+---------+-----------------------------------------------------------+
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveQuoted 4 lines · Jonathan Corbet
Remember that most of our docs are 99% RST even though they were written by people who had never even heard of RST. I really don't think it's a big deal - a far smaller cognitive load than trying to keep up with any given subsystem's variable-declaration-ordering rules, for example :)
Tztztz, this thing seems to have hit a nerve with people. Which means, I will enforce that even more now so that I annoy submitters more! :-P
See, I can do my own "RST" too. :-P
Srsly: ok, good. Sounds like we're on the same page then.
Quoted 5 lines
I'm trying to do the same in
Documentation/, with an attempt to be
sympathetic toward our readers, sort things by intended audience, and create (someday) a coherent whole. I agree that moving docs is a short-term annoyance, but I'm hoping that it brings a long-term benefit.
Ok, that's fair. I've been moving files too, in the past.
Quoted 4 lines
Minimal markup is the policy (it's even documented :). Automating stuff that can be automated is an area that has definitely not received enough attention; hopefully some things can be done there in the very near future.
Sounds nice, thanks Jon!
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveEm Tue, 23 Apr 2019 23:38:16 +0200
Borislav Petkov <[email protected]> escreveu:
Quoted 6 lines · Mauro Carvalho Chehab
Quoted 5 lines
That's my view about how that specific file would be after converted to ReST:
Quoted 7 lines
Quoted 2 lines
I don't have any troubles reading/understanding it as a plain text file,
If that is all the changes it would need, then I guess that's ok. Btw, those rst-conversion patches don't really show what got changed. Dunno if git can even show that properly. I diffed the two files by hand to see what got changed, see end of mail.
Well, you can use git show -M01 and it will likely show what changed. The thing is that plain diff is not very good showing diffs on text files. I suspect that using some tool like wdiff would give a better view of such changes.
Quoted 2 lines
So I guess if table in rst means, one needs to draw rows and columns, I guess that's ok. It's not like I have to do it every day.
Yes, for complex tables, one needs to draw rows/columns. For simple tables, all you need to do is something like:
====== ======== ==== ======== === - CONT PTE PMD CONT PMD PUD ====== ======== ==== ======== ===
4K: 64K 2M 32M 1G
16K: 2M 32M 1G
64K: 2M 512M 16G
====== ======== ==== ======== ===
in order to teach Sphinx where each column starts/stops, and (optionally) show the table titles in bold.
(that's from Documentation/arm64/hugetlbpage.rst conversion)
Quoted 3 lines
But exactly this - *having* to do rst formatting would mean a lot of getting used to and people writing something which is not necessarily correct rst and someone else fixing up after them.
Yeah, one has to take the conversion effort, but once done, it should be easy to keep it updated.
Quoted 9 lines
Quoted 4 lines
and its html output is also nice (although Sphinx 1.7.8 seems to have some issues when parsing some cells - probably due to some bug):
https://www.infradead.org/~mchehab/rst_conversion/x86/x86_64/mm.htmlI don't know how that looks in your browser but in mine those addresses are not in monospaced font and there's no properly reading them.
And yap, the cells parsing fun I see too.
Font selection is one of the things would require some markup, as a plain text file doesn't have font changes.
There are several ways to make it use a monospaced font.
The straight forward way would be to place everything that it is monospaced inside ``double quotes``, with is the ReST way to mark a literal block inside a text. IMHO, that would add too much "noise" at the tables.
Another possibility would be to do:
.. raw:: html
<head><style>td { font-family: monospace, monospace; }</style></head>(the double monospace here is not a mistake - it is due to a known bug^H^H^Hfeature on some browsers[1])
[1] https://stackoverflow.com/questions/38781089/font-family-monospace-monospace
IMO, the best alternative would be to add a new class to the css file, and use it whenever we need a table with monospaced font, e. g.:
Documentation/sphinx-static/theme_overrides.css +4 -0
@@ -125,3 +125,7 @@ div[class^="highlight"] pre { color: inherit; } } + +table.monospaced { + font-family: monospace, monospace; +}
Documentation/x86/x86_64/mm.rst +2 -0
@@ -18,6 +18,8 @@ Notes: notation than "16 EB", which few will recognize at first sight as 16 exabytes. It also shows it nicely how incredibly large 64-bit address space is. +.. cssclass:: monospaced + +-----------------+------------+------------------+---------+-----------------------------------------------------------+ | Start addr | Offset | End addr | Size | VM area description | +=================+============+==================+=========+===========================================================+
(patch on the top of this tree
https://git.linuxtv.org/mchehab/experimental.git/tree/Documentation/x86/x86_64/mm.rst?h=convert_rst_renames)
The ..cssclass:: markup on the above example will be applied just to the table below it. So, with that, it is possible to have normal and monospaced tables mixed (if you apply the above patch, you'll see that just the first table will use monospaced fonts).
-
Personally, I don't care much with monospaced fonts on this table. After all, if I want to see it monospaced, I can simply click at the "View page source" at the browser, and it will display the file as a plain old monospaced text file.
Thanks,
Mauro
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 57 lines · On Mon, 22 Apr 2019 10:27:20 -0300 Mauro Carvalho Chehab…
Convert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>--- .../admin-guide/kernel-parameters.txt | 4 +- Documentation/driver-api/s390-drivers.rst | 4 +- Documentation/s390/{3270.txt => 3270.rst} | 85 +- Documentation/s390/{cds.txt => cds.rst} | 354 ++- .../s390/{CommonIO => common_io.rst} | 49 +- Documentation/s390/{DASD => dasd.rst} | 33 +- .../{Debugging390.txt => debugging390.rst} | 2389 ++++++++++------- .../{driver-model.txt => driver-model.rst} | 179 +- Documentation/s390/index.rst | 30 + .../s390/{monreader.txt => monreader.rst} | 85 +- Documentation/s390/{qeth.txt => qeth.rst} | 36 +- Documentation/s390/s390dbf.rst | 803 ++++++ Documentation/s390/s390dbf.txt | 667 ----- Documentation/s390/text_files.rst | 11 + .../s390/{vfio-ap.txt => vfio-ap.rst} | 487 ++-- .../s390/{vfio-ccw.txt => vfio-ccw.rst} | 90 +- .../s390/{zfcpdump.txt => zfcpdump.rst} | 2 + MAINTAINERS | 4 +- arch/s390/Kconfig | 4 +- arch/s390/include/asm/debug.h | 4 +- drivers/s390/char/zcore.c | 2 +- 21 files changed, 3089 insertions(+), 2233 deletions(-) rename Documentation/s390/{3270.txt => 3270.rst} (90%) rename Documentation/s390/{cds.txt => cds.rst} (64%) rename Documentation/s390/{CommonIO => common_io.rst} (87%) rename Documentation/s390/{DASD => dasd.rst} (92%) rename Documentation/s390/{Debugging390.txt => debugging390.rst} (53%) rename Documentation/s390/{driver-model.txt => driver-model.rst} (73%) create mode 100644 Documentation/s390/index.rst rename Documentation/s390/{monreader.txt => monreader.rst} (81%) rename Documentation/s390/{qeth.txt => qeth.rst} (62%) create mode 100644 Documentation/s390/s390dbf.rst delete mode 100644 Documentation/s390/s390dbf.txt create mode 100644 Documentation/s390/text_files.rst rename Documentation/s390/{vfio-ap.txt => vfio-ap.rst} (72%) rename Documentation/s390/{vfio-ccw.txt => vfio-ccw.rst} (89%) rename Documentation/s390/{zfcpdump.txt => zfcpdump.rst} (97%)
(...)
Quoted 7 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-0
(...)
Quoted 5 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-1@@ -17,12 +21,12 @@ twenty and thirty years ago. You may have 3270s in-house and not know it. If you're using the VM-ESA operating system, define a 3270 to your virtual machine by using the command "DEF GRAF <hex-address>" This paper presumes you will be -defining four 3270s with the CP/CMS commands
Documentation/s390/3270.rst twenty and thirty years ago. · line 29
Quoted 10 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +5
-4+defining four 3270s with the CP/CMS commands: - DEF GRAF 620 - DEF GRAF 621 - DEF GRAF 622 - DEF GRAF 623 + - DEF GRAF 620 + - DEF GRAF 621 + - DEF GRAF 622 + - DEF GRAF 623
IIUC, this makes this into a bulleted list... but the user is supposed to enter these commands (similar to the shell commands further down in this file).
Quoted 3 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-0Your network connection from VM-ESA allows you to use x3270, tn3270, or another 3270 emulator, started from an xterm window on your PC or
(...)
Quoted 16 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +3
-2@@ -84,20 +92,22 @@ Here are the installation steps in detail: make modules_install 2. (Perform this step only if you have configured tub3270 as a - module.) Add a line to a file /etc/modprobe.d/*.conf to automatically + module.) Add a line to a file `/etc/modprobe.d/*.conf` to automatically load the driver when it's needed. With this line added, you will see login prompts appear on your 3270s as soon as boot is complete (or with emulated 3270s, as soon as you dial into your vm guest using the command "DIAL <vmguestname>"). Since the line-mode major number is - 227, the line to add should be: + 227, the line to add should be:: + alias char-major-227 tub3270 3. Define graphic devices to your vm guest machine, if you
Documentation/s390/3270.rst Here are the installation steps in detail: · line 110
Quoted 10 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +5
-4haven't already. Define them before you reboot (reipl): - DEFINE GRAF 620 - DEFINE GRAF 621 - DEFINE GRAF 622 - DEFINE GRAF 623 + + - DEFINE GRAF 620 + - DEFINE GRAF 621 + - DEFINE GRAF 622 + - DEFINE GRAF 623
Same here.
Quoted 3 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-04. Reboot. The reboot process scans hardware devices, including 3270s, and this enables the tub3270 driver once loaded to respond
(...)
Quoted 8 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +0
-0
Documentation/s390/common_io.rst line 6
Quoted 8 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +6
-2@@ -1,5 +1,9 @@ -S/390 common I/O-Layer - command line parameters, procfs and debugfs entries -============================================================================ +====================== +S/390 common I/O-Layer +====================== + +command line parameters, procfs and debugfs entries +===================================================
I don't see why this should be split into two lines? If anything needs to be changed, I'd drop the hyphen.
Quoted 13 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +1
-1Command line parameters -----------------------@@ -13,7 +17,7 @@ Command line parameters device := {all | [!]ipldev | [!]condev | [!]<devno> | [!]<devno>-<devno>} The given devices will be ignored by the common I/O-layer; no detection - and device sensing will be done on any of those devices. The subchannel to + and device sensing will be done on any of those devices. The subchannel to which the device in question is attached will be treated as if no device was attached.
Documentation/s390/common_io.rst Command line parameters · line 36
Quoted 6 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +2
-1@@ -28,14 +32,20 @@ Command line parameters keywords can be used to refer to the CCW based boot device and CCW console device respectively (these are probably useful only when combined with the '!' operator). The '!' operator will cause the I/O-layer to _not_ ignore a device. - The command line is parsed from left to right. + The command line + is parsed from left to right.
Why this change?
Quoted 17 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +7
-2+ + For example:: - For example, cio_ignore=0.0.0023-0.0.0042,0.0.4711 + will ignore all devices ranging from 0.0.0023 to 0.0.0042 and the device 0.0.4711, if detected. - As another example, + + As another example:: + cio_ignore=all,!0.0.4711,!0.0.fd00-0.0.fd02 + will ignore all devices but 0.0.4711, 0.0.fd00, 0.0.fd01, 0.0.fd02. By default, no devices are ignored.
(...)
Documentation/s390/debugging390.rst
Quoted 7 lines
Documentation/s390/debugging390.rst renamed from Documentation/s390/Debugging390.txt +0
-0
I'll skip this one...
(Question for the s390 arch maintainers: I remember that there was some interesting stuff in there, but I'm not sure how much of it is still accurate/useful... is it worth spending time on trying to update this?)
(...)
Quoted 5 lines
Documentation/s390/s390dbf.rst new file +0
-0
(...)
Documentation/s390/s390dbf.txt
Quoted 5 lines
Documentation/s390/s390dbf.txt deleted +0
-0
I wonder why this does not show up as a rename?
(...)
Quoted 7 lines
Documentation/s390/text_files.rst new file +1
-0@@ -0,0 +1,11 @@ +ibm 3270 changelog
Documentation/s390/text_files.rst line 11
Quoted 10 lines
Documentation/s390/text_files.rst new file +10
-0+------------------ + +.. include:: 3270.ChangeLog + :literal: + +ibm 3270 config3270.sh +---------------------- + +.. literalinclude:: config3270.sh + :language: shell
Another question for the s390 arch maintainers: How valuable is this still?
(...)
Quoted 7 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +0
-0
(...)
Documentation/s390/vfio-ccw.rst Reference · line 326
Quoted 8 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +1
-1@@ -295,6 +321,6 @@ Reference 1. ESA/s390 Principles of Operation manual (IBM Form. No. SA22-7832) 2. ESA/390 Common I/O Device Commands manual (IBM Form. No. SA22-7204) 3. https://en.wikipedia.org/wiki/Channel_I/O -4. Documentation/s390/cds.txt +4. Documentation/s390/cds.rst 5. Documentation/vfio.txt 6. Documentation/vfio-mediated-device.txt
Are these two renamed in a later patch?
(...)
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Mauro Carvalho ChehabQuoted 9 lines · Mauro Carvalho Chehab
Em Tue, 23 Apr 2019 10:54:15 -0600
Jonathan Corbet <[email protected]> escreveu:Quoted 6 lines
On Tue, 23 Apr 2019 15:52:26 +0100
David Howells <[email protected]> wrote:Suggestions / patches on how to improve things for *all* users of the docs are certainly welcome!
Quoted 6 lines
Quoted 4 lines
I am, incidentally, toying with the idea of trying to put together a documentation microconf at the Linux Plumbers Conference this year. If anybody out there thinks that's a good idea and would like to participate, please let me know.
If you add a microconf to LPC, I'm in.
+1
Quoted 3 lines
IMO, we made big advances with documentation, but there's a lot more to be done. Having a microconf to discuss those things may help us to bring new ideas about how to keep improving it.
The most difficult part, IMHO, is to convince people to document things ;-)
Quoted 3 lines
Thanks,
Mauro
Signature · 2 lines
Sincerely yours, Mike.
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
In reply to Cornelia HuckQuoted 26 lines · Cornelia Huck
Documentation/s390/debugging390.rst
Quoted 7 lines
Documentation/s390/debugging390.rst renamed from Documentation/s390/Debugging390.txt +0
-0I'll skip this one...
(Question for the s390 arch maintainers: I remember that there was some interesting stuff in there, but I'm not sure how much of it is still accurate/useful... is it worth spending time on trying to update this?)
Quoted 12 lines
Documentation/s390/text_files.rst new file +6
-0@@ -0,0 +1,11 @@ +ibm 3270 changelog +------------------ + +.. include:: 3270.ChangeLog + :literal: +
Quoted 8 lines
Documentation/s390/text_files.rst line 11
Quoted 5 lines
Documentation/s390/text_files.rst new file +5
-0+ibm 3270 config3270.sh +---------------------- + +.. literalinclude:: config3270.sh + :language: shellAnother question for the s390 arch maintainers: How valuable is this still?
...to be honest I consider 80% within Documentation/s390 to be completely outdated, partially wrong, or irrelevant in the meantime; the vfio stuff seems to be pretty much up-to-date, and I like the parts that move comments to code.
Cleaning this up can be done at a later time. I don't want to make Mauro spend more time than necessary on this.
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
In reply to Cornelia HuckEm Wed, 24 Apr 2019 13:41:09 +0200
Cornelia Huck <[email protected]> escreveu:
Quoted 80 lines
Quoted 57 lines · On Mon, 22 Apr 2019 10:27:20 -0300 Mauro Carvalho Chehab…
Convert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>--- .../admin-guide/kernel-parameters.txt | 4 +- Documentation/driver-api/s390-drivers.rst | 4 +- Documentation/s390/{3270.txt => 3270.rst} | 85 +- Documentation/s390/{cds.txt => cds.rst} | 354 ++- .../s390/{CommonIO => common_io.rst} | 49 +- Documentation/s390/{DASD => dasd.rst} | 33 +- .../{Debugging390.txt => debugging390.rst} | 2389 ++++++++++------- .../{driver-model.txt => driver-model.rst} | 179 +- Documentation/s390/index.rst | 30 + .../s390/{monreader.txt => monreader.rst} | 85 +- Documentation/s390/{qeth.txt => qeth.rst} | 36 +- Documentation/s390/s390dbf.rst | 803 ++++++ Documentation/s390/s390dbf.txt | 667 ----- Documentation/s390/text_files.rst | 11 + .../s390/{vfio-ap.txt => vfio-ap.rst} | 487 ++-- .../s390/{vfio-ccw.txt => vfio-ccw.rst} | 90 +- .../s390/{zfcpdump.txt => zfcpdump.rst} | 2 + MAINTAINERS | 4 +- arch/s390/Kconfig | 4 +- arch/s390/include/asm/debug.h | 4 +- drivers/s390/char/zcore.c | 2 +- 21 files changed, 3089 insertions(+), 2233 deletions(-) rename Documentation/s390/{3270.txt => 3270.rst} (90%) rename Documentation/s390/{cds.txt => cds.rst} (64%) rename Documentation/s390/{CommonIO => common_io.rst} (87%) rename Documentation/s390/{DASD => dasd.rst} (92%) rename Documentation/s390/{Debugging390.txt => debugging390.rst} (53%) rename Documentation/s390/{driver-model.txt => driver-model.rst} (73%) create mode 100644 Documentation/s390/index.rst rename Documentation/s390/{monreader.txt => monreader.rst} (81%) rename Documentation/s390/{qeth.txt => qeth.rst} (62%) create mode 100644 Documentation/s390/s390dbf.rst delete mode 100644 Documentation/s390/s390dbf.txt create mode 100644 Documentation/s390/text_files.rst rename Documentation/s390/{vfio-ap.txt => vfio-ap.rst} (72%) rename Documentation/s390/{vfio-ccw.txt => vfio-ccw.rst} (89%) rename Documentation/s390/{zfcpdump.txt => zfcpdump.rst} (97%)(...)
Quoted 7 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-0(...)
Quoted 7 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +1
-1@@ -17,12 +21,12 @@ twenty and thirty years ago. You may have 3270s in-house and not know it. If you're using the VM-ESA operating system, define a 3270 to your virtual machine by using the command "DEF GRAF <hex-address>" This paper presumes you will be -defining four 3270s with the CP/CMS commands +defining four 3270s with the CP/CMS commands:
Quoted 12 lines
Documentation/s390/3270.rst twenty and thirty years ago. · line 29
Quoted 8 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +4
-4- DEF GRAF 620 - DEF GRAF 621 - DEF GRAF 622 - DEF GRAF 623 + - DEF GRAF 620 + - DEF GRAF 621 + - DEF GRAF 622 + - DEF GRAF 623IIUC, this makes this into a bulleted list... but the user is supposed to enter these commands (similar to the shell commands further down in this file).
Ah, OK! I'll change it to use a literal block (::).
Quoted 22 lines
Quoted 4 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-0Your network connection from VM-ESA allows you to use x3270, tn3270, or another 3270 emulator, started from an xterm window on your PC or(...)
Quoted 15 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +3
-2@@ -84,20 +92,22 @@ Here are the installation steps in detail: make modules_install 2. (Perform this step only if you have configured tub3270 as a - module.) Add a line to a file /etc/modprobe.d/*.conf to automatically + module.) Add a line to a file `/etc/modprobe.d/*.conf` to automatically load the driver when it's needed. With this line added, you will see login prompts appear on your 3270s as soon as boot is complete (or with emulated 3270s, as soon as you dial into your vm guest using the command "DIAL <vmguestname>"). Since the line-mode major number is - 227, the line to add should be: + 227, the line to add should be:: + alias char-major-227 tub3270
Quoted 13 lines
Documentation/s390/3270.rst Here are the installation steps in detail: · line 110
Quoted 11 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +5
-43. Define graphic devices to your vm guest machine, if you haven't already. Define them before you reboot (reipl): - DEFINE GRAF 620 - DEFINE GRAF 621 - DEFINE GRAF 622 - DEFINE GRAF 623 + + - DEFINE GRAF 620 + - DEFINE GRAF 621 + - DEFINE GRAF 622 + - DEFINE GRAF 623Same here.
Ok.
Quoted 19 lines
Quoted 4 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-04. Reboot. The reboot process scans hardware devices, including 3270s, and this enables the tub3270 driver once loaded to respond(...)
Quoted 11 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +1
-2@@ -1,5 +1,9 @@ -S/390 common I/O-Layer - command line parameters, procfs and debugfs entries -============================================================================ +======================
Quoted 8 lines
Documentation/s390/common_io.rst line 6
Quoted 5 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +5
-0+S/390 common I/O-Layer +====================== + +command line parameters, procfs and debugfs entries +===================================================I don't see why this should be split into two lines? If anything needs to be changed, I'd drop the hyphen.
No real need for html output. I suspect that a big title like the above would cause troubles for pdf output. That's basically why I opted to break it.
Yet, if you prefer, I'll keep it as-is.
Quoted 13 lines
Quoted 13 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +1
-1Command line parameters -----------------------@@ -13,7 +17,7 @@ Command line parameters device := {all | [!]ipldev | [!]condev | [!]<devno> | [!]<devno>-<devno>} The given devices will be ignored by the common I/O-layer; no detection - and device sensing will be done on any of those devices. The subchannel to + and device sensing will be done on any of those devices. The subchannel to which the device in question is attached will be treated as if no device was attached.
Quoted 9 lines
Documentation/s390/common_io.rst Command line parameters · line 36
Quoted 7 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +2
-1@@ -28,14 +32,20 @@ Command line parameters keywords can be used to refer to the CCW based boot device and CCW console device respectively (these are probably useful only when combined with the '!' operator). The '!' operator will cause the I/O-layer to _not_ ignore a device. - The command line is parsed from left to right. + The command line + is parsed from left to right.Why this change?
This was unintentional. I probably hit <enter> by mistake on that line.
I'll revert.
Quoted 46 lines
Quoted 18 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +7
-2+ + For example:: - For example, cio_ignore=0.0.0023-0.0.0042,0.0.4711 + will ignore all devices ranging from 0.0.0023 to 0.0.0042 and the device 0.0.4711, if detected. - As another example, + + As another example:: + cio_ignore=all,!0.0.4711,!0.0.fd00-0.0.fd02 + will ignore all devices but 0.0.4711, 0.0.fd00, 0.0.fd01, 0.0.fd02. By default, no devices are ignored.(...)
Documentation/s390/debugging390.rst
Quoted 7 lines
Documentation/s390/debugging390.rst renamed from Documentation/s390/Debugging390.txt +0
-0I'll skip this one...
(Question for the s390 arch maintainers: I remember that there was some interesting stuff in there, but I'm not sure how much of it is still accurate/useful... is it worth spending time on trying to update this?)
(...)
Quoted 5 lines
Documentation/s390/s390dbf.rst new file +0
-0(...)
Quoted 7 lines
Documentation/s390/s390dbf.txt
Quoted 5 lines
Documentation/s390/s390dbf.txt deleted +0
-0I wonder why this does not show up as a rename?
Probably because the number of changes were bigger than 50%. The algo there seems to be dumb. I suspect that adding whitespace/tabs on lines makes it to consider the entire line as different.
git log -M10 would change the threshold to 10% similarity and will likely show it as a rename. I'll use -M on the next version for this patch.
Quoted 43 lines
(...)
Quoted 7 lines
Documentation/s390/text_files.rst new file +1
-0@@ -0,0 +1,11 @@ +ibm 3270 changelogDocumentation/s390/text_files.rst line 11
Quoted 10 lines
Documentation/s390/text_files.rst new file +10
-0+------------------ + +.. include:: 3270.ChangeLog + :literal: + +ibm 3270 config3270.sh +---------------------- + +.. literalinclude:: config3270.sh + :language: shellAnother question for the s390 arch maintainers: How valuable is this still?
(...)
Quoted 7 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +0
-0(...)
Quoted 6 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +1
-1@@ -295,6 +321,6 @@ Reference 1. ESA/s390 Principles of Operation manual (IBM Form. No. SA22-7832) 2. ESA/390 Common I/O Device Commands manual (IBM Form. No. SA22-7204) 3. https://en.wikipedia.org/wiki/Channel_I/O -4. Documentation/s390/cds.txt +4. Documentation/s390/cds.rst
Quoted 4 lines
Documentation/s390/vfio-ccw.rst Reference · line 326
Quoted 2 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +0
-05. Documentation/vfio.txt 6. Documentation/vfio-mediated-device.txtAre these two renamed in a later patch?
Yes. Patch 56 renames almost all Documentation/*.txt to .rst. Those files are already parsed properly by Sphinx, so no changes there are needed.
I'm working on followup patches (not submitted yet), with moves all ReST files under Documentation to some place.
In the specific case of those files, on the series I'm working, I moved them to be part of the driver-api:
https://git.linuxtv.org/mchehab/experimental.git/commit/?h=convert_rst_renames&id=3387ab063cf43f91d5c0f79d741244e7dbcdec05
The results, when parsed, are at:
https://www.infradead.org/~mchehab/rst_conversion/driver-api/vfio.html
https://www.infradead.org/~mchehab/rst_conversion/driver-api/vfio-mediated-device.html
Thanks,
Mauro
Re: [PATCH v2 31/79] docs: s390: convert docs to ReST and rename to *.rst
Quoted 96 lines · On Wed, 24 Apr 2019 09:44:50 -0300 Mauro Carvalho Chehab…
Em Wed, 24 Apr 2019 13:41:09 +0200
Cornelia Huck <[email protected]> escreveu:Quoted 80 lines
Quoted 57 lines · On Mon, 22 Apr 2019 10:27:20 -0300 Mauro Carvalho Chehab…
Convert all text files with s390 documentation to ReST format.
Tried to preserve as much as possible the original document format. Still, some of the files required some work in order for it to be visible on both plain text and after converted to html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>--- .../admin-guide/kernel-parameters.txt | 4 +- Documentation/driver-api/s390-drivers.rst | 4 +- Documentation/s390/{3270.txt => 3270.rst} | 85 +- Documentation/s390/{cds.txt => cds.rst} | 354 ++- .../s390/{CommonIO => common_io.rst} | 49 +- Documentation/s390/{DASD => dasd.rst} | 33 +- .../{Debugging390.txt => debugging390.rst} | 2389 ++++++++++------- .../{driver-model.txt => driver-model.rst} | 179 +- Documentation/s390/index.rst | 30 + .../s390/{monreader.txt => monreader.rst} | 85 +- Documentation/s390/{qeth.txt => qeth.rst} | 36 +- Documentation/s390/s390dbf.rst | 803 ++++++ Documentation/s390/s390dbf.txt | 667 ----- Documentation/s390/text_files.rst | 11 + .../s390/{vfio-ap.txt => vfio-ap.rst} | 487 ++-- .../s390/{vfio-ccw.txt => vfio-ccw.rst} | 90 +- .../s390/{zfcpdump.txt => zfcpdump.rst} | 2 + MAINTAINERS | 4 +- arch/s390/Kconfig | 4 +- arch/s390/include/asm/debug.h | 4 +- drivers/s390/char/zcore.c | 2 +- 21 files changed, 3089 insertions(+), 2233 deletions(-) rename Documentation/s390/{3270.txt => 3270.rst} (90%) rename Documentation/s390/{cds.txt => cds.rst} (64%) rename Documentation/s390/{CommonIO => common_io.rst} (87%) rename Documentation/s390/{DASD => dasd.rst} (92%) rename Documentation/s390/{Debugging390.txt => debugging390.rst} (53%) rename Documentation/s390/{driver-model.txt => driver-model.rst} (73%) create mode 100644 Documentation/s390/index.rst rename Documentation/s390/{monreader.txt => monreader.rst} (81%) rename Documentation/s390/{qeth.txt => qeth.rst} (62%) create mode 100644 Documentation/s390/s390dbf.rst delete mode 100644 Documentation/s390/s390dbf.txt create mode 100644 Documentation/s390/text_files.rst rename Documentation/s390/{vfio-ap.txt => vfio-ap.rst} (72%) rename Documentation/s390/{vfio-ccw.txt => vfio-ccw.rst} (89%) rename Documentation/s390/{zfcpdump.txt => zfcpdump.rst} (97%)(...)
Quoted 7 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +0
-0(...)
Quoted 7 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +1
-1@@ -17,12 +21,12 @@ twenty and thirty years ago. You may have 3270s in-house and not know it. If you're using the VM-ESA operating system, define a 3270 to your virtual machine by using the command "DEF GRAF <hex-address>" This paper presumes you will be -defining four 3270s with the CP/CMS commands +defining four 3270s with the CP/CMS commands:Quoted 12 lines
Documentation/s390/3270.rst twenty and thirty years ago. · line 29
Quoted 8 lines
Documentation/s390/3270.rst renamed from Documentation/s390/3270.txt +4
-4- DEF GRAF 620 - DEF GRAF 621 - DEF GRAF 622 - DEF GRAF 623 + - DEF GRAF 620 + - DEF GRAF 621 + - DEF GRAF 622 + - DEF GRAF 623IIUC, this makes this into a bulleted list... but the user is supposed to enter these commands (similar to the shell commands further down in this file).
Quoted 1 line
Ah, OK! I'll change it to use a literal block (::).
Sounds good.
Quoted 20 lines
Quoted 11 lines
Quoted 11 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +1
-2@@ -1,5 +1,9 @@ -S/390 common I/O-Layer - command line parameters, procfs and debugfs entries -============================================================================ +======================Quoted 8 lines
Documentation/s390/common_io.rst line 6
Quoted 5 lines
Documentation/s390/common_io.rst renamed from Documentation/s390/CommonIO +5
-0+S/390 common I/O-Layer +====================== + +command line parameters, procfs and debugfs entries +===================================================I don't see why this should be split into two lines? If anything needs to be changed, I'd drop the hyphen.
Quoted 5 lines
No real need for html output. I suspect that a big title like the above would cause troubles for pdf output. That's basically why I opted to break it.
Yet, if you prefer, I'll keep it as-is.
I basically find the short title confusing (the file is not about the common I/O layer as a whole, but only about parameters etc.)
Maybe "S/390 common I/O layer user interface"?
But I don't care about this deeply :)
Quoted 31 lines
Quoted 17 lines
Quoted 7 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +0
-0(...)
Quoted 6 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +1
-1@@ -295,6 +321,6 @@ Reference 1. ESA/s390 Principles of Operation manual (IBM Form. No. SA22-7832) 2. ESA/390 Common I/O Device Commands manual (IBM Form. No. SA22-7204) 3. https://en.wikipedia.org/wiki/Channel_I/O -4. Documentation/s390/cds.txt +4. Documentation/s390/cds.rstQuoted 4 lines
Documentation/s390/vfio-ccw.rst Reference · line 326
Quoted 2 lines
Documentation/s390/vfio-ccw.rst renamed from Documentation/s390/vfio-ccw.txt +0
-05. Documentation/vfio.txt 6. Documentation/vfio-mediated-device.txtAre these two renamed in a later patch?
Yes. Patch 56 renames almost all
Documentation/*.txtto .rst. Those files are already parsed properly by Sphinx, so no changes there are needed.I'm working on followup patches (not submitted yet), with moves all ReST files under Documentation to some place.
In the specific case of those files, on the series I'm working, I moved them to be part of the driver-api:
Quoted 6 lines
https://git.linuxtv.org/mchehab/experimental.git/commit/?h=convert_rst_renames&id=3387ab063cf43f91d5c0f79d741244e7dbcdec05The results, when parsed, are at:
https://www.infradead.org/~mchehab/rst_conversion/driver-api/vfio.html
https://www.infradead.org/~mchehab/rst_conversion/driver-api/vfio-mediated-device.html
Sounds good!
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to Mike RapoportEm Wed, 24 Apr 2019 14:51:26 +0300
Mike Rapoport <[email protected]> escreveu:
Quoted 17 lines · Mauro Carvalho Chehab
Quoted 9 lines
Em Tue, 23 Apr 2019 10:54:15 -0600
Jonathan Corbet <[email protected]> escreveu:Quoted 6 lines
On Tue, 23 Apr 2019 15:52:26 +0100
David Howells <[email protected]> wrote:Suggestions / patches on how to improve things for *all* users of the docs are certainly welcome!
Quoted 6 lines
Quoted 4 lines
I am, incidentally, toying with the idea of trying to put together a documentation microconf at the Linux Plumbers Conference this year. If anybody out there thinks that's a good idea and would like to participate, please let me know.
If you add a microconf to LPC, I'm in.
Quoted 7 lines
+1
Quoted 3 lines
IMO, we made big advances with documentation, but there's a lot more to be done. Having a microconf to discuss those things may help us to bring new ideas about how to keep improving it.
The most difficult part, IMHO, is to convince people to document things ;-)
As David mentioned, maintainers could enforce merging new APIs only with documentation, with the risk of being unpopular.
Well, maintainers are not among the most loved ones anyway ;-) <sarcasm/>
My experience enforcing it at media subsystem is that it is not that hard to have developers writing documentation, once it becomes a rule, and the maintainers give the example.
The big problem is how to deal with legacy stuff. I had to do that myself for the DVB subsystem, where the documentation were frozen back on 2002 days, while lots of new stuff got added (and, worse than that, with some very obscure ioctls that is used only by a single driver and some that were used only by OOT drivers).
It take a few years to put it in sync with the code, but, once the ReST conversion was done, it became easier to do the work.
Thanks,
Mauro
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveQuoted 4 lines · Mauro Carvalho Chehab
Personally, I don't care much with monospaced fonts on this table. After all, if I want to see it monospaced, I can simply click at the "View page source" at the browser, and it will display the file as a plain old monospaced text file.
Goes to show why kernel people wouldn't want to look at that in the browser. Long hex numbers are hard to read as it is - that's why there's even the 4-digit separator in some docs, for example:
0xffff_ffff_8100_0000.
Not having it monospaced makes the whole thing even less readable.
That's why it is important for the markup not to get in the way of people looking at those files in an editor.
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Re: [PATCH v2 02/79] docs: trace: fix some Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 2 lines · On Mon, 22 Apr 2019 10:26:51 -0300 Mauro Carvalho Chehab…
There are some warnings produced when building trace. Fix them.
I guess I'm fine with this (I just read the text file as is).
-- Steve
Quoted 6 lines
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/trace/ftrace.rst | 1 + Documentation/trace/histogram.rst | 86 ++++++++++++++++--------------- 2 files changed, 45 insertions(+), 42 deletions(-)
Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst
In reply to a message not in the archiveEm Wed, 24 Apr 2019 16:54:10 +0200
Borislav Petkov <[email protected]> escreveu:
Quoted 10 lines · Mauro Carvalho Chehab
Quoted 4 lines
Personally, I don't care much with monospaced fonts on this table. After all, if I want to see it monospaced, I can simply click at the "View page source" at the browser, and it will display the file as a plain old monospaced text file.
Goes to show why kernel people wouldn't want to look at that in the browser. Long hex numbers are hard to read as it is - that's why there's even the 4-digit separator in some docs, for example:
0xffff_ffff_8100_0000.
IMHO, even the 0x and _ would make it harder to read. This is a way more easy for my eyes:
ffff ffff 8100 0000
Quoted 1 line
Not having it monospaced makes the whole thing even less readable.
Yeah, I see your point and agree with it.
Just saying that, if all I want is to check if addresses that start with ffff80 belongs to the guard hole, or just to copy a value from a table into some C code, the font doesn't matter much, and, if I care, a simple click would show it in monospaced fonts.
Looking from your PoV, something like:
|ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physical address 0 |
is very hard to be parsed by a human eye, even with monospaced fonts. In order to make it easier, I would replace it by:
|ffff ffff 8000 0000 | -2 GB | ffff ffff 9fff ffff | 512 MB | kernel text mapping, mapped to physical address 0 |
Quoted 3 lines
That's why it is important for the markup not to get in the way of people looking at those files in an editor.
Fully agreed. the markups should make things easier and not harder for people to read its contents.
Thanks,
Mauro
Mark Brown
maintainerRe: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 2 lines · Mauro Carvalho Chehab
Convert the PM documents to ReST, in order to allow them to build with Sphinx.
This is massively CCed covering a large range of subsystems and is patch 25 of a 79 patch series so I've no context for what's going on here or why...
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Petr Mladek
maintainerRe: [PATCH v2 20/79] docs: livepatch: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabQuoted 14 lines · Mauro Carvalho Chehab
Convert livepatch documentation to ReST format. The changes are mostly trivial, as the documents are already on a good shape. Just a few markup changes are needed for Sphinx to properly parse the docs.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- The in-file TOC becomes a comment, in order to skip it from the output, as Sphinx already generates an index there.
- adjust title markups.
Quoted 2 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.
Thanks a lot for the conversion.
It made me to review style of all documents. I would like add the following changes to make them more consistent.
I can added as extra patch or merged with your one. Whatewer works better for you or documentation people.
From 4cecbde44205ba4a9f777cac33ef3469cd46e7f2 Mon Sep 17 00:00:00 2001
From: Petr Mladek <[email protected]>
Date: Thu, 25 Apr 2019 16:58:21 +0200
Subject: [PATCH] docs/livepatch: Unify style of livepatch documentation in the
ReST format
Make the structure of "Livepatch module Elf format" document similar to the main "Livepatch" document.
Also make the structure of "(Un)patching Callbacks" document similar to the "Shadow Variables" document.
It fixes the most visible inconsistencies of the documentation generated from the ReST format.
--- Documentation/livepatch/callbacks.rst | 33 ++--- Documentation/livepatch/module-elf-format.rst | 186 ++++++++++++-------------- 2 files changed, 104 insertions(+), 115 deletions(-)
Documentation/livepatch/callbacks.rst +18 -15
@@ -4,7 +4,7 @@ Livepatch (un)patch-callbacks provide a mechanism for livepatch modules to execute callback functions when a kernel object is (un)patched. They -can be considered a "power feature" that extends livepatching abilities +can be considered a **power feature** that **extends livepatching abilities** to include: - Safe updates to global data
@@ -17,6 +17,9 @@ In most cases, (un)patch callbacks will need to be used in conjunction with memory barriers and kernel synchronization primitives, like mutexes/spinlocks, or even stop_machine(), to avoid concurrency issues. +1. Motivation +============= + Callbacks differ from existing kernel facilities: - Module init/exit code doesn't run when disabling and re-enabling a
@@ -28,6 +31,9 @@ Callbacks are part of the klp_object structure and their implementation is specific to that klp_object. Other livepatch objects may or may not be patched, irrespective of the target klp_object's current state. +2. Callback types +================= + Callbacks can be registered for the following livepatch actions: * Pre-patch
@@ -47,6 +53,9 @@ be patched, irrespective of the target klp_object's current state. been restored and no tasks are running patched code, used to cleanup pre-patch callback resources +3. How it works +=============== + Each callback is optional, omitting one does not preclude specifying any other. However, the livepatching core executes the handlers in symmetry: pre-patch callbacks have a post-unpatch counterpart and
@@ -90,11 +99,14 @@ If the object did successfully patch, but the patch transition never started for some reason (e.g., if another object failed to patch), only the post-unpatch callback will be called. +4. Use cases +============ -Example Use-cases -================= +Sample livepatch modules demonstrating the callback API can be found in +samples/livepatch/ directory. These samples were modified for use in +kselftests and can be found in the lib/livepatch directory. -Update global data +Global data update ------------------ A pre-patch callback can be useful to update a global variable. For
@@ -107,24 +119,15 @@ patch the data *after* patching is complete with a post-patch callback, so that tcp_send_challenge_ack() could first be changed to read sysctl_tcp_challenge_ack_limit with READ_ONCE. - -Support __init and probe function patches +__init and probe function patches support ----------------------------------------- Although __init and probe functions are not directly livepatch-able, it may be possible to implement similar updates via pre/post-patch callbacks. -48900cb6af42 ("virtio-net: drop NETIF_F_FRAGLIST") change the way that +The commit ``48900cb6af42 ("virtio-net: drop NETIF_F_FRAGLIST")`` change the way that virtnet_probe() initialized its driver's net_device features. A pre/post-patch callback could iterate over all such devices, making a similar change to their hw_features value. (Client functions of the value may need to be updated accordingly.) - - -Other Examples -============== - -Sample livepatch modules demonstrating the callback API can be found in -samples/livepatch/ directory. These samples were modified for use in -kselftests and can be found in the lib/livepatch directory.
Documentation/livepatch/module-elf-format.rst +86 -100
299 lines not on this page · raw message
Signature · 1 line
2.16.4
Mauro Carvalho Chehab
Reviewed-byRe: [PATCH v2 20/79] docs: livepatch: convert docs to ReST and rename to *.rst
Em Fri, 26 Apr 2019 10:10:56 +0200
Petr Mladek <[email protected]> escreveu:
Quoted 18 lines · Mauro Carvalho Chehab
Quoted 14 lines
Convert livepatch documentation to ReST format. The changes are mostly trivial, as the documents are already on a good shape. Just a few markup changes are needed for Sphinx to properly parse the docs.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- The in-file TOC becomes a comment, in order to skip it from the output, as Sphinx already generates an index there.
- adjust title markups.Quoted 2 lines
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.
Quoted 7 lines
Thanks a lot for the conversion.
It made me to review style of all documents. I would like add the following changes to make them more consistent.
I can added as extra patch or merged with your one. Whatewer works better for you or documentation people.
If you prefer, feel free to merge it on your tree.
I don't mind if you fold your patche with my patch or apply as a followup patch. Whatever works best for you.
Quoted 11 lines
From
4cecbde44205ba4a9f777cac33ef3469cd46e7f2Mon Sep 17 00:00:00 2001
From: Petr Mladek <[email protected]>
Date: Thu, 25 Apr 2019 16:58:21 +0200
Subject: [PATCH] docs/livepatch: Unify style of livepatch documentation in the
ReST formatMake the structure of "Livepatch module Elf format" document similar to the main "Livepatch" document.
Quoted 7 lines
Also make the structure of "(Un)patching Callbacks" document similar to the "Shadow Variables" document.
It fixes the most visible inconsistencies of the documentation generated from the ReST format.
Signed-off-by Petr Mladek <[email protected]>
Patch looks good to me.
Quoted 402 lines
--- Documentation/livepatch/callbacks.rst | 33 ++--- Documentation/livepatch/module-elf-format.rst | 186 ++++++++++++-------------- 2 files changed, 104 insertions(+), 115 deletions(-)Documentation/livepatch/callbacks.rst +18
-15@@ -4,7 +4,7 @@ Livepatch (un)patch-callbacks provide a mechanism for livepatch modules to execute callback functions when a kernel object is (un)patched. They -can be considered a "power feature" that extends livepatching abilities +can be considered a **power feature** that **extends livepatching abilities** to include: - Safe updates to global data@@ -17,6 +17,9 @@ In most cases, (un)patch callbacks will need to be used in conjunction with memory barriers and kernel synchronization primitives, like mutexes/spinlocks, or even stop_machine(), to avoid concurrency issues. +1. Motivation +============= + Callbacks differ from existing kernel facilities: - Module init/exit code doesn't run when disabling and re-enabling a@@ -28,6 +31,9 @@ Callbacks are part of the klp_object structure and their implementation is specific to that klp_object. Other livepatch objects may or may not be patched, irrespective of the target klp_object's current state. +2. Callback types +================= + Callbacks can be registered for the following livepatch actions: * Pre-patch@@ -47,6 +53,9 @@ be patched, irrespective of the target klp_object's current state. been restored and no tasks are running patched code, used to cleanup pre-patch callback resources +3. How it works +=============== + Each callback is optional, omitting one does not preclude specifying any other. However, the livepatching core executes the handlers in symmetry: pre-patch callbacks have a post-unpatch counterpart and@@ -90,11 +99,14 @@ If the object did successfully patch, but the patch transition never started for some reason (e.g., if another object failed to patch), only the post-unpatch callback will be called. +4. Use cases +============ -Example Use-cases -================= +Sample livepatch modules demonstrating the callback API can be found in +samples/livepatch/ directory. These samples were modified for use in +kselftests and can be found in the lib/livepatch directory. -Update global data +Global data update ------------------ A pre-patch callback can be useful to update a global variable. For@@ -107,24 +119,15 @@ patch the data *after* patching is complete with a post-patch callback, so that tcp_send_challenge_ack() could first be changed to read sysctl_tcp_challenge_ack_limit with READ_ONCE. - -Support __init and probe function patches +__init and probe function patches support ----------------------------------------- Although __init and probe functions are not directly livepatch-able, it may be possible to implement similar updates via pre/post-patch callbacks. -48900cb6af42 ("virtio-net: drop NETIF_F_FRAGLIST") change the way that +The commit ``48900cb6af42 ("virtio-net: drop NETIF_F_FRAGLIST")`` change the way that virtnet_probe() initialized its driver's net_device features. A pre/post-patch callback could iterate over all such devices, making a similar change to their hw_features value. (Client functions of the value may need to be updated accordingly.) - - -Other Examples -============== - -Sample livepatch modules demonstrating the callback API can be found in -samples/livepatch/ directory. These samples were modified for use in -kselftests and can be found in the lib/livepatch directory.Documentation/livepatch/module-elf-format.rst +84
-97@@ -7,30 +7,18 @@ This document outlines the Elf format requirements that livepatch modules must f .. Table of Contents - 0. Background and motivation - 1. Livepatch modinfo field - 2. Livepatch relocation sections - 2.1 What are livepatch relocation sections? - 2.2 Livepatch relocation section format - 2.2.1 Required flags - 2.2.2 Required name format - 2.2.3 Example livepatch relocation section names - 2.2.4 Example `readelf --sections` output - 2.2.5 Example `readelf --relocs` output - 3. Livepatch symbols - 3.1 What are livepatch symbols? - 3.2 A livepatch module's symbol table - 3.3 Livepatch symbol format - 3.3.1 Required flags - 3.3.2 Required name format - 3.3.3 Example livepatch symbol names - 3.3.4 Example `readelf --symbols` output - 4. Architecture-specific sections - 5. Symbol table and Elf section access - ----------------------------- -0. Background and motivation ----------------------------- + 1. Background and motivation + 2. Livepatch modinfo field + 3. Livepatch relocation sections + 3.1 Livepatch relocation section format + 4. Livepatch symbols + 4.1 A livepatch module's symbol table + 4.2 Livepatch symbol format + 5. Architecture-specific sections + 6. Symbol table and Elf section access + +1. Background and motivation +============================ Formerly, livepatch required separate architecture-specific code to write relocations. However, arch-specific code to write relocations already@@ -52,8 +40,8 @@ relocation sections and symbols, which are described in this document. The Elf constants used to mark livepatch symbols and relocation sections were selected from OS-specific ranges according to the definitions from glibc. -0.1 Why does livepatch need to write its own relocations? ---------------------------------------------------------- +Why does livepatch need to write its own relocations? +----------------------------------------------------- A typical livepatch module contains patched versions of functions that can reference non-exported global symbols and non-included local symbols. Relocations referencing these types of symbols cannot be left in as-is@@ -72,13 +60,8 @@ relas reference are special livepatch symbols (see section 2 and 3). The arch-specific livepatch relocation code is replaced by a call to apply_relocate_add(). -================================ -PATCH MODULE FORMAT REQUIREMENTS -================================ - --------------------------- -1. Livepatch modinfo field --------------------------- +2. Livepatch modinfo field +========================== Livepatch modules are required to have the "livepatch" modinfo attribute. See the sample livepatch module in samples/livepatch/ for how this is done.@@ -87,8 +70,10 @@ Livepatch modules can be identified by users by using the 'modinfo' command and looking for the presence of the "livepatch" field. This field is also used by the kernel module loader to identify livepatch modules. -Example modinfo output: ------------------------ +Example: +-------- + +**Modinfo output:** ::@@ -99,13 +84,9 @@ used by the kernel module loader to identify livepatch modules. depends: vermagic: 4.3.0+ SMP mod_unload --------------------------------- -2. Livepatch relocation sections --------------------------------- +3. Livepatch relocation sections +================================ -------------------------------------------- -2.1 What are livepatch relocation sections? -------------------------------------------- A livepatch module manages its own Elf relocation sections to apply relocations to modules as well as to the kernel (vmlinux) at the appropriate time. For example, if a patch module patches a driver that is@@ -130,12 +111,9 @@ Every symbol referenced by a rela in a livepatch relocation section is a livepatch symbol. These must be resolved before livepatch can call apply_relocate_add(). See Section 3 for more information. ---------------------------------------- -2.2 Livepatch relocation section format ---------------------------------------- +3.1 Livepatch relocation section format +======================================= -2.2.1 Required flags --------------------- Livepatch relocation sections must be marked with the SHF_RELA_LIVEPATCH section flag. See include/uapi/linux/elf.h for the definition. The module loader recognizes this flag and will avoid applying those relocation sections@@ -143,8 +121,6 @@ at patch module load time. These sections must also be marked with SHF_ALLOC, so that the module loader doesn't discard them on module load (i.e. they will be copied into memory along with the other SHF_ALLOC sections). -2.2.2 Required name format --------------------------- The name of a livepatch relocation section must conform to the following format::@@ -153,19 +129,28 @@ The name of a livepatch relocation section must conform to the following |________||_____| |__________| [A] [B] [C] - [A] The relocation section name is prefixed with the string ".klp.rela." - [B] The name of the object (i.e. "vmlinux" or name of module) to - which the relocation section belongs follows immediately after the prefix. - [C] The actual name of the section to which this relocation section applies. +[A] + The relocation section name is prefixed with the string ".klp.rela." -2.2.3 Example livepatch relocation section names: -------------------------------------------------- -.klp.rela.ext4.text.ext4_attr_store -.klp.rela.vmlinux.text.cmdline_proc_show +[B] + The name of the object (i.e. "vmlinux" or name of module) to + which the relocation section belongs follows immediately after the prefix. -2.2.4 Example `readelf --sections` output for a patch -module that patches vmlinux and modules 9p, btrfs, ext4: --------------------------------------------------------- +[C] + The actual name of the section to which this relocation section applies. + +Examples: +--------- + +**Livepatch relocation section names:** + +:: + + .klp.rela.ext4.text.ext4_attr_store + .klp.rela.vmlinux.text.cmdline_proc_show + +**`readelf --sections` output for a patch +module that patches vmlinux and modules 9p, btrfs, ext4:** ::@@ -182,13 +167,14 @@ The name of a livepatch relocation section must conform to the following [ snip ] ^ ^ | | [*] [*] - [*] Livepatch relocation sections are SHT_RELA sections but with a few special + +[*] + Livepatch relocation sections are SHT_RELA sections but with a few special characteristics. Notice that they are marked SHF_ALLOC ("A") so that they will not be discarded when the module is loaded into memory, as well as with the SHF_RELA_LIVEPATCH flag ("o" - for OS-specific). -2.2.5 Example `readelf --relocs` output for a patch module: ------------------------------------------------------------ +**`readelf --relocs` output for a patch module:** ::@@ -200,16 +186,14 @@ The name of a livepatch relocation section must conform to the following 000000000000004c 0000004900000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.snprintf,0 - 4 [ snip ] ^ | - [*] - [*] Every symbol referenced by a relocation is a livepatch symbol. + [*] + +[*] + Every symbol referenced by a relocation is a livepatch symbol. --------------------- -3. Livepatch symbols --------------------- +4. Livepatch symbols +==================== -------------------------------- -3.1 What are livepatch symbols? -------------------------------- Livepatch symbols are symbols referred to by livepatch relocation sections. These are symbols accessed from new versions of functions for patched objects, whose addresses cannot be resolved by the module loader (because@@ -229,9 +213,8 @@ loader can identify and ignore them. Livepatch modules keep these symbols in their symbol tables, and the symbol table is made accessible through module->symtab. -------------------------------------- -3.2 A livepatch module's symbol table -------------------------------------- +4.1 A livepatch module's symbol table +===================================== Normally, a stripped down copy of a module's symbol table (containing only "core" symbols) is made available through module->symtab (See layout_symtab() in kernel/module.c). For livepatch modules, the symbol table copied into memory@@ -255,18 +238,13 @@ preserved in order for apply_relocate_add() to find the right symbol. 94: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.printk,0 ---------------------------- -3.3 Livepatch symbol format ---------------------------- +4.2 Livepatch symbol format +=========================== -3.3.1 Required flags --------------------- Livepatch symbols must have their section index marked as SHN_LIVEPATCH, so that the module loader can identify them and not attempt to resolve them. See include/uapi/linux/elf.h for the actual definitions. -3.3.2 Required name format --------------------------- Livepatch symbol names must conform to the following format:: .klp.sym.objname.symbol_name,sympos@@ -274,17 +252,26 @@ See include/uapi/linux/elf.h for the actual definitions. |_______||_____| |_________| | [A] [B] [C] [D] - [A] The symbol name is prefixed with the string ".klp.sym." - [B] The name of the object (i.e. "vmlinux" or name of module) to - which the symbol belongs follows immediately after the prefix. - [C] The actual name of the symbol. - [D] The position of the symbol in the object (as according to kallsyms) - This is used to differentiate duplicate symbols within the same - object. The symbol position is expressed numerically (0, 1, 2...). - The symbol position of a unique symbol is 0. +[A] + The symbol name is prefixed with the string ".klp.sym." + +[B] + The name of the object (i.e. "vmlinux" or name of module) to + which the symbol belongs follows immediately after the prefix. -3.3.3 Example livepatch symbol names: -------------------------------------- +[C] + The actual name of the symbol. + +[D] + The position of the symbol in the object (as according to kallsyms) + This is used to differentiate duplicate symbols within the same + object. The symbol position is expressed numerically (0, 1, 2...). + The symbol position of a unique symbol is 0. + +Examples: +--------- + +**Livepatch symbol names:** ::@@ -292,8 +279,7 @@ See include/uapi/linux/elf.h for the actual definitions. .klp.sym.vmlinux.printk,0 .klp.sym.btrfs.btrfs_ktype,0 -3.3.4 Example `readelf --symbols` output for a patch module: ------------------------------------------------------------- +**`readelf --symbols` output for a patch module:** ::@@ -307,12 +293,13 @@ See include/uapi/linux/elf.h for the actual definitions. [ snip ] ^ | [*] - [*] Note that the 'Ndx' (Section index) for these symbols is SHN_LIVEPATCH (0xff20). - "OS" means OS-specific. ---------------------------------- -4. Architecture-specific sections ---------------------------------- +[*] + Note that the 'Ndx' (Section index) for these symbols is SHN_LIVEPATCH (0xff20). + "OS" means OS-specific. + +5. Architecture-specific sections +================================= Architectures may override arch_klp_init_object_loaded() to perform additional arch-specific tasks when a target module loads, such as applying arch-specific sections. On x86 for example, we must apply per-object@@ -321,9 +308,8 @@ These sections must be prefixed with ".klp.arch.$objname." so that they can be easily identified when iterating through a patch module's Elf sections
Documentation/livepatch/module-elf-format.rst These sections must be prefixed with ".klp.arch.$objname." so that they can · line 315
Quoted 10 lines
Documentation/livepatch/module-elf-format.rst +2
-3(See arch/x86/kernel/livepatch.c for a complete example). --------------------------------------- -5. Symbol table and Elf section access --------------------------------------- +6. Symbol table and Elf section access +====================================== A livepatch module's symbol table is accessible through module->symtab. Since apply_relocate_add() requires access to a module's section headers,
Thanks,
Mauro
Re: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
In reply to Mark BrownHi Mark,
Em Thu, 25 Apr 2019 19:07:58 +0100
Mark Brown <[email protected]> escreveu:
Quoted 7 lines · Mauro Carvalho Chehab
Quoted 2 lines
Convert the PM documents to ReST, in order to allow them to build with Sphinx.
This is massively CCed covering a large range of subsystems and is patch 25 of a 79 patch series so I've no context for what's going on here or why...
There are two goals of this series:
1) to prepare for placing the new *.rst files under Documentation/ into an index file, being part of one of the books. Most of the stuff covered on this series either fit at the system admin guide or at the Kernel API documentation book;
2) to ensure that, if some edition on a file would cause warnings at Sphinx build, someone will notice and submit a followup patch.
You can see more details at patch 00/79:
https://lore.kernel.org/lkml/[email protected]/
In order to do that, this series has one patch per Documentation/* sub-directory. This specific one is for the documents under Documentation/power/ [1].
[1] btw, the title of this specific patch should be, instead:
docs: power: convert docs to ReST and rename to *.rst
The series is long because I'm trying to cover a significant part of the documentation files. In any case, except if an eventual conflict might rise on some file, this patch is independent from all other files, and should be safe to apply directly via the subsystem git tree.
I'm working on a follow-up patch series that should be adding the power/index.rst file into another index file - probably at Documentation/index.rst[1]. As such patch will be adding a lot of other index files, the best would be to merge it via the docs tree, in order to avoid conflicts.
[1] such patch will be removing the ":orphan:" meta-tag from it (that basically tells the build system to not produce warnings if the file is not directly or indirectly referenced by the main index file).
Thanks,
Mauro
Re: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
Quoted 8 lines · Mauro Carvalho Chehab
Mark Brown <[email protected]> escreveu:
Quoted 3 lines
This is massively CCed covering a large range of subsystems and is patch 25 of a 79 patch series so I've no context for what's going on here or why...
You can see more details at patch 00/79:
https://lore.kernel.org/lkml/[email protected]/
OK, it would've helped to CC people on that. Anyway
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v2 25/79] docs: convert docs to ReST and rename to *.rst
Em Sun, 28 Apr 2019 02:25:51 +0900
Mark Brown <[email protected]> escreveu:
Quoted 11 lines · Mauro Carvalho Chehab
Quoted 8 lines
Mark Brown <[email protected]> escreveu:
Quoted 3 lines
This is massively CCed covering a large range of subsystems and is patch 25 of a 79 patch series so I've no context for what's going on here or why...
You can see more details at patch 00/79:
https://lore.kernel.org/lkml/[email protected]/OK, it would've helped to CC people on that.
I know, but, due to bad experiences in the past, I had to actually remove people from it, because several servers reject e-mails with more than ~30 destination addresses, as they consider it to be spam.
Quoted 3 lines
Anyway
Acked-by Mark Brown <[email protected]>
Thanks!
Thanks,
Mauro
Re: [PATCH v2 43/79] docs: m68k: convert docs to ReST and rename to *.rst
In reply to Mauro Carvalho ChehabHi Mauro,
Quoted 11 lines · Mauro Carvalho Chehab
Convert the m68k kernel-options.txt file to ReST.
The conversion is trivial, as the document is already on a format close enough to ReST. Just some small adjustments were needed in order to make it both good for being parsed while keeping it on a good txt shape.
At its new
index.rst, let's add a :orphan: while this is not linked to the mainindex.rstfile, in order to avoid build warnings.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Thanks for the conversion!
P.S. Looks like some kernel options no longer exist, and need to be removed.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds