1. 01 Jul, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'block-5.19-2022-07-01' of git://git.kernel.dk/linux-block · d516e221
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix for batch getting of tags in sbitmap (wuchi)
      
       - NVMe pull request via Christoph:
            - More quirks (Lamarque Vieira Souza, Pablo Greco)
            - Fix a fabrics disconnect regression (Ruozhu Li)
            - Fix a nvmet-tcp data_digest calculation regression (Sagi
              Grimberg)
            - Fix nvme-tcp send failure handling (Sagi Grimberg)
            - Fix a regression with nvmet-loop and passthrough controllers
              (Alan Adamson)
      
      * tag 'block-5.19-2022-07-01' of git://git.kernel.dk/linux-block:
        nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA IM2P33F8ABR1
        nvmet: add a clear_ids attribute for passthru targets
        nvme: fix regression when disconnect a recovering ctrl
        nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG SX6000LNP (AKA SPECTRIX S40G)
        nvme-tcp: always fail a request when sending it failed
        nvmet-tcp: fix regression in data_digest calculation
        lib/sbitmap: Fix invalid loop in __sbitmap_queue_get_batch()
      d516e221
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 067c2273
      Linus Torvalds authored
      Pull SCSI fix from James Bottomley:
       "One simple driver fix for a dma overrun"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: hisi_sas: Limit max hw sectors for v3 HW
      067c2273
    • Linus Torvalds's avatar
      Merge tag 'ata-5.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 690685ff
      Linus Torvalds authored
      Pull ATA fix from Damien Le Moal:
      
       - Fix a compilation warning with some versions of gcc/sparse when
         compiling the pata_cs5535 driver, from John.
      
      * tag 'ata-5.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: pata_cs5535: Fix W=1 warnings
      690685ff
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 9650910d
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "Two small fixes
      
         - Initialize a spinlock in the stm32 reset code
      
         - Add dt bindings to the clk maintainer filepattern"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        MAINTAINERS: add include/dt-bindings/clock to COMMON CLK FRAMEWORK
        clk: stm32: rcc_reset: Fix missing spin_lock_init()
      9650910d
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-07-01' of git://anongit.freedesktop.org/drm/drm · a175eca0
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Bit quieter this week, the main thing is it pulls in the fixes for the
        sysfb resource issue you were seeing. these had been queued for next
        so should have had some decent testing.
      
        Otherwise amdgpu, i915 and msm each have a few fixes, and vc4 has one.
      
        fbdev:
         - sysfb fixes/conflicting fb fixes
      
        amdgpu:
         - GPU recovery fix
      
         - Fix integer type usage in fourcc header for AMD modifiers
      
         - KFD TLB flush fix for gfx9 APUs
      
         - Display fix
      
        i915:
         - Fix ioctl argument error return
      
         - Fix d3cold disable to allow PCI upstream bridge D3 transition
      
         - Fix setting cache_dirty for dma-buf objects on discrete
      
        msm:
         - Fix to increment vsync_cnt before calling drm_crtc_handle_vblank so
           that userspace sees the value *after* it is incremented if waiting
           for vblank events
      
         - Fix to reset drm_dev to NULL in dp_display_unbind to avoid a crash
           in probe/bind error paths
      
         - Fix to resolve the smatch error of de-referencing before NULL check
           in dpu_encoder_phys_wb.c
      
         - Fix error return to userspace if fence-id allocation fails in
           submit ioctl
      
        vc4:
         - NULL ptr dereference fix"
      
      * tag 'drm-fixes-2022-07-01' of git://anongit.freedesktop.org/drm/drm:
        Revert "drm/amdgpu/display: set vblank_disable_immediate for DC"
        drm/amdgpu: To flush tlb for MMHUB of RAVEN series
        drm/fourcc: fix integer type usage in uapi header
        drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
        fbdev: Disable sysfb device registration when removing conflicting FBs
        firmware: sysfb: Add sysfb_disable() helper function
        firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer
        drm/msm/gem: Fix error return on fence id alloc fail
        drm/i915: tweak the ordering in cpu_write_needs_clflush
        drm/i915/dgfx: Disable d3cold at gfx root port
        drm/i915/gem: add missing else
        drm/vc4: perfmon: Fix variable dereferenced before check
        drm/msm/dpu: Fix variable dereferenced before check
        drm/msm/dp: reset drm_dev to NULL at dp_display_unbind()
        drm/msm/dpu: Increment vsync_cnt before waking up userspace
      a175eca0
  2. 30 Jun, 2022 26 commits
  3. 29 Jun, 2022 9 commits
    • John Garry's avatar
      ata: pata_cs5535: Fix W=1 warnings · 32788beb
      John Garry authored
      x86_64 allmodconfig build with W=1 gives these warnings:
      
      drivers/ata/pata_cs5535.c: In function ‘cs5535_set_piomode’:
      drivers/ata/pata_cs5535.c:93:11: error: variable ‘dummy’ set but not
      used [-Werror=unused-but-set-variable]
        u32 reg, dummy;
                 ^~~~~
      drivers/ata/pata_cs5535.c: In function ‘cs5535_set_dmamode’:
      drivers/ata/pata_cs5535.c:132:11: error: variable ‘dummy’ set but not
      used [-Werror=unused-but-set-variable]
        u32 reg, dummy;
                 ^~~~~
      cc1: all warnings being treated as errors
      
      Mark variables 'dummy' as "maybe unused" as they are only ever written
      in rdmsr() calls.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
      Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
      32788beb
    • Alex Deucher's avatar
      Revert "drm/amdgpu/display: set vblank_disable_immediate for DC" · a775e4e4
      Alex Deucher authored
      This reverts commit 92020e81.
      
      This causes stuttering and timeouts with DMCUB for some users
      so revert it until we understand why and safely enable it
      to save power.
      
      Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1887Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
      Cc: stable@vger.kernel.org
      a775e4e4
    • Ruili Ji's avatar
      drm/amdgpu: To flush tlb for MMHUB of RAVEN series · 5cb0e3fb
      Ruili Ji authored
      amdgpu: [mmhub0] no-retry page fault (src_id:0 ring:40 vmid:8 pasid:32769, for process test_basic pid 3305 thread test_basic pid 3305)
      amdgpu: in page starting at address 0x00007ff990003000 from IH client 0x12 (VMC)
      amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00840051
      amdgpu: Faulty UTCL2 client ID: MP1 (0x0)
      amdgpu: MORE_FAULTS: 0x1
      amdgpu: WALKER_ERROR: 0x0
      amdgpu: PERMISSION_FAULTS: 0x5
      amdgpu: MAPPING_ERROR: 0x0
      amdgpu: RW: 0x1
      
      When memory is allocated by kfd, no one triggers the tlb flush for MMHUB0.
      There is page fault from MMHUB0.
      
      v2:fix indentation
      v3:change subject and fix indentation
      Signed-off-by: default avatarRuili Ji <ruiliji2@amd.com>
      Reviewed-by: default avatarPhilip Yang <philip.yang@amd.com>
      Reviewed-by: default avatarAaron Liu <aaron.liu@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      5cb0e3fb
    • Carlos Llamas's avatar
      drm/fourcc: fix integer type usage in uapi header · 20b82643
      Carlos Llamas authored
      Kernel uapi headers are supposed to use __[us]{8,16,32,64} types defined
      by <linux/types.h> as opposed to 'uint32_t' and similar. See [1] for the
      relevant discussion about this topic. In this particular case, the usage
      of 'uint64_t' escaped headers_check as these macros are not being called
      here. However, the following program triggers a compilation error:
      
        #include <drm/drm_fourcc.h>
      
        int main()
        {
        	unsigned long x = AMD_FMT_MOD_CLEAR(RB);
        	return 0;
        }
      
      gcc error:
        drm.c:5:27: error: ‘uint64_t’ undeclared (first use in this function)
            5 |         unsigned long x = AMD_FMT_MOD_CLEAR(RB);
              |                           ^~~~~~~~~~~~~~~~~
      
      This patch changes AMD_FMT_MOD_{SET,CLEAR} macros to use the correct
      integer types, which fixes the above issue.
      
        [1] https://lkml.org/lkml/2019/6/5/18
      
      Fixes: 8ba16d59 ("drm/fourcc: Add AMD DRM modifiers.")
      Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
      Reviewed-by: default avatarSimon Ser <contact@emersion.fr>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      20b82643
    • Alex Deucher's avatar
      drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover() · bbba2515
      Alex Deucher authored
      Use the correct adev variable for the drm_fb_helper in
      amdgpu_device_gpu_recover().  Noticed by inspection.
      
      Fixes: 087451f3 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
      Reviewed-by: default avatarGuchun Chen <guchun.chen@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      bbba2515
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.19-3' of... · d9b2ba67
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
      
       - thinkpad_acpi/ideapad-laptop: mem-leak and platform-profile fixes
      
       - panasonic-laptop: missing hotkey presses regression fix
      
       - some hardware-id additions
      
       - some other small fixes
      
      * tag 'platform-drivers-x86-v5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: hp-wmi: Ignore Sanitization Mode event
        platform/x86: thinkpad_acpi: do not use PSC mode on Intel platforms
        platform/x86: thinkpad-acpi: profile capabilities as integer
        platform/x86: panasonic-laptop: filter out duplicate volume up/down/mute keypresses
        platform/x86: panasonic-laptop: don't report duplicate brightness key-presses
        platform/x86: panasonic-laptop: revert "Resolve hotkey double trigger bug"
        platform/x86: panasonic-laptop: sort includes alphabetically
        platform/x86: panasonic-laptop: de-obfuscate button codes
        ACPI: video: Change how we determine if brightness key-presses are handled
        platform/x86: ideapad-laptop: Add Ideapad 5 15ITL05 to ideapad_dytc_v4_allow_table[]
        platform/x86: ideapad-laptop: Add allow_v4_dytc module parameter
        platform/x86: thinkpad_acpi: Fix a memory leak of EFCH MMIO resource
        platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices()
        platform/x86: intel/pmc: Add Alder Lake N support to PMC core driver
      d9b2ba67
    • Linus Torvalds's avatar
      Merge tag '5.19-rc4-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 732f3069
      Linus Torvalds authored
      Pull ksmbd server fixes from Steve French:
      
       - seek null check (don't use f_seek op directly and blindly)
      
       - offset validation in FSCTL_SET_ZERO_DATA
      
       - fallocate fix (relates e.g. to xfstests generic/091 and 263)
      
       - two cleanup fixes
      
       - fix socket settings on some arch
      
      * tag '5.19-rc4-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: use vfs_llseek instead of dereferencing NULL
        ksmbd: check invalid FileOffset and BeyondFinalZero in FSCTL_ZERO_DATA
        ksmbd: set the range of bytes to zero without extending file size in FSCTL_ZERO_DATA
        ksmbd: remove duplicate flag set in smb2_write
        ksmbd: smbd: Remove useless license text when SPDX-License-Identifier is already used
        ksmbd: use SOCK_NONBLOCK type for kernel_accept()
      732f3069
    • Ruozhu Li's avatar
      nvme: fix regression when disconnect a recovering ctrl · f7f70f4a
      Ruozhu Li authored
      We encountered a problem that the disconnect command hangs.
      After analyzing the log and stack, we found that the triggering
      process is as follows:
      CPU0                          CPU1
                                      nvme_rdma_error_recovery_work
                                        nvme_rdma_teardown_io_queues
      nvme_do_delete_ctrl                 nvme_stop_queues
        nvme_remove_namespaces
        --clear ctrl->namespaces
                                          nvme_start_queues
                                          --no ns in ctrl->namespaces
          nvme_ns_remove                  return(because ctrl is deleting)
            blk_freeze_queue
              blk_mq_freeze_queue_wait
              --wait for ns to unquiesce to clean infligt IO, hang forever
      
      This problem was not found in older kernels because we will flush
      err work in nvme_stop_ctrl before nvme_remove_namespaces.It does not
      seem to be modified for functional reasons, the patch can be revert
      to solve the problem.
      
      Revert commit 794a4cb3 ("nvme: remove the .stop_ctrl callout")
      Signed-off-by: default avatarRuozhu Li <liruozhu@huawei.com>
      Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      f7f70f4a
    • Pablo Greco's avatar
      nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG SX6000LNP (AKA SPECTRIX S40G) · 1629de0e
      Pablo Greco authored
      ADATA XPG SPECTRIX S40G drives report bogus eui64 values that appear to
      be the same across drives in one system. Quirk them out so they are
      not marked as "non globally unique" duplicates.
      
      Before:
      [    2.258919] nvme nvme1: pci function 0000:06:00.0
      [    2.264898] nvme nvme2: pci function 0000:05:00.0
      [    2.323235] nvme nvme1: failed to set APST feature (2)
      [    2.326153] nvme nvme2: failed to set APST feature (2)
      [    2.333935] nvme nvme1: allocated 64 MiB host memory buffer.
      [    2.336492] nvme nvme2: allocated 64 MiB host memory buffer.
      [    2.339611] nvme nvme1: 7/0/0 default/read/poll queues
      [    2.341805] nvme nvme2: 7/0/0 default/read/poll queues
      [    2.346114]  nvme1n1: p1
      [    2.347197] nvme nvme2: globally duplicate IDs for nsid 1
      After:
      [    2.427715] nvme nvme1: pci function 0000:06:00.0
      [    2.427771] nvme nvme2: pci function 0000:05:00.0
      [    2.488154] nvme nvme2: failed to set APST feature (2)
      [    2.489895] nvme nvme1: failed to set APST feature (2)
      [    2.498773] nvme nvme2: allocated 64 MiB host memory buffer.
      [    2.500587] nvme nvme1: allocated 64 MiB host memory buffer.
      [    2.504113] nvme nvme2: 7/0/0 default/read/poll queues
      [    2.507026] nvme nvme1: 7/0/0 default/read/poll queues
      [    2.509467] nvme nvme2: Ignoring bogus Namespace Identifiers
      [    2.512804] nvme nvme1: Ignoring bogus Namespace Identifiers
      [    2.513698]  nvme1n1: p1
      Signed-off-by: default avatarPablo Greco <pgreco@centosproject.org>
      Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
      Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      1629de0e