Skip to content
Permalink
Alexandre-Ghit…
Switch branches/tags

Commits on Apr 11, 2021

  1. riscv: Prepare ptdump for vm layout dynamic addresses

    This is a preparatory patch for sv48 support that will introduce
    dynamic PAGE_OFFSET.
    
    Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...)
    whose addresses depend on PAGE_OFFSET become dynamic and can't be used
    to statically initialize the array used by ptdump to identify the
    different zones of the vm layout.
    
    Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
    Reviewed-by: Anup Patel <anup@brainfault.org>
    AlexGhiti authored and intel-lab-lkp committed Apr 11, 2021
  2. Documentation: riscv: Add documentation that describes the VM layout

    This new document presents the RISC-V virtual memory layout and is based
    one the x86 one: it describes the different limits of the different regions
    of the virtual address space.
    
    Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
    AlexGhiti authored and intel-lab-lkp committed Apr 11, 2021
  3. riscv: Move kernel mapping outside of linear mapping

    This is a preparatory patch for relocatable kernel and sv48 support.
    
    The kernel used to be linked at PAGE_OFFSET address therefore we could use
    the linear mapping for the kernel mapping. But the relocated kernel base
    address will be different from PAGE_OFFSET and since in the linear mapping,
    two different virtual addresses cannot point to the same physical address,
    the kernel mapping needs to lie outside the linear mapping so that we don't
    have to copy it at the same physical offset.
    
    The kernel mapping is moved to the last 2GB of the address space, BPF
    is now always after the kernel and modules use the 2GB memory range right
    before the kernel, so BPF and modules regions do not overlap. KASLR
    implementation will simply have to move the kernel in the last 2GB range
    and just take care of leaving enough space for BPF.
    
    In addition, by moving the kernel to the end of the address space, both
    sv39 and sv48 kernels will be exactly the same without needing to be
    relocated at runtime.
    
    Suggested-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
    AlexGhiti authored and intel-lab-lkp committed Apr 11, 2021

Commits on Apr 8, 2021

  1. doc/zh_CN: Clean zh_CN translation maintainer

    Remove Harry Wei and <xiyoulinuxkernelgroup@googlegroups.com> from
    MAINTAINERS Chinese Translation.
    
    According to git logs, Harry Wei (aka WeiWei Jia)
    * last submitted at 2012-05-07
    commit a9e7321 ("Fix a mistake sentence in the file 'Documentation/zh_CN/magic-number.txt'")
    * last Reviewed-by at 2016-02-16
    commit 45c73ea ("Documentation: Chinese translation of arm64/silicon-errata.txt")
    * last Signed-off-by at 2019-03-13 (pick by Alex Shi)
    commit 95dcdb6 ("docs/zh_CN: rename magic-numbers as rst doc")
    
    According to mail list archives, Harry Wei
    * last replied at 2016-02-15
    <https://lore.kernel.org/lkml/CAD+1EGPFdoD7HHZYfEWVvmesXXG27n=6KmEZ8=B6nrvb+oaLZA@mail.gmail.com/>
    * last appeared at 2018-05-12
    <https://lore.kernel.org/lkml/CA+scX6kYH8Y9_f1PLcMHG-MD9bhXgd4gGpkJanjzvwwj9L=aOQ@mail.gmail.com/>
    
    He/She did not maintain zh_CN translations for a long time.
    <xiyoulinuxkernelgroup@googlegroups.com> is a maillist for Linux group of
    Xi'an University of Posts and Telecommunications, not special for zh_CN
    translation work.
    
    Anyway, many thanks him/her and Xiyou for their contributions to the early
    Chinese translation work!
    
    Signed-off-by: Wu XiangCheng <bobwxc@email.cn>
    Link: https://lore.kernel.org/r/20210329151551.GA10901@mipc
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    bobwxc authored and Jonathan Corbet committed Apr 8, 2021
  2. tools: Fix a typo in kernel-chktaint

    This patch fixes a spelling typo in kernel-chktaint
    
    Signed-off-by: Masanari Iida <standby24x7@gmail.com>
    Acked-by: Randy Dunlap <rdunlap@infradead.org>
    Link: https://lore.kernel.org/r/20210402070514.336376-1-standby24x7@gmail.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    standby24x7 authored and Jonathan Corbet committed Apr 8, 2021
  3. docs/zh_CN: add riscv to zh_CN index

    All the files in the riscv directory have been translated into
    Chinese and it is time to add them to the zh_CN index.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-9-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  4. docs/zh_CN: add iio to zh_CN index

    All the files in the iio directory have been translated into
    Chinese and it is time to add them to the zh_CN index.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-8-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  5. docs/zh_CN: add mips to zh_CN index

    All the files in the mips directory have been translated into
    Chinese and it is time to add them to the zh_CN index.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-7-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  6. docs/zh_CN: add cpu-freq to zh_CN index

    All the files in the cpu-freq directory have been translated into
    Chinese and it is time to add them to the zh_CN index.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-6-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  7. docs/zh_CN: add cpu-freq index.rst translation

    This patch translates Documention/cpu-freq/index.rst into Chinese.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-5-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  8. docs/zh_CN: add cpu-freq cpufreq-stats.rst translation

    This patch translates Documention/cpu-freq/cpufreq-stats.rst into Chinese.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-4-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  9. docs/zh_CN: add cpu-freq cpu-drivers.rst translation

    This patch translates Documention/cpu-freq/cpu-drivers.rst into Chinese.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-3-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  10. docs/zh_CN: add cpu-freq core.rst translation

    This patch translates Documention/cpu-freq/core.rst into Chinese.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Reviewed-by: Alex Shi <alexs@kernel.org>
    Link: https://lore.kernel.org/r/20210406070239.19910-2-siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sterling-teng authored and Jonathan Corbet committed Apr 8, 2021
  11. docs: Minor spelling fix in spi documentation

    Signed-off-by: Stéphane Blondon <stephane.blondon@gmail.com>
    Link: https://lore.kernel.org/r/CAOy+up7EdTf4ouh5onVy_ZzXFWGBEP+P6CPqY-=E+1UFwCeq8w@mail.gmail.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    sblondon authored and Jonathan Corbet committed Apr 8, 2021
  12. docs/gcov: Convert two tags to ref in dev-tools/gov.rst

    Htmldocs does not display the chapter number, convert the two manual
    chapter number tags to ref tags.
    
    Signed-off-by: Wu XiangCheng <bobwxc@email.cn>
    Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com>
    Link: https://lore.kernel.org/r/20210403113752.GA32236@mipc
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    bobwxc authored and Jonathan Corbet committed Apr 8, 2021

Commits on Mar 31, 2021

  1. docs: reporting-issues: Remove reference to oldnoconfig

    Replace it with olddefconfig. oldnoconfig didn't do what the document
    suggests (it aliased to olddefconfig), and isn't available since 4.19.
    
    Ref: 04c459d ("kconfig: remove oldnoconfig target")
    Ref: 312ee68 ("kconfig: announce removal of oldnoconfig if used")
    Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
    Link: https://lore.kernel.org/r/20210331163541.28356-1-ismael@iodev.co.uk
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    ismaell authored and Jonathan Corbet committed Mar 31, 2021
  2. doc: admin-guide: remove explanation of "watchdog/%u"

    "watchdog/%u" threads has be replaced by cpu_stop_work,
    which will mislead the reader.
    
    Signed-off-by: Wang Qing <wangqing@vivo.com>
    Link: https://lore.kernel.org/r/1615801744-31548-1-git-send-email-wangqing@vivo.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Wang Qing authored and Jonathan Corbet committed Mar 31, 2021
  3. Documentation: filesystems api-summary: add namespace.c

    Add fs/namespace.c to the filesystems api-summary docbook.
    
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/20210318025227.4162-2-rdunlap@infradead.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    rddunlap authored and Jonathan Corbet committed Mar 31, 2021
  4. fs/namespace: correct/improve kernel-doc notation

    Fix kernel-doc warnings in fs/namespace.c:
    
    ./fs/namespace.c:1379: warning: Function parameter or member 'm' not described in 'may_umount_tree'
    ./fs/namespace.c:1379: warning: Excess function parameter 'mnt' description in 'may_umount_tree'
    ./fs/namespace.c:1950: warning: Function parameter or member 'path' not described in 'clone_private_mount'
    
    Also convert path_is_mountpoint() comments to kernel-doc.
    
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Allegedly-acked-by: Al Viro <viro@zeniv.linux.org.uk>
    Link: https://lore.kernel.org/r/20210318025227.4162-1-rdunlap@infradead.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    rddunlap authored and Jonathan Corbet committed Mar 31, 2021
  5. scripts: get_abi: ignore code blocks for cross-references

    The script should not generate cross-references inside
    literal blocks.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/a590f994f8a5742db333bde69e88241a080e4fe0.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  6. scripts: get_abi.pl: parse description line per line

    Change the description parsing logic in rst mode in order
    to parse it line per line.
    
    The end result is the same, but doing line per line allows
    to add some code to escape literal blocks when seeking for
    cross-references.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/d33cfa2e59ecf8f28d4ed7de7402468cf2168921.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  7. scripts: get_abi.pl: extend xref match to other types

    Currently, there are "What:" symbols for more than just
    /sys.
    
    Extend the regex to also cover configfs, /proc /dev and /kvd
    symbols.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/a1c7e2b2c37ed6e111dfc8641deb37ed96375a63.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  8. get_abi.pl: fix xref boundaries

    There are some issues with the regex that seeks for What:
    cross references: basically, it is mis-identifying the start
    and the end boundaries of the regex, which causes :ref: to
    be inseerted for the wrong symbols at the wrong places.
    
    Fix it.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/79a14d2518499b76931b5f29c50979987108152d.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  9. get_abi.pl: seek for all occurrences for Documentation/ABI

    Instead of retrieving just one match at most, ensure that the entire
    description will be parsed.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/17019b73e106d1b1b353b8880ed189bad3604c13.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  10. scripts: get_abi.pl: better handle escape chars on what:

    The parser for the symbols defined on What: doesn't cover all
    chars that need to be scaped, like '{' and '}'. Change the logic
    to be more generic, and ensure that the same regex will be used
    on both What: and when parsing the cross-references.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/29cb56def89b508fe605bcd2ba74a4376cc08e35.1616668017.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    mchehab authored and Jonathan Corbet committed Mar 31, 2021
  11. Docs/zh_CN: update Alex Shi new email address

    I am leaving Alibaba, udpate the old email address to new one.
    
    Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
    Cc: Harry Wei <harryxiyou@gmail.com>
    Cc: Alex Shi <alexs@kernel.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: linux-doc@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Link: https://lore.kernel.org/r/1616748571-52058-2-git-send-email-alex.shi@linux.alibaba.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    alexshi authored and Jonathan Corbet committed Mar 31, 2021
  12. mailmap: update email address for Alex Shi

    Add my kernel.org address for old email address.
    
    Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Leon Romanovsky <leon@kernel.org>
    Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    Cc: Alexander Lobakin <alobakin@pm.me>
    Cc: linux-kernel@vger.kernel.org
    Link: https://lore.kernel.org/r/1616748571-52058-1-git-send-email-alex.shi@linux.alibaba.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    alexshi authored and Jonathan Corbet committed Mar 31, 2021
  13. docs: powerpc: Fix misspellings and grammar errors

    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: He Ying <heying24@huawei.com>
    Acked-by: Michael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/20210326100853.173586-1-heying24@huawei.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    He Ying authored and Jonathan Corbet committed Mar 31, 2021
  14. Documentation: Add leading slash to some paths

    Change multiple sys/xyz to /sys/xyz
    
    Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
    Link: https://lore.kernel.org/r/20210328152837.73347-1-shiftee@posteo.net
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    shiftee authored and Jonathan Corbet committed Mar 31, 2021
  15. docs: reporting-issues: reduce quoting and assorted fixes

    A pile of small fixes:
    
    - don't quote terms like vanilla, mainline, and stable, unless in they
      occur in places where readers new to the kernel might see them for the
      first time
    
    - make people rule out that vendor patches are interfering if they face
      a regression in a stable or longterm kernel they saw in a vendor
      kernel for the first time
    
    - s/bugs/issues/ in a selected spots
    
    - exchange two headlines that got mixed up somehow
    
    - add a few links to some of the steps in the guide
    
    - Greg mentioned sending reports to the stable mailing list is
      sufficient, so remove the "CC stable maintainers" bits
    
    - fix a few typos and mistakes in the text, with a few very small
      improvements along the way
    
    Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
    Link: https://lore.kernel.org/r/07bca15d8465b8e234537feb8841dd2ff20243bc.1617113469.git.linux@leemhuis.info
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Thorsten Leemhuis authored and Jonathan Corbet committed Mar 31, 2021
  16. docs: reporting-issues.rst: reshuffle and improve TLDR

    Make the TLDR a bit shorter while improving it at the same time by going
    straight to the aspects readers are more interested it. The change makes
    the process especially more straight-forward for people that hit a
    regression in a stable or longterm kernel. Due to the changes the TLDR
    now also matches the step by step guide better.
    
    Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
    Link: https://lore.kernel.org/r/762ccd7735315d2fdaa79612fccc1f474881118b.1617113469.git.linux@leemhuis.info
    [ jc: fixed transposed _` as noted by Thorsten ]
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Thorsten Leemhuis authored and Jonathan Corbet committed Mar 31, 2021
  17. MAINTAINERS: add entry for Documentation/admin-guide/reporting-issues…

    ….rst
    
    Thorsten will keep an eye on the new document about reporting issues
    (aka bugs).
    
    Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
    Link: https://lore.kernel.org/r/c8d55ec74d104b90fdb9c155bca3b407e8480fb3.1617113469.git.linux@leemhuis.info
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Thorsten Leemhuis authored and Jonathan Corbet committed Mar 31, 2021
  18. docs: make reporting-issues.rst official and delete reporting-bugs.rst

    Remove the WIP and two FIXME notes in the text to make it official, as
    it's now considered fully ready for consumption. To make sure this
    step is okay for people the intent of this change and the latest version
    of the text were posted to ksummit-discuss; nobody complained, thus
    lets move ahead.
    
    Add a footer to point out people can contact Thorsten directly in case
    they find something to improve in the text.
    
    Dear reporting-bugs.rst, I'm sorry to tell you, but that makes you fully
    obsolete and we thus have to let you go now. Thank you very much for
    your service, you in one form or another have been around for a long
    time. I'm sure over the years you got read a lot and helped quite a few
    people. But it's time to retire now. Rest in peace.
    
    Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
    Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    CC: Harry Wei <harryxiyou@gmail.com>
    CC: Alex Shi <alex.shi@linux.alibaba.com>
    CC: Federico Vaga <federico.vaga@vaga.pv.it>
    CC: Greg KH <gregkh@linuxfoundation.org>
    Link: https://lore.kernel.org/r/49c674c2d304d87e6259063580fda05267e8c348.1617113469.git.linux@leemhuis.info
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Thorsten Leemhuis authored and Jonathan Corbet committed Mar 31, 2021
  19. docs: Remove make headers_check from checklist in translations

    Commit 1a63f9c ("docs: Remove make headers_check from checklist")
    fixed only the English version.
    
    Let's fix the translated variants too.
    
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    Link: https://lore.kernel.org/r/20210302141822.504773-1-masahiroy@kernel.org
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    masahir0y authored and Jonathan Corbet committed Mar 31, 2021

Commits on Mar 29, 2021

  1. scripts: kernel-doc: add warning for comment not following kernel-doc…

    … syntax
    
    Currently, kernel-doc start parsing the comment as a kernel-doc comment if
    it starts with '/**', but does not take into account if the content inside
    the comment too, adheres with the expected format.
    This results in unexpected and unclear warnings for the user.
    
    E.g., running scripts/kernel-doc -none mm/memcontrol.c emits:
    "mm/memcontrol.c:961: warning: expecting prototype for do not fallback to current(). Prototype was for get_mem_cgroup_from_current() instead"
    
    Here kernel-doc parses the corresponding comment as a kernel-doc comment
    and expects prototype for it in the next lines, and as a result causing
    this warning.
    
    Provide a clearer warning message to the users regarding the same, if the
    content inside the comment does not follow the kernel-doc expected format.
    
    Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
    Link: https://lore.kernel.org/r/20210329092945.13152-1-yashsri421@gmail.com
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    AdityaSrivast authored and Jonathan Corbet committed Mar 29, 2021
Older