Skip to contentSkip to conversation

Linux 6.3.9

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Jun 21, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.3.9 kernel.

All users of the 6.3 kernel series must upgrade.

The updated 6.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.3.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Makefile                                                    |    2 
 arch/arm/boot/dts/vexpress-v2p-ca5s.dts                     |    1 
 arch/arm64/boot/dts/arm/foundation-v8.dtsi                  |    1 
 arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts                  |    1 
 arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts        |    1 
 arch/arm64/boot/dts/qcom/sm8550.dtsi                        |   11 
 arch/loongarch/kernel/perf_event.c                          |    6 
 arch/loongarch/kernel/unaligned.c                           |    2 
 arch/mips/Kconfig                                           |    1 
 arch/mips/alchemy/common/dbdma.c                            |   27 -
 arch/mips/kernel/cpu-probe.c                                |    5 
 arch/mips/kernel/setup.c                                    |    9 
 arch/nios2/boot/dts/10m50_devboard.dts                      |    2 
 arch/nios2/boot/dts/3c120_devboard.dts                      |    2 
 arch/parisc/include/asm/assembly.h                          |    4 
 arch/parisc/kernel/pci-dma.c                                |   18 
 arch/powerpc/purgatory/Makefile                             |    5 
 arch/riscv/purgatory/Makefile                               |    5 
 arch/x86/kernel/head_64.S                                   |   18 
 arch/x86/purgatory/Makefile                                 |    5 
 block/blk-cgroup.c                                          |   40 +
 drivers/block/xen-blkfront.c                                |    3 
 drivers/char/agp/parisc-agp.c                               |   15 
 drivers/clk/pxa/clk-pxa3xx.c                                |    2 
 drivers/edac/qcom_edac.c                                    |  122 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c                     |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c                  |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c                     |    7 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c                    |   18 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h                    |    9 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c                |   60 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.h                |   15 
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c                      |    4 
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c                       |  105 ++++
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c                       |    6 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c           |    8 
 drivers/gpu/drm/amd/display/dc/link/link_detection.c        |    5 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c        |   33 +
 drivers/gpu/drm/bridge/ti-sn65dsi86.c                       |    4 
 drivers/gpu/drm/drm_panel_orientation_quirks.c              |    2 
 drivers/gpu/drm/nouveau/nouveau_acpi.c                      |    3 
 drivers/gpu/drm/nouveau/nouveau_connector.c                 |    7 
 drivers/gpu/drm/nouveau/nouveau_drm.c                       |   14 
 drivers/infiniband/core/cma.c                               |    4 
 drivers/infiniband/core/uverbs_cmd.c                        |    7 
 drivers/infiniband/core/uverbs_main.c                       |   12 
 drivers/infiniband/hw/bnxt_re/bnxt_re.h                     |    2 
 drivers/infiniband/hw/bnxt_re/ib_verbs.c                    |    7 
 drivers/infiniband/hw/bnxt_re/main.c                        |    2 
 drivers/infiniband/hw/mlx5/fs.c                             |  276 +++++++++++-
 drivers/infiniband/hw/mlx5/fs.h                             |   16 
 drivers/infiniband/hw/mlx5/main.c                           |    3 
 drivers/infiniband/hw/mlx5/mlx5_ib.h                        |   14 
 drivers/infiniband/hw/mlx5/qp.c                             |    3 
 drivers/infiniband/sw/rxe/rxe_cq.c                          |    4 
 drivers/infiniband/sw/rxe/rxe_net.c                         |    6 
 drivers/infiniband/sw/rxe/rxe_qp.c                          |    7 
 drivers/infiniband/sw/rxe/rxe_resp.c                        |    3 
 drivers/infiniband/ulp/isert/ib_isert.c                     |   16 
 drivers/infiniband/ulp/rtrs/rtrs-clt.c                      |   55 +-
 drivers/infiniband/ulp/rtrs/rtrs.c                          |    4 
 drivers/irqchip/irq-gic-common.c                            |   10 
 drivers/irqchip/irq-gic-common.h                            |    1 
 drivers/irqchip/irq-gic-v3.c                                |   20 
 drivers/irqchip/irq-meson-gpio.c                            |    2 
 drivers/md/dm-ioctl.c                                       |    5 
 drivers/md/dm-thin-metadata.c                               |   20 
 drivers/md/dm-thin.c                                        |    3 
 drivers/md/dm.c                                             |    4 
 drivers/media/dvb-core/dvb_frontend.c                       |   53 --
 drivers/net/dsa/ocelot/felix_vsc9959.c                      |    2 
 drivers/net/ethernet/freescale/enetc/enetc_qos.c            |    4 
 drivers/net/ethernet/intel/iavf/iavf.h                      |    2 
 drivers/net/ethernet/intel/iavf/iavf_main.c                 |   15 
 drivers/net/ethernet/intel/iavf/iavf_register.h             |    2 
 drivers/net/ethernet/intel/ice/ice_gnss.c                   |   50 --
 drivers/net/ethernet/intel/ice/ice_gnss.h                   |    3 
 drivers/net/ethernet/intel/ice/ice_main.c                   |   20 
 drivers/net/ethernet/intel/igb/igb_ethtool.c                |    3 
 drivers/net/ethernet/intel/igb/igb_main.c                   |    8 
 drivers/net/ethernet/intel/igc/igc_main.c                   |   12 
 drivers/net/ethernet/marvell/octeon_ep/octep_main.c         |    7 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c         |    7 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c    |   29 -
 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h         |   12 
 drivers/net/ethernet/renesas/rswitch.c                      |   36 -
 drivers/net/ethernet/sfc/efx_channels.c                     |    2 
 drivers/net/ethernet/sfc/efx_devlink.c                      |   95 +---
 drivers/net/ethernet/sfc/siena/efx_channels.c               |    2 
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c           |    9 
 drivers/net/ethernet/ti/am65-cpsw-nuss.c                    |    2 
 drivers/net/ipvlan/ipvlan_l3s.c                             |    4 
 drivers/net/macsec.c                                        |   12 
 drivers/net/phy/phylink.c                                   |   41 +
 drivers/net/usb/qmi_wwan.c                                  |    2 
 drivers/net/wan/lapbether.c                                 |    3 
 drivers/nvme/host/pci.c                                     |    2 
 drivers/of/overlay.c                                        |    1 
 drivers/pci/quirks.c                                        |    9 
 drivers/platform/x86/asus-nb-wmi.c                          |    2 
 drivers/power/supply/ab8500_btemp.c                         |    6 
 drivers/power/supply/ab8500_fg.c                            |    6 
 drivers/power/supply/bq27xxx_battery.c                      |    6 
 drivers/power/supply/power_supply_core.c                    |    8 
 drivers/power/supply/power_supply_sysfs.c                   |    3 
 drivers/power/supply/sc27xx_fuel_gauge.c                    |    9 
 drivers/regulator/core.c                                    |    4 
 drivers/regulator/qcom-rpmh-regulator.c                     |   85 +++
 drivers/s390/net/ism_drv.c                                  |    8 
 drivers/soc/qcom/llcc-qcom.c                                |   72 +--
 drivers/spi/spi-cadence-quadspi.c                           |    7 
 drivers/spi/spi-fsl-dspi.c                                  |   15 
 drivers/target/target_core_transport.c                      |    2 
 drivers/thunderbolt/dma_test.c                              |    8 
 drivers/thunderbolt/nhi.c                                   |   11 
 drivers/thunderbolt/tb.c                                    |   17 
 drivers/thunderbolt/tunnel.c                                |    2 
 drivers/tty/serial/fsl_lpuart.c                             |    2 
 drivers/tty/serial/lantiq.c                                 |    1 
 drivers/usb/dwc3/core.c                                     |    5 
 drivers/usb/dwc3/dwc3-qcom.c                                |   11 
 drivers/usb/dwc3/gadget.c                                   |    1 
 drivers/usb/gadget/udc/core.c                               |  180 +++++--
 drivers/usb/gadget/udc/renesas_usb3.c                       |    4 
 drivers/usb/serial/option.c                                 |   16 
 drivers/usb/typec/pd.c                                      |    2 
 drivers/usb/typec/ucsi/ucsi.c                               |   11 
 fs/afs/vl_probe.c                                           |    4 
 fs/btrfs/block-group.c                                      |   14 
 fs/btrfs/disk-io.c                                          |   19 
 fs/btrfs/file-item.c                                        |    4 
 fs/btrfs/inode.c                                            |   20 
 fs/btrfs/scrub.c                                            |    9 
 fs/btrfs/super.c                                            |    6 
 fs/cifs/file.c                                              |    8 
 fs/erofs/Kconfig                                            |    1 
 fs/erofs/zdata.c                                            |    2 
 fs/eventpoll.c                                              |    6 
 fs/ext4/balloc.c                                            |   20 
 fs/ksmbd/connection.c                                       |    5 
 fs/ksmbd/smb_common.c                                       |   14 
 fs/nilfs2/btnode.c                                          |   12 
 fs/nilfs2/sufile.c                                          |    9 
 fs/nilfs2/the_nilfs.c                                       |   43 +
 fs/ocfs2/file.c                                             |    8 
 fs/ocfs2/super.c                                            |    6 
 fs/userfaultfd.c                                            |    5 
 include/linux/mlx5/driver.h                                 |   12 
 include/linux/soc/qcom/llcc-qcom.h                          |   12 
 include/media/dvb_frontend.h                                |    6 
 include/net/neighbour.h                                     |    2 
 include/net/netfilter/nf_flow_table.h                       |    2 
 include/net/netfilter/nf_tables.h                           |    4 
 include/net/sch_generic.h                                   |    8 
 include/rdma/ib_addr.h                                      |   23 -
 include/sound/soc-acpi.h                                    |    1 
 include/sound/soc-dpcm.h                                    |    4 
 include/uapi/linux/ethtool_netlink.h                        |    2 
 io_uring/net.c                                              |    8 
 io_uring/sqpoll.c                                           |    6 
 kernel/bpf/cgroup.c                                         |   38 -
 kernel/bpf/cgroup_iter.c                                    |    4 
 kernel/bpf/local_storage.c                                  |    4 
 kernel/cgroup/cgroup-v1.c                                   |   20 
 kernel/cgroup/cgroup.c                                      |   77 +--
 kernel/kexec_file.c                                         |   14 
 mm/damon/core.c                                             |    2 
 mm/gup_test.c                                               |    1 
 mm/zswap.c                                                  |   11 
 net/core/neighbour.c                                        |   31 -
 net/ipv6/ping.c                                             |    3 
 net/mac80211/cfg.c                                          |    9 
 net/mac80211/ieee80211_i.h                                  |    2 
 net/mac80211/link.c                                         |    4 
 net/mac80211/mlme.c                                         |    5 
 net/mac80211/util.c                                         |    4 
 net/netfilter/nf_flow_table_core.c                          |   13 
 net/netfilter/nf_flow_table_ip.c                            |    4 
 net/netfilter/nf_tables_api.c                               |   59 ++
 net/netfilter/nfnetlink.c                                   |    3 
 net/netfilter/nft_set_pipapo.c                              |   55 +-
 net/sched/act_ct.c                                          |    9 
 net/sched/act_pedit.c                                       |   45 +
 net/sched/cls_api.c                                         |   12 
 net/sched/cls_u32.c                                         |   18 
 net/sched/sch_api.c                                         |   44 +
 net/sched/sch_generic.c                                     |   14 
 net/sched/sch_taprio.c                                      |    3 
 net/sctp/sm_statefuns.c                                     |    2 
 net/tipc/bearer.c                                           |    4 
 net/wireless/rdev-ops.h                                     |    6 
 net/wireless/reg.c                                          |    7 
 sound/pci/hda/patch_realtek.c                               |    1 
 sound/soc/codecs/cs35l41-lib.c                              |    6 
 sound/soc/dwc/dwc-i2s.c                                     |   41 -
 sound/soc/intel/avs/avs.h                                   |    4 
 sound/soc/intel/avs/board_selection.c                       |    2 
 sound/soc/intel/avs/dsp.c                                   |    4 
 sound/soc/intel/avs/path.h                                  |    2 
 sound/soc/intel/avs/pcm.c                                   |   23 -
 sound/soc/intel/avs/probes.c                                |    2 
 sound/soc/soc-pcm.c                                         |   20 
 sound/usb/pcm.c                                             |    4 
 sound/usb/quirks.c                                          |    2 
 tools/gpio/lsgpio.c                                         |    2 
 tools/testing/selftests/gpio/gpio-sim.sh                    |    3 
 tools/testing/selftests/net/forwarding/hw_stats_l3.sh       |   11 
 tools/testing/selftests/ptp/testptp.c                       |    6 
 tools/testing/selftests/tc-testing/config                   |    1 
 tools/testing/selftests/tc-testing/tc-tests/qdiscs/sfb.json |    4 
 tools/testing/selftests/tc-testing/tdc.sh                   |    1 
 211 files changed, 2102 insertions(+), 939 deletions(-)

Abel Vesa (1):
regulator: qcom-rpmh: Fix regulators for PM8550

Ahmed Zaki (1):
iavf: remove mask from iavf_irq_enable_queues()

Alejandro Lucero (1):
sfc: fix devlink info error handling

Aleksandr Loktionov (1):
igb: fix nvm.ops.read() error handling

Alex Deucher (1):
drm/amdgpu: add missing radeon secondary PCI ID

Alex Maftei (1):
selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET

Alexandru Sorodoc (1):

      platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0

Amadeusz Sławiński (2):
ASoC: Intel: avs: Fix avs_path_module::instance_id size
ASoC: Intel: avs: Add missing checks on FE startup

Arnd Bergmann (1):
clk: pxa: fix NULL pointer dereference in pxa3xx_clk_update_accr

Arunpravin Paneer Selvam (1):
Revert "drm/amdgpu: remove TOPDOWN flags when allocating VRAM in large bar system"

Badhri Jagan Sridharan (2):
usb: gadget: udc: core: Offload usb_udc_vbus_handler processing
usb: gadget: udc: core: Prevent soft_connect_store() race

Bartosz Golaszewski (1):
regulator: qcom-rpmh: add support for pmm8654au regulators

Ben Hutchings (1):
parisc: Delete redundant register definitions in <asm/assembly.h>

Benjamin Berg (3):
wifi: cfg80211: fix link del callback to call correct handler
wifi: mac80211: take lock before setting vif links
wifi: mac80211: fragment per STA profile correctly

Benjamin Segall (1):
epoll: ep_autoremove_wake_function should use list_del_init_careful

Bernhard Seibold (1):
serial: lantiq: add missing interrupt ack

Biju Das (1):
usb: gadget: udc: renesas_usb3: Fix RZ/V2M {modprobe,bind} error

Bob Pearson (4):
RDMA/rxe: Fix packet length checks
RDMA/rxe: Fix ref count error in check_rkey() RDMA/rxe: Fix rxe_cq_post
scsi: target: core: Fix error path in target_setup_session()

Cezary Rojewski (1):
ASoC: Intel: avs: Account for UID of ACPI device

Chris Mason (2):

      btrfs: properly enable async discard when switching from RO->RW
      btrfs: can_nocow_file_extent should pass down args->strict from callers

Christian Marangi (1):
net: ethernet: stmicro: stmmac: fix possible memory leak in __stmmac_open

Christoph Hellwig (1):
btrfs: fix iomap_begin length for nocow writes

Dan Carpenter (3):
wifi: cfg80211: fix double lock bug in reg_wdev_chan_valid()
sctp: fix an error code in sctp_sf_eat_auth()
net: ethernet: ti: am65-cpsw: Call of_node_put() on error path

Danielle Ratson (1):
selftests: forwarding: hw_stats_l3: Set addrgenmode in a separate step

Dave Airlie (1):
nouveau: fix client work fence deletion race

David Howells (1):
afs: Fix vlserver probe RTT handling

Douglas Anderson (1):
irqchip/gic-v3: Disable pseudo NMIs on Mediatek devices w/ firmware issues

Edson Juliano Drosdeck (1):
ALSA: hda/realtek: Add a quirk for Compaq N14JP6

Edward Srouji (1):
RDMA/uverbs: Restrict usage of privileged QKEYs

Elson Roy Serrao (1):
usb: dwc3: gadget: Reset num TRBs before giving back the request

Eric Dumazet (1):
net: lapbether: only support ethernet devices

Fabio M. De Francesco (1):
ext4: drop the call to ext4_error() from ext4_get_group_info()

Fedor Pchelkin (1):
net: macsec: fix double free of percpu stats

Gao Xiang (1):
erofs: use HIPRI by default if per-cpu kthreads are enabled

Greg Kroah-Hartman (1):

      Linux 6.3.9

Guillaume Nault (1):
ping6: Fix send to link-local addresses with VRF.

Haibo Li (1):
mm/gup_test: fix ioctl fail for compat task

Hangbin Liu (1):
ipvlan: fix bound dev checking for IPv6 l3s mode

Hans de Goede (3):
power: supply: ab8500: Fix external_power_changed race
power: supply: sc27xx: Fix external_power_changed race
power: supply: bq27xxx: Use mod_delayed_work() instead of cancel() + schedule()

Heikki Krogerus (1):
usb: typec: ucsi: Fix command cancellation

Helge Deller (2):
parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()
parisc: Flush gatt writes and adjust gatt mask in parisc_agp_mask_memory()

Hersen Wu (1):
drm/amd/display: edp do not add non-edid timings

Huacai Chen (1):
LoongArch: Fix perf event id calculation

Immad Mir (1):
LoongArch: Fix debugfs_create_dir() error checking

Jakub Buchocki (1):
ice: Fix ice module unload

Jakub Kicinski (1):
net: ethtool: correct MAX attribute value for stats

Janne Grunau (1):
nios2: dts: Fix tse_mac "max-frame-size" property

Jens Axboe (1):

      io_uring/net: save msghdr->msg_control for retries

Jerry Meng (1):
USB: serial: option: add Quectel EM061KGL series

Jiadong Zhu (4):
drm/amdgpu: Reset CP_VMID_PREEMPT after trailing fence signaled drm/amdgpu: Program gds backup address as zero if no gds allocated drm/amdgpu: Implement gfx9 patch functions for resubmission drm/amdgpu: Modify indirect buffer packages for resubmission

Jiasheng Jiang (2):
spi: cadence-quadspi: Add missing check for dma_set_mask
octeon_ep: Add missing check for ioremap

Johan Hovold (2):
USB: dwc3: qcom: fix NULL-deref on suspend
USB: dwc3: fix use-after-free on core driver unbind

Johannes Berg (2):
wifi: cfg80211: fix locking in regulatory disconnect
wifi: mac80211: fix link activation settings order

Johannes Thumshirn (1):
btrfs: handle memory allocation failure in btrfs_csum_one_bio

John Sperbeck (1):
cgroup: always put cset in cgroup_css_set_put_fork

Julian Ruess (1):
s390/ism: Fix trying to free already-freed IRQ by repeated ism_dev_exit()

Kamal Heib (1):
RDMA/bnxt_re: Fix reporting active_{speed,width} attributes

Kamalesh Babulal (1):
cgroup: bpf: use cgroup_lock()/cgroup_unlock() wrappers

Kamil Maziarz (1):
ice: Fix XDP memory leak when NIC is brought up and down

Kefeng Wang (1):
mm/damon/core: fix divide error in damon_nr_accesses_to_accesses_bp()

Kenneth Feng (1):
drm/amd/pm: workaround for compute workload type on some skus

Konrad Dybcio (1):
arm64: dts: qcom: sm8550: Use the correct LLCC register scheme

Krzysztof Kozlowski (3):
ARM: dts: vexpress: add missing cache properties
arm64: dts: arm: add missing cache properties irqchip/meson-gpio: Mark OF related data as maybe unused

Kunihiko Hayashi (1):
of: overlay: Fix missing of_node_put() in error case of init_overlay_changeset()

Lee Jones (1):
net/sched: cls_u32: Fix reference counter leak leading to overflow

Leon Romanovsky (1):
neighbour: delete neigh_lookup_nodev as not used

Li Lingfeng (2):
dm thin metadata: check fail_io before using data_sm
dm: don't lock fs when the map is NULL during suspend or resume

Li Zhijian (2):
RDMA/rtrs: Fix the last iu->buf leak in err path RDMA/rtrs: Fix rxe_dealloc_pd warning

Lin Ma (1):
net: tipc: resize nlattr array to correct size

Liviu Dudau (1):
mips: Move initrd_start check after initrd address sanitisation.

Lukasz Tyl (1):
ALSA: usb-audio: Add quirk flag for HEM devices to enable native DSD playback

Luís Henriques (2):
ocfs2: fix use-after-free when unmounting read-only filesystem
ocfs2: check new file size on fallocate call

Maher Sanalla (1):
RDMA/mlx5: Initiate dropless RQ for RAW Ethernet functions

Manivannan Sadhasivam (2):
qcom: llcc/edac: Fix the base address used for accessing LLCC banks EDAC/qcom: Get rid of hardcoded register offsets

Manuel Lauss (3):
MIPS: unhide PATA_PLATFORM
MIPS: Restore Au1300 support
MIPS: Alchemy: fix dbdma2

Marc Zyngier (1):
irqchip/gic: Correctly validate OF quirk descriptors

Marek Vasut (1):
power: supply: Ratelimit no data debug output

Mario Limonciello (3):
power: supply: Fix logic checking if system is running from battery drm/amd: Make sure image is written to trigger VBIOS image update flow drm/amd: Tighten permissions on VBIOS flashing attributes

Mark Bloch (2):
RDMA/mlx5: Create an indirect flow table for steering anchor RDMA/mlx5: Fix affinity assignment

Mark Zhang (1):
RDMA/cma: Always set static rate to 0 for RoCE

Mauro Carvalho Chehab (1):
Revert "media: dvb-core: Fix use-after-free on race condition at dvb_frontend"

Max Tottenham (1):
net/sched: act_pedit: Parse L3 Header for L4 offset

Maxim Kochetkov (1):
ASoC: dwc: move DMA init to snd_soc_dai_driver probe()

Maxime Chevallier (2):
net: phylink: report correct max speed for QUSGMII
net: phylink: use a dedicated helper to parse usgmii control word

Maya Matuszczyk (1):
drm: panel-orientation-quirks: Change Air's quirk to support Air Plus

Michal Schmidt (1):
ice: do not busy-wait to read GNSS data

Mika Westerberg (5):
PCI/DPC: Quirk PIO log size for Intel Ice Lake Root Ports
thunderbolt: Increase DisplayPort Connection Manager handshake timeout
thunderbolt: Do not touch CL state configuration during discovery
thunderbolt: dma_test: Use correct value for absent rings when creating paths
thunderbolt: Mask ring interrupt on Intel hardware as well

Mike Snitzer (1):
dm thin: fix issue_discard to pass GFP_NOIO to __blkdev_issue_discard

Milo Spadacini (1):
tools: gpio: fix debounce_period_us output of lsgpio

Ming Lei (1):
blk-cgroup: Flush stats before releasing blkcg_gq

Mirsad Todorovac (1):
selftests: gpio: gpio-sim: Fix BUG: test FAILED due to recent change

Muhammad Husaini Zulkifli (1):
igc: Clean the TX buffer and TX descriptor ring

Namjae Jeon (1):
ksmbd: validate smb request protocol id

Natalia Petrova (2):
drm/nouveau/dp: check for NULL nv_connector->native_mode drm/nouveau: add nv_encoder pointer check for NULL

Nhat Pham (1):
zswap: do not shrink if cgroup may not zswap

Nithin Dabilpuram (1):
octeontx2-af: fix lbk link credits on cn10k

Osama Muhammad (1):
regulator: Fix error checking for debugfs_create_dir

Pablo Neira Ayuso (3):
netfilter: nf_tables: integrate pipapo into commit protocol
netfilter: nfnetlink: skip error delivery on batch in case of ENOMEM
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE

Paul Blakey (1):
net/sched: act_ct: Fix promotion of offloaded unreplied tuple

Pavan Holla (1):
usb: typec: Fix fast_role_swap_current show function

Pedro Tammela (1):
net/sched: act_pedit: remove extra check for key type

Peichen Huang (1):
drm/amd/display: limit DPIA link rate to HBR3

Peilin Ye (2):
net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting

Peter Xu (1):
mm/uffd: fix vma operation where start addr cuts part of vma

Qi Zheng (1):
cgroup: fix missing cpus_read_{lock,unlock}() in cgroup_transfer_tasks()

Qu Wenruo (3):
btrfs: scrub: try harder to mark RAID56 block groups read-only
btrfs: subpage: fix a crash in metadata repair path
btrfs: do not ASSERT() on duplicated global roots

Ranjani Sridharan (1):
ASoC: soc-pcm: test if a BE can be prepared

Ratchanan Srirattanamet (1):
drm/nouveau: don't detect DSM for non-NVIDIA device

Ratheesh Kannoth (1):
octeontx2-af: Fix promiscuous mode

Ricardo Ribalda (4):
kexec: support purgatories with .text.hot sections x86/purgatory: remove PGO flags riscv/purgatory: remove PGO flags powerpc/purgatory: remove PGO flags

Robert Hodaszi (1):
tty: serial: fsl_lpuart: reduce RX watermark to 0 on LS1028A

Ross Lagerwall (1):
xen/blkfront: Only check REQ_FUA for writes

Ryusuke Konishi (3):
nilfs2: fix incomplete buffer cleanup in nilfs_btnode_abort_change_key()
nilfs2: fix possible out-of-bounds segment allocation in resize ioctl
nilfs2: reject devices with insufficient block count

Saravanan Vajravel (3):
IB/isert: Fix dead lock in ib_isert IB/isert: Fix possible list corruption in CMA handler IB/isert: Fix incorrect release of isert connection

Satha Rao (1):
octeontx2-af: fixed resource availability check

Simon Horman (1):
ice: Don't dereference NULL in ice_gnss_read error path

Sonny Jiang (1):
drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1

Stefan Binding (1):
ASoC: cs35l41: Fix default regmap values for some registers

Steve French (1):
cifs: fix lease break oops in xfstest generic/098

Su Hui (1):
drm/bridge: ti-sn65dsi86: Avoid possible buffer overflow

Sukrut Bellary (1):
drm:amd:amdgpu: Fix missing buffer object unlock in failure path

Takashi Iwai (1):
ALSA: usb-audio: Fix broken resume due to UAC3 power state

Tatsuki Sugiura (1):
NVMe: Add MAXIO 1602 to bogus nid list.

Tom Lendacky (1):
x86/head/64: Switch to KERNEL_CS as soon as new GDT is installed

Vinicius Costa Gomes (1):
igc: Fix possible system crash when loading module

Vlad Buslov (4):
selftests/tc-testing: Fix Error: Specified qdisc kind is unknown. selftests/tc-testing: Fix Error: failed to find target LOG selftests/tc-testing: Fix SFB db test
net/sched: cls_api: Fix lockup on flushing explicitly created chain

Vladimir Oltean (2):
spi: fsl-dspi: avoid SCK glitches with continuous transfers
net: dsa: felix: fix taprio guard band overflow at 10Mbps with jumbo frames

Wei Fang (1):
net: enetc: correct the indexes of highest and 2nd highest TCs

Wenwen Chen (1):

      io_uring: unlock sqd->lock before sq thread release CPU

Wes Huang (1):
net: usb: qmi_wwan: add support for Compal RXM-G1

Yishai Hadas (1):
IB/uverbs: Fix to consider event queue closing also upon non-blocking mode

Yoshihiro Shimoda (1):
net: renesas: rswitch: Fix timestamp feature after all descriptors are used

Yuezhen Luan (1):

      igb: Fix extts capture value format for 82580/i354/i350

Zhengchao Shao (1):
net/sched: taprio: fix slab-out-of-bounds Read in taprio_dequeue_from_txq

Zhu Yanjun (1):
RDMA/rxe: Fix the use-before-initialization error of resp_pkts

Íñigo Huguet (1):
sfc: fix XDP queues mode with legacy IRQ

author maintainer
#1 lore raw
Makefile +1 -1
index b4267d7a57b3..f8ee72375885 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 3
-SUBLEVEL = 8
+SUBLEVEL = 9
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm/boot/dts/vexpress-v2p-ca5s.dts +1 -0
index 3b88209bacea..ff1f9a1bcfcf 100644
@@ -132,6 +132,7 @@ L2: cache-controller@2c0f0000 {
 		reg = <0x2c0f0000 0x1000>;
 		interrupts = <0 84 4>;
 		cache-level = <2>;
+		cache-unified;
 	};
 
 	pmu {
arch/arm64/boot/dts/arm/foundation-v8.dtsi +1 -0
index 029578072d8f..7b41537731a6 100644
@@ -59,6 +59,7 @@ cpu3: cpu@3 {
 		L2_0: l2-cache0 {
 			compatible = "cache";
 			cache-level = <2>;
+			cache-unified;
 		};
 	};
 
arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts +1 -0
index ef68f5aae7dd..afdf954206f1 100644
@@ -72,6 +72,7 @@ cpu@3 {
 		L2_0: l2-cache0 {
 			compatible = "cache";
 			cache-level = <2>;
+			cache-unified;
 		};
 	};
 
arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts +1 -0
index 796cd7d02eb5..7bdeb965f0a9 100644
@@ -58,6 +58,7 @@ cpu@1 {
 		L2_0: l2-cache0 {
 			compatible = "cache";
 			cache-level = <2>;
+			cache-unified;
 		};
 	};
 
arch/arm64/boot/dts/qcom/sm8550.dtsi +9 -2
index f05cdb376a17..90e3fb11e6e7 100644
@@ -3423,9 +3423,16 @@ gem_noc: interconnect@24100000 {
 
 		system-cache-controller@25000000 {
 			compatible = "qcom,sm8550-llcc";
-			reg = <0 0x25000000 0 0x800000>,
+			reg = <0 0x25000000 0 0x200000>,
+			      <0 0x25200000 0 0x200000>,
+			      <0 0x25400000 0 0x200000>,
+			      <0 0x25600000 0 0x200000>,
 			      <0 0x25800000 0 0x200000>;
-			reg-names = "llcc_base", "llcc_broadcast_base";
+			reg-names = "llcc0_base",
+				    "llcc1_base",
+				    "llcc2_base",
+				    "llcc3_base",
+				    "llcc_broadcast_base";
 			interrupts = <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
arch/loongarch/kernel/perf_event.c +3 -3
index 707bd32e5c4f..3a2edb157b65 100644
@@ -271,7 +271,7 @@ static void loongarch_pmu_enable_event(struct hw_perf_event *evt, int idx)
 	WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters);
 
 	/* Make sure interrupt enabled. */
-	cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0xff) |
+	cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base) |
 		(evt->config_base & M_PERFCTL_CONFIG_MASK) | CSR_PERFCTRL_IE;
 
 	cpu = (event->cpu >= 0) ? event->cpu : smp_processor_id();
@@ -594,7 +594,7 @@ static struct pmu pmu = {
 
 static unsigned int loongarch_pmu_perf_event_encode(const struct loongarch_perf_event *pev)
 {
-	return (pev->event_id & 0xff);
+	return M_PERFCTL_EVENT(pev->event_id);
 }
 
 static const struct loongarch_perf_event *loongarch_pmu_map_general_event(int idx)
@@ -849,7 +849,7 @@ static void resume_local_counters(void)
 
 static const struct loongarch_perf_event *loongarch_pmu_map_raw_event(u64 config)
 {
-	raw_event.event_id = config & 0xff;
+	raw_event.event_id = M_PERFCTL_EVENT(config);
 
 	return &raw_event;
 }
arch/loongarch/kernel/unaligned.c +1 -1
index bdff825d29ef..85fae3d2d71a 100644
@@ -485,7 +485,7 @@ static int __init debugfs_unaligned(void)
 	struct dentry *d;
 
 	d = debugfs_create_dir("loongarch", NULL);
-	if (!d)
+	if (IS_ERR_OR_NULL(d))
 		return -ENOMEM;
 
 	debugfs_create_u32("unaligned_instructions_user",
arch/mips/Kconfig +1 -0
index e2f3ca73f40d..5b3f1f1dfd16 100644
@@ -82,6 +82,7 @@ config MIPS
 	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
 	select HAVE_MOD_ARCH_SPECIFIC
 	select HAVE_NMI
+	select HAVE_PATA_PLATFORM
 	select HAVE_PERF_EVENTS
 	select HAVE_PERF_REGS
 	select HAVE_PERF_USER_STACK_DUMP
arch/mips/alchemy/common/dbdma.c +15 -12
index 5ab043000409..6a3c890f7bbf 100644
@@ -30,6 +30,7 @@
  *
  */
 
+#include <linux/dma-map-ops.h> /* for dma_default_coherent */
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
@@ -623,17 +624,18 @@ u32 au1xxx_dbdma_put_source(u32 chanid, dma_addr_t buf, int nbytes, u32 flags)
 		dp->dscr_cmd0 &= ~DSCR_CMD0_IE;
 
 	/*
-	 * There is an errata on the Au1200/Au1550 parts that could result
-	 * in "stale" data being DMA'ed. It has to do with the snoop logic on
-	 * the cache eviction buffer.  DMA_NONCOHERENT is on by default for
-	 * these parts. If it is fixed in the future, these dma_cache_inv will
-	 * just be nothing more than empty macros. See io.h.
+	 * There is an erratum on certain Au1200/Au1550 revisions that could
+	 * result in "stale" data being DMA'ed. It has to do with the snoop
+	 * logic on the cache eviction buffer.  dma_default_coherent is set
+	 * to false on these parts.
 	 */
-	dma_cache_wback_inv((unsigned long)buf, nbytes);
+	if (!dma_default_coherent)
+		dma_cache_wback_inv(KSEG0ADDR(buf), nbytes);
 	dp->dscr_cmd0 |= DSCR_CMD0_V;	/* Let it rip */
 	wmb(); /* drain writebuffer */
 	dma_cache_wback_inv((unsigned long)dp, sizeof(*dp));
 	ctp->chan_ptr->ddma_dbell = 0;
+	wmb(); /* force doorbell write out to dma engine */
 
 	/* Get next descriptor pointer. */
 	ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
@@ -685,17 +687,18 @@ u32 au1xxx_dbdma_put_dest(u32 chanid, dma_addr_t buf, int nbytes, u32 flags)
 			  dp->dscr_source1, dp->dscr_dest0, dp->dscr_dest1);
 #endif
 	/*
-	 * There is an errata on the Au1200/Au1550 parts that could result in
-	 * "stale" data being DMA'ed. It has to do with the snoop logic on the
-	 * cache eviction buffer.  DMA_NONCOHERENT is on by default for these
-	 * parts. If it is fixed in the future, these dma_cache_inv will just
-	 * be nothing more than empty macros. See io.h.
+	 * There is an erratum on certain Au1200/Au1550 revisions that could
+	 * result in "stale" data being DMA'ed. It has to do with the snoop
+	 * logic on the cache eviction buffer.  dma_default_coherent is set
+	 * to false on these parts.
 	 */
-	dma_cache_inv((unsigned long)buf, nbytes);
+	if (!dma_default_coherent)
+		dma_cache_inv(KSEG0ADDR(buf), nbytes);
 	dp->dscr_cmd0 |= DSCR_CMD0_V;	/* Let it rip */
 	wmb(); /* drain writebuffer */
 	dma_cache_wback_inv((unsigned long)dp, sizeof(*dp));
 	ctp->chan_ptr->ddma_dbell = 0;
+	wmb(); /* force doorbell write out to dma engine */
 
 	/* Get next descriptor pointer. */
 	ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
arch/mips/kernel/cpu-probe.c +5 -0
index 7ddf07f255f3..6f5d82595877 100644
@@ -1502,6 +1502,10 @@ static inline void cpu_probe_alchemy(struct cpuinfo_mips *c, unsigned int cpu)
 			break;
 		}
 		break;
+	case PRID_IMP_NETLOGIC_AU13XX:
+		c->cputype = CPU_ALCHEMY;
+		__cpu_name[cpu] = "Au1300";
+		break;
 	}
 }
 
@@ -1861,6 +1865,7 @@ void cpu_probe(void)
 		cpu_probe_mips(c, cpu);
 		break;
 	case PRID_COMP_ALCHEMY:
+	case PRID_COMP_NETLOGIC:
 		cpu_probe_alchemy(c, cpu);
 		break;
 	case PRID_COMP_SIBYTE:
arch/mips/kernel/setup.c +5 -4
index f1c88f8a1dc5..81dbb4ef5231 100644
@@ -158,10 +158,6 @@ static unsigned long __init init_initrd(void)
 		pr_err("initrd start must be page aligned\n");
 		goto disable;
 	}
-	if (initrd_start < PAGE_OFFSET) {
-		pr_err("initrd start < PAGE_OFFSET\n");
-		goto disable;
-	}
 
 	/*
 	 * Sanitize initrd addresses. For example firmware
@@ -174,6 +170,11 @@ static unsigned long __init init_initrd(void)
 	initrd_end = (unsigned long)__va(end);
 	initrd_start = (unsigned long)__va(__pa(initrd_start));
 
+	if (initrd_start < PAGE_OFFSET) {
+		pr_err("initrd start < PAGE_OFFSET\n");
+		goto disable;
+	}
+
 	ROOT_DEV = Root_RAM0;
 	return PFN_UP(end);
 disable:
arch/nios2/boot/dts/10m50_devboard.dts +1 -1
index 56339bef3247..0e7e5b0dd685 100644
@@ -97,7 +97,7 @@ rgmii_0_eth_tse_0: ethernet@400 {
 			rx-fifo-depth = <8192>;
 			tx-fifo-depth = <8192>;
 			address-bits = <48>;
-			max-frame-size = <1518>;
+			max-frame-size = <1500>;
 			local-mac-address = [00 00 00 00 00 00];
 			altr,has-supplementary-unicast;
 			altr,enable-sup-addr = <1>;
arch/nios2/boot/dts/3c120_devboard.dts +1 -1
index d10fb81686c7..3ee316906379 100644
@@ -106,7 +106,7 @@ tse_mac: ethernet@4000 {
 				interrupt-names = "rx_irq", "tx_irq";
 				rx-fifo-depth = <8192>;
 				tx-fifo-depth = <8192>;
-				max-frame-size = <1518>;
+				max-frame-size = <1500>;
 				local-mac-address = [ 00 00 00 00 00 00 ];
 				phy-mode = "rgmii-id";
 				phy-handle = <&phy0>;
arch/parisc/include/asm/assembly.h +0 -4
index 0f0d4a496fef..75677b526b2b 100644
@@ -90,10 +90,6 @@
 #include <asm/asmregs.h>
 #include <asm/psw.h>
 
-	sp	=	30
-	gp	=	27
-	ipsw	=	22
-
 	/*
 	 * We provide two versions of each macro to convert from physical
 	 * to virtual and vice versa. The "_r1" versions take one argument
arch/parisc/kernel/pci-dma.c +17 -1
index ba87f791323b..71ed5391f29d 100644
@@ -446,11 +446,27 @@ void arch_dma_free(struct device *dev, size_t size, void *vaddr,
 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
 		enum dma_data_direction dir)
 {
+	/*
+	 * fdc: The data cache line is written back to memory, if and only if
+	 * it is dirty, and then invalidated from the data cache.
+	 */
 	flush_kernel_dcache_range((unsigned long)phys_to_virt(paddr), size);
 }
 
 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size,
 		enum dma_data_direction dir)
 {
-	flush_kernel_dcache_range((unsigned long)phys_to_virt(paddr), size);
+	unsigned long addr = (unsigned long) phys_to_virt(paddr);
+
+	switch (dir) {
+	case DMA_TO_DEVICE:
+	case DMA_BIDIRECTIONAL:
+		flush_kernel_dcache_range(addr, size);
+		return;
+	case DMA_FROM_DEVICE:
+		purge_kernel_dcache_range_asm(addr, addr + size);
+		return;
+	default:
+		BUG();
+	}
 }
arch/powerpc/purgatory/Makefile +5 -0
index 6f5e2727963c..78473d69cd2b 100644
@@ -5,6 +5,11 @@ KCSAN_SANITIZE := n
 
 targets += trampoline_$(BITS).o purgatory.ro
 
+# When profile-guided optimization is enabled, llvm emits two different
+# overlapping text sections, which is not supported by kexec. Remove profile
+# optimization flags.
+KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%,$(KBUILD_CFLAGS))
+
 LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
 
 $(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE
arch/riscv/purgatory/Makefile +5 -0
index 5730797a6b40..bd2e27f82532 100644
@@ -35,6 +35,11 @@ CFLAGS_sha256.o := -D__DISABLE_EXPORTS
 CFLAGS_string.o := -D__DISABLE_EXPORTS
 CFLAGS_ctype.o := -D__DISABLE_EXPORTS
 
+# When profile-guided optimization is enabled, llvm emits two different
+# overlapping text sections, which is not supported by kexec. Remove profile
+# optimization flags.
+KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%,$(KBUILD_CFLAGS))
+
 # When linking purgatory.ro with -r unresolved symbols are not checked,
 # also link a purgatory.chk binary without -r to check for unresolved symbols.
 PURGATORY_LDFLAGS := -e purgatory_start -z nodefaultlib
arch/x86/kernel/head_64.S +9 -9
index 222efd4a09bc..f047723c6ca5 100644
@@ -85,6 +85,15 @@ SYM_CODE_START_NOALIGN(startup_64)
 	call	startup_64_setup_env
 	popq	%rsi
 
+	/* Now switch to __KERNEL_CS so IRET works reliably */
+	pushq	$__KERNEL_CS
+	leaq	.Lon_kernel_cs(%rip), %rax
+	pushq	%rax
+	lretq
+
+.Lon_kernel_cs:
+	UNWIND_HINT_EMPTY
+
 #ifdef CONFIG_AMD_MEM_ENCRYPT
 	/*
 	 * Activate SEV/SME memory encryption if supported/enabled. This needs to
@@ -98,15 +107,6 @@ SYM_CODE_START_NOALIGN(startup_64)
 	popq	%rsi
 #endif
 
-	/* Now switch to __KERNEL_CS so IRET works reliably */
-	pushq	$__KERNEL_CS
-	leaq	.Lon_kernel_cs(%rip), %rax
-	pushq	%rax
-	lretq
-
-.Lon_kernel_cs:
-	UNWIND_HINT_EMPTY
-
 	/* Sanitize CPU configuration */
 	call verify_cpu
 
arch/x86/purgatory/Makefile +5 -0
index 82fec66d46d2..42abd6af1198 100644
@@ -14,6 +14,11 @@ $(obj)/sha256.o: $(srctree)/lib/crypto/sha256.c FORCE
 
 CFLAGS_sha256.o := -D__DISABLE_EXPORTS
 
+# When profile-guided optimization is enabled, llvm emits two different
+# overlapping text sections, which is not supported by kexec. Remove profile
+# optimization flags.
+KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%,$(KBUILD_CFLAGS))
+
 # When linking purgatory.ro with -r unresolved symbols are not checked,
 # also link a purgatory.chk binary without -r to check for unresolved symbols.
 PURGATORY_LDFLAGS := -e purgatory_start -z nodefaultlib
block/blk-cgroup.c +31 -9
index 75bad5d60c9f..dd6d1c0117b1 100644
@@ -35,6 +35,8 @@
 #include "blk-throttle.h"
 #include "blk-rq-qos.h"
 
+static void __blkcg_rstat_flush(struct blkcg *blkcg, int cpu);
+
 /*
  * blkcg_pol_mutex protects blkcg_policy[] and policy [de]activation.
  * blkcg_pol_register_mutex nests outside of it and synchronizes entire
@@ -58,6 +60,8 @@ static LIST_HEAD(all_blkcgs);		/* protected by blkcg_pol_mutex */
 bool blkcg_debug_stats = false;
 static struct workqueue_struct *blkcg_punt_bio_wq;
 
+static DEFINE_RAW_SPINLOCK(blkg_stat_lock);
+
 #define BLKG_DESTROY_BATCH_SIZE  64
 
 /*
@@ -165,8 +169,18 @@ static void blkg_free(struct blkcg_gq *blkg)
 static void __blkg_release(struct rcu_head *rcu)
 {
 	struct blkcg_gq *blkg = container_of(rcu, struct blkcg_gq, rcu_head);
+	struct blkcg *blkcg = blkg->blkcg;
+	int cpu;
 
 	WARN_ON(!bio_list_empty(&blkg->async_bios));
+	/*
+	 * Flush all the non-empty percpu lockless lists before releasing
+	 * us, given these stat belongs to us.
+	 *
+	 * blkg_stat_lock is for serializing blkg stat update
+	 */
+	for_each_possible_cpu(cpu)
+		__blkcg_rstat_flush(blkcg, cpu);
 
 	/* release the blkcg and parent blkg refs this blkg has been holding */
 	css_put(&blkg->blkcg->css);
@@ -888,23 +902,26 @@ static void blkcg_iostat_update(struct blkcg_gq *blkg, struct blkg_iostat *cur,
 	u64_stats_update_end_irqrestore(&blkg->iostat.sync, flags);
 }
 
-static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
+static void __blkcg_rstat_flush(struct blkcg *blkcg, int cpu)
 {
-	struct blkcg *blkcg = css_to_blkcg(css);
 	struct llist_head *lhead = per_cpu_ptr(blkcg->lhead, cpu);
 	struct llist_node *lnode;
 	struct blkg_iostat_set *bisc, *next_bisc;
 
-	/* Root-level stats are sourced from system-wide IO stats */
-	if (!cgroup_parent(css->cgroup))
-		return;
-
 	rcu_read_lock();
 
 	lnode = llist_del_all(lhead);
 	if (!lnode)
 		goto out;
 
+	/*
+	 * For covering concurrent parent blkg update from blkg_release().
+	 *
+	 * When flushing from cgroup, cgroup_rstat_lock is always held, so
+	 * this lock won't cause contention most of time.
+	 */
+	raw_spin_lock(&blkg_stat_lock);
+
 	/*
 	 * Iterate only the iostat_cpu's queued in the lockless list.
 	 */
@@ -928,13 +945,19 @@ static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
 		if (parent && parent->parent)
 			blkcg_iostat_update(parent, &blkg->iostat.cur,
 					    &blkg->iostat.last);
-		percpu_ref_put(&blkg->refcnt);
 	}
-
+	raw_spin_unlock(&blkg_stat_lock);
 out:
 	rcu_read_unlock();
 }
 
+static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
+{
+	/* Root-level stats are sourced from system-wide IO stats */
+	if (cgroup_parent(css->cgroup))
+		__blkcg_rstat_flush(css_to_blkcg(css), cpu);
+}
+
 /*
  * We source root cgroup stats from the system-wide stats to avoid
  * tracking the same information twice and incurring overhead when no
@@ -2063,7 +2086,6 @@ void blk_cgroup_bio_start(struct bio *bio)
 
 		llist_add(&bis->lnode, lhead);
 		WRITE_ONCE(bis->lqueued, true);
-		percpu_ref_get(&bis->blkg->refcnt);
 	}
 
 	u64_stats_update_end_irqrestore(&bis->sync, flags);
drivers/block/xen-blkfront.c +2 -1
index 23ed258b57f0..c1890c8a9f6e 100644
@@ -780,7 +780,8 @@ static int blkif_queue_rw_req(struct request *req, struct blkfront_ring_info *ri
 		ring_req->u.rw.handle = info->handle;
 		ring_req->operation = rq_data_dir(req) ?
 			BLKIF_OP_WRITE : BLKIF_OP_READ;
-		if (req_op(req) == REQ_OP_FLUSH || req->cmd_flags & REQ_FUA) {
+		if (req_op(req) == REQ_OP_FLUSH ||
+		    (req_op(req) == REQ_OP_WRITE && (req->cmd_flags & REQ_FUA))) {
 			/*
 			 * Ideally we can do an unordered flush-to-disk.
 			 * In case the backend onlysupports barriers, use that.
drivers/char/agp/parisc-agp.c +14 -1
index d68d05d5d383..514f9f287a78 100644
@@ -90,6 +90,9 @@ parisc_agp_tlbflush(struct agp_memory *mem)
 {
 	struct _parisc_agp_info *info = &parisc_agp_info;
 
+	/* force fdc ops to be visible to IOMMU */
+	asm_io_sync();
+
 	writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM);
 	readq(info->ioc_regs+IOC_PCOM);	/* flush */
 }
@@ -158,6 +161,7 @@ parisc_agp_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
 			info->gatt[j] =
 				parisc_agp_mask_memory(agp_bridge,
 					paddr, type);
+			asm_io_fdc(&info->gatt[j]);
 		}
 	}
 
@@ -191,7 +195,16 @@ static unsigned long
 parisc_agp_mask_memory(struct agp_bridge_data *bridge, dma_addr_t addr,
 		       int type)
 {
-	return SBA_PDIR_VALID_BIT | addr;
+	unsigned ci;			/* coherent index */
+	dma_addr_t pa;
+
+	pa = addr & IOVP_MASK;
+	asm("lci 0(%1), %0" : "=r" (ci) : "r" (phys_to_virt(pa)));
+
+	pa |= (ci >> PAGE_SHIFT) & 0xff;/* move CI (8 bits) into lowest byte */
+	pa |= SBA_PDIR_VALID_BIT;	/* set "valid" bit */
+
+	return cpu_to_le64(pa);
 }
 
 static void
drivers/clk/pxa/clk-pxa3xx.c +1 -1
index 42958a542662..621e298f101a 100644
@@ -164,7 +164,7 @@ void pxa3xx_clk_update_accr(u32 disable, u32 enable, u32 xclkcfg, u32 mask)
 	accr &= ~disable;
 	accr |= enable;
 
-	writel(accr, ACCR);
+	writel(accr, clk_regs + ACCR);
 	if (xclkcfg)
 		__asm__("mcr p14, 0, %0, c6, c0, 0\n" : : "r"(xclkcfg));
 
drivers/edac/qcom_edac.c +59 -63

258 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
index ba5def374368..b056ca8fb817 100644
@@ -1623,6 +1623,7 @@ static const u16 amdgpu_unsupported_pciidlist[] = {
 	0x5874,
 	0x5940,
 	0x5941,
+	0x5b70,
 	0x5b72,
 	0x5b73,
 	0x5b74,
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -1
index 5e9a0c1bb307..4939a685a643 100644
@@ -140,7 +140,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
 
 		if (flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED)
 			places[c].lpfn = visible_pfn;
-		else if (adev->gmc.real_vram_size != adev->gmc.visible_vram_size)
+		else
 			places[c].flags |= TTM_PL_FLAG_TOPDOWN;
 
 		if (flags & AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +5 -2
index 3f5d13035aff..89a62df76a12 100644
@@ -3538,6 +3538,9 @@ static ssize_t amdgpu_psp_vbflash_read(struct file *filp, struct kobject *kobj,
 	void *fw_pri_cpu_addr;
 	int ret;
 
+	if (adev->psp.vbflash_image_size == 0)
+		return -EINVAL;
+
 	dev_info(adev->dev, "VBIOS flash to PSP started");
 
 	ret = amdgpu_bo_create_kernel(adev, adev->psp.vbflash_image_size,
@@ -3589,13 +3592,13 @@ static ssize_t amdgpu_psp_vbflash_status(struct device *dev,
 }
 
 static const struct bin_attribute psp_vbflash_bin_attr = {
-	.attr = {.name = "psp_vbflash", .mode = 0664},
+	.attr = {.name = "psp_vbflash", .mode = 0660},
 	.size = 0,
 	.write = amdgpu_psp_vbflash_write,
 	.read = amdgpu_psp_vbflash_read,
 };
 
-static DEVICE_ATTR(psp_vbflash_status, 0444, amdgpu_psp_vbflash_status, NULL);
+static DEVICE_ATTR(psp_vbflash_status, 0440, amdgpu_psp_vbflash_status, NULL);
 
 int amdgpu_psp_sysfs_init(struct amdgpu_device *adev)
 {
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +18 -0
index dc474b809604..49de3a3eebc7 100644
@@ -581,3 +581,21 @@ void amdgpu_ring_ib_end(struct amdgpu_ring *ring)
 	if (ring->is_sw_ring)
 		amdgpu_sw_ring_ib_end(ring);
 }
+
+void amdgpu_ring_ib_on_emit_cntl(struct amdgpu_ring *ring)
+{
+	if (ring->is_sw_ring)
+		amdgpu_sw_ring_ib_mark_offset(ring, AMDGPU_MUX_OFFSET_TYPE_CONTROL);
+}
+
+void amdgpu_ring_ib_on_emit_ce(struct amdgpu_ring *ring)
+{
+	if (ring->is_sw_ring)
+		amdgpu_sw_ring_ib_mark_offset(ring, AMDGPU_MUX_OFFSET_TYPE_CE);
+}
+
+void amdgpu_ring_ib_on_emit_de(struct amdgpu_ring *ring)
+{
+	if (ring->is_sw_ring)
+		amdgpu_sw_ring_ib_mark_offset(ring, AMDGPU_MUX_OFFSET_TYPE_DE);
+}
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +9 -0
index 3989e755a5b4..6a491bb24426 100644
@@ -227,6 +227,9 @@ struct amdgpu_ring_funcs {
 	int (*preempt_ib)(struct amdgpu_ring *ring);
 	void (*emit_mem_sync)(struct amdgpu_ring *ring);
 	void (*emit_wave_limit)(struct amdgpu_ring *ring, bool enable);
+	void (*patch_cntl)(struct amdgpu_ring *ring, unsigned offset);
+	void (*patch_ce)(struct amdgpu_ring *ring, unsigned offset);
+	void (*patch_de)(struct amdgpu_ring *ring, unsigned offset);
 };
 
 struct amdgpu_ring {
@@ -316,10 +319,16 @@ struct amdgpu_ring {
 #define amdgpu_ring_init_cond_exec(r) (r)->funcs->init_cond_exec((r))
 #define amdgpu_ring_patch_cond_exec(r,o) (r)->funcs->patch_cond_exec((r),(o))
 #define amdgpu_ring_preempt_ib(r) (r)->funcs->preempt_ib(r)
+#define amdgpu_ring_patch_cntl(r, o) ((r)->funcs->patch_cntl((r), (o)))
+#define amdgpu_ring_patch_ce(r, o) ((r)->funcs->patch_ce((r), (o)))
+#define amdgpu_ring_patch_de(r, o) ((r)->funcs->patch_de((r), (o)))
 
 int amdgpu_ring_alloc(struct amdgpu_ring *ring, unsigned ndw);
 void amdgpu_ring_ib_begin(struct amdgpu_ring *ring);
 void amdgpu_ring_ib_end(struct amdgpu_ring *ring);
+void amdgpu_ring_ib_on_emit_cntl(struct amdgpu_ring *ring);
+void amdgpu_ring_ib_on_emit_ce(struct amdgpu_ring *ring);
+void amdgpu_ring_ib_on_emit_de(struct amdgpu_ring *ring);
 
 void amdgpu_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count);
 void amdgpu_ring_generic_pad_ib(struct amdgpu_ring *ring, struct amdgpu_ib *ib);
drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c +60 -0

84 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.h +15 -0
index 4be45fc14954..b22d4fb2a847 100644
@@ -50,6 +50,12 @@ struct amdgpu_mux_entry {
 	struct list_head        list;
 };
 
+enum amdgpu_ring_mux_offset_type {
+	AMDGPU_MUX_OFFSET_TYPE_CONTROL,
+	AMDGPU_MUX_OFFSET_TYPE_DE,
+	AMDGPU_MUX_OFFSET_TYPE_CE,
+};
+
 struct amdgpu_ring_mux {
 	struct amdgpu_ring      *real_ring;
 
@@ -72,12 +78,18 @@ struct amdgpu_ring_mux {
  * @sync_seq: the fence seqno related with the saved IB.
  * @start:- start location on the software ring.
  * @end:- end location on the software ring.
+ * @control_offset:- the PRE_RESUME bit position used for resubmission.
+ * @de_offset:- the anchor in write_data for de meta of resubmission.
+ * @ce_offset:- the anchor in write_data for ce meta of resubmission.
  */
 struct amdgpu_mux_chunk {
 	struct list_head        entry;
 	uint32_t                sync_seq;
 	u64                     start;
 	u64                     end;
+	u64                     cntl_offset;
+	u64                     de_offset;
+	u64                     ce_offset;
 };
 
 int amdgpu_ring_mux_init(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring,
@@ -89,6 +101,8 @@ u64 amdgpu_ring_mux_get_wptr(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ri
 u64 amdgpu_ring_mux_get_rptr(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring);
 void amdgpu_ring_mux_start_ib(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring);
 void amdgpu_ring_mux_end_ib(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring);
+void amdgpu_ring_mux_ib_mark_offset(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring,
+				    u64 offset, enum amdgpu_ring_mux_offset_type type);
 bool amdgpu_mcbp_handle_trailing_fence_irq(struct amdgpu_ring_mux *mux);
 
 u64 amdgpu_sw_ring_get_rptr_gfx(struct amdgpu_ring *ring);
@@ -97,6 +111,7 @@ void amdgpu_sw_ring_set_wptr_gfx(struct amdgpu_ring *ring);
 void amdgpu_sw_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count);
 void amdgpu_sw_ring_ib_begin(struct amdgpu_ring *ring);
 void amdgpu_sw_ring_ib_end(struct amdgpu_ring *ring);
+void amdgpu_sw_ring_ib_mark_offset(struct amdgpu_ring *ring, enum amdgpu_ring_mux_offset_type type);
 const char *amdgpu_sw_ring_name(int idx);
 unsigned int amdgpu_sw_ring_priority(int idx);
 
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -1
index b1428068fef7..8144d6693541 100644
@@ -6890,8 +6890,10 @@ static int gfx_v10_0_kiq_resume(struct amdgpu_device *adev)
 		return r;
 
 	r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
-	if (unlikely(r != 0))
+	if (unlikely(r != 0)) {
+		amdgpu_bo_unreserve(ring->mqd_obj);
 		return r;
+	}
 
 	gfx_v10_0_kiq_init_queue(ring);
 	amdgpu_bo_kunmap(ring->mqd_obj);
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +95 -10

175 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +5 -1
index 43d587404c3e..a3703fcd0076 100644
@@ -129,7 +129,11 @@ static int vcn_v4_0_sw_init(void *handle)
 		if (adev->vcn.harvest_config & (1 << i))
 			continue;
 
-		atomic_set(&adev->vcn.inst[i].sched_score, 0);
+		/* Init instance 0 sched_score to 1, so it's scheduled after other instances */
+		if (i == 0)
+			atomic_set(&adev->vcn.inst[i].sched_score, 1);
+		else
+			atomic_set(&adev->vcn.inst[i].sched_score, 0);
 
 		/* VCN UNIFIED TRAP */
 		r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +7 -1
index ce46f3a061c4..289c261ffe87 100644
@@ -7170,7 +7170,13 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
 				drm_add_modes_noedid(connector, 640, 480);
 	} else {
 		amdgpu_dm_connector_ddc_get_modes(connector, edid);
-		amdgpu_dm_connector_add_common_modes(encoder, connector);
+		/* most eDP supports only timings from its edid,
+		 * usually only detailed timings are available
+		 * from eDP edid. timings which are not from edid
+		 * may damage eDP
+		 */
+		if (connector->connector_type != DRM_MODE_CONNECTOR_eDP)
+			amdgpu_dm_connector_add_common_modes(encoder, connector);
 		amdgpu_dm_connector_add_freesync_modes(connector, edid);
 	}
 	amdgpu_dm_fbc_init(connector);
drivers/gpu/drm/amd/display/dc/link/link_detection.c +5 -0
index 9839ec222875..8145d208512d 100644
@@ -980,6 +980,11 @@ static bool detect_link_and_local_sink(struct dc_link *link,
 					(link->dpcd_caps.dongle_type !=
 							DISPLAY_DONGLE_DP_HDMI_CONVERTER))
 				converter_disable_audio = true;
+
+			/* limited link rate to HBR3 for DPIA until we implement USB4 V2 */
+			if (link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA &&
+					link->reported_link_cap.link_rate > LINK_RATE_HIGH3)
+				link->reported_link_cap.link_rate = LINK_RATE_HIGH3;
 			break;
 		}
 
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +31 -2
index a5c97d61e92a..65ff245feaec 100644
@@ -1694,10 +1694,39 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu,
 		}
 	}
 
-	/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */
-	workload_type = smu_cmn_to_asic_specific_index(smu,
+	if (smu->power_profile_mode == PP_SMC_POWER_PROFILE_COMPUTE &&
+		(((smu->adev->pdev->device == 0x744C) && (smu->adev->pdev->revision == 0xC8)) ||
+		((smu->adev->pdev->device == 0x744C) && (smu->adev->pdev->revision == 0xCC)))) {
+		ret = smu_cmn_update_table(smu,
+					   SMU_TABLE_ACTIVITY_MONITOR_COEFF,
+					   WORKLOAD_PPLIB_COMPUTE_BIT,
+					   (void *)(&activity_monitor_external),
+					   false);
+		if (ret) {
+			dev_err(smu->adev->dev, "[%s] Failed to get activity monitor!", __func__);
+			return ret;
+		}
+
+		ret = smu_cmn_update_table(smu,
+					   SMU_TABLE_ACTIVITY_MONITOR_COEFF,
+					   WORKLOAD_PPLIB_CUSTOM_BIT,
+					   (void *)(&activity_monitor_external),
+					   true);
+		if (ret) {
+			dev_err(smu->adev->dev, "[%s] Failed to set activity monitor!", __func__);
+			return ret;
+		}
+
+		workload_type = smu_cmn_to_asic_specific_index(smu,
+						       CMN2ASIC_MAPPING_WORKLOAD,
+						       PP_SMC_POWER_PROFILE_CUSTOM);
+	} else {
+		/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */
+		workload_type = smu_cmn_to_asic_specific_index(smu,
 						       CMN2ASIC_MAPPING_WORKLOAD,
 						       smu->power_profile_mode);
+	}
+
 	if (workload_type < 0)
 		return -EINVAL;
 
drivers/gpu/drm/bridge/ti-sn65dsi86.c +4 -0
index 1e26fa63845a..0ae8a52acf5e 100644
@@ -298,6 +298,10 @@ static void ti_sn_bridge_set_refclk_freq(struct ti_sn65dsi86 *pdata)
 		if (refclk_lut[i] == refclk_rate)
 			break;
 
+	/* avoid buffer overflow and "1" is the default rate in the datasheet. */
+	if (i >= refclk_lut_size)
+		i = 1;
+
 	regmap_update_bits(pdata->regmap, SN_DPPLL_SRC_REG, REFCLK_FREQ_MASK,
 			   REFCLK_FREQ(i));
 
drivers/gpu/drm/drm_panel_orientation_quirks.c +1 -1
index b1a38e6ce2f8..0cb646cb04ee 100644
@@ -179,7 +179,7 @@ static const struct dmi_system_id orientation_data[] = {
 	}, {	/* AYA NEO AIR */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
-		  DMI_MATCH(DMI_BOARD_NAME, "AIR"),
+		  DMI_MATCH(DMI_PRODUCT_NAME, "AIR"),
 		},
 		.driver_data = (void *)&lcd1080x1920_leftside_up,
 	}, {	/* AYA NEO NEXT */
drivers/gpu/drm/nouveau/nouveau_acpi.c +3 -0
index 8cf096f841a9..a2ae8c21e4dc 100644
@@ -220,6 +220,9 @@ static void nouveau_dsm_pci_probe(struct pci_dev *pdev, acpi_handle *dhandle_out
 	int optimus_funcs;
 	struct pci_dev *parent_pdev;
 
+	if (pdev->vendor != PCI_VENDOR_ID_NVIDIA)
+		return;
+
 	*has_pr3 = false;
 	parent_pdev = pci_upstream_bridge(pdev);
 	if (parent_pdev) {
drivers/gpu/drm/nouveau/nouveau_connector.c +4 -3
index 086b66b60d91..f75c6f09dd2a 100644
@@ -730,7 +730,8 @@ nouveau_connector_detect_lvds(struct drm_connector *connector, bool force)
 #endif
 
 	nouveau_connector_set_edid(nv_connector, edid);
-	nouveau_connector_set_encoder(connector, nv_encoder);
+	if (nv_encoder)
+		nouveau_connector_set_encoder(connector, nv_encoder);
 	return status;
 }
 
@@ -966,7 +967,7 @@ nouveau_connector_get_modes(struct drm_connector *connector)
 	/* Determine display colour depth for everything except LVDS now,
 	 * DP requires this before mode_valid() is called.
 	 */
-	if (connector->connector_type != DRM_MODE_CONNECTOR_LVDS)
+	if (connector->connector_type != DRM_MODE_CONNECTOR_LVDS && nv_connector->native_mode)
 		nouveau_connector_detect_depth(connector);
 
 	/* Find the native mode if this is a digital panel, if we didn't
@@ -987,7 +988,7 @@ nouveau_connector_get_modes(struct drm_connector *connector)
 	 * "native" mode as some VBIOS tables require us to use the
 	 * pixel clock as part of the lookup...
 	 */
-	if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS)
+	if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS && nv_connector->native_mode)
 		nouveau_connector_detect_depth(connector);
 
 	if (nv_encoder->dcb->type == DCB_OUTPUT_TV)
drivers/gpu/drm/nouveau/nouveau_drm.c +10 -4
index cc7c5b4a05fd..7aac9384600e 100644
@@ -137,10 +137,16 @@ nouveau_name(struct drm_device *dev)
 static inline bool
 nouveau_cli_work_ready(struct dma_fence *fence)
 {
-	if (!dma_fence_is_signaled(fence))
-		return false;
-	dma_fence_put(fence);
-	return true;
+	bool ret = true;
+
+	spin_lock_irq(fence->lock);
+	if (!dma_fence_is_signaled_locked(fence))
+		ret = false;
+	spin_unlock_irq(fence->lock);
+
+	if (ret == true)
+		dma_fence_put(fence);
+	return ret;
 }
 
 static void
drivers/infiniband/core/cma.c +2 -2
index 6b9563d4f23c..033df909b92e 100644
@@ -3297,7 +3297,7 @@ static int cma_resolve_iboe_route(struct rdma_id_private *id_priv)
 	route->path_rec->traffic_class = tos;
 	route->path_rec->mtu = iboe_get_mtu(ndev->mtu);
 	route->path_rec->rate_selector = IB_SA_EQ;
-	route->path_rec->rate = iboe_get_rate(ndev);
+	route->path_rec->rate = IB_RATE_PORT_CURRENT;
 	dev_put(ndev);
 	route->path_rec->packet_life_time_selector = IB_SA_EQ;
 	/* In case ACK timeout is set, use this value to calculate
@@ -4966,7 +4966,7 @@ static int cma_iboe_join_multicast(struct rdma_id_private *id_priv,
 	if (!ndev)
 		return -ENODEV;
 
-	ib.rec.rate = iboe_get_rate(ndev);
+	ib.rec.rate = IB_RATE_PORT_CURRENT;
 	ib.rec.hop_limit = 1;
 	ib.rec.mtu = iboe_get_mtu(ndev->mtu);
 
drivers/infiniband/core/uverbs_cmd.c +6 -1
index 4796f6a8828c..e836c9c477f6 100644
@@ -1850,8 +1850,13 @@ static int modify_qp(struct uverbs_attr_bundle *attrs,
 		attr->path_mtu = cmd->base.path_mtu;
 	if (cmd->base.attr_mask & IB_QP_PATH_MIG_STATE)
 		attr->path_mig_state = cmd->base.path_mig_state;
-	if (cmd->base.attr_mask & IB_QP_QKEY)
+	if (cmd->base.attr_mask & IB_QP_QKEY) {
+		if (cmd->base.qkey & IB_QP_SET_QKEY && !capable(CAP_NET_RAW)) {
+			ret = -EPERM;
+			goto release_qp;
+		}
 		attr->qkey = cmd->base.qkey;
+	}
 	if (cmd->base.attr_mask & IB_QP_RQ_PSN)
 		attr->rq_psn = cmd->base.rq_psn;
 	if (cmd->base.attr_mask & IB_QP_SQ_PSN)
drivers/infiniband/core/uverbs_main.c +5 -7
index bdb179a09d77..3cd4b195007b 100644
@@ -222,8 +222,12 @@ static ssize_t ib_uverbs_event_read(struct ib_uverbs_event_queue *ev_queue,
 	spin_lock_irq(&ev_queue->lock);
 
 	while (list_empty(&ev_queue->event_list)) {
-		spin_unlock_irq(&ev_queue->lock);
+		if (ev_queue->is_closed) {
+			spin_unlock_irq(&ev_queue->lock);
+			return -EIO;
+		}
 
+		spin_unlock_irq(&ev_queue->lock);
 		if (filp->f_flags & O_NONBLOCK)
 			return -EAGAIN;
 
@@ -233,12 +237,6 @@ static ssize_t ib_uverbs_event_read(struct ib_uverbs_event_queue *ev_queue,
 			return -ERESTARTSYS;
 
 		spin_lock_irq(&ev_queue->lock);
-
-		/* If device was disassociated and no event exists set an error */
-		if (list_empty(&ev_queue->event_list) && ev_queue->is_closed) {
-			spin_unlock_irq(&ev_queue->lock);
-			return -EIO;
-		}
 	}
 
 	event = list_entry(ev_queue->event_list.next, struct ib_uverbs_event, list);
drivers/infiniband/hw/bnxt_re/bnxt_re.h +0 -2
index 5a2baf49ecaa..2c95e6f3d47a 100644
@@ -135,8 +135,6 @@ struct bnxt_re_dev {
 
 	struct delayed_work		worker;
 	u8				cur_prio_map;
-	u16				active_speed;
-	u8				active_width;
 
 	/* FP Notification Queue (CQ & SRQ) */
 	struct tasklet_struct		nq_task;
drivers/infiniband/hw/bnxt_re/ib_verbs.c +4 -3
index 94222de1d371..584d6e64ca70 100644
@@ -199,6 +199,7 @@ int bnxt_re_query_port(struct ib_device *ibdev, u32 port_num,
 {
 	struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev);
 	struct bnxt_qplib_dev_attr *dev_attr = &rdev->dev_attr;
+	int rc;
 
 	memset(port_attr, 0, sizeof(*port_attr));
 
@@ -228,10 +229,10 @@ int bnxt_re_query_port(struct ib_device *ibdev, u32 port_num,
 	port_attr->sm_sl = 0;
 	port_attr->subnet_timeout = 0;
 	port_attr->init_type_reply = 0;
-	port_attr->active_speed = rdev->active_speed;
-	port_attr->active_width = rdev->active_width;
+	rc = ib_get_eth_speed(&rdev->ibdev, port_num, &port_attr->active_speed,
+			      &port_attr->active_width);
 
-	return 0;
+	return rc;
 }
 
 int bnxt_re_get_port_immutable(struct ib_device *ibdev, u32 port_num,
drivers/infiniband/hw/bnxt_re/main.c +0 -2
index c5867e78f231..85e36c9f8e79 100644
@@ -1152,8 +1152,6 @@ static int bnxt_re_ib_init(struct bnxt_re_dev *rdev)
 		return rc;
 	}
 	dev_info(rdev_to_dev(rdev), "Device registered with IB successfully");
-	ib_get_eth_speed(&rdev->ibdev, 1, &rdev->active_speed,
-			 &rdev->active_width);
 	set_bit(BNXT_RE_FLAG_ISSUE_ROCE_STATS, &rdev->flags);
 
 	event = netif_running(rdev->netdev) && netif_carrier_ok(rdev->netdev) ?
drivers/infiniband/hw/mlx5/fs.c +269 -7

324 lines not on this page · raw message

drivers/infiniband/hw/mlx5/fs.h +16 -0
index ad320adaf321..b9734904f5f0 100644
@@ -10,6 +10,7 @@
 
 #if IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS)
 int mlx5_ib_fs_init(struct mlx5_ib_dev *dev);
+void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev);
 #else
 static inline int mlx5_ib_fs_init(struct mlx5_ib_dev *dev)
 {
@@ -21,9 +22,24 @@ static inline int mlx5_ib_fs_init(struct mlx5_ib_dev *dev)
 	mutex_init(&dev->flow_db->lock);
 	return 0;
 }
+
+inline void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev) {}
 #endif
+
 static inline void mlx5_ib_fs_cleanup(struct mlx5_ib_dev *dev)
 {
+	/* When a steering anchor is created, a special flow table is also
+	 * created for the user to reference. Since the user can reference it,
+	 * the kernel cannot trust that when the user destroys the steering
+	 * anchor, they no longer reference the flow table.
+	 *
+	 * To address this issue, when a user destroys a steering anchor, only
+	 * the flow steering rule in the table is destroyed, but the table
+	 * itself is kept to deal with the above scenario. The remaining
+	 * resources are only removed when the RDMA device is destroyed, which
+	 * is a safe assumption that all references are gone.
+	 */
+	mlx5_ib_fs_cleanup_anchor(dev);
 	kfree(dev->flow_db);
 }
 #endif /* _MLX5_IB_FS_H */
drivers/infiniband/hw/mlx5/main.c +3 -0
index 5d45de223c43..f0b394ed7452 100644
@@ -4275,6 +4275,9 @@ const struct mlx5_ib_profile raw_eth_profile = {
 	STAGE_CREATE(MLX5_IB_STAGE_POST_IB_REG_UMR,
 		     mlx5_ib_stage_post_ib_reg_umr_init,
 		     NULL),
+	STAGE_CREATE(MLX5_IB_STAGE_DELAY_DROP,
+		     mlx5_ib_stage_delay_drop_init,
+		     mlx5_ib_stage_delay_drop_cleanup),
 	STAGE_CREATE(MLX5_IB_STAGE_RESTRACK,
 		     mlx5_ib_restrack_init,
 		     NULL),
drivers/infiniband/hw/mlx5/mlx5_ib.h +14 -0
index efa4dc6e7dee..2dfa6f49a6f4 100644
@@ -237,8 +237,19 @@ enum {
 #define MLX5_IB_NUM_SNIFFER_FTS		2
 #define MLX5_IB_NUM_EGRESS_FTS		1
 #define MLX5_IB_NUM_FDB_FTS		MLX5_BY_PASS_NUM_REGULAR_PRIOS
+
+struct mlx5_ib_anchor {
+	struct mlx5_flow_table *ft;
+	struct mlx5_flow_group *fg_goto_table;
+	struct mlx5_flow_group *fg_drop;
+	struct mlx5_flow_handle *rule_goto_table;
+	struct mlx5_flow_handle *rule_drop;
+	unsigned int rule_goto_table_ref;
+};
+
 struct mlx5_ib_flow_prio {
 	struct mlx5_flow_table		*flow_table;
+	struct mlx5_ib_anchor		anchor;
 	unsigned int			refcount;
 };
 
@@ -1587,6 +1598,9 @@ static inline bool mlx5_ib_lag_should_assign_affinity(struct mlx5_ib_dev *dev)
 	    MLX5_CAP_PORT_SELECTION(dev->mdev, port_select_flow_table_bypass))
 		return 0;
 
+	if (mlx5_lag_is_lacp_owner(dev->mdev) && !dev->lag_active)
+		return 0;
+
 	return dev->lag_active ||
 		(MLX5_CAP_GEN(dev->mdev, num_lag_ports) > 1 &&
 		 MLX5_CAP_GEN(dev->mdev, lag_tx_port_affinity));
drivers/infiniband/hw/mlx5/qp.c +3 -0
index 86284aba3470..5bc63020b766 100644
@@ -1233,6 +1233,9 @@ static int create_raw_packet_qp_tis(struct mlx5_ib_dev *dev,
 
 	MLX5_SET(create_tis_in, in, uid, to_mpd(pd)->uid);
 	MLX5_SET(tisc, tisc, transport_domain, tdn);
+	if (!mlx5_ib_lag_should_assign_affinity(dev) &&
+	    mlx5_lag_is_lacp_owner(dev->mdev))
+		MLX5_SET(tisc, tisc, strict_lag_tx_port_affinity, 1);
 	if (qp->flags & IB_QP_CREATE_SOURCE_QPN)
 		MLX5_SET(tisc, tisc, underlay_qpn, qp->underlay_qpn);
 
drivers/infiniband/sw/rxe/rxe_cq.c +2 -2
index 519ddec29b4b..d6113329fee6 100644
@@ -112,8 +112,6 @@ int rxe_cq_post(struct rxe_cq *cq, struct rxe_cqe *cqe, int solicited)
 
 	queue_advance_producer(cq->queue, QUEUE_TYPE_TO_CLIENT);
 
-	spin_unlock_irqrestore(&cq->cq_lock, flags);
-
 	if ((cq->notify == IB_CQ_NEXT_COMP) ||
 	    (cq->notify == IB_CQ_SOLICITED && solicited)) {
 		cq->notify = 0;
@@ -121,6 +119,8 @@ int rxe_cq_post(struct rxe_cq *cq, struct rxe_cqe *cqe, int solicited)
 		cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
 	}
 
+	spin_unlock_irqrestore(&cq->cq_lock, flags);
+
 	return 0;
 }
 
drivers/infiniband/sw/rxe/rxe_net.c +6 -0
index a2ace42e9536..e8403a70c6b7 100644
@@ -159,6 +159,9 @@ static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
 	pkt->mask = RXE_GRH_MASK;
 	pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph);
 
+	/* remove udp header */
+	skb_pull(skb, sizeof(struct udphdr));
+
 	rxe_rcv(skb);
 
 	return 0;
@@ -401,6 +404,9 @@ static int rxe_loopback(struct sk_buff *skb, struct rxe_pkt_info *pkt)
 		return -EIO;
 	}
 
+	/* remove udp header */
+	skb_pull(skb, sizeof(struct udphdr));
+
 	rxe_rcv(skb);
 
 	return 0;
drivers/infiniband/sw/rxe/rxe_qp.c +3 -4
index d5de5ba6940f..94a7f5ebc629 100644
@@ -176,6 +176,9 @@ static void rxe_qp_init_misc(struct rxe_dev *rxe, struct rxe_qp *qp,
 	spin_lock_init(&qp->rq.producer_lock);
 	spin_lock_init(&qp->rq.consumer_lock);
 
+	skb_queue_head_init(&qp->req_pkts);
+	skb_queue_head_init(&qp->resp_pkts);
+
 	atomic_set(&qp->ssn, 0);
 	atomic_set(&qp->skb_out, 0);
 }
@@ -236,8 +239,6 @@ static int rxe_qp_init_req(struct rxe_dev *rxe, struct rxe_qp *qp,
 	qp->req.opcode		= -1;
 	qp->comp.opcode		= -1;
 
-	skb_queue_head_init(&qp->req_pkts);
-
 	rxe_init_task(&qp->req.task, qp, rxe_requester);
 	rxe_init_task(&qp->comp.task, qp, rxe_completer);
 
@@ -281,8 +282,6 @@ static int rxe_qp_init_resp(struct rxe_dev *rxe, struct rxe_qp *qp,
 		}
 	}
 
-	skb_queue_head_init(&qp->resp_pkts);
-
 	rxe_init_task(&qp->resp.task, qp, rxe_responder);
 
 	qp->resp.opcode		= OPCODE_NONE;
drivers/infiniband/sw/rxe/rxe_resp.c +2 -1
index 8c6834050276..4e8d8bec0010 100644
@@ -519,8 +519,9 @@ static enum resp_states check_rkey(struct rxe_qp *qp,
 		if (mw->access & IB_ZERO_BASED)
 			qp->resp.offset = mw->addr;
 
-		rxe_put(mw);
 		rxe_get(mr);
+		rxe_put(mw);
+		mw = NULL;
 	} else {
 		mr = lookup_mr(qp->pd, access, rkey, RXE_LOOKUP_REMOTE);
 		if (!mr) {
drivers/infiniband/ulp/isert/ib_isert.c +12 -4
index f290cd49698e..92e1e7587af8 100644
@@ -657,9 +657,13 @@ static int
 isert_connect_error(struct rdma_cm_id *cma_id)
 {
 	struct isert_conn *isert_conn = cma_id->qp->qp_context;
+	struct isert_np *isert_np = cma_id->context;
 
 	ib_drain_qp(isert_conn->qp);
+
+	mutex_lock(&isert_np->mutex);
 	list_del_init(&isert_conn->node);
+	mutex_unlock(&isert_np->mutex);
 	isert_conn->cm_id = NULL;
 	isert_put_conn(isert_conn);
 
@@ -2431,6 +2435,7 @@ isert_free_np(struct iscsi_np *np)
 {
 	struct isert_np *isert_np = np->np_context;
 	struct isert_conn *isert_conn, *n;
+	LIST_HEAD(drop_conn_list);
 
 	if (isert_np->cm_id)
 		rdma_destroy_id(isert_np->cm_id);
@@ -2450,7 +2455,7 @@ isert_free_np(struct iscsi_np *np)
 					 node) {
 			isert_info("cleaning isert_conn %p state (%d)\n",
 				   isert_conn, isert_conn->state);
-			isert_connect_release(isert_conn);
+			list_move_tail(&isert_conn->node, &drop_conn_list);
 		}
 	}
 
@@ -2461,11 +2466,16 @@ isert_free_np(struct iscsi_np *np)
 					 node) {
 			isert_info("cleaning isert_conn %p state (%d)\n",
 				   isert_conn, isert_conn->state);
-			isert_connect_release(isert_conn);
+			list_move_tail(&isert_conn->node, &drop_conn_list);
 		}
 	}
 	mutex_unlock(&isert_np->mutex);
 
+	list_for_each_entry_safe(isert_conn, n, &drop_conn_list, node) {
+		list_del_init(&isert_conn->node);
+		isert_connect_release(isert_conn);
+	}
+
 	np->np_context = NULL;
 	kfree(isert_np);
 }
@@ -2560,8 +2570,6 @@ static void isert_wait_conn(struct iscsit_conn *conn)
 	isert_put_unsol_pending_cmds(conn);
 	isert_wait4cmds(conn);
 	isert_wait4logout(isert_conn);
-
-	queue_work(isert_release_wq, &isert_conn->release_work);
 }
 
 static void isert_free_conn(struct iscsit_conn *conn)
drivers/infiniband/ulp/rtrs/rtrs-clt.c +23 -32

104 lines not on this page · raw message

drivers/infiniband/ulp/rtrs/rtrs.c +3 -1
index 4bf9d868cc52..3696f367ff51 100644
@@ -37,8 +37,10 @@ struct rtrs_iu *rtrs_iu_alloc(u32 iu_num, size_t size, gfp_t gfp_mask,
 			goto err;
 
 		iu->dma_addr = ib_dma_map_single(dma_dev, iu->buf, size, dir);
-		if (ib_dma_mapping_error(dma_dev, iu->dma_addr))
+		if (ib_dma_mapping_error(dma_dev, iu->dma_addr)) {
+			kfree(iu->buf);
 			goto err;
+		}
 
 		iu->cqe.done  = done;
 		iu->size      = size;
drivers/irqchip/irq-gic-common.c +8 -2
index a610821c8ff2..afd6a1841715 100644
@@ -16,7 +16,13 @@ void gic_enable_of_quirks(const struct device_node *np,
 			  const struct gic_quirk *quirks, void *data)
 {
 	for (; quirks->desc; quirks++) {
-		if (!of_device_is_compatible(np, quirks->compatible))
+		if (!quirks->compatible && !quirks->property)
+			continue;
+		if (quirks->compatible &&
+		    !of_device_is_compatible(np, quirks->compatible))
+			continue;
+		if (quirks->property &&
+		    !of_property_read_bool(np, quirks->property))
 			continue;
 		if (quirks->init(data))
 			pr_info("GIC: enabling workaround for %s\n",
@@ -28,7 +34,7 @@ void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,
 		void *data)
 {
 	for (; quirks->desc; quirks++) {
-		if (quirks->compatible)
+		if (quirks->compatible || quirks->property)
 			continue;
 		if (quirks->iidr != (quirks->mask & iidr))
 			continue;
drivers/irqchip/irq-gic-common.h +1 -0
index 27e3d4ed4f32..3db4592cda1c 100644
@@ -13,6 +13,7 @@
 struct gic_quirk {
 	const char *desc;
 	const char *compatible;
+	const char *property;
 	bool (*init)(void *data);
 	u32 iidr;
 	u32 mask;
drivers/irqchip/irq-gic-v3.c +20 -0
index 6fcee221f201..a605aa79435a 100644
@@ -39,6 +39,7 @@
 
 #define FLAGS_WORKAROUND_GICR_WAKER_MSM8996	(1ULL << 0)
 #define FLAGS_WORKAROUND_CAVIUM_ERRATUM_38539	(1ULL << 1)
+#define FLAGS_WORKAROUND_MTK_GICR_SAVE		(1ULL << 2)
 
 #define GIC_IRQ_TYPE_PARTITION	(GIC_IRQ_TYPE_LPI + 1)
 
@@ -1720,6 +1721,15 @@ static bool gic_enable_quirk_msm8996(void *data)
 	return true;
 }
 
+static bool gic_enable_quirk_mtk_gicr(void *data)
+{
+	struct gic_chip_data *d = data;
+
+	d->flags |= FLAGS_WORKAROUND_MTK_GICR_SAVE;
+
+	return true;
+}
+
 static bool gic_enable_quirk_cavium_38539(void *data)
 {
 	struct gic_chip_data *d = data;
@@ -1792,6 +1802,11 @@ static const struct gic_quirk gic_quirks[] = {
 		.compatible = "qcom,msm8996-gic-v3",
 		.init	= gic_enable_quirk_msm8996,
 	},
+	{
+		.desc	= "GICv3: Mediatek Chromebook GICR save problem",
+		.property = "mediatek,broken-save-restore-fw",
+		.init	= gic_enable_quirk_mtk_gicr,
+	},
 	{
 		.desc	= "GICv3: HIP06 erratum 161010803",
 		.iidr	= 0x0204043b,
@@ -1834,6 +1849,11 @@ static void gic_enable_nmi_support(void)
 	if (!gic_prio_masking_enabled())
 		return;
 
+	if (gic_data.flags & FLAGS_WORKAROUND_MTK_GICR_SAVE) {
+		pr_warn("Skipping NMI enable due to firmware issues\n");
+		return;
+	}
+
 	ppi_nmi_refs = kcalloc(gic_data.ppi_nr, sizeof(*ppi_nmi_refs), GFP_KERNEL);
 	if (!ppi_nmi_refs)
 		return;
drivers/irqchip/irq-meson-gpio.c +1 -1
index 2aaa9aad3e87..7da18ef95211 100644
@@ -150,7 +150,7 @@ static const struct meson_gpio_irq_params s4_params = {
 	INIT_MESON_S4_COMMON_DATA(82)
 };
 
-static const struct of_device_id meson_irq_gpio_matches[] = {
+static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
 	{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
 	{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
 	{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
drivers/md/dm-ioctl.c +1 -4
index cc77cf3d4109..7d5c9c582ed2 100644
@@ -1168,13 +1168,10 @@ static int do_resume(struct dm_ioctl *param)
 	/* Do we need to load a new map ? */
 	if (new_map) {
 		sector_t old_size, new_size;
-		int srcu_idx;
 
 		/* Suspend if it isn't already suspended */
-		old_map = dm_get_live_table(md, &srcu_idx);
-		if ((param->flags & DM_SKIP_LOCKFS_FLAG) || !old_map)
+		if (param->flags & DM_SKIP_LOCKFS_FLAG)
 			suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG;
-		dm_put_live_table(md, srcu_idx);
 		if (param->flags & DM_NOFLUSH_FLAG)
 			suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG;
 		if (!dm_suspended_md(md))
drivers/md/dm-thin-metadata.c +12 -8
index fd464fb024c3..9dd0409848ab 100644
@@ -1756,13 +1756,15 @@ int dm_thin_remove_range(struct dm_thin_device *td,
 
 int dm_pool_block_is_shared(struct dm_pool_metadata *pmd, dm_block_t b, bool *result)
 {
-	int r;
+	int r = -EINVAL;
 	uint32_t ref_count;
 
 	down_read(&pmd->root_lock);
-	r = dm_sm_get_count(pmd->data_sm, b, &ref_count);
-	if (!r)
-		*result = (ref_count > 1);
+	if (!pmd->fail_io) {
+		r = dm_sm_get_count(pmd->data_sm, b, &ref_count);
+		if (!r)
+			*result = (ref_count > 1);
+	}
 	up_read(&pmd->root_lock);
 
 	return r;
@@ -1770,10 +1772,11 @@ int dm_pool_block_is_shared(struct dm_pool_metadata *pmd, dm_block_t b, bool *re
 
 int dm_pool_inc_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e)
 {
-	int r = 0;
+	int r = -EINVAL;
 
 	pmd_write_lock(pmd);
-	r = dm_sm_inc_blocks(pmd->data_sm, b, e);
+	if (!pmd->fail_io)
+		r = dm_sm_inc_blocks(pmd->data_sm, b, e);
 	pmd_write_unlock(pmd);
 
 	return r;
@@ -1781,10 +1784,11 @@ int dm_pool_inc_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_
 
 int dm_pool_dec_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e)
 {
-	int r = 0;
+	int r = -EINVAL;
 
 	pmd_write_lock(pmd);
-	r = dm_sm_dec_blocks(pmd->data_sm, b, e);
+	if (!pmd->fail_io)
+		r = dm_sm_dec_blocks(pmd->data_sm, b, e);
 	pmd_write_unlock(pmd);
 
 	return r;
drivers/md/dm-thin.c +1 -2
index 13d4677baafd..303af00e8889 100644
@@ -399,8 +399,7 @@ static int issue_discard(struct discard_op *op, dm_block_t data_b, dm_block_t da
 	sector_t s = block_to_sectors(tc->pool, data_b);
 	sector_t len = block_to_sectors(tc->pool, data_e - data_b);
 
-	return __blkdev_issue_discard(tc->pool_dev->bdev, s, len, GFP_NOWAIT,
-				      &op->bio);
+	return __blkdev_issue_discard(tc->pool_dev->bdev, s, len, GFP_NOIO, &op->bio);
 }
 
 static void end_discard(struct discard_op *op, int r)
drivers/md/dm.c +4 -0
index dfde0088147a..0a10e94a6db1 100644
@@ -2795,6 +2795,10 @@ int dm_suspend(struct mapped_device *md, unsigned int suspend_flags)
 	}
 
 	map = rcu_dereference_protected(md->map, lockdep_is_held(&md->suspend_lock));
+	if (!map) {
+		/* avoid deadlock with fs/namespace.c:do_mount() */
+		suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG;
+	}
 
 	r = __dm_suspend(md, map, suspend_flags, TASK_INTERRUPTIBLE, DMF_SUSPENDED);
 	if (r)
drivers/media/dvb-core/dvb_frontend.c +9 -44

124 lines not on this page · raw message

drivers/net/dsa/ocelot/felix_vsc9959.c +1 -1
index dddb28984bdf..841c5ebc1afa 100644
@@ -1263,7 +1263,7 @@ static void vsc9959_tas_guard_bands_update(struct ocelot *ocelot, int port)
 	/* Consider the standard Ethernet overhead of 8 octets preamble+SFD,
 	 * 4 octets FCS, 12 octets IFG.
 	 */
-	needed_bit_time_ps = (maxlen + 24) * picos_per_byte;
+	needed_bit_time_ps = (u64)(maxlen + 24) * picos_per_byte;
 
 	dev_dbg(ocelot->dev,
 		"port %d: max frame size %d needs %llu ps at speed %d\n",
drivers/net/ethernet/freescale/enetc/enetc_qos.c +2 -2
index 83c27bbbc6ed..126007ab70f6 100644
@@ -181,8 +181,8 @@ int enetc_setup_tc_cbs(struct net_device *ndev, void *type_data)
 	int bw_sum = 0;
 	u8 bw;
 
-	prio_top = netdev_get_prio_tc_map(ndev, tc_nums - 1);
-	prio_next = netdev_get_prio_tc_map(ndev, tc_nums - 2);
+	prio_top = tc_nums - 1;
+	prio_next = tc_nums - 2;
 
 	/* Support highest prio and second prio tc in cbs mode */
 	if (tc != prio_top && tc != prio_next)
drivers/net/ethernet/intel/iavf/iavf.h +1 -1
index 746ff76f2fb1..0615bb2b3c33 100644
@@ -526,7 +526,7 @@ void iavf_set_ethtool_ops(struct net_device *netdev);
 void iavf_update_stats(struct iavf_adapter *adapter);
 void iavf_reset_interrupt_capability(struct iavf_adapter *adapter);
 int iavf_init_interrupt_scheme(struct iavf_adapter *adapter);
-void iavf_irq_enable_queues(struct iavf_adapter *adapter, u32 mask);
+void iavf_irq_enable_queues(struct iavf_adapter *adapter);
 void iavf_free_all_tx_resources(struct iavf_adapter *adapter);
 void iavf_free_all_rx_resources(struct iavf_adapter *adapter);
 
drivers/net/ethernet/intel/iavf/iavf_main.c +6 -9
index 2de4baff4c20..4a66873882d1 100644
@@ -359,21 +359,18 @@ static void iavf_irq_disable(struct iavf_adapter *adapter)
 }
 
 /**
- * iavf_irq_enable_queues - Enable interrupt for specified queues
+ * iavf_irq_enable_queues - Enable interrupt for all queues
  * @adapter: board private structure
- * @mask: bitmap of queues to enable
  **/
-void iavf_irq_enable_queues(struct iavf_adapter *adapter, u32 mask)
+void iavf_irq_enable_queues(struct iavf_adapter *adapter)
 {
 	struct iavf_hw *hw = &adapter->hw;
 	int i;
 
 	for (i = 1; i < adapter->num_msix_vectors; i++) {
-		if (mask & BIT(i - 1)) {
-			wr32(hw, IAVF_VFINT_DYN_CTLN1(i - 1),
-			     IAVF_VFINT_DYN_CTLN1_INTENA_MASK |
-			     IAVF_VFINT_DYN_CTLN1_ITR_INDX_MASK);
-		}
+		wr32(hw, IAVF_VFINT_DYN_CTLN1(i - 1),
+		     IAVF_VFINT_DYN_CTLN1_INTENA_MASK |
+		     IAVF_VFINT_DYN_CTLN1_ITR_INDX_MASK);
 	}
 }
 
@@ -387,7 +384,7 @@ void iavf_irq_enable(struct iavf_adapter *adapter, bool flush)
 	struct iavf_hw *hw = &adapter->hw;
 
 	iavf_misc_irq_enable(adapter);
-	iavf_irq_enable_queues(adapter, ~0);
+	iavf_irq_enable_queues(adapter);
 
 	if (flush)
 		iavf_flush(hw);
drivers/net/ethernet/intel/iavf/iavf_register.h +1 -1
index bf793332fc9d..a19e88898a0b 100644
@@ -40,7 +40,7 @@
 #define IAVF_VFINT_DYN_CTL01_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTL01_INTENA_SHIFT)
 #define IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT 3
 #define IAVF_VFINT_DYN_CTL01_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT)
-#define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...15 */ /* Reset: VFR */
+#define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...63 */ /* Reset: VFR */
 #define IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT 0
 #define IAVF_VFINT_DYN_CTLN1_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT)
 #define IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_SHIFT 2
drivers/net/ethernet/intel/ice/ice_gnss.c +20 -30

89 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_gnss.h +1 -2
index d95ca3928b2e..d206afe550a5 100644
@@ -5,6 +5,7 @@
 #define _ICE_GNSS_H_
 
 #define ICE_E810T_GNSS_I2C_BUS		0x2
+#define ICE_GNSS_POLL_DATA_DELAY_TIME	(HZ / 100) /* poll every 10 ms */
 #define ICE_GNSS_TIMER_DELAY_TIME	(HZ / 10) /* 0.1 second per message */
 #define ICE_GNSS_TTY_WRITE_BUF		250
 #define ICE_MAX_I2C_DATA_SIZE		FIELD_MAX(ICE_AQC_I2C_DATA_SIZE_M)
@@ -20,8 +21,6 @@
  * passed as I2C addr parameter.
  */
 #define ICE_GNSS_UBX_WRITE_BYTES	(ICE_MAX_I2C_WRITE_BYTES + 1)
-#define ICE_MAX_UBX_READ_TRIES		255
-#define ICE_MAX_UBX_ACK_READ_TRIES	4095
 
 /**
  * struct gnss_serial - data used to initialize GNSS TTY port
drivers/net/ethernet/intel/ice/ice_main.c +9 -11
index 0d8b8c6f9bd3..98e8ce743fb2 100644
@@ -4794,9 +4794,13 @@ static int ice_init_dev(struct ice_pf *pf)
 static void ice_deinit_dev(struct ice_pf *pf)
 {
 	ice_free_irq_msix_misc(pf);
-	ice_clear_interrupt_scheme(pf);
 	ice_deinit_pf(pf);
 	ice_deinit_hw(&pf->hw);
+
+	/* Service task is already stopped, so call reset directly. */
+	ice_reset(&pf->hw, ICE_RESET_PFR);
+	pci_wait_for_pending_transaction(pf->pdev);
+	ice_clear_interrupt_scheme(pf);
 }
 
 static void ice_init_features(struct ice_pf *pf)
@@ -5086,10 +5090,6 @@ int ice_load(struct ice_pf *pf)
 	struct ice_vsi *vsi;
 	int err;
 
-	err = ice_reset(&pf->hw, ICE_RESET_PFR);
-	if (err)
-		return err;
-
 	err = ice_init_dev(pf);
 	if (err)
 		return err;
@@ -5346,12 +5346,6 @@ static void ice_remove(struct pci_dev *pdev)
 	ice_setup_mc_magic_wake(pf);
 	ice_set_wake(pf);
 
-	/* Issue a PFR as part of the prescribed driver unload flow.  Do not
-	 * do it via ice_schedule_reset() since there is no need to rebuild
-	 * and the service task is already stopped.
-	 */
-	ice_reset(&pf->hw, ICE_RESET_PFR);
-	pci_wait_for_pending_transaction(pdev);
 	pci_disable_device(pdev);
 }
 
@@ -7048,6 +7042,10 @@ int ice_down(struct ice_vsi *vsi)
 	ice_for_each_txq(vsi, i)
 		ice_clean_tx_ring(vsi->tx_rings[i]);
 
+	if (ice_is_xdp_ena_vsi(vsi))
+		ice_for_each_xdp_txq(vsi, i)
+			ice_clean_tx_ring(vsi->xdp_rings[i]);
+
 	ice_for_each_rxq(vsi, i)
 		ice_clean_rx_ring(vsi->rx_rings[i]);
 
drivers/net/ethernet/intel/igb/igb_ethtool.c +3 -0
index 7d60da1b7bf4..319ed601eaa1 100644
@@ -822,6 +822,8 @@ static int igb_set_eeprom(struct net_device *netdev,
 		 */
 		ret_val = hw->nvm.ops.read(hw, last_word, 1,
 				   &eeprom_buff[last_word - first_word]);
+		if (ret_val)
+			goto out;
 	}
 
 	/* Device's eeprom is always little-endian, word addressable */
@@ -841,6 +843,7 @@ static int igb_set_eeprom(struct net_device *netdev,
 		hw->nvm.ops.update(hw);
 
 	igb_set_fw_version(adapter);
+out:
 	kfree(eeprom_buff);
 	return ret_val;
 }
drivers/net/ethernet/intel/igb/igb_main.c +6 -2
index 274c781b5547..f2f9f81c123b 100644
@@ -6948,6 +6948,7 @@ static void igb_extts(struct igb_adapter *adapter, int tsintr_tt)
 	struct e1000_hw *hw = &adapter->hw;
 	struct ptp_clock_event event;
 	struct timespec64 ts;
+	unsigned long flags;
 
 	if (pin < 0 || pin >= IGB_N_SDP)
 		return;
@@ -6955,9 +6956,12 @@ static void igb_extts(struct igb_adapter *adapter, int tsintr_tt)
 	if (hw->mac.type == e1000_82580 ||
 	    hw->mac.type == e1000_i354 ||
 	    hw->mac.type == e1000_i350) {
-		s64 ns = rd32(auxstmpl);
+		u64 ns = rd32(auxstmpl);
 
-		ns += ((s64)(rd32(auxstmph) & 0xFF)) << 32;
+		ns += ((u64)(rd32(auxstmph) & 0xFF)) << 32;
+		spin_lock_irqsave(&adapter->tmreg_lock, flags);
+		ns = timecounter_cyc2time(&adapter->tc, ns);
+		spin_unlock_irqrestore(&adapter->tmreg_lock, flags);
 		ts = ns_to_timespec64(ns);
 	} else {
 		ts.tv_nsec = rd32(auxstmpl);
drivers/net/ethernet/intel/igc/igc_main.c +11 -1
index a2d823e64609..b35f5ff3536e 100644
@@ -255,6 +255,13 @@ static void igc_clean_tx_ring(struct igc_ring *tx_ring)
 	/* reset BQL for queue */
 	netdev_tx_reset_queue(txring_txq(tx_ring));
 
+	/* Zero out the buffer ring */
+	memset(tx_ring->tx_buffer_info, 0,
+	       sizeof(*tx_ring->tx_buffer_info) * tx_ring->count);
+
+	/* Zero out the descriptor ring */
+	memset(tx_ring->desc, 0, tx_ring->size);
+
 	/* reset next_to_use and next_to_clean */
 	tx_ring->next_to_use = 0;
 	tx_ring->next_to_clean = 0;
@@ -268,7 +275,7 @@ static void igc_clean_tx_ring(struct igc_ring *tx_ring)
  */
 void igc_free_tx_resources(struct igc_ring *tx_ring)
 {
-	igc_clean_tx_ring(tx_ring);
+	igc_disable_tx_ring(tx_ring);
 
 	vfree(tx_ring->tx_buffer_info);
 	tx_ring->tx_buffer_info = NULL;
@@ -6715,6 +6722,9 @@ static void igc_remove(struct pci_dev *pdev)
 
 	igc_ptp_stop(adapter);
 
+	pci_disable_ptm(pdev);
+	pci_clear_master(pdev);
+
 	set_bit(__IGC_DOWN, &adapter->state);
 
 	del_timer_sync(&adapter->watchdog_timer);
drivers/net/ethernet/marvell/octeon_ep/octep_main.c +6 -1
index 5a898fb88e37..c70d2500a363 100644
@@ -941,6 +941,9 @@ int octep_device_setup(struct octep_device *oct)
 		oct->mmio[i].hw_addr =
 			ioremap(pci_resource_start(oct->pdev, i * 2),
 				pci_resource_len(oct->pdev, i * 2));
+		if (!oct->mmio[i].hw_addr)
+			goto unmap_prev;
+
 		oct->mmio[i].mapped = 1;
 	}
 
@@ -980,7 +983,9 @@ int octep_device_setup(struct octep_device *oct)
 	return 0;
 
 unsupported_dev:
-	for (i = 0; i < OCTEP_MMIO_REGIONS; i++)
+	i = OCTEP_MMIO_REGIONS;
+unmap_prev:
+	while (i--)
 		iounmap(oct->mmio[i].hw_addr);
 
 	kfree(oct->conf);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +2 -5
index 4ad707e758b9..f01d057ad025 100644
@@ -1878,7 +1878,8 @@ static int nix_check_txschq_alloc_req(struct rvu *rvu, int lvl, u16 pcifunc,
 		free_cnt = rvu_rsrc_free_count(&txsch->schq);
 	}
 
-	if (free_cnt < req_schq || req_schq > MAX_TXSCHQ_PER_FUNC)
+	if (free_cnt < req_schq || req->schq[lvl] > MAX_TXSCHQ_PER_FUNC ||
+	    req->schq_contig[lvl] > MAX_TXSCHQ_PER_FUNC)
 		return NIX_AF_ERR_TLX_ALLOC_FAIL;
 
 	/* If contiguous queues are needed, check for availability */
@@ -4080,10 +4081,6 @@ int rvu_mbox_handler_nix_set_rx_cfg(struct rvu *rvu, struct nix_rx_cfg *req,
 
 static u64 rvu_get_lbk_link_credits(struct rvu *rvu, u16 lbk_max_frs)
 {
-	/* CN10k supports 72KB FIFO size and max packet size of 64k */
-	if (rvu->hw->lbk_bufsize == 0x12000)
-		return (rvu->hw->lbk_bufsize - lbk_max_frs) / 16;
-
 	return 1600; /* 16 * max LBK datarate = 16 * 100Gbps */
 }
 
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c +2 -27
index 51209119f0f2..9f11c1e40737 100644
@@ -1164,10 +1164,8 @@ static u16 __rvu_npc_exact_cmd_rules_cnt_update(struct rvu *rvu, int drop_mcam_i
 {
 	struct npc_exact_table *table;
 	u16 *cnt, old_cnt;
-	bool promisc;
 
 	table = rvu->hw->table;
-	promisc = table->promisc_mode[drop_mcam_idx];
 
 	cnt = &table->cnt_cmd_rules[drop_mcam_idx];
 	old_cnt = *cnt;
@@ -1179,16 +1177,13 @@ static u16 __rvu_npc_exact_cmd_rules_cnt_update(struct rvu *rvu, int drop_mcam_i
 
 	*enable_or_disable_cam = false;
 
-	if (promisc)
-		goto done;
-
-	/* If all rules are deleted and not already in promisc mode; disable cam */
+	/* If all rules are deleted, disable cam */
 	if (!*cnt && val < 0) {
 		*enable_or_disable_cam = true;
 		goto done;
 	}
 
-	/* If rule got added and not already in promisc mode; enable cam */
+	/* If rule got added, enable cam */
 	if (!old_cnt && val > 0) {
 		*enable_or_disable_cam = true;
 		goto done;
@@ -1443,7 +1438,6 @@ int rvu_npc_exact_promisc_disable(struct rvu *rvu, u16 pcifunc)
 	u32 drop_mcam_idx;
 	bool *promisc;
 	bool rc;
-	u32 cnt;
 
 	table = rvu->hw->table;
 
@@ -1466,17 +1460,8 @@ int rvu_npc_exact_promisc_disable(struct rvu *rvu, u16 pcifunc)
 		return LMAC_AF_ERR_INVALID_PARAM;
 	}
 	*promisc = false;
-	cnt = __rvu_npc_exact_cmd_rules_cnt_update(rvu, drop_mcam_idx, 0, NULL);
 	mutex_unlock(&table->lock);
 
-	/* If no dmac filter entries configured, disable drop rule */
-	if (!cnt)
-		rvu_npc_enable_mcam_by_entry_index(rvu, drop_mcam_idx, NIX_INTF_RX, false);
-	else
-		rvu_npc_enable_mcam_by_entry_index(rvu, drop_mcam_idx, NIX_INTF_RX, !*promisc);
-
-	dev_dbg(rvu->dev, "%s: disabled  promisc mode (cgx=%d lmac=%d, cnt=%d)\n",
-		__func__, cgx_id, lmac_id, cnt);
 	return 0;
 }
 
@@ -1494,7 +1479,6 @@ int rvu_npc_exact_promisc_enable(struct rvu *rvu, u16 pcifunc)
 	u32 drop_mcam_idx;
 	bool *promisc;
 	bool rc;
-	u32 cnt;
 
 	table = rvu->hw->table;
 
@@ -1517,17 +1501,8 @@ int rvu_npc_exact_promisc_enable(struct rvu *rvu, u16 pcifunc)
 		return LMAC_AF_ERR_INVALID_PARAM;
 	}
 	*promisc = true;
-	cnt = __rvu_npc_exact_cmd_rules_cnt_update(rvu, drop_mcam_idx, 0, NULL);
 	mutex_unlock(&table->lock);
 
-	/* If no dmac filter entries configured, disable drop rule */
-	if (!cnt)
-		rvu_npc_enable_mcam_by_entry_index(rvu, drop_mcam_idx, NIX_INTF_RX, false);
-	else
-		rvu_npc_enable_mcam_by_entry_index(rvu, drop_mcam_idx, NIX_INTF_RX, !*promisc);
-
-	dev_dbg(rvu->dev, "%s: Enabled promisc mode (cgx=%d lmac=%d cnt=%d)\n",
-		__func__, cgx_id, lmac_id, cnt);
 	return 0;
 }
 
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h +0 -12
index a3c5c2dab5fd..d7ef853702b7 100644
@@ -275,18 +275,6 @@ static inline bool mlx5_sriov_is_enabled(struct mlx5_core_dev *dev)
 	return pci_num_vf(dev->pdev) ? true : false;
 }
 
-static inline int mlx5_lag_is_lacp_owner(struct mlx5_core_dev *dev)
-{
-	/* LACP owner conditions:
-	 * 1) Function is physical.
-	 * 2) LAG is supported by FW.
-	 * 3) LAG is managed by driver (currently the only option).
-	 */
-	return  MLX5_CAP_GEN(dev, vport_group_manager) &&
-		   (MLX5_CAP_GEN(dev, num_lag_ports) > 1) &&
-		    MLX5_CAP_GEN(dev, lag_master);
-}
-
 int mlx5_rescan_drivers_locked(struct mlx5_core_dev *dev);
 static inline int mlx5_rescan_drivers(struct mlx5_core_dev *dev)
 {
drivers/net/ethernet/renesas/rswitch.c +22 -14
index 7855d9ef81eb..66bce799471c 100644
@@ -347,17 +347,6 @@ static int rswitch_gwca_queue_alloc(struct net_device *ndev,
 	return -ENOMEM;
 }
 
-static int rswitch_gwca_ts_queue_alloc(struct rswitch_private *priv)
-{
-	struct rswitch_gwca_queue *gq = &priv->gwca.ts_queue;
-
-	gq->ring_size = TS_RING_SIZE;
-	gq->ts_ring = dma_alloc_coherent(&priv->pdev->dev,
-					 sizeof(struct rswitch_ts_desc) *
-					 (gq->ring_size + 1), &gq->ring_dma, GFP_KERNEL);
-	return !gq->ts_ring ? -ENOMEM : 0;
-}
-
 static void rswitch_desc_set_dptr(struct rswitch_desc *desc, dma_addr_t addr)
 {
 	desc->dptrl = cpu_to_le32(lower_32_bits(addr));
@@ -533,6 +522,28 @@ static void rswitch_gwca_linkfix_free(struct rswitch_private *priv)
 	gwca->linkfix_table = NULL;
 }
 
+static int rswitch_gwca_ts_queue_alloc(struct rswitch_private *priv)
+{
+	struct rswitch_gwca_queue *gq = &priv->gwca.ts_queue;
+	struct rswitch_ts_desc *desc;
+
+	gq->ring_size = TS_RING_SIZE;
+	gq->ts_ring = dma_alloc_coherent(&priv->pdev->dev,
+					 sizeof(struct rswitch_ts_desc) *
+					 (gq->ring_size + 1), &gq->ring_dma, GFP_KERNEL);
+
+	if (!gq->ts_ring)
+		return -ENOMEM;
+
+	rswitch_gwca_ts_queue_fill(priv, 0, TS_RING_SIZE);
+	desc = &gq->ts_ring[gq->ring_size];
+	desc->desc.die_dt = DT_LINKFIX;
+	rswitch_desc_set_dptr(&desc->desc, gq->ring_dma);
+	INIT_LIST_HEAD(&priv->gwca.ts_info_list);
+
+	return 0;
+}
+
 static struct rswitch_gwca_queue *rswitch_gwca_get(struct rswitch_private *priv)
 {
 	struct rswitch_gwca_queue *gq;
@@ -1782,9 +1793,6 @@ static int rswitch_init(struct rswitch_private *priv)
 	if (err < 0)
 		goto err_ts_queue_alloc;
 
-	rswitch_gwca_ts_queue_fill(priv, 0, TS_RING_SIZE);
-	INIT_LIST_HEAD(&priv->gwca.ts_info_list);
-
 	for (i = 0; i < RSWITCH_NUM_PORTS; i++) {
 		err = rswitch_device_alloc(priv, i);
 		if (err < 0) {
drivers/net/ethernet/sfc/efx_channels.c +2 -0
index fcea3ea809d7..41b33a75333c 100644
@@ -301,6 +301,7 @@ int efx_probe_interrupts(struct efx_nic *efx)
 		efx->tx_channel_offset = 0;
 		efx->n_xdp_channels = 0;
 		efx->xdp_channel_offset = efx->n_channels;
+		efx->xdp_txq_queues_mode = EFX_XDP_TX_QUEUES_BORROWED;
 		rc = pci_enable_msi(efx->pci_dev);
 		if (rc == 0) {
 			efx_get_channel(efx, 0)->irq = efx->pci_dev->irq;
@@ -322,6 +323,7 @@ int efx_probe_interrupts(struct efx_nic *efx)
 		efx->tx_channel_offset = efx_separate_tx_channels ? 1 : 0;
 		efx->n_xdp_channels = 0;
 		efx->xdp_channel_offset = efx->n_channels;
+		efx->xdp_txq_queues_mode = EFX_XDP_TX_QUEUES_BORROWED;
 		efx->legacy_irq = efx->pci_dev->irq;
 	}
 
drivers/net/ethernet/sfc/efx_devlink.c +45 -50

117 lines not on this page · raw message

drivers/net/ethernet/sfc/siena/efx_channels.c +2 -0
index 06ed74994e36..1776f7f8a7a9 100644
@@ -302,6 +302,7 @@ int efx_siena_probe_interrupts(struct efx_nic *efx)
 		efx->tx_channel_offset = 0;
 		efx->n_xdp_channels = 0;
 		efx->xdp_channel_offset = efx->n_channels;
+		efx->xdp_txq_queues_mode = EFX_XDP_TX_QUEUES_BORROWED;
 		rc = pci_enable_msi(efx->pci_dev);
 		if (rc == 0) {
 			efx_get_channel(efx, 0)->irq = efx->pci_dev->irq;
@@ -323,6 +324,7 @@ int efx_siena_probe_interrupts(struct efx_nic *efx)
 		efx->tx_channel_offset = efx_siena_separate_tx_channels ? 1 : 0;
 		efx->n_xdp_channels = 0;
 		efx->xdp_channel_offset = efx->n_channels;
+		efx->xdp_txq_queues_mode = EFX_XDP_TX_QUEUES_BORROWED;
 		efx->legacy_irq = efx->pci_dev->irq;
 	}
 
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +7 -2
index 71f8f78ce009..4e59f0e164ec 100644
@@ -3867,7 +3867,6 @@ static int __stmmac_open(struct net_device *dev,
 
 	stmmac_hw_teardown(dev);
 init_error:
-	free_dma_desc_resources(priv, &priv->dma_conf);
 	phylink_disconnect_phy(priv->phylink);
 init_phy_error:
 	pm_runtime_put(priv->device);
@@ -3885,6 +3884,9 @@ static int stmmac_open(struct net_device *dev)
 		return PTR_ERR(dma_conf);
 
 	ret = __stmmac_open(dev, dma_conf);
+	if (ret)
+		free_dma_desc_resources(priv, dma_conf);
+
 	kfree(dma_conf);
 	return ret;
 }
@@ -5609,12 +5611,15 @@ static int stmmac_change_mtu(struct net_device *dev, int new_mtu)
 		stmmac_release(dev);
 
 		ret = __stmmac_open(dev, dma_conf);
-		kfree(dma_conf);
 		if (ret) {
+			free_dma_desc_resources(priv, dma_conf);
+			kfree(dma_conf);
 			netdev_err(priv->dev, "failed reopening the interface after MTU change\n");
 			return ret;
 		}
 
+		kfree(dma_conf);
+
 		stmmac_set_rx_mode(dev);
 	}
 
drivers/net/ethernet/ti/am65-cpsw-nuss.c +1 -1
index bcea87b7151c..ad69c5d5761b 100644
@@ -2031,7 +2031,7 @@ static int am65_cpsw_nuss_init_slave_ports(struct am65_cpsw_common *common)
 		/* Initialize the Serdes PHY for the port */
 		ret = am65_cpsw_init_serdes_phy(dev, port_np, port);
 		if (ret)
-			return ret;
+			goto of_node_put;
 
 		port->slave.mac_only =
 				of_property_read_bool(port_np, "ti,mac-only");
drivers/net/ipvlan/ipvlan_l3s.c +4 -0
index 71712ea25403..d5b05e803219 100644
@@ -102,6 +102,10 @@ static unsigned int ipvlan_nf_input(void *priv, struct sk_buff *skb,
 
 	skb->dev = addr->master->dev;
 	skb->skb_iif = skb->dev->ifindex;
+#if IS_ENABLED(CONFIG_IPV6)
+	if (addr->atype == IPVL_IPV6)
+		IP6CB(skb)->iif = skb->dev->ifindex;
+#endif
 	len = skb->len + ETH_HLEN;
 	ipvlan_count_rx(addr->master, len, true, false);
 out:
drivers/net/macsec.c +5 -7
index 25616247d7a5..e040c191659b 100644
@@ -3987,17 +3987,15 @@ static int macsec_add_dev(struct net_device *dev, sci_t sci, u8 icv_len)
 		return -ENOMEM;
 
 	secy->tx_sc.stats = netdev_alloc_pcpu_stats(struct pcpu_tx_sc_stats);
-	if (!secy->tx_sc.stats) {
-		free_percpu(macsec->stats);
+	if (!secy->tx_sc.stats)
 		return -ENOMEM;
-	}
 
 	secy->tx_sc.md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL);
-	if (!secy->tx_sc.md_dst) {
-		free_percpu(secy->tx_sc.stats);
-		free_percpu(macsec->stats);
+	if (!secy->tx_sc.md_dst)
+		/* macsec and secy percpu stats will be freed when unregistering
+		 * net_device in macsec_free_netdev()
+		 */
 		return -ENOMEM;
-	}
 
 	if (sci == MACSEC_UNDEF_SCI)
 		sci = dev_to_sci(dev, MACSEC_PORT_ES);
drivers/net/phy/phylink.c +39 -2

46 lines not on this page · raw message

drivers/net/usb/qmi_wwan.c +2 -0
index f1865d047971..2e7c7b0cdc54 100644

Lines of this file are not shown. View the raw message.

drivers/net/wan/lapbether.c +3 -0
index d62a904d2e42..56326f38fe8a 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/pci.c +2 -0
index 60f51155a6d2..b682cc6a62f0 100644

Lines of this file are not shown. View the raw message.

drivers/of/overlay.c +1 -0
index 2e01960f1aeb..7feb643f1370 100644

Lines of this file are not shown. View the raw message.

drivers/pci/quirks.c +7 -2
index f4e2a88729fd..c525867760bf 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/asus-nb-wmi.c +2 -0
index e2c9a68d12df..fdf7da06af30 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/ab8500_btemp.c +2 -4
index 307ee6f71042..6f83e99d2eb7 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/ab8500_fg.c +2 -4
index 41a7bff9ac37..53560fbb6dcd 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/bq27xxx_battery.c +2 -4
index 929e813b9c44..4296600e8912 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/power_supply_core.c +6 -2
index f3d7c1da299f..d325e6dbc770 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/power_supply_sysfs.c +2 -1
index c228205e0953..4bbb3053eef4 100644

Lines of this file are not shown. View the raw message.

drivers/power/supply/sc27xx_fuel_gauge.c +1 -8
index 632977f84b95..bd23c4d9fed4 100644

Lines of this file are not shown. View the raw message.

drivers/regulator/core.c +2 -2
index 08726bc0da9d..323e8187a98f 100644

Lines of this file are not shown. View the raw message.

drivers/regulator/qcom-rpmh-regulator.c +70 -15

85 lines not on this page · raw message

drivers/s390/net/ism_drv.c +0 -8
index eb7e13486087..db0903cf2bae 100644

Lines of this file are not shown. View the raw message.

drivers/soc/qcom/llcc-qcom.c +41 -31

72 lines not on this page · raw message

drivers/spi/spi-cadence-quadspi.c +5 -2
index 8f36e1306e16..3fb85607fa4f 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-fsl-dspi.c +15 -0
index e419642eb10e..0da5c6ec46fb 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_transport.c +2 -0
index 86adff2a86ed..687adc9e086c 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/dma_test.c +4 -4
index 3bedecb236e0..14bb6dec6c4b 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/nhi.c +8 -3
index 0a525f44ea31..4a6a3802d7e5 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/tb.c +12 -5
index 7bfbc9ca9ba4..c1af712ca728 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/tunnel.c +1 -1
index 9099ae73e78f..4f222673d651 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/fsl_lpuart.c +1 -1
index 2087a5e6f435..43fe4bb2f397 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/lantiq.c +1 -0
index a58e9277dfad..f1387f1024db 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/core.c +5 -0
index 9f8c988c25cb..e999e6079ae0 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/dwc3-qcom.c +10 -1
index 959fc925ca7c..79b22abf9727 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/gadget.c +1 -0
index 1cf352fbe703..04bf054aa4f1 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/udc/core.c +131 -49

180 lines not on this page · raw message

drivers/usb/gadget/udc/renesas_usb3.c +2 -2
index a301af66bd91..50d3d4c55fac 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +16 -0
index 644a55447fd7..fd42e3a0bd18 100644

Lines of this file are not shown. View the raw message.

drivers/usb/typec/pd.c +1 -1
index 59c537a5e600..d86106fd92eb 100644

Lines of this file are not shown. View the raw message.

drivers/usb/typec/ucsi/ucsi.c +7 -4
index 8d1baf28df55..8ada8e969f79 100644

Lines of this file are not shown. View the raw message.

fs/afs/vl_probe.c +2 -2
index d1c7068b4346..58452b86e672 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/block-group.c +12 -2
index 5fc670c27f86..58ce5d44ce4d 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/disk-io.c +13 -6
index 53eedc74cfcc..a47d8ad6abcb 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/file-item.c +3 -1
index a4584c629ba3..9e45b416a9c8 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/inode.c +13 -7
index b31bb3352477..00ade644579f 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/scrub.c +8 -1
index 69c93ae333f6..3720fd1f593d 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/super.c +6 -0
index e19792d919c6..06e91c02be9e 100644

Lines of this file are not shown. View the raw message.

fs/cifs/file.c +6 -2
index df88b8c04d03..051283386e22 100644

Lines of this file are not shown. View the raw message.

fs/erofs/Kconfig +1 -0
index 704fb59577e0..f259d92c9720 100644

Lines of this file are not shown. View the raw message.

fs/erofs/zdata.c +0 -2
index f1708c77a991..d7add72a0943 100644

Lines of this file are not shown. View the raw message.

fs/eventpoll.c +5 -1
index 64659b110973..eccecd3fac90 100644

Lines of this file are not shown. View the raw message.

fs/ext4/balloc.c +9 -11
index a38aa33af08e..8e83b51e3c68 100644

Lines of this file are not shown. View the raw message.

fs/ksmbd/connection.c +3 -2
index e11d4a1e63d7..2a717d158f02 100644

Lines of this file are not shown. View the raw message.

fs/ksmbd/smb_common.c +13 -1
index af0c2a9b8529..569e5eecdf3d 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/btnode.c +10 -2
index e956f886a1a1..5710833ac1cc 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/sufile.c +9 -0
index dc359b56fdfa..2c6078a6b8ec 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/the_nilfs.c +42 -1

43 lines not on this page · raw message

fs/ocfs2/file.c +7 -1
index efb09de4343d..b173c36bcab3 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/super.c +4 -2
index 0b0e6a132101..988d1c076861 100644

Lines of this file are not shown. View the raw message.

fs/userfaultfd.c +5 -0
index 40f9e1a2ebdd..c69ec2dfefc2 100644

Lines of this file are not shown. View the raw message.

include/linux/mlx5/driver.h +12 -0
index 68a3183d5d58..33dbe941d070 100644

Lines of this file are not shown. View the raw message.

include/linux/soc/qcom/llcc-qcom.h +2 -10
index ad1fd718169d..93417ba1ead4 100644

Lines of this file are not shown. View the raw message.

include/media/dvb_frontend.h +1 -5
index 367d5381217b..e7c44870f20d 100644

Lines of this file are not shown. View the raw message.

include/net/neighbour.h +0 -2
index 94a1599824d8..794e45981891 100644

Lines of this file are not shown. View the raw message.

include/net/netfilter/nf_flow_table.h +1 -1
index ebb28ec5b6fa..f37f9f34430c 100644

Lines of this file are not shown. View the raw message.

include/net/netfilter/nf_tables.h +3 -1
index 3eb7d20ddfc9..300bce4d67ce 100644

Lines of this file are not shown. View the raw message.

include/net/sch_generic.h +8 -0
index 27271f2b37cb..12eadecf8cd0 100644

Lines of this file are not shown. View the raw message.

include/rdma/ib_addr.h +0 -23
index d808dc3d239e..811a0f11d0db 100644

Lines of this file are not shown. View the raw message.

include/sound/soc-acpi.h +1 -0
index b38fd25c5729..528279056b3a 100644

Lines of this file are not shown. View the raw message.

include/sound/soc-dpcm.h +4 -0
index 1e7d09556fe3..b7bc1865b9e4 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/ethtool_netlink.h +1 -1
index d39ce21381c5..b8171e1ffd32 100644

Lines of this file are not shown. View the raw message.

io_uring/net.c +7 -1
index 4040cf093318..05fd285ac75a 100644

Lines of this file are not shown. View the raw message.

io_uring/sqpoll.c +5 -1
index 9db4bc1f521a..5e329e3cd470 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/cgroup.c +19 -19
index 819f011f0a9c..b86b907e566c 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/cgroup_iter.c +2 -2
index 06989d278846..810378f04fbc 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/local_storage.c +2 -2
index 66d8ce2ab5b3..d6f3b7ead2c0 100644

Lines of this file are not shown. View the raw message.

kernel/cgroup/cgroup-v1.c +10 -10
index 52bb5a74a23b..5407241dbb45 100644

Lines of this file are not shown. View the raw message.

kernel/cgroup/cgroup.c +38 -39

77 lines not on this page · raw message

kernel/kexec_file.c +13 -1
index f1a0e4e3fb5c..c7a0e51a6d87 100644

Lines of this file are not shown. View the raw message.

mm/damon/core.c +2 -0
index d9ef62047bf5..91cff7f2997e 100644

Lines of this file are not shown. View the raw message.

mm/gup_test.c +1 -0
index 8ae7307a1bb6..c0421b786dcd 100644

Lines of this file are not shown. View the raw message.

mm/zswap.c +9 -2
index 5d5977c9ea45..cca0c3100edf 100644

Lines of this file are not shown. View the raw message.

net/core/neighbour.c +0 -31
index 6798f6d2423b..0116b0ff91a7 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ping.c +2 -1
index 808983bc2ec9..4651aaf70db4 100644

Lines of this file are not shown. View the raw message.

net/mac80211/cfg.c +8 -1
index 5ddbe0c8cfaa..2c4689a1bf06 100644

Lines of this file are not shown. View the raw message.

net/mac80211/ieee80211_i.h +1 -1
index eba7ae63fac4..347030b9bb9e 100644

Lines of this file are not shown. View the raw message.

net/mac80211/link.c +2 -2
index 8c8869cc1fb4..aab4d7b4def2 100644

Lines of this file are not shown. View the raw message.

net/mac80211/mlme.c +3 -2
index 7a970b6dda64..d28a35c538ba 100644

Lines of this file are not shown. View the raw message.

net/mac80211/util.c +2 -2
index d7b382866b26..1a0d38cd4633 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_flow_table_core.c +10 -3
index 04bd0ed4d2ae..b0ef48b21dcb 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_flow_table_ip.c +2 -2
index 19efba1e51ef..3bbaf9c7ea46 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_tables_api.c +58 -1

59 lines not on this page · raw message

net/netfilter/nfnetlink.c +2 -1
index ae7146475d17..c9fbe0f707b5 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_set_pipapo.c +40 -15

55 lines not on this page · raw message

net/sched/act_ct.c +8 -1
index 9cc0bc7c71ed..abc71a06d634 100644

Lines of this file are not shown. View the raw message.

net/sched/act_pedit.c +34 -11

45 lines not on this page · raw message

net/sched/cls_api.c +7 -5
index c877a6343fd4..a193cc7b3241 100644

Lines of this file are not shown. View the raw message.

net/sched/cls_u32.c +10 -8
index 4e2e269f121f..d15d50de7980 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_api.c +31 -13

44 lines not on this page · raw message

net/sched/sch_generic.c +11 -3
index ee43e8ac039e..a5693e25b248 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_taprio.c +3 -0
index a6cf56a96942..7190482b52e0 100644

Lines of this file are not shown. View the raw message.

net/sctp/sm_statefuns.c +1 -1
index ce5426171206..07edf56f7b8c 100644

Lines of this file are not shown. View the raw message.

net/tipc/bearer.c +2 -2
index 53881406e200..cdcd2731860b 100644

Lines of this file are not shown. View the raw message.

net/wireless/rdev-ops.h +3 -3
index 13b209a8db28..ee853a14a02d 100644

Lines of this file are not shown. View the raw message.

net/wireless/reg.c +2 -5
index 0d40d6af7e10..26f11e4746c0 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +1 -0
index 48a0e87136f1..920e44ba998a 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/cs35l41-lib.c +3 -3
index 04be71435491..c2c56e560809 100644

Lines of this file are not shown. View the raw message.

sound/soc/dwc/dwc-i2s.c +9 -32

41 lines not on this page · raw message

sound/soc/intel/avs/avs.h +2 -2
index d7fccdcb9c16..0cf38c9e768e 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/board_selection.c +1 -1
index b2823c2107f7..60f8fb0bff95 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/dsp.c +2 -2
index b881100d3e02..aa03af4473e9 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/path.h +1 -1
index 197222c5e008..657f7b093e80 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/pcm.c +18 -5
index 31c032a0f7e4..1fbb2c2fadb5 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/probes.c +1 -1
index 70a94201d6a5..275928281c6c 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-pcm.c +20 -0
index 7958c9defd49..1db82501fec1 100644

Lines of this file are not shown. View the raw message.

sound/usb/pcm.c +4 -0
index eec5232f9fb2..08bf535ed163 100644

Lines of this file are not shown. View the raw message.

sound/usb/quirks.c +2 -0
index 3ecd1ba7fd4b..6cf55b7f7a04 100644

Lines of this file are not shown. View the raw message.

tools/gpio/lsgpio.c +1 -1
index c61d061247e1..52a0be45410c 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/gpio/gpio-sim.sh +3 -0
index 9f539d454ee4..fa2ce2b9dd5f 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/forwarding/hw_stats_l3.sh +7 -4
index 9c1f76e108af..1a936ffbacee 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/ptp/testptp.c +3 -3
index 198ad5f32187..cfa9562f3cd8 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/tc-testing/config +1 -0
index 4638c63a339f..aec4de8bea78 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/tc-testing/tc-tests/qdiscs/sfb.json +2 -2
index ba2f5e79cdbf..e21c7f22c6d4 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/tc-testing/tdc.sh +1 -0
index afb0cd86fa3d..eb357bd7923c 100755

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.