1. 08 Aug, 2021 5 commits
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 66745863
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char/misc driver fixes for 5.14-rc5.
      
        They resolve a few regressions that people reported:
      
         - acrn driver fix
      
         - fpga driver fix
      
         - interconnect tiny driver fixes
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'char-misc-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        interconnect: Fix undersized devress_alloc allocation
        interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate
        interconnect: qcom: icc-rpmh: Ensure floor BW is enforced for all nodes
        fpga: dfl: fme: Fix cpu hotplug issue in performance reporting
        virt: acrn: Do hcall_destroy_vm() before resource release
        interconnect: Always call pre_aggregate before aggregate
        interconnect: Zero initial BW after sync-state
      66745863
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.14-rc5' of... · 289ef7be
      Linus Torvalds authored
      Merge tag 'driver-core-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg KH:
       "Here are three tiny driver core and firmware loader fixes for
        5.14-rc5. They are:
      
         - driver core fix for when probing fails
      
         - firmware loader fixes for reported problems.
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'driver-core-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        firmware_loader: fix use-after-free in firmware_fallback_sysfs
        firmware_loader: use -ETIMEDOUT instead of -EAGAIN in fw_load_sysfs_fallback
        drivers core: Fix oops when driver probe fails
      289ef7be
    • Linus Torvalds's avatar
      Merge tag 'staging-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 911c3c5e
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are a few small staging driver fixes for 5.14-rc5 to resolve some
        reported problems. They include:
      
         - mt7621 driver fix
      
         - rtl8723bs driver fixes
      
         - rtl8712 driver fixes.
      
        Nothing major, just small problems resolved.
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'staging-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: mt7621-pci: avoid to re-disable clock for those pcies not in use
        staging: rtl8712: error handling refactoring
        staging: rtl8712: get rid of flush_scheduled_work
        staging: rtl8723bs: select CONFIG_CRYPTO_LIB_ARC4
        staging: rtl8723bs: Fix a resource leak in sd_int_dpc
      911c3c5e
    • Linus Torvalds's avatar
      Merge tag 'tty-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 6463e54c
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are some small tty/serial driver fixes for 5.14-rc5 to resolve a
        number of reported problems.
      
        They include:
      
         - mips serial driver fixes
      
         - 8250 driver fixes for reported problems
      
         - fsl_lpuart driver fixes
      
         - other tiny driver fixes
      
        All have been in linux-next for a while with no reported problems"
      
      * tag 'tty-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: 8250_pci: Avoid irq sharing for MSI(-X) interrupts.
        serial: 8250_mtk: fix uart corruption issue when rx power off
        tty: serial: fsl_lpuart: fix the wrong return value in lpuart32_get_mctrl
        serial: 8250_pci: Enumerate Elkhart Lake UARTs via dedicated driver
        serial: 8250: fix handle_irq locking
        serial: tegra: Only print FIFO error message when an error occurs
        MIPS: Malta: Do not byte-swap accesses to the CBUS UART
        serial: 8250: Mask out floating 16/32-bit bus bits
        serial: max310x: Unprepare and disable clock in error path
      6463e54c
    • Linus Torvalds's avatar
      Merge tag 'usb-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 6a655547
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are some small USB driver fixes for 5.14-rc5. They resolve a
        number of small reported issues, including:
      
         - cdnsp driver fixes
      
         - usb serial driver fixes and device id updates
      
         - usb gadget hid fixes
      
         - usb host driver fixes
      
         - usb dwc3 driver fixes
      
         - other usb gadget driver fixes
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (21 commits)
        usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events
        usb: dwc3: gadget: Avoid runtime resume if disabling pullup
        usb: dwc3: gadget: Use list_replace_init() before traversing lists
        USB: serial: ftdi_sio: add device ID for Auto-M3 OP-COM v2
        USB: serial: pl2303: fix GT type detection
        USB: serial: option: add Telit FD980 composition 0x1056
        USB: serial: pl2303: fix HX type detection
        USB: serial: ch341: fix character loss at high transfer rates
        usb: cdnsp: Fix the IMAN_IE_SET and IMAN_IE_CLEAR macro
        usb: cdnsp: Fixed issue with ZLP
        usb: cdnsp: Fix incorrect supported maximum speed
        usb: cdns3: Fixed incorrect gadget state
        usb: gadget: f_hid: idle uses the highest byte for duration
        Revert "thunderbolt: Hide authorized attribute if router does not support PCIe tunnels"
        usb: otg-fsm: Fix hrtimer list corruption
        usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses
        usb: musb: Fix suspend and resume issues for PHYs on I2C and SPI
        usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers
        usb: gadget: f_hid: fixed NULL pointer dereference
        usb: gadget: remove leaked entry from udc driver list
        ...
      6a655547
  2. 07 Aug, 2021 6 commits
  3. 06 Aug, 2021 28 commits
    • Vincent Fu's avatar
      kyber: make trace_block_rq call consistent with documentation · fb7b9b02
      Vincent Fu authored
      The kyber ioscheduler calls trace_block_rq_insert() *after* the request
      is added to the queue but the documentation for trace_block_rq_insert()
      says that the call should be made *before* the request is added to the
      queue.  Move the tracepoint for the kyber ioscheduler so that it is
      consistent with the documentation.
      Signed-off-by: default avatarVincent Fu <vincent.fu@samsung.com>
      Link: https://lore.kernel.org/r/20210804194913.10497-1-vincent.fu@samsung.com
      Reviewed by: Adam Manzanares <a.manzanares@samsung.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      fb7b9b02
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · c9194f32
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "A regression fix, bug fix, and a comment cleanup for ext4"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix potential htree corruption when growing large_dir directories
        ext4: remove conflicting comment from __ext4_forget
        ext4: fix potential uninitialized access to retval in kmmpd
      c9194f32
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.14-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 2c4b1ec6
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "Fix tracepoint race between static_call and callback data
      
        As callbacks to a tracepoint are paired with the data that is passed
        in when the callback is registered to the tracepoint, it must have
        that data passed to the callback when the tracepoint is triggered,
        else bad things will happen. To keep the two together, they are both
        assigned to a tracepoint structure and added to an array. The
        tracepoint call site will dereference the structure (via RCU) and call
        the callback in that structure along with the data in that structure.
        This keeps the callback and data tightly coupled.
      
        Because of the overhead that retpolines have on tracepoint callbacks,
        if there's only one callback attached to a tracepoint (a common case),
        then it is called via a static call (code modified to do a direct call
        instead of an indirect call). But to implement this, the data had to
        be decoupled from the callback, as now the callback is implemented via
        a direct call from the static call and not an indirect call from the
        dereferenced structure.
      
        Note, the static call only calls a callback used when there's a single
        callback attached to the tracepoint. If more than one callback is
        attached to the same tracepoint, then the static call will call an
        iterator function that goes back to dereferencing the structure
        keeping the callback and its data tightly coupled again.
      
        Issues can arise when going from 0 callbacks to one, as the static
        call is assigned to the callback, and it must take care that the data
        passed to it is loaded before the static call calls the callback.
        Going from 1 to 2 callbacks is not an issue, as long as the static
        call is updated to the iterator before the tracepoint structure array
        is updated via RCU. Going from 2 to more or back down to 2 is not an
        issue as the iterator can handle all theses cases. But going from 2 to
        1, care must be taken as the static call is now calling a callback and
        the data that is loaded must be the data for that callback.
      
        Care was taken to ensure the callback and data would be in-sync, but
        after a bug was reported, it became clear that not enough was done to
        make sure that was the case. These changes address this.
      
        The first change is to compare the old and new data instead of the old
        and new callback, as it's the data that can corrupt the callback, even
        if the callback is the same (something getting freed).
      
        The next change is to convert these transitions into states, to make
        it easier to know when a synchronization is needed, and to perform
        those synchronizations. The problem with this patch is that it slows
        down disabling all events from under a second, to making it take over
        10 seconds to do the same work. But that is addressed in the final
        patch.
      
        The final patch uses the RCU state functions to keep track of the RCU
        state between the transitions, and only needs to perform the
        synchronization if an RCU synchronization hasn't been done already.
        This brings the performance of disabling all events back to its
        original value. That's because no synchronization is required between
        disabling tracepoints but is required when enabling a tracepoint after
        its been disabled. If an RCU synchronization happens after the
        tracepoint is disabled, and before it is re-enabled, there's no need
        to do the synchronization again.
      
        Both the second and third patch have subtle complexities that they are
        separated into two patches. But because the second patch causes such a
        regression in performance, the third patch adds a "Fixes" tag to the
        second patch, such that the two must be backported together and not
        just the second patch"
      
      * tag 'trace-v5.14-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracepoint: Use rcu get state and cond sync for static call updates
        tracepoint: Fix static call function vs data state mismatch
        tracepoint: static call: Compare data on transition from 2->1 callees
      2c4b1ec6
    • Linus Torvalds's avatar
      Merge tag 'pm-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 9917de73
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "Fix a recent regression in the timer events oriented (TEO) cpuidle
        governor causing it to misbehave when idle state 0 is disabled and
        rename two local variables for improved clarity on top of that"
      
      * tag 'pm-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpuidle: teo: Rename two local variables in teo_select()
        cpuidle: teo: Fix alternative idle state lookup
      9917de73
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 5d609689
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Revert a recent ACPICA commit causing boot issues to appear on some
        systems"
      
      * tag 'acpi-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Revert "ACPICA: Fix memory leak caused by _CID repair function"
      5d609689
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 3dc064d2
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Lots of small fixes for Arm SoCs this time, nothing too worrying:
      
         - omap/beaglebone boot regression fix in gpt12 timer
      
         - revert for i.mx8 soc driver breaking as a platform_driver
      
         - kexec/kdump fixes for op-tee
      
         - various fixes for incorrect DT settings on imx, mvebu, omap, stm32,
           and tegra causing problems.
      
         - device tree fixes for static checks in nomadik, versatile, stm32
      
         - code fixes for issues found in build testing and with static
           checking on tegra, ixp4xx, imx, omap"
      
      * tag 'soc-fixes-5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (36 commits)
        soc: ixp4xx/qmgr: fix invalid __iomem access
        soc: ixp4xx: fix printing resources
        ARM: ixp4xx: goramo_mlr depends on old PCI driver
        ARM: ixp4xx: fix compile-testing soc drivers
        soc/tegra: Make regulator couplers depend on CONFIG_REGULATOR
        ARM: dts: nomadik: Fix up interrupt controller node names
        ARM: dts: stm32: Fix touchscreen IRQ line assignment on DHCOM
        ARM: dts: stm32: Disable LAN8710 EDPD on DHCOM
        ARM: dts: stm32: Prefer HW RTC on DHCOM SoM
        omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator
        ARM: dts: am437x-l4: fix typo in can@0 node
        ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
        bus: ti-sysc: AM3: RNG is GP only
        ARM: omap2+: hwmod: fix potential NULL pointer access
        arm64: dts: armada-3720-turris-mox: remove mrvl,i2c-fast-mode
        arm64: dts: armada-3720-turris-mox: fixed indices for the SDHC controllers
        ARM: dts: imx: Swap M53Menlo pinctrl_power_button/pinctrl_power_out pins
        ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init
        ARM: dts: colibri-imx6ull: limit SDIO clock to 25MHz
        arm64: dts: ls1028: sl28: fix networking for variant 2
        ...
      3dc064d2
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 73f25536
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "It's all pretty minor but the main fix is sorting out how we deal with
        return values from 32-bit system calls as audit expects error codes to
        be sign-extended to 64 bits
      
        Summary:
      
         - Fix extension/truncation of return values from 32-bit system calls
      
         - Fix interaction between unwinding and tracing
      
         - Fix spurious toolchain warning emitted during make
      
         - Fix Kconfig help text for RANDOMIZE_MODULE_REGION_FULL"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: stacktrace: avoid tracing arch_stack_walk()
        arm64: stacktrace: fix comment
        arm64: fix the doc of RANDOMIZE_MODULE_REGION_FULL
        arm64: move warning about toolchains to archprepare
        arm64: fix compat syscall return truncation
      73f25536
    • Linus Torvalds's avatar
      Merge tag 'mips-fixes_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · cb407fc8
      Linus Torvalds authored
      Pull MIPS fix from Thomas Bogendoerfer:
       "Fix PMD accounting change"
      
      * tag 'mips-fixes_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
        MIPS: check return value of pgtable_pmd_page_ctor
      cb407fc8
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 894d6f40
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A small collection of fixes for SPI, small mostly driver specific
        things plus a fix for module autoloading which hadn't been working
        properly for DT systems"
      
      * tag 'spi-fix-v5.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: cadence-quadspi: Fix check condition for DTR ops
        spi: mediatek: Fix fifo transfer
        spi: imx: mx51-ecspi: Fix CONFIGREG delay comment
        spi: imx: mx51-ecspi: Fix low-speed CONFIGREG delay calculation
        spi: update modalias_show after of_device_uevent_modalias support
        spi: meson-spicc: fix memory leak in meson_spicc_remove
        spi: spi-mux: Add module info needed for autoloading
      894d6f40
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 4f1be396
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
       "A bunch of driver fixes, notably:
      
         - idxd driver fixes for submission race, driver remove sequence,
           setup sequence for MSIXPERM, array index and updating descriptor
           vector
      
         - usb-dmac, pm reference leak fix
      
         - xilinx_dma, read-after-free fix
      
         - uniphier-xdmac fix for using atomic readl_poll_timeout_atomic()
      
         - of-dma, router_xlate to return
      
         - imx-dma, generic dma fix"
      
      * tag 'dmaengine-fix-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        dmaengine: imx-dma: configure the generic DMA type to make it work
        dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
        dmaengine: stm32-dmamux: Fix PM usage counter unbalance in stm32 dmamux ops
        dmaengine: stm32-dma: Fix PM usage counter imbalance in stm32 dma ops
        dmaengine: uniphier-xdmac: Use readl_poll_timeout_atomic() in atomic state
        dmaengine: idxd: fix submission race window
        dmaengine: idxd: fix sequence for pci driver remove() and shutdown()
        dmaengine: idxd: fix desc->vector that isn't being updated
        dmaengine: idxd: fix setup sequence for MSIXPERM table
        dmaengine: idxd: fix array index when int_handles are being used
        dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
        dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
      4f1be396
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · b4b927fc
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "Several small recent regressions - rather more than usual, but nothing
        too scary. Good to know people are testing.
      
         - Typo causing incorrect operation of the mlx5 mkey cache
           expiration
      
         - Revert a CM patch that is breaking some ULPs
      
         - Typo breaking SRQ in rxe
      
         - Revert a rxe patch breaking icrc calculation
      
         - Static checker warning about unbalanced locking in hns
      
         - Subtle cxgb4 regression from a recent atomic to refcount
           conversion"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/iw_cxgb4: Fix refcount underflow while destroying cqs.
        RDMA/hns: Fix the double unlock problem of poll_sem
        RDMA/rxe: Restore setting tot_len in the IPv4 header
        RDMA/rxe: Use the correct size of wqe when processing SRQ
        RDMA/cma: Revert INIT-INIT patch
        RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently
      b4b927fc
    • Linus Torvalds's avatar
      Merge tag 'sound-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 484faec8
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes:
      
         - A few regression fixes (PCM core fixes, USB-audio fixes)
      
         - Follow up fixes for the USB-audio mixer changes in this cycle
      
         - A long-standing ALSA sequencer race bug fix
      
         - Usual device-specific quirks for HD- and USB-audio"
      
      * tag 'sound-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: seq: Fix racy deletion of subscriber
        ALSA: memalloc: Fix regression with SNDRV_DMA_TYPE_CONTINUOUS
        ALSA: pcm - fix mmap capability check for the snd-dummy driver
        ALSA: usb-audio: Avoid unnecessary or invalid connector selection at resume
        ALSA: hda/realtek: add mic quirk for Acer SF314-42
        ALSA: usb-audio: Add registration quirk for JBL Quantum 600
        ALSA: hda/realtek: Fix headset mic for Acer SWIFT SF314-56 (ALC256)
        ALSA: usb-audio: Fix superfluous autosuspend recovery
        ALSA: usb-audio: fix incorrect clock source setting
        ALSA: scarlett2: Fix line out/speaker switching notifications
        ALSA: scarlett2: Correct channel mute status after mute button pressed
        ALSA: scarlett2: Fix Direct Monitor control name for 2i2
        ALSA: scarlett2: Fix Mute/Dim/MSD Mode control names
      484faec8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-08-06' of git://anongit.freedesktop.org/drm/drm · 1254f05c
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly fixes pull, live from a Brisbane lockdown with kids at
        home.
      
        A big bunch of scattered amdgpu fixes, but they are all pretty small,
        minor i915 fixes, kmb, and one vmwgfx regression fixes, all pretty
        quiet for this time.
      
        amdgpu:
         - Fix potential out-of-bounds read when updating GPUVM mapping
         - Renoir powergating fix
         - Yellow Carp updates
         - 8K fix for navi1x
         - Beige Goby updates and new DIDs
         - Fix DMUB firmware version output
         - EDP fix
         - pmops config fix
      
        i915:
         - Call i915_globals_exit if pci_register_device fails
         - (follow on fix for section mismatch)
         - Correct SFC_DONE register offset
      
        kmb:
         - DMA fix
         - driver date/version macros
      
        vmwgfx:
         - Fix I/O memory access on 64-bit systems"
      
      * tag 'drm-fixes-2021-08-06' of git://anongit.freedesktop.org/drm/drm:
        drm/amdgpu: add DID for beige goby
        drm/amdgpu/display: fix DMUB firmware version info
        drm/amd/display: workaround for hard hang on HPD on native DP
        drm/amd/display: Fix resetting DCN3.1 HW when resuming from S4
        drm/amd/display: Increase stutter watermark for dcn303
        drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
        drm/amd/display: Assume LTTPR interop for DCN31+
        drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled
        drm/amd/pm: update yellow carp pmfw interface version
        drm/i915: fix i915_globals_exit() section mismatch error
        drm/i915: Call i915_globals_exit() if pci_register_device() fails
        drm/i915: Correct SFC_DONE register offset
        drm/vmwgfx: Fix a 64bit regression on svga3
        drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.
        drm/amdgpu: Fix out-of-bounds read when update mapping
        drm/kmb: Define driver date and major/minor version
        drm/kmb: Enable LCD DMA for low TVDDCV
      1254f05c
    • Theodore Ts'o's avatar
      ext4: fix potential htree corruption when growing large_dir directories · 877ba3f7
      Theodore Ts'o authored
      Commit b5776e75 ("ext4: fix potential htree index checksum
      corruption) removed a required restart when multiple levels of index
      nodes need to be split.  Fix this to avoid directory htree corruptions
      when using the large_dir feature.
      
      Cc: stable@kernel.org # v5.11
      Cc: Благодаренко Артём <artem.blagodarenko@gmail.com>
      Fixes: b5776e75 ("ext4: fix potential htree index checksum corruption)
      Reported-by: default avatarDenis <denis@voxelsoft.com>
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      877ba3f7
    • Mathieu Desnoyers's avatar
      tracepoint: Use rcu get state and cond sync for static call updates · 7b40066c
      Mathieu Desnoyers authored
      State transitions from 1->0->1 and N->2->1 callbacks require RCU
      synchronization. Rather than performing the RCU synchronization every
      time the state change occurs, which is quite slow when many tracepoints
      are registered in batch, instead keep a snapshot of the RCU state on the
      most recent transitions which belong to a chain, and conditionally wait
      for a grace period on the last transition of the chain if one g.p. has
      not elapsed since the last snapshot.
      
      This applies to both RCU and SRCU.
      
      This brings the performance regression caused by commit 231264d6
      ("Fix: tracepoint: static call function vs data state mismatch") back to
      what it was originally.
      
      Before this commit:
      
        # trace-cmd start -e all
        # time trace-cmd start -p nop
      
        real	0m10.593s
        user	0m0.017s
        sys	0m0.259s
      
      After this commit:
      
        # trace-cmd start -e all
        # time trace-cmd start -p nop
      
        real	0m0.878s
        user	0m0.000s
        sys	0m0.103s
      
      Link: https://lkml.kernel.org/r/20210805192954.30688-1-mathieu.desnoyers@efficios.com
      Link: https://lore.kernel.org/io-uring/4ebea8f0-58c9-e571-fd30-0ce4f6f09c70@samba.org/
      
      Cc: stable@vger.kernel.org
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Stefan Metzmacher <metze@samba.org>
      Fixes: 231264d6 ("Fix: tracepoint: static call function vs data state mismatch")
      Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Reviewed-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      7b40066c
    • Hao Xu's avatar
      io-wq: fix lack of acct->nr_workers < acct->max_workers judgement · 21698274
      Hao Xu authored
      There should be this judgement before we create an io-worker
      
      Fixes: 685fe7fe ("io-wq: eliminate the need for a manager thread")
      Signed-off-by: default avatarHao Xu <haoxu@linux.alibaba.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      21698274
    • Hao Xu's avatar
      io-wq: fix no lock protection of acct->nr_worker · 3d4e4fac
      Hao Xu authored
      There is an acct->nr_worker visit without lock protection. Think about
      the case: two callers call io_wqe_wake_worker(), one is the original
      context and the other one is an io-worker(by calling
      io_wqe_enqueue(wqe, linked)), on two cpus paralelly, this may cause
      nr_worker to be larger than max_worker.
      Let's fix it by adding lock for it, and let's do nr_workers++ before
      create_io_worker. There may be a edge cause that the first caller fails
      to create an io-worker, but the second caller doesn't know it and then
      quit creating io-worker as well:
      
      say nr_worker = max_worker - 1
              cpu 0                        cpu 1
         io_wqe_wake_worker()          io_wqe_wake_worker()
            nr_worker < max_worker
            nr_worker++
            create_io_worker()         nr_worker == max_worker
               failed                  return
            return
      
      But the chance of this case is very slim.
      
      Fixes: 685fe7fe ("io-wq: eliminate the need for a manager thread")
      Signed-off-by: default avatarHao Xu <haoxu@linux.alibaba.com>
      [axboe: fix unconditional create_io_worker() call]
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      3d4e4fac
    • Dakshaja Uppalapati's avatar
      RDMA/iw_cxgb4: Fix refcount underflow while destroying cqs. · 2638a323
      Dakshaja Uppalapati authored
      Previous atomic increment/decrement logic expects the atomic count to be
      '0' after the final decrement.
      
      Replacing atomic count with refcount does not allow that, as
      refcount_dec() considers count of 1 as underflow and triggers a kernel
      splat.
      
      Fix the current refcount logic by using the usual pattern of decrementing
      the refcount and test if it is '0' on the final deref in
      c4iw_destroy_cq(). Use wait_for_completion() instead of wait_event().
      
      Fixes: 7183451f ("RDMA/cxgb4: Use refcount_t instead of atomic_t for reference counting")
      Link: https://lore.kernel.org/r/1628167412-12114-1-git-send-email-dakshaja@chelsio.comSigned-off-by: default avatarDakshaja Uppalapati <dakshaja@chelsio.com>
      Reviewed-by: default avatarPotnuri Bharat Teja <bharat@chelsio.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      2638a323
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.14-2021-08-05' of... · d186f9c2
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-5.14-2021-08-05' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.14-2021-08-05:
      
      amdgpu:
      - Fix potential out-of-bounds read when updating GPUVM mapping
      - Renoir powergating fix
      - Yellow Carp updates
      - 8K fix for navi1x
      - Beige Goby updates and new DIDs
      - Fix DMUB firmware version output
      - EDP fix
      - pmops config fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210806011635.1055841-1-alexander.deucher@amd.com
      d186f9c2
    • Chengming Gui's avatar
      drm/amdgpu: add DID for beige goby · e00f543d
      Chengming Gui authored
      Add device ids.
      Signed-off-by: default avatarChengming Gui <Jack.Gui@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      e00f543d
    • Shirish S's avatar
      drm/amdgpu/display: fix DMUB firmware version info · 0e99e960
      Shirish S authored
      DMUB firmware info is printed before it gets initialized.
      Correct this order to ensure true value is conveyed.
      Signed-off-by: default avatarShirish S <shirish.s@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      0e99e960
    • Qingqing Zhuo's avatar
      drm/amd/display: workaround for hard hang on HPD on native DP · c4152b29
      Qingqing Zhuo authored
      [Why]
      HPD disable and enable sequences are not mutually exclusive
      on Linux. For HPDs that spans over 1s (i.e. HPD low = 1s),
      part of the disable sequence (specifically, a request to SMU
      to lower refclk) could come right before the call to PHY
      enable, causing DMUB to access an unresponsive PHY
      and thus a hard hang on the system.
      
      [How]
      Disable 48mhz refclk off on native DP.
      Reviewed-by: default avatarHersen Wu <hersenxs.wu@amd.com>
      Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarQingqing Zhuo <qingqing.zhuo@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      c4152b29
    • Jude Shih's avatar
      drm/amd/display: Fix resetting DCN3.1 HW when resuming from S4 · d5c5ac3a
      Jude Shih authored
      [Why] On S4 resume we also need to fix detection of when to reload DMCUB
      firmware because we're currently using the VBIOS version which isn't
      compatible with the driver version.
      
      [How] Update the hardware init check for DCN31 since it's the ASIC that
      has this issue.
      Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
      Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarJude Shih <jude.shih@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d5c5ac3a
    • Bing Guo's avatar
      drm/amd/display: Increase stutter watermark for dcn303 · cd7b0531
      Bing Guo authored
      [Why&How]
      Hardware team suggested to use SRExitTime= 35.5us as w/a to prevent
      underflow in certain modes.
      Reviewed-by: default avatarMartin Leung <martin.leung@amd.com>
      Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarBing Guo <bing.guo@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      cd7b0531
    • Bing Guo's avatar
      drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X · 06050a0f
      Bing Guo authored
      Why:
      In DCN2x, HW doesn't automatically divide MASTER_UPDATE_LOCK_DB_X
      by the number of pipes ODM Combined.
      
      How:
      Set MASTER_UPDATE_LOCK_DB_X to the value that is adjusted by the
      number of pipes ODM Combined.
      Reviewed-by: default avatarMartin Leung <martin.leung@amd.com>
      Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarBing Guo <bing.guo@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      06050a0f
    • Wesley Chalmers's avatar
      drm/amd/display: Assume LTTPR interop for DCN31+ · ffb9ee8e
      Wesley Chalmers authored
      [WHY]
      For DCN31 onward, LTTPR is to be enabled and set to Transparent by
      VBIOS.  Driver is to assume that VBIOS has done this without needing to
      check the VBIOS interop bit.
      
      [HOW]
      Add LTTPR enable and interop VBIOS bits into dc->caps, and force-set the
      interop bit to true for DCN31+.
      Reviewed-by: default avatarJun Lei <Jun.Lei@amd.com>
      Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarWesley Chalmers <Wesley.Chalmers@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      ffb9ee8e
    • Randy Dunlap's avatar
      drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled · 5706cb3c
      Randy Dunlap authored
      'pm_suspend_target_state' is only available when CONFIG_PM_SLEEP
      is set/enabled. OTOH, when both SUSPEND and HIBERNATION are not set,
      PM_SLEEP is not set, so this variable cannot be used.
      
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function ‘amdgpu_acpi_is_s0ix_active’:
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: ‘pm_suspend_target_state’ undeclared (first use in this function); did you mean ‘__KSYM_pm_suspend_target_state’?
          return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 __KSYM_pm_suspend_target_state
      
      Also use shorter IS_ENABLED(CONFIG_foo) notation for checking the
      2 config symbols.
      
      Fixes: 91e27371 ("drm/amdgpu: Check pmops for desired suspend state")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-next@vger.kernel.org
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      5706cb3c
    • Xiaomeng Hou's avatar
      drm/amd/pm: update yellow carp pmfw interface version · 23c0ebac
      Xiaomeng Hou authored
      Correct yellow carp driver-PMFW interface version to v4.
      Signed-off-by: default avatarXiaomeng Hou <Xiaomeng.Hou@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      23c0ebac
  4. 05 Aug, 2021 1 commit
    • Mathieu Desnoyers's avatar
      tracepoint: Fix static call function vs data state mismatch · 231264d6
      Mathieu Desnoyers authored
      On a 1->0->1 callbacks transition, there is an issue with the new
      callback using the old callback's data.
      
      Considering __DO_TRACE_CALL:
      
              do {                                                            \
                      struct tracepoint_func *it_func_ptr;                    \
                      void *__data;                                           \
                      it_func_ptr =                                           \
                              rcu_dereference_raw((&__tracepoint_##name)->funcs); \
                      if (it_func_ptr) {                                      \
                              __data = (it_func_ptr)->data;                   \
      
      ----> [ delayed here on one CPU (e.g. vcpu preempted by the host) ]
      
                              static_call(tp_func_##name)(__data, args);      \
                      }                                                       \
              } while (0)
      
      It has loaded the tp->funcs of the old callback, so it will try to use the old
      data. This can be fixed by adding a RCU sync anywhere in the 1->0->1
      transition chain.
      
      On a N->2->1 transition, we need an rcu-sync because you may have a
      sequence of 3->2->1 (or 1->2->1) where the element 0 data is unchanged
      between 2->1, but was changed from 3->2 (or from 1->2), which may be
      observed by the static call. This can be fixed by adding an
      unconditional RCU sync in transition 2->1.
      
      Note, this fixes a correctness issue at the cost of adding a tremendous
      performance regression to the disabling of tracepoints.
      
      Before this commit:
      
        # trace-cmd start -e all
        # time trace-cmd start -p nop
      
        real	0m0.778s
        user	0m0.000s
        sys	0m0.061s
      
      After this commit:
      
        # trace-cmd start -e all
        # time trace-cmd start -p nop
      
        real	0m10.593s
        user	0m0.017s
        sys	0m0.259s
      
      A follow up fix will introduce a more lightweight scheme based on RCU
      get_state and cond_sync, that will return the performance back to what it
      was. As both this change and the lightweight versions are complex on their
      own, for bisecting any issues that this may cause, they are kept as two
      separate changes.
      
      Link: https://lkml.kernel.org/r/20210805132717.23813-3-mathieu.desnoyers@efficios.com
      Link: https://lore.kernel.org/io-uring/4ebea8f0-58c9-e571-fd30-0ce4f6f09c70@samba.org/
      
      Cc: stable@vger.kernel.org
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Stefan Metzmacher <metze@samba.org>
      Fixes: d25e37d8 ("tracepoint: Optimize using static_call()")
      Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      231264d6