Skip to content
Permalink
Christophe-JAI…
Switch branches/tags

Commits on Sep 18, 2022

  1. misc: microchip: pci1xxxx: Fix the error handling paths of gp_aux_bus…

    …_probe()
    
    There are several issues related to the error handling paths of
    gp_aux_bus_probe():
       - some resources may be released twice. Once explicitly in the error
         handling path, and once via the release() function
       - auxiliary_device_delete() should be called after the first successful
         auxiliary_device_add()
    
    To fix them, reorder the code:
       - move the place where we get the irq for the 2nd wrapper.
       - call kfree() and ida_free() after error checks, rather then in the
         error handling path.
       - have the error handling path look like the remove function
    
    Fixes: 393fc2f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    tititiou36 authored and intel-lab-lkp committed Sep 18, 2022
  2. misc: microchip: pci1xxxx: Fix a memory leak in the error handling of…

    … gp_aux_bus_probe()
    
    'aux_bus' is freed in the remove function but not in the error handling
    path of the probe.
    
    Use devm_kzalloc() to simplify the remove function and fix the leak in the
    probe.
    
    Fixes: 393fc2f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    tititiou36 authored and intel-lab-lkp committed Sep 18, 2022
  3. misc: microchip: pci1xxxx: Do not disable the pci device twice in gp_…

    …aux_bus_remove()
    
    gp_aux_bus_probe() uses pcim_enable_device(), so there is no point in
    calling pci_disable_device() explicitly in the remove function.
    
    Fixes: 393fc2f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    tititiou36 authored and intel-lab-lkp committed Sep 18, 2022

Commits on Sep 9, 2022

  1. comedi: convert sysfs snprintf to sysfs_emit

    Follow the advice of the Documentation/filesystems/sysfs.rst
    and show() should only use sysfs_emit() or sysfs_emit_at()
    when formatting the value to be returned to user space.
    
    Signed-off-by: Xuezhi Zhang <zhangxuezhi1@coolpad.com>
    Link: https://lore.kernel.org/r/20220901013423.418464-1-zhangxuezhi3@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Xuezhi Zhang authored and gregkh committed Sep 9, 2022
  2. misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic

    The dma_map_single() doesn't permit zero length mapping. It causes a follow
    panic.
    
    A panic was reported on arm64:
    
    [   60.137988] ------------[ cut here ]------------
    [   60.142630] kernel BUG at kernel/dma/swiotlb.c:624!
    [   60.147508] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
    [   60.152992] Modules linked in: dw_hdmi_cec crct10dif_ce simple_bridge rcar_fdp1 vsp1 rcar_vin videobuf2_vmalloc rcar_csi2 v4l
    2_mem2mem videobuf2_dma_contig videobuf2_memops pci_endpoint_test videobuf2_v4l2 videobuf2_common rcar_fcp v4l2_fwnode v4l2_asyn
    c videodev mc gpio_bd9571mwv max9611 pwm_rcar ccree at24 authenc libdes phy_rcar_gen3_usb3 usb_dmac display_connector pwm_bl
    [   60.186252] CPU: 0 PID: 508 Comm: pcitest Not tainted 6.0.0-rc1rpci-dev+ torvalds#237
    [   60.193387] Hardware name: Renesas Salvator-X 2nd version board based on r8a77951 (DT)
    [   60.201302] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   60.208263] pc : swiotlb_tbl_map_single+0x2c0/0x590
    [   60.213149] lr : swiotlb_map+0x88/0x1f0
    [   60.216982] sp : ffff80000a883bc0
    [   60.220292] x29: ffff80000a883bc0 x28: 0000000000000000 x27: 0000000000000000
    [   60.227430] x26: 0000000000000000 x25: ffff0004c0da20d0 x24: ffff80000a1f77c0
    [   60.234567] x23: 0000000000000002 x22: 0001000040000010 x21: 000000007a000000
    [   60.241703] x20: 0000000000200000 x19: 0000000000000000 x18: 0000000000000000
    [   60.248840] x17: 0000000000000000 x16: 0000000000000000 x15: ffff0006ff7b9180
    [   60.255977] x14: ffff0006ff7b9180 x13: 0000000000000000 x12: 0000000000000000
    [   60.263113] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
    [   60.270249] x8 : 0001000000000010 x7 : ffff0004c6754b20 x6 : 0000000000000000
    [   60.277385] x5 : ffff0004c0da2090 x4 : 0000000000000000 x3 : 0000000000000001
    [   60.284521] x2 : 0000000040000000 x1 : 0000000000000000 x0 : 0000000040000010
    [   60.291658] Call trace:
    [   60.294100]  swiotlb_tbl_map_single+0x2c0/0x590
    [   60.298629]  swiotlb_map+0x88/0x1f0
    [   60.302115]  dma_map_page_attrs+0x188/0x230
    [   60.306299]  pci_endpoint_test_ioctl+0x5e4/0xd90 [pci_endpoint_test]
    [   60.312660]  __arm64_sys_ioctl+0xa8/0xf0
    [   60.316583]  invoke_syscall+0x44/0x108
    [   60.320334]  el0_svc_common.constprop.0+0xcc/0xf0
    [   60.325038]  do_el0_svc+0x2c/0xb8
    [   60.328351]  el0_svc+0x2c/0x88
    [   60.331406]  el0t_64_sync_handler+0xb8/0xc0
    [   60.335587]  el0t_64_sync+0x18c/0x190
    [   60.339251] Code: 5280001 d2e00414 35fff45c d503201f (d4210000)
    [   60.345344] ---[ end trace 0000000000000000 ]---
    
    To fix it, this patch adds a checking the payload length if it is zero.
    
    Fixes: 343dc69 ("misc: pci_endpoint_test: Prevent some integer overflows")
    Cc: stable <stable@kernel.org>
    Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
    Link: https://lore.kernel.org/r/20220907020100.122588-2-mie@igel.co.jp
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ShunsukeMie authored and gregkh committed Sep 9, 2022
  3. misc: pci_endpoint_test: Aggregate params checking for xfer

    Each transfer test functions have same parameter checking code. This patch
    unites those to an introduced function.
    
    Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
    Cc: stable <stable@kernel.org>
    Link: https://lore.kernel.org/r/20220907020100.122588-1-mie@igel.co.jp
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ShunsukeMie authored and gregkh committed Sep 9, 2022
  4. misc/xilinx_sdfec: Replace kmap() with kmap_local_page()

    kmap() is being deprecated in favor of kmap_local_page().
    
    There are two main problems with kmap(): (1) It comes with an overhead as
    the mapping space is restricted and protected by a global lock for
    synchronization and (2) it also requires global TLB invalidation when the
    kmap’s pool wraps and it might block when the mapping space is fully
    utilized until a slot becomes available.
    
    With kmap_local_page() the mappings are per thread, CPU local, can take
    page faults, and can be called from any context (including interrupts).
    It is faster than kmap() in kernels with HIGHMEM enabled. Furthermore,
    the tasks can be preempted and, when they are scheduled to run again, the
    kernel virtual addresses are restored and still valid.
    
    Since its use in xilinx_sdfec.c is safe, replace kmap()i / kunmap() with
    kmap_local_page() / kunmap_local().
    
    Cc: "Venkataramanan, Anirudh" <anirudh.venkataramanan@intel.com>
    Suggested-by: Ira Weiny <ira.weiny@intel.com>
    Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
    Link: https://lore.kernel.org/r/20220901154408.23984-3-fmdefrancesco@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    xp4ns3 authored and gregkh committed Sep 9, 2022
  5. misc/xilinx_sdfec: Call kunmap() on pages mapped with kmap()

    Pages in an array are mapped in a loop but, after the code is done with
    the virtual addresses, these pages are never unmapped.
    
    Therefore, call kunmap() to unmap pages[i].
    
    Cc: "Venkataramanan, Anirudh" <anirudh.venkataramanan@intel.com>
    Cc: Ira Weiny <ira.weiny@intel.com>
    Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
    Link: https://lore.kernel.org/r/20220901154408.23984-2-fmdefrancesco@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    xp4ns3 authored and gregkh committed Sep 9, 2022
  6. misc/vmw_vmci: Use kmap_local_page() in vmci_queue_pair.c

    kmap() is being deprecated in favor of kmap_local_page().
    
    There are two main problems with kmap(): (1) It comes with an overhead as
    the mapping space is restricted and protected by a global lock for
    synchronization and (2) it also requires global TLB invalidation when the
    kmap’s pool wraps and it might block when the mapping space is fully
    utilized until a slot becomes available.
    
    With kmap_local_page() the mappings are per thread, CPU local, can take
    page faults, and can be called from any context (including interrupts).
    It is faster than kmap() in kernels with HIGHMEM enabled. Furthermore,
    the tasks can be preempted and, when they are scheduled to run again, the
    kernel virtual addresses are restored and still valid.
    
    Since its use in vmci_queue_pair.c is safe everywhere, replace kmap() with
    kmap_local_page().
    
    Cc: "Venkataramanan, Anirudh" <anirudh.venkataramanan@intel.com>
    Suggested-by: Ira Weiny <ira.weiny@intel.com>
    Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
    Link: https://lore.kernel.org/r/20220901135714.16481-1-fmdefrancesco@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    xp4ns3 authored and gregkh committed Sep 9, 2022
  7. virt: vbox: Remove unproper information

    When drivers are working properly, they are quiet.
    Therefore, the vbg_info() should be removed.
    
    Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
    Link: https://lore.kernel.org/r/20220901144619.3550352-1-jiasheng@iscas.ac.cn
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    JiangJias authored and gregkh committed Sep 9, 2022
  8. virt: vbox: convert to use dev_groups

    The driver core supports the ability to handle the creation and removal
    of device-specific sysfs files in a race-free manner. Moreover, it can
    guarantee the success of creation. Therefore, it should be better to
    convert to use dev_groups.
    
    Fixes: 0ba002b ("virt: Add vboxguest driver for Virtual Box Guest integration")
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
    Link: https://lore.kernel.org/r/20220901144610.3550300-1-jiasheng@iscas.ac.cn
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    JiangJias authored and gregkh committed Sep 9, 2022
  9. misc: microchip: pci1xxxx: use module_auxiliary_driver

    Use the module_auxiliary_driver() macro to make the code simpler
    by eliminating module_init and module_exit calls.
    
    Fixes: 7d3e4d8 ("misc: microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device enumerated by the auxiliary bus driver.")
    Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20220907145808.1789249-5-weiyongjun@huaweicloud.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Sep 9, 2022
  10. misc: microchip: pci1xxxx: Add missing MODULE_DEVICE_TABLE

    This patch adds missing MODULE_DEVICE_TABLE definition which generates
    correct modalias for automatic loading of this driver when it is built
    as an external module.
    
    Fixes: 7d3e4d8 ("misc: microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device enumerated by the auxiliary bus driver.")
    Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20220907145808.1789249-4-weiyongjun@huaweicloud.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Sep 9, 2022
  11. misc: microchip: pci1xxxx: Make symbol 'pci1xxxx_gpio_auxiliary_id_ta…

    …ble' static
    
    The sparse tool complains as follows:
    
    drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c:409:34: warning:
     symbol 'pci1xxxx_gpio_auxiliary_id_table' was not declared. Should it be static?
    
    This symbol is not used outside of mchp_pci1xxxx_gpio.c, so marks it static.
    
    Fixes: 7d3e4d8 ("misc: microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device enumerated by the auxiliary bus driver.")
    Reported-by: kernel test robot <lkp@intel.com>
    Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20220907145808.1789249-3-weiyongjun@huaweicloud.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Sep 9, 2022
  12. misc: microchip: pci1xxxx: Fix missing spin_lock_init()

    The driver allocates the spinlock but not initialize it.
    Use spin_lock_init() on it to initialize it correctly.
    
    Fixes: 7d3e4d8 ("misc: microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device enumerated by the auxiliary bus driver.")
    Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20220907145808.1789249-2-weiyongjun@huaweicloud.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Sep 9, 2022
  13. misc: microchip: pci1xxxx: fix error handling in gp_aux_bus_probe()

    In some error handling path, resoures alloced may not released.
    This patch fix them.
    
    Fixes: 393fc2f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
    Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20220907145808.1789249-1-weiyongjun@huaweicloud.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Sep 9, 2022

Commits on Sep 7, 2022

  1. MAINTAINERS: Add a new entry for VMWARE VSOCK VMCI TRANSPORT DRIVER

    Add a new entry for VMWARE VSOCK VMCI TRANSPORT DRIVER in the
    MAINTAINERS file.
    
    Acked-by: Stefano Garzarella <sgarzare@redhat.com>
    Signed-off-by: Vishnu Dasa <vdasa@vmware.com>
    Link: https://lore.kernel.org/r/20220906172722.19862-4-vdasa@vmware.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    vdasahar authored and gregkh committed Sep 7, 2022
  2. MAINTAINERS: Change status of some VMware drivers

    Change the status from 'Maintained' to 'Supported' for VMWARE
    BALLOON DRIVER, VMWARE PVRDMA DRIVER, VMWARE PVSCSI driver,
    VMWARE VMCI DRIVER, VMWARE VMMOUSE SUBDRIVER and VMWARE VMXNET3
    ETHERNET DRIVER.
    
    This needs to be done to conform to the guidelines in [1].
    Maintainers for these drivers are VMware employees.
    
    [1] https://docs.kernel.org/process/maintainers.html
    
    Acked-by: Nadav Amit <namit@vmware.com>
    Signed-off-by: Vishnu Dasa <vdasa@vmware.com>
    Link: https://lore.kernel.org/r/20220906172722.19862-3-vdasa@vmware.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    vdasahar authored and gregkh committed Sep 7, 2022
  3. MAINTAINERS: Change VMware PVSCSI driver entry to upper case

    Change 'VMware PVSCSI driver' entry to upper case.
    
    This is a trivial change being done for uniformity.
    
    Signed-off-by: Vishnu Dasa <vdasa@vmware.com>
    Link: https://lore.kernel.org/r/20220906172722.19862-2-vdasa@vmware.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    vdasahar authored and gregkh committed Sep 7, 2022

Commits on Sep 6, 2022

  1. binder: fix binder_alloc kernel-doc warnings

    Update the kernel-doc section of struct binder_alloc to fix the
    following warnings reported by ./scripts/kernel-doc:
    
      warning: Function parameter or member 'mutex' not described in 'binder_alloc'
      warning: Function parameter or member 'vma_addr' not described in 'binder_alloc'
    
    No functional changes in this patch.
    
    Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
    Acked-by: Todd Kjos <tkjos@google.com>
    Signed-off-by: Carlos Llamas <cmllamas@google.com>
    Link: https://lore.kernel.org/r/20220906135948.3048225-4-cmllamas@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Carlos Llamas authored and gregkh committed Sep 6, 2022
  2. binder: remove binder_alloc_set_vma()

    The mmap_locked asserts here are not needed since this is only called
    back from the mmap stack in ->mmap() and ->close() which always acquire
    the lock first. Remove these asserts along with binder_alloc_set_vma()
    altogether since it's trivial enough to be consumed by callers.
    
    Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
    Signed-off-by: Carlos Llamas <cmllamas@google.com>
    Link: https://lore.kernel.org/r/20220906135948.3048225-3-cmllamas@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Carlos Llamas authored and gregkh committed Sep 6, 2022
  3. binder: rename alloc->vma_vm_mm to alloc->mm

    Rename ->vma_vm_mm to ->mm to reflect the fact that we no longer cache
    this reference from vma->vm_mm but from current->mm instead.
    
    No functional changes in this patch.
    
    Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
    Acked-by: Todd Kjos <tkjos@google.com>
    Signed-off-by: Carlos Llamas <cmllamas@google.com>
    Link: https://lore.kernel.org/r/20220906135948.3048225-2-cmllamas@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Carlos Llamas authored and gregkh committed Sep 6, 2022
  4. misc: microchip: pci1xxxx: fix dependency issues in building the pci1…

    …xxxx's aux bus driver.
    
    build errors and warnings listed below and reported by kernel
    test robot <lkp@intel.com> on the char-misc-next branch are
    fixed in this add-on patch.
    
    errors:
      ERROR: modpost: "auxiliary_device_init" [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.ko] undefined!
      ERROR: modpost: "__auxiliary_device_add" [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.ko] undefined!
      ERROR: modpost: "auxiliary_driver_unregister" [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!
      ERROR: modpost: "__auxiliary_driver_register" [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!
      ia64-linux-ld: drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.o: in function `gp_aux_bus_probe.part.0':
      mchp_pci1xxxx_gp.c:(.text+0x342): undefined reference to `auxiliary_device_init'
      ia64-linux-ld: mchp_pci1xxxx_gp.c:(.text+0x392): undefined reference to `__auxiliary_device_add'
      ia64-linux-ld: mchp_pci1xxxx_gp.c:(.text+0x5c2): undefined reference to `auxiliary_device_init'
      ia64-linux-ld: mchp_pci1xxxx_gp.c:(.text+0x612): undefined reference to `__auxiliary_device_add'
      ia64-linux-ld: drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.o: in function `pci1xxxx_gpio_driver_init':
      mchp_pci1xxxx_gpio.c:(.init.text+0x42): undefined reference to `__auxiliary_driver_register'
    
    warnings:
      unmet direct dependencies detected for GPIOLIB_IRQCHIP when selected by GP_PCI1XXXX
    
    Fixes: 393fc2f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
    Link: https://lore.kernel.org/r/20220906124951.696776-1-kumaravel.thiagarajan@microchip.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Kumaravel Thiagarajan authored and gregkh committed Sep 6, 2022

Commits on Sep 5, 2022

  1. Merge 6.0-rc4 into char-misc-next

    We need the char-misc fixes in here as well.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Sep 5, 2022

Commits on Sep 4, 2022

  1. Linux 6.0-rc4

    torvalds committed Sep 4, 2022
  2. Merge tag 'powerpc-6.0-4' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
    
     - Fix handling of PCI domains in /proc on 32-bit systems using the
       recently added support for numbering buses from zero for each domain.
    
     - A fix and a revert for some changes to use READ/WRITE_ONCE() which
       caused problems with KASAN enabled due to sanitisation calls being
       introduced in low-level paths that can't cope with it.
    
     - Fix build errors on 32-bit caused by the syscall table being
       misaligned sometimes.
    
     - Two fixes to get IBM Cell native machines booting again, which had
       bit-rotted while my QS22 was temporarily out of action.
    
     - Fix the papr_scm driver to not assume the order of events returned by
       the hypervisor is stable, and a related compile fix.
    
    Thanks to Aneesh Kumar K.V, Christophe Leroy, Jordan Niethe, Kajol Jain,
    Masahiro Yamada, Nathan Chancellor, Pali Rohár, Vaibhav Jain, and Zhouyi
    Zhou.
    
    * tag 'powerpc-6.0-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      powerpc/papr_scm: Ensure rc is always initialized in papr_scm_pmu_register()
      Revert "powerpc/irq: Don't open code irq_soft_mask helpers"
      powerpc: Fix hard_irq_disable() with sanitizer
      powerpc/rtas: Fix RTAS MSR[HV] handling for Cell
      Revert "powerpc: Remove unused FW_FEATURE_NATIVE references"
      powerpc: align syscall table for ppc32
      powerpc/pci: Enable PCI domains in /proc when PCI bus numbers are not unique
      powerpc/papr_scm: Fix nvdimm event mappings
    torvalds committed Sep 4, 2022
  3. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull kvm fixes from Paolo Bonzini:
     "s390:
    
       - PCI interpretation compile fixes
    
      RISC-V:
    
       - fix unused variable warnings in vcpu_timer.c
    
       - move extern sbi_ext declarations to a header
    
      x86:
    
       - check validity of argument to KVM_SET_MP_STATE
    
       - use guest's global_ctrl to completely disable guest PEBS
    
       - fix a memory leak on memory allocation failure
    
       - mask off unsupported and unknown bits of IA32_ARCH_CAPABILITIES
    
       - fix build failure with Clang integrated assembler
    
       - fix MSR interception
    
       - always flush TLBs when enabling dirty logging"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: x86: check validity of argument to KVM_SET_MP_STATE
      perf/x86/core: Completely disable guest PEBS via guest's global_ctrl
      KVM: x86: fix memoryleak in kvm_arch_vcpu_create()
      KVM: x86: Mask off unsupported and unknown bits of IA32_ARCH_CAPABILITIES
      KVM: s390: pci: Hook to access KVM lowlevel from VFIO
      riscv: kvm: move extern sbi_ext declarations to a header
      riscv: kvm: vcpu_timer: fix unused variable warnings
      KVM: selftests: Fix ambiguous mov in KVM_ASM_SAFE()
      KVM: selftests: Fix KVM_EXCEPTION_MAGIC build with Clang
      KVM: VMX: Heed the 'msr' argument in msr_write_intercepted()
      kvm: x86: mmu: Always flush TLBs when enabling dirty logging
      kvm: x86: mmu: Drop the need_remote_flush() function
    torvalds committed Sep 4, 2022
  4. Makefile.extrawarn: re-enable -Wformat for clang; take 2

    -Wformat was recently re-enabled for builds with clang, then quickly
    re-disabled, due to concerns stemming from the frequency of default
    argument promotion related warning instances.
    
    commit 258fafc ("Makefile.extrawarn: re-enable -Wformat for clang")
    commit 21f9c8a ("Revert "Makefile.extrawarn: re-enable -Wformat for clang"")
    
    ISO WG14 has ratified N2562 to address default argument promotion
    explicitly for printf, as part of the upcoming ISO C2X standard.
    
    The behavior of clang was changed in clang-16 to not warn for the cited
    cases in all language modes.
    
    Add a version check, so that users of clang-16 now get the full effect
    of -Wformat. For older clang versions, re-enable flags under the
    -Wformat group that way users still get some useful checks related to
    format strings, without noisy default argument promotion warnings. I
    intentionally omitted -Wformat-y2k and -Wformat-security from being
    re-enabled, which are also part of -Wformat in clang-16.
    
    Link: ClangBuiltLinux#378
    Link: llvm/llvm-project#57102
    Link: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2562.pdf
    Suggested-by: Justin Stitt <jstitt007@gmail.com>
    Suggested-by: Nathan Chancellor <nathan@kernel.org>
    Suggested-by: Youngmin Nam <youngmin.nam@samsung.com>
    Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
    Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: Nathan Chancellor <nathan@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    nickdesaulniers authored and torvalds committed Sep 4, 2022
  5. Merge tag 'gpio-fixes-for-v6.0-rc4' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/brgl/linux
    
    Pull gpio fixes from Bartosz Golaszewski:
     "A a set of fixes from the GPIO subsystem.
    
      Most are small driver fixes except the realtek-otto driver patch which
      is pretty big but addresses a significant flaw that can cause the CPU
      to stay infinitely busy on uncleared ISR on some platforms.
    
      Summary:
       - MAINTAINERS update
       - fix resource leaks in gpio-mockup and gpio-pxa
       - add missing locking in gpio-pca953x
       - use 32-bit I/O in gpio-realtek-otto
       - make irq_chip structures immutable in four more drivers"
    
    * tag 'gpio-fixes-for-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
      gpio: ws16c48: Make irq_chip immutable
      gpio: 104-idio-16: Make irq_chip immutable
      gpio: 104-idi-48: Make irq_chip immutable
      gpio: 104-dio-48e: Make irq_chip immutable
      gpio: realtek-otto: switch to 32-bit I/O
      gpio: pca953x: Add mutex_lock for regcache sync in PM
      gpio: mockup: remove gpio debugfs when remove device
      gpio: pxa: use devres for the clock struct
      MAINTAINERS: rectify entry for XILINX GPIO DRIVER
    torvalds committed Sep 4, 2022

Commits on Sep 3, 2022

  1. gpio: ws16c48: Make irq_chip immutable

    Kernel warns about mutable irq_chips:
    
        "not an immutable chip, please consider fixing!"
    
    Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the
    new helper functions, and call the appropriate gpiolib functions.
    
    Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    vilhelmgray authored and brgl committed Sep 3, 2022
  2. gpio: 104-idio-16: Make irq_chip immutable

    Kernel warns about mutable irq_chips:
    
        "not an immutable chip, please consider fixing!"
    
    Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the
    new helper functions, and call the appropriate gpiolib functions.
    
    Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    vilhelmgray authored and brgl committed Sep 3, 2022
  3. gpio: 104-idi-48: Make irq_chip immutable

    Kernel warns about mutable irq_chips:
    
        "not an immutable chip, please consider fixing!"
    
    Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the
    new helper functions, and call the appropriate gpiolib functions.
    
    Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    vilhelmgray authored and brgl committed Sep 3, 2022
  4. gpio: 104-dio-48e: Make irq_chip immutable

    Kernel warns about mutable irq_chips:
    
        "not an immutable chip, please consider fixing!"
    
    Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the
    new helper functions, and call the appropriate gpiolib functions.
    
    Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    vilhelmgray authored and brgl committed Sep 3, 2022
  5. Merge tag 'for-linus-6.0-rc4-tag' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/xen/tip
    
    Pull xen fixes from Juergen Gross:
    
     - a minor fix for the Xen grant driver
    
     - a small series fixing a recently introduced problem in the Xen
       blkfront/blkback drivers with negotiation of feature usage
    
    * tag 'for-linus-6.0-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
      xen/grants: prevent integer overflow in gnttab_dma_alloc_pages()
      xen-blkfront: Cache feature_persistent value before advertisement
      xen-blkfront: Advertise feature-persistent as user requested
      xen-blkback: Advertise feature-persistent as user requested
    torvalds committed Sep 3, 2022
  6. Merge tag 'loongarch-fixes-6.0-2' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/chenhuacai/linux-loongson
    
    Pull LoongArch fixes from Huacai Chen:
     "Fix several build errors or warnings, cleanup some code, and adjust
      arch_do_signal_or_restart() to adapt generic entry"
    
    * tag 'loongarch-fixes-6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
      LoongArch: mm: Remove the unneeded result variable
      LoongArch: Fix arch_remove_memory() undefined build error
      LoongArch: Fix section mismatch due to acpi_os_ioremap()
      LoongArch: Improve dump_tlb() output messages
      LoongArch: Adjust arch_do_signal_or_restart() to adapt generic entry
      LoongArch: Avoid orphan input sections
    torvalds committed Sep 3, 2022
Older