Skip to content
Permalink
Dmitry-Baryshk…
Switch branches/tags

Commits on Jun 16, 2021

  1. PM: domain: use per-genpd lockdep class

    In case of nested genpds it is easy to get the following warning from
    lockdep, because all genpd's mutexes share same locking class. Use the
    per-genpd locking class to stop lockdep from warning about possible
    deadlocks. It is not possible to directly use genpd nested locking, as
    it is not the genpd code calling genpd. There are interim calls to
    regulator core.
    
    [    3.030219] ============================================
    [    3.030220] WARNING: possible recursive locking detected
    [    3.030221] 5.13.0-rc3-00054-gf8f0a2f2b643-dirty #2480 Not tainted
    [    3.030222] --------------------------------------------
    [    3.030223] kworker/u16:0/7 is trying to acquire lock:
    [    3.030224] ffffde0eabd29aa0 (&genpd->mlock){+.+.}-{3:3}, at: genpd_lock_mtx+0x18/0x2c
    [    3.030236]
    [    3.030236] but task is already holding lock:
    [    3.030236] ffffde0eabcfd6d0 (&genpd->mlock){+.+.}-{3:3}, at: genpd_lock_mtx+0x18/0x2c
    [    3.030240]
    [    3.030240] other info that might help us debug this:
    [    3.030240]  Possible unsafe locking scenario:
    [    3.030240]
    [    3.030241]        CPU0
    [    3.030241]        ----
    [    3.030242]   lock(&genpd->mlock);
    [    3.030243]   lock(&genpd->mlock);
    [    3.030244]
    [    3.030244]  *** DEADLOCK ***
    [    3.030244]
    [    3.030244]  May be due to missing lock nesting notation
    [    3.030244]
    [    3.030245] 6 locks held by kworker/u16:0/7:
    [    3.030246]  #0: ffff6cca00010938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x1f0/0x730
    [    3.030252]  #1: ffff8000100c3db0 (deferred_probe_work){+.+.}-{0:0}, at: process_one_work+0x1f0/0x730
    [    3.030255]  #2: ffff6cca00ce3188 (&dev->mutex){....}-{3:3}, at: __device_attach+0x3c/0x184
    [    3.030260]  #3: ffffde0eabcfd6d0 (&genpd->mlock){+.+.}-{3:3}, at: genpd_lock_mtx+0x18/0x2c
    [    3.030264]  #4: ffff8000100c3968 (regulator_ww_class_acquire){+.+.}-{0:0}, at: regulator_lock_dependent+0x6c/0x1b0
    [    3.030270]  #5: ffff6cca00a59158 (regulator_ww_class_mutex){+.+.}-{3:3}, at: regulator_lock_recursive+0x94/0x1d0
    [    3.030273]
    [    3.030273] stack backtrace:
    [    3.030275] CPU: 6 PID: 7 Comm: kworker/u16:0 Not tainted 5.13.0-rc3-00054-gf8f0a2f2b643-dirty #2480
    [    3.030276] Hardware name: Qualcomm Technologies, Inc. Robotics RB5 (DT)
    [    3.030278] Workqueue: events_unbound deferred_probe_work_func
    [    3.030280] Call trace:
    [    3.030281]  dump_backtrace+0x0/0x1a0
    [    3.030284]  show_stack+0x18/0x24
    [    3.030286]  dump_stack+0x108/0x188
    [    3.030289]  __lock_acquire+0xa20/0x1e0c
    [    3.030292]  lock_acquire.part.0+0xc8/0x320
    [    3.030294]  lock_acquire+0x68/0x84
    [    3.030296]  __mutex_lock+0xa0/0x4f0
    [    3.030299]  mutex_lock_nested+0x40/0x50
    [    3.030301]  genpd_lock_mtx+0x18/0x2c
    [    3.030303]  dev_pm_genpd_set_performance_state+0x94/0x1a0
    [    3.030305]  reg_domain_enable+0x28/0x4c
    [    3.030308]  _regulator_do_enable+0x420/0x6b0
    [    3.030310]  _regulator_enable+0x178/0x1f0
    [    3.030312]  regulator_enable+0x3c/0x80
    [    3.030314]  gdsc_toggle_logic+0x30/0x124
    [    3.030317]  gdsc_enable+0x60/0x290
    [    3.030318]  _genpd_power_on+0xc0/0x134
    [    3.030320]  genpd_power_on.part.0+0xa4/0x1f0
    [    3.030322]  __genpd_dev_pm_attach+0xf4/0x1b0
    [    3.030324]  genpd_dev_pm_attach+0x60/0x70
    [    3.030326]  dev_pm_domain_attach+0x54/0x5c
    [    3.030329]  platform_probe+0x50/0xe0
    [    3.030330]  really_probe+0xe4/0x510
    [    3.030332]  driver_probe_device+0x64/0xcc
    [    3.030333]  __device_attach_driver+0xb8/0x114
    [    3.030334]  bus_for_each_drv+0x78/0xd0
    [    3.030337]  __device_attach+0xdc/0x184
    [    3.030338]  device_initial_probe+0x14/0x20
    [    3.030339]  bus_probe_device+0x9c/0xa4
    [    3.030340]  deferred_probe_work_func+0x88/0xc4
    [    3.030342]  process_one_work+0x298/0x730
    [    3.030343]  worker_thread+0x74/0x470
    [    3.030344]  kthread+0x168/0x170
    [    3.030346]  ret_from_fork+0x10/0x34
    
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    lumag authored and intel-lab-lkp committed Jun 16, 2021
  2. PM: domains: call mutex_destroy when removing the genpd

    It is a good practice to destroy mutexes with mutex_destroy, so call
    this function for releasing genpd->mlock.
    
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    lumag authored and intel-lab-lkp committed Jun 16, 2021
  3. Merge branches 'acpi-processor', 'acpi-pm', 'acpi-video' and 'acpi-sy…

    …sfs' into linux-next
    
    * acpi-processor:
      ACPI: processor_throttling: Fix several coding style issues
      ACPI: processor_throttling: Remove redundant initialization of 'obj'
    
    * acpi-pm:
      ACPI: sleep: Fix acpi_pm_pre_suspend() kernel-doc
    
    * acpi-video:
      ACPI: video: Drop three redundant return statements
    
    * acpi-sysfs:
      ACPI: sysfs: Drop four redundant return statements
    rafaeljw committed Jun 16, 2021

Commits on Jun 14, 2021

  1. ACPI: processor_throttling: Fix several coding style issues

    Drop one redundant return statement and fix a few white space
    issues.
    
    Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
    [ rjw: Subject and changelog edits ]
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Clayton Casciato authored and rafaeljw committed Jun 14, 2021
  2. ACPI: sysfs: Drop four redundant return statements

    Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
    [ rjw: Subject and changelog edits ]
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Clayton Casciato authored and rafaeljw committed Jun 14, 2021
  3. ACPI: video: Drop three redundant return statements

    Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
    [ rjw: Subject and changelog edits ]
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Clayton Casciato authored and rafaeljw committed Jun 14, 2021
  4. ACPI: sleep: Fix acpi_pm_pre_suspend() kernel-doc

    Fix function name in sleep.c kernel-doc comment
    to remove a warning found by running make W=1 LLVM=1.
    
    drivers/acpi/sleep.c:413: warning: expecting prototype for
    acpi_pre_suspend(). Prototype was for acpi_pm_pre_suspend() instead.
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Yang Li authored and rafaeljw committed Jun 14, 2021
  5. ACPI: processor_throttling: Remove redundant initialization of 'obj'

    'obj' is being initialized, however this value is never read as
    'obj' is assigned an updated value later. Remove the redundant
    initialization.
    
    Clean up clang warning:
    drivers/acpi/processor_throttling.c:409:20: warning: Value stored to
    'obj' during its initialization is never read
    [clang-analyzer-deadcode.DeadStores]
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Yang Li authored and rafaeljw committed Jun 14, 2021
  6. Merge branch 'pm-cpufreq-fixes' into linux-next

    * pm-cpufreq-fixes:
      Revert "cpufreq: CPPC: Add support for frequency invariance"
    rafaeljw committed Jun 14, 2021
  7. Revert "cpufreq: CPPC: Add support for frequency invariance"

    This reverts commit 4c38f2d.
    
    There are few races in the frequency invariance support for CPPC driver,
    namely the driver doesn't stop the kthread_work and irq_work on policy
    exit during suspend/resume or CPU hotplug.
    
    A proper fix won't be possible for the 5.13-rc, as it requires a lot of
    changes. Lets revert the patch instead for now.
    
    Fixes: 4c38f2d ("cpufreq: CPPC: Add support for frequency invariance")
    Reported-by: Qian Cai <quic_qiancai@quicinc.com>
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    vireshk authored and rafaeljw committed Jun 14, 2021
  8. Merge branch 'pm-domains' into linux-next

    * pm-domains:
      PM: domains: Drop/restore performance state votes for devices at runtime PM
      PM: domains: Return early if perf state is already set for the device
      PM: domains: Split code in dev_pm_genpd_set_performance_state()
      PM: domains: fix some kernel-doc issues
    rafaeljw committed Jun 14, 2021
  9. Merge branches 'pm-cpufreq' and 'pm-cpuidle' into linux-next

    * pm-cpufreq:
      cpufreq: loongson2: Remove unused linux/sched.h headers
      cpufreq: sh: Remove unused linux/sched.h headers
      cpufreq: stats: Clean up local variable in cpufreq_stats_create_table()
      cpufreq: intel_pstate: hybrid: Fix build with CONFIG_ACPI unset
      cpufreq: sc520_freq: add 'fallthrough' to one case
      cpufreq: intel_pstate: Add Cometlake support in no-HWP mode
      cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode
      cpufreq: intel_pstate: hybrid: CPU-specific scaling factor
      cpufreq: intel_pstate: hybrid: Avoid exposing two global attributes
    
    * pm-cpuidle:
      cpuidle: teo: Use kerneldoc documentation in admin-guide
      cpuidle: teo: Rework most recent idle duration values treatment
      cpuidle: teo: Change the main idle state selection logic
      cpuidle: teo: Cosmetic modification of teo_select()
      cpuidle: teo: Cosmetic modifications of teo_update()
      intel_idle: Adjust the SKX C6 parameters if PC6 is disabled
    rafaeljw committed Jun 14, 2021
  10. Merge branches 'pm-core' and 'pm-sleep' into linux-next

    * pm-core:
      PM: runtime: Clarify documentation when callbacks are unassigned
      PM: runtime: Allow unassigned ->runtime_suspend|resume callbacks
      PM: runtime: Improve path in rpm_idle() when no callback
      PM: runtime: document common mistake with pm_runtime_get_sync()
    
    * pm-sleep:
      PM: hibernate: remove leading spaces before tabs
      PM: sleep: remove trailing spaces and tabs
      PM: hibernate: fix spelling mistakes
      PM: wakeirq: Set IRQF_NO_AUTOEN when requesting the IRQ
    rafaeljw committed Jun 14, 2021
  11. Merge branch 'pnp' into linux-next

    * pnp:
      PNP: pnpbios: Use list_for_each_entry() instead of list_for_each()
      PNP: use DEVICE_ATTR_RO macro
      PNP: Switch over to dev_dbg()
      PNP: Remove pnp_alloc()
      drivers: pnp: isapnp: proc.c: Remove unnecessary local variables
    rafaeljw committed Jun 14, 2021
  12. Merge branches 'acpi-messages' and 'acpi-prm' into linux-next

    * acpi-messages:
      ACPI: Remove the macro PREFIX "ACPI: "
      ACPI: sleep: Unify the message printing
      ACPI: sbs: Unify the message printing
      ACPI: scan: Unify the log message printing
      ACPI: sbshc: Unify the message printing
      ACPI: sysfs: Cleanup message printing
      ACPI: reboot: Unify the message printing
      ACPI: processor_throttling: Cleanup the printing messages
      ACPI: processor_perflib: Cleanup print messages
      ACPI: processor_thermal: Remove unused PREFIX for printing
      ACPI: pci_root: Unify the message printing
      ACPI: osl: Remove the duplicated PREFIX for message printing
      ACPI: nvs: Unify the message printing
      ACPI: glue: Clean up the printing messages
      ACPI: event: Use pr_*() macros to replace printk()
      ACPI: bus: Use pr_*() macros to replace printk()
      ACPI: blacklist: Unify the message printing
      ACPI: cmos_rtc: Using pr_fmt() and remove PREFIX
    
    * acpi-prm:
      ACPI: Add \_SB._OSC bit for PRM
      ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype
    rafaeljw committed Jun 14, 2021
  13. Merge branches 'acpi-dptf', 'acpi-apei', 'acpi-soc', 'acpi-sysfs' and…

    … 'acpi-x86' into linux-next
    
    * acpi-dptf:
      ACPI: DPTF: Add new PCH FIVR methods
      ACPI: DPTF: Add battery participant for Intel SoCs
    
    * acpi-apei:
      ACPI: APEI: Don't warn if ACPI is disabled
    
    * acpi-soc:
      ACPI: LPSS: Use kstrtol() instead of simple_strtol()
    
    * acpi-sysfs:
      ACPI: sysfs: Fix a buffer overrun problem with description_show()
    
    * acpi-x86:
      x86/acpi: Switch to pr_xxx log functions
    rafaeljw committed Jun 14, 2021
  14. Merge branches 'acpi-tables', 'acpi-ec', 'acpi-resources' and 'acpi-m…

    …isc' into linux-next
    
    * acpi-tables:
      ACPI: tables: FPDT: Add missing acpi_put_table() in acpi_init_fpdt()
      ACPI: tables: PPTT: Populate cache-id if provided by firmware
    
    * acpi-ec:
      ACPI: EC: Make more Asus laptops use ECDT _GPE
    
    * acpi-resources:
      ACPI: resources: Add checks for ACPI IRQ override
    
    * acpi-misc:
      ACPI: NUMA: fix typo in a comment
      ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code
      ACPI: bus: Call kobject_put() in acpi_init() error path
      ACPI: bus: Remove unneeded assignment
      ACPI: configfs: Replace ACPI_INFO() with pr_debug()
      ACPI: ipmi: Remove address space handler in error path
      ACPI: event: Remove redundant initialization of local variable
      ACPI: sbshc: Fix fall-through warning for Clang
    rafaeljw committed Jun 14, 2021
  15. Merge branches 'acpi-bus', 'acpi-scan', 'acpi-pm' and 'acpi-processor…

    …' into linux-next
    
    * acpi-bus:
      ACPI: Remove redundant clearing of context->ret.pointer from acpi_run_osc()
    
    * acpi-scan:
      ACPI: scan: initialize local variable to avoid garbage being returned
      ACPI: scan: Add function to fetch dependent of ACPI device
      ACPI: scan: Extend acpi_walk_dep_device_list()
      ACPI: scan: Rearrange dep_unmet initialization
    
    * acpi-pm:
      ACPI: power: Rework turning off unused power resources
      ACPI: power: Save the last known state of each power resource
      ACPI: power: Use u8 as the power resource state data type
      ACPI: PM / fan: Put fan device IDs into separate header file
      ACPI: PM: s2idle: Add missing LPS0 functions for AMD
    
    * acpi-processor:
      ACPI: processor idle: Fix up C-state latency if not ordered
    rafaeljw committed Jun 14, 2021
  16. Merge branch 'acpica' into linux-next

    * acpica:
      ACPICA: Add PRMT module header to facilitate parsing
      ACPICA: Update version to 20210604
      ACPICA: Add support for PlatformRtMechanism OperationRegion handler
      ACPICA: iASL: add disassembler support for PRMT
      ACPICA: Add the CFMWS structure definition to the CEDT table
      ACPICA: Add defines for the CXL Host Bridge Structure (CHBS)
      ACPICA: iASL: Add support for the BDAT ACPI table
      ACPICA: Add _PLD panel positions
      ACPICA: Use ACPI_FALLTHROUGH
      ACPICA: iASL Table Compiler: Add full support for RGRT ACPI table
      ACPICA: iASL: Add support for the SVKL table
      ACPICA: iASL: Finish support for the IVRS ACPI table
      ACPICA: Fix memory leak caused by _CID repair function
      ACPICA: Add SVKL table headers
      ACPICA: ACPI 6.4: MADT: add Multiprocessor Wakeup Mailbox Structure
    rafaeljw committed Jun 14, 2021
  17. Merge branch 'devprop' into linux-next

    * devprop:
      device property: Unify access to of_node
      ACPI: scan: Constify acpi_dma_supported() helper function
      ACPI: property: Constify stubs for CONFIG_ACPI=n case
      ACPI: IORT: Handle device properties with software node API
      device property: Retrieve fwnode from of_node via accessor
    rafaeljw committed Jun 14, 2021

Commits on Jun 13, 2021

  1. Linux 5.13-rc6

    torvalds committed Jun 13, 2021
  2. Merge tag 'perf-tools-fixes-for-v5.13-2021-06-13' of git://git.kernel…

    ….org/pub/scm/linux/kernel/git/acme/linux
    
    Pull perf tools fixes from Arnaldo Carvalho de Melo:
    
     - Correct buffer copying when peeking events
    
     - Sync cpufeatures/disabled-features.h header with the kernel sources
    
    * tag 'perf-tools-fixes-for-v5.13-2021-06-13' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
      tools headers cpufeatures: Sync with the kernel sources
      perf session: Correct buffer copying when peeking events
    torvalds committed Jun 13, 2021
  3. Merge tag 'nfs-for-5.13-3' of git://git.linux-nfs.org/projects/trondm…

    …y/linux-nfs
    
    Pull NFS client bugfixes from Trond Myklebust:
     "Highlights include:
    
      Stable fixes:
    
       - Fix use-after-free in nfs4_init_client()
    
      Bugfixes:
    
       - Fix deadlock between nfs4_evict_inode() and nfs4_opendata_get_inode()
    
       - Fix second deadlock in nfs4_evict_inode()
    
       - nfs4_proc_set_acl should not change the value of NFS_CAP_UIDGID_NOMAP
    
       - Fix setting of the NFS_CAP_SECURITY_LABEL capability"
    
    * tag 'nfs-for-5.13-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
      NFSv4: Fix second deadlock in nfs4_evict_inode()
      NFSv4: Fix deadlock between nfs4_evict_inode() and nfs4_opendata_get_inode()
      NFS: FMODE_READ and friends are C macros, not enum types
      NFS: Fix a potential NULL dereference in nfs_get_client()
      NFS: Fix use-after-free in nfs4_init_client()
      NFS: Ensure the NFS_CAP_SECURITY_LABEL capability is set when appropriate
      NFSv4: nfs4_proc_set_acl needs to restore NFS_CAP_UIDGID_NOMAP on error.
    torvalds committed Jun 13, 2021
  4. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Four reasonably small fixes to the core for scsi host allocation
      failure paths.
    
      The root problem is that we're not freeing the memory allocated by
      dev_set_name(), which involves a rejig of may of the free on error
      paths to do put_device() instead of kfree which, in turn, has several
      other knock on ramifications and inspection turned up a few other
      lurking bugs"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: core: Only put parent device if host state differs from SHOST_CREATED
      scsi: core: Put .shost_dev in failure path if host state changes to RUNNING
      scsi: core: Fix failure handling of scsi_add_host_with_dma()
      scsi: core: Fix error handling of scsi_host_alloc()
    torvalds committed Jun 13, 2021

Commits on Jun 12, 2021

  1. Merge tag 'riscv-for-linus-5.13-rc6' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
    
     - A pair of XIP fixes: one to fix alternatives, and one to turn off the
       rest of the features that require code modification
    
     - A fix to a type that was causing some alternatives to break
    
     - A build fix for BUILTIN_DTB
    
    * tag 'riscv-for-linus-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      riscv: Fix BUILTIN_DTB for sifive and microchip soc
      riscv: alternative: fix typo in macro name
      riscv: code patching only works on !XIP_KERNEL
      riscv: xip: support runtime trap patching
    torvalds committed Jun 12, 2021
  2. mm: relocate 'write_protect_seq' in struct mm_struct

    0day robot reported a 9.2% regression for will-it-scale mmap1 test
    case[1], caused by commit 57efa1f ("mm/gup: prevent gup_fast from
    racing with COW during fork").
    
    Further debug shows the regression is due to that commit changes the
    offset of hot fields 'mmap_lock' inside structure 'mm_struct', thus some
    cache alignment changes.
    
    From the perf data, the contention for 'mmap_lock' is very severe and
    takes around 95% cpu cycles, and it is a rw_semaphore
    
            struct rw_semaphore {
                    atomic_long_t count;	/* 8 bytes */
                    atomic_long_t owner;	/* 8 bytes */
                    struct optimistic_spin_queue osq; /* spinner MCS lock */
                    ...
    
    Before commit 57efa1f adds the 'write_protect_seq', it happens to
    have a very optimal cache alignment layout, as Linus explained:
    
     "and before the addition of the 'write_protect_seq' field, the
      mmap_sem was at offset 120 in 'struct mm_struct'.
    
      Which meant that count and owner were in two different cachelines,
      and then when you have contention and spend time in
      rwsem_down_write_slowpath(), this is probably *exactly* the kind
      of layout you want.
    
      Because first the rwsem_write_trylock() will do a cmpxchg on the
      first cacheline (for the optimistic fast-path), and then in the
      case of contention, rwsem_down_write_slowpath() will just access
      the second cacheline.
    
      Which is probably just optimal for a load that spends a lot of
      time contended - new waiters touch that first cacheline, and then
      they queue themselves up on the second cacheline."
    
    After the commit, the rw_semaphore is at offset 128, which means the
    'count' and 'owner' fields are now in the same cacheline, and causes
    more cache bouncing.
    
    Currently there are 3 "#ifdef CONFIG_XXX" before 'mmap_lock' which will
    affect its offset:
    
      CONFIG_MMU
      CONFIG_MEMBARRIER
      CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
    
    The layout above is on 64 bits system with 0day's default kernel config
    (similar to RHEL-8.3's config), in which all these 3 options are 'y'.
    And the layout can vary with different kernel configs.
    
    Relayouting a structure is usually a double-edged sword, as sometimes it
    can helps one case, but hurt other cases.  For this case, one solution
    is, as the newly added 'write_protect_seq' is a 4 bytes long seqcount_t
    (when CONFIG_DEBUG_LOCK_ALLOC=n), placing it into an existing 4 bytes
    hole in 'mm_struct' will not change other fields' alignment, while
    restoring the regression.
    
    Link: https://lore.kernel.org/lkml/20210525031636.GB7744@xsang-OptiPlex-9020/ [1]
    Reported-by: kernel test robot <oliver.sang@intel.com>
    Signed-off-by: Feng Tang <feng.tang@intel.com>
    Reviewed-by: John Hubbard <jhubbard@nvidia.com>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
    Cc: Peter Xu <peterx@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    ftang1 authored and torvalds committed Jun 12, 2021
  3. Merge tag 'usb-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB fixes from Greg KH:
     "Here are a number of tiny USB fixes for 5.13-rc6.
    
      There are more than I would normally like, but there's been a bunch of
      people banging on the gadget and dwc3 and typec code recently for I
      think an Android release, which has resulted in a number of small
      fixes. It's nice to see companies send fixes upstream for this type of
      work, a notable change from years ago.
    
      Anyway, fixes in here are:
    
       - usb-serial device id updates
    
       - usb-serial cp210x driver fixes for broken firmware versions
    
       - typec fixes for crazy charging devices and other reported problems
    
       - dwc3 fixes for reported problems found
    
       - gadget fixes for reported problems
    
       - tiny xhci fixes
    
       - other small fixes for reported issues.
    
       - revert of a problem fix found by linux-next testing
    
      All of these have passed 0-day and linux-next testing with no reported
      problems (the revert for the found linux-next build problem included)"
    
    * tag 'usb-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (44 commits)
      Revert "usb: gadget: fsl: Re-enable driver for ARM SoCs"
      usb: typec: mux: Fix copy-paste mistake in typec_mux_match
      usb: typec: ucsi: Clear PPM capability data in ucsi_init() error path
      usb: gadget: fsl: Re-enable driver for ARM SoCs
      usb: typec: wcove: Use LE to CPU conversion when accessing msg->header
      USB: serial: cp210x: fix CP2102N-A01 modem control
      USB: serial: cp210x: fix alternate function for CP2102N QFN20
      usb: misc: brcmstb-usb-pinmap: check return value after calling platform_get_resource()
      usb: dwc3: ep0: fix NULL pointer exception
      usb: gadget: eem: fix wrong eem header operation
      usb: typec: intel_pmc_mux: Put ACPI device using acpi_dev_put()
      usb: typec: intel_pmc_mux: Add missed error check for devm_ioremap_resource()
      usb: typec: intel_pmc_mux: Put fwnode in error case during ->probe()
      usb: typec: tcpm: Do not finish VDM AMS for retrying Responses
      usb: fix various gadget panics on 10gbps cabling
      usb: fix various gadgets null ptr deref on 10gbps cabling.
      usb: pci-quirks: disable D3cold on xhci suspend for s2idle on AMD Renoir
      usb: f_ncm: only first packet of aggregate needs to start timer
      USB: f_ncm: ncm_bitrate (speed) is unsigned
      MAINTAINERS: usb: add entry for isp1760
      ...
    torvalds committed Jun 12, 2021
  4. Merge tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull serial driver fix from Greg KH:
     "A single 8250_exar serial driver fix for a reported problem with a
      change that happened in 5.13-rc1.
    
      It has been in linux-next with no reported problems"
    
    * tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      serial: 8250_exar: Avoid NULL pointer dereference at ->exit()
    torvalds committed Jun 12, 2021
  5. Merge tag 'staging-5.13-rc6' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging driver fixes from Greg KH:
     "Two tiny staging driver fixes:
    
       - ralink-gdma driver authorship information fixed up
    
       - rtl8723bs driver fix for reported regression
    
      Both have been in linux-next for a while with no reported problems"
    
    * tag 'staging-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      staging: ralink-gdma: Remove incorrect author information
      staging: rtl8723bs: Fix uninitialized variables
    torvalds committed Jun 12, 2021
  6. Merge tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fix from Greg KH:
     "A single debugfs fix for 5.13-rc6, fixing a bug in
      debugfs_read_file_str() that showed up in 5.13-rc1.
    
      It has been in linux-next for a full week with no
      reported problems"
    
    * tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      debugfs: Fix debugfs_read_file_str()
    torvalds committed Jun 12, 2021
  7. Merge tag 'char-misc-5.13-rc6' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are some small misc driver fixes for 5.13-rc6 that fix some
      reported problems:
    
       - Tiny phy driver fixes for reported issues
    
       - rtsx regression for when the device suspended
    
       - mhi driver fix for a use-after-free
    
      All of these have been in linux-next for a few days with no reported
      issues"
    
    * tag 'char-misc-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG
      bus: mhi: pci-generic: Fix hibernation
      bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove()
      bus: mhi: pci_generic: T99W175: update channel name from AT to DUN
      phy: Sparx5 Eth SerDes: check return value after calling platform_get_resource()
      phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable
      phy: ti: Fix an error code in wiz_probe()
      phy: phy-mtk-tphy: Fix some resource leaks in mtk_phy_init()
      phy: cadence: Sierra: Fix error return code in cdns_sierra_phy_probe()
      phy: usb: Fix misuse of IS_ENABLED
    torvalds committed Jun 12, 2021
  8. Merge tag 'pinctrl-v5.13-2' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/linusw/linux-pinctrl
    
    Pull pin control fixes from Linus Walleij:
    
     - Fix some documentation warnings for Allwinner
    
     - Fix duplicated GPIO groups on Qualcomm SDX55
    
     - Fix a double enablement bug in the Ralink driver
    
     - Fix the Qualcomm SC8180x Kconfig so the driver can be selected.
    
    * tag 'pinctrl-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
      pinctrl: qcom: Make it possible to select SC8180x TLMM
      pinctrl: ralink: rt2880: avoid to error in calls is pin is already enabled
      pinctrl: qcom: Fix duplication in gpio_groups
      pinctrl: aspeed: Fix minor documentation error
    torvalds committed Jun 12, 2021
  9. Merge tag 'block-5.13-2021-06-12' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
     "A few fixes that should go into 5.13:
    
       - Fix a regression deadlock introduced in this release between open
         and remove of a bdev (Christoph)
    
       - Fix an async_xor md regression in this release (Xiao)
    
       - Fix bcache oversized read issue (Coly)"
    
    * tag 'block-5.13-2021-06-12' of git://git.kernel.dk/linux-block:
      block: loop: fix deadlock between open and remove
      async_xor: check src_offs is not NULL before updating it
      bcache: avoid oversized read request in cache missing code path
      bcache: remove bcache device self-defined readahead
    torvalds committed Jun 12, 2021
  10. Merge tag 'io_uring-5.13-2021-06-12' of git://git.kernel.dk/linux-block

    Pull io_uring fixes from Jens Axboe:
     "Just an API change for the registration changes that went into this
      release. Better to get it sorted out now than before it's too late"
    
    * tag 'io_uring-5.13-2021-06-12' of git://git.kernel.dk/linux-block:
      io_uring: add feature flag for rsrc tags
      io_uring: change registration/upd/rsrc tagging ABI
    torvalds committed Jun 12, 2021
Older