1. 20 Jul, 2024 8 commits
    • Huacai Chen's avatar
      LoongArch: Add architectural preparation for CPUFreq · f60d251b
      Huacai Chen authored
      Add architectural preparation for CPUFreq driver, including: Kconfig,
      register definition and platform device registration.
      
      Some of LoongArch processors support DVFS, their IOCSR.FEATURES has
      IOCSRF_FREQSCALE set. And they has a micro-core in the package called
      SMC (System Management Controller) to scale frequency, voltage, etc.
      Signed-off-by: default avatarBinbin Zhou <zhoubinbin@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      f60d251b
    • Huacai Chen's avatar
      LoongArch: Add writecombine support for DMW-based ioremap() · 8e02c3b7
      Huacai Chen authored
      Currently, only TLB-based ioremap() support writecombine, so add the
      counterpart for DMW-based ioremap() with help of DMW2. The base address
      (WRITECOMBINE_BASE) is configured as 0xa000000000000000.
      
      DMW3 is unused by kernel now, however firmware may leave garbage in them
      and interfere kernel's address mapping. So clear it as necessary.
      
      BTW, centralize the DMW configuration to macro SETUP_DMWINS.
      Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      8e02c3b7
    • Huacai Chen's avatar
      LoongArch: Add ARCH_HAS_DEBUG_VM_PGTABLE support · 614d7e99
      Huacai Chen authored
      Add ARCH_HAS_DEBUG_VM_PGTABLE selection in Kconfig, in order to make
      corresponding vm debug features usable on LoongArch. Also update the
      corresponding arch-support.txt document.
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      614d7e99
    • Huacai Chen's avatar
      LoongArch: Add ARCH_HAS_PTE_DEVMAP support · b7a2750e
      Huacai Chen authored
      In order for things like get_user_pages() to work on ZONE_DEVICE memory,
      we need a software PTE bit to identify device-backed PFNs.  Hook this up
      along with the relevant helpers to join in with ARCH_HAS_PTE_DEVMAP.
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      b7a2750e
    • Jinjie Ruan's avatar
      LoongArch: Add RANDOMIZE_KSTACK_OFFSET support · a0f7085f
      Jinjie Ruan authored
      Add support of kernel stack offset randomization while handling syscall,
      the offset is defaultly limited by KSTACK_OFFSET_MAX().
      
      In order to avoid triggering stack canaries (due to __builtin_alloca())
      and slowing down the entry path, use __no_stack_protector attribute to
      disable stack protector for do_syscall() at function level.
      
      With this patch, the REPORT_STACK test show that:
      
      	`loongarch64 bits of stack entropy: 7`
      Reviewed-by: default avatarKees Cook <kees@kernel.org>
      Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      a0f7085f
    • Huacai Chen's avatar
      LoongArch: Add irq_work support via self IPIs · 08f417db
      Huacai Chen authored
      Add irq_work support for LoongArch via self IPIs. This make it possible
      to run works in hardware interrupt context, which is a prerequisite for
      NOHZ_FULL.
      
      Implement:
       - arch_irq_work_raise()
       - arch_irq_work_has_interrupt()
      Reviewed-by: default avatarGuo Ren <guoren@kernel.org>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      08f417db
    • Huacai Chen's avatar
      LoongArch: Always enumerate MADT and setup logical-physical CPU mapping · 12d3b559
      Huacai Chen authored
      Some drivers want to use cpu_logical_map(), early_cpu_to_node() and some
      other CPU mapping APIs, even if we use "nr_cpus=1" to hard limit the CPU
      number. This is strongly required for the multi-bridges machines.
      
      Currently, we stop parsing the MADT if the nr_cpus limit is reached, but
      to achieve the above goal we should always enumerate the MADT table and
      setup logical-physical CPU mapping whether there is a nr_cpus limit.
      
      Rework the MADT enumeration:
      
      1. Define a flag "cpu_enumerated" to distinguish the first enumeration
         (cpu_enumerated=0) and the physical hotplug case (cpu_enumerated=1)
         for set_processor_mask().
      
      2. If cpu_enumerated=0, stop parsing only when NR_CPUS limit is reached,
         so we can setup logical-physical CPU mapping; if cpu_enumerated=1,
         stop parsing when nr_cpu_ids limit is reached, so we can avoid some
         runtime bugs. Once logical-physical CPU mapping is setup, we will let
         cpu_enumerated=1.
      
      3. Use find_first_zero_bit() instead of cpumask_next_zero() to find the
         next zero bit (free logical CPU id) in the cpu_present_mask, because
         cpumask_next_zero() will stop at nr_cpu_ids.
      
      4. Only touch cpu_possible_mask if cpu_enumerated=0, this is in order to
         avoid some potential crashes, because cpu_possible_mask is marked as
         __ro_after_init.
      
      5. In prefill_possible_map(), clear cpu_present_mask bits greater than
         nr_cpu_ids, in order to avoid a CPU be "present" but not "possible".
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      12d3b559
    • Huacai Chen's avatar
      LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h · 7697a0fe
      Huacai Chen authored
      Chromium sandbox apparently wants to deny statx [1] so it could properly
      inspect arguments after the sandboxed process later falls back to fstat.
      Because there's currently not a "fd-only" version of statx, so that the
      sandbox has no way to ensure the path argument is empty without being
      able to peek into the sandboxed process's memory. For architectures able
      to do newfstatat though, glibc falls back to newfstatat after getting
      -ENOSYS for statx, then the respective SIGSYS handler [2] takes care of
      inspecting the path argument, transforming allowed newfstatat's into
      fstat instead which is allowed and has the same type of return value.
      
      But, as LoongArch is the first architecture to not have fstat nor
      newfstatat, the LoongArch glibc does not attempt falling back at all
      when it gets -ENOSYS for statx -- and you see the problem there!
      
      Actually, back when the LoongArch port was under review, people were
      aware of the same problem with sandboxing clone3 [3], so clone was
      eventually kept. Unfortunately it seemed at that time no one had noticed
      statx, so besides restoring fstat/newfstatat to LoongArch uapi (and
      postponing the problem further), it seems inevitable that we would need
      to tackle seccomp deep argument inspection.
      
      However, this is obviously a decision that shouldn't be taken lightly,
      so we just restore fstat/newfstatat by defining __ARCH_WANT_NEW_STAT
      in unistd.h. This is the simplest solution for now, and so we hope the
      community will tackle the long-standing problem of seccomp deep argument
      inspection in the future [4][5].
      
      Also add "newstat" to syscall_abis_64 in Makefile.syscalls due to
      upstream asm-generic changes.
      
      More infomation please reading this thread [6].
      
      [1] https://chromium-review.googlesource.com/c/chromium/src/+/2823150
      [2] https://chromium.googlesource.com/chromium/src/sandbox/+/c085b51940bd/linux/seccomp-bpf-helpers/sigsys_handlers.cc#355
      [3] https://lore.kernel.org/linux-arch/20220511211231.GG7074@brightrain.aerifal.cx/
      [4] https://lwn.net/Articles/799557/
      [5] https://lpc.events/event/4/contributions/560/attachments/397/640/deep-arg-inspection.pdf
      [6] https://lore.kernel.org/loongarch/20240226-granit-seilschaft-eccc2433014d@brauner/T/#t
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      7697a0fe
  2. 17 Jul, 2024 1 commit
  3. 14 Jul, 2024 7 commits
  4. 13 Jul, 2024 6 commits
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 4d145e3f
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Fixes for the I2C testunit, the Renesas R-Car driver and some
        MAINTAINERS corrections"
      
      * tag 'i2c-for-6.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: testunit: avoid re-issued work after read message
        i2c: rcar: ensure Gen3+ reset does not disturb local targets
        i2c: mark HostNotify target address as used
        i2c: testunit: correct Kconfig description
        MAINTAINERS: VIRTIO I2C loses a maintainer, gains a reviewer
        MAINTAINERS: delete entries for Thor Thayer
        i2c: rcar: clear NO_RXDMA flag after resetting
        i2c: rcar: bring hardware to known state when probing
      4d145e3f
    • Linus Torvalds's avatar
      Merge tag '6.10-rc7-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6 · d0d0cd38
      Linus Torvalds authored
      Pull smb client fix from Steve French:
       "Small fix, also for stable"
      
      * tag '6.10-rc7-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix setting SecurityFlags to true
      d0d0cd38
    • Steve French's avatar
      cifs: fix setting SecurityFlags to true · d2346e28
      Steve French authored
      If you try to set /proc/fs/cifs/SecurityFlags to 1 it
      will set them to CIFSSEC_MUST_NTLMV2 which no longer is
      relevant (the less secure ones like lanman have been removed
      from cifs.ko) and is also missing some flags (like for
      signing and encryption) and can even cause mount to fail,
      so change this to set it to Kerberos in this case.
      
      Also change the description of the SecurityFlags to remove mention
      of flags which are no longer supported.
      
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d2346e28
    • Wolfram Sang's avatar
      Merge tag 'i2c-host-fixes-6.10-rc8' of... · 3fdd2d21
      Wolfram Sang authored
      Merge tag 'i2c-host-fixes-6.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
      
      This tag includes three fixes for the Renesas R-Car driver:
      
       1. Ensures the device is in a known state after probing.
       2. Allows clearing the NO_RXDMA flag after a reset.
       3. Forces a reset before any transfer on Gen3+ platforms to
          prevent disruption of the configuration during parallel
          transfers.
      3fdd2d21
    • Linus Torvalds's avatar
      Merge tag 'net-6.10-rc8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 528dd46d
      Linus Torvalds authored
      Pull more networking fixes from Jakub Kicinski:
       "A quick follow up to yesterday's pull. We got a regressions report for
        the bnxt patch as soon as it got to your tree. The ethtool fix is also
        good to have, although it's an older regression.
      
        Current release - regressions:
      
         - eth: bnxt_en: fix crash in bnxt_get_max_rss_ctx_ring() on older HW
           when user tries to decrease the ring count
      
        Previous releases - regressions:
      
         - ethtool: fix RSS setting, accept "no change" setting if the driver
           doesn't support the new features
      
         - eth: i40e: remove needless retries of NVM update, don't wait 20min
           when we know the firmware update won't succeed"
      
      * tag 'net-6.10-rc8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net:
        bnxt_en: Fix crash in bnxt_get_max_rss_ctx_ring()
        octeontx2-af: fix issue with IPv4 match for RSS
        octeontx2-af: fix issue with IPv6 ext match for RSS
        octeontx2-af: fix detection of IP layer
        octeontx2-af: fix a issue with cpt_lf_alloc mailbox
        octeontx2-af: replace cpt slot with lf id on reg write
        i40e: fix: remove needless retries of NVM update
        net: ethtool: Fix RSS setting
      528dd46d
    • Michael Chan's avatar
      bnxt_en: Fix crash in bnxt_get_max_rss_ctx_ring() · f7ce5eb2
      Michael Chan authored
      On older chips not supporting multiple RSS contexts, reducing
      ethtool channels will crash:
      
      BUG: kernel NULL pointer dereference, address: 00000000000000b8
      PGD 0 P4D 0
      Oops: Oops: 0000 [#1] PREEMPT SMP PTI
      CPU: 1 PID: 7032 Comm: ethtool Tainted: G S                 6.10.0-rc4 #1
      Hardware name: Dell Inc. PowerEdge R730/072T6D, BIOS 2.4.3 01/17/2017
      RIP: 0010:bnxt_get_max_rss_ctx_ring+0x4c/0x90 [bnxt_en]
      Code: c3 d3 eb 4c 8b 83 38 01 00 00 48 8d bb 38 01 00 00 4c 39 c7 74 42 41 8d 54 24 ff 31 c0 0f b7 d2 4c 8d 4c 12 02 66 85 ed 74 1d <49> 8b 90 b8 00 00 00 49 8d 34 11 0f b7 0a 66 39 c8 0f 42 c1 48 83
      RSP: 0018:ffffaaa501d23ba8 EFLAGS: 00010202
      RAX: 0000000000000000 RBX: ffff8efdf600c940 RCX: 0000000000000000
      RDX: 000000000000007f RSI: ffffffffacf429c4 RDI: ffff8efdf600ca78
      RBP: 0000000000000080 R08: 0000000000000000 R09: 0000000000000100
      R10: 0000000000000001 R11: ffffaaa501d238c0 R12: 0000000000000080
      R13: 0000000000000000 R14: ffff8efdf600c000 R15: 0000000000000006
      FS:  00007f977a7d2740(0000) GS:ffff8f041f840000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 00000000000000b8 CR3: 00000002320aa004 CR4: 00000000003706f0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      Call Trace:
      <TASK>
      ? __die_body+0x15/0x60
      ? page_fault_oops+0x157/0x440
      ? do_user_addr_fault+0x60/0x770
      ? _raw_spin_lock_irqsave+0x12/0x40
      ? exc_page_fault+0x61/0x120
      ? asm_exc_page_fault+0x22/0x30
      ? bnxt_get_max_rss_ctx_ring+0x4c/0x90 [bnxt_en]
      ? bnxt_get_max_rss_ctx_ring+0x25/0x90 [bnxt_en]
      bnxt_set_channels+0x9d/0x340 [bnxt_en]
      ethtool_set_channels+0x14b/0x210
      __dev_ethtool+0xdf8/0x2890
      ? preempt_count_add+0x6a/0xa0
      ? percpu_counter_add_batch+0x23/0x90
      ? filemap_map_pages+0x417/0x4a0
      ? avc_has_extended_perms+0x185/0x420
      ? __pfx_udp_ioctl+0x10/0x10
      ? sk_ioctl+0x55/0xf0
      ? kmalloc_trace_noprof+0xe0/0x210
      ? dev_ethtool+0x54/0x170
      dev_ethtool+0xa2/0x170
      dev_ioctl+0xbe/0x530
      sock_do_ioctl+0xa3/0xf0
      sock_ioctl+0x20d/0x2e0
      
      bp->rss_ctx_list is not initialized if the chip or firmware does not
      support multiple RSS contexts.  Fix it by adding a check in
      bnxt_get_max_rss_ctx_ring() before proceeding to reference
      bp->rss_ctx_list.
      
      Fixes: 0d1b7d6c ("bnxt: fix crashes when reducing ring count with active RSS contexts")
      Reported-by: default avatarBreno Leitao <leitao@debian.org>
      Link: https://lore.kernel.org/netdev/ZpFEJeNpwxW1aW9k@gmail.com/Reviewed-by: default avatarAndy Gospodarek <andrew.gospodarek@broadcom.com>
      Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
      Link: https://patch.msgid.link/20240712175318.166811-1-michael.chan@broadcom.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f7ce5eb2
  5. 12 Jul, 2024 18 commits
    • Linus Torvalds's avatar
      Merge tag 'for-6.10-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 975f3b6d
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "Fix a regression in extent map shrinker behaviour.
      
        In the past weeks we got reports from users that there are huge
        latency spikes or freezes. This was bisected to newly added shrinker
        of extent maps (it was added to fix a build up of the structures in
        memory).
      
        I'm assuming that the freezes would happen to many users after release
        so I'd like to get it merged now so it's in 6.10. Although the diff
        size is not small the changes are relatively straightforward, the
        reporters verified the fixes and we did testing on our side.
      
        The fixes:
      
         - adjust behaviour under memory pressure and check lock or scheduling
           conditions, bail out if needed
      
         - synchronize tracking of the scanning progress so inode ranges are
           not skipped or work duplicated
      
         - do a delayed iput when scanning a root so evicting an inode does
           not slow things down in case of lots of dirty data, also fix
           lockdep warning, a deadlock could happen when writing the dirty
           data would need to start a transaction"
      
      * tag 'for-6.10-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: avoid races when tracking progress for extent map shrinking
        btrfs: stop extent map shrinker if reschedule is needed
        btrfs: use delayed iput during extent map shrinking
      975f3b6d
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.10-rc8' of https://github.com/ceph/ceph-client · a52ff901
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A fix for a possible use-after-free following "rbd unmap" or "umount"
        marked for stable and two kernel-doc fixups"
      
      * tag 'ceph-for-6.10-rc8' of https://github.com/ceph/ceph-client:
        libceph: fix crush_choose_firstn() kernel-doc warnings
        libceph: suppress crush_choose_indep() kernel-doc warnings
        libceph: fix race between delayed_work() and ceph_monc_stop()
      a52ff901
    • Linus Torvalds's avatar
      Merge tag 'pmdomain-v6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm · ac6a9e07
      Linus Torvalds authored
      Pull pmdomain fix from Ulf Hansson:
      
       - qcom: Skip retention level for rpmhpd's
      
      * tag 'pmdomain-v6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
        pmdomain: qcom: rpmhpd: Skip retention level for Power Domains
      ac6a9e07
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.10-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 01ec3bb6
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - davinci_mmc: Prevent transmitted data size from exceeding sgm's
         length
      
       - sdhci: Fix max_seg_size for 64KiB PAGE_SIZE
      
      * tag 'mmc-v6.10-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
        mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE
      01ec3bb6
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-6.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · e091caf9
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Most of these changes are Qualcomm SoC specific and came in just after
        I sent out the last set of fixes. This includes two regression fixes
        for SoC drivers, a defconfig change to ensure the Lenovo X13s is
        usable and 11 changes to DT files to fix regressions and minor
        platform specific issues.
      
        Tony and Chunyan step back from their respective maintainership roles
        on the omap and unisoc platforms, and Christophe in turn takes over
        maintaining some of the Freescale SoC drivers that he has been taking
        care of in practice already.
      
        Lastly, there are two trivial fixes for the davinci and sunxi
        platforms"
      
      * tag 'arm-fixes-6.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        MAINTAINERS: Update FREESCALE SOC DRIVERS and QUICC ENGINE LIBRARY
        MAINTAINERS: Add more maintainers for omaps
        ARM: davinci: Convert comma to semicolon
        MAINTAINERS: Move myself from SPRD Maintainer to Reviewer
        Revert "dt-bindings: cache: qcom,llcc: correct QDU1000 reg entries"
        arm64: dts: qcom: qdu1000: Fix LLCC reg property
        arm64: dts: qcom: sm6115: add iommu for sdhc_1
        arm64: dts: qcom: x1e80100-crd: fix DAI used for headset recording
        arm64: dts: qcom: x1e80100-crd: fix WCD audio codec TX port mapping
        soc: qcom: pmic_glink: disable UCSI on sc8280xp
        arm64: defconfig: enable Elan i2c-hid driver
        arm64: dts: qcom: sc8280xp-crd: use external pull up for touch reset
        arm64: dts: qcom: sc8280xp-x13s: fix touchscreen power on
        arm64: dts: qcom: x1e80100: Fix PCIe 6a reg offsets and add MHI
        arm64: dts: qcom: sa8775p: Correct IRQ number of EL2 non-secure physical timer
        arm64: dts: allwinner: Fix PMIC interrupt number
        arm64: dts: qcom: sc8280xp: Set status = "reserved" on PSHOLD
        arm64: dts: qcom: x1e80100-*: Allocate some CMA buffers
        arm64: dts: qcom: sc8180x: Fix LLCC reg property again
      e091caf9
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f469cf96
      Linus Torvalds authored
      Pull char / misc driver fixes from Greg KH:
       "Here are some small remaining driver fixes for 6.10-final that have
        all been in linux-next for a while and resolve reported issues.
        Included in here are:
      
         - mei driver fixes (and a spelling fix at the end just to be clean)
      
         - iio driver fixes for reported problems
      
         - fastrpc bugfixes
      
         - nvmem small fixes"
      
      * tag 'char-misc-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        mei: vsc: Fix spelling error
        mei: vsc: Enhance SPI transfer of IVSC ROM
        mei: vsc: Utilize the appropriate byte order swap function
        mei: vsc: Prevent timeout error with added delay post-firmware download
        mei: vsc: Enhance IVSC chipset stability during warm reboot
        nvmem: core: limit cell sysfs permissions to main attribute ones
        nvmem: core: only change name to fram for current attribute
        nvmem: meson-efuse: Fix return value of nvmem callbacks
        nvmem: rmem: Fix return value of rmem_read()
        misc: microchip: pci1xxxx: Fix return value of nvmem callbacks
        hpet: Support 32-bit userspace
        misc: fastrpc: Restrict untrusted app to attach to privileged PD
        misc: fastrpc: Fix ownership reassignment of remote heap
        misc: fastrpc: Fix memory leak in audio daemon attach operation
        misc: fastrpc: Avoid updating PD type for capability request
        misc: fastrpc: Copy the complete capability structure to user
        misc: fastrpc: Fix DSP capabilities request
        iio: light: apds9306: Fix error handing
        iio: trigger: Fix condition for own trigger
      f469cf96
    • Linus Torvalds's avatar
      Merge tag 'tty-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 1cb67bcc
      Linus Torvalds authored
      Pull tty / serial fixes from Greg KH:
       "Here are some small serial driver fixes for 6.10-final. Included in
        here are:
      
         - qcom-geni fixes for a much much much discussed issue and everyone
           now seems to be agreed that this is the proper way forward to
           resolve the reported lockups
      
         - imx serial driver bugfixes
      
         - 8250_omap errata fix
      
         - ma35d1 serial driver bugfix
      
        All of these have been in linux-next for over a week with no reported
        issues"
      
      * tag 'tty-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: qcom-geni: do not kill the machine on fifo underrun
        serial: qcom-geni: fix hard lockup on buffer flush
        serial: qcom-geni: fix soft lockup on sw flow control and suspend
        serial: imx: ensure RTS signal is not left active after shutdown
        tty: serial: ma35d1: Add a NULL check for of_node
        serial: 8250_omap: Fix Errata i2310 with RX FIFO level check
        serial: imx: only set receiver level if it is zero
      1cb67bcc
    • Linus Torvalds's avatar
      Merge tag 'usb-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 1293147a
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB driver fixes and new device ids for
        6.10-final. Included in here are:
      
         - new usb-serial device ids for reported devices
      
         - syzbot-triggered duplicate endpoint bugfix
      
         - gadget bugfix for configfs memory overwrite
      
         - xhci resume bugfix
      
         - new device quirk added
      
         - usb core error path bugfix
      
        All of these have been in linux-next (most for a while) with no
        reported issues"
      
      * tag 'usb-6.10-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        USB: serial: mos7840: fix crash on resume
        USB: serial: option: add Rolling RW350-GL variants
        USB: serial: option: add support for Foxconn T99W651
        USB: serial: option: add Netprisma LCUK54 series modules
        usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
        usb: dwc3: pci: add support for the Intel Panther Lake
        usb: core: add missing of_node_put() in usb_of_has_devices_or_graph
        USB: Add USB_QUIRK_NO_SET_INTF quirk for START BP-850k
        USB: core: Fix duplicate endpoint bug by clearing reserved bits in the descriptor
        xhci: always resume roothubs if xHC was reset during resume
        USB: serial: option: add Telit generic core-dump composition
        USB: serial: option: add Fibocom FM350-GL
        USB: serial: option: add Telit FN912 rmnet compositions
      1293147a
    • Linus Torvalds's avatar
      Merge tag 'sound-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 9b48104b
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "The majority of changes here are small device-specific fixes for ASoC
        SOF / Intel and usual HD-audio quirks.
      
        The only significant high LOC is found in the Cirrus firmware driver,
        but all those are for hardening against malicious firmware blobs, and
        they look fine for taking as a last minute fix, too"
      
      * tag 'sound-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek: Enable Mute LED on HP 250 G7
        firmware: cs_dsp: Use strnlen() on name fields in V1 wmfw files
        ALSA: hda/realtek: Limit mic boost on VAIO PRO PX
        ALSA: hda: cs35l41: Fix swapped l/r audio channels for Lenovo ThinBook 13x Gen4
        ASoC: SOF: Intel: hda-pcm: Limit the maximum number of periods by MAX_BDL_ENTRIES
        ASoC: rt711-sdw: add missing readable registers
        ASoC: SOF: Intel: hda: fix null deref on system suspend entry
        ALSA: hda/realtek: add quirk for Clevo V5[46]0TU
        firmware: cs_dsp: Prevent buffer overrun when processing V2 alg headers
        firmware: cs_dsp: Validate payload length before processing block
        firmware: cs_dsp: Return error if block header overflows file
        firmware: cs_dsp: Fix overflow checking of wmfw header
      9b48104b
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-07-12' of https://evilpiepirate.org/git/bcachefs · 5d4c8513
      Linus Torvalds authored
      Pull more bcachefs fixes from Kent Overstreet:
      
       - revert the SLAB_ACCOUNT patch, something crazy is going on in memcg
         and someone forgot to test
      
       - minor fixes: missing rcu_read_lock(), scheduling while atomic (in an
         emergency shutdown path)
      
       - two lockdep fixes; these could have gone earlier, but were left to
         bake awhile
      
      * tag 'bcachefs-2024-07-12' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: bch2_gc_btree() should not use btree_root_lock
        bcachefs: Set PF_MEMALLOC_NOFS when trans->locked
        bcachefs; Use trans_unlock_long() when waiting on allocator
        Revert "bcachefs: Mark bch_inode_info as SLAB_ACCOUNT"
        bcachefs: fix scheduling while atomic in break_cycle()
        bcachefs: Fix RCU splat
      5d4c8513
    • David S. Miller's avatar
      Merge branch 'octeontx2-cpt-rss-cfg-fixes' into main · 425652d4
      David S. Miller authored
      Srujana Challa says:
      
      ====================
      Fixes for CPT and RSS configuration
      
      This series of patches fixes various issues related to CPT
      configuration and RSS configuration.
      
      v1->v2:
      - Excluded the patch "octeontx2-af: reduce cpt flt interrupt vectors for
        cn10kb" to submit it to net-next.
      - Addressed the review comments.
      
      Kiran Kumar K (1):
        octeontx2-af: Fix issue with IPv6 ext match for RSS
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      425652d4
    • Satheesh Paul's avatar
      octeontx2-af: fix issue with IPv4 match for RSS · 60795bbf
      Satheesh Paul authored
      While performing RSS based on IPv4, packets with
      IPv4 options are not being considered. Adding changes
      to match both plain IPv4 and IPv4 with option header.
      
      Fixes: 41a7aa7b ("octeontx2-af: NIX Rx flowkey configuration for RSS")
      Signed-off-by: default avatarSatheesh Paul <psatheesh@marvell.com>
      Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      60795bbf
    • Kiran Kumar K's avatar
      octeontx2-af: fix issue with IPv6 ext match for RSS · e23ac109
      Kiran Kumar K authored
      While performing RSS based on IPv6, extension ltype
      is not being considered. This will be problem for
      fragmented packets or packets with extension header.
      Adding changes to match IPv6 ext header along with IPv6
      ltype.
      
      Fixes: 41a7aa7b ("octeontx2-af: NIX Rx flowkey configuration for RSS")
      Signed-off-by: default avatarKiran Kumar K <kirankumark@marvell.com>
      Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e23ac109
    • Michal Mazur's avatar
      octeontx2-af: fix detection of IP layer · 404dc0fd
      Michal Mazur authored
      Checksum and length checks are not enabled for IPv4 header with
      options and IPv6 with extension headers.
      To fix this a change in enum npc_kpu_lc_ltype is required which will
      allow adjustment of LTYPE_MASK to detect all types of IP headers.
      
      Fixes: 21e6699e ("octeontx2-af: Add NPC KPU profile")
      Signed-off-by: default avatarMichal Mazur <mmazur2@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      404dc0fd
    • Srujana Challa's avatar
      octeontx2-af: fix a issue with cpt_lf_alloc mailbox · 845fe191
      Srujana Challa authored
      This patch fixes CPT_LF_ALLOC mailbox error due to
      incompatible mailbox message format. Specifically, it
      corrects the `blkaddr` field type from `int` to `u8`.
      
      Fixes: de2854c8 ("octeontx2-af: Mailbox changes for 98xx CPT block")
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      845fe191
    • Nithin Dabilpuram's avatar
      octeontx2-af: replace cpt slot with lf id on reg write · bc35e28a
      Nithin Dabilpuram authored
      Replace slot id with global CPT lf id on reg read/write as
      CPTPF/VF driver would send slot number instead of global
      lf id in the reg offset. And also update the mailbox response
      with the global lf's register offset.
      
      Fixes: ae454086 ("octeontx2-af: add mailbox interface for CPT")
      Signed-off-by: default avatarNithin Dabilpuram <ndabilpuram@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bc35e28a
    • Christophe Leroy's avatar
      MAINTAINERS: Update FREESCALE SOC DRIVERS and QUICC ENGINE LIBRARY · 6fba5cbd
      Christophe Leroy authored
      FREESCALE SOC DRIVERS has been orphaned since
      commit eaac25d0 ("MAINTAINERS: Drop Li Yang as their email address
      stopped working")
      QUICC ENGINE LIBRARY has Qiang Zhao as maintainer but he hasn't
      responded for years and when Li Yang was still maintaining FREESCALE
      SOC DRIVERS he was also handling QUICC ENGINE LIBRARY directly.
      
      As a maintainer of LINUX FOR POWERPC EMBEDDED PPC8XX AND PPC83XX, I
      also need FREESCALE SOC DRIVERS to be actively maintained, so add
      myself as maintainer of FREESCALE SOC DRIVERS and QUICC ENGINE LIBRARY.
      
      See below link for more context.
      
      Link: https://lore.kernel.org/linuxppc-dev/20240219153016.ntltc76bphwrv6hn@skbuf/T/#mf6d4a5eef79e8eae7ae0456a2794c01e630a6756Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      6fba5cbd
    • Tony Lindgren's avatar
      MAINTAINERS: Add more maintainers for omaps · dfd168e7
      Tony Lindgren authored
      There are many generations of omaps to maintain, and I will be only active
      as a hobbyist with time permitting. Let's add more maintainers to ensure
      continued Linux support.
      
      TI is interested in maintaining the active SoCs such as am3, am4 and
      dra7. And the hobbyists are interested in maintaining some of the older
      devices, mainly based on omap3 and 4 SoCs.
      
      Kevin and Roger have agreed to maintain the active TI parts. Both Kevin
      and Roger have been working on the omap variants for a long time, and
      have a good understanding of the hardware.
      
      Aaro and Andreas have agreed to maintain the community devices. Both Aaro
      and Andreas have long experience on working with the earlier TI SoCs.
      
      While at it, let's also change me to be a reviewer for the omap1, and
      drop the link to my old omap web page.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Acked-by: default avatarKevin Hilman <khilman@baylibre.com>
      Acked-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Acked-by: default avatarRoger Quadros <rogerq@kernel.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      dfd168e7