Skip to content
  1. Jan 22, 2022
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-cppc' and 'acpi-dptf' · f6f02040
      Rafael J. Wysocki authored
      Merge new ACPI CPPC driver updates and new Raptor Lake DPTF device
      IDs for 5.17-rc1.
      
      * acpi-cppc:
        ACPI: CPPC: Drop redundant local variable from cpc_read()
        ACPI: CPPC: Fix up I/O port access in cpc_read()
      
      * acpi-dptf:
        ACPI: DPTF: Support Raptor Lake
      f6f02040
  2. Jan 18, 2022
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 6a8d7fbf
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "The most significant item here is the Platform Firmware Runtime Update
        and Telemetry (PFRUT) support designed to allow certain pieces of the
        platform firmware to be updated on the fly, among other things.
      
        Also important is the e820 handling change on x86 that should work
        around PCI BAR allocation issues on some systems shipping since 2019.
      
        The rest is just a handful of assorted fixes and cleanups on top of
        the ACPI material merged previously.
      
        Specifics:
      
         - Add support for the the Platform Firmware Runtime Update and
           Telemetry (PFRUT) interface based on ACPI to allow certain pieces
           of the platform firmware to be updated without restarting the
           system and to provide a mechanism for collecting platform firmware
           telemetry data (Chen Yu, Dan Carpenter, Yang Yingliang).
      
         - Ignore E820 reservations covering PCI host bridge windows on
           sufficiently recent x86 systems to avoid issues with allocating PCI
           BARs on systems where the E820 reservations cover the entire PCI
           host bridge memory window returned by the _CRS object in the
           system's ACPI tables (Hans de Goede).
      
         - Fix and clean up acpi_scan_init() (Rafael Wysocki).
      
         - Add more sanity checking to ACPI SPCR tables parsing (Mark
           Langsdorf).
      
         - Fix up ACPI APD (AMD Soc) driver initialization (Jiasheng Jiang).
      
         - Drop unnecessary "static" from the ACPI PCC address space handling
           driver added recently (kernel test robot)"
      
      * tag 'acpi-5.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PCC: pcc_ctx can be static
        ACPI: scan: Rename label in acpi_scan_init()
        ACPI: scan: Simplify initialization of power and sleep buttons
        ACPI: scan: Change acpi_scan_init() return value type to void
        ACPI: SPCR: check if table->serial_port.access_width is too wide
        ACPI: APD: Check for NULL pointer after calling devm_ioremap()
        x86/PCI: Ignore E820 reservations for bridge windows on newer systems
        ACPI: pfr_telemetry: Fix info leak in pfrt_log_ioctl()
        ACPI: pfr_update: Fix return value check in pfru_write()
        ACPI: tools: Introduce utility for firmware updates/telemetry
        ACPI: Introduce Platform Firmware Runtime Telemetry driver
        ACPI: Introduce Platform Firmware Runtime Update device driver
        efi: Introduce EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER and corresponding structures
      6a8d7fbf
    • Linus Torvalds's avatar
      Merge tag 'slab-for-5.17-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab · e3a8b6a1
      Linus Torvalds authored
      Pull more slab updates from Vlastimil Babka:
       "Finish the conversion to struct slab by removing slab-specific fields
        from struct page.
      
        The first slab update (see merge commit ca1a46d6) did most of the
        conversion, but there was also series in iommu tree removing the
        iommu's usage of struct page 'freelist' field, blocking the final
        struct page cleanup.
      
        Now that the iommu changes have been merged, we can finish the job"
      
      * tag 'slab-for-5.17-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
        mm: Remove slab from struct page
      e3a8b6a1
    • Linus Torvalds's avatar
      Merge tag 'arc-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 62b48887
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
       "Nothing too exciting for now"
      
      * tag 'arc-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        arc: use swap() to make code cleaner
        arc: perf: Move static structs to where they're really used
        ARC: perf: fix misleading comment about pmu vs counter stop
        arc: Replace lkml.org links with lore
        ARC: perf: Remove redundant initialization of variable idx
        ARC: thread_info.h: correct two typos in a comment
      62b48887
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v5.17-2022-01-16' of... · 57d17378
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v5.17-2022-01-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tool updates from Arnaldo Carvalho de Melo:
       "New features:
      
         - Add 'trace' subcommand for 'perf ftrace', setting the stage for
           more 'perf ftrace' subcommands. Not using a subcommand yields the
           previous behaviour of 'perf ftrace'.
      
         - Add 'latency' subcommand to 'perf ftrace', that can use the
           function graph tracer or a BPF optimized one, via the -b/--use-bpf
           option.
      
           E.g.:
      
      	$ sudo perf ftrace latency -a -T mutex_lock sleep 1
      	#   DURATION     |      COUNT | GRAPH                          |
      	     0 - 1    us |       4596 | ########################       |
      	     1 - 2    us |       1680 | #########                      |
      	     2 - 4    us |       1106 | #####                          |
      	     4 - 8    us |        546 | ##                             |
      	     8 - 16   us |        562 | ###                            |
      	    16 - 32   us |          1 |                                |
      	    32 - 64   us |          0 |                                |
      	    64 - 128  us |          0 |                                |
      	   128 - 256  us |          0 |                                |
      	   256 - 512  us |          0 |                                |
      	   512 - 1024 us |          0 |                                |
      	     1 - 2    ms |          0 |                                |
      	     2 - 4    ms |          0 |                                |
      	     4 - 8    ms |          0 |                                |
      	     8 - 16   ms |          0 |                                |
      	    16 - 32   ms |          0 |                                |
      	    32 - 64   ms |          0 |                                |
      	    64 - 128  ms |          0 |                                |
      	   128 - 256  ms |          0 |                                |
      	   256 - 512  ms |          0 |                                |
      	   512 - 1024 ms |          0 |                                |
      	     1 - ...   s |          0 |                                |
      
           The original implementation of this command was in the bcc tool.
      
         - Support --cputype option for hybrid events in 'perf stat'.
      
        Improvements:
      
         - Call chain improvements for ARM64.
      
         - No need to do any affinity setup when profiling pids.
      
         - Reduce multiplexing with duration_time in 'perf stat' metrics.
      
         - Improve error message for uncore events, stating that some event
           groups are can only be used in system wide (-a) mode.
      
         - perf stat metric group leader fixes/improvements, including arch
           specific changes to better support Intel topdown events.
      
         - Probe non-deprecated sysfs path first, i.e. try the path
           /sys/devices/system/cpu/cpuN/topology/thread_siblings first, then
           the old /sys/devices/system/cpu/cpuN/topology/core_cpus.
      
         - Disable debuginfod by default in 'perf record', to avoid stalls on
           distros such as Fedora 35.
      
         - Use unbuffered output in 'perf bench' when pipe/tee'ing to a file.
      
         - Enable ignore_missing_thread in 'perf trace'
      
        Fixes:
      
         - Avoid TUI crash when navigating in the annotation of recursive
           functions.
      
         - Fix hex dump character output in 'perf script'.
      
         - Fix JSON indentation to 4 spaces standard in the ARM vendor event
           files.
      
         - Fix use after free in metric__new().
      
         - Fix IS_ERR_OR_NULL() usage in the perf BPF loader.
      
         - Fix up cross-arch register support, i.e. when printing register
           names take into account the architecture where the perf.data file
           was collected.
      
         - Fix SMT fallback with large core counts.
      
         - Don't lower case MetricExpr when parsing JSON files so as not to
           lose info such as the ":G" event modifier in metrics.
      
        perf test:
      
         - Add basic stress test for sigtrap handling to 'perf test'.
      
         - Fix 'perf test' failures on s/390
      
         - Enable system wide for metricgroups test in 'perf test´.
      
         - Use 3 digits for test numbering now we can have more tests.
      
        Arch specific:
      
         - Add events for Arm Neoverse N2 in the ARM JSON vendor event files
      
         - Support PERF_MEM_LVLNUM encodings in powerpc, that came from a
           single patch series, where I incorrectly merged the kernel bits,
           that were then reverted after coordination with Michael Ellerman
           and Stephen Rothwell.
      
         - Add ARM SPE total latency as PERF_SAMPLE_WEIGHT.
      
         - Update AMD documentation, with info on raw event encoding.
      
         - Add support for global and local variants of the "p_stage_cyc" sort
           key, applicable to perf.data files collected on powerpc.
      
         - Remove duplicate and incorrect aux size checks in the ARM CoreSight
           ETM code.
      
        Refactorings:
      
         - Add a perf_cpu abstraction to disambiguate CPUs and CPU map
           indexes, fixing problems along the way.
      
         - Document CPU map methods.
      
        UAPI sync:
      
         - Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench
           mem memcpy'
      
         - Sync UAPI files with the kernel sources: drm, msr-index,
           cpufeatures.
      
        Build system
      
         - Enable warnings through HOSTCFLAGS.
      
         - Drop requirement for libstdc++.so for libopencsd check
      
        libperf:
      
         - Make libperf adopt perf_counts_values__scale() from tools/perf/util/.
      
         - Add a stat multiplexing test to libperf"
      
      * tag 'perf-tools-for-v5.17-2022-01-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (115 commits)
        perf record: Disable debuginfod by default
        perf evlist: No need to do any affinity setup when profiling pids
        perf cpumap: Add is_dummy() method
        perf metric: Fix metric_leader
        perf cputopo: Fix CPU topology reading on s/390
        perf metricgroup: Fix use after free in metric__new()
        libperf tests: Update a use of the new cpumap API
        perf arm: Fix off-by-one directory path
        tools arch x86: Sync the msr-index.h copy with the kernel sources
        tools headers cpufeatures: Sync with the kernel sources
        tools headers UAPI: Update tools's copy of drm.h header
        tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy'
        perf pmu-events: Don't lower case MetricExpr
        perf expr: Add debug logging for literals
        perf tools: Probe non-deprecated sysfs path 1st
        perf tools: Fix SMT fallback with large core counts
        perf cpumap: Give CPUs their own type
        perf stat: Correct first_shadow_cpu to return index
        perf script: Fix flipped index and cpu
        perf c2c: Use more intention revealing iterator
        ...
      57d17378
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.17-ofs-1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · f0033681
      Linus Torvalds authored
      Pull orangefs fixes from Mike Marshall:
       "Two fixes:
      
         - Fix the size of a memory allocation in orangefs_bufmap_alloc()
           (Christophe JAILLET)
      
         - Use default_groups in kobj_type (Greg KH)"
      
      * tag 'for-linus-5.17-ofs-1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: Fix the size of a memory allocation in orangefs_bufmap_alloc()
        orangefs: use default_groups in kobj_type
      f0033681
    • Srinivas Pandruvada's avatar
      ACPI: DPTF: Support Raptor Lake · a510c78e
      Srinivas Pandruvada authored
      
      
      Add Raptor Lake ACPI IDs for DPTF devices.
      
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a510c78e
    • Rafael J. Wysocki's avatar
      ACPI: CPPC: Drop redundant local variable from cpc_read() · f684b107
      Rafael J. Wysocki authored
      
      
      The ret_val local variable in cpc_read() is not necessary, so
      eliminate it.
      
      No functional impact.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarHuang Rui <ray.huang@amd.com>
      f684b107
    • Rafael J. Wysocki's avatar
      ACPI: CPPC: Fix up I/O port access in cpc_read() · 5f51c7ce
      Rafael J. Wysocki authored
      The code as currently implemented does not work on big endian systems,
      so fix it up.
      
      Fixes: a2c8f92b
      
       ("ACPI: CPPC: Implement support for SystemIO registers")
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://lore.kernel.org/linux-acpi/20220111092928.GA24968@kili/
      
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarHuang Rui <ray.huang@amd.com>
      5f51c7ce
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-pfrut' · e3daa260
      Rafael J. Wysocki authored
      Merge support for the Platform Firmware Runtime Update and Telemetry
      interface based on ACPI.
      
      The interface provided here allows updating certain pieces of the
      platform firmware without restarting the system and collecting
      platform firmware telemetry data.
      
      This also includes a utility for accesing the new interface from user
      space.
      
      * acpi-pfrut:
        ACPI: pfr_telemetry: Fix info leak in pfrt_log_ioctl()
        ACPI: pfr_update: Fix return value check in pfru_write()
        ACPI: tools: Introduce utility for firmware updates/telemetry
        ACPI: Introduce Platform Firmware Runtime Telemetry driver
        ACPI: Introduce Platform Firmware Runtime Update device driver
        efi: Introduce EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER and corresponding structures
      e3daa260
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-x86', 'acpi-tables', 'acpi-soc' and 'acpi-pcc' · ebf8b135
      Rafael J. Wysocki authored
      Merge additional ACPI-related updates for 5.17-rc1:
      
       - Ignore E820 reservations covering PCI host bridge windows on
         sufficiently recent x86 systems to avoid issues with allocating
         PCI BARs on systems where the E820 reservations cover the entire
         PCI host bridge memory window returned by the _CRS object in the
         system's ACPI tables (Hans de Goede).
      
       - Add more sanity checking to ACPI SPCR tables parsing (Mark
         Langsdorf).
      
       - Fix up ACPI APD (AMD Soc) driver initialization (Jiasheng Jiang).
      
       - Drop unnecessary "static" from the ACPI PCC address space handling
         driver added recently (kernel test robot).
      
      * acpi-x86:
        x86/PCI: Ignore E820 reservations for bridge windows on newer systems
      
      * acpi-tables:
        ACPI: SPCR: check if table->serial_port.access_width is too wide
      
      * acpi-soc:
        ACPI: APD: Check for NULL pointer after calling devm_ioremap()
      
      * acpi-pcc:
        ACPI: PCC: pcc_ctx can be static
      ebf8b135
  3. Jan 17, 2022
    • Linus Torvalds's avatar
      Merge tag '5.17-rc-part1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 0c947b89
      Linus Torvalds authored
      Pull cifs updates from Steve French:
      
       - multichannel patches mostly related to improving reconnect behavior
      
       - minor cleanup patches
      
      * tag '5.17-rc-part1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix FILE_BOTH_DIRECTORY_INFO definition
        cifs: move superblock magic defitions to magic.h
        cifs: Fix smb311_update_preauth_hash() kernel-doc comment
        cifs: avoid race during socket reconnect between send and recv
        cifs: maintain a state machine for tcp/smb/tcon sessions
        cifs: fix hang on cifs_get_next_mid()
        cifs: take cifs_tcp_ses_lock for status checks
        cifs: reconnect only the connection and not smb session where possible
        cifs: add WARN_ON for when chan_count goes below minimum
        cifs: adjust DebugData to use chans_need_reconnect for conn status
        cifs: use the chans_need_reconnect bitmap for reconnect status
        cifs: track individual channel status using chans_need_reconnect
        cifs: remove redundant assignment to pointer p
      0c947b89
    • NeilBrown's avatar
      devtmpfs regression fix: reconfigure on each mount · a6097180
      NeilBrown authored
      Prior to Linux v5.4 devtmpfs used mount_single() which treats the given
      mount options as "remount" options, so it updates the configuration of
      the single super_block on each mount.
      
      Since that was changed, the mount options used for devtmpfs are ignored.
      This is a regression which affect systemd - which mounts devtmpfs with
      "-o mode=755,size=4m,nr_inodes=1m".
      
      This patch restores the "remount" effect by calling reconfigure_single()
      
      Fixes: d401727e
      
       ("devtmpfs: don't mix {ramfs,shmem}_fill_super() with mount_single()")
      Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a6097180
    • Linus Torvalds's avatar
      Merge tag 'fbdev-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · 3c750c7b
      Linus Torvalds authored
      Pull fbdev maintainership update from Helge Deller:
       "The fbdev layer is orphaned, but seems to need some care. So I'd like
        to step up as new maintainer"
      
      * tag 'fbdev-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        MAINTAINERS: Add Helge as fbdev maintainer
      3c750c7b
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · b520085c
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
       "Updates to Goodix touchscreen driver (addition of pen support) and
        Silead touchscreen driver (also addition of pen support and parsing of
        embedded firmware to determine screen size), along with assorted fixes
        for other drivers"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: ti_am335x_tsc - fix a typo in a comment
        Input: zinitix - add compatible for bt532
        Input: zinitix - handle proper supply names
        dt-bindings: input/ts/zinitix: Convert to YAML, fix and extend
        Input: axp20x-pek - revert "always register interrupt handlers" change
        Input: gpio-keys - avoid clearing twice some memory
        Input: byd - fix typo in a comment
        Input: ucb1400_ts - remove redundant variable penup
        Input: ti_am335x_tsc - lower the X and Y sampling time
        Input: ti_am335x_tsc - fix STEPCONFIG setup for Z2
        Input: ti_am335x_tsc - set ADCREFM for X configuration
        Input: silead - add pen support
        Input: silead - add support for EFI-embedded fw using different min/max coordinates
        Input: goodix - 2 small fixes for pen support
        Input: goodix - improve gpiod_get() error logging
        Input: goodix - add pen support
        Input: ff-core - correct magnitude setting for rumble compatibility
        Input: palmas-pwrbutton - make a couple of arrays static const
        Input: wacom_i2c - clean up the query device fields
        Input: palmas-pwrbutton - use bitfield helpers
      b520085c
    • Linus Torvalds's avatar
      Merge tag 'i3c/for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux · 4b378951
      Linus Torvalds authored
      Pull i3c updates from Alexandre Belloni:
       "Mostly non urgent fixes and a few improvements (including runtime pm
        suport) to the Silvaco driver"
      
      * tag 'i3c/for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux:
        i3c: master: dw: check return of dw_i3c_master_get_free_pos()
        i3c: master: mipi-i3c-hci: correct the config reference for endianness
        i3c: master: svc: enable the interrupt in the enable ibi function
        i3c: master: svc: add the missing module device table
        i3c: master: svc: add runtime pm support
        i3c: master: svc: set ODSTOP to let I2C device see the STOP signal
        i3c: master: svc: add support for slave to stop returning data
        i3c: master: svc: separate err, fifo and disable interrupt of reset function
        i3c: master: svc: fix atomic issue
        i3c: master: svc: move module reset behind clk enable
        i3c/master/mipi-i3c-hci: Fix a potentially infinite loop in 'hci_dat_v1_get_index()'
        i3c: fix incorrect address slot lookup on 64-bit
        i3c/master/mipi-i3c-hci: Prefer kcalloc over open coded arithmetic
        i3c/master/mipi-i3c-hci: Prefer struct_size over open coded arithmetic
      4b378951
    • Linus Torvalds's avatar
      Merge tag 'ntb-5.17' of git://github.com/jonmason/ntb · 96000bc9
      Linus Torvalds authored
      Pull NTB updates from Jon Mason:
       "New AMD PCI ID for NTB, and a number of bug fixes for ntb_hw_switchtec
        for Linux v5.17"
      
      * tag 'ntb-5.17' of git://github.com/jonmason/ntb:
        ntb_hw_switchtec: Fix a minor issue in config_req_id_table()
        ntb_hw_switchtec: Remove code for disabling ID protection
        ntb_hw_switchtec: Update the way of getting VEP instance ID
        ntb_hw_switchtec: AND with the part_map for a valid tpart_vec
        ntb_hw_switchtec: Fix bug with more than 32 partitions
        ntb_hw_switchtec: Fix pff ioread to read into mmio_part_cfg_all
        ntb_hw_switchtec: fix the spelling of "its"
        NTB/msi: Fix ntbm_msi_request_threaded_irq() kernel-doc comment
        ntb_hw_amd: Add NTB PCI ID for new gen CPU
      96000bc9
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.17-rc1' of git://www.linux-watchdog.org/linux-watchdog · 2225acc3
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - New device support:
           - Watchdog Timer driver for RZ/G2L
           - Realtek Otto watchdog timer
           - Apple SoC watchdog driver
           - Fintek F81966
      
       - Remove BCM63XX_WDT after support for this SoC was added to
         BCM7038_WDT
      
       - Improvements of the BCM7038_WDT and s3c2410_wdt code
      
       - Several other fixes and improvements
      
      * tag 'linux-watchdog-5.17-rc1' of git://www.linux-watchdog.org/linux-watchdog: (38 commits)
        watchdog: msc313e: Check if the WDT was running at boot
        watchdog: Add Apple SoC watchdog driver
        dt-bindings: watchdog: Add SM6350 and SM8250 compatible
        watchdog: s3c2410: Fix getting the optional clock
        watchdog: s3c2410: Use platform_get_irq() to get the interrupt
        dt-bindings: watchdog: atmel: Add missing 'interrupts' property
        watchdog: mtk_wdt: use platform_get_irq_optional
        watchdog: Add Watchdog Timer driver for RZ/G2L
        dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
        watchdog: da9063: Add hard dependency on I2C
        watchdog: Add Realtek Otto watchdog timer
        dt-bindings: watchdog: Realtek Otto WDT binding
        watchdog: s3c2410: Add Exynos850 support
        watchdog: da9063: use atomic safe i2c transfer in reset handler
        watchdog: davinci: Use div64_ul instead of do_div
        watchdog: Remove BCM63XX_WDT
        MIPS: BCM63XX: Provide platform data to watchdog device
        watchdog: bcm7038_wdt: Add platform device id for bcm63xx-wdt
        watchdog: Allow building BCM7038_WDT for BCM63XX
        watchdog: bcm7038_wdt: Support platform data configuration
        ...
      2225acc3
    • Linus Torvalds's avatar
      Merge branch 'for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · b70b878c
      Linus Torvalds authored
      Pull coccinelle updates from Julia Lawall:
       "Remove some semantic patches and remove a maintainer.
      
        Qing Wang <wangqing@vivo.com> reported that fen.cocci mostly finds
        false positives, so it is dropped.
        scripts/coccinelle/iterators/for_each_child.cocci also subsumes it, in
        a more correct way.
      
        Matthew Wilcox <willy@infradead.org> reported that bugon.cocci mostly
        gives false positives. It is an old script and was designed to be
        inaccurate to maximally cover problems, but most of what it is useful
        for has been done already.
      
        Gilles Muller passed away and is thus dropped from the maintainers
        list"
      
      * 'for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        drop fen.cocci
        scripts/coccinelle: drop bugon.cocci
        MAINTAINERS: remove Gilles Muller
      b70b878c
    • Linus Torvalds's avatar
      Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · 763978ca
      Linus Torvalds authored
      Pull module updates from Luis Chamberlain:
       "The biggest change here is in-kernel support for module decompression.
        This change is being made to help support LSMs like LoadPin as
        otherwise it loses link between the source of kernel module on the
        disk and binary blob that is being loaded into the kernel.
      
        kmod decompression is still done by userspace even with this is done,
        both because there are no measurable gains in not doing so and as it
        adds a secondary extra check for validating the module before loading
        it into the kernel.
      
        The rest of the changes are minor, the only other change worth
        mentionin there is Jessica Yu is now bowing out of maintenance of
        modules as she's taking a break from work.
      
        While there were other changes posted for modules, those have not yet
        received much review of testing so I'm not yet comfortable in merging
        any of those changes yet."
      
      * 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        module: fix signature check failures when using in-kernel decompression
        kernel: Fix spelling mistake "compresser" -> "compressor"
        MAINTAINERS: add mailing lists for kmod and modules
        module.h: allow #define strings to work with MODULE_IMPORT_NS
        module: add in-kernel support for decompressing
        MAINTAINERS: Remove myself as modules maintainer
        module: Remove outdated comment
      763978ca
    • Linus Torvalds's avatar
      unicode: fix .gitignore for generated utfdata file · 98f23457
      Linus Torvalds authored
      Commit 2b3d0478 ("unicode: Add utf8-data module") changed the
      generated utf8data file from 'utf8data.h' to 'utf8data.c', but didn't
      change the comments or the .gitignore to match.
      
      The comments should be updated too, but at least they don't cause any
      visible breakage.  But the gitignore file needs changing to avoid git
      complaining about untracked files.
      
      Fixes: 2b3d0478
      
       ("unicode: Add utf8-data module")
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      98f23457
    • Linus Torvalds's avatar
      Merge branch 'signal-for-v5.17' of... · 35ce8ae9
      Linus Torvalds authored
      Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull signal/exit/ptrace updates from Eric Biederman:
       "This set of changes deletes some dead code, makes a lot of cleanups
        which hopefully make the code easier to follow, and fixes bugs found
        along the way.
      
        The end-game which I have not yet reached yet is for fatal signals
        that generate coredumps to be short-circuit deliverable from
        complete_signal, for force_siginfo_to_task not to require changing
        userspace configured signal delivery state, and for the ptrace stops
        to always happen in locations where we can guarantee on all
        architectures that the all of the registers are saved and available on
        the stack.
      
        Removal of profile_task_ext, profile_munmap, and profile_handoff_task
        are the big successes for dead code removal this round.
      
        A bunch of small bug fixes are included, as most of the issues
        reported were small enough that they would not affect bisection so I
        simply added the fixes and did not fold the fixes into the changes
        they were fixing.
      
        There was a bug that broke coredumps piped to systemd-coredump. I
        dropped the change that caused that bug and replaced it entirely with
        something much more restrained. Unfortunately that required some
        rebasing.
      
        Some successes after this set of changes: There are few enough calls
        to do_exit to audit in a reasonable amount of time. The lifetime of
        struct kthread now matches the lifetime of struct task, and the
        pointer to struct kthread is no longer stored in set_child_tid. The
        flag SIGNAL_GROUP_COREDUMP is removed. The field group_exit_task is
        removed. Issues where task->exit_code was examined with
        signal->group_exit_code should been examined were fixed.
      
        There are several loosely related changes included because I am
        cleaning up and if I don't include them they will probably get lost.
      
        The original postings of these changes can be found at:
           https://lkml.kernel.org/r/87a6ha4zsd.fsf@email.froward.int.ebiederm.org
           https://lkml.kernel.org/r/87bl1kunjj.fsf@email.froward.int.ebiederm.org
           https://lkml.kernel.org/r/87r19opkx1.fsf_-_@email.froward.int.ebiederm.org
      
        I trimmed back the last set of changes to only the obviously correct
        once. Simply because there was less time for review than I had hoped"
      
      * 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: (44 commits)
        ptrace/m68k: Stop open coding ptrace_report_syscall
        ptrace: Remove unused regs argument from ptrace_report_syscall
        ptrace: Remove second setting of PT_SEIZED in ptrace_attach
        taskstats: Cleanup the use of task->exit_code
        exit: Use the correct exit_code in /proc/<pid>/stat
        exit: Fix the exit_code for wait_task_zombie
        exit: Coredumps reach do_group_exit
        exit: Remove profile_handoff_task
        exit: Remove profile_task_exit & profile_munmap
        signal: clean up kernel-doc comments
        signal: Remove the helper signal_group_exit
        signal: Rename group_exit_task group_exec_task
        coredump: Stop setting signal->group_exit_task
        signal: Remove SIGNAL_GROUP_COREDUMP
        signal: During coredumps set SIGNAL_GROUP_EXIT in zap_process
        signal: Make coredump handling explicit in complete_signal
        signal: Have prepare_signal detect coredumps using signal->core_state
        signal: Have the oom killer detect coredumps using signal->core_state
        exit: Move force_uaccess back into do_exit
        exit: Guarantee make_task_dead leaks the tsk when calling do_task_exit
        ...
      35ce8ae9
    • Linus Torvalds's avatar
      Merge tag 'unicode-for-next-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode · 6661224e
      Linus Torvalds authored
      Pull unicode updates from Gabriel Krisman Bertazi:
       "This includes patches from Christoph Hellwig to split the large data
        tables of the unicode subsystem into a loadable module, which allow
        users to not have them around if case-insensitive filesystems are not
        to be used. It also includes minor code fixes to unicode and its
        users, from the same author.
      
        All the patches here have been on linux-next releases for the past
        months"
      
      * tag 'unicode-for-next-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode:
        unicode: only export internal symbols for the selftests
        unicode: Add utf8-data module
        unicode: cache the normalization tables in struct unicode_map
        unicode: move utf8cursor to utf8-selftest.c
        unicode: simplify utf8len
        unicode: remove the unused utf8{,n}age{min,max} functions
        unicode: pass a UNICODE_AGE() tripple to utf8_load
        unicode: mark the version field in struct unicode_map unsigned
        unicode: remove the charset field from struct unicode_map
        f2fs: simplify f2fs_sb_read_encoding
        ext4: simplify ext4_sb_read_encoding
      6661224e
  4. Jan 16, 2022
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 79e06c4c
      Linus Torvalds authored
      Pull kvm updates from Paolo Bonzini:
       "RISCV:
      
         - Use common KVM implementation of MMU memory caches
      
         - SBI v0.2 support for Guest
      
         - Initial KVM selftests support
      
         - Fix to avoid spurious virtual interrupts after clearing hideleg CSR
      
         - Update email address for Anup and Atish
      
        ARM:
      
         - Simplification of the 'vcpu first run' by integrating it into KVM's
           'pid change' flow
      
         - Refactoring of the FP and SVE state tracking, also leading to a
           simpler state and less shared data between EL1 and EL2 in the nVHE
           case
      
         - Tidy up the header file usage for the nvhe hyp object
      
         - New HYP unsharing mechanism, finally allowing pages to be unmapped
           from the Stage-1 EL2 page-tables
      
         - Various pKVM cleanups around refcounting and sharing
      
         - A couple of vgic fixes for bugs that would trigger once the vcpu
           xarray rework is merged, but not sooner
      
         - Add minimal support for ARMv8.7's PMU extension
      
         - Rework kvm_pgtable initialisation ahead of the NV work
      
         - New selftest for IRQ injection
      
         - Teach selftests about the lack of default IPA space and page sizes
      
         - Expand sysreg selftest to deal with Pointer Authentication
      
         - The usual bunch of cleanups and doc update
      
        s390:
      
         - fix sigp sense/start/stop/inconsistency
      
         - cleanups
      
        x86:
      
         - Clean up some function prototypes more
      
         - improved gfn_to_pfn_cache with proper invalidation, used by Xen
           emulation
      
         - add KVM_IRQ_ROUTING_XEN_EVTCHN and event channel delivery
      
         - completely remove potential TOC/TOU races in nested SVM consistency
           checks
      
         - update some PMCs on emulated instructions
      
         - Intel AMX support (joint work between Thomas and Intel)
      
         - large MMU cleanups
      
         - module parameter to disable PMU virtualization
      
         - cleanup register cache
      
         - first part of halt handling cleanups
      
         - Hyper-V enlightened MSR bitmap support for nested hypervisors
      
        Generic:
      
         - clean up Makefiles
      
         - introduce CONFIG_HAVE_KVM_DIRTY_RING
      
         - optimize memslot lookup using a tree
      
         - optimize vCPU array usage by converting to xarray"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (268 commits)
        x86/fpu: Fix inline prefix warnings
        selftest: kvm: Add amx selftest
        selftest: kvm: Move struct kvm_x86_state to header
        selftest: kvm: Reorder vcpu_load_state steps for AMX
        kvm: x86: Disable interception for IA32_XFD on demand
        x86/fpu: Provide fpu_sync_guest_vmexit_xfd_state()
        kvm: selftests: Add support for KVM_CAP_XSAVE2
        kvm: x86: Add support for getting/setting expanded xstate buffer
        x86/fpu: Add uabi_size to guest_fpu
        kvm: x86: Add CPUID support for Intel AMX
        kvm: x86: Add XCR0 support for Intel AMX
        kvm: x86: Disable RDMSR interception of IA32_XFD_ERR
        kvm: x86: Emulate IA32_XFD_ERR for guest
        kvm: x86: Intercept #NM for saving IA32_XFD_ERR
        x86/fpu: Prepare xfd_err in struct fpu_guest
        kvm: x86: Add emulation for IA32_XFD
        x86/fpu: Provide fpu_update_guest_xfd() for IA32_XFD emulation
        kvm: x86: Enable dynamic xfeatures at KVM_SET_CPUID2
        x86/fpu: Provide fpu_enable_guest_xfd_features() for KVM
        x86/fpu: Add guest support to xfd_enable_feature()
        ...
      79e06c4c
    • Linus Torvalds's avatar
      Merge tag 'hyperv-next-signed-20220114' of... · cb3f09f9
      Linus Torvalds authored
      Merge tag 'hyperv-next-signed-20220114' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull hyperv updates from Wei Liu:
      
       - More patches for Hyper-V isolation VM support (Tianyu Lan)
      
       - Bug fixes and clean-up patches from various people
      
      * tag 'hyperv-next-signed-20220114' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        scsi: storvsc: Fix storvsc_queuecommand() memory leak
        x86/hyperv: Properly deal with empty cpumasks in hyperv_flush_tlb_multi()
        Drivers: hv: vmbus: Initialize request offers message for Isolation VM
        scsi: storvsc: Fix unsigned comparison to zero
        swiotlb: Add CONFIG_HAS_IOMEM check around swiotlb_mem_remap()
        x86/hyperv: Fix definition of hv_ghcb_pg variable
        Drivers: hv: Fix definition of hypercall input & output arg variables
        net: netvsc: Add Isolation VM support for netvsc driver
        scsi: storvsc: Add Isolation VM support for storvsc driver
        hyper-v: Enable swiotlb bounce buffer for Isolation VM
        x86/hyper-v: Add hyperv Isolation VM check in the cc_platform_has()
        swiotlb: Add swiotlb bounce buffer remap function for HV IVM
      cb3f09f9
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 4d66020d
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
       "New:
      
         - The Real Time Linux Analysis (RTLA) tool is added to the tools
           directory.
      
         - Can safely filter on user space pointers with: field.ustring ~
           "match-string"
      
         - eprobes can now be filtered like any other event.
      
         - trace_marker(_raw) now uses stream_open() to allow multiple threads
           to safely write to it. Note, this could possibly break existing
           user space, but we will not know until we hear about it, and then
           can revert the change if need be.
      
         - New field in events to display when bottom halfs are disabled.
      
         - Sorting of the ftrace functions are now done at compile time
           instead of at bootup.
      
        Infrastructure changes to support future efforts:
      
         - Added __rel_loc type for trace events. Similar to __data_loc but
           the offset to the dynamic data is based off of the location of the
           descriptor and not the beginning of the event. Needed for user
           defined events.
      
         - Some simplification of event trigger code.
      
         - Make synthetic events process its callback better to not hinder
           other event callbacks that are registered. Needed for user defined
           events.
      
        And other small fixes and cleanups"
      
      * tag 'trace-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (50 commits)
        tracing: Add ustring operation to filtering string pointers
        rtla: Add rtla timerlat hist documentation
        rtla: Add rtla timerlat top documentation
        rtla: Add rtla timerlat documentation
        rtla: Add rtla osnoise hist documentation
        rtla: Add rtla osnoise top documentation
        rtla: Add rtla osnoise man page
        rtla: Add Documentation
        rtla/timerlat: Add timerlat hist mode
        rtla: Add timerlat tool and timelart top mode
        rtla/osnoise: Add the hist mode
        rtla/osnoise: Add osnoise top mode
        rtla: Add osnoise tool
        rtla: Helper functions for rtla
        rtla: Real-Time Linux Analysis tool
        tracing/osnoise: Properly unhook events if start_per_cpu_kthreads() fails
        tracing: Remove duplicate warnings when calling trace_create_file()
        tracing/kprobes: 'nmissed' not showed correctly for kretprobe
        tracing: Add test for user space strings when filtering on string pointers
        tracing: Have syscall trace events use trace_event_buffer_lock_reserve()
        ...
      4d66020d
    • Linus Torvalds's avatar
      Merge tag 'livepatching-for-5.17' of... · 77dbd72b
      Linus Torvalds authored
      Merge tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
      
      Pull livepatching updates from Petr Mladek:
      
       - Correctly handle kobjects when a livepatch init fails
      
       - Avoid CPU hogging when searching for many livepatched symbols
      
       - Add livepatch API page into documentation
      
      * tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
        livepatch: Avoid CPU hogging with cond_resched
        livepatch: Fix missing unlock on error in klp_enable_patch()
        livepatch: Fix kobject refcount bug on klp_init_patch_early failure path
        Documentation: livepatch: Add livepatch API page
      77dbd72b
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · d0a231f0
      Linus Torvalds authored
      Pull pci updates from Bjorn Helgaas:
       "Enumeration:
         - Use pci_find_vsec_capability() instead of open-coding it (Andy
           Shevchenko)
         - Convert pci_dev_present() stub from macro to static inline to avoid
           'unused variable' errors (Hans de Goede)
         - Convert sysfs slot attributes from default_attrs to default_groups
           (Greg Kroah-Hartman)
         - Use DWORD accesses for LTR, L1 SS to avoid BayHub OZ711LV2 erratum
           (Rajat Jain)
         - Remove unnecessary initialization of static variables (Longji Guo)
      
        Resource management:
         - Always write Intel I210 ROM BAR on update to work around device
           defect (Bjorn Helgaas)
      
        PCIe native device hotplug:
         - Fix pciehp lockdep errors on Thunderbolt undock (Hans de Goede)
         - Fix infinite loop in pciehp IRQ handler on power fault (Lukas
           Wunner)
      
        Power management:
         - Convert amd64-agp, sis-agp, via-agp from legacy PCI power
           management to generic power management (Vaibhav Gupta)
      
        IOMMU:
         - Add function 1 DMA alias quirk for Marvell 88SE9125 SATA controller
           so it can work with an IOMMU (Yifeng Li)
      
        Error handling:
         - Add PCI_ERROR_RESPONSE and related definitions for signaling and
           checking for transaction errors on PCI (Naveen Naidu)
         - Fabricate PCI_ERROR_RESPONSE data (~0) in config read wrappers,
           instead of in host controller drivers, when transactions fail on
           PCI (Naveen Naidu)
         - Use PCI_POSSIBLE_ERROR() to check for possible failure of config
           reads (Naveen Naidu)
      
        Peer-to-peer DMA:
         - Add Logan Gunthorpe as P2PDMA maintainer (Bjorn Helgaas)
      
        ASPM:
         - Calculate link L0s and L1 exit latencies when needed instead of
           caching them (Saheed O. Bolarinwa)
         - Calculate device L0s and L1 acceptable exit latencies when needed
           instead of caching them (Saheed O. Bolarinwa)
         - Remove struct aspm_latency since it's no longer needed (Saheed O.
           Bolarinwa)
      
        APM X-Gene PCIe controller driver:
         - Fix IB window setup, which was broken by the fact that IB resources
           are now sorted in address order instead of DT dma-ranges order (Rob
           Herring)
      
        Apple PCIe controller driver:
         - Enable clock gating to save power (Hector Martin)
         - Fix REFCLK1 enable/poll logic (Hector Martin)
      
        Broadcom STB PCIe controller driver:
         - Declare bitmap correctly for use by bitmap interfaces (Christophe
           JAILLET)
         - Clean up computation of legacy and non-legacy MSI bitmasks (Florian
           Fainelli)
         - Update suspend/resume/remove error handling to warn about errors
           and not fail the operation (Jim Quinlan)
         - Correct the "pcie" and "msi" interrupt descriptions in DT binding
           (Jim Quinlan)
         - Add DT bindings for endpoint voltage regulators (Jim Quinlan)
         - Split brcm_pcie_setup() into two functions (Jim Quinlan)
         - Add mechanism for turning on voltage regulators for connected
           devices (Jim Quinlan)
         - Turn voltage regulators for connected devices on/off when bus is
           added or removed (Jim Quinlan)
         - When suspending, don't turn off voltage regulators for wakeup
           devices (Jim Quinlan)
      
        Freescale i.MX6 PCIe controller driver:
         - Add i.MX8MM support (Richard Zhu)
      
        Freescale Layerscape PCIe controller driver:
         - Use DWC common ops instead of layerscape-specific link-up functions
           (Hou Zhiqiang)
      
        Intel VMD host bridge driver:
         - Honor platform ACPI _OSC feature negotiation for Root Ports below
           VMD (Kai-Heng Feng)
         - Add support for Raptor Lake SKUs (Karthik L Gopalakrishnan)
         - Reset everything below VMD before enumerating to work around
           failure to enumerate NVMe devices when guest OS reboots (Nirmal
           Patel)
      
        Bridge emulation (used by Marvell Aardvark and MVEBU):
         - Make emulated ROM BAR read-only by default (Pali Rohár)
         - Make some emulated legacy PCI bits read-only for PCIe devices (Pali
           Rohár)
         - Update reserved bits in emulated PCIe Capability (Pali Rohár)
         - Allow drivers to emulate different PCIe Capability versions (Pali
           Rohár)
         - Set emulated Capabilities List bit for all PCIe devices, since they
           must have at least a PCIe Capability (Pali Rohár)
      
        Marvell Aardvark PCIe controller driver:
         - Add bridge emulation definitions for PCIe DEVCAP2, DEVCTL2,
           DEVSTA2, LNKCAP2, LNKCTL2, LNKSTA2, SLTCAP2, SLTCTL2, SLTSTA2 (Pali
           Rohár)
         - Add aardvark support for DEVCAP2, DEVCTL2, LNKCAP2 and LNKCTL2
           registers (Pali Rohár)
         - Clear all MSIs at setup to avoid spurious interrupts (Pali Rohár)
         - Disable bus mastering when unbinding host controller driver (Pali
           Rohár)
         - Mask all interrupts when unbinding host controller driver (Pali
           Rohár)
         - Fix memory leak in host controller unbind (Pali Rohár)
         - Assert PERST# when unbinding host controller driver (Pali Rohár)
         - Disable link training when unbinding host controller driver (Pali
           Rohár)
         - Disable common PHY when unbinding host controller driver (Pali
           Rohár)
         - Fix resource type checking to check only IORESOURCE_MEM, not
           IORESOURCE_MEM_64, which is a flavor of IORESOURCE_MEM (Pali Rohár)
      
        Marvell MVEBU PCIe controller driver:
         - Implement pci_remap_iospace() for ARM so mvebu can use
           devm_pci_remap_iospace() instead of the previous ARM-specific
           pci_ioremap_io() interface (Pali Rohár)
         - Use the standard pci_host_probe() instead of the device-specific
           mvebu_pci_host_probe() (Pali Rohár)
         - Replace all uses of ARM-specific pci_ioremap_io() with the ARM
           implementation of the standard pci_remap_iospace() interface and
           remove pci_ioremap_io() (Pali Rohár)
         - Skip initializing invalid Root Ports (Pali Rohár)
         - Check for errors from pci_bridge_emul_init() (Pali Rohár)
         - Ignore any bridges at non-zero function numbers (Pali Rohár)
         - Return ~0 data for invalid config read size (Pali Rohár)
         - Disallow mapping interrupts on emulated bridges (Pali Rohár)
         - Clear Root Port Memory & I/O Space Enable and Bus Master Enable at
           initialization (Pali Rohár)
         - Make type bits in Root Port I/O Base register read-only (Pali
           Rohár)
         - Disable Root Port windows when base/limit set to invalid values
           (Pali Rohár)
         - Set controller to Root Complex mode (Pali Rohár)
         - Set Root Port Class Code to PCI Bridge (Pali Rohár)
         - Update emulated Root Port secondary bus numbers to better reflect
           the actual topology (Pali Rohár)
         - Add PCI_BRIDGE_CTL_BUS_RESET support to emulated Root Ports so
           pci_reset_secondary_bus() can reset connected devices (Pali Rohár)
         - Add PCI_EXP_DEVCTL Error Reporting Enable support to emulated Root
           Ports (Pali Rohár)
         - Add PCI_EXP_RTSTA PME Status bit support to emulated Root Ports
           (Pali Rohár)
         - Add DEVCAP2, DEVCTL2 and LNKCTL2 support to emulated Root Ports on
           Armada XP and newer devices (Pali Rohár)
         - Export mvebu-mbus.c symbols to allow pci-mvebu.c to be a module
           (Pali Rohár)
         - Add support for compiling as a module (Pali Rohár)
      
        MediaTek PCIe controller driver:
         - Assert PERST# for 100ms to allow power and clock to stabilize
           (qizhong cheng)
      
        MediaTek PCIe Gen3 controller driver:
         - Disable Mediatek DVFSRC voltage request since lack of DVFSRC to
           respond to the request causes failure to exit L1 PM Substate
           (Jianjun Wang)
      
        MediaTek MT7621 PCIe controller driver:
         - Declare mt7621_pci_ops static (Sergio Paracuellos)
         - Give pcibios_root_bridge_prepare() access to host bridge windows
           (Sergio Paracuellos)
         - Move MIPS I/O coherency unit setup from driver to
           pcibios_root_bridge_prepare() (Sergio Paracuellos)
         - Add missing MODULE_LICENSE() (Sergio Paracuellos)
         - Allow COMPILE_TEST for all arches (Sergio Paracuellos)
      
        Microsoft Hyper-V host bridge driver:
         - Add hv-internal interfaces to encapsulate arch IRQ dependencies
           (Sunil Muthuswamy)
         - Add arm64 Hyper-V vPCI support (Sunil Muthuswamy)
      
        Qualcomm PCIe controller driver:
         - Undo PM setup in qcom_pcie_probe() error handling path (Christophe
           JAILLET)
         - Use __be16 type to store return value from cpu_to_be16()
           (Manivannan Sadhasivam)
         - Constify static dw_pcie_ep_ops (Rikard Falkeborn)
      
        Renesas R-Car PCIe controller driver:
         - Fix aarch32 abort handler so it doesn't check the wrong bus clock
           before accessing the host controller (Marek Vasut)
      
        TI Keystone PCIe controller driver:
         - Add register offset for ti,syscon-pcie-id and ti,syscon-pcie-mode
           DT properties (Kishon Vijay Abraham I)
      
        MicroSemi Switchtec management driver:
         - Add Gen4 automotive device IDs (Kelvin Cao)
         - Declare state_names[] as static so it's not allocated and
           initialized for every call (Kelvin Cao)
      
        Host controller driver cleanups:
         - Use of_device_get_match_data(), not of_match_device(), when we only
           need the device data in altera, artpec6, cadence, designware-plat,
           dra7xx, keystone, kirin (Fan Fei)
         - Drop pointless of_device_get_match_data() cast in j721e (Bjorn
           Helgaas)
         - Drop redundant struct device * from j721e since struct cdns_pcie
           already has one (Bjorn Helgaas)
         - Rename driver structs to *_pcie in intel-gw, iproc, ls-gen4,
           mediatek-gen3, microchip, mt7621, rcar-gen2, tegra194, uniphier,
           xgene, xilinx, xilinx-cpm for consistency across drivers (Fan Fei)
         - Fix invalid address space conversions in hisi, spear13xx (Bjorn
           Helgaas)
      
        Miscellaneous:
         - Sort Intel Device IDs by value (Andy Shevchenko)
         - Change Capability offsets to hex to match spec (Baruch Siach)
         - Correct misspellings (Krzysztof Wilczyński)
         - Terminate statement with semicolon in pci_endpoint_test.c (Ming
           Wang)"
      
      * tag 'pci-v5.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (151 commits)
        PCI: mt7621: Allow COMPILE_TEST for all arches
        PCI: mt7621: Add missing MODULE_LICENSE()
        PCI: mt7621: Move MIPS setup to pcibios_root_bridge_prepare()
        PCI: Let pcibios_root_bridge_prepare() access bridge->windows
        PCI: mt7621: Declare mt7621_pci_ops static
        PCI: brcmstb: Do not turn off WOL regulators on suspend
        PCI: brcmstb: Add control of subdevice voltage regulators
        PCI: brcmstb: Add mechanism to turn on subdev regulators
        PCI: brcmstb: Split brcm_pcie_setup() into two funcs
        dt-bindings: PCI: Add bindings for Brcmstb EP voltage regulators
        dt-bindings: PCI: Correct brcmstb interrupts, interrupt-map.
        PCI: brcmstb: Fix function return value handling
        PCI: brcmstb: Do not use __GENMASK
        PCI: brcmstb: Declare 'used' as bitmap, not unsigned long
        PCI: hv: Add arm64 Hyper-V vPCI support
        PCI: hv: Make the code arch neutral by adding arch specific interfaces
        PCI: pciehp: Use down_read/write_nested(reset_lock) to fix lockdep errors
        x86/PCI: Remove initialization of static variables to false
        PCI: Use DWORD accesses for LTR, L1 SS to avoid erratum
        misc: pci_endpoint_test: Terminate statement with semicolon
        ...
      d0a231f0
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 88db8458
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - Fix ->i_blocks truncation issue that still exists elsewhere.
      
       - Four cleanups & typos fixes.
      
       - Move super block magic number to magic.h
      
       - Fix missing REQ_SYNC in exfat_update_bhs().
      
      * tag 'exfat-for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: fix missing REQ_SYNC in exfat_update_bhs()
        exfat: remove argument 'sector' from exfat_get_dentry()
        exfat: move super block magic number to magic.h
        exfat: fix i_blocks for files truncated over 4 GiB
        exfat: reuse exfat_inode_info variable instead of calling EXFAT_I()
        exfat: make exfat_find_location() static
        exfat: fix typos in comments
        exfat: simplify is_valid_cluster()
      88db8458
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · 175398a0
      Linus Torvalds authored
      Pull nfsd updates from Chuck Lever:
       "Bruce has announced he is leaving Red Hat at the end of the month and
        is stepping back from his role as NFSD co-maintainer. As a result,
        this includes a patch removing him from the MAINTAINERS file.
      
        There is one patch in here that Jeff Layton was carrying in the locks
        tree. Since he had only one for this cycle, he asked us to send it to
        you via the nfsd tree.
      
        There continues to be 0-day reports from Robert Morris @MIT. This time
        we include a fix for a crash in the COPY_NOTIFY operation.
      
        Highlights:
         - Bruce steps down as NFSD maintainer
         - Prepare for dynamic nfsd thread management
         - More work on supporting re-exporting NFS mounts
         - One fs/locks patch on behalf of Jeff Layton
      
        Notable bug fixes:
         - Fix zero-length NFSv3 WRITEs
         - Fix directory cinfo on FS's that do not support iversion
         - Fix WRITE verifiers for stable writes
         - Fix crash on COPY_NOTIFY with a special state ID"
      
      * tag 'nfsd-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: (51 commits)
        SUNRPC: Fix sockaddr handling in svcsock_accept_class trace points
        SUNRPC: Fix sockaddr handling in the svc_xprt_create_error trace point
        fs/locks: fix fcntl_getlk64/fcntl_setlk64 stub prototypes
        nfsd: fix crash on COPY_NOTIFY with special stateid
        MAINTAINERS: remove bfields
        NFSD: Move fill_pre_wcc() and fill_post_wcc()
        Revert "nfsd: skip some unnecessary stats in the v4 case"
        NFSD: Trace boot verifier resets
        NFSD: Rename boot verifier functions
        NFSD: Clean up the nfsd_net::nfssvc_boot field
        NFSD: Write verifier might go backwards
        nfsd: Add a tracepoint for errors in nfsd4_clone_file_range()
        NFSD: De-duplicate net_generic(nf->nf_net, nfsd_net_id)
        NFSD: De-duplicate net_generic(SVC_NET(rqstp), nfsd_net_id)
        NFSD: Clean up nfsd_vfs_write()
        nfsd: Replace use of rwsem with errseq_t
        NFSD: Fix verifier returned in stable WRITEs
        nfsd: Retry once in nfsd_open on an -EOPENSTALE return
        nfsd: Add errno mapping for EREMOTEIO
        nfsd: map EBADF
        ...
      175398a0
    • Linus Torvalds's avatar
      Merge tag '9p-for-5.17-rc1' of git://github.com/martinetd/linux · 49ad227d
      Linus Torvalds authored
      Pull 9p updates from Dominique Martinet:
       "Fixes, split 9p_net_fd, and new reviewer:
      
         - fix possible uninitialized memory usage for setattr
      
         - fix fscache reading hole in a file just after it's been grown
      
         - split net/9p/trans_fd.c in its own module like other transports.
      
           The new transport module defaults to 9P_NET and is autoloaded if
           required so users should not be impacted
      
         - add Christian Schoenebeck to 9p reviewers
      
         - some more trivial cleanup"
      
      * tag '9p-for-5.17-rc1' of git://github.com/martinetd/linux:
        9p: fix enodata when reading growing file
        net/9p: show error message if user 'msize' cannot be satisfied
        MAINTAINERS: 9p: add Christian Schoenebeck as reviewer
        9p: only copy valid iattrs in 9P2000.L setattr implementation
        9p: Use BUG_ON instead of if condition followed by BUG.
        net/p9: load default transports
        9p/xen: autoload when xenbus service is available
        9p/trans_fd: split into dedicated module
        fs: 9p: remove unneeded variable
        9p/trans_virtio: Fix typo in the comment for p9_virtio_create()
      49ad227d
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2022-01-14' of git://anongit.freedesktop.org/drm/drm · 59d41458
      Linus Torvalds authored
      Pull drm fixes from Daniel Vetter:
      "drivers fixes:
      
         - i915 fixes for ttm backend + one pm wakelock fix
      
         - amdgpu fixes, fairly big pile of small things all over. Note this
           doesn't yet containe the fixed version of the otg sync patch that
           blew up
      
         - small driver fixes: meson, sun4i, vga16fb probe fix
      
        drm core fixes:
      
         - cma-buf heap locking
      
         - ttm compilation
      
         - self refresh helper state check
      
         - wrong error message in atomic helpers
      
         - mipi-dbi buffer mapping"
      
      * tag 'drm-next-2022-01-14' of git://anongit.freedesktop.org/drm/drm: (49 commits)
        drm/mipi-dbi: Fix source-buffer address in mipi_dbi_buf_copy
        drm: fix error found in some cases after the patch d1af5cd86997
        drm/ttm: fix compilation on ARCH=um
        dma-buf: cma_heap: Fix mutex locking section
        video: vga16fb: Only probe for EGA and VGA 16 color graphic cards
        drm/amdkfd: Fix ASIC name typos
        drm/amdkfd: Fix DQM asserts on Hawaii
        drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2
        drm/amd/pm: only send GmiPwrDnControl msg on master die (v3)
        drm/amdgpu: use spin_lock_irqsave to avoid deadlock by local interrupt
        drm/amdgpu: not return error on the init_apu_flags
        drm/amdkfd: Use prange->update_list head for remove_list
        drm/amdkfd: Use prange->list head for insert_list
        drm/amdkfd: make SPDX License expression more sound
        drm/amdkfd: Check for null pointer after calling kmemdup
        drm/amd/display: invalid parameter check in dmub_hpd_callback
        Revert "drm/amdgpu: Don't inherit GEM object VMAs in child process"
        drm/amd/display: reset dcn31 SMU mailbox on failures
        drm/amdkfd: use default_groups in kobj_type
        drm/amdgpu: use default_groups in kobj_type
        ...
      59d41458
    • Linus Torvalds's avatar
      Merge tag 'memblock-v5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · 2aab34f8
      Linus Torvalds authored
      Pull memblock cleanup from Mike Rapoport:
       "Remove #ifdef __KERNEL__ from memblock.h
      
        memblock.h is not a uAPI header, so __KERNEL__ guard can be deleted"
      
      * tag 'memblock-v5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: Remove #ifdef __KERNEL__ from memblock.h
      2aab34f8
    • Jiri Olsa's avatar
      perf record: Disable debuginfod by default · 9bce13ea
      Jiri Olsa authored
      Fedora 35 sets DEBUGINFOD_URLS by default, which might lead to
      unexpected stalls in perf record exit path, when we try to cache
      profiled binaries.
      
        # DEBUGINFOD_PROGRESS=1 ./perf record -a
        ^C[ perf record: Woken up 1 times to write data ]
        Downloading from https://debuginfod.fedoraproject.org/ 447069
        Downloading from https://debuginfod.fedoraproject.org/ 1502175
        Downloading \^Z
      
      Disabling DEBUGINFOD_URLS by default in perf record and adding
      debuginfod option and .perfconfig variable support to enable id.
      
        Default without debuginfo processing:
        # perf record -a
      
        Using system debuginfod setup:
        # perf record -a --debuginfod
      
        Using custom debuginfd url:
        # perf record -a --debuginfod='https://evenbetterdebuginfodserver.krava
      
      '
      
      Adding single perf_debuginfod_setup function and using
      it also in perf buildid-cache command.
      
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Frank Ch. Eigler <fche@redhat.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20211209200425.303561-1-jolsa@kernel.org
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9bce13ea
    • Arnaldo Carvalho de Melo's avatar
      perf evlist: No need to do any affinity setup when profiling pids · 2eea0b56
      Arnaldo Carvalho de Melo authored
      
      
      The cpumap is dummy, so no need to go on figuring out affinity.o
      
      This way we reduce the setup time for simple scenarios like:
      
      	$ perf stat sleep 1
      
      Acked-by: default avatarAndi Kleen <andi@firstfloor.org>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2eea0b56
    • Arnaldo Carvalho de Melo's avatar
      perf cpumap: Add is_dummy() method · 37be5858
      Arnaldo Carvalho de Melo authored
      
      
      Needed to check if a cpu_map is dummy, i.e. not a cpu map at all, for
      pid monitoring scenarios.
      
      This probably needs to move to libperf, but since perf itself is the
      first and so far only user, leave it at tools/perf/util/.
      
      Acked-by: default avatarAndi Kleen <andi@firstfloor.org>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      37be5858
    • Dmitry Torokhov's avatar
      Merge branch 'next' into for-linus · 762f99f4
      Dmitry Torokhov authored
      Prepare input updates for 5.17 merge window.
      762f99f4
    • Ian Rogers's avatar
      perf metric: Fix metric_leader · d3e2bb43
      Ian Rogers authored
      Multiple events may have a metric_leader to aggregate into.
      
      This happens for uncore events where, for example, uncore_imc is
      expanded into uncore_imc_0, uncore_imc_1, etc.
      
      Such events all have the same metric_id and should aggregate into the
      first event.
      
      The change introducing metric_ids had a bug where the metric_id was
      compared to itself, creating an always true condition.
      
      Correct this by comparing the event in the metric_evlist and the
      metric_leader.
      
      Fixes: ec5c5b3d
      
       ("perf metric: Encode and use metric-id as qualifier")
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lore.kernel.org/lkml/20220115062852.1959424-1-irogers@google.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d3e2bb43
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · f56caeda
      Linus Torvalds authored
      Merge misc updates from Andrew Morton:
       "146 patches.
      
        Subsystems affected by this patch series: kthread, ia64, scripts,
        ntfs, squashfs, ocfs2, vfs, and mm (slab-generic, slab, kmemleak,
        dax, kasan, debug, pagecache, gup, shmem, frontswap, memremap,
        memcg, selftests, pagemap, dma, vmalloc, memory-failure, hugetlb,
        userfaultfd, vmscan, mempolicy, oom-kill, hugetlbfs, migration, thp,
        ksm, page-poison, percpu, rmap, zswap, zram, cleanups, hmm, and
        damon)"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (146 commits)
        mm/damon: hide kernel pointer from tracepoint event
        mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log
        mm/damon/vaddr: use pr_debug() for damon_va_three_regions() failure logging
        mm/damon/dbgfs: remove an unnecessary variable
        mm/damon: move the implementation of damon_insert_region to damon.h
        mm/damon: add access checking for hugetlb pages
        Docs/admin-guide/mm/damon/usage: update for schemes statistics
        mm/damon/dbgfs: support all DAMOS stats
        Docs/admin-guide/mm/damon/reclaim: document statistics parameters
        mm/damon/reclaim: provide reclamation statistics
        mm/damon/schemes: account how many times quota limit has exceeded
        mm/damon/schemes: account scheme actions that successfully applied
        mm/damon: remove a mistakenly added comment for a future feature
        Docs/admin-guide/mm/damon/usage: update for kdamond_pid and (mk|rm)_contexts
        Docs/admin-guide/mm/damon/usage: mention tracepoint at the beginning
        Docs/admin-guide/mm/damon/usage: remove redundant information
        Docs/admin-guide/mm/damon/usage: update for scheme quotas and watermarks
        mm/damon: convert macro functions to static inline functions
        mm/damon: modify damon_rand() macro to static inline function
        mm/damon: move damon_rand() definition into damon.h
        ...
      f56caeda
    • Eugene Korenevsky's avatar
      cifs: fix FILE_BOTH_DIRECTORY_INFO definition · 9bbf8662
      Eugene Korenevsky authored
      
      
      The size of FILE_BOTH_DIRECTORY_INFO.ShortName must be 24 bytes, not 12
      (see MS-FSCC documentation).
      
      Signed-off-by: default avatarEugene Korenevsky <ekorenevsky@astralinux.ru>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      9bbf8662