Skip to contentSkip to conversation

Linux 5.5.8

DISCUSSION Greg KH 1 participant 2 messages Mar 5, 2020 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.5.8 kernel.

All users of the 5.5 kernel series must upgrade.

The updated 5.5.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.5.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

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

 Documentation/networking/nf_flowtable.txt                  |    2 
 Documentation/sphinx/parallel-wrapper.sh                   |    2 
 Makefile                                                   |    2 
 arch/arm/boot/dts/stihxxx-b2120.dtsi                       |    2 
 arch/arm/include/asm/vdso/vsyscall.h                       |    4 
 arch/mips/include/asm/sync.h                               |    4 
 arch/mips/kernel/vpe.c                                     |    2 
 arch/riscv/kernel/traps.c                                  |    4 
 arch/x86/events/intel/core.c                               |    1 
 arch/x86/events/intel/cstate.c                             |   22 
 arch/x86/events/msr.c                                      |    3 
 arch/x86/kernel/cpu/resctrl/internal.h                     |    1 
 arch/x86/kernel/cpu/resctrl/monitor.c                      |    4 
 arch/x86/kvm/lapic.c                                       |    2 
 arch/x86/kvm/svm.c                                         |   43 
 arch/x86/kvm/vmx/nested.c                                  |   70 -
 arch/x86/kvm/vmx/vmx.c                                     |   15 
 arch/x86/kvm/x86.c                                         |    6 
 drivers/acpi/acpi_watchdog.c                               |    3 
 drivers/bus/Kconfig                                        |    1 
 drivers/char/ipmi/ipmi_ssif.c                              |   10 
 drivers/clk/qcom/clk-rpmh.c                                |    2 
 drivers/cpufreq/cpufreq.c                                  |   12 
 drivers/devfreq/devfreq.c                                  |    4 
 drivers/edac/skx_common.c                                  |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c                    |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h                    |    1 
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c                      |   37 
 drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile            |    6 
 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c  |    6 
 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c               |    2 
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c         |    1 
 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c      |    6 
 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h |    2 
 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c               |    4 
 drivers/gpu/drm/i915/gvt/dmabuf.c                          |    2 
 drivers/gpu/drm/i915/gvt/vgpu.c                            |    2 
 drivers/gpu/drm/msm/msm_drv.c                              |    8 
 drivers/gpu/drm/radeon/radeon_drv.c                        |   43 
 drivers/gpu/drm/radeon/radeon_kms.c                        |    6 
 drivers/hid/hid-alps.c                                     |    2 
 drivers/hid/hid-core.c                                     |    4 
 drivers/hid/hid-ite.c                                      |    5 
 drivers/hid/usbhid/hiddev.c                                |    2 
 drivers/i2c/busses/i2c-altera.c                            |    2 
 drivers/i2c/busses/i2c-jz4780.c                            |   36 
 drivers/infiniband/hw/hns/hns_roce_device.h                |    3 
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c                 |   37 
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c                 |   80 -
 drivers/infiniband/sw/siw/siw_cm.c                         |    5 
 drivers/macintosh/therm_windtunnel.c                       |   52 -
 drivers/net/bonding/bond_main.c                            |   55 +
 drivers/net/bonding/bond_options.c                         |    2 
 drivers/net/dsa/b53/b53_common.c                           |    3 
 drivers/net/ethernet/amazon/ena/ena_com.c                  |   96 +
 drivers/net/ethernet/amazon/ena/ena_com.h                  |    9 
 drivers/net/ethernet/amazon/ena/ena_ethtool.c              |   46 
 drivers/net/ethernet/amazon/ena/ena_netdev.c               |    6 
 drivers/net/ethernet/amazon/ena/ena_netdev.h               |    2 
 drivers/net/ethernet/apm/xgene/xgene_enet_main.c           |    2 
 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c        |    5 
 drivers/net/ethernet/aquantia/atlantic/aq_filters.c        |    2 
 drivers/net/ethernet/aquantia/atlantic/aq_nic.c            |    8 
 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c       |   13 
 drivers/net/ethernet/aquantia/atlantic/aq_ring.c           |   10 
 drivers/net/ethernet/aquantia/atlantic/aq_ring.h           |    3 
 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c  |   18 
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                  |   12 
 drivers/net/ethernet/cadence/macb.h                        |    1 
 drivers/net/ethernet/cadence/macb_main.c                   |   66 -
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c    |   22 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c      |    2 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c         |    4 
 drivers/net/ethernet/intel/ice/ice_base.c                  |   12 
 drivers/net/ethernet/intel/ice/ice_common.c                |   17 
 drivers/net/ethernet/intel/ice/ice_dcb_nl.c                |   12 
 drivers/net/ethernet/intel/ice/ice_ethtool.c               |   17 
 drivers/net/ethernet/intel/ice/ice_hw_autogen.h            |    6 
 drivers/net/ethernet/intel/ice/ice_lib.c                   |   33 
 drivers/net/ethernet/intel/ice/ice_lib.h                   |    2 
 drivers/net/ethernet/intel/ice/ice_main.c                  |   23 
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c              |    2 
 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c           |    8 
 drivers/net/ethernet/mscc/ocelot_board.c                   |    8 
 drivers/net/ethernet/pensando/ionic/ionic_dev.c            |   11 
 drivers/net/ethernet/pensando/ionic/ionic_if.h             |    1 
 drivers/net/ethernet/qlogic/qede/qede.h                    |    2 
 drivers/net/ethernet/qlogic/qede/qede_rdma.c               |   29 
 drivers/net/hyperv/netvsc.c                                |    2 
 drivers/net/hyperv/netvsc_drv.c                            |    3 
 drivers/net/phy/mdio-bcm-iproc.c                           |   20 
 drivers/net/usb/qmi_wwan.c                                 |   43 
 drivers/net/wireless/marvell/mwifiex/main.h                |   13 
 drivers/net/wireless/marvell/mwifiex/tdls.c                |   75 -
 drivers/nfc/pn544/i2c.c                                    |    1 
 drivers/nvme/host/core.c                                   |   10 
 drivers/nvme/host/pci.c                                    |   25 
 drivers/nvme/host/rdma.c                                   |    2 
 drivers/nvme/host/tcp.c                                    |    9 
 drivers/perf/arm_smmuv3_pmu.c                              |    2 
 drivers/pwm/pwm-omap-dmtimer.c                             |   21 
 drivers/s390/crypto/ap_bus.h                               |    4 
 drivers/s390/crypto/ap_card.c                              |    8 
 drivers/s390/crypto/ap_queue.c                             |    6 
 drivers/s390/crypto/zcrypt_api.c                           |   16 
 drivers/s390/net/qeth_core_main.c                          |    2 
 drivers/s390/net/qeth_l2_main.c                            |   29 
 drivers/s390/scsi/zfcp_fsf.h                               |    2 
 drivers/s390/scsi/zfcp_sysfs.c                             |    2 
 drivers/scsi/sd_zbc.c                                      |    7 
 drivers/soc/tegra/fuse/fuse-tegra30.c                      |    3 
 drivers/thermal/broadcom/brcmstb_thermal.c                 |   31 
 drivers/thermal/db8500_thermal.c                           |    4 
 drivers/vhost/net.c                                        |   10 
 drivers/watchdog/wdat_wdt.c                                |    2 
 fs/ceph/file.c                                             |   17 
 fs/cifs/cifsacl.c                                          |    4 
 fs/cifs/connect.c                                          |    2 
 fs/cifs/inode.c                                            |    2 
 fs/dax.c                                                   |    3 
 fs/ext4/super.c                                            |    6 
 fs/f2fs/data.c                                             |   32 
 fs/io-wq.c                                                 |   22 
 fs/io_uring.c                                              |   12 
 fs/namei.c                                                 |    2 
 fs/nfs/nfs4file.c                                          |    1 
 fs/nfs/nfs4proc.c                                          |   18 
 fs/ubifs/orphan.c                                          |    4 
 fs/xfs/libxfs/xfs_attr.h                                   |    7 
 fs/xfs/xfs_ioctl.c                                         |    2 
 fs/xfs/xfs_ioctl32.c                                       |    2 
 include/acpi/actypes.h                                     |    3 
 include/asm-generic/vdso/vsyscall.h                        |    4 
 include/linux/blkdev.h                                     |    2 
 include/linux/blktrace_api.h                               |   18 
 include/linux/hid.h                                        |    2 
 include/linux/netdevice.h                                  |    7 
 include/linux/netfilter/ipset/ip_set.h                     |   11 
 include/linux/sched/nohz.h                                 |    2 
 include/net/flow_dissector.h                               |    9 
 include/uapi/linux/usb/charger.h                           |   16 
 kernel/audit.c                                             |   40 
 kernel/auditfilter.c                                       |   71 -
 kernel/kprobes.c                                           |    4 
 kernel/locking/lockdep_proc.c                              |    4 
 kernel/rcu/tree_exp.h                                      |   11 
 kernel/sched/core.c                                        |   31 
 kernel/sched/fair.c                                        |    7 
 kernel/sched/loadavg.c                                     |   33 
 kernel/time/vsyscall.c                                     |   37 
 kernel/trace/blktrace.c                                    |  114 +-
 kernel/trace/trace.c                                       |    2 
 mm/debug.c                                                 |    8 
 mm/gup.c                                                   |    3 
 mm/huge_memory.c                                           |   26 
 net/core/dev.c                                             |   34 
 net/core/fib_rules.c                                       |    2 
 net/core/rtnetlink.c                                       |   26 
 net/ipv4/udp.c                                             |    6 
 net/ipv6/ip6_fib.c                                         |    7 
 net/ipv6/route.c                                           |    1 
 net/mac80211/mlme.c                                        |    6 
 net/mac80211/util.c                                        |   34 
 net/netfilter/ipset/ip_set_core.c                          |   34 
 net/netfilter/ipset/ip_set_hash_gen.h                      |  635 +++++++++----
 net/netfilter/nft_tunnel.c                                 |    4 
 net/netfilter/xt_hashlimit.c                               |   12 
 net/netlink/af_netlink.c                                   |    5 
 net/sched/cls_flower.c                                     |    1 
 net/sctp/sm_statefuns.c                                    |   29 
 net/smc/af_smc.c                                           |    2 
 net/smc/smc_clc.c                                          |    4 
 net/tipc/socket.c                                          |    2 
 net/tls/tls_device.c                                       |   20 
 net/wireless/ethtool.c                                     |    8 
 net/wireless/nl80211.c                                     |    5 
 scripts/Makefile.lib                                       |    4 
 security/integrity/ima/ima_policy.c                        |   44 
 tools/perf/builtin-report.c                                |    6 
 tools/perf/ui/browsers/hists.c                             |    1 
 tools/perf/ui/gtk/Build                                    |    5 
 tools/perf/util/map.c                                      |    1 
 tools/testing/selftests/ftrace/Makefile                    |    2 
 tools/testing/selftests/livepatch/Makefile                 |    2 
 tools/testing/selftests/net/fib_tests.sh                   |    6 
 tools/testing/selftests/rseq/Makefile                      |    2 
 tools/testing/selftests/rtc/Makefile                       |    2 
 virt/kvm/kvm_main.c                                        |   12 
 188 files changed, 1960 insertions(+), 1106 deletions(-)

Aleksa Sarai (1):
namei: only return -ECHILD from follow_dotdot_rcu()

Alexandra Winter (1):
s390/qeth: vnicc Fix EOPNOTSUPP precedence

Alexandre Belloni (2):
net: macb: ensure interface is not suspended on at91rm9200
net: macb: Properly handle phylink on at91rm9200

Andrei Otcheretianski (1):
mac80211: Remove a redundant mutex unlock

Anirudh Venkataramanan (1):
ice: Use ice_pf_to_dev

Anton Eidelman (1):
nvme/tcp: fix bug on double requeue when send fails

Anup Patel (1):
RISC-V: Don't enable all interrupts in trap_init()

Aric Cyr (1):
drm/amd/display: Check engine is not NULL before acquiring

Aristeu Rozanski (1):
EDAC: skx_common: downgrade message importance on missing PCI device

Arnaldo Carvalho de Melo (1):
perf hists browser: Restore ESC as "Zoom out" of DSO/thread/etc

Arthur Kiyanovski (9):
net: ena: fix potential crash when rxfh key is NULL
net: ena: fix uses of round_jiffies()
net: ena: add missing ethtool TX timestamping indication
net: ena: fix incorrect default RSS key
net: ena: rss: store hash function as values and not bits
net: ena: fix incorrectly saving queue numbers when setting RSS indirection table
net: ena: fix corruption of dev_idx_to_host_tbl
net: ena: ena-com.c: prevent NULL pointer dereference
net: ena: make ena rxfh support ETH_RSS_HASH_NO_CHANGE

Arun Parameswaran (1):
net: phy: restore mdio regs in the iproc mdio driver

Ben Shelton (1):
ice: Use correct netif error function

Benjamin Block (1):
scsi: zfcp: fix wrong data and display format of SFP+ temperature

Benjamin Poirier (2):
ipv6: Fix route replacement with dev-only route
ipv6: Fix nlmsg_flags when splitting a multipath route

Bijan Mottahedeh (1):
nvme-pci: Hold cq_poll_lock while completing CQEs

Bjorn Andersson (1):
clk: qcom: rpmh: Sort OF match table

Bjørn Mork (2):
qmi_wwan: re-add DW5821e pre-production variant
qmi_wwan: unconditionally reject 2 ep interfaces

Brett Creeley (2):
i40e: Fix the conditional for i40e_vc_validate_vqs_bitmaps
ice: Don't allow same value for Rx tail to be written twice

Brian Norris (2):
mwifiex: drop most magic numbers from mwifiex_process_tdls_action_frame()
mwifiex: delete unused mwifiex_get_intf_num()

Bruce Allan (2):
ice: fix and consolidate logging of NVM/firmware version information
ice: update Unit Load Status bitmask to check after reset

Cengiz Can (1):
perf maps: Add missing unlock to maps__insert() error case

Chao Yu (1):
f2fs: fix to add swap extent correctly

Cheng Jian (1):
sched/fair: Optimize select_idle_cpu

Chris Wilson (1):
drm/i915: Avoid recursing onto active vma from the shrinker

Christoph Hellwig (1):
xfs: clear kernel only flags in XFS_IOC_ATTRMULTI_BY_HANDLE

Christophe JAILLET (3):
HID: alps: Fix an error handling path in 'alps_input_configured()'
MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
drivers: net: xgene: Fix the order of the arguments of 'alloc_etherdev_mqs()'

Cong Wang (1):
netfilter: xt_hashlimit: reduce hashlimit_mutex scope for htable_put()

Corey Minyard (1):
ipmi:ssif: Handle a possible NULL pointer reference

Damien Le Moal (1):
scsi: sd_sbc: Fix sd_zbc_report_zones()

Dan Carpenter (1):
ext4: potential crash on allocation error in ext4_alloc_flex_bg_array()

Daniel Kolesa (1):
amdgpu: Prevent build errors regarding soft/hard-float FP ABI tags

Daniel Vetter (2):
drm/amdgpu: Drop DRIVER_USE_AGP
drm/radeon: Inline drm_get_pci_dev

Dave Ertman (1):
ice: Fix switch between FW and SW LLDP

David Rientjes (1):
mm, thp: fix defrag setting if newline is not used

Dmitry Bezrukov (1):
net: atlantic: checksum compat issue

Dmitry Bogdanov (1):
net: atlantic: fix out of range usage of active_vlans array

Dmitry Osipenko (1):
nfc: pn544: Fix occasional HW initialization failure

Eric Dumazet (2):
net: add strict checks in netdev_name_node_alt_destroy()
net: rtnetlink: fix bugs in rtnl_alt_ifname()

Eugenio Pérez (1):
vhost: Check docket sk_family instead of call getname

Florian Fainelli (2):
net: dsa: b53: Ensure the default VID is untagged
thermal: brcmstb_thermal: Do not use DT coefficients

Frank Sorenson (1):
cifs: Fix mode output in debugging statements

Geert Uytterhoeven (1):
ubifs: Fix ino_t format warnings in orphan_delete()

Greg Kroah-Hartman (1):

      Linux 5.5.8

Guangbin Huang (1):
net: hns3: fix a copying IPv6 address error in hclge_fd_get_flow_tuples()

Gustavo A. R. Silva (1):
i2c: altera: Fix potential integer overflow

Haiyang Zhang (1):
hv_netvsc: Fix unwanted wakeup in netvsc_attach()

Hans de Goede (1):
HID: ite: Only bind to keyboard USB interface on Acer SW5-012 keyboard dock

Harald Freudenberger (1):
s390/zcrypt: fix card and queue total counter wrap

Horatiu Vultur (1):
net: mscc: fix in frame extraction

Isabel Zhang (1):
drm/amd/display: Add initialitions for PLL2 clock source

Jan Kara (1):

      blktrace: Protect q->blk_trace with RCU

Janne Karhunen (1):
ima: ima/lsm policy rule loading logic bug fixes

Jason Baron (1):
net: sched: correct flower port blocking

Jeff Moyer (1):
dax: pass NOWAIT flag to iomap_apply

Jens Axboe (2):
io-wq: don't call kXalloc_node() with non-online node
io_uring: fix 32-bit compatability with sendmsg/recvmsg

Jethro Beekman (1):
net: fib_rules: Correctly set table field when table number exceeds 8 bits

Jim Mattson (2):
kvm: nVMX: VMWRITE checks VMCS-link pointer before VMCS field
kvm: nVMX: VMWRITE checks unsupported field before read-only field

Jin Yao (1):
perf report: Fix no libunwind compiled warning break s390 issue

Jiri Olsa (1):
perf ui gtk: Add missing zalloc object

Johan Korsnes (2):
HID: core: fix off-by-one memset in hid_report_raw_event()
HID: core: increase HID report buffer size to 8KiB

Johannes Berg (2):
mac80211: consider more elements in parsing CRC
nl80211: fix potential leak in AP start

John Garry (1):
perf/smmuv3: Use platform_get_irq_optional() for wired interrupt

John Hubbard (1):
mm/gup: allow FOLL_FORCE for get_user_pages_fast()

Jozsef Kadlecsik (2):
netfilter: ipset: Fix "INFO: rcu detected stall in hash_xxx" reports
netfilter: ipset: Fix forceadd evaluation path

Julian Wiedmann (1):
s390/qeth: fix off-by-one in RX copybreak check

Kan Liang (3):
perf/x86/intel: Add Elkhart Lake support
perf/x86/cstate: Add Tremont support
perf/x86/msr: Add Tremont support

Kees Cook (1):
docs: Fix empty parallelism argument

Keith Busch (1):
nvme/pci: move cqe check after device shutdown

Krishnamraju Eraparaju (1):
RDMA/siw: Remove unwanted WARN_ON in siw_cm_llp_data_ready()

Kuninori Morimoto (1):
ARM: dts: sti: fixup sound frame-inversion for stihxxx-b2120.dtsi

Lijun Ou (1):
RDMA/hns: Bugfix for posting a wqe with sge

Linus Walleij (1):
thermal: db8500: Depromote debug print

Mark Tomlinson (1):
MIPS: cavium_octeon: Fix syncw generation.

Masahiro Yamada (1):
kbuild: fix DT binding schema rule to detect command line changes

Masami Hiramatsu (1):
kprobes: Set unoptimized flag after unoptimizing code

Matteo Croce (1):
netfilter: nf_flowtable: fix documentation

Michael Ellerman (1):
selftests: Install settings files to fix TIMEOUT failures

Michal Kalderon (1):
qede: Fix race between rdma destroy workqueue and link change event

Mika Westerberg (2):
ACPICA: Introduce ACPI_ACCESS_BYTE_WIDTH() macro
ACPI: watchdog: Fix gas->access_width usage

Neeraj Upadhyay (1):
rcu: Allow only one expedited GP to run concurrently with wakeups

Nigel Kirkland (1):
nvme: prevent warning triggered by nvme_stop_keep_alive

Nikita Danilov (1):
net: atlantic: better loopback mode handling

Nikolay Aleksandrov (1):
net: netlink: cap max groups which will be considered in netlink_bind()

Oliver Upton (1):
KVM: VMX: check descriptor table exits on instruction emulation

Orson Zhai (1):
Revert "PM / devfreq: Modify the device name as devfreq(X) for sysfs"

Paolo Abeni (1):
Revert "net: dev: introduce support for sch BYPASS for lockless qdisc"

Paul Moore (2):
audit: fix error handling in audit_data_to_entry()
audit: always check the netlink payload length in audit_receive_msg()

Pavel Belous (3):
net: atlantic: fix use after free kasan warn
net: atlantic: fix potential error handling
net: atlantic: possible fault in transition to hibernation

Peter Chen (1):
usb: charger: assign specific number for enum value

Peter Xu (1):
KVM: X86: Fix kvm_bitmap_or_dest_vcpus() to use irq shorthand

Peter Zijlstra (Intel) (1):
timers/nohz: Update NOHZ load in remote tick

Rafael J. Wysocki (1):
cpufreq: Fix policy initialization for internal governor drivers

Rohit Maheshwari (1):
net/tls: Fix to avoid gettig invalid tls record

Sameeh Jubran (3):
net: ena: rss: do not allocate key when not supported
net: ena: rss: fix failure to get indirection table
net: ena: ethtool: use correct value for crc32 hash

Sameer Pujar (1):
bus: tegra-aconnect: Remove PM_CLK dependency

Scott Wood (1):
sched/core: Don't skip remote tick for idle CPUs

Sean Christopherson (3):
KVM: Check for a bad hva before dropping into the ghc slow path
KVM: x86: Remove spurious kvm_mmu_unload() from vcpu destruction path
KVM: x86: Remove spurious clearing of async #PF MSR

Sean Paul (1):
drm/msm: Set dma maximum segment size for mdss

Sergey Matyukevich (2):
cfg80211: check wiphy driver existence for drvinfo report
cfg80211: add missing policy for NL80211_ATTR_STATUS_CODE

Shannon Nelson (1):
ionic: fix fw_status read

Shay Bar (1):

      mac80211: fix wrong 160/80+80 MHz setting

Shirish S (1):
amdgpu/gmc_v9: save/restore sdpif regs during S3

Stefano Garzarella (1):
io_uring: flush overflowed CQ events in the io_uring_poll()

Steven Rostedt (VMware) (1):
tracing: Disable trace_printk() on post poned tests

Sung Lee (1):
drm/amd/display: Do not set optimized_require to false after plane disable

Taehee Yoo (3):
bonding: add missing netdev_update_lockdep_key()
net: export netdev_next_lower_dev_rcu()
bonding: fix lockdep warning in bond_get_stats()

Thierry Reding (1):
soc/tegra: fuse: Fix build with Tegra194 configuration

Thomas Gleixner (2):
lib/vdso: Make __arch_update_vdso_data() logic understandable lib/vdso: Update coarse timekeeper unconditionally

Tina Zhang (2):
drm/i915/gvt: Fix orphan vgpu dmabuf_objs' lifetime drm/i915/gvt: Separate display reset from ALL_ENGINES reset

Tom Lendacky (1):
KVM: SVM: Override default MMIO mask if memory encryption is enabled

Trond Myklebust (1):
NFSv4: Fix races between open and dentry revalidation

Tuong Lien (1):
tipc: fix successful connect() but timed out

Ursula Braun (2):
net/smc: transfer fasync_list in case of fallback net/smc: no peer ID in CLC decline for SMCD

Uwe Kleine-König (1):
pwm: omap-dmtimer: put_device() after of_find_device_by_node()

Vasundhara Volam (2):
bnxt_en: Improve device shutdown method.
bnxt_en: Issue PCIe FLR in kdump kernel to cleanup pending DMAs.

Vincent Guittot (1):
sched/fair: Prevent unlimited runtime on throttled group

Vlastimil Babka (1):
mm/debug.c: always print flags in dump_page()

Waiman Long (1):
locking/lockdep: Fix lockdep_stats indentation problem

Wei Yang (1):
mm/huge_memory.c: use head to check huge zero page

Willem de Bruijn (1):
udp: rehash on disconnect

Wolfram Sang (2):
macintosh: therm_windtunnel: fix regression when instantiating devices
i2c: jz4780: silence log flood on txabrt

Xiaochen Shen (1):
x86/resctrl: Check monitoring static key in the MBM overflow handler

Xin Long (2):
sctp: move the format error check out of __sctp_sf_do_9_1_abort
netfilter: nft_tunnel: no need to call htons() when dumping ports

Xiubo Li (1):
ceph: do not execute direct write in parallel if O_APPEND is specified

Yixian Liu (1):
RDMA/hns: Simplify the calculation and usage of wqe idx for post verbs

Yonglong Liu (1):
net: hns3: fix VF bandwidth does not take effect in some case

Yongqiang Sun (1):
drm/amd/display: Limit minimum DPPCLK to 100MHz.

Yufeng Mo (1):
net: hns3: add management table after IMP reset

[email protected] (1):
HID: hiddev: Fix race in in hiddev_disconnect()

author maintainer
#1 lore raw
Documentation/networking/nf_flowtable.txt +1 -1
index ca2136c76042..0bf32d1121be 100644
@@ -76,7 +76,7 @@ flowtable and add one rule to your forward chain.
 
         table inet x {
 		flowtable f {
-			hook ingress priority 0 devices = { eth0, eth1 };
+			hook ingress priority 0; devices = { eth0, eth1 };
 		}
                 chain y {
                         type filter hook forward priority 0; policy accept;
Documentation/sphinx/parallel-wrapper.sh +1 -1
index 7daf5133bdd3..e54c44ce117d 100644
@@ -30,4 +30,4 @@ if [ -n "$parallel" ] ; then
 	parallel="-j$parallel"
 fi
 
-exec "$sphinx" "$parallel" "$@"
+exec "$sphinx" $parallel "$@"
Makefile +1 -1
index 0f64b92fa39a..a1e5190e4721 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 5
-SUBLEVEL = 7
+SUBLEVEL = 8
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus
 
arch/arm/boot/dts/stihxxx-b2120.dtsi +1 -1
index 60e11045ad76..d051f080e52e 100644
@@ -46,7 +46,7 @@ simple-audio-card,dai-link@1 {
 			/* DAC */
 			format = "i2s";
 			mclk-fs = <256>;
-			frame-inversion = <1>;
+			frame-inversion;
 			cpu {
 				sound-dai = <&sti_uni_player2>;
 			};
arch/arm/include/asm/vdso/vsyscall.h +2 -2
index c4166f317071..cff87d8d30da 100644
@@ -34,9 +34,9 @@ struct vdso_data *__arm_get_k_vdso_data(void)
 #define __arch_get_k_vdso_data __arm_get_k_vdso_data
 
 static __always_inline
-int __arm_update_vdso_data(void)
+bool __arm_update_vdso_data(void)
 {
-	return !cntvct_ok;
+	return cntvct_ok;
 }
 #define __arch_update_vdso_data __arm_update_vdso_data
 
arch/mips/include/asm/sync.h +3 -1
index 7c6a1095f556..aabd097933fe 100644
@@ -155,9 +155,11 @@
  * effective barrier as noted by commit 6b07d38aaa52 ("MIPS: Octeon: Use
  * optimized memory barrier primitives."). Here we specify that the affected
  * sync instructions should be emitted twice.
+ * Note that this expression is evaluated by the assembler (not the compiler),
+ * and that the assembler evaluates '==' as 0 or -1, not 0 or 1.
  */
 #ifdef CONFIG_CPU_CAVIUM_OCTEON
-# define __SYNC_rpt(type)	(1 + (type == __SYNC_wmb))
+# define __SYNC_rpt(type)	(1 - (type == __SYNC_wmb))
 #else
 # define __SYNC_rpt(type)	1
 #endif
arch/mips/kernel/vpe.c +1 -1
index 6176b9acba95..d0d832ab3d3b 100644
@@ -134,7 +134,7 @@ void release_vpe(struct vpe *v)
 {
 	list_del(&v->list);
 	if (v->load_addr)
-		release_progmem(v);
+		release_progmem(v->load_addr);
 	kfree(v);
 }
 
arch/riscv/kernel/traps.c +2 -2
index f4cad5163bf2..ffb3d94bf0cc 100644
@@ -156,6 +156,6 @@ void __init trap_init(void)
 	csr_write(CSR_SCRATCH, 0);
 	/* Set the exception vector address */
 	csr_write(CSR_TVEC, &handle_exception);
-	/* Enable all interrupts */
-	csr_write(CSR_IE, -1);
+	/* Enable interrupts */
+	csr_write(CSR_IE, IE_SIE | IE_EIE);
 }
arch/x86/events/intel/core.c +1 -0
index 3be51aa06e67..dff6623804c2 100644
@@ -4765,6 +4765,7 @@ __init int intel_pmu_init(void)
 		break;
 
 	case INTEL_FAM6_ATOM_TREMONT_D:
+	case INTEL_FAM6_ATOM_TREMONT:
 		x86_pmu.late_ack = true;
 		memcpy(hw_cache_event_ids, glp_hw_cache_event_ids,
 		       sizeof(hw_cache_event_ids));
arch/x86/events/intel/cstate.c +13 -9
index e1daf4151e11..4814c964692c 100644
@@ -40,17 +40,18 @@
  * Model specific counters:
  *	MSR_CORE_C1_RES: CORE C1 Residency Counter
  *			 perf code: 0x00
- *			 Available model: SLM,AMT,GLM,CNL
+ *			 Available model: SLM,AMT,GLM,CNL,TNT
  *			 Scope: Core (each processor core has a MSR)
  *	MSR_CORE_C3_RESIDENCY: CORE C3 Residency Counter
  *			       perf code: 0x01
  *			       Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,GLM,
- *						CNL,KBL,CML
+ *						CNL,KBL,CML,TNT
  *			       Scope: Core
  *	MSR_CORE_C6_RESIDENCY: CORE C6 Residency Counter
  *			       perf code: 0x02
  *			       Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW,
- *						SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL
+ *						SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL,
+ *						TNT
  *			       Scope: Core
  *	MSR_CORE_C7_RESIDENCY: CORE C7 Residency Counter
  *			       perf code: 0x03
@@ -60,17 +61,18 @@
  *	MSR_PKG_C2_RESIDENCY:  Package C2 Residency Counter.
  *			       perf code: 0x00
  *			       Available model: SNB,IVB,HSW,BDW,SKL,KNL,GLM,CNL,
- *						KBL,CML,ICL,TGL
+ *						KBL,CML,ICL,TGL,TNT
  *			       Scope: Package (physical package)
  *	MSR_PKG_C3_RESIDENCY:  Package C3 Residency Counter.
  *			       perf code: 0x01
  *			       Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,KNL,
- *						GLM,CNL,KBL,CML,ICL,TGL
+ *						GLM,CNL,KBL,CML,ICL,TGL,TNT
  *			       Scope: Package (physical package)
  *	MSR_PKG_C6_RESIDENCY:  Package C6 Residency Counter.
  *			       perf code: 0x02
- *			       Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW
- *						SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL
+ *			       Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW,
+ *						SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL,
+ *						TNT
  *			       Scope: Package (physical package)
  *	MSR_PKG_C7_RESIDENCY:  Package C7 Residency Counter.
  *			       perf code: 0x03
@@ -87,7 +89,8 @@
  *			       Scope: Package (physical package)
  *	MSR_PKG_C10_RESIDENCY: Package C10 Residency Counter.
  *			       perf code: 0x06
- *			       Available model: HSW ULT,KBL,GLM,CNL,CML,ICL,TGL
+ *			       Available model: HSW ULT,KBL,GLM,CNL,CML,ICL,TGL,
+ *						TNT
  *			       Scope: Package (physical package)
  *
  */
@@ -640,8 +643,9 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
 
 	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_GOLDMONT,   glm_cstates),
 	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_GOLDMONT_D, glm_cstates),
-
 	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_GOLDMONT_PLUS, glm_cstates),
+	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_TREMONT_D, glm_cstates),
+	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_TREMONT, glm_cstates),
 
 	X86_CSTATES_MODEL(INTEL_FAM6_ICELAKE_L, icl_cstates),
 	X86_CSTATES_MODEL(INTEL_FAM6_ICELAKE,   icl_cstates),
arch/x86/events/msr.c +2 -1
index 6f86650b3f77..a949f6f55991 100644
@@ -75,8 +75,9 @@ static bool test_intel(int idx, void *data)
 
 	case INTEL_FAM6_ATOM_GOLDMONT:
 	case INTEL_FAM6_ATOM_GOLDMONT_D:
-
 	case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
+	case INTEL_FAM6_ATOM_TREMONT_D:
+	case INTEL_FAM6_ATOM_TREMONT:
 
 	case INTEL_FAM6_XEON_PHI_KNL:
 	case INTEL_FAM6_XEON_PHI_KNM:
arch/x86/kernel/cpu/resctrl/internal.h +1 -0
index e49b77283924..181c992f448c 100644
@@ -57,6 +57,7 @@ static inline struct rdt_fs_context *rdt_fc2context(struct fs_context *fc)
 }
 
 DECLARE_STATIC_KEY_FALSE(rdt_enable_key);
+DECLARE_STATIC_KEY_FALSE(rdt_mon_enable_key);
 
 /**
  * struct mon_evt - Entry in the event list of a resource
arch/x86/kernel/cpu/resctrl/monitor.c +2 -2
index 397206f23d14..773124b0e18a 100644
@@ -514,7 +514,7 @@ void mbm_handle_overflow(struct work_struct *work)
 
 	mutex_lock(&rdtgroup_mutex);
 
-	if (!static_branch_likely(&rdt_enable_key))
+	if (!static_branch_likely(&rdt_mon_enable_key))
 		goto out_unlock;
 
 	d = get_domain_from_cpu(cpu, &rdt_resources_all[RDT_RESOURCE_L3]);
@@ -543,7 +543,7 @@ void mbm_setup_overflow_handler(struct rdt_domain *dom, unsigned long delay_ms)
 	unsigned long delay = msecs_to_jiffies(delay_ms);
 	int cpu;
 
-	if (!static_branch_likely(&rdt_enable_key))
+	if (!static_branch_likely(&rdt_mon_enable_key))
 		return;
 	cpu = cpumask_any(&dom->cpu_mask);
 	dom->mbm_work_cpu = cpu;
arch/x86/kvm/lapic.c +1 -1
index f05123acaa64..a1daebe2a60f 100644
@@ -1150,7 +1150,7 @@ void kvm_bitmap_or_dest_vcpus(struct kvm *kvm, struct kvm_lapic_irq *irq,
 			if (!kvm_apic_present(vcpu))
 				continue;
 			if (!kvm_apic_match_dest(vcpu, NULL,
-						 irq->delivery_mode,
+						 irq->shorthand,
 						 irq->dest_id,
 						 irq->dest_mode))
 				continue;
arch/x86/kvm/svm.c +43 -0

55 lines not on this page · raw message

arch/x86/kvm/vmx/nested.c +31 -39

111 lines not on this page · raw message

arch/x86/kvm/vmx/vmx.c +15 -0
index be438bc7cfa3..3e381b31b9a6 100644
@@ -7179,6 +7179,7 @@ static int vmx_check_intercept_io(struct kvm_vcpu *vcpu,
 	else
 		intercept = nested_vmx_check_io_bitmaps(vcpu, port, size);
 
+	/* FIXME: produce nested vmexit and return X86EMUL_INTERCEPTED.  */
 	return intercept ? X86EMUL_UNHANDLEABLE : X86EMUL_CONTINUE;
 }
 
@@ -7208,6 +7209,20 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu,
 	case x86_intercept_outs:
 		return vmx_check_intercept_io(vcpu, info);
 
+	case x86_intercept_lgdt:
+	case x86_intercept_lidt:
+	case x86_intercept_lldt:
+	case x86_intercept_ltr:
+	case x86_intercept_sgdt:
+	case x86_intercept_sidt:
+	case x86_intercept_sldt:
+	case x86_intercept_str:
+		if (!nested_cpu_has2(vmcs12, SECONDARY_EXEC_DESC))
+			return X86EMUL_CONTINUE;
+
+		/* FIXME: produce nested vmexit and return X86EMUL_INTERCEPTED.  */
+		break;
+
 	/* TODO: check more intercepts... */
 	default:
 		break;
arch/x86/kvm/x86.c +0 -6
index e594fd2719dd..dafb5aff200f 100644
@@ -9225,12 +9225,6 @@ void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu)
 
 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
 {
-	vcpu->arch.apf.msr_val = 0;
-
-	vcpu_load(vcpu);
-	kvm_mmu_unload(vcpu);
-	vcpu_put(vcpu);
-
 	kvm_arch_vcpu_free(vcpu);
 }
 
drivers/acpi/acpi_watchdog.c +1 -2
index b5516b04ffc0..d827a4a3e946 100644
@@ -126,12 +126,11 @@ void __init acpi_watchdog_init(void)
 		gas = &entries[i].register_region;
 
 		res.start = gas->address;
+		res.end = res.start + ACPI_ACCESS_BYTE_WIDTH(gas->access_width) - 1;
 		if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) {
 			res.flags = IORESOURCE_MEM;
-			res.end = res.start + ALIGN(gas->access_width, 4) - 1;
 		} else if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_IO) {
 			res.flags = IORESOURCE_IO;
-			res.end = res.start + gas->access_width - 1;
 		} else {
 			pr_warn("Unsupported address space: %u\n",
 				gas->space_id);
drivers/bus/Kconfig +0 -1
index 50200d1c06ea..6095b6df8a81 100644
@@ -139,7 +139,6 @@ config TEGRA_ACONNECT
 	tristate "Tegra ACONNECT Bus Driver"
 	depends on ARCH_TEGRA_210_SOC
 	depends on OF && PM
-	select PM_CLK
 	help
 	  Driver for the Tegra ACONNECT bus which is used to interface with
 	  the devices inside the Audio Processing Engine (APE) for Tegra210.
drivers/char/ipmi/ipmi_ssif.c +7 -3
index 22c6a2e61236..8ac390c2b514 100644
@@ -775,10 +775,14 @@ static void msg_done_handler(struct ssif_info *ssif_info, int result,
 	flags = ipmi_ssif_lock_cond(ssif_info, &oflags);
 	msg = ssif_info->curr_msg;
 	if (msg) {
+		if (data) {
+			if (len > IPMI_MAX_MSG_LENGTH)
+				len = IPMI_MAX_MSG_LENGTH;
+			memcpy(msg->rsp, data, len);
+		} else {
+			len = 0;
+		}
 		msg->rsp_size = len;
-		if (msg->rsp_size > IPMI_MAX_MSG_LENGTH)
-			msg->rsp_size = IPMI_MAX_MSG_LENGTH;
-		memcpy(msg->rsp, data, msg->rsp_size);
 		ssif_info->curr_msg = NULL;
 	}
 
drivers/clk/qcom/clk-rpmh.c +1 -1
index 7ed313ad6e43..d9e17b91c68e 100644
@@ -481,9 +481,9 @@ static int clk_rpmh_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id clk_rpmh_match_table[] = {
+	{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
 	{ .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
 	{ .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},
-	{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);
drivers/cpufreq/cpufreq.c +10 -2
index 4adac3a8c265..b60d349e3b1e 100644
@@ -1074,9 +1074,17 @@ static int cpufreq_init_policy(struct cpufreq_policy *policy)
 			pol = policy->last_policy;
 		} else if (def_gov) {
 			pol = cpufreq_parse_policy(def_gov->name);
-		} else {
-			return -ENODATA;
+			/*
+			 * In case the default governor is neiter "performance"
+			 * nor "powersave", fall back to the initial policy
+			 * value set by the driver.
+			 */
+			if (pol == CPUFREQ_POLICY_UNKNOWN)
+				pol = policy->policy;
 		}
+		if (pol != CPUFREQ_POLICY_PERFORMANCE &&
+		    pol != CPUFREQ_POLICY_POWERSAVE)
+			return -ENODATA;
 	}
 
 	return cpufreq_set_policy(policy, gov, pol);
drivers/devfreq/devfreq.c +1 -3
index e99f082d15df..c5a34be182ca 100644
@@ -738,7 +738,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
 {
 	struct devfreq *devfreq;
 	struct devfreq_governor *governor;
-	static atomic_t devfreq_no = ATOMIC_INIT(-1);
 	int err = 0;
 
 	if (!dev || !profile || !governor_name) {
@@ -800,8 +799,7 @@ struct devfreq *devfreq_add_device(struct device *dev,
 	devfreq->suspend_freq = dev_pm_opp_get_suspend_opp_freq(dev);
 	atomic_set(&devfreq->suspend_count, 0);
 
-	dev_set_name(&devfreq->dev, "devfreq%d",
-				atomic_inc_return(&devfreq_no));
+	dev_set_name(&devfreq->dev, "%s", dev_name(dev));
 	err = device_register(&devfreq->dev);
 	if (err) {
 		mutex_unlock(&devfreq->lock);
drivers/edac/skx_common.c +1 -1
index 95662a4ff4c4..99bbaf629b8d 100644
@@ -256,7 +256,7 @@ int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm)
 
 	pdev = pci_get_device(PCI_VENDOR_ID_INTEL, did, NULL);
 	if (!pdev) {
-		skx_printk(KERN_ERR, "Can't get tolm/tohm\n");
+		edac_dbg(2, "Can't get tolm/tohm\n");
 		return -ENODEV;
 	}
 
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
index 30a1e3ac21d6..4169abc32219 100644
@@ -1357,7 +1357,7 @@ amdgpu_get_crtc_scanout_position(struct drm_device *dev, unsigned int pipe,
 
 static struct drm_driver kms_driver = {
 	.driver_features =
-	    DRIVER_USE_AGP | DRIVER_ATOMIC |
+	    DRIVER_ATOMIC |
 	    DRIVER_GEM |
 	    DRIVER_RENDER | DRIVER_MODESET | DRIVER_SYNCOBJ |
 	    DRIVER_SYNCOBJ_TIMELINE,
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h +1 -0
index b499a3de8bb6..c75cc97eca44 100644
@@ -192,6 +192,7 @@ struct amdgpu_gmc {
 	uint32_t                srbm_soft_reset;
 	bool			prt_warning;
 	uint64_t		stolen_size;
+	uint32_t		sdpif_register;
 	/* apertures */
 	u64			shared_aperture_start;
 	u64			shared_aperture_end;
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +36 -1
index a5b68b5e452f..0b88c9f877ec 100644
@@ -1203,6 +1203,19 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)
 	}
 }
 
+/**
+ * gmc_v9_0_restore_registers - restores regs
+ *
+ * @adev: amdgpu_device pointer
+ *
+ * This restores register values, saved at suspend.
+ */
+static void gmc_v9_0_restore_registers(struct amdgpu_device *adev)
+{
+	if (adev->asic_type == CHIP_RAVEN)
+		WREG32(mmDCHUBBUB_SDPIF_MMIO_CNTRL_0, adev->gmc.sdpif_register);
+}
+
 /**
  * gmc_v9_0_gart_enable - gart enable
  *
@@ -1307,6 +1320,20 @@ static int gmc_v9_0_hw_init(void *handle)
 	return r;
 }
 
+/**
+ * gmc_v9_0_save_registers - saves regs
+ *
+ * @adev: amdgpu_device pointer
+ *
+ * This saves potential register values that should be
+ * restored upon resume
+ */
+static void gmc_v9_0_save_registers(struct amdgpu_device *adev)
+{
+	if (adev->asic_type == CHIP_RAVEN)
+		adev->gmc.sdpif_register = RREG32(mmDCHUBBUB_SDPIF_MMIO_CNTRL_0);
+}
+
 /**
  * gmc_v9_0_gart_disable - gart disable
  *
@@ -1343,9 +1370,16 @@ static int gmc_v9_0_hw_fini(void *handle)
 
 static int gmc_v9_0_suspend(void *handle)
 {
+	int r;
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
-	return gmc_v9_0_hw_fini(adev);
+	r = gmc_v9_0_hw_fini(adev);
+	if (r)
+		return r;
+
+	gmc_v9_0_save_registers(adev);
+
+	return 0;
 }
 
 static int gmc_v9_0_resume(void *handle)
@@ -1353,6 +1387,7 @@ static int gmc_v9_0_resume(void *handle)
 	int r;
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
+	gmc_v9_0_restore_registers(adev);
 	r = gmc_v9_0_hw_init(adev);
 	if (r)
 		return r;
drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile +6 -0
index b864869cc7e3..6fa7422c51da 100644
@@ -91,6 +91,12 @@ ifdef CONFIG_DRM_AMD_DC_DCN2_1
 ###############################################################################
 CLK_MGR_DCN21 = rn_clk_mgr.o rn_clk_mgr_vbios_smu.o
 
+# prevent build errors regarding soft-float vs hard-float FP ABI tags
+# this code is currently unused on ppc64, as it applies to Renoir APUs only
+ifdef CONFIG_PPC64
+CFLAGS_$(AMDDALPATH)/dc/clk_mgr/dcn21/rn_clk_mgr.o := $(call cc-option,-mno-gnu-attribute)
+endif
+
 AMD_DAL_CLK_MGR_DCN21 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn21/,$(CLK_MGR_DCN21))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN21)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c +6 -0
index dbf063856846..5f683d118d2a 100644
@@ -149,6 +149,12 @@ void rn_update_clocks(struct clk_mgr *clk_mgr_base,
 		rn_vbios_smu_set_min_deep_sleep_dcfclk(clk_mgr, clk_mgr_base->clks.dcfclk_deep_sleep_khz);
 	}
 
+	// workaround: Limit dppclk to 100Mhz to avoid lower eDP panel switch to plus 4K monitor underflow.
+	if (!IS_DIAG_DC(dc->ctx->dce_environment)) {
+		if (new_clocks->dppclk_khz < 100000)
+			new_clocks->dppclk_khz = 100000;
+	}
+
 	if (should_set_clock(safe_to_lower, new_clocks->dppclk_khz, clk_mgr->base.clks.dppclk_khz)) {
 		if (clk_mgr->base.clks.dppclk_khz > new_clocks->dppclk_khz)
 			dpp_clock_lowered = true;
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +1 -1
index 793c0cec407f..5fcffb29317e 100644
@@ -398,7 +398,7 @@ static bool acquire(
 {
 	enum gpio_result result;
 
-	if (!is_engine_available(engine))
+	if ((engine == NULL) || !is_engine_available(engine))
 		return false;
 
 	result = dal_ddc_open(ddc, GPIO_MODE_HARDWARE,
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +0 -1
index ac8c18fadefc..448bc9b39942 100644
@@ -493,7 +493,6 @@ static void dcn20_plane_atomic_disable(struct dc *dc, struct pipe_ctx *pipe_ctx)
 	dpp->funcs->dpp_dppclk_control(dpp, false, false);
 
 	hubp->power_gated = true;
-	dc->optimized_required = false; /* We're powering off, no need to optimize */
 
 	dc->hwss.plane_atomic_power_down(dc,
 			pipe_ctx->plane_res.dpp,
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +6 -0
index 83cda43a1b6b..77741b18c85b 100644
@@ -57,6 +57,7 @@
 #include "dcn20/dcn20_dccg.h"
 #include "dcn21_hubbub.h"
 #include "dcn10/dcn10_resource.h"
+#include "dce110/dce110_resource.h"
 
 #include "dcn20/dcn20_dwb.h"
 #include "dcn20/dcn20_mmhubbub.h"
@@ -867,6 +868,7 @@ static const struct dc_debug_options debug_defaults_diags = {
 enum dcn20_clk_src_array_id {
 	DCN20_CLK_SRC_PLL0,
 	DCN20_CLK_SRC_PLL1,
+	DCN20_CLK_SRC_PLL2,
 	DCN20_CLK_SRC_TOTAL_DCN21
 };
 
@@ -1730,6 +1732,10 @@ static bool construct(
 			dcn21_clock_source_create(ctx, ctx->dc_bios,
 				CLOCK_SOURCE_COMBO_PHY_PLL1,
 				&clk_src_regs[1], false);
+	pool->base.clock_sources[DCN20_CLK_SRC_PLL2] =
+			dcn21_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL2,
+				&clk_src_regs[2], false);
 
 	pool->base.clk_src_count = DCN20_CLK_SRC_TOTAL_DCN21;
 
drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h +2 -0
index b6f74bf4af02..27bb8c1ab858 100644
@@ -7376,6 +7376,8 @@
 #define mmCRTC4_CRTC_DRR_CONTROL                                                                       0x0f3e
 #define mmCRTC4_CRTC_DRR_CONTROL_BASE_IDX                                                              2
 
+#define mmDCHUBBUB_SDPIF_MMIO_CNTRL_0                                                                  0x395d
+#define mmDCHUBBUB_SDPIF_MMIO_CNTRL_0_BASE_IDX                                                         2
 
 // addressBlock: dce_dc_fmt4_dispdec
 // base address: 0x2000
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c +1 -3
index f2418a1cfe68..b5875063b97c 100644
@@ -257,8 +257,7 @@ unsigned long i915_gem_shrink_all(struct drm_i915_private *i915)
 	with_intel_runtime_pm(&i915->runtime_pm, wakeref) {
 		freed = i915_gem_shrink(i915, -1UL, NULL,
 					I915_SHRINK_BOUND |
-					I915_SHRINK_UNBOUND |
-					I915_SHRINK_ACTIVE);
+					I915_SHRINK_UNBOUND);
 	}
 
 	return freed;
@@ -337,7 +336,6 @@ i915_gem_shrinker_oom(struct notifier_block *nb, unsigned long event, void *ptr)
 	freed_pages = 0;
 	with_intel_runtime_pm(&i915->runtime_pm, wakeref)
 		freed_pages += i915_gem_shrink(i915, -1UL, NULL,
-					       I915_SHRINK_ACTIVE |
 					       I915_SHRINK_BOUND |
 					       I915_SHRINK_UNBOUND |
 					       I915_SHRINK_WRITEBACK);
drivers/gpu/drm/i915/gvt/dmabuf.c +1 -1
index 2477a1e5a166..ae139f0877ae 100644
@@ -151,12 +151,12 @@ static void dmabuf_gem_object_free(struct kref *kref)
 			dmabuf_obj = container_of(pos,
 					struct intel_vgpu_dmabuf_obj, list);
 			if (dmabuf_obj == obj) {
+				list_del(pos);
 				intel_gvt_hypervisor_put_vfio_device(vgpu);
 				idr_remove(&vgpu->object_idr,
 					   dmabuf_obj->dmabuf_id);
 				kfree(dmabuf_obj->info);
 				kfree(dmabuf_obj);
-				list_del(pos);
 				break;
 			}
 		}
drivers/gpu/drm/i915/gvt/vgpu.c +1 -1
index 85bd9bf4f6ee..487af6ea9972 100644
@@ -560,9 +560,9 @@ void intel_gvt_reset_vgpu_locked(struct intel_vgpu *vgpu, bool dmlr,
 
 		intel_vgpu_reset_mmio(vgpu, dmlr);
 		populate_pvinfo_page(vgpu);
-		intel_vgpu_reset_display(vgpu);
 
 		if (dmlr) {
+			intel_vgpu_reset_display(vgpu);
 			intel_vgpu_reset_cfg_space(vgpu);
 			/* only reset the failsafe mode when dmlr reset */
 			vgpu->failsafe = false;
drivers/gpu/drm/msm/msm_drv.c +8 -0
index c84f0a8b3f2c..b73fbb65e14b 100644
@@ -441,6 +441,14 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
 	if (ret)
 		goto err_msm_uninit;
 
+	if (!dev->dma_parms) {
+		dev->dma_parms = devm_kzalloc(dev, sizeof(*dev->dma_parms),
+					      GFP_KERNEL);
+		if (!dev->dma_parms)
+			return -ENOMEM;
+	}
+	dma_set_max_seg_size(dev, DMA_BIT_MASK(32));
+
 	msm_gem_shrinker_init(ddev);
 
 	switch (get_mdp_ver(pdev)) {
drivers/gpu/drm/radeon/radeon_drv.c +41 -2

67 lines not on this page · raw message

drivers/gpu/drm/radeon/radeon_kms.c +6 -0
index e85c554eeaa9..2bb0187c5bc7 100644
@@ -31,6 +31,7 @@
 #include <linux/uaccess.h>
 #include <linux/vga_switcheroo.h>
 
+#include <drm/drm_agpsupport.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_file.h>
 #include <drm/drm_ioctl.h>
@@ -77,6 +78,11 @@ void radeon_driver_unload_kms(struct drm_device *dev)
 	radeon_modeset_fini(rdev);
 	radeon_device_fini(rdev);
 
+	if (dev->agp)
+		arch_phys_wc_del(dev->agp->agp_mtrr);
+	kfree(dev->agp);
+	dev->agp = NULL;
+
 done_free:
 	kfree(rdev);
 	dev->dev_private = NULL;
drivers/hid/hid-alps.c +1 -1
index ae79a7c66737..fa704153cb00 100644
@@ -730,7 +730,7 @@ static int alps_input_configured(struct hid_device *hdev, struct hid_input *hi)
 	if (data->has_sp) {
 		input2 = input_allocate_device();
 		if (!input2) {
-			input_free_device(input2);
+			ret = -ENOMEM;
 			goto exit;
 		}
 
drivers/hid/hid-core.c +3 -1
index 851fe54ea59e..359616e3efbb 100644
@@ -1741,7 +1741,9 @@ int hid_report_raw_event(struct hid_device *hid, int type, u8 *data, u32 size,
 
 	rsize = ((report->size - 1) >> 3) + 1;
 
-	if (rsize > HID_MAX_BUFFER_SIZE)
+	if (report_enum->numbered && rsize >= HID_MAX_BUFFER_SIZE)
+		rsize = HID_MAX_BUFFER_SIZE - 1;
+	else if (rsize > HID_MAX_BUFFER_SIZE)
 		rsize = HID_MAX_BUFFER_SIZE;
 
 	if (csize < rsize) {
drivers/hid/hid-ite.c +3 -2
index c436e12feb23..6c55682c5974 100644
@@ -41,8 +41,9 @@ static const struct hid_device_id ite_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ITE, USB_DEVICE_ID_ITE8595) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_258A, USB_DEVICE_ID_258A_6A88) },
 	/* ITE8595 USB kbd ctlr, with Synaptics touchpad connected to it. */
-	{ HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS,
-			 USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012) },
+	{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
+		     USB_VENDOR_ID_SYNAPTICS,
+		     USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012) },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, ite_devices);
drivers/hid/usbhid/hiddev.c +1 -1
index a970b809d778..4140dea693e9 100644
@@ -932,9 +932,9 @@ void hiddev_disconnect(struct hid_device *hid)
 	hiddev->exist = 0;
 
 	if (hiddev->open) {
-		mutex_unlock(&hiddev->existancelock);
 		hid_hw_close(hiddev->hid);
 		wake_up_interruptible(&hiddev->wait);
+		mutex_unlock(&hiddev->existancelock);
 	} else {
 		mutex_unlock(&hiddev->existancelock);
 		kfree(hiddev);
drivers/i2c/busses/i2c-altera.c +1 -1
index 5255d3755411..1de23b4f3809 100644
@@ -171,7 +171,7 @@ static void altr_i2c_init(struct altr_i2c_dev *idev)
 	/* SCL Low Time */
 	writel(t_low, idev->base + ALTR_I2C_SCL_LOW);
 	/* SDA Hold Time, 300ns */
-	writel(div_u64(300 * clk_mhz, 1000), idev->base + ALTR_I2C_SDA_HOLD);
+	writel(3 * clk_mhz / 10, idev->base + ALTR_I2C_SDA_HOLD);
 
 	/* Mask all master interrupt bits */
 	altr_i2c_int_enable(idev, ALTR_I2C_ALL_IRQ, false);
drivers/i2c/busses/i2c-jz4780.c +2 -34
index 25dcd73acd63..8f0e1f802f2d 100644
@@ -73,25 +73,6 @@
 #define JZ4780_I2C_STA_TFNF		BIT(1)
 #define JZ4780_I2C_STA_ACT		BIT(0)
 
-static const char * const jz4780_i2c_abrt_src[] = {
-	"ABRT_7B_ADDR_NOACK",
-	"ABRT_10ADDR1_NOACK",
-	"ABRT_10ADDR2_NOACK",
-	"ABRT_XDATA_NOACK",
-	"ABRT_GCALL_NOACK",
-	"ABRT_GCALL_READ",
-	"ABRT_HS_ACKD",
-	"SBYTE_ACKDET",
-	"ABRT_HS_NORSTRT",
-	"SBYTE_NORSTRT",
-	"ABRT_10B_RD_NORSTRT",
-	"ABRT_MASTER_DIS",
-	"ARB_LOST",
-	"SLVFLUSH_TXFIFO",
-	"SLV_ARBLOST",
-	"SLVRD_INTX",
-};
-
 #define JZ4780_I2C_INTST_IGC		BIT(11)
 #define JZ4780_I2C_INTST_ISTT		BIT(10)
 #define JZ4780_I2C_INTST_ISTP		BIT(9)
@@ -529,21 +510,8 @@ static irqreturn_t jz4780_i2c_irq(int irqno, void *dev_id)
 
 static void jz4780_i2c_txabrt(struct jz4780_i2c *i2c, int src)
 {
-	int i;
-
-	dev_err(&i2c->adap.dev, "txabrt: 0x%08x\n", src);
-	dev_err(&i2c->adap.dev, "device addr=%x\n",
-		jz4780_i2c_readw(i2c, JZ4780_I2C_TAR));
-	dev_err(&i2c->adap.dev, "send cmd count:%d  %d\n",
-		i2c->cmd, i2c->cmd_buf[i2c->cmd]);
-	dev_err(&i2c->adap.dev, "receive data count:%d  %d\n",
-		i2c->cmd, i2c->data_buf[i2c->cmd]);
-
-	for (i = 0; i < 16; i++) {
-		if (src & BIT(i))
-			dev_dbg(&i2c->adap.dev, "I2C TXABRT[%d]=%s\n",
-				i, jz4780_i2c_abrt_src[i]);
-	}
+	dev_dbg(&i2c->adap.dev, "txabrt: 0x%08x, cmd: %d, send: %d, recv: %d\n",
+		src, i2c->cmd, i2c->cmd_buf[i2c->cmd], i2c->data_buf[i2c->cmd]);
 }
 
 static inline int jz4780_i2c_xfer_read(struct jz4780_i2c *i2c,
drivers/infiniband/hw/hns/hns_roce_device.h +1 -2
index 5617434cbfb4..416341ada172 100644
@@ -423,7 +423,7 @@ struct hns_roce_mr_table {
 struct hns_roce_wq {
 	u64		*wrid;     /* Work request ID */
 	spinlock_t	lock;
-	int		wqe_cnt;  /* WQE num */
+	u32		wqe_cnt;  /* WQE num */
 	int		max_gs;
 	int		offset;
 	int		wqe_shift;	/* WQE size */
@@ -647,7 +647,6 @@ struct hns_roce_qp {
 	u8			sdb_en;
 	u32			doorbell_qpn;
 	u32			sq_signal_bits;
-	u32			sq_next_wqe;
 	struct hns_roce_wq	sq;
 
 	struct ib_umem		*umem;
drivers/infiniband/hw/hns/hns_roce_hw_v1.c +16 -21
index 2a2b2112f886..a31a21433f65 100644
@@ -74,8 +74,8 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 	unsigned long flags = 0;
 	void *wqe = NULL;
 	__le32 doorbell[2];
+	u32 wqe_idx = 0;
 	int nreq = 0;
-	u32 ind = 0;
 	int ret = 0;
 	u8 *smac;
 	int loopback;
@@ -88,7 +88,7 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 	}
 
 	spin_lock_irqsave(&qp->sq.lock, flags);
-	ind = qp->sq_next_wqe;
+
 	for (nreq = 0; wr; ++nreq, wr = wr->next) {
 		if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
 			ret = -ENOMEM;
@@ -96,6 +96,8 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 			goto out;
 		}
 
+		wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1);
+
 		if (unlikely(wr->num_sge > qp->sq.max_gs)) {
 			dev_err(dev, "num_sge=%d > qp->sq.max_gs=%d\n",
 				wr->num_sge, qp->sq.max_gs);
@@ -104,9 +106,8 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 			goto out;
 		}
 
-		wqe = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1));
-		qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] =
-								      wr->wr_id;
+		wqe = get_send_wqe(qp, wqe_idx);
+		qp->sq.wrid[wqe_idx] = wr->wr_id;
 
 		/* Corresponding to the RC and RD type wqe process separately */
 		if (ibqp->qp_type == IB_QPT_GSI) {
@@ -210,7 +211,6 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 				       cpu_to_le32((wr->sg_list[1].addr) >> 32);
 			ud_sq_wqe->l_key1 =
 				       cpu_to_le32(wr->sg_list[1].lkey);
-			ind++;
 		} else if (ibqp->qp_type == IB_QPT_RC) {
 			u32 tmp_len = 0;
 
@@ -308,7 +308,6 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 				ctrl->flag |= cpu_to_le32(wr->num_sge <<
 					      HNS_ROCE_WQE_SGE_NUM_BIT);
 			}
-			ind++;
 		}
 	}
 
@@ -336,7 +335,6 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
 		doorbell[1] = sq_db.u32_8;
 
 		hns_roce_write64_k(doorbell, qp->sq.db_reg_l);
-		qp->sq_next_wqe = ind;
 	}
 
 	spin_unlock_irqrestore(&qp->sq.lock, flags);
@@ -348,12 +346,6 @@ static int hns_roce_v1_post_recv(struct ib_qp *ibqp,
 				 const struct ib_recv_wr *wr,
 				 const struct ib_recv_wr **bad_wr)
 {
-	int ret = 0;
-	int nreq = 0;
-	int ind = 0;
-	int i = 0;
-	u32 reg_val;
-	unsigned long flags = 0;
 	struct hns_roce_rq_wqe_ctrl *ctrl = NULL;
 	struct hns_roce_wqe_data_seg *scat = NULL;
 	struct hns_roce_qp *hr_qp = to_hr_qp(ibqp);
@@ -361,9 +353,14 @@ static int hns_roce_v1_post_recv(struct ib_qp *ibqp,
 	struct device *dev = &hr_dev->pdev->dev;
 	struct hns_roce_rq_db rq_db;
 	__le32 doorbell[2] = {0};
+	unsigned long flags = 0;
+	unsigned int wqe_idx;
+	int ret = 0;
+	int nreq = 0;
+	int i = 0;
+	u32 reg_val;
 
 	spin_lock_irqsave(&hr_qp->rq.lock, flags);
-	ind = hr_qp->rq.head & (hr_qp->rq.wqe_cnt - 1);
 
 	for (nreq = 0; wr; ++nreq, wr = wr->next) {
 		if (hns_roce_wq_overflow(&hr_qp->rq, nreq,
@@ -373,6 +370,8 @@ static int hns_roce_v1_post_recv(struct ib_qp *ibqp,
 			goto out;
 		}
 
+		wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1);
+
 		if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) {
 			dev_err(dev, "rq:num_sge=%d > qp->sq.max_gs=%d\n",
 				wr->num_sge, hr_qp->rq.max_gs);
@@ -381,7 +380,7 @@ static int hns_roce_v1_post_recv(struct ib_qp *ibqp,
 			goto out;
 		}
 
-		ctrl = get_recv_wqe(hr_qp, ind);
+		ctrl = get_recv_wqe(hr_qp, wqe_idx);
 
 		roce_set_field(ctrl->rwqe_byte_12,
 			       RQ_WQE_CTRL_RWQE_BYTE_12_RWQE_SGE_NUM_M,
@@ -393,9 +392,7 @@ static int hns_roce_v1_post_recv(struct ib_qp *ibqp,
 		for (i = 0; i < wr->num_sge; i++)
 			set_data_seg(scat + i, wr->sg_list + i);
 
-		hr_qp->rq.wrid[ind] = wr->wr_id;
-
-		ind = (ind + 1) & (hr_qp->rq.wqe_cnt - 1);
+		hr_qp->rq.wrid[wqe_idx] = wr->wr_id;
 	}
 
 out:
@@ -2701,7 +2698,6 @@ static int hns_roce_v1_m_sqp(struct ib_qp *ibqp, const struct ib_qp_attr *attr,
 		hr_qp->rq.tail = 0;
 		hr_qp->sq.head = 0;
 		hr_qp->sq.tail = 0;
-		hr_qp->sq_next_wqe = 0;
 	}
 
 	kfree(context);
@@ -3315,7 +3311,6 @@ static int hns_roce_v1_m_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr,
 		hr_qp->rq.tail = 0;
 		hr_qp->sq.head = 0;
 		hr_qp->sq.tail = 0;
-		hr_qp->sq_next_wqe = 0;
 	}
 out:
 	kfree(context);
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +41 -39

240 lines not on this page · raw message

drivers/infiniband/sw/siw/siw_cm.c +2 -3
index 3bccfef40e7e..ac86363ce1a2 100644
@@ -1225,10 +1225,9 @@ static void siw_cm_llp_data_ready(struct sock *sk)
 	read_lock(&sk->sk_callback_lock);
 
 	cep = sk_to_cep(sk);
-	if (!cep) {
-		WARN_ON(1);
+	if (!cep)
 		goto out;
-	}
+
 	siw_dbg_cep(cep, "state: %d\n", cep->state);
 
 	switch (cep->state) {
drivers/macintosh/therm_windtunnel.c +31 -21

90 lines not on this page · raw message

drivers/net/bonding/bond_main.c +52 -3

85 lines not on this page · raw message

drivers/net/bonding/bond_options.c +2 -0
index ddb3916d3506..215c10923289 100644
@@ -1398,6 +1398,8 @@ static int bond_option_slaves_set(struct bonding *bond,
 	case '-':
 		slave_dbg(bond->dev, dev, "Releasing interface\n");
 		ret = bond_release(bond->dev, dev);
+		if (!ret)
+			netdev_update_lockdep_key(dev);
 		break;
 
 	default:
drivers/net/dsa/b53/b53_common.c +3 -0
index 6a1ff4d43e3a..38b16efda4a9 100644
@@ -1353,6 +1353,9 @@ void b53_vlan_add(struct dsa_switch *ds, int port,
 
 		b53_get_vlan_entry(dev, vid, vl);
 
+		if (vid == 0 && vid == b53_default_pvid(dev))
+			untagged = true;
+
 		vl->members |= BIT(port);
 		if (untagged && !dsa_is_cpu_port(ds, port))
 			vl->untag |= BIT(port);
drivers/net/ethernet/amazon/ena/ena_com.c +58 -38

144 lines not on this page · raw message

drivers/net/ethernet/amazon/ena/ena_com.h +9 -0
index 0ce37d54ed10..469f298199a7 100644
@@ -44,6 +44,7 @@
 #include <linux/spinlock.h>
 #include <linux/types.h>
 #include <linux/wait.h>
+#include <linux/netdevice.h>
 
 #include "ena_common_defs.h"
 #include "ena_admin_defs.h"
@@ -655,6 +656,14 @@ int ena_com_rss_init(struct ena_com_dev *ena_dev, u16 log_size);
  */
 void ena_com_rss_destroy(struct ena_com_dev *ena_dev);
 
+/* ena_com_get_current_hash_function - Get RSS hash function
+ * @ena_dev: ENA communication layer struct
+ *
+ * Return the current hash function.
+ * @return: 0 or one of the ena_admin_hash_functions values.
+ */
+int ena_com_get_current_hash_function(struct ena_com_dev *ena_dev);
+
 /* ena_com_fill_hash_function - Fill RSS hash function
  * @ena_dev: ENA communication layer struct
  * @func: The hash function (Toeplitz or crc)
drivers/net/ethernet/amazon/ena/ena_ethtool.c +43 -3

83 lines not on this page · raw message

drivers/net/ethernet/amazon/ena/ena_netdev.c +3 -3
index 948583fdcc28..1c1a41bd11da 100644
@@ -3049,8 +3049,8 @@ static void check_for_missing_keep_alive(struct ena_adapter *adapter)
 	if (adapter->keep_alive_timeout == ENA_HW_HINTS_NO_TIMEOUT)
 		return;
 
-	keep_alive_expired = round_jiffies(adapter->last_keep_alive_jiffies +
-					   adapter->keep_alive_timeout);
+	keep_alive_expired = adapter->last_keep_alive_jiffies +
+			     adapter->keep_alive_timeout;
 	if (unlikely(time_is_before_jiffies(keep_alive_expired))) {
 		netif_err(adapter, drv, adapter->netdev,
 			  "Keep alive watchdog timeout.\n");
@@ -3152,7 +3152,7 @@ static void ena_timer_service(struct timer_list *t)
 	}
 
 	/* Reset the timer */
-	mod_timer(&adapter->timer_service, jiffies + HZ);
+	mod_timer(&adapter->timer_service, round_jiffies(jiffies + HZ));
 }
 
 static int ena_calc_max_io_queue_num(struct pci_dev *pdev,
drivers/net/ethernet/amazon/ena/ena_netdev.h +2 -0
index bffd778f2ce3..2fe5eeea6b69 100644
@@ -129,6 +129,8 @@
 
 #define ENA_IO_TXQ_IDX(q)	(2 * (q))
 #define ENA_IO_RXQ_IDX(q)	(2 * (q) + 1)
+#define ENA_IO_TXQ_IDX_TO_COMBINED_IDX(q)	((q) / 2)
+#define ENA_IO_RXQ_IDX_TO_COMBINED_IDX(q)	(((q) - 1) / 2)
 
 #define ENA_MGMNT_IRQ_IDX		0
 #define ENA_IO_IRQ_FIRST_IDX		1
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +1 -1
index d8612131c55e..cc8031ae9aa3 100644
@@ -2020,7 +2020,7 @@ static int xgene_enet_probe(struct platform_device *pdev)
 	int ret;
 
 	ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata),
-				  XGENE_NUM_RX_RING, XGENE_NUM_TX_RING);
+				  XGENE_NUM_TX_RING, XGENE_NUM_RX_RING);
 	if (!ndev)
 		return -ENOMEM;
 
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c +5 -0
index a1f99bef4a68..7b55633d2cb9 100644
@@ -722,6 +722,11 @@ static int aq_ethtool_set_priv_flags(struct net_device *ndev, u32 flags)
 	if (flags & ~AQ_PRIV_FLAGS_MASK)
 		return -EOPNOTSUPP;
 
+	if (hweight32((flags | priv_flags) & AQ_HW_LOOPBACK_MASK) > 1) {
+		netdev_info(ndev, "Can't enable more than one loopback simultaneously\n");
+		return -EINVAL;
+	}
+
 	cfg->priv_flags = flags;
 
 	if ((priv_flags ^ flags) & BIT(AQ_HW_LOOPBACK_DMA_NET)) {
drivers/net/ethernet/aquantia/atlantic/aq_filters.c +1 -1
index 6102251bb909..03ff92bc4a7f 100644
@@ -163,7 +163,7 @@ aq_check_approve_fvlan(struct aq_nic_s *aq_nic,
 	}
 
 	if ((aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) &&
-	    (!test_bit(be16_to_cpu(fsp->h_ext.vlan_tci),
+	    (!test_bit(be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK,
 		       aq_nic->active_vlans))) {
 		netdev_err(aq_nic->ndev,
 			   "ethtool: unknown vlan-id specified");
drivers/net/ethernet/aquantia/atlantic/aq_nic.c +3 -5
index c85e3e29012c..e95f6a6bef73 100644
@@ -533,8 +533,10 @@ unsigned int aq_nic_map_skb(struct aq_nic_s *self, struct sk_buff *skb,
 				     dx_buff->len,
 				     DMA_TO_DEVICE);
 
-	if (unlikely(dma_mapping_error(aq_nic_get_dev(self), dx_buff->pa)))
+	if (unlikely(dma_mapping_error(aq_nic_get_dev(self), dx_buff->pa))) {
+		ret = 0;
 		goto exit;
+	}
 
 	first = dx_buff;
 	dx_buff->len_pkt = skb->len;
@@ -655,10 +657,6 @@ int aq_nic_xmit(struct aq_nic_s *self, struct sk_buff *skb)
 	if (likely(frags)) {
 		err = self->aq_hw_ops->hw_ring_tx_xmit(self->aq_hw,
 						       ring, frags);
-		if (err >= 0) {
-			++ring->stats.tx.packets;
-			ring->stats.tx.bytes += skb->len;
-		}
 	} else {
 		err = NETDEV_TX_BUSY;
 	}
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +8 -5
index 2bb329606794..f74952674084 100644
@@ -359,7 +359,8 @@ static int aq_suspend_common(struct device *dev, bool deep)
 	netif_device_detach(nic->ndev);
 	netif_tx_stop_all_queues(nic->ndev);
 
-	aq_nic_stop(nic);
+	if (netif_running(nic->ndev))
+		aq_nic_stop(nic);
 
 	if (deep) {
 		aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol);
@@ -375,7 +376,7 @@ static int atl_resume_common(struct device *dev, bool deep)
 {
 	struct pci_dev *pdev = to_pci_dev(dev);
 	struct aq_nic_s *nic;
-	int ret;
+	int ret = 0;
 
 	nic = pci_get_drvdata(pdev);
 
@@ -390,9 +391,11 @@ static int atl_resume_common(struct device *dev, bool deep)
 			goto err_exit;
 	}
 
-	ret = aq_nic_start(nic);
-	if (ret)
-		goto err_exit;
+	if (netif_running(nic->ndev)) {
+		ret = aq_nic_start(nic);
+		if (ret)
+			goto err_exit;
+	}
 
 	netif_device_attach(nic->ndev);
 	netif_tx_start_all_queues(nic->ndev);
drivers/net/ethernet/aquantia/atlantic/aq_ring.c +7 -3
index 951d86f8b66e..bae95a618560 100644
@@ -272,9 +272,12 @@ bool aq_ring_tx_clean(struct aq_ring_s *self)
 			}
 		}
 
-		if (unlikely(buff->is_eop))
-			dev_kfree_skb_any(buff->skb);
+		if (unlikely(buff->is_eop)) {
+			++self->stats.rx.packets;
+			self->stats.tx.bytes += buff->skb->len;
 
+			dev_kfree_skb_any(buff->skb);
+		}
 		buff->pa = 0U;
 		buff->eop_index = 0xffffU;
 		self->sw_head = aq_ring_next_dx(self, self->sw_head);
@@ -351,7 +354,8 @@ int aq_ring_rx_clean(struct aq_ring_s *self,
 				err = 0;
 				goto err_exit;
 			}
-			if (buff->is_error || buff->is_cso_err) {
+			if (buff->is_error ||
+			    (buff->is_lro && buff->is_cso_err)) {
 				buff_ = buff;
 				do {
 					next_ = buff_->next,
drivers/net/ethernet/aquantia/atlantic/aq_ring.h +2 -1
index 991e4d31b094..2c96f20f6289 100644
@@ -78,7 +78,8 @@ struct __packed aq_ring_buff_s {
 			u32 is_cleaned:1;
 			u32 is_error:1;
 			u32 is_vlan:1;
-			u32 rsvd3:4;
+			u32 is_lro:1;
+			u32 rsvd3:3;
 			u16 eop_index;
 			u16 rsvd4;
 		};
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +11 -7
index ec041f78d063..fce587aaba33 100644
@@ -823,6 +823,8 @@ static int hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self,
 			}
 		}
 
+		buff->is_lro = !!(HW_ATL_B0_RXD_WB_STAT2_RSCCNT &
+				  rxd_wb->status);
 		if (HW_ATL_B0_RXD_WB_STAT2_EOP & rxd_wb->status) {
 			buff->len = rxd_wb->pkt_len %
 				AQ_CFG_RX_FRAME_MAX;
@@ -835,8 +837,7 @@ static int hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self,
 				rxd_wb->pkt_len > AQ_CFG_RX_FRAME_MAX ?
 				AQ_CFG_RX_FRAME_MAX : rxd_wb->pkt_len;
 
-			if (HW_ATL_B0_RXD_WB_STAT2_RSCCNT &
-				rxd_wb->status) {
+			if (buff->is_lro) {
 				/* LRO */
 				buff->next = rxd_wb->next_desc_ptr;
 				++ring->stats.rx.lro_packets;
@@ -884,13 +885,16 @@ static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self,
 {
 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
 	unsigned int i = 0U;
+	u32 vlan_promisc;
+	u32 l2_promisc;
 
-	hw_atl_rpfl2promiscuous_mode_en_set(self,
-					    IS_FILTER_ENABLED(IFF_PROMISC));
+	l2_promisc = IS_FILTER_ENABLED(IFF_PROMISC) ||
+		     !!(cfg->priv_flags & BIT(AQ_HW_LOOPBACK_DMA_NET));
+	vlan_promisc = l2_promisc || cfg->is_vlan_force_promisc;
 
-	hw_atl_rpf_vlan_prom_mode_en_set(self,
-				     IS_FILTER_ENABLED(IFF_PROMISC) ||
-				     cfg->is_vlan_force_promisc);
+	hw_atl_rpfl2promiscuous_mode_en_set(self, l2_promisc);
+
+	hw_atl_rpf_vlan_prom_mode_en_set(self, vlan_promisc);
 
 	hw_atl_rpfl2multicast_flr_en_set(self,
 					 IS_FILTER_ENABLED(IFF_ALLMULTI) &&
drivers/net/ethernet/broadcom/bnxt/bnxt.c +10 -2
index 9d62200b6c33..cc86038b1d96 100644
@@ -11775,6 +11775,14 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (version_printed++ == 0)
 		pr_info("%s", version);
 
+	/* Clear any pending DMA transactions from crash kernel
+	 * while loading driver in capture kernel.
+	 */
+	if (is_kdump_kernel()) {
+		pci_clear_master(pdev);
+		pcie_flr(pdev);
+	}
+
 	max_irqs = bnxt_get_max_irq(pdev);
 	dev = alloc_etherdev_mq(sizeof(*bp), max_irqs);
 	if (!dev)
@@ -11972,10 +11980,10 @@ static void bnxt_shutdown(struct pci_dev *pdev)
 		dev_close(dev);
 
 	bnxt_ulp_shutdown(bp);
+	bnxt_clear_int_mode(bp);
+	pci_disable_device(pdev);
 
 	if (system_state == SYSTEM_POWER_OFF) {
-		bnxt_clear_int_mode(bp);
-		pci_disable_device(pdev);
 		pci_wake_from_d3(pdev, bp->wol);
 		pci_set_power_state(pdev, PCI_D3hot);
 	}
drivers/net/ethernet/cadence/macb.h +1 -0
index 19fe4f4867c7..c16cc1cb5874 100644
@@ -645,6 +645,7 @@
 #define MACB_CAPS_GEM_HAS_PTP			0x00000040
 #define MACB_CAPS_BD_RD_PREFETCH		0x00000080
 #define MACB_CAPS_NEEDS_RSTONUBR		0x00000100
+#define MACB_CAPS_MACB_IS_EMAC			0x08000000
 #define MACB_CAPS_FIFO_MODE			0x10000000
 #define MACB_CAPS_GIGABIT_MODE_AVAILABLE	0x20000000
 #define MACB_CAPS_SG_DISABLED			0x40000000
drivers/net/ethernet/cadence/macb_main.c +37 -29

122 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +16 -6
index 13dbd249f35f..5d74f5a60102 100644
@@ -6106,6 +6106,9 @@ static int hclge_get_all_rules(struct hnae3_handle *handle,
 static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys,
 				     struct hclge_fd_rule_tuples *tuples)
 {
+#define flow_ip6_src fkeys->addrs.v6addrs.src.in6_u.u6_addr32
+#define flow_ip6_dst fkeys->addrs.v6addrs.dst.in6_u.u6_addr32
+
 	tuples->ether_proto = be16_to_cpu(fkeys->basic.n_proto);
 	tuples->ip_proto = fkeys->basic.ip_proto;
 	tuples->dst_port = be16_to_cpu(fkeys->ports.dst);
@@ -6114,12 +6117,12 @@ static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys,
 		tuples->src_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.src);
 		tuples->dst_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.dst);
 	} else {
-		memcpy(tuples->src_ip,
-		       fkeys->addrs.v6addrs.src.in6_u.u6_addr32,
-		       sizeof(tuples->src_ip));
-		memcpy(tuples->dst_ip,
-		       fkeys->addrs.v6addrs.dst.in6_u.u6_addr32,
-		       sizeof(tuples->dst_ip));
+		int i;
+
+		for (i = 0; i < IPV6_SIZE; i++) {
+			tuples->src_ip[i] = be32_to_cpu(flow_ip6_src[i]);
+			tuples->dst_ip[i] = be32_to_cpu(flow_ip6_dst[i]);
+		}
 	}
 }
 
@@ -9821,6 +9824,13 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev)
 		return ret;
 	}
 
+	ret = init_mgr_tbl(hdev);
+	if (ret) {
+		dev_err(&pdev->dev,
+			"failed to reinit manager table, ret = %d\n", ret);
+		return ret;
+	}
+
 	ret = hclge_init_fd_config(hdev);
 	if (ret) {
 		dev_err(&pdev->dev, "fd table init fail, ret=%d\n", ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +1 -1
index 180224eab1ca..28db13253a5e 100644
@@ -566,7 +566,7 @@ static void hclge_tm_vport_tc_info_update(struct hclge_vport *vport)
 	 */
 	kinfo->num_tc = vport->vport_id ? 1 :
 			min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc);
-	vport->qs_offset = (vport->vport_id ? hdev->tm_info.num_tc : 0) +
+	vport->qs_offset = (vport->vport_id ? HNAE3_MAX_TC : 0) +
 				(vport->vport_id ? (vport->vport_id - 1) : 0);
 
 	max_rss_size = min_t(u16, hdev->rss_size_max,
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +2 -2
index 69523ac85639..56b9e445732b 100644
@@ -2362,7 +2362,7 @@ static int i40e_vc_enable_queues_msg(struct i40e_vf *vf, u8 *msg)
 		goto error_param;
 	}
 
-	if (i40e_vc_validate_vqs_bitmaps(vqs)) {
+	if (!i40e_vc_validate_vqs_bitmaps(vqs)) {
 		aq_ret = I40E_ERR_PARAM;
 		goto error_param;
 	}
@@ -2424,7 +2424,7 @@ static int i40e_vc_disable_queues_msg(struct i40e_vf *vf, u8 *msg)
 		goto error_param;
 	}
 
-	if (i40e_vc_validate_vqs_bitmaps(vqs)) {
+	if (!i40e_vc_validate_vqs_bitmaps(vqs)) {
 		aq_ret = I40E_ERR_PARAM;
 		goto error_param;
 	}
drivers/net/ethernet/intel/ice/ice_base.c +6 -6
index 77d6a0291e97..6939c14858b2 100644
@@ -320,7 +320,7 @@ int ice_setup_rx_ctx(struct ice_ring *ring)
 			if (err)
 				return err;
 
-			dev_info(&vsi->back->pdev->dev, "Registered XDP mem model MEM_TYPE_ZERO_COPY on Rx ring %d\n",
+			dev_info(ice_pf_to_dev(vsi->back), "Registered XDP mem model MEM_TYPE_ZERO_COPY on Rx ring %d\n",
 				 ring->q_index);
 		} else {
 			if (!xdp_rxq_info_is_reg(&ring->xdp_rxq))
@@ -399,7 +399,7 @@ int ice_setup_rx_ctx(struct ice_ring *ring)
 	/* Absolute queue number out of 2K needs to be passed */
 	err = ice_write_rxq_ctx(hw, &rlan_ctx, pf_q);
 	if (err) {
-		dev_err(&vsi->back->pdev->dev,
+		dev_err(ice_pf_to_dev(vsi->back),
 			"Failed to set LAN Rx queue context for absolute Rx queue %d error: %d\n",
 			pf_q, err);
 		return -EIO;
@@ -422,7 +422,7 @@ int ice_setup_rx_ctx(struct ice_ring *ring)
 	      ice_alloc_rx_bufs_slow_zc(ring, ICE_DESC_UNUSED(ring)) :
 	      ice_alloc_rx_bufs(ring, ICE_DESC_UNUSED(ring));
 	if (err)
-		dev_info(&vsi->back->pdev->dev,
+		dev_info(ice_pf_to_dev(vsi->back),
 			 "Failed allocate some buffers on %sRx ring %d (pf_q %d)\n",
 			 ring->xsk_umem ? "UMEM enabled " : "",
 			 ring->q_index, pf_q);
@@ -817,13 +817,13 @@ ice_vsi_stop_tx_ring(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src,
 	 * queues at the hardware level anyway.
 	 */
 	if (status == ICE_ERR_RESET_ONGOING) {
-		dev_dbg(&vsi->back->pdev->dev,
+		dev_dbg(ice_pf_to_dev(vsi->back),
 			"Reset in progress. LAN Tx queues already disabled\n");
 	} else if (status == ICE_ERR_DOES_NOT_EXIST) {
-		dev_dbg(&vsi->back->pdev->dev,
+		dev_dbg(ice_pf_to_dev(vsi->back),
 			"LAN Tx queues do not exist, nothing to disable\n");
 	} else if (status) {
-		dev_err(&vsi->back->pdev->dev,
+		dev_err(ice_pf_to_dev(vsi->back),
 			"Failed to disable LAN Tx queues, error: %d\n", status);
 		return -ENODEV;
 	}
drivers/net/ethernet/intel/ice/ice_common.c +12 -5
index fb1d930470c7..cb437a448305 100644
@@ -937,7 +937,7 @@ void ice_deinit_hw(struct ice_hw *hw)
  */
 enum ice_status ice_check_reset(struct ice_hw *hw)
 {
-	u32 cnt, reg = 0, grst_delay;
+	u32 cnt, reg = 0, grst_delay, uld_mask;
 
 	/* Poll for Device Active state in case a recent CORER, GLOBR,
 	 * or EMPR has occurred. The grst delay value is in 100ms units.
@@ -959,13 +959,20 @@ enum ice_status ice_check_reset(struct ice_hw *hw)
 		return ICE_ERR_RESET_FAILED;
 	}
 
-#define ICE_RESET_DONE_MASK	(GLNVM_ULD_CORER_DONE_M | \
-				 GLNVM_ULD_GLOBR_DONE_M)
+#define ICE_RESET_DONE_MASK	(GLNVM_ULD_PCIER_DONE_M |\
+				 GLNVM_ULD_PCIER_DONE_1_M |\
+				 GLNVM_ULD_CORER_DONE_M |\
+				 GLNVM_ULD_GLOBR_DONE_M |\
+				 GLNVM_ULD_POR_DONE_M |\
+				 GLNVM_ULD_POR_DONE_1_M |\
+				 GLNVM_ULD_PCIER_DONE_2_M)
+
+	uld_mask = ICE_RESET_DONE_MASK;
 
 	/* Device is Active; check Global Reset processes are done */
 	for (cnt = 0; cnt < ICE_PF_RESET_WAIT_COUNT; cnt++) {
-		reg = rd32(hw, GLNVM_ULD) & ICE_RESET_DONE_MASK;
-		if (reg == ICE_RESET_DONE_MASK) {
+		reg = rd32(hw, GLNVM_ULD) & uld_mask;
+		if (reg == uld_mask) {
 			ice_debug(hw, ICE_DBG_INIT,
 				  "Global reset processes done. %d\n", cnt);
 			break;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c +6 -6
index d870c1aedc17..265cf69b321b 100644
@@ -713,13 +713,13 @@ static int ice_dcbnl_delapp(struct net_device *netdev, struct dcb_app *app)
 		return -EINVAL;
 
 	mutex_lock(&pf->tc_mutex);
-	ret = dcb_ieee_delapp(netdev, app);
-	if (ret)
-		goto delapp_out;
-
 	old_cfg = &pf->hw.port_info->local_dcbx_cfg;
 
-	if (old_cfg->numapps == 1)
+	if (old_cfg->numapps <= 1)
+		goto delapp_out;
+
+	ret = dcb_ieee_delapp(netdev, app);
+	if (ret)
 		goto delapp_out;
 
 	new_cfg = &pf->hw.port_info->desired_dcbx_cfg;
@@ -882,7 +882,7 @@ ice_dcbnl_vsi_del_app(struct ice_vsi *vsi,
 	sapp.protocol = app->prot_id;
 	sapp.priority = app->priority;
 	err = ice_dcbnl_delapp(vsi->netdev, &sapp);
-	dev_dbg(&vsi->back->pdev->dev,
+	dev_dbg(ice_pf_to_dev(vsi->back),
 		"Deleting app for VSI idx=%d err=%d sel=%d proto=0x%x, prio=%d\n",
 		vsi->idx, err, app->selector, app->prot_id, app->priority);
 }
drivers/net/ethernet/intel/ice/ice_ethtool.c +14 -3
index 9ebd93e79aeb..9bd166e3dff3 100644
@@ -165,13 +165,24 @@ static void
 ice_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 {
 	struct ice_netdev_priv *np = netdev_priv(netdev);
+	u8 oem_ver, oem_patch, nvm_ver_hi, nvm_ver_lo;
 	struct ice_vsi *vsi = np->vsi;
 	struct ice_pf *pf = vsi->back;
+	struct ice_hw *hw = &pf->hw;
+	u16 oem_build;
 
 	strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver));
 	strlcpy(drvinfo->version, ice_drv_ver, sizeof(drvinfo->version));
-	strlcpy(drvinfo->fw_version, ice_nvm_version_str(&pf->hw),
-		sizeof(drvinfo->fw_version));
+
+	/* Display NVM version (from which the firmware version can be
+	 * determined) which contains more pertinent information.
+	 */
+	ice_get_nvm_version(hw, &oem_ver, &oem_build, &oem_patch,
+			    &nvm_ver_hi, &nvm_ver_lo);
+	snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
+		 "%x.%02x 0x%x %d.%d.%d", nvm_ver_hi, nvm_ver_lo,
+		 hw->nvm.eetrack, oem_ver, oem_build, oem_patch);
+
 	strlcpy(drvinfo->bus_info, pci_name(pf->pdev),
 		sizeof(drvinfo->bus_info));
 	drvinfo->n_priv_flags = ICE_PRIV_FLAG_ARRAY_SIZE;
@@ -1043,7 +1054,7 @@ ice_set_fecparam(struct net_device *netdev, struct ethtool_fecparam *fecparam)
 		fec = ICE_FEC_NONE;
 		break;
 	default:
-		dev_warn(&vsi->back->pdev->dev, "Unsupported FEC mode: %d\n",
+		dev_warn(ice_pf_to_dev(vsi->back), "Unsupported FEC mode: %d\n",
 			 fecparam->fec);
 		return -EINVAL;
 	}
drivers/net/ethernet/intel/ice/ice_hw_autogen.h +6 -0
index e8f32350fed2..6f4a70fa3903 100644
@@ -276,8 +276,14 @@
 #define GLNVM_GENS_SR_SIZE_S			5
 #define GLNVM_GENS_SR_SIZE_M			ICE_M(0x7, 5)
 #define GLNVM_ULD				0x000B6008
+#define GLNVM_ULD_PCIER_DONE_M			BIT(0)
+#define GLNVM_ULD_PCIER_DONE_1_M		BIT(1)
 #define GLNVM_ULD_CORER_DONE_M			BIT(3)
 #define GLNVM_ULD_GLOBR_DONE_M			BIT(4)
+#define GLNVM_ULD_POR_DONE_M			BIT(5)
+#define GLNVM_ULD_POR_DONE_1_M			BIT(8)
+#define GLNVM_ULD_PCIER_DONE_2_M		BIT(9)
+#define GLNVM_ULD_PE_DONE_M			BIT(10)
 #define GLPCI_CNF2				0x000BE004
 #define GLPCI_CNF2_CACHELINE_SIZE_M		BIT(1)
 #define PF_FUNC_RID				0x0009E880
drivers/net/ethernet/intel/ice/ice_lib.c +7 -26
index e7449248fab4..b43bb51f6067 100644
@@ -116,7 +116,7 @@ static void ice_vsi_set_num_desc(struct ice_vsi *vsi)
 		vsi->num_tx_desc = ICE_DFLT_NUM_TX_DESC;
 		break;
 	default:
-		dev_dbg(&vsi->back->pdev->dev,
+		dev_dbg(ice_pf_to_dev(vsi->back),
 			"Not setting number of Tx/Rx descriptors for VSI type %d\n",
 			vsi->type);
 		break;
@@ -697,7 +697,7 @@ static void ice_vsi_setup_q_map(struct ice_vsi *vsi, struct ice_vsi_ctx *ctxt)
 	vsi->num_txq = tx_count;
 
 	if (vsi->type == ICE_VSI_VF && vsi->num_txq != vsi->num_rxq) {
-		dev_dbg(&vsi->back->pdev->dev, "VF VSI should have same number of Tx and Rx queues. Hence making them equal\n");
+		dev_dbg(ice_pf_to_dev(vsi->back), "VF VSI should have same number of Tx and Rx queues. Hence making them equal\n");
 		/* since there is a chance that num_rxq could have been changed
 		 * in the above for loop, make num_txq equal to num_rxq.
 		 */
@@ -1306,7 +1306,7 @@ int ice_vsi_cfg_rxqs(struct ice_vsi *vsi)
 
 		err = ice_setup_rx_ctx(vsi->rx_rings[i]);
 		if (err) {
-			dev_err(&vsi->back->pdev->dev,
+			dev_err(ice_pf_to_dev(vsi->back),
 				"ice_setup_rx_ctx failed for RxQ %d, err %d\n",
 				i, err);
 			return err;
@@ -1476,7 +1476,7 @@ int ice_vsi_manage_vlan_insertion(struct ice_vsi *vsi)
 
 	status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
 	if (status) {
-		dev_err(&vsi->back->pdev->dev, "update VSI for VLAN insert failed, err %d aq_err %d\n",
+		dev_err(ice_pf_to_dev(vsi->back), "update VSI for VLAN insert failed, err %d aq_err %d\n",
 			status, hw->adminq.sq_last_status);
 		ret = -EIO;
 		goto out;
@@ -1522,7 +1522,7 @@ int ice_vsi_manage_vlan_stripping(struct ice_vsi *vsi, bool ena)
 
 	status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
 	if (status) {
-		dev_err(&vsi->back->pdev->dev, "update VSI for VLAN strip failed, ena = %d err %d aq_err %d\n",
+		dev_err(ice_pf_to_dev(vsi->back), "update VSI for VLAN strip failed, ena = %d err %d aq_err %d\n",
 			ena, status, hw->adminq.sq_last_status);
 		ret = -EIO;
 		goto out;
@@ -1696,7 +1696,7 @@ ice_vsi_set_q_vectors_reg_idx(struct ice_vsi *vsi)
 		struct ice_q_vector *q_vector = vsi->q_vectors[i];
 
 		if (!q_vector) {
-			dev_err(&vsi->back->pdev->dev,
+			dev_err(ice_pf_to_dev(vsi->back),
 				"Failed to set reg_idx on q_vector %d VSI %d\n",
 				i, vsi->vsi_num);
 			goto clear_reg_idx;
@@ -2647,25 +2647,6 @@ int ice_vsi_cfg_tc(struct ice_vsi *vsi, u8 ena_tc)
 }
 #endif /* CONFIG_DCB */
 
-/**
- * ice_nvm_version_str - format the NVM version strings
- * @hw: ptr to the hardware info
- */
-char *ice_nvm_version_str(struct ice_hw *hw)
-{
-	u8 oem_ver, oem_patch, ver_hi, ver_lo;
-	static char buf[ICE_NVM_VER_LEN];
-	u16 oem_build;
-
-	ice_get_nvm_version(hw, &oem_ver, &oem_build, &oem_patch, &ver_hi,
-			    &ver_lo);
-
-	snprintf(buf, sizeof(buf), "%x.%02x 0x%x %d.%d.%d", ver_hi, ver_lo,
-		 hw->nvm.eetrack, oem_ver, oem_build, oem_patch);
-
-	return buf;
-}
-
 /**
  * ice_update_ring_stats - Update ring statistics
  * @ring: ring to update
@@ -2737,6 +2718,6 @@ ice_vsi_cfg_mac_fltr(struct ice_vsi *vsi, const u8 *macaddr, bool set)
 		status = ice_remove_mac(&vsi->back->hw, &tmp_add_list);
 
 cfg_mac_fltr_exit:
-	ice_free_fltr_list(&vsi->back->pdev->dev, &tmp_add_list);
+	ice_free_fltr_list(ice_pf_to_dev(vsi->back), &tmp_add_list);
 	return status;
 }
drivers/net/ethernet/intel/ice/ice_lib.h +0 -2
index 6e31e30aba39..0d2b1119c0e3 100644
@@ -97,8 +97,6 @@ void ice_vsi_cfg_frame_size(struct ice_vsi *vsi);
 
 u32 ice_intrl_usec_to_reg(u8 intrl, u8 gran);
 
-char *ice_nvm_version_str(struct ice_hw *hw);
-
 enum ice_status
 ice_vsi_cfg_mac_fltr(struct ice_vsi *vsi, const u8 *macaddr, bool set);
 
drivers/net/ethernet/intel/ice/ice_main.c +9 -14
index 69bff085acf7..7f71f06fa819 100644
@@ -269,7 +269,7 @@ static int ice_cfg_promisc(struct ice_vsi *vsi, u8 promisc_m, bool set_promisc)
  */
 static int ice_vsi_sync_fltr(struct ice_vsi *vsi)
 {
-	struct device *dev = &vsi->back->pdev->dev;
+	struct device *dev = ice_pf_to_dev(vsi->back);
 	struct net_device *netdev = vsi->netdev;
 	bool promisc_forced_on = false;
 	struct ice_pf *pf = vsi->back;
@@ -1235,7 +1235,7 @@ static void ice_handle_mdd_event(struct ice_pf *pf)
 		u16 queue = ((reg & GL_MDET_TX_TCLAN_QNUM_M) >>
 				GL_MDET_TX_TCLAN_QNUM_S);
 
-		if (netif_msg_rx_err(pf))
+		if (netif_msg_tx_err(pf))
 			dev_info(dev, "Malicious Driver Detection event %d on TX queue %d PF# %d VF# %d\n",
 				 event, queue, pf_num, vf_num);
 		wr32(hw, GL_MDET_TX_TCLAN, 0xffffffff);
@@ -1364,7 +1364,7 @@ static int ice_force_phys_link_state(struct ice_vsi *vsi, bool link_up)
 	if (vsi->type != ICE_VSI_PF)
 		return 0;
 
-	dev = &vsi->back->pdev->dev;
+	dev = ice_pf_to_dev(vsi->back);
 
 	pi = vsi->port_info;
 
@@ -1682,7 +1682,7 @@ static int ice_vsi_req_irq_msix(struct ice_vsi *vsi, char *basename)
  */
 static int ice_xdp_alloc_setup_rings(struct ice_vsi *vsi)
 {
-	struct device *dev = &vsi->back->pdev->dev;
+	struct device *dev = ice_pf_to_dev(vsi->back);
 	int i;
 
 	for (i = 0; i < vsi->num_xdp_txq; i++) {
@@ -3241,11 +3241,6 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent)
 		goto err_exit_unroll;
 	}
 
-	dev_info(dev, "firmware %d.%d.%d api %d.%d.%d nvm %s build 0x%08x\n",
-		 hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch,
-		 hw->api_maj_ver, hw->api_min_ver, hw->api_patch,
-		 ice_nvm_version_str(hw), hw->fw_build);
-
 	ice_request_fw(pf);
 
 	/* if ice_request_fw fails, ICE_FLAG_ADV_FEATURES bit won't be
@@ -3863,14 +3858,14 @@ ice_set_features(struct net_device *netdev, netdev_features_t features)
 
 	/* Don't set any netdev advanced features with device in Safe Mode */
 	if (ice_is_safe_mode(vsi->back)) {
-		dev_err(&vsi->back->pdev->dev,
+		dev_err(ice_pf_to_dev(vsi->back),
 			"Device is in Safe Mode - not enabling advanced netdev features\n");
 		return ret;
 	}
 
 	/* Do not change setting during reset */
 	if (ice_is_reset_in_progress(pf->state)) {
-		dev_err(&vsi->back->pdev->dev,
+		dev_err(ice_pf_to_dev(vsi->back),
 			"Device is resetting, changing advanced netdev features temporarily unavailable.\n");
 		return -EBUSY;
 	}
@@ -4413,7 +4408,7 @@ int ice_vsi_setup_tx_rings(struct ice_vsi *vsi)
 	int i, err = 0;
 
 	if (!vsi->num_txq) {
-		dev_err(&vsi->back->pdev->dev, "VSI %d has 0 Tx queues\n",
+		dev_err(ice_pf_to_dev(vsi->back), "VSI %d has 0 Tx queues\n",
 			vsi->vsi_num);
 		return -EINVAL;
 	}
@@ -4444,7 +4439,7 @@ int ice_vsi_setup_rx_rings(struct ice_vsi *vsi)
 	int i, err = 0;
 
 	if (!vsi->num_rxq) {
-		dev_err(&vsi->back->pdev->dev, "VSI %d has 0 Rx queues\n",
+		dev_err(ice_pf_to_dev(vsi->back), "VSI %d has 0 Rx queues\n",
 			vsi->vsi_num);
 		return -EINVAL;
 	}
@@ -4973,7 +4968,7 @@ static int ice_vsi_update_bridge_mode(struct ice_vsi *vsi, u16 bmode)
 
 	status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
 	if (status) {
-		dev_err(&vsi->back->pdev->dev, "update VSI for bridge mode failed, bmode = %d err %d aq_err %d\n",
+		dev_err(ice_pf_to_dev(vsi->back), "update VSI for bridge mode failed, bmode = %d err %d aq_err %d\n",
 			bmode, status, hw->adminq.sq_last_status);
 		ret = -EIO;
 		goto out;
drivers/net/ethernet/intel/ice/ice_txrx_lib.c +1 -1
index 35bbc4ff603c..6da048a6ca7c 100644
@@ -10,7 +10,7 @@
  */
 void ice_release_rx_desc(struct ice_ring *rx_ring, u32 val)
 {
-	u16 prev_ntu = rx_ring->next_to_use;
+	u16 prev_ntu = rx_ring->next_to_use & ~0x7;
 
 	rx_ring->next_to_use = val;
 
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +4 -4
index edb374296d1f..e2114f24a19e 100644
@@ -508,7 +508,7 @@ static int ice_vsi_manage_pvid(struct ice_vsi *vsi, u16 vid, bool enable)
 
 	status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);
 	if (status) {
-		dev_info(&vsi->back->pdev->dev, "update VSI for port VLAN failed, err %d aq_err %d\n",
+		dev_info(ice_pf_to_dev(vsi->back), "update VSI for port VLAN failed, err %d aq_err %d\n",
 			 status, hw->adminq.sq_last_status);
 		ret = -EIO;
 		goto out;
@@ -2019,7 +2019,7 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg)
 			continue;
 
 		if (ice_vsi_ctrl_rx_ring(vsi, true, vf_q_id)) {
-			dev_err(&vsi->back->pdev->dev,
+			dev_err(ice_pf_to_dev(vsi->back),
 				"Failed to enable Rx ring %d on VSI %d\n",
 				vf_q_id, vsi->vsi_num);
 			v_ret = VIRTCHNL_STATUS_ERR_PARAM;
@@ -2122,7 +2122,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
 
 			if (ice_vsi_stop_tx_ring(vsi, ICE_NO_RESET, vf->vf_id,
 						 ring, &txq_meta)) {
-				dev_err(&vsi->back->pdev->dev,
+				dev_err(ice_pf_to_dev(vsi->back),
 					"Failed to stop Tx ring %d on VSI %d\n",
 					vf_q_id, vsi->vsi_num);
 				v_ret = VIRTCHNL_STATUS_ERR_PARAM;
@@ -2149,7 +2149,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
 				continue;
 
 			if (ice_vsi_ctrl_rx_ring(vsi, false, vf_q_id)) {
-				dev_err(&vsi->back->pdev->dev,
+				dev_err(ice_pf_to_dev(vsi->back),
 					"Failed to stop Rx ring %d on VSI %d\n",
 					vf_q_id, vsi->vsi_num);
 				v_ret = VIRTCHNL_STATUS_ERR_PARAM;
drivers/net/ethernet/mscc/ocelot_board.c +8 -0
index 2da8eee27e98..ecbd4be145b8 100644
@@ -114,6 +114,14 @@ static irqreturn_t ocelot_xtr_irq_handler(int irq, void *arg)
 		if (err != 4)
 			break;
 
+		/* At this point the IFH was read correctly, so it is safe to
+		 * presume that there is no error. The err needs to be reset
+		 * otherwise a frame could come in CPU queue between the while
+		 * condition and the check for error later on. And in that case
+		 * the new frame is just removed and not processed.
+		 */
+		err = 0;
+
 		ocelot_parse_ifh(ifh, &info);
 
 		ocelot_port = ocelot->ports[info.port];
drivers/net/ethernet/pensando/ionic/ionic_dev.c +7 -4
index 5f9d2ec70446..61c06fbe10db 100644
@@ -103,7 +103,7 @@ int ionic_heartbeat_check(struct ionic *ionic)
 {
 	struct ionic_dev *idev = &ionic->idev;
 	unsigned long hb_time;
-	u32 fw_status;
+	u8 fw_status;
 	u32 hb;
 
 	/* wait a little more than one second before testing again */
@@ -111,9 +111,12 @@ int ionic_heartbeat_check(struct ionic *ionic)
 	if (time_before(hb_time, (idev->last_hb_time + ionic->watchdog_period)))
 		return 0;
 
-	/* firmware is useful only if fw_status is non-zero */
-	fw_status = ioread32(&idev->dev_info_regs->fw_status);
-	if (!fw_status)
+	/* firmware is useful only if the running bit is set and
+	 * fw_status != 0xff (bad PCI read)
+	 */
+	fw_status = ioread8(&idev->dev_info_regs->fw_status);
+	if (fw_status == 0xff ||
+	    !(fw_status & IONIC_FW_STS_F_RUNNING))
 		return -ENXIO;
 
 	/* early FW has no heartbeat, else FW will return non-zero */
drivers/net/ethernet/pensando/ionic/ionic_if.h +1 -0
index ed23a05f2642..d5e8b4e2a96e 100644
@@ -2348,6 +2348,7 @@ union ionic_dev_info_regs {
 		u8     version;
 		u8     asic_type;
 		u8     asic_rev;
+#define IONIC_FW_STS_F_RUNNING	0x1
 		u8     fw_status;
 		u32    fw_heartbeat;
 		char   fw_version[IONIC_DEVINFO_FWVERS_BUFLEN];
drivers/net/ethernet/qlogic/qede/qede.h +2 -0
index e8a1b27db84d..234c6f30effb 100644
@@ -163,6 +163,8 @@ struct qede_rdma_dev {
 	struct list_head entry;
 	struct list_head rdma_event_list;
 	struct workqueue_struct *rdma_wq;
+	struct kref refcnt;
+	struct completion event_comp;
 	bool exp_recovery;
 };
 
drivers/net/ethernet/qlogic/qede/qede_rdma.c +28 -1
index ffabc2d2f082..2d873ae8a234 100644
@@ -59,6 +59,9 @@ static void _qede_rdma_dev_add(struct qede_dev *edev)
 static int qede_rdma_create_wq(struct qede_dev *edev)
 {
 	INIT_LIST_HEAD(&edev->rdma_info.rdma_event_list);
+	kref_init(&edev->rdma_info.refcnt);
+	init_completion(&edev->rdma_info.event_comp);
+
 	edev->rdma_info.rdma_wq = create_singlethread_workqueue("rdma_wq");
 	if (!edev->rdma_info.rdma_wq) {
 		DP_NOTICE(edev, "qedr: Could not create workqueue\n");
@@ -83,8 +86,23 @@ static void qede_rdma_cleanup_event(struct qede_dev *edev)
 	}
 }
 
+static void qede_rdma_complete_event(struct kref *ref)
+{
+	struct qede_rdma_dev *rdma_dev =
+		container_of(ref, struct qede_rdma_dev, refcnt);
+
+	/* no more events will be added after this */
+	complete(&rdma_dev->event_comp);
+}
+
 static void qede_rdma_destroy_wq(struct qede_dev *edev)
 {
+	/* Avoid race with add_event flow, make sure it finishes before
+	 * we start accessing the list and cleaning up the work
+	 */
+	kref_put(&edev->rdma_info.refcnt, qede_rdma_complete_event);
+	wait_for_completion(&edev->rdma_info.event_comp);
+
 	qede_rdma_cleanup_event(edev);
 	destroy_workqueue(edev->rdma_info.rdma_wq);
 }
@@ -310,15 +328,24 @@ static void qede_rdma_add_event(struct qede_dev *edev,
 	if (!edev->rdma_info.qedr_dev)
 		return;
 
+	/* We don't want the cleanup flow to start while we're allocating and
+	 * scheduling the work
+	 */
+	if (!kref_get_unless_zero(&edev->rdma_info.refcnt))
+		return; /* already being destroyed */
+
 	event_node = qede_rdma_get_free_event_node(edev);
 	if (!event_node)
-		return;
+		goto out;
 
 	event_node->event = event;
 	event_node->ptr = edev;
 
 	INIT_WORK(&event_node->work, qede_rdma_handle_event);
 	queue_work(edev->rdma_info.rdma_wq, &event_node->work);
+
+out:
+	kref_put(&edev->rdma_info.refcnt, qede_rdma_complete_event);
 }
 
 void qede_rdma_dev_event_open(struct qede_dev *edev)
drivers/net/hyperv/netvsc.c +1 -1
index eab83e71567a..6c0732fc8c25 100644
@@ -99,7 +99,7 @@ static struct netvsc_device *alloc_net_device(void)
 
 	init_waitqueue_head(&net_device->wait_drain);
 	net_device->destroy = false;
-	net_device->tx_disable = false;
+	net_device->tx_disable = true;
 
 	net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT;
 	net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT;
drivers/net/hyperv/netvsc_drv.c +3 -0
index f3f9eb8a402a..ee1ad7ae7555 100644
@@ -977,6 +977,7 @@ static int netvsc_attach(struct net_device *ndev,
 	}
 
 	/* In any case device is now ready */
+	nvdev->tx_disable = false;
 	netif_device_attach(ndev);
 
 	/* Note: enable and attach happen when sub-channels setup */
@@ -2354,6 +2355,8 @@ static int netvsc_probe(struct hv_device *dev,
 	else
 		net->max_mtu = ETH_DATA_LEN;
 
+	nvdev->tx_disable = false;
+
 	ret = register_netdevice(net);
 	if (ret != 0) {
 		pr_err("Unable to register netdev.\n");
drivers/net/phy/mdio-bcm-iproc.c +20 -0
index 7e9975d25066..f1ded03f0229 100644
@@ -178,6 +178,23 @@ static int iproc_mdio_remove(struct platform_device *pdev)
 	return 0;
 }
 
+#ifdef CONFIG_PM_SLEEP
+int iproc_mdio_resume(struct device *dev)
+{
+	struct platform_device *pdev = to_platform_device(dev);
+	struct iproc_mdio_priv *priv = platform_get_drvdata(pdev);
+
+	/* restore the mii clock configuration */
+	iproc_mdio_config_clk(priv->base);
+
+	return 0;
+}
+
+static const struct dev_pm_ops iproc_mdio_pm_ops = {
+	.resume = iproc_mdio_resume
+};
+#endif /* CONFIG_PM_SLEEP */
+
 static const struct of_device_id iproc_mdio_of_match[] = {
 	{ .compatible = "brcm,iproc-mdio", },
 	{ /* sentinel */ },
@@ -188,6 +205,9 @@ static struct platform_driver iproc_mdio_driver = {
 	.driver = {
 		.name = "iproc-mdio",
 		.of_match_table = iproc_mdio_of_match,
+#ifdef CONFIG_PM_SLEEP
+		.pm = &iproc_mdio_pm_ops,
+#endif
 	},
 	.probe = iproc_mdio_probe,
 	.remove = iproc_mdio_remove,
drivers/net/usb/qmi_wwan.c +16 -27

88 lines not on this page · raw message

drivers/net/wireless/marvell/mwifiex/main.h +0 -13
index 547ff3c578ee..fa5634af40f7 100644
@@ -1295,19 +1295,6 @@ mwifiex_copy_rates(u8 *dest, u32 pos, u8 *src, int len)
 	return pos;
 }
 
-/* This function return interface number with the same bss_type.
- */
-static inline u8
-mwifiex_get_intf_num(struct mwifiex_adapter *adapter, u8 bss_type)
-{
-	u8 i, num = 0;
-
-	for (i = 0; i < adapter->priv_num; i++)
-		if (adapter->priv[i] && adapter->priv[i]->bss_type == bss_type)
-			num++;
-	return num;
-}
-
 /*
  * This function returns the correct private structure pointer based
  * upon the BSS type and BSS number.
drivers/net/wireless/marvell/mwifiex/tdls.c +28 -47

167 lines not on this page · raw message

drivers/nfc/pn544/i2c.c +1 -0
index 720c89d6066e..4ac8cb262559 100644
@@ -225,6 +225,7 @@ static void pn544_hci_i2c_platform_init(struct pn544_i2c_phy *phy)
 
 out:
 	gpiod_set_value_cansleep(phy->gpiod_en, !phy->en_polarity);
+	usleep_range(10000, 15000);
 }
 
 static void pn544_hci_i2c_enable_mode(struct pn544_i2c_phy *phy, int run_mode)
drivers/nvme/host/core.c +5 -5
index 641c07347e8d..ada59df642d2 100644
@@ -66,8 +66,8 @@ MODULE_PARM_DESC(streams, "turn on support for Streams write directives");
  * nvme_reset_wq - hosts nvme reset works
  * nvme_delete_wq - hosts nvme delete works
  *
- * nvme_wq will host works such are scan, aen handling, fw activation,
- * keep-alive error recovery, periodic reconnects etc. nvme_reset_wq
+ * nvme_wq will host works such as scan, aen handling, fw activation,
+ * keep-alive, periodic reconnects etc. nvme_reset_wq
  * runs reset works which also flush works hosted on nvme_wq for
  * serialization purposes. nvme_delete_wq host controller deletion
  * works which flush reset works for serialization.
@@ -976,7 +976,7 @@ static void nvme_keep_alive_end_io(struct request *rq, blk_status_t status)
 		startka = true;
 	spin_unlock_irqrestore(&ctrl->lock, flags);
 	if (startka)
-		schedule_delayed_work(&ctrl->ka_work, ctrl->kato * HZ);
+		queue_delayed_work(nvme_wq, &ctrl->ka_work, ctrl->kato * HZ);
 }
 
 static int nvme_keep_alive(struct nvme_ctrl *ctrl)
@@ -1006,7 +1006,7 @@ static void nvme_keep_alive_work(struct work_struct *work)
 		dev_dbg(ctrl->device,
 			"reschedule traffic based keep-alive timer\n");
 		ctrl->comp_seen = false;
-		schedule_delayed_work(&ctrl->ka_work, ctrl->kato * HZ);
+		queue_delayed_work(nvme_wq, &ctrl->ka_work, ctrl->kato * HZ);
 		return;
 	}
 
@@ -1023,7 +1023,7 @@ static void nvme_start_keep_alive(struct nvme_ctrl *ctrl)
 	if (unlikely(ctrl->kato == 0))
 		return;
 
-	schedule_delayed_work(&ctrl->ka_work, ctrl->kato * HZ);
+	queue_delayed_work(nvme_wq, &ctrl->ka_work, ctrl->kato * HZ);
 }
 
 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl)
drivers/nvme/host/pci.c +19 -6
index da392b50f73e..bb5e13ad1aff 100644
@@ -1078,9 +1078,9 @@ static int nvme_poll(struct blk_mq_hw_ctx *hctx)
 
 	spin_lock(&nvmeq->cq_poll_lock);
 	found = nvme_process_cq(nvmeq, &start, &end, -1);
+	nvme_complete_cqes(nvmeq, start, end);
 	spin_unlock(&nvmeq->cq_poll_lock);
 
-	nvme_complete_cqes(nvmeq, start, end);
 	return found;
 }
 
@@ -1401,6 +1401,23 @@ static void nvme_disable_admin_queue(struct nvme_dev *dev, bool shutdown)
 	nvme_poll_irqdisable(nvmeq, -1);
 }
 
+/*
+ * Called only on a device that has been disabled and after all other threads
+ * that can check this device's completion queues have synced. This is the
+ * last chance for the driver to see a natural completion before
+ * nvme_cancel_request() terminates all incomplete requests.
+ */
+static void nvme_reap_pending_cqes(struct nvme_dev *dev)
+{
+	u16 start, end;
+	int i;
+
+	for (i = dev->ctrl.queue_count - 1; i > 0; i--) {
+		nvme_process_cq(&dev->queues[i], &start, &end, -1);
+		nvme_complete_cqes(&dev->queues[i], start, end);
+	}
+}
+
 static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues,
 				int entry_size)
 {
@@ -2235,11 +2252,6 @@ static bool __nvme_disable_io_queues(struct nvme_dev *dev, u8 opcode)
 		if (timeout == 0)
 			return false;
 
-		/* handle any remaining CQEs */
-		if (opcode == nvme_admin_delete_cq &&
-		    !test_bit(NVMEQ_DELETE_ERROR, &nvmeq->flags))
-			nvme_poll_irqdisable(nvmeq, -1);
-
 		sent--;
 		if (nr_queues)
 			goto retry;
@@ -2428,6 +2440,7 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown)
 	nvme_suspend_io_queues(dev);
 	nvme_suspend_queue(&dev->queues[0]);
 	nvme_pci_disable(dev);
+	nvme_reap_pending_cqes(dev);
 
 	blk_mq_tagset_busy_iter(&dev->tagset, nvme_cancel_request, &dev->ctrl);
 	blk_mq_tagset_busy_iter(&dev->admin_tagset, nvme_cancel_request, &dev->ctrl);
drivers/nvme/host/rdma.c +1 -1
index 2a47c6c5007e..3e85c5cacefd 100644
@@ -1088,7 +1088,7 @@ static void nvme_rdma_error_recovery(struct nvme_rdma_ctrl *ctrl)
 	if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_RESETTING))
 		return;
 
-	queue_work(nvme_wq, &ctrl->err_work);
+	queue_work(nvme_reset_wq, &ctrl->err_work);
 }
 
 static void nvme_rdma_wr_error(struct ib_cq *cq, struct ib_wc *wc,
drivers/nvme/host/tcp.c +7 -2
index 6d43b23a0fc8..49d4373b84eb 100644
@@ -422,7 +422,7 @@ static void nvme_tcp_error_recovery(struct nvme_ctrl *ctrl)
 	if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_RESETTING))
 		return;
 
-	queue_work(nvme_wq, &to_tcp_ctrl(ctrl)->err_work);
+	queue_work(nvme_reset_wq, &to_tcp_ctrl(ctrl)->err_work);
 }
 
 static int nvme_tcp_process_nvme_cqe(struct nvme_tcp_queue *queue,
@@ -1054,7 +1054,12 @@ static void nvme_tcp_io_work(struct work_struct *w)
 		} else if (unlikely(result < 0)) {
 			dev_err(queue->ctrl->ctrl.device,
 				"failed to send request %d\n", result);
-			if (result != -EPIPE)
+
+			/*
+			 * Fail the request unless peer closed the connection,
+			 * in which case error recovery flow will complete all.
+			 */
+			if ((result != -EPIPE) && (result != -ECONNRESET))
 				nvme_tcp_fail_request(queue->request);
 			nvme_tcp_done_send_req(queue);
 			return;
drivers/perf/arm_smmuv3_pmu.c +1 -1
index d704eccc548f..f01a57e5a5f3 100644
@@ -771,7 +771,7 @@ static int smmu_pmu_probe(struct platform_device *pdev)
 		smmu_pmu->reloc_base = smmu_pmu->reg_base;
 	}
 
-	irq = platform_get_irq(pdev, 0);
[… more lines in the raw message]

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

drivers/pwm/pwm-omap-dmtimer.c +15 -6
index e36fcad668a6..88a3c5690fea 100644

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

drivers/s390/crypto/ap_bus.h +2 -2
index bb35ba4a8d24..4348fdff1c61 100644

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

drivers/s390/crypto/ap_card.c +4 -4
index 63b4cc6cd7e5..e85bfca1ed16 100644

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

drivers/s390/crypto/ap_queue.c +3 -3
index 37c3bdc3642d..a317ab484932 100644

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

drivers/s390/crypto/zcrypt_api.c +9 -7
index 9157e728a362..7fa0262e91af 100644

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

drivers/s390/net/qeth_core_main.c +1 -1
index 29facb913671..10edfd6fc930 100644

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

drivers/s390/net/qeth_l2_main.c +13 -16
index 47d37e75dda6..e26ad80ddfa3 100644

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

drivers/s390/scsi/zfcp_fsf.h +1 -1
index 2b1e4da1944f..4bfb79f20588 100644

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

drivers/s390/scsi/zfcp_sysfs.c +1 -1
index 494b9fe9cc94..a711a0d15100 100644

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

drivers/scsi/sd_zbc.c +6 -1
index e0bd4cf17230..5b75a65103bd 100644

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

drivers/soc/tegra/fuse/fuse-tegra30.c +2 -1
index b8daaf5b7291..efd158b4607c 100644

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

drivers/thermal/broadcom/brcmstb_thermal.c +9 -22
index 5825ac581f56..680f1a070606 100644

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

drivers/thermal/db8500_thermal.c +2 -2
index 372dbbaaafb8..21d4d6e6409a 100644

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

drivers/vhost/net.c +1 -9
index e158159671fa..18e205eeb9af 100644

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

drivers/watchdog/wdat_wdt.c +1 -1
index b069349b52f5..e1b1fcfc02af 100644

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

fs/ceph/file.c +11 -6
index 11929d2bb594..cd09e63d682b 100644

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

fs/cifs/cifsacl.c +2 -2
index fb41e51dd574..25704beb9d4c 100644

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

fs/cifs/connect.c +1 -1
index 0aa3623ae0e1..641825cfa767 100644

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

fs/cifs/inode.c +1 -1
index ca76a9287456..b3f3675e1878 100644

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

fs/dax.c +3 -0
index 1f1f0201cad1..0b0d8819cb1b 100644

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

fs/ext4/super.c +3 -3
index 12806be10a18..71e2b80ff4aa 100644

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

fs/f2fs/data.c +25 -7
index fc40a72f7827..930706e171fd 100644

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

fs/io-wq.c +18 -4
index 0dc4bb6de656..25ffb6685bae 100644

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

fs/io_uring.c +11 -1
index 678c62782ba3..60a483208998 100644

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

fs/namei.c +1 -1
index 6cc88b6d68c8..70eb4bfeaebc 100644

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

fs/nfs/nfs4file.c +0 -1
index 620de905cba9..3f892035c141 100644

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

fs/nfs/nfs4proc.c +16 -2
index 6ddb4f517d37..13c2de527718 100644

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

fs/ubifs/orphan.c +2 -2
index 54d6db61106f..edf43ddd7dce 100644

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

fs/xfs/libxfs/xfs_attr.h +5 -2
index 94badfa1743e..91c2cb14276e 100644

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

fs/xfs/xfs_ioctl.c +2 -0
index 7b35d62ede9f..edfbdb8f85e2 100644

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

fs/xfs/xfs_ioctl32.c +2 -0
index c4c4f09113d3..bd9d9ebf85d8 100644

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

include/acpi/actypes.h +2 -1
index 2f3f28c7cea3..9373662cdb44 100644

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

include/asm-generic/vdso/vsyscall.h +2 -2
index ce4103208619..cec543d9e87b 100644

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

include/linux/blkdev.h +1 -1
index 4c636c42ad68..1cb5afed5515 100644

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

include/linux/blktrace_api.h +13 -5
index 7bb2d8de9f30..3b6ff5902edc 100644

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

include/linux/hid.h +1 -1
index cd41f209043f..875f71132b14 100644

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

include/linux/netdevice.h +3 -4
index cac56fb59af8..1dabd86b232a 100644

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

include/linux/netfilter/ipset/ip_set.h +10 -1
index 908d38dbcb91..5448c8b443db 100644

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

include/linux/sched/nohz.h +2 -0
index 1abe91ff6e4a..6d67e9a5af6b 100644

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

include/net/flow_dissector.h +9 -0
index d93017a7ce5c..e03827f702f3 100644

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

include/uapi/linux/usb/charger.h +8 -8
index 5f72af35b3ed..ad22079125bf 100644

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

kernel/audit.c +21 -19
index 8e09f0f55b4b..f971cd636426 100644

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

kernel/auditfilter.c +39 -32

71 lines not on this page · raw message

kernel/kprobes.c +3 -1
index fd81882f0521..2625c241ac00 100644

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

kernel/locking/lockdep_proc.c +2 -2
index dadb7b7fba37..9bb6d2497b04 100644

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

kernel/rcu/tree_exp.h +5 -6
index f504ac831779..df90d4d7ad2e 100644

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

kernel/sched/core.c +21 -10
index b2564d62a0f7..9e7768dbd92d 100644

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

kernel/sched/fair.c +4 -3
index ba749f579714..b0ee5eedeccd 100644

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

kernel/sched/loadavg.c +23 -10
index 28a516575c18..de22da666ac7 100644

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

kernel/time/vsyscall.c +17 -20
index 5ee0f7709410..9577c89179cd 100644

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

kernel/trace/blktrace.c +83 -31

114 lines not on this page · raw message

kernel/trace/trace.c +2 -0
index 5b6ee4aadc26..256ac508196f 100644

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

mm/debug.c +5 -3
index 0461df1207cb..6a52316af839 100644

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

mm/gup.c +2 -1
index 7646bf993b25..5244b8090440 100644

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

mm/huge_memory.c +9 -17
index a88093213674..54c106bdbafd 100644

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

net/core/dev.c +11 -23
index 466f2e4144b0..c3da35f3c7e4 100644

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

net/core/fib_rules.c +1 -1
index 3e7e15278c46..bd7eba9066f8 100644

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

net/core/rtnetlink.c +12 -14
index f02705ff0e5e..1737bac74c45 100644

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

net/ipv4/udp.c +5 -1
index 030d43c7c957..be5c5903cfe1 100644

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

net/ipv6/ip6_fib.c +4 -3
index cfae0a1529a1..bde3bf180871 100644

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

net/ipv6/route.c +1 -0
index affb51c11a25..119c7226c4be 100644

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

net/mac80211/mlme.c +1 -5
index e041af2f021a..88d7a692a965 100644

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

net/mac80211/util.c +26 -8
index 32a7a53833c0..decd46b38393 100644

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

net/netfilter/ipset/ip_set_core.c +24 -10
index 69c107f9ba8d..8dd17589217d 100644

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

net/netfilter/ipset/ip_set_hash_gen.h +440 -195

635 lines not on this page · raw message

net/netfilter/nft_tunnel.c +2 -2
index f8d2919cf9fd..037e8fce9b30 100644

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

net/netfilter/xt_hashlimit.c +6 -6
index 6520d9ec1297..1b68a131083c 100644

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

net/netlink/af_netlink.c +3 -2
index 4e31721e7293..edf3e285e242 100644

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

net/sched/cls_flower.c +1 -0
index 7e54d2ab5254..d32d4233d337 100644

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

net/sctp/sm_statefuns.c +20 -9
index 4ab8208a2dd4..c6d83a64eac3 100644

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

net/smc/af_smc.c +2 -0
index cee5bf4a9bb9..90988a511cd5 100644

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

net/smc/smc_clc.c +3 -1
index 0879f7bed967..86cccc24e52e 100644

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

net/tipc/socket.c +2 -0
index f9b4fb92c0b1..693e8902161e 100644

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

net/tls/tls_device.c +19 -1
index cd91ad812291..e72d7d787935 100644

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

net/wireless/ethtool.c +6 -2
index a9c0f368db5d..24e18405cdb4 100644

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

net/wireless/nl80211.c +3 -2
index 1e97ac5435b2..114397d737b3 100644

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

scripts/Makefile.lib +2 -2
index 3fa32f83b2d7..a66fc0acad1e 100644

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

security/integrity/ima/ima_policy.c +26 -18

44 lines not on this page · raw message

tools/perf/builtin-report.c +3 -3
index de988589d99b..66cd97cc8b92 100644

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

tools/perf/ui/browsers/hists.c +1 -0
index d4d3558fdef4..cfc6172ecab7 100644

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

tools/perf/ui/gtk/Build +5 -0
index ec22e899a224..9b5d5cbb7af7 100644

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

tools/perf/util/map.c +1 -0
index fdd5bddb3075..f67960bedebb 100644

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

tools/testing/selftests/ftrace/Makefile +1 -1
index cd1f5b3a7774..d6e106fbce11 100644

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

tools/testing/selftests/livepatch/Makefile +2 -0
index 3876d8d62494..1acc9e1fa3fb 100644

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

tools/testing/selftests/net/fib_tests.sh +6 -0
index 6dd403103800..60273f1bc7d9 100755

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

tools/testing/selftests/rseq/Makefile +2 -0
index d6469535630a..f1053630bb6f 100644

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

tools/testing/selftests/rtc/Makefile +2 -0
index de9c8566672a..90fa1a346908 100644

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

virt/kvm/kvm_main.c +6 -6
index 2b3f36df3d85..75b7ee1af1c3 100644

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.