Linux 5.5.14
Greg KH
maintainerI'm announcing the release of the 5.5.14 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
------------
Makefile | 2 arch/arm/boot/dts/dra7.dtsi | 1 arch/arm/boot/dts/omap5.dtsi | 1 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 3 arch/arm64/crypto/chacha-neon-glue.c | 8 arch/x86/kvm/svm.c | 22 arch/x86/mm/ioremap.c | 3 arch/x86/net/bpf_jit_comp32.c | 10 drivers/ata/ahci.c | 1 drivers/base/memory.c | 23 drivers/clocksource/hyperv_timer.c | 6 drivers/gpio/gpiolib-acpi.c | 125 drivers/gpio/gpiolib.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 drivers/gpu/drm/amd/amdgpu/soc15.c | 25 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 114 drivers/gpu/drm/drm_prime.c | 2 drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 5 drivers/gpu/drm/exynos/exynos7_drm_decon.c | 5 drivers/gpu/drm/exynos/exynos_drm_dma.c | 28 drivers/gpu/drm/exynos/exynos_drm_drv.h | 6 drivers/gpu/drm/exynos/exynos_drm_fimc.c | 5 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 5 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 5 drivers/gpu/drm/exynos/exynos_drm_gsc.c | 5 drivers/gpu/drm/exynos/exynos_drm_rotator.c | 5 drivers/gpu/drm/exynos/exynos_drm_scaler.c | 6 drivers/gpu/drm/exynos/exynos_mixer.c | 7 drivers/gpu/drm/radeon/radeon_ttm.c | 2 drivers/i2c/busses/i2c-hix5hd2.c | 1 drivers/i2c/busses/i2c-nvidia-gpu.c | 20 drivers/infiniband/core/device.c | 4 drivers/infiniband/core/nldev.c | 6 drivers/infiniband/core/security.c | 11 drivers/infiniband/core/umem_odp.c | 2 drivers/infiniband/core/user_mad.c | 33 drivers/infiniband/hw/mlx5/cq.c | 27 drivers/infiniband/hw/mlx5/main.c | 5 drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 drivers/infiniband/hw/mlx5/qp.c | 5 drivers/infiniband/sw/rdmavt/cq.c | 2 drivers/input/input.c | 1 drivers/input/mouse/synaptics.c | 1 drivers/input/touchscreen/raydium_i2c_ts.c | 8 drivers/iommu/dmar.c | 3 drivers/iommu/intel-iommu-debugfs.c | 51 drivers/iommu/intel-iommu.c | 4 drivers/media/usb/b2c2/flexcop-usb.c | 6 drivers/media/usb/dvb-usb/dib0700_core.c | 4 drivers/media/usb/gspca/ov519.c | 10 drivers/media/usb/gspca/stv06xx/stv06xx.c | 19 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c | 4 drivers/media/usb/gspca/xirlink_cit.c | 18 drivers/media/usb/usbtv/usbtv-core.c | 2 drivers/media/usb/usbtv/usbtv-video.c | 5 drivers/media/v4l2-core/v4l2-device.c | 1 drivers/mmc/core/core.c | 5 drivers/mmc/core/mmc.c | 7 drivers/mmc/core/mmc_ops.c | 8 drivers/mmc/host/sdhci-omap.c | 3 drivers/mmc/host/sdhci-tegra.c | 3 drivers/net/Kconfig | 1 drivers/net/can/slcan.c | 3 drivers/net/dsa/mt7530.c | 4 drivers/net/ethernet/amazon/ena/ena_netdev.c | 78 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 28 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c | 15 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 8 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 10 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c | 6 drivers/net/ethernet/broadcom/genet/bcmmii.c | 40 drivers/net/ethernet/chelsio/cxgb4/sge.c | 52 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 drivers/net/ethernet/ibm/ibmvnic.c | 24 drivers/net/ethernet/ibm/ibmvnic.h | 6 drivers/net/ethernet/marvell/mvneta.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 drivers/net/ethernet/mellanox/mlx5/core/en/health.h | 3 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h | 6 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 31 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 11 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 1 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | 1 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 3 drivers/net/ethernet/mellanox/mlx5/core/vport.c | 3 drivers/net/ethernet/mellanox/mlxsw/pci.c | 50 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c | 8 drivers/net/ethernet/realtek/r8169_main.c | 18 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 drivers/net/geneve.c | 8 drivers/net/ifb.c | 6 drivers/net/macsec.c | 3 drivers/net/phy/dp83867.c | 21 drivers/net/phy/mdio-bcm-unimac.c | 6 drivers/net/phy/mdio-mux-bcm-iproc.c | 7 drivers/net/usb/qmi_wwan.c | 1 drivers/net/veth.c | 2 drivers/net/vxlan.c | 11 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h | 1 drivers/nfc/fdp/fdp.c | 5 drivers/of/of_mdio.c | 1 drivers/scsi/ipr.c | 3 drivers/scsi/ipr.h | 1 drivers/scsi/sd.c | 4 drivers/soc/samsung/exynos-chipid.c | 2 drivers/staging/kpc2000/kpc2000/core.c | 4 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/siliabs,wfx.txt | 7 drivers/staging/wfx/bus_sdio.c | 15 drivers/staging/wfx/bus_spi.c | 41 drivers/staging/wfx/main.c | 21 drivers/staging/wfx/main.h | 1 drivers/staging/wfx/queue.c | 16 drivers/staging/wlan-ng/hfa384x_usb.c | 2 drivers/staging/wlan-ng/prism2usb.c | 1 drivers/usb/class/cdc-acm.c | 18 drivers/usb/musb/musb_host.c | 17 drivers/usb/serial/io_edgeport.c | 2 drivers/usb/serial/option.c | 6 fs/afs/cmservice.c | 14 fs/afs/fs_probe.c | 2 fs/afs/internal.h | 12 fs/afs/rxrpc.c | 71 fs/ceph/file.c | 14 fs/ceph/snap.c | 1 fs/libfs.c | 8 fs/nfs/client.c | 1 fs/nfs/fscache.c | 2 fs/nfs/nfs4client.c | 1 include/linux/ceph/osdmap.h | 4 include/linux/ceph/rados.h | 6 include/linux/dmar.h | 6 include/linux/dsa/8021q.h | 7 include/linux/ieee80211.h | 4 include/linux/intel-iommu.h | 2 include/linux/memcontrol.h | 12 include/linux/mmc/host.h | 1 include/linux/skbuff.h | 36 include/net/af_rxrpc.h | 4 include/net/sch_generic.h | 16 include/trace/events/afs.h | 2 include/uapi/linux/serio.h | 10 kernel/bpf/btf.c | 2 kernel/bpf/cgroup.c | 7 kernel/bpf/verifier.c | 19 kernel/cgroup/cgroup-v1.c | 3 kernel/fork.c | 4 kernel/irq/manage.c | 11 lib/crypto/chacha20poly1305-selftest.c | 1717 +++++++++- mm/memcontrol.c | 38 mm/sparse.c | 6 mm/swapfile.c | 39 net/Kconfig | 3 net/bpfilter/main.c | 14 net/ceph/osdmap.c | 9 net/core/dev.c | 4 net/core/pktgen.c | 2 net/core/sock_map.c | 12 net/dsa/tag_8021q.c | 43 net/dsa/tag_brcm.c | 2 net/dsa/tag_sja1105.c | 19 net/hsr/hsr_framereg.c | 9 net/hsr/hsr_netlink.c | 70 net/hsr/hsr_slave.c | 8 net/ipv4/Kconfig | 1 net/ipv4/fib_frontend.c | 2 net/ipv4/ip_gre.c | 105 net/ipv4/ip_vti.c | 38 net/ipv4/tcp.c | 4 net/ipv4/tcp_output.c | 12 net/ipv6/ip6_vti.c | 34 net/mac80211/debugfs_sta.c | 3 net/mac80211/key.c | 20 net/mac80211/mesh_hwmp.c | 3 net/mac80211/sta_info.c | 7 net/mac80211/sta_info.h | 1 net/mac80211/tx.c | 20 net/netfilter/nf_flow_table_ip.c | 2 net/netfilter/nf_flow_table_offload.c | 1 net/netfilter/nft_fwd_netdev.c | 12 net/packet/af_packet.c | 21 net/packet/internal.h | 5 net/rxrpc/af_rxrpc.c | 33 net/rxrpc/ar-internal.h | 1 net/rxrpc/input.c | 1 net/sched/act_ct.c | 2 net/sched/act_mirred.c | 6 net/sched/cls_route.c | 4 net/sched/cls_tcindex.c | 3 net/sched/sch_cbs.c | 12 net/wireless/nl80211.c | 2 net/xfrm/xfrm_device.c | 1 net/xfrm/xfrm_policy.c | 2 net/xfrm/xfrm_user.c | 6 scripts/dtc/dtc-lexer.l | 1 tools/perf/Makefile | 2 tools/perf/util/probe-file.c | 3 tools/perf/util/probe-finder.c | 11 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c | 2 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 2 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c | 2 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h | 2 tools/scripts/Makefile.include | 4 208 files changed, 3225 insertions(+), 834 deletions(-)
Andre Przywara (1):
net: phy: mdio-bcm-unimac: Fix clock handling
Andrii Nakryiko (2):
bpf: Fix cgroup ref leak in cgroup_bpf_inherit on out-of-memory
bpf: Initialize storage pointers to NULL to prevent freeing garbage pointer
Aneesh Kumar K.V (1):
mm/sparse: fix kernel crash with pfn_section_valid check
Arthur Kiyanovski (4):
net: ena: fix incorrect setting of the number of msix vectors
net: ena: fix request of incorrect number of IRQ vectors
net: ena: avoid memory access violation by validating req_id properly
net: ena: fix continuous keep-alive resets
Aya Levin (4):
net/mlx5e: Enhance ICOSQ WQE info fields
net/mlx5e: Fix missing reset of SW metadata in Striding RQ reset net/mlx5e: Fix ICOSQ recovery flow with Striding RQ net/mlx5e: Do not recover from a non-fatal syndrome
Borislav Petkov (1):
x86/ioremap: Fix CONFIG_EFI=n build
Bruno Meneguele (1):
net/bpfilter: fix dprintf usage for /dev/kmsg
Chuhong Yuan (1):
i2c: hix5hd2: add missed clk_disable_unprepare in remove
Cong Wang (3):
net_sched: cls_route: remove the right filter from hashtable
net_sched: hold rtnl lock in tcindex_partial_destroy_work()
net_sched: keep alloc_hash updated after hash allocation
Dafna Hirschfeld (1):
media: v4l2-core: fix a use-after-free bug of sd->devnode
Dajun Jin (1):
drivers/of/of_mdio.c:fix of_mdiobus_register()
Dan Carpenter (3):
NFC: fdp: Fix a signedness bug in fdp_nci_send_patch()
Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()
staging: kpc2000: prevent underflow in cpld_reconfigure()
Daniel Borkmann (1):
bpf: Undo incorrect __reg_bound_offset32 handling
David Hildenbrand (1):
drivers/base/memory.c: indicate all memory blocks as removable
David Howells (4):
afs: Fix handling of an abort from a service handler
afs: Fix client call Rx-phase signal handling
afs: Fix some tracing details
afs: Fix unpinned address list during probing
Dirk Mueller (1):
scripts/dtc: Remove redundant YYLOC global declaration
Dmitry Torokhov (1):
Input: fix stale timestamp on key autorepeat events
Dominik Czarnota (1):
sxgbe: Fix off by one in samsung driver strncpy size arg
Doug Berger (2):
Revert "net: bcmgenet: use RGMII loopback for MAC reset"
net: bcmgenet: keep MAC in reset until PHY is up
Edward Cree (2):
genirq: Fix reference leaks on irq affinity notifiers
netfilter: flowtable: populate addr_type mask
Edwin Peer (1):
bnxt_en: fix memory leaks in bnxt_dcbnl_ieee_getets()
Emil Renner Berthing (1):
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
Eric Biggers (1):
libfs: fix infoleak in simple_attr_read()
Eric Dumazet (2):
tcp: ensure skb->dev is NULL before leaving TCP stack
tcp: repair: fix TCP_QUEUE_SEQ implementation
Eugene Syromiatnikov (1):
Input: avoid BIT() macro usage in the serio.h UAPI header
Florian Fainelli (1):
net: dsa: Fix duplicate frames flooded by learning
Florian Westphal (2):
geneve: move debug check after netdev unregister
tcp: also NULL skb->dev when copy was needed
Greg Kroah-Hartman (1):
Linux 5.5.14
Grygorii Strashko (1):
net: phy: dp83867: w/a for fld detect threshold bootstrapping issue
Guilherme G. Piccoli (1):
net: ena: Add PCI shutdown handler to allow safe kexec
Haishuang Yan (1):
netfilter: flowtable: reload ip{v6}h in nf_flow_tuple_ip{v6}Hamdan Igbaria (1):
net/mlx5: DR, Fix postsend actions write length
Hans de Goede (3):
gpiolib: acpi: Correct comment for HP x2 10 honor_wakeup quirk
gpiolib: acpi: Rework honor_wakeup option into an ignore_wake option
gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 BYT + AXP288 model
Hawking Zhang (1):
drm/amdgpu: correct ROM_INDEX/DATA offset for VEGA20
Heiner Kallweit (2):
r8169: re-enable MSI on RTL8168c
r8169: fix PHY driver check on platforms w/o module softdeps
Ido Schimmel (2):
mlxsw: pci: Only issue reset when system is ready
mlxsw: spectrum_mr: Fix list iteration in error path
Ilya Dryomov (1):
ceph: check POOL_FLAG_FULL/NEARFULL in addition to OSDMAP_FULL/NEARFULL
Jason A. Donenfeld (2):
crypto: chacha20poly1305 - add back missing test vectors and test chunking
crypto: arm64/chacha - correctly walk through blocks
Jason Gunthorpe (4):
RDMA/core: Fix missing error check on dev_set_name()
RDMA/odp: Fix leaking the tgid for implicit ODP
RDMA/nl: Do not permit empty devices names during RDMA_NLDEV_CMD_NEWLINK/SET RDMA/mad: Do not crash if the rdma device does not have a umad interface
Jiang Lidong (1):
veth: ignore peer tx_dropped when counting local rx_dropped
Jisheng Zhang (1):
net: mvneta: Fix the case where the last poll did not process all rx
Johan Hovold (6):
media: flexcop-usb: fix endpoint sanity check
media: usbtv: fix control-message timeouts
media: ov519: add missing endpoint sanity checks
media: dib0700: fix rc endpoint lookup
media: stv06xx: add missing descriptor sanity checks
media: xirlink_cit: add missing descriptor sanity checks
Johannes Berg (5):
nl80211: fix NL80211_ATTR_CHANNEL_WIDTH attribute type
mac80211: drop data frames without key on encrypted links
mac80211: mark station unauthorized before key removal
ieee80211: fix HE SPR size calculation
mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX
John Fastabend (1):
bpf, sockmap: Remove bucket->lock from sock_{hash|map}_freeJuliet Kim (1):
ibmvnic: Do not process device remove during device reset
Kai-Heng Feng (2):
i2c: nvidia-gpu: Handle timeout correctly in gpu_i2c_check_status()
ahci: Add Intel Comet Lake H RAID PCI ID
Kaike Wan (1):
IB/rdmavt: Free kernel completion queue when done
Larry Finger (2):
rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb44
staging: rtl8188eu: Add ASUS USB-N10 Nano B1 to device table
Leon Romanovsky (2):
net/mlx5_core: Set IB capability mask1 to fix ib_srpt connection failure RDMA/mlx5: Fix access to wrong pointer while performing flush due to error
Linus Walleij (1):
gpiolib: Fix irq_disable() semantics
Luis Henriques (1):
ceph: fix memory leak in ceph_cleanup_snapid_map()
Luke Nelson (1):
bpf, x32: Fix bug with JMP32 JSET BPF_X checking upper bits
Mans Rullgard (1):
usb: musb: fix crash with highmen PIO and usbmon
Maor Gottlieb (1):
RDMA/mlx5: Block delay drop to unprivileged users
Marek Szyprowski (2):
drm/exynos: Fix cleanup of IOMMU related objects
soc: samsung: chipid: Fix return value on non-Exynos platforms
Mark Zhang (1):
RDMA/mlx5: Fix the number of hwcounters of a dynamic counter
Martin K. Petersen (1):
scsi: sd: Fix optimal I/O size for devices that change reported values
Martin Leung (1):
drm/amd/display: update soc bb for nv14
Masami Hiramatsu (3):
perf probe: Fix to delete multiple probe event perf probe: Do not depend on dwfl_module_addrsym()
tools: Let O= makes handle a relative path with -C option
Matthias Reichl (1):
USB: cdc-acm: restore capability check order
Megha Dey (2):
iommu/vt-d: Fix debugfs register reads iommu/vt-d: Populate debugfs if IOMMUs are detected
Michael Chan (3):
bnxt_en: Fix Priority Bytes and Packets counters in ethtool -S.
bnxt_en: Return error if bnxt_alloc_ctx_mem() fails.
bnxt_en: Free context memory after disabling PCI in probe error path.
Michał Mirosław (3):
staging: wfx: add proper "compatible" string
staging: wfx: fix init/remove vs IRQ race
staging: wfx: annotate nested gc_list vs tx queue locking
Mike Gilbert (1):
cpupower: avoid multiple definition with gcc -fno-common
Mike Marciniszyn (1):
RDMA/core: Ensure security pkey modify is not lost
Naohiro Aota (1):
mm/swapfile.c: move inode_lock out of claim_swapfile
Nathan Chancellor (1):
dpaa_eth: Remove unnecessary boolean expression in dpaa_get_headroom
Nicolas Cavallari (1):
mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
Nicolas Dichtel (1):
vti[6]: fix packet tx through bpf_redirect() in XinY cases
Oliver Hartkopp (1):
slcan: not call free_netdev before rtnl_unlock in slcan_open
Ondrej Jirman (1):
ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection
Pablo Neira Ayuso (3):
netfilter: nft_fwd_netdev: validate family and chain type
netfilter: nft_fwd_netdev: allow to redirect to ifb via ingress
net: Fix CONFIG_NET_CLS_ACT=n and CONFIG_NFT_FWD_NETDEV={y, m} build
Paul Blakey (1):
net/sched: act_ct: Fix leak of ct zone template on replace
Pawel Dembicki (4):
net: qmi_wwan: add support for ASKEY WWHC050
USB: serial: option: add support for ASKEY WWHC050
USB: serial: option: add BroadMobi BM806U
USB: serial: option: add Wistron Neweb D19Q1
Petr Machata (2):
net: ip_gre: Separate ERSPAN newlink / changelink callbacks
net: ip_gre: Accept IFLA_INFO_DATA-less configuration
Qian Cai (2):
ipv4: fix a RCU-list lock in inet_dump_fib() iommu/vt-d: Silence RCU-list debugging warnings
Qiujun Huang (3):
USB: serial: io_edgeport: fix slab-out-of-bounds read in edge_interrupt_callback
staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb
staging: wlan-ng: fix use-after-free Read in hfa384x_usbin_callback
Raed Salem (1):
xfrm: handle NETDEV_UNREGISTER for xfrm device
Rahul Lakkireddy (2):
cxgb4: fix throughput drop during Tx backpressure
cxgb4: fix Txq restart check during backpressure
Rayagonda Kokatanur (1):
net: phy: mdio-mux-bcm-iproc: check clk_prepare_enable() return value
René van Dorst (1):
net: dsa: mt7530: Change the LINK bit to reflect the link status
Roger Quadros (2):
ARM: dts: dra7: Add bus_dma_limit for L3 bus
ARM: dts: omap5: Add bus_dma_limit for L3 bus
Roman Gushchin (1):
mm: fork: fix kernel_stack memcg stats for various stack implementations
Scott Mayhew (1):
nfs: add minor version to nfs_server_key for fscache
Sebastian Hense (1):
net/mlx5e: Fix endianness handling in pedit mask
Shane Francis (3):
drm/prime: use dma length macro when mapping sg drm/amdgpu: fix scatter-gather mapping with user pages drm/radeon: fix scatter-gather mapping with user pages
Taehee Yoo (5):
hsr: fix general protection fault in hsr_addr_is_self()
vxlan: check return value of gro_cells_init()
hsr: use rcu_read_lock() in hsr_get_node_{list/status}()
hsr: add restart routine into hsr_get_node_list()
hsr: set .netnsok flag
Tariq Toukan (1):
net/mlx5e: kTLS, Fix TCP seq off-by-1 issue in TX resync flow
Tom Lendacky (1):
KVM: SVM: Issue WBINVD after deactivating an SEV guest
Torsten Hilbrich (1):
vti6: Fix memory leak of skb if input policy check fails
Tycho Andersen (1):
cgroup1: don't call release_agent when it is ""
Ulf Hansson (5):
mmc: core: Allow host controllers to require R1B for CMD6
mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for erase/trim/discard
mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for eMMC sleep command
mmc: sdhci-omap: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY
mmc: sdhci-tegra: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY
Vasily Averin (1):
cgroup-v1: cgroup_pidlist_next should update position index
Vasundhara Volam (1):
bnxt_en: Reset rings if ring reservation fails during open()
Vladimir Oltean (1):
net: dsa: tag_8021q: replace dsa_8021q_remove_header with __skb_vlan_pop
Wen Xiong (1):
scsi: ipr: Fix softlockup when rescanning devices in petitboot
Willem de Bruijn (2):
macsec: restrict to ethernet devices net/packet: tpacket_rcv: avoid a producer race condition
Xin Long (2):
xfrm: fix uctx len check in verify_sec_ctx_len
xfrm: add the missing verify_sec_ctx_len check in xfrm_add_acquire
Yoshiki Komachi (1):
bpf/btf: Fix BTF verification of enum members in struct/union
Yubo Xie (1):
clocksource/drivers/hyper-v: Untangle stimers and timesync from clocksources
YueHaibing (1):
xfrm: policy: Fix doulbe free in xfrm_policy_timer
Yussuf Khalil (1):
Input: synaptics - enable RMI on HP Envy 13-ad105ng
Zh-yuan Ye (1):
net: cbs: Fix software cbs to consider packet sending time
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 5 -SUBLEVEL = 13 +SUBLEVEL = 14 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/dts/dra7.dtsi +1 -0
@@ -148,6 +148,7 @@ ocp { #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0xc0000000>; + dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>; ti,hwmods = "l3_main_1", "l3_main_2"; reg = <0x0 0x44000000 0x0 0x1000000>, <0x0 0x45000000 0x0 0x1000>;
arch/arm/boot/dts/omap5.dtsi +1 -0
@@ -143,6 +143,7 @@ ocp { #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xc0000000>; + dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>; ti,hwmods = "l3_main_1", "l3_main_2", "l3_main_3"; reg = <0 0x44000000 0 0x2000>, <0 0x44800000 0 0x3000>,
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +2 -1
@@ -498,7 +498,8 @@ &usb_otg { }; &usbphy { - usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + usb0_id_det-gpios = <&pio 7 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH11 */ + usb0_vbus_power-supply = <&usb_power_supply>; usb0_vbus-supply = <®_drivevbus>; usb1_vbus-supply = <®_vmain>; usb2_vbus-supply = <®_vmain>;
arch/arm64/crypto/chacha-neon-glue.c +4 -4
@@ -55,10 +55,10 @@ static void chacha_doneon(u32 *state, u8 *dst, const u8 *src,break ; }chacha_4block_xor_neon (state, dst, src, nrounds, l); - bytes -=CHACHA_BLOCK_SIZE *5 ; - src +=CHACHA_BLOCK_SIZE *5 ; - dst +=CHACHA_BLOCK_SIZE *5 ; - state[12 ] +=5 ; + bytes -= l; + src += l; + dst += l; + state[12 ] +=DIV_ROUND_UP (l,CHACHA_BLOCK_SIZE ); } }
arch/x86/kvm/svm.c +14 -8
@@ -1920,14 +1920,6 @@ static void sev_clflush_pages(struct page *pages[], unsigned long npages)static void __unregister_enc_region_locked (struct kvm *kvm,struct enc_region *region) { -/* -* The guest may change the memory encryption attribute from C=0 -> C=1 -* or vice versa for this memory range. Lets make sure caches are -* flushed to ensure that guest data gets written into memory with -* correct C-bit. -*/ -sev_clflush_pages (region->pages, region->npages); -sev_unpin_memory (kvm, region->pages, region->npages);list_del (®ion->list);kfree (region);
@@ -1957,6 +1949,13 @@ static void sev_vm_destroy(struct kvm *kvm)mutex_lock (&kvm->lock); +/* +* Ensure that all guest tagged cache entries are flushed before +* releasing the pages back to the system for use. CLFLUSH will +* not do this, so issue a WBINVD. +*/ +wbinvd_on_all_cpus (); +/* * if userspace was terminated before unregistering the memory regions * then lets unpin all the registered memory.
@@ -7212,6 +7211,13 @@ static int svm_unregister_enc_region(struct kvm *kvm, goto failed; } +/* +* Ensure that all guest tagged cache entries are flushed before +* releasing the pages back to the system for use. CLFLUSH will +* not do this, so issue a WBINVD. +*/ +wbinvd_on_all_cpus (); +__unregister_enc_region_locked (kvm, region);mutex_unlock (&kvm->lock);
arch/x86/mm/ioremap.c +3 -0
@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, struct ioremap_desc *desif (!sev_active ())return ; +if (!IS_ENABLED (CONFIG_EFI )) +return ; +if (efi_mem_type (addr) ==EFI_RUNTIME_SERVICES_DATA ) desc->flags |=IORES_MAP_ENCRYPTED ; }
arch/x86/net/bpf_jit_comp32.c +6 -4
@@ -2039,10 +2039,12 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, }/* and dreg_lo,sreg_lo */ EMIT2 (0x23 ,add_2reg (0xC0 , sreg_lo, dreg_lo)); -/* and dreg_hi,sreg_hi */ -EMIT2 (0x23 ,add_2reg (0xC0 , sreg_hi, dreg_hi)); -/* or dreg_lo,dreg_hi */ -EMIT2 (0x09 ,add_2reg (0xC0 , dreg_lo, dreg_hi)); +if (is_jmp64) { +/* and dreg_hi,sreg_hi */ +EMIT2 (0x23 ,add_2reg (0xC0 , sreg_hi, dreg_hi)); +/* or dreg_lo,dreg_hi */ +EMIT2 (0x09 ,add_2reg (0xC0 , dreg_lo, dreg_hi)); + } goto emit_cond_jmp; }case BPF_JMP |BPF_JSET |BPF_K :
drivers/ata/ahci.c +1 -0
@@ -401,6 +401,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0xa252), board_ahci }, /* Lewisburg RAID*/ { PCI_VDEVICE(INTEL, 0xa256), board_ahci }, /* Lewisburg RAID*/ { PCI_VDEVICE(INTEL, 0xa356), board_ahci }, /* Cannon Lake PCH-H RAID */ + { PCI_VDEVICE(INTEL, 0x06d7), board_ahci }, /* Comet Lake-H RAID */ { PCI_VDEVICE(INTEL, 0x0f22), board_ahci_mobile }, /* Bay Trail AHCI */ { PCI_VDEVICE(INTEL, 0x0f23), board_ahci_mobile }, /* Bay Trail AHCI */ { PCI_VDEVICE(INTEL, 0x22a3), board_ahci_mobile }, /* Cherry Tr. AHCI */
drivers/base/memory.c +3 -20
@@ -111,30 +111,13 @@ static ssize_t phys_index_show(struct device *dev, }/* -* Show whether the memory block is likely to be offlineable (or is already -* offline). Once offline, the memory block could be removed. The return -* value does, however, not indicate that there is a way to remove the -* memory block. +* Legacy interface that we cannot remove. Always indicate "removable" +* with CONFIG_MEMORY_HOTREMOVE - bad heuristic. */ static ssize_t removable_show (struct device *dev,struct device_attribute *attr,char *buf) { -struct memory_block *mem =to_memory_block (dev); -unsigned long pfn; -int ret =1 , i; - -if (mem->state !=MEM_ONLINE ) - goto out; - -for (i =0 ; i < sections_per_block; i++) { -if (!present_section_nr (mem->start_section_nr + i)) -continue ; - pfn =section_nr_to_pfn (mem->start_section_nr + i); - ret &=is_mem_section_removable (pfn,PAGES_PER_SECTION ); - } - -out: -return sprintf (buf,"%d\n" , ret); +return sprintf (buf,"%d\n" , (int )IS_ENABLED (CONFIG_MEMORY_HOTREMOVE )); }/*
drivers/clocksource/hyperv_timer.c +4 -2
@@ -327,7 +327,8 @@ static u64 notrace read_hv_clock_tsc(struct clocksource *arg)static u64 read_hv_sched_clock_tsc (void ) { -return read_hv_clock_tsc (NULL ) - hv_sched_clock_offset; +return (read_hv_clock_tsc (NULL ) - hv_sched_clock_offset) * + (NSEC_PER_SEC /HV_CLOCK_HZ ); }static struct clocksource hyperv_cs_tsc = {
@@ -352,7 +353,8 @@ static u64 notrace read_hv_clock_msr(struct clocksource *arg)static u64 read_hv_sched_clock_msr (void ) { -return read_hv_clock_msr (NULL ) - hv_sched_clock_offset; +return (read_hv_clock_msr (NULL ) - hv_sched_clock_offset) * + (NSEC_PER_SEC /HV_CLOCK_HZ ); }static struct clocksource hyperv_cs_msr = {
drivers/gpio/gpiolib-acpi.c +99 -26
186 lines not on this page · raw message
drivers/gpio/gpiolib.c +8 -1
@@ -2323,9 +2323,16 @@ static void gpiochip_irq_disable(struct irq_data *d) {struct gpio_chip *chip =irq_data_get_irq_chip_data (d); +/* +* Since we override .irq_disable() we need to mimic the +* behaviour of __irq_disable() in irq/chip.c. +* First call .irq_disable() if it exists, else mimic the +* behaviour of mask_irq() which calls .irq_mask() if +* it exists. +*/ if (chip->irq.irq_disable) chip->irq.irq_disable (d); -else +else if (chip->irq.chip->irq_mask) chip->irq.chip->irq_mask (d);gpiochip_disable_irq (chip, d->hwirq); }
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +1 -1
@@ -973,7 +973,7 @@ static int amdgpu_ttm_tt_pin_userptr(struct ttm_tt *ttm)/* Map SG to device */ r = -ENOMEM ; nents =dma_map_sg (adev->dev, ttm->sg->sgl, ttm->sg->nents, direction); -if (nents != ttm->sg->nents) +if (nents ==0 ) goto release_sg;/* convert SG to linear array of pages and dma addresses */
drivers/gpu/drm/amd/amdgpu/soc15.c +23 -2
@@ -87,6 +87,13 @@#define HDP_MEM_POWER_CTRL__RC_MEM_POWER_CTRL_EN_MASK 0x00010000L#define HDP_MEM_POWER_CTRL__RC_MEM_POWER_LS_EN_MASK 0x00020000L#define mmHDP_MEM_POWER_CTRL_BASE_IDX 0 + +/* for Vega20/arcturus regiter offset change */ +#define mmROM_INDEX_VG20 0x00e4 +#define mmROM_INDEX_VG20_BASE_IDX 0 +#define mmROM_DATA_VG20 0x00e5 +#define mmROM_DATA_VG20_BASE_IDX 0 +/* * Indirect registers accessor */
@@ -307,6 +314,8 @@ static bool soc15_read_bios_from_rom(struct amdgpu_device *adev, {u32 *dw_ptr;u32 i, length_dw; +uint32_t rom_index_offset; +uint32_t rom_data_offset;if (bios ==NULL )return false;
@@ -319,11 +328,23 @@ static bool soc15_read_bios_from_rom(struct amdgpu_device *adev, dw_ptr = (u32 *)bios; length_dw =ALIGN (length_bytes,4 ) /4 ; +switch (adev->asic_type) { +case CHIP_VEGA20 : +case CHIP_ARCTURUS : + rom_index_offset =SOC15_REG_OFFSET (SMUIO ,0 , mmROM_INDEX_VG20); + rom_data_offset =SOC15_REG_OFFSET (SMUIO ,0 , mmROM_DATA_VG20); +break ; +default : + rom_index_offset =SOC15_REG_OFFSET (SMUIO ,0 , mmROM_INDEX); + rom_data_offset =SOC15_REG_OFFSET (SMUIO ,0 , mmROM_DATA); +break ; + } +/* set rom index to 0 */ -WREG32 (SOC15_REG_OFFSET (SMUIO ,0 , mmROM_INDEX),0 ); +WREG32 (rom_index_offset,0 );/* read out the rom data */ for (i =0 ; i < length_dw; i++) - dw_ptr[i] =RREG32 (SOC15_REG_OFFSET (SMUIO ,0 , mmROM_DATA)); + dw_ptr[i] =RREG32 (rom_data_offset);return true; }
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +114 -0
126 lines not on this page · raw message
drivers/gpu/drm/drm_prime.c +1 -1
@@ -964,7 +964,7 @@ int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, index =0 ;for_each_sg (sgt->sgl, sg, sgt->nents, count) { - len = sg->length; + len =sg_dma_len (sg); page =sg_page (sg); addr =sg_dma_address (sg);
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +3 -2
@@ -55,6 +55,7 @@ static const char * const decon_clks_name[] = {struct decon_context {struct device *dev;struct drm_device *drm_dev; +void *dma_priv;struct exynos_drm_crtc *crtc;struct exynos_drm_plane planes[WINDOWS_NR ];struct exynos_drm_plane_config configs[WINDOWS_NR ];
@@ -644,7 +645,7 @@ static int decon_bind(struct device *dev, struct device *master, void *data)decon_clear_channels (ctx->crtc); -return exynos_drm_register_dma (drm_dev, dev); +return exynos_drm_register_dma (drm_dev, dev, &ctx->dma_priv); }static void decon_unbind (struct device *dev,struct device *master,void *data)
@@ -654,7 +655,7 @@ static void decon_unbind(struct device *dev, struct device *master, void *data)decon_disable (ctx->crtc);/* detach this sub driver from iommu mapping if supported. */ -exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev); +exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev, &ctx->dma_priv); }static const struct component_ops decon_component_ops = {
drivers/gpu/drm/exynos/exynos7_drm_decon.c +3 -2
@@ -40,6 +40,7 @@struct decon_context {struct device *dev;struct drm_device *drm_dev; +void *dma_priv;struct exynos_drm_crtc *crtc;struct exynos_drm_plane planes[WINDOWS_NR ];struct exynos_drm_plane_config configs[WINDOWS_NR ];
@@ -127,13 +128,13 @@ static int decon_ctx_initialize(struct decon_context *ctx,decon_clear_channels (ctx->crtc); -return exynos_drm_register_dma (drm_dev, ctx->dev); +return exynos_drm_register_dma (drm_dev, ctx->dev, &ctx->dma_priv); }static void decon_ctx_remove (struct decon_context *ctx) {/* detach this sub driver from iommu mapping if supported. */ -exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev); +exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev, &ctx->dma_priv); } static u32 decon_calc_clkdiv(struct decon_context *ctx,
drivers/gpu/drm/exynos/exynos_drm_dma.c +19 -9
@@ -58,7 +58,7 @@ static inline void clear_dma_max_seg_size(struct device *dev)* mapping. */ static int drm_iommu_attach_device (struct drm_device *drm_dev, -struct device *subdrv_dev) +struct device *subdrv_dev,void **dma_priv) {struct exynos_drm_private *priv = drm_dev->dev_private;int ret;
@@ -74,7 +74,14 @@ static int drm_iommu_attach_device(struct drm_device *drm_dev,return ret;if (IS_ENABLED (CONFIG_ARM_DMA_USE_IOMMU )) { -if (to_dma_iommu_mapping (subdrv_dev)) +/* +* Keep the original DMA mapping of the sub-device and +* restore it on Exynos DRM detach, otherwise the DMA +* framework considers it as IOMMU-less during the next +* probe (in case of deferred probe or modular build) +*/ + *dma_priv =to_dma_iommu_mapping (subdrv_dev); +if (*dma_priv)arm_iommu_detach_device (subdrv_dev); ret =arm_iommu_attach_device (subdrv_dev, priv->mapping);
@@ -98,19 +105,21 @@ static int drm_iommu_attach_device(struct drm_device *drm_dev,* mapping */ static void drm_iommu_detach_device (struct drm_device *drm_dev, -struct device *subdrv_dev) +struct device *subdrv_dev,void **dma_priv) {struct exynos_drm_private *priv = drm_dev->dev_private; -if (IS_ENABLED (CONFIG_ARM_DMA_USE_IOMMU )) +if (IS_ENABLED (CONFIG_ARM_DMA_USE_IOMMU )) {arm_iommu_detach_device (subdrv_dev); -else if (IS_ENABLED (CONFIG_IOMMU_DMA )) +arm_iommu_attach_device (subdrv_dev, *dma_priv); + }else if (IS_ENABLED (CONFIG_IOMMU_DMA ))iommu_detach_device (priv->mapping, subdrv_dev);clear_dma_max_seg_size (subdrv_dev); } -int exynos_drm_register_dma (struct drm_device *drm,struct device *dev) +int exynos_drm_register_dma (struct drm_device *drm,struct device *dev, +void **dma_priv) {struct exynos_drm_private *priv = drm->dev_private;
@@ -137,13 +146,14 @@ int exynos_drm_register_dma(struct drm_device *drm, struct device *dev) priv->mapping = mapping; } -return drm_iommu_attach_device (drm, dev); +return drm_iommu_attach_device (drm, dev, dma_priv); } -void exynos_drm_unregister_dma (struct drm_device *drm,struct device *dev) +void exynos_drm_unregister_dma (struct drm_device *drm,struct device *dev, +void **dma_priv) {if (IS_ENABLED (CONFIG_EXYNOS_IOMMU )) -drm_iommu_detach_device (drm, dev); +drm_iommu_detach_device (drm, dev, dma_priv); }void exynos_drm_cleanup_dma (struct drm_device *drm)
drivers/gpu/drm/exynos/exynos_drm_drv.h +4 -2
@@ -223,8 +223,10 @@ static inline bool is_drm_iommu_supported(struct drm_device *drm_dev)return priv->mapping ? true : false; } -int exynos_drm_register_dma (struct drm_device *drm,struct device *dev); -void exynos_drm_unregister_dma (struct drm_device *drm,struct device *dev); +int exynos_drm_register_dma (struct drm_device *drm,struct device *dev, +void **dma_priv); +void exynos_drm_unregister_dma (struct drm_device *drm,struct device *dev, +void **dma_priv);void exynos_drm_cleanup_dma (struct drm_device *drm);#ifdef CONFIG_DRM_EXYNOS_DPI
drivers/gpu/drm/exynos/exynos_drm_fimc.c +3 -2
@@ -97,6 +97,7 @@ struct fimc_scaler {struct fimc_context {struct exynos_drm_ipp ipp;struct drm_device *drm_dev; +void *dma_priv;struct device *dev;struct exynos_drm_ipp_task *task;struct exynos_drm_ipp_formats *formats;
@@ -1133,7 +1134,7 @@ static int fimc_bind(struct device *dev, struct device *master, void *data) ctx->drm_dev = drm_dev; ipp->drm_dev = drm_dev; -exynos_drm_register_dma (drm_dev, dev); +exynos_drm_register_dma (drm_dev, dev, &ctx->dma_priv); exynos_drm_ipp_register(dev, ipp, &ipp_funcs, DRM_EXYNOS_IPP_CAP_CROP | DRM_EXYNOS_IPP_CAP_ROTATE |
@@ -1153,7 +1154,7 @@ static void fimc_unbind(struct device *dev, struct device *master,struct exynos_drm_ipp *ipp = &ctx->ipp;exynos_drm_ipp_unregister (dev, ipp); -exynos_drm_unregister_dma (drm_dev, dev); +exynos_drm_unregister_dma (drm_dev, dev, &ctx->dma_priv); }static const struct component_ops fimc_component_ops = {
drivers/gpu/drm/exynos/exynos_drm_fimd.c +3 -2
@@ -167,6 +167,7 @@ static struct fimd_driver_data exynos5420_fimd_driver_data = {struct fimd_context {struct device *dev;struct drm_device *drm_dev; +void *dma_priv;struct exynos_drm_crtc *crtc;struct exynos_drm_plane planes[WINDOWS_NR ];struct exynos_drm_plane_config configs[WINDOWS_NR ];
@@ -1090,7 +1091,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)if (is_drm_iommu_supported (drm_dev))fimd_clear_channels (ctx->crtc); -return exynos_drm_register_dma (drm_dev, dev); +return exynos_drm_register_dma (drm_dev, dev, &ctx->dma_priv); } static void fimd_unbind(struct device *dev, struct device *master,
@@ -1100,7 +1101,7 @@ static void fimd_unbind(struct device *dev, struct device *master,fimd_disable (ctx->crtc); -exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev); +exynos_drm_unregister_dma (ctx->drm_dev, ctx->dev, &ctx->dma_priv);if (ctx->encoder)exynos_dpi_remove (ctx->encoder);
drivers/gpu/drm/exynos/exynos_drm_g2d.c +3 -2
@@ -232,6 +232,7 @@ struct g2d_runqueue_node {struct g2d_data {struct device *dev; +void *dma_priv;struct clk *gate_clk;void __iomem *regs;int irq;
@@ -1409,7 +1410,7 @@ static int g2d_bind(struct device *dev, struct device *master, void *data)return ret; } - ret =exynos_drm_register_dma (drm_dev, dev); + ret =exynos_drm_register_dma (drm_dev, dev, &g2d->dma_priv);if (ret <0 ) {dev_err (dev,"failed to enable iommu.\n" );g2d_fini_cmdlist (g2d);
@@ -1434,7 +1435,7 @@ static void g2d_unbind(struct device *dev, struct device *master, void *data) priv->g2d_dev =NULL ;cancel_work_sync (&g2d->runqueue_work); -exynos_drm_unregister_dma (g2d->drm_dev, dev); +exynos_drm_unregister_dma (g2d->drm_dev, dev, &g2d->dma_priv); }static const struct component_ops g2d_component_ops = {
drivers/gpu/drm/exynos/exynos_drm_gsc.c +3 -2
@@ -97,6 +97,7 @@ struct gsc_scaler {struct gsc_context {struct exynos_drm_ipp ipp;struct drm_device *drm_dev; +void *dma_priv;struct device *dev;struct exynos_drm_ipp_task *task;struct exynos_drm_ipp_formats *formats;
@@ -1169,7 +1170,7 @@ static int gsc_bind(struct device *dev, struct device *master, void *data) ctx->drm_dev = drm_dev; ctx->drm_dev = drm_dev; -exynos_drm_register_dma (drm_dev, dev); +exynos_drm_register_dma (drm_dev, dev, &ctx->dma_priv); exynos_drm_ipp_register(dev, ipp, &ipp_funcs, DRM_EXYNOS_IPP_CAP_CROP | DRM_EXYNOS_IPP_CAP_ROTATE |
@@ -1189,7 +1190,7 @@ static void gsc_unbind(struct device *dev, struct device *master,struct exynos_drm_ipp *ipp = &ctx->ipp;exynos_drm_ipp_unregister (dev, ipp); -exynos_drm_unregister_dma (drm_dev, dev); +exynos_drm_unregister_dma (drm_dev, dev, &ctx->dma_priv); }static const struct component_ops gsc_component_ops = {
drivers/gpu/drm/exynos/exynos_drm_rotator.c +3 -2
@@ -56,6 +56,7 @@ struct rot_variant {struct rot_context {struct exynos_drm_ipp ipp;struct drm_device *drm_dev; +void *dma_priv;struct device *dev;void __iomem *regs;struct clk *clock;
@@ -243,7 +244,7 @@ static int rotator_bind(struct device *dev, struct device *master, void *data) rot->drm_dev = drm_dev; ipp->drm_dev = drm_dev; -exynos_drm_register_dma (drm_dev, dev); +exynos_drm_register_dma (drm_dev, dev, &rot->dma_priv); exynos_drm_ipp_register(dev, ipp, &ipp_funcs, DRM_EXYNOS_IPP_CAP_CROP | DRM_EXYNOS_IPP_CAP_ROTATE,
@@ -261,7 +262,7 @@ static void rotator_unbind(struct device *dev, struct device *master,struct exynos_drm_ipp *ipp = &rot->ipp;exynos_drm_ipp_unregister (dev, ipp); -exynos_drm_unregister_dma (rot->drm_dev, rot->dev); +exynos_drm_unregister_dma (rot->drm_dev, rot->dev, &rot->dma_priv); }static const struct component_ops rotator_component_ops = {
drivers/gpu/drm/exynos/exynos_drm_scaler.c +4 -2
@@ -39,6 +39,7 @@ struct scaler_data {struct scaler_context {struct exynos_drm_ipp ipp;struct drm_device *drm_dev; +void *dma_priv;struct device *dev;void __iomem *regs;struct clk *clock[SCALER_MAX_CLK ];
@@ -450,7 +451,7 @@ static int scaler_bind(struct device *dev, struct device *master, void *data) scaler->drm_dev = drm_dev; ipp->drm_dev = drm_dev; -exynos_drm_register_dma (drm_dev, dev); +exynos_drm_register_dma (drm_dev, dev, &scaler->dma_priv); exynos_drm_ipp_register(dev, ipp, &ipp_funcs, DRM_EXYNOS_IPP_CAP_CROP | DRM_EXYNOS_IPP_CAP_ROTATE |
@@ -470,7 +471,8 @@ static void scaler_unbind(struct device *dev, struct device *master,struct exynos_drm_ipp *ipp = &scaler->ipp;exynos_drm_ipp_unregister (dev, ipp); -exynos_drm_unregister_dma (scaler->drm_dev, scaler->dev); +exynos_drm_unregister_dma (scaler->drm_dev, scaler->dev, + &scaler->dma_priv); }static const struct component_ops scaler_component_ops = {
drivers/gpu/drm/exynos/exynos_mixer.c +5 -2
@@ -94,6 +94,7 @@ struct mixer_context {struct platform_device *pdev;struct device *dev;struct drm_device *drm_dev; +void *dma_priv;struct exynos_drm_crtc *crtc;struct exynos_drm_plane planes[MIXER_WIN_NR ];unsigned long flags;
@@ -894,12 +895,14 @@ static int mixer_initialize(struct mixer_context *mixer_ctx, } } -return exynos_drm_register_dma (drm_dev, mixer_ctx->dev); +return exynos_drm_register_dma (drm_dev, mixer_ctx->dev, + &mixer_ctx->dma_priv); }static void mixer_ctx_remove (struct mixer_context *mixer_ctx) { -exynos_drm_unregister_dma (mixer_ctx->drm_dev, mixer_ctx->dev); +exynos_drm_unregister_dma (mixer_ctx->drm_dev, mixer_ctx->dev, + &mixer_ctx->dma_priv); }static int mixer_enable_vblank (struct exynos_drm_crtc *crtc)
drivers/gpu/drm/radeon/radeon_ttm.c +1 -1
@@ -528,7 +528,7 @@ static int radeon_ttm_tt_pin_userptr(struct ttm_tt *ttm) r = -ENOMEM ; nents =dma_map_sg (rdev->dev, ttm->sg->sgl, ttm->sg->nents, direction); -if (nents != ttm->sg->nents) +if (nents ==0 ) goto release_sg; drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages,
drivers/i2c/busses/i2c-hix5hd2.c +1 -0
@@ -477,6 +477,7 @@ static int hix5hd2_i2c_remove(struct platform_device *pdev)i2c_del_adapter (&priv->adap);pm_runtime_disable (priv->dev);pm_runtime_set_suspended (priv->dev); +clk_disable_unprepare (priv->clk);return 0 ; }
drivers/i2c/busses/i2c-nvidia-gpu.c +8 -12
@@ -8,6 +8,7 @@#include <linux/delay.h> #include <linux/i2c.h> #include <linux/interrupt.h> +#include <linux/iopoll.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/platform_device.h>
@@ -75,20 +76,15 @@ static void gpu_enable_i2c_bus(struct gpu_i2c_dev *i2cd)static int gpu_i2c_check_status (struct gpu_i2c_dev *i2cd) { -unsigned long target = jiffies +msecs_to_jiffies (1000 );u32 val; +int ret; -do { - val =readl (i2cd->regs +I2C_MST_CNTL ); -if (!(val &I2C_MST_CNTL_CYCLE_TRIGGER )) -break ; -if ((val &I2C_MST_CNTL_STATUS ) != -I2C_MST_CNTL_STATUS_BUS_BUSY ) -break ; -usleep_range (500 ,600 ); - }while (time_is_after_jiffies (target)); - -if (time_is_before_jiffies (target)) { + ret =readl_poll_timeout (i2cd->regs +I2C_MST_CNTL , val, + !(val &I2C_MST_CNTL_CYCLE_TRIGGER ) || + (val &I2C_MST_CNTL_STATUS ) !=I2C_MST_CNTL_STATUS_BUS_BUSY , +500 ,1000 *USEC_PER_MSEC ); + +if (ret) {dev_err (i2cd->dev,"i2c timeout error %x\n" , val);return -ETIMEDOUT ; }
drivers/infiniband/core/device.c +3 -1
@@ -896,7 +896,9 @@ static int add_one_compat_dev(struct ib_device *device, cdev->dev.parent = device->dev.parent;rdma_init_coredev (cdev, device,read_pnet (&rnet->net)); cdev->dev.release = compatdev_release; -dev_set_name (&cdev->dev,"%s" ,dev_name (&device->dev)); + ret =dev_set_name (&cdev->dev,"%s" ,dev_name (&device->dev)); +if (ret) + goto add_err; ret =device_add (&cdev->dev);if (ret)
drivers/infiniband/core/nldev.c +5 -1
@@ -917,6 +917,10 @@ static int nldev_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,nla_strlcpy (name, tb[RDMA_NLDEV_ATTR_DEV_NAME ],IB_DEVICE_NAME_MAX ); +if (strlen (name) ==0 ) { + err = -EINVAL ; + goto done; + } err =ib_device_rename (device, name); goto done; }
@@ -1513,7 +1517,7 @@ static int nldev_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,nla_strlcpy (ibdev_name, tb[RDMA_NLDEV_ATTR_DEV_NAME ],sizeof (ibdev_name)); -if (strchr (ibdev_name,'%' )) +if (strchr (ibdev_name,'%' ) ||strlen (ibdev_name) ==0 )return -EINVAL ;nla_strlcpy (type, tb[RDMA_NLDEV_ATTR_LINK_TYPE ],sizeof (type));
drivers/infiniband/core/security.c +3 -8
@@ -349,16 +349,11 @@ static struct ib_ports_pkeys *get_new_pps(const struct ib_qp *qp,else if (qp_pps) new_pps->main.pkey_index = qp_pps->main.pkey_index; -if ((qp_attr_mask &IB_QP_PKEY_INDEX ) && (qp_attr_mask &IB_QP_PORT )) +if (((qp_attr_mask &IB_QP_PKEY_INDEX ) && + (qp_attr_mask &IB_QP_PORT )) || + (qp_pps && qp_pps->main.state !=IB_PORT_PKEY_NOT_VALID )) new_pps->main.state =IB_PORT_PKEY_VALID ; -if (!(qp_attr_mask & (IB_QP_PKEY_INDEX |IB_QP_PORT )) && qp_pps) { - new_pps->main.port_num = qp_pps->main.port_num; - new_pps->main.pkey_index = qp_pps->main.pkey_index; -if (qp_pps->main.state !=IB_PORT_PKEY_NOT_VALID ) - new_pps->main.state =IB_PORT_PKEY_VALID ; - } -if (qp_attr_mask &IB_QP_ALT_PATH ) { new_pps->alt.port_num = qp_attr->alt_port_num; new_pps->alt.pkey_index = qp_attr->alt_pkey_index;
drivers/infiniband/core/umem_odp.c +1 -1
@@ -290,8 +290,8 @@ void ib_umem_odp_release(struct ib_umem_odp *umem_odp)mmu_interval_notifier_remove (&umem_odp->notifier);kvfree (umem_odp->dma_list);kvfree (umem_odp->page_list); -put_pid (umem_odp->tgid); } +put_pid (umem_odp->tgid);kfree (umem_odp); }EXPORT_SYMBOL (ib_umem_odp_release);
drivers/infiniband/core/user_mad.c +22 -11
@@ -1129,17 +1129,30 @@ static const struct file_operations umad_sm_fops = { .llseek = no_llseek, }; +static struct ib_umad_port *get_port (struct ib_device *ibdev, +struct ib_umad_device *umad_dev, +unsigned int port) +{ +if (!umad_dev) +return ERR_PTR (-EOPNOTSUPP ); +if (!rdma_is_port_valid (ibdev, port)) +return ERR_PTR (-EINVAL ); +if (!rdma_cap_ib_mad (ibdev, port)) +return ERR_PTR (-EOPNOTSUPP ); + +return &umad_dev->ports[port -rdma_start_port (ibdev)]; +} +static int ib_umad_get_nl_info (struct ib_device *ibdev,void *client_data,struct ib_client_nl_info *res) { -struct ib_umad_device *umad_dev = client_data; +struct ib_umad_port *port =get_port (ibdev, client_data, res->port); -if (!rdma_is_port_valid (ibdev, res->port)) -return -EINVAL ; +if (IS_ERR (port)) +return PTR_ERR (port); res->abi =IB_USER_MAD_ABI_VERSION ; - res->cdev = &umad_dev->ports[res->port -rdma_start_port (ibdev)].dev; - + res->cdev = &port->dev;return 0 ; }
@@ -1154,15 +1167,13 @@ MODULE_ALIAS_RDMA_CLIENT("umad");static int ib_issm_get_nl_info (struct ib_device *ibdev,void *client_data,struct ib_client_nl_info *res) { -struct ib_umad_device *umad_dev = -ib_get_client_data (ibdev, &umad_client); +struct ib_umad_port *port =get_port (ibdev, client_data, res->port); -if (!rdma_is_port_valid (ibdev, res->port)) -return -EINVAL ; +if (IS_ERR (port)) +return PTR_ERR (port); res->abi =IB_USER_MAD_ABI_VERSION ; - res->cdev = &umad_dev->ports[res->port -rdma_start_port (ibdev)].sm_dev; - + res->cdev = &port->sm_dev;return 0 ; }
drivers/infiniband/hw/mlx5/cq.c +25 -2
@@ -330,6 +330,22 @@ static void mlx5_handle_error_cqe(struct mlx5_ib_dev *dev,dump_cqe (dev, cqe); } +static void handle_atomics (struct mlx5_ib_qp *qp,struct mlx5_cqe64 *cqe64, +u16 tail,u16 head) +{ +u16 idx; + +do { + idx = tail & (qp->sq.wqe_cnt -1 ); +if (idx == head) +break ; + + tail = qp->sq.w_list[idx].next; + }while (1 ); + tail = qp->sq.w_list[idx].next; + qp->sq.last_poll = tail; +} +static void free_cq_buf (struct mlx5_ib_dev *dev,struct mlx5_ib_cq_buf *buf) {mlx5_frag_buf_free (dev->mdev, &buf->frag_buf);
@@ -368,7 +384,7 @@ static void get_sig_err_item(struct mlx5_sig_err_cqe *cqe, }static void sw_comp (struct mlx5_ib_qp *qp,int num_entries,struct ib_wc *wc, -int *npolled,int is_send) +int *npolled,bool is_send) {struct mlx5_ib_wq *wq;unsigned int cur;
@@ -383,10 +399,16 @@ static void sw_comp(struct mlx5_ib_qp *qp, int num_entries, struct ib_wc *wc,return ;for (i =0 ; i < cur && np < num_entries; i++) { - wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt -1 )]; +unsigned int idx; + + idx = (is_send) ? wq->last_poll : wq->tail; + idx &= (wq->wqe_cnt -1 ); + wc->wr_id = wq->wrid[idx]; wc->status =IB_WC_WR_FLUSH_ERR ; wc->vendor_err =MLX5_CQE_SYNDROME_WR_FLUSH_ERR ; wq->tail++; +if (is_send) + wq->last_poll = wq->w_list[idx].next; np++; wc->qp = &qp->ibqp; wc++;
@@ -473,6 +495,7 @@ static int mlx5_poll_one(struct mlx5_ib_cq *cq, wqe_ctr =be16_to_cpu (cqe64->wqe_counter); idx = wqe_ctr & (wq->wqe_cnt -1 );handle_good_req (wc, cqe64, wq, idx); +handle_atomics (*cur_qp, cqe64, wq->last_poll, idx); wc->wr_id = wq->wrid[idx]; wq->tail = wq->wqe_head[idx] +1 ; wc->status =IB_WC_SUCCESS ;
drivers/infiniband/hw/mlx5/main.c +3 -2
@@ -5666,9 +5666,10 @@ mlx5_ib_counter_alloc_stats(struct rdma_counter *counter)const struct mlx5_ib_counters *cnts =get_counters (dev, counter->port -1 ); -/* Q counters are in the beginning of all counters */ return rdma_alloc_hw_stats_struct (cnts->names, - cnts->num_q_counters, + cnts->num_q_counters + + cnts->num_cong_counters + + cnts->num_ext_ppcnt_counters,RDMA_HW_STATS_DEFAULT_LIFESPAN ); }
drivers/infiniband/hw/mlx5/mlx5_ib.h +1 -0
@@ -282,6 +282,7 @@ struct mlx5_ib_wq {unsigned head;unsigned tail;u16 cur_post; +u16 last_poll;void *cur_edge; };
drivers/infiniband/hw/mlx5/qp.c +5 -0
@@ -3728,6 +3728,7 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp, qp->sq.cur_post =0 ;if (qp->sq.wqe_cnt) qp->sq.cur_edge =get_sq_edge (&qp->sq,0 ); + qp->sq.last_poll =0 ; qp->db.db[MLX5_RCV_DBR ] =0 ; qp->db.db[MLX5_SND_DBR ] =0 ; }
@@ -6157,6 +6158,10 @@ struct ib_wq *mlx5_ib_create_wq(struct ib_pd *pd,if (udata->outlen && udata->outlen < min_resp_len)return ERR_PTR (-EINVAL ); +if (!capable (CAP_SYS_RAWIO ) && + init_attr->create_flags &IB_WQ_FLAGS_DELAY_DROP ) +return ERR_PTR (-EPERM ); + dev =to_mdev (pd->device);switch (init_attr->wq_type) {case IB_WQT_RQ :
drivers/infiniband/sw/rdmavt/cq.c +1 -1
@@ -327,7 +327,7 @@ void rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata)if (cq->ip)kref_put (&cq->ip->ref, rvt_release_mmap_info);else -vfree (cq->queue); +vfree (cq->kqueue); }/**
drivers/input/input.c +1 -0
@@ -190,6 +190,7 @@ static void input_repeat_key(struct timer_list *t) input_value_sync }; +input_set_timestamp (dev,ktime_get ());input_pass_values (dev, vals,ARRAY_SIZE (vals));if (dev->rep[REP_PERIOD ])
drivers/input/mouse/synaptics.c +1 -0
@@ -186,6 +186,7 @@ static const char * const smbus_pnp_ids[] = {"SYN3052" ,/* HP EliteBook 840 G4 */ "SYN3221" ,/* HP 15-ay000 */ "SYN323d" ,/* HP Spectre X360 13-w013dx */ +"SYN3257" ,/* HP Envy 13-ad105ng */ NULL };
drivers/input/touchscreen/raydium_i2c_ts.c +4 -4
@@ -432,7 +432,7 @@ static int raydium_i2c_write_object(struct i2c_client *client,return 0 ; } -static bool raydium_i2c_boot_trigger (struct i2c_client *client) +static int raydium_i2c_boot_trigger (struct i2c_client *client) {static const u8 cmd[7 ][6 ] = { {0x08 ,0x0C ,0x09 ,0x00 ,0x50 ,0xD7 },
@@ -457,10 +457,10 @@ static bool raydium_i2c_boot_trigger(struct i2c_client *client) } } -return false; +return 0 ; } -static bool raydium_i2c_fw_trigger (struct i2c_client *client) +static int raydium_i2c_fw_trigger (struct i2c_client *client) {static const u8 cmd[5 ][11 ] = { {0 ,0x09 ,0x71 ,0x0C ,0x09 ,0x00 ,0x50 ,0xD7 ,0 ,0 ,0 },
@@ -483,7 +483,7 @@ static bool raydium_i2c_fw_trigger(struct i2c_client *client) } } -return false; +return 0 ; }static int raydium_i2c_check_path (struct i2c_client *client)
drivers/iommu/dmar.c +2 -1
@@ -371,7 +371,8 @@ dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) {struct dmar_drhd_unit *dmaru; -list_for_each_entry_rcu (dmaru, &dmar_drhd_units, list) +list_for_each_entry_rcu (dmaru, &dmar_drhd_units, list, +dmar_rcu_check ())if (dmaru->segment == drhd->segment && dmaru->reg_base_addr == drhd->address)return dmaru;
drivers/iommu/intel-iommu-debugfs.c +35 -16
105 lines not on this page · raw message
drivers/iommu/intel-iommu.c +3 -1
@@ -5005,6 +5005,9 @@ int __init intel_iommu_init(void)down_write (&dmar_global_lock); +if (!no_iommu) +intel_iommu_debugfs_init (); +if (no_iommu || dmar_disabled) {/* * We exit the function here to ensure IOMMU's remapping and
@@ -5100,7 +5103,6 @@ int __init intel_iommu_init(void)pr_info ("Intel(R) Virtualization Technology for Directed I/O\n" ); intel_iommu_enabled =1 ; -intel_iommu_debugfs_init ();return 0 ;
drivers/media/usb/b2c2/flexcop-usb.c +3 -3
@@ -511,6 +511,9 @@ static int flexcop_usb_init(struct flexcop_usb *fc_usb)return ret; } +if (fc_usb->uintf->cur_altsetting->desc.bNumEndpoints <1 ) +return -ENODEV ; +switch (fc_usb->udev->speed) {case USB_SPEED_LOW :err ("cannot handle USB speed because it is too slow." );
@@ -544,9 +547,6 @@ static int flexcop_usb_probe(struct usb_interface *intf,struct flexcop_device *fc =NULL ;int ret; -if (intf->cur_altsetting->desc.bNumEndpoints <1 ) -return -ENODEV ; -if ((fc =flexcop_device_kmalloc (sizeof (struct flexcop_usb ))) ==NULL ) {err ("out of memory\n" );return -ENOMEM ;
drivers/media/usb/dvb-usb/dib0700_core.c +2 -2
@@ -818,7 +818,7 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)/* Starting in firmware 1.20, the RC info is provided on a bulk pipe */ -if (intf->altsetting[0 ].desc.bNumEndpoints < rc_ep +1 ) +if (intf->cur_altsetting->desc.bNumEndpoints < rc_ep +1 )return -ENODEV ; purb =usb_alloc_urb (0 ,GFP_KERNEL );
@@ -838,7 +838,7 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)* Some devices like the Hauppauge NovaTD model 52009 use an interrupt * endpoint, while others use a bulk one. */ - e = &intf->altsetting[0 ].endpoint[rc_ep].desc; + e = &intf->cur_altsetting->endpoint[rc_ep].desc;if (usb_endpoint_dir_in (e)) {if (usb_endpoint_xfer_bulk (e)) { pipe =usb_rcvbulkpipe (d->udev, rc_ep);
drivers/media/usb/gspca/ov519.c +10 -0
@@ -3477,6 +3477,11 @@ static void ov511_mode_init_regs(struct sd *sd)return ; } +if (alt->desc.bNumEndpoints <1 ) { + sd->gspca_dev.usb_err = -ENODEV ; +return ; + } + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);reg_w (sd, R51x_FIFO_PSIZE, packet_size >>5 );
@@ -3603,6 +3608,11 @@ static void ov518_mode_init_regs(struct sd *sd)return ; } +if (alt->desc.bNumEndpoints <1 ) { + sd->gspca_dev.usb_err = -ENODEV ; +return ; + } + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);ov518_reg_w32 (sd, R51x_FIFO_PSIZE, packet_size & ~7 ,2 );
drivers/media/usb/gspca/stv06xx/stv06xx.c +18 -1
@@ -282,6 +282,9 @@ static int stv06xx_start(struct gspca_dev *gspca_dev)return -EIO ; } +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); err =stv06xx_write_bridge (sd,STV_ISO_SIZE_L , packet_size);if (err <0 )
@@ -306,11 +309,21 @@ static int stv06xx_start(struct gspca_dev *gspca_dev)static int stv06xx_isoc_init (struct gspca_dev *gspca_dev) { +struct usb_interface_cache *intfc;struct usb_host_interface *alt;struct sd *sd = (struct sd *) gspca_dev; + intfc = gspca_dev->dev->actconfig->intf_cache[0 ]; + +if (intfc->num_altsetting <2 ) +return -ENODEV ; + + alt = &intfc->altsetting[1 ]; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +/* Start isoc bandwidth "negotiation" at max isoc bandwidth */ - alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; alt->endpoint[0 ].desc.wMaxPacketSize =cpu_to_le16 (sd->sensor->max_packet_size[gspca_dev->curr_mode]);
@@ -323,6 +336,10 @@ static int stv06xx_isoc_nego(struct gspca_dev *gspca_dev)struct usb_host_interface *alt;struct sd *sd = (struct sd *) gspca_dev; +/* +* Existence of altsetting and endpoint was verified in +* stv06xx_isoc_init() +*/ alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); min_packet_size = sd->sensor->min_packet_size[gspca_dev->curr_mode];
drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c +4 -0
@@ -185,6 +185,10 @@ static int pb0100_start(struct sd *sd) alt =usb_altnum_to_altsetting (intf, sd->gspca_dev.alt);if (!alt)return -ENODEV ; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);/* If we don't have enough bandwidth use a lower framerate */
drivers/media/usb/gspca/xirlink_cit.c +17 -1
@@ -1442,6 +1442,9 @@ static int cit_get_packet_size(struct gspca_dev *gspca_dev)return -EIO ; } +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +return le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); }
@@ -2626,6 +2629,7 @@ static int sd_start(struct gspca_dev *gspca_dev)static int sd_isoc_init (struct gspca_dev *gspca_dev) { +struct usb_interface_cache *intfc;struct usb_host_interface *alt;int max_packet_size;
@@ -2641,8 +2645,17 @@ static int sd_isoc_init(struct gspca_dev *gspca_dev)break ; } + intfc = gspca_dev->dev->actconfig->intf_cache[0 ]; + +if (intfc->num_altsetting <2 ) +return -ENODEV ; + + alt = &intfc->altsetting[1 ]; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +/* Start isoc bandwidth "negotiation" at max isoc bandwidth */ - alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; alt->endpoint[0 ].desc.wMaxPacketSize =cpu_to_le16 (max_packet_size);return 0 ;
@@ -2665,6 +2678,9 @@ static int sd_isoc_nego(struct gspca_dev *gspca_dev)break ; } +/* +* Existence of altsetting and endpoint was verified in sd_isoc_init() +*/ alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);if (packet_size <= min_packet_size)
drivers/media/usb/usbtv/usbtv-core.c +1 -1
@@ -56,7 +56,7 @@ int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size) ret =usb_control_msg (usbtv->udev, pipe,USBTV_REQUEST_REG ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , - value, index,NULL ,0 ,0 ); + value, index,NULL ,0 ,USB_CTRL_GET_TIMEOUT );if (ret <0 )return ret; }
drivers/media/usb/usbtv/usbtv-video.c +3 -2
@@ -800,7 +800,8 @@ static int usbtv_s_ctrl(struct v4l2_ctrl *ctrl) ret =usb_control_msg (usbtv->udev,usb_rcvctrlpipe (usbtv->udev,0 ),USBTV_CONTROL_REG ,USB_DIR_IN |USB_TYPE_VENDOR |USB_RECIP_DEVICE , -0 ,USBTV_BASE +0x0244 , (void *)data,3 ,0 ); +0 ,USBTV_BASE +0x0244 , (void *)data,3 , +USB_CTRL_GET_TIMEOUT );if (ret <0 ) goto error; }
@@ -851,7 +852,7 @@ static int usbtv_s_ctrl(struct v4l2_ctrl *ctrl) ret =usb_control_msg (usbtv->udev,usb_sndctrlpipe (usbtv->udev,0 ),USBTV_CONTROL_REG ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , -0 , index, (void *)data, size,0 ); +0 , index, (void *)data, size,USB_CTRL_SET_TIMEOUT ); error:if (ret <0 )
drivers/media/v4l2-core/v4l2-device.c +1 -0
@@ -179,6 +179,7 @@ static void v4l2_subdev_release(struct v4l2_subdev *sd)if (sd->internal_ops && sd->internal_ops->release) sd->internal_ops->release (sd); + sd->devnode =NULL ;module_put (owner); }
drivers/mmc/core/core.c +4 -1
@@ -1732,8 +1732,11 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,* the erase operation does not exceed the max_busy_timeout, we should * use R1B response. Or we need to prevent the host from doing hw busy * detection, which is done by converting to a R1 response instead. +* Note, some hosts requires R1B, which also means they are on their own +* when it comes to deal with the busy timeout. */ -if (card->host->max_busy_timeout && +if (!(card->host->caps &MMC_CAP_NEED_RSP_BUSY ) && + card->host->max_busy_timeout && busy_timeout > card->host->max_busy_timeout) { cmd.flags =MMC_RSP_SPI_R1 |MMC_RSP_R1 |MMC_CMD_AC ; }else {
drivers/mmc/core/mmc.c +5 -2
@@ -1910,9 +1910,12 @@ static int mmc_sleep(struct mmc_host *host)* If the max_busy_timeout of the host is specified, validate it against * the sleep cmd timeout. A failure means we need to prevent the host * from doing hw busy detection, which is done by converting to a R1 -* response instead of a R1B. +* response instead of a R1B. Note, some hosts requires R1B, which also +* means they are on their own when it comes to deal with the busy +* timeout. */ -if (host->max_busy_timeout && (timeout_ms > host->max_busy_timeout)) { +if (!(host->caps &MMC_CAP_NEED_RSP_BUSY ) && host->max_busy_timeout && + (timeout_ms > host->max_busy_timeout)) { cmd.flags =MMC_RSP_R1 |MMC_CMD_AC ; }else { cmd.flags =MMC_RSP_R1B |MMC_CMD_AC ;
drivers/mmc/core/mmc_ops.c +5 -3
@@ -538,10 +538,12 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,* If the cmd timeout and the max_busy_timeout of the host are both * specified, let's validate them. A failure means we need to prevent * the host from doing hw busy detection, which is done by converting -* to a R1 response instead of a R1B. +* to a R1 response instead of a R1B. Note, some hosts requires R1B, +* which also means they are on their own when it comes to deal with the +* busy timeout. */ -if (timeout_ms && host->max_busy_timeout && - (timeout_ms > host->max_busy_timeout)) +if (!(host->caps &MMC_CAP_NEED_RSP_BUSY ) && timeout_ms && + host->max_busy_timeout && (timeout_ms > host->max_busy_timeout)) use_r1b_resp = false; cmd.opcode =MMC_SWITCH ;
drivers/mmc/host/sdhci-omap.c +3 -0
@@ -1134,6 +1134,9 @@ static int sdhci_omap_probe(struct platform_device *pdev) host->mmc_host_ops.execute_tuning = sdhci_omap_execute_tuning; host->mmc_host_ops.enable_sdio_irq = sdhci_omap_enable_sdio_irq; +/* R1B responses is required to properly manage HW busy detection. */ + mmc->caps |=MMC_CAP_NEED_RSP_BUSY ; + ret =sdhci_setup_host (host);if (ret) goto err_put_sync;
drivers/mmc/host/sdhci-tegra.c +3 -0
@@ -1552,6 +1552,9 @@ static int sdhci_tegra_probe(struct platform_device *pdev)if (tegra_host->soc_data->nvquirks &NVQUIRK_ENABLE_DDR50 ) host->mmc->caps |=MMC_CAP_1_8V_DDR ; +/* R1B responses is required to properly manage HW busy detection. */ + host->mmc->caps |=MMC_CAP_NEED_RSP_BUSY ; +tegra_sdhci_parse_dt (host); tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power",
drivers/net/Kconfig +1 -0
@@ -106,6 +106,7 @@ config NET_FC config IFB tristate "Intermediate Functional Block support" depends on NET_CLS_ACT + select NET_REDIRECT ---help--- This is an intermediate driver that allows sharing of resources.
drivers/net/can/slcan.c +3 -0
@@ -625,7 +625,10 @@ static int slcan_open(struct tty_struct *tty) tty->disc_data =NULL ;clear_bit (SLF_INUSE , &sl->flags);slc_free_netdev (sl->dev); +/* do not call free_netdev before rtnl_unlock */ +rtnl_unlock ();free_netdev (sl->dev); +return err; err_exit:rtnl_unlock ();
drivers/net/dsa/mt7530.c +2 -2
@@ -566,7 +566,7 @@ mt7530_mib_reset(struct dsa_switch *ds)static void mt7530_port_set_status (struct mt7530_priv *priv,int port,int enable) { -u32 mask =PMCR_TX_EN |PMCR_RX_EN ; +u32 mask =PMCR_TX_EN |PMCR_RX_EN |PMCR_FORCE_LNK ;if (enable)mt7530_set (priv,MT7530_PMCR_P (port), mask);
@@ -1443,7 +1443,7 @@ static void mt7530_phylink_mac_config(struct dsa_switch *ds, int port, mcr_new &= ~(PMCR_FORCE_SPEED_1000 |PMCR_FORCE_SPEED_100 |PMCR_FORCE_FDX |PMCR_TX_FC_EN |PMCR_RX_FC_EN ); mcr_new |=PMCR_IFG_XMIT (1 ) |PMCR_MAC_MODE |PMCR_BACKOFF_EN | -PMCR_BACKPR_EN |PMCR_FORCE_MODE |PMCR_FORCE_LNK ; +PMCR_BACKPR_EN |PMCR_FORCE_MODE ;/* Are we connected to external phy */ if (port ==5 &&dsa_is_user_port (ds,5 ))
drivers/net/ethernet/amazon/ena/ena_netdev.c +60 -18
177 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.c +20 -8
@@ -6880,12 +6880,12 @@ static int bnxt_alloc_ctx_mem(struct bnxt *bp) } ena |=FUNC_BACKING_STORE_CFG_REQ_DFLT_ENABLES ; rc =bnxt_hwrm_func_backing_store_cfg (bp, ena); -if (rc) +if (rc) {netdev_err (bp->dev,"Failed configuring context mem, rc = %d.\n" , rc); -else - ctx->flags |=BNXT_CTX_FLAG_INITED ; - +return rc; + } + ctx->flags |=BNXT_CTX_FLAG_INITED ;return 0 ; }
@@ -7406,14 +7406,22 @@ static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp) pri2cos = &resp2->pri0_cos_queue_id;for (i =0 ; i <8 ; i++) {u8 queue_id = pri2cos[i]; +u8 queue_idx; +/* Per port queue IDs start from 0, 10, 20, etc */ + queue_idx = queue_id %10 ; +if (queue_idx >BNXT_MAX_QUEUE ) { + bp->pri2cos_valid = false; + goto qstats_done; + }for (j =0 ; j < bp->max_q; j++) {if (bp->q_ids[j] == queue_id) - bp->pri2cos[i] = j; + bp->pri2cos_idx[i] = queue_idx; } } bp->pri2cos_valid =1 ; } +qstats_done:mutex_unlock (&bp->hwrm_cmd_lock);return rc; }
@@ -11658,6 +11666,10 @@ static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh) bp->rx_nr_rings++; bp->cp_nr_rings++; } +if (rc) { + bp->tx_nr_rings =0 ; + bp->rx_nr_rings =0 ; + }return rc; }
@@ -11951,12 +11963,12 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)bnxt_hwrm_func_drv_unrgtr (bp);bnxt_free_hwrm_short_cmd_req (bp);bnxt_free_hwrm_resources (bp); -bnxt_free_ctx_mem (bp); -kfree (bp->ctx); - bp->ctx =NULL ;kfree (bp->fw_health); bp->fw_health =NULL ;bnxt_cleanup_pci (bp); +bnxt_free_ctx_mem (bp); +kfree (bp->ctx); + bp->ctx =NULL ; init_err_free:free_netdev (dev);
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -1
@@ -1714,7 +1714,7 @@ struct bnxt {u16 fw_rx_stats_ext_size;u16 fw_tx_stats_ext_size;u16 hw_ring_stats_size; -u8 pri2cos[8 ]; +u8 pri2cos_idx[8 ];u8 pri2cos_valid;u16 hwrm_max_req_len;
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c +10 -5
@@ -479,24 +479,26 @@ static int bnxt_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets) {struct bnxt *bp =netdev_priv (dev);struct ieee_ets *my_ets = bp->ieee_ets; +int rc; ets->ets_cap = bp->max_tc;if (!my_ets) { -int rc; -if (bp->dcbx_cap &DCB_CAP_DCBX_HOST )return 0 ; my_ets =kzalloc (sizeof (*my_ets),GFP_KERNEL );if (!my_ets) -return 0 ; +return -ENOMEM ; rc =bnxt_hwrm_queue_cos2bw_qcfg (bp, my_ets);if (rc) -return 0 ; + goto error; rc =bnxt_hwrm_queue_pri2cos_qcfg (bp, my_ets);if (rc) -return 0 ; + goto error; + +/* cache result */ + bp->ieee_ets = my_ets; } ets->cbs = my_ets->cbs;
@@ -505,6 +507,9 @@ static int bnxt_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets)memcpy (ets->tc_tsa, my_ets->tc_tsa,sizeof (ets->tc_tsa));memcpy (ets->prio_tc, my_ets->prio_tc,sizeof (ets->prio_tc));return 0 ; +error: +kfree (my_ets); +return rc; }static int bnxt_dcbnl_ieee_setets (struct net_device *dev,struct ieee_ets *ets)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +4 -4
@@ -589,25 +589,25 @@ static void bnxt_get_ethtool_stats(struct net_device *dev,if (bp->pri2cos_valid) {for (i =0 ; i <8 ; i++, j++) {long n = bnxt_rx_bytes_pri_arr[i].base_off + - bp->pri2cos[i]; + bp->pri2cos_idx[i]; buf[j] =le64_to_cpu (*(rx_port_stats_ext + n)); }for (i =0 ; i <8 ; i++, j++) {long n = bnxt_rx_pkts_pri_arr[i].base_off + - bp->pri2cos[i]; + bp->pri2cos_idx[i]; buf[j] =le64_to_cpu (*(rx_port_stats_ext + n)); }for (i =0 ; i <8 ; i++, j++) {long n = bnxt_tx_bytes_pri_arr[i].base_off + - bp->pri2cos[i]; + bp->pri2cos_idx[i]; buf[j] =le64_to_cpu (*(tx_port_stats_ext + n)); }for (i =0 ; i <8 ; i++, j++) {long n = bnxt_tx_pkts_pri_arr[i].base_off + - bp->pri2cos[i]; + bp->pri2cos_idx[i]; buf[j] =le64_to_cpu (*(tx_port_stats_ext + n)); }
drivers/net/ethernet/broadcom/genet/bcmgenet.c +5 -5
@@ -1972,6 +1972,8 @@ static void umac_enable_set(struct bcmgenet_priv *priv, u32 mask, bool enable)u32 reg; reg =bcmgenet_umac_readl (priv,UMAC_CMD ); +if (reg &CMD_SW_RESET ) +return ;if (enable) reg |= mask;else
@@ -1991,11 +1993,9 @@ static void reset_umac(struct bcmgenet_priv *priv)bcmgenet_rbuf_ctrl_set (priv,0 );udelay (10 ); -/* disable MAC while updating its registers */ -bcmgenet_umac_writel (priv,0 ,UMAC_CMD ); - -/* issue soft reset with (rg)mii loopback to ensure a stable rxclk */ -bcmgenet_umac_writel (priv,CMD_SW_RESET |CMD_LCL_LOOP_EN ,UMAC_CMD ); +/* issue soft reset and disable MAC while updating its registers */ +bcmgenet_umac_writel (priv,CMD_SW_RESET ,UMAC_CMD ); +udelay (2 ); }static void bcmgenet_intr_disable (struct bcmgenet_priv *priv)
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c +5 -1
@@ -132,8 +132,12 @@ int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,return -EINVAL ; } -/* disable RX */ +/* Can't suspend with WoL if MAC is still in reset */ reg =bcmgenet_umac_readl (priv,UMAC_CMD ); +if (reg &CMD_SW_RESET ) + reg &= ~CMD_SW_RESET ; + +/* disable RX */ reg &= ~CMD_RX_EN ;bcmgenet_umac_writel (priv, reg,UMAC_CMD );mdelay (10 );
drivers/net/ethernet/broadcom/genet/bcmmii.c +6 -34
@@ -95,6 +95,12 @@ void bcmgenet_mii_setup(struct net_device *dev)CMD_HD_EN | CMD_RX_PAUSE_IGNORE | CMD_TX_PAUSE_IGNORE); reg |= cmd_bits; +if (reg &CMD_SW_RESET ) { + reg &= ~CMD_SW_RESET ; +bcmgenet_umac_writel (priv, reg,UMAC_CMD ); +udelay (2 ); + reg |=CMD_TX_EN |CMD_RX_EN ; + }bcmgenet_umac_writel (priv, reg,UMAC_CMD ); }else {/* done if nothing has changed */
@@ -181,38 +187,8 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)const char *phy_name =NULL ;u32 id_mode_dis =0 ;u32 port_ctrl; -int bmcr =-1 ; -int ret;u32 reg; -/* MAC clocking workaround during reset of umac state machines */ - reg =bcmgenet_umac_readl (priv,UMAC_CMD ); -if (reg &CMD_SW_RESET ) { -/* An MII PHY must be isolated to prevent TXC contention */ -if (priv->phy_interface ==PHY_INTERFACE_MODE_MII ) { - ret =phy_read (phydev,MII_BMCR ); -if (ret >=0 ) { - bmcr = ret; - ret =phy_write (phydev,MII_BMCR , - bmcr |BMCR_ISOLATE ); - } -if (ret) { -netdev_err (dev,"failed to isolate PHY\n" ); -return ret; - } - } -/* Switch MAC clocking to RGMII generated clock */ -bcmgenet_sys_writel (priv,PORT_MODE_EXT_GPHY ,SYS_PORT_CTRL ); -/* Ensure 5 clks with Rx disabled -* followed by 5 clks with Reset asserted -*/ -udelay (4 ); - reg &= ~(CMD_SW_RESET |CMD_LCL_LOOP_EN ); -bcmgenet_umac_writel (priv, reg,UMAC_CMD ); -/* Ensure 5 more clocks before Rx is enabled */ -udelay (2 ); - } -switch (priv->phy_interface) {case PHY_INTERFACE_MODE_INTERNAL : phy_name ="internal PHY" ;
@@ -282,10 +258,6 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)bcmgenet_sys_writel (priv, port_ctrl,SYS_PORT_CTRL ); -/* Restore the MII PHY after isolation */ -if (bmcr >=0 ) -phy_write (phydev,MII_BMCR , bmcr); - priv->ext_phy = !priv->internal_phy && (priv->phy_interface !=PHY_INTERFACE_MODE_MOCA );
drivers/net/ethernet/chelsio/cxgb4/sge.c +10 -42
88 lines not on this page · raw message
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +1 -3
@@ -2845,9 +2845,7 @@ static inline u16 dpaa_get_headroom(struct dpaa_buffer_layout *bl) headroom = (u16)(bl->priv_data_size +DPAA_PARSE_RESULTS_SIZE +DPAA_TIME_STAMP_SIZE +DPAA_HASH_RESULTS_SIZE ); -return DPAA_FD_DATA_ALIGNMENT ?ALIGN (headroom, -DPAA_FD_DATA_ALIGNMENT ) : - headroom; +return ALIGN (headroom,DPAA_FD_DATA_ALIGNMENT ); }static int dpaa_eth_probe (struct platform_device *pdev)
drivers/net/ethernet/ibm/ibmvnic.c +22 -2
@@ -2142,6 +2142,8 @@ static void __ibmvnic_reset(struct work_struct *work) {struct ibmvnic_rwi *rwi;struct ibmvnic_adapter *adapter; +bool saved_state = false; +unsigned long flags;u32 reset_state;int rc =0 ;
@@ -2153,17 +2155,25 @@ static void __ibmvnic_reset(struct work_struct *work)return ; } - reset_state = adapter->state; - rwi =get_next_rwi (adapter);while (rwi) { +spin_lock_irqsave (&adapter->state_lock, flags); +if (adapter->state ==VNIC_REMOVING || adapter->state ==VNIC_REMOVED ) { +spin_unlock_irqrestore (&adapter->state_lock, flags);kfree (rwi); rc =EBUSY ;break ; } +if (!saved_state) { + reset_state = adapter->state; + adapter->state =VNIC_RESETTING ; + saved_state = true; + } +spin_unlock_irqrestore (&adapter->state_lock, flags); +if (rwi->reset_reason ==VNIC_RESET_CHANGE_PARAM ) {/* CHANGE_PARAM requestor holds rtnl_lock */ rc =do_change_param_reset (adapter, rwi, reset_state);
@@ -5091,6 +5101,7 @@ static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id) __ibmvnic_delayed_reset);INIT_LIST_HEAD (&adapter->rwi_list);spin_lock_init (&adapter->rwi_lock); +spin_lock_init (&adapter->state_lock);mutex_init (&adapter->fw_lock);init_completion (&adapter->init_done);init_completion (&adapter->fw_done);
@@ -5163,8 +5174,17 @@ static int ibmvnic_remove(struct vio_dev *dev) {struct net_device *netdev =dev_get_drvdata (&dev->dev);struct ibmvnic_adapter *adapter =netdev_priv (netdev); +unsigned long flags; + +spin_lock_irqsave (&adapter->state_lock, flags); +if (adapter->state ==VNIC_RESETTING ) { +spin_unlock_irqrestore (&adapter->state_lock, flags); +return -EBUSY ; + } adapter->state =VNIC_REMOVING ; +spin_unlock_irqrestore (&adapter->state_lock, flags); +rtnl_lock ();unregister_netdevice (netdev);
drivers/net/ethernet/ibm/ibmvnic.h +5 -1
@@ -941,7 +941,8 @@ enum vnic_state {VNIC_PROBING = 1,VNIC_CLOSING ,VNIC_CLOSED ,VNIC_REMOVING , - VNIC_REMOVED}; +VNIC_REMOVED , + VNIC_RESETTING};enum ibmvnic_reset_reason {VNIC_RESET_FAILOVER =1 , VNIC_RESET_MOBILITY,
@@ -1090,4 +1091,7 @@ struct ibmvnic_adapter {struct ibmvnic_tunables desired;struct ibmvnic_tunables fallback; + +/* Used for serializatin of state field */ +spinlock_t state_lock; };
drivers/net/ethernet/marvell/mvneta.c +1 -2
@@ -3036,11 +3036,10 @@ static int mvneta_poll(struct napi_struct *napi, int budget)/* For the case where the last mvneta_poll did not process all * RX packets */ - rx_queue =fls (((cause_rx_tx >>8 ) &0xff )); - cause_rx_tx |= pp->neta_armada3700 ? pp->cause_rx_tx : port->cause_rx_tx; + rx_queue =fls (((cause_rx_tx >>8 ) &0xff ));if (rx_queue) { rx_queue = rx_queue -1 ;if (pp->bm_priv)
drivers/net/ethernet/mellanox/mlx5/core/en.h +2 -0
@@ -371,6 +371,7 @@ enum {struct mlx5e_sq_wqe_info {u8 opcode; +u8 num_wqebbs;/* Auxiliary data for different opcodes. */ union {
@@ -1058,6 +1059,7 @@ int mlx5e_modify_rq_state(struct mlx5e_rq *rq, int curr_state, int next_state);void mlx5e_activate_rq (struct mlx5e_rq *rq);void mlx5e_deactivate_rq (struct mlx5e_rq *rq);void mlx5e_free_rx_descs (struct mlx5e_rq *rq); +void mlx5e_free_rx_in_progress_descs (struct mlx5e_rq *rq);void mlx5e_activate_icosq (struct mlx5e_icosq *icosq);void mlx5e_deactivate_icosq (struct mlx5e_icosq *icosq);
drivers/net/ethernet/mellanox/mlx5/core/en/health.h +1 -2
@@ -10,8 +10,7 @@static inline bool cqe_syndrome_needs_recover (u8 syndrome) { -return syndrome ==MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR || - syndrome ==MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR || +return syndrome ==MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR || syndrome ==MLX5_CQE_SYNDROME_LOCAL_PROT_ERR || syndrome ==MLX5_CQE_SYNDROME_WR_FLUSH_ERR ; }
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c +1 -1
@@ -90,7 +90,7 @@ static int mlx5e_rx_reporter_err_icosq_cqe_recover(void *ctx) goto out;mlx5e_reset_icosq_cc_pc (icosq); -mlx5e_free_rx_descs (rq); +mlx5e_free_rx_in_progress_descs (rq);clear_bit (MLX5E_SQ_STATE_RECOVERING , &icosq->state);mlx5e_activate_icosq (icosq);mlx5e_activate_rq (rq);
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h +4 -2
@@ -181,10 +181,12 @@ mlx5e_tx_dma_unmap(struct device *pdev, struct mlx5e_sq_dma *dma)static inline void mlx5e_rqwq_reset (struct mlx5e_rq *rq) { -if (rq->wq_type ==MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ ) +if (rq->wq_type ==MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ ) {mlx5_wq_ll_reset (&rq->mpwqe.wq); -else + rq->mpwqe.actual_wq_head =0 ; + }else {mlx5_wq_cyc_reset (&rq->wqe.wq); + } }/* SW parser related functions */
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c +1 -1
@@ -218,7 +218,7 @@ tx_sync_info_get(struct mlx5e_ktls_offload_context_tx *priv_tx,* this packet was already acknowledged and its record info * was released. */ - ends_before =before (tcp_seq + datalen,tls_record_start_seq (record)); + ends_before =before (tcp_seq + datalen -1 ,tls_record_start_seq (record));if (unlikely (tls_record_is_start_marker (record))) { ret = ends_before ?MLX5E_KTLS_SYNC_SKIP_NO_DATA :MLX5E_KTLS_SYNC_FAIL ;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +24 -7
@@ -822,6 +822,29 @@ int mlx5e_wait_for_min_rx_wqes(struct mlx5e_rq *rq, int wait_time)return -ETIMEDOUT ; } +void mlx5e_free_rx_in_progress_descs (struct mlx5e_rq *rq) +{ +struct mlx5_wq_ll *wq; +u16 head; +int i; + +if (rq->wq_type !=MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ ) +return ; + + wq = &rq->mpwqe.wq; + head = wq->head; + +/* Outstanding UMR WQEs (in progress) start at wq->head */ +for (i =0 ; i < rq->mpwqe.umr_in_progress; i++) { + rq->dealloc_wqe (rq, head); + head =mlx5_wq_ll_get_wqe_next_ix (wq, head); + } + + rq->mpwqe.actual_wq_head = wq->head; + rq->mpwqe.umr_in_progress =0 ; + rq->mpwqe.umr_completed =0 ; +} +void mlx5e_free_rx_descs (struct mlx5e_rq *rq) {__be16 wqe_ix_be;
@@ -829,14 +852,8 @@ void mlx5e_free_rx_descs(struct mlx5e_rq *rq)if (rq->wq_type ==MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ ) {struct mlx5_wq_ll *wq = &rq->mpwqe.wq; -u16 head = wq->head; -int i; -/* Outstanding UMR WQEs (in progress) start at wq->head */ -for (i =0 ; i < rq->mpwqe.umr_in_progress; i++) { - rq->dealloc_wqe (rq, head); - head =mlx5_wq_ll_get_wqe_next_ix (wq, head); - } +mlx5e_free_rx_in_progress_descs (rq);while (!mlx5_wq_ll_is_empty (wq)) {struct mlx5e_rx_wqe_ll *wqe;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -6
@@ -477,6 +477,7 @@ static inline void mlx5e_fill_icosq_frag_edge(struct mlx5e_icosq *sq,/* fill sq frag edge with nops to avoid wqe wrapping two pages */ for (; wi < edge_wi; wi++) { wi->opcode =MLX5_OPCODE_NOP ; + wi->num_wqebbs =1 ;mlx5e_post_nop (wq, sq->sqn, &sq->pc); } }
@@ -525,6 +526,7 @@ static int mlx5e_alloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix) umr_wqe->uctrl.xlt_offset =cpu_to_be16 (xlt_offset); sq->db.ico_wqe[pi].opcode =MLX5_OPCODE_UMR ; + sq->db.ico_wqe[pi].num_wqebbs =MLX5E_UMR_WQEBBS ; sq->db.ico_wqe[pi].umr.rq = rq; sq->pc +=MLX5E_UMR_WQEBBS ;
@@ -621,6 +623,7 @@ void mlx5e_poll_ico_cq(struct mlx5e_cq *cq) ci =mlx5_wq_cyc_ctr2ix (&sq->wq, sqcc); wi = &sq->db.ico_wqe[ci]; + sqcc += wi->num_wqebbs;if (last_wqe &&unlikely (get_cqe_opcode (cqe) !=MLX5_CQE_REQ )) { netdev_WARN_ONCE(cq->channel->netdev,
@@ -631,16 +634,12 @@ void mlx5e_poll_ico_cq(struct mlx5e_cq *cq)break ; } -if (likely (wi->opcode ==MLX5_OPCODE_UMR )) { - sqcc +=MLX5E_UMR_WQEBBS ; +if (likely (wi->opcode ==MLX5_OPCODE_UMR )) wi->umr.rq->mpwqe.umr_completed++; - }else if (likely (wi->opcode ==MLX5_OPCODE_NOP )) { - sqcc++; - }else { +else if (unlikely (wi->opcode !=MLX5_OPCODE_NOP ))netdev_WARN_ONCE (cq->channel->netdev,"Bad OPCODE in ICOSQ WQE info: 0x%x\n" , wi->opcode); - } }while (!last_wqe);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +3 -2
@@ -2432,10 +2432,11 @@ static int offload_pedit_fields(struct pedit_headers_action *hdrs,continue ;if (f->field_bsize ==32 ) { - mask_be32 = *(__be32 *)&mask; + mask_be32 = (__be32 )mask; mask = (__force unsigned long )cpu_to_le32 (be32_to_cpu (mask_be32)); }else if (f->field_bsize ==16 ) { - mask_be16 = *(__be16 *)&mask; + mask_be32 = (__be32 )mask; + mask_be16 = *(__be16 *)&mask_be32; mask = (__force unsigned long )cpu_to_le16 (be16_to_cpu (mask_be16)); }
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c +1 -0
@@ -78,6 +78,7 @@ void mlx5e_trigger_irq(struct mlx5e_icosq *sq)u16 pi =mlx5_wq_cyc_ctr2ix (wq, sq->pc); sq->db.ico_wqe[pi].opcode =MLX5_OPCODE_NOP ; + sq->db.ico_wqe[pi].num_wqebbs =1 ; nopwqe =mlx5e_post_nop (wq, sq->sqn, &sq->pc);mlx5e_notify_hw (wq, sq->pc, sq->uar_map, &nopwqe->ctrl); }
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c +0 -1
@@ -930,7 +930,6 @@ static int dr_actions_l2_rewrite(struct mlx5dr_domain *dmn, action->rewrite.data = (void *)ops; action->rewrite.num_of_actions = i; - action->rewrite.chunk->byte_size = i *sizeof (*ops); ret =mlx5dr_send_postsend_action (dmn, action);if (ret) {
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +2 -1
@@ -558,7 +558,8 @@ int mlx5dr_send_postsend_action(struct mlx5dr_domain *dmn,int ret; send_info.write.addr = (uintptr_t )action->rewrite.data; - send_info.write.length = action->rewrite.chunk->byte_size; + send_info.write.length = action->rewrite.num_of_actions * +DR_MODIFY_ACTION_SIZE ; send_info.write.lkey =0 ; send_info.remote_addr = action->rewrite.chunk->mr_addr; send_info.rkey = action->rewrite.chunk->rkey;
drivers/net/ethernet/mellanox/mlx5/core/vport.c +3 -0
@@ -1071,6 +1071,9 @@ int mlx5_core_modify_hca_vport_context(struct mlx5_core_dev *dev,MLX5_SET64 (hca_vport_context, ctx, port_guid, req->port_guid);if (req->field_select &MLX5_HCA_VPORT_SEL_NODE_GUID )MLX5_SET64 (hca_vport_context, ctx, node_guid, req->node_guid); +MLX5_SET (hca_vport_context, ctx, cap_mask1, req->cap_mask1); +MLX5_SET (hca_vport_context, ctx, cap_mask1_field_select, + req->cap_mask1_perm); err =mlx5_cmd_exec (dev, in, in_sz, out,sizeof (out)); ex:kfree (in);
drivers/net/ethernet/mellanox/mlxsw/pci.c +39 -11
75 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c +4 -4
@@ -637,12 +637,12 @@ static int mlxsw_sp_mr_vif_resolve(struct mlxsw_sp_mr_table *mr_table,return 0 ; err_erif_unresolve: -list_for_each_entry_from_reverse (erve, &mr_vif->route_evif_list, - vif_node) +list_for_each_entry_continue_reverse (erve, &mr_vif->route_evif_list, + vif_node)mlxsw_sp_mr_route_evif_unresolve (mr_table, erve); err_irif_unresolve: -list_for_each_entry_from_reverse (irve, &mr_vif->route_ivif_list, - vif_node) +list_for_each_entry_continue_reverse (irve, &mr_vif->route_ivif_list, + vif_node)mlxsw_sp_mr_route_ivif_unresolve (mr_table, irve); mr_vif->rif =NULL ;return err;
drivers/net/ethernet/realtek/r8169_main.c +8 -10
@@ -6579,7 +6579,7 @@ static int rtl_alloc_irq(struct rtl8169_private *tp)RTL_W8 (tp, Config2,RTL_R8 (tp, Config2) & ~MSIEnable);rtl_lock_config_regs (tp);/* fall through */ - case RTL_GIGA_MAC_VER_07 ... RTL_GIGA_MAC_VER_24: + case RTL_GIGA_MAC_VER_07 ... RTL_GIGA_MAC_VER_17: flags =PCI_IRQ_LEGACY ;break ;default :
@@ -6670,6 +6670,13 @@ static int r8169_mdio_register(struct rtl8169_private *tp)if (!tp->phydev) {mdiobus_unregister (new_bus);return -ENODEV ; + }else if (!tp->phydev->drv) { +/* Most chip versions fail with the genphy driver. +* Therefore ensure that the dedicated PHY driver is loaded. +*/ +dev_err (&pdev->dev,"realtek.ko not loaded, maybe it needs to be added to initramfs?\n" ); +mdiobus_unregister (new_bus); +return -EUNATCH ; }/* PHY will be woken up in rtl_open() */
@@ -6831,15 +6838,6 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)int chipset, region;int jumbo_max, rc; -/* Some tools for creating an initramfs don't consider softdeps, then -* r8169.ko may be in initramfs, but realtek.ko not. Then the generic -* PHY driver is used that doesn't work with most chip versions. -*/ -if (!driver_find ("RTL8201CP Ethernet" , &mdio_bus_type)) { -dev_err (&pdev->dev,"realtek.ko not loaded, maybe it needs to be added to initramfs?\n" ); -return -ENOENT ; - } - dev =devm_alloc_etherdev (&pdev->dev,sizeof (*tp));if (!dev)return -ENOMEM ;
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +1 -1
@@ -2279,7 +2279,7 @@ static int __init sxgbe_cmdline_opt(char *str)if (!str || !*str)return -EINVAL ;while ((opt =strsep (&str,"," )) !=NULL ) { -if (!strncmp (opt,"eee_timer:" ,6 )) { +if (!strncmp (opt,"eee_timer:" ,10 )) {if (kstrtoint (opt +10 ,0 , &eee_timer)) goto err; }
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -1
@@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform_device *pdev) ret =rk_gmac_clk_init (plat_dat);if (ret) -return ret; + goto err_remove_config_dt; ret =rk_gmac_powerup (plat_dat->bsp_priv);if (ret)
drivers/net/geneve.c +6 -2
@@ -1845,8 +1845,6 @@ static void geneve_destroy_tunnels(struct net *net, struct list_head *head)if (!net_eq (dev_net (geneve->dev), net))unregister_netdevice_queue (geneve->dev, head); } - -WARN_ON_ONCE (!list_empty (&gn->sock_list)); } static void __net_exit geneve_exit_batch_net(struct list_head *net_list)
@@ -1861,6 +1859,12 @@ static void __net_exit geneve_exit_batch_net(struct list_head *net_list)/* unregister the devices gathered above */ unregister_netdevice_many (&list);rtnl_unlock (); + +list_for_each_entry (net, net_list, exit_list) { +const struct geneve_net *gn =net_generic (net, geneve_net_id); + +WARN_ON_ONCE (!list_empty (&gn->sock_list)); + } }static struct pernet_operations geneve_net_ops = {
drivers/net/ifb.c +3 -3
@@ -75,7 +75,7 @@ static void ifb_ri_tasklet(unsigned long _txp) }while ((skb =__skb_dequeue (&txp->tq)) !=NULL ) { - skb->tc_redirected =0 ; + skb->redirected =0 ; skb->tc_skip_classify =1 ;u64_stats_update_begin (&txp->tsync);
@@ -96,7 +96,7 @@ static void ifb_ri_tasklet(unsigned long _txp)rcu_read_unlock (); skb->skb_iif = txp->dev->ifindex; -if (!skb->tc_from_ingress) { +if (!skb->from_ingress) {dev_queue_xmit (skb); }else {skb_pull_rcsum (skb, skb->mac_len);
@@ -243,7 +243,7 @@ static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev) txp->rx_bytes += skb->len;u64_stats_update_end (&txp->rsync); -if (!skb->tc_redirected || !skb->skb_iif) { +if (!skb->redirected || !skb->skb_iif) {dev_kfree_skb (skb); dev->stats.rx_dropped++;return NETDEV_TX_OK ;
drivers/net/macsec.c +3 -0
@@ -16,6 +16,7 @@#include <net/genetlink.h> #include <net/sock.h> #include <net/gro_cells.h> +#include <linux/if_arp.h> #include <uapi/linux/if_macsec.h>
@@ -3236,6 +3237,8 @@ static int macsec_newlink(struct net *net, struct net_device *dev, real_dev =__dev_get_by_index (net,nla_get_u32 (tb[IFLA_LINK ]));if (!real_dev)return -ENODEV ; +if (real_dev->type !=ARPHRD_ETHER ) +return -EINVAL ; dev->priv_flags |=IFF_MACSEC ;
drivers/net/phy/dp83867.c +20 -1
@@ -28,7 +28,8 @@#define DP83867_CTRL 0x1f/* Extended Registers */ -#define DP83867_CFG4 0x0031 +#define DP83867_FLD_THR_CFG 0x002e +#define DP83867_CFG4 0x0031#define DP83867_CFG4_SGMII_ANEG_MASK (BIT(5) | BIT(6))#define DP83867_CFG4_SGMII_ANEG_TIMER_11MS (3 << 5)#define DP83867_CFG4_SGMII_ANEG_TIMER_800US (2 << 5)
@@ -91,6 +92,7 @@#define DP83867_STRAP_STS2_CLK_SKEW_RX_MASK GENMASK(2, 0)#define DP83867_STRAP_STS2_CLK_SKEW_RX_SHIFT 0#define DP83867_STRAP_STS2_CLK_SKEW_NONE BIT(2) +#define DP83867_STRAP_STS2_STRAP_FLD BIT(10)/* PHY CTRL bits */ #define DP83867_PHYCR_FIFO_DEPTH_SHIFT 14
@@ -123,6 +125,9 @@/* CFG4 bits */ #define DP83867_CFG4_PORT_MIRROR_EN BIT(0) +/* FLD_THR_CFG */ +#define DP83867_FLD_THR_CFG_ENERGY_LOST_THR_MASK 0x7 +enum {DP83867_PORT_MIRROING_KEEP ,DP83867_PORT_MIRROING_EN ,
@@ -459,6 +464,20 @@ static int dp83867_config_init(struct phy_device *phydev)phy_clear_bits_mmd (phydev,DP83867_DEVADDR ,DP83867_CFG4 ,BIT (7 )); + bs =phy_read_mmd (phydev,DP83867_DEVADDR ,DP83867_STRAP_STS2 ); +if (bs &DP83867_STRAP_STS2_STRAP_FLD ) { +/* When using strap to enable FLD, the ENERGY_LOST_FLD_THR will +* be set to 0x2. This may causes the PHY link to be unstable - +* the default value 0x1 need to be restored. +*/ + ret =phy_modify_mmd (phydev,DP83867_DEVADDR , +DP83867_FLD_THR_CFG , +DP83867_FLD_THR_CFG_ENERGY_LOST_THR_MASK , +0x1 ); +if (ret) +return ret; + } +if (phy_interface_is_rgmii (phydev)) { val =phy_read (phydev,MII_DP83867_PHYCTRL );if (val <0 )
drivers/net/phy/mdio-bcm-unimac.c +2 -4
@@ -242,11 +242,9 @@ static int unimac_mdio_probe(struct platform_device *pdev)return -ENOMEM ; } - priv->clk =devm_clk_get (&pdev->dev,NULL ); -if (PTR_ERR (priv->clk) == -EPROBE_DEFER ) + priv->clk =devm_clk_get_optional (&pdev->dev,NULL ); +if (IS_ERR (priv->clk))return PTR_ERR (priv->clk); -else - priv->clk =NULL ; ret =clk_prepare_enable (priv->clk);if (ret)
drivers/net/phy/mdio-mux-bcm-iproc.c +6 -1
@@ -288,8 +288,13 @@ static int mdio_mux_iproc_suspend(struct device *dev)static int mdio_mux_iproc_resume (struct device *dev) {struct iproc_mdiomux_desc *md =dev_get_drvdata (dev); +int rc; -clk_prepare_enable (md->core_clk); + rc =clk_prepare_enable (md->core_clk); +if (rc) { +dev_err (md->dev,"failed to enable core clk\n" ); +return rc; + }mdio_mux_iproc_config (md);return 0 ;
drivers/net/usb/qmi_wwan.c +1 -0
@@ -1210,6 +1210,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x1435, 0xd182, 5)}, /* Wistron NeWeb D18 */ {QMI_FIXED_INTF(0x1435, 0xd191, 4)}, /* Wistron NeWeb D19Q1 */ {QMI_QUIRK_SET_DTR(0x1508, 0x1001, 4)}, /* Fibocom NL668 series */ + {QMI_FIXED_INTF(0x1690, 0x7588, 4)}, /* ASKEY WWHC050 */ {QMI_FIXED_INTF(0x16d8, 0x6003, 0)}, /* CMOTech 6003 */ {QMI_FIXED_INTF(0x16d8, 0x6007, 0)}, /* CMOTech CHE-628S */ {QMI_FIXED_INTF(0x16d8, 0x6008, 0)}, /* CMOTech CMU-301 */
drivers/net/veth.c +1 -1
@@ -328,7 +328,7 @@ static void veth_get_stats64(struct net_device *dev,rcu_read_lock (); peer =rcu_dereference (priv->peer);if (peer) { - tot->rx_dropped +=veth_stats_tx (peer, &packets, &bytes); +veth_stats_tx (peer, &packets, &bytes); tot->rx_bytes += bytes; tot->rx_packets += packets;
drivers/net/vxlan.c +9 -2
@@ -2778,10 +2778,19 @@ static void vxlan_vs_add_dev(struct vxlan_sock *vs, struct vxlan_dev *vxlan,/* Setup stats when device is created */ static int vxlan_init (struct net_device *dev) { +struct vxlan_dev *vxlan =netdev_priv (dev); +int err; + dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats);if (!dev->tstats)return -ENOMEM ; + err =gro_cells_init (&vxlan->gro_cells, dev); +if (err) { +free_percpu (dev->tstats); +return err; + } +return 0 ; }
@@ -3042,8 +3051,6 @@ static void vxlan_setup(struct net_device *dev) vxlan->dev = dev; -gro_cells_init (&vxlan->gro_cells, dev); -for (h =0 ; h <FDB_HASH_SIZE ; ++h) {spin_lock_init (&vxlan->hash_lock[h]);INIT_HLIST_HEAD (&vxlan->fdb_head[h]);
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h +1 -0
@@ -561,6 +561,7 @@ static inline void clear_pci_tx_desc_content(__le32 *__pdesc, int _size) rxmcs == DESC92C_RATE11M)struct phy_status_rpt { +u8 padding[2 ];u8 ch_corr[2 ];u8 cck_sig_qual_ofdm_pwdb_all;u8 cck_agc_rpt_ofdm_cfosho_a;
drivers/nfc/fdp/fdp.c +2 -3
@@ -184,7 +184,7 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type)const struct firmware *fw;struct sk_buff *skb;unsigned long len; -u8 max_size, payload_size; +int max_size, payload_size;int rc =0 ; if ((type == NCI_PATCH_TYPE_OTP && !info->otp_patch) ||
@@ -207,8 +207,7 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type)while (len) { - payload_size = min_t(unsigned long, (unsigned long) max_size, - len); + payload_size = min_t(unsigned long, max_size, len); skb =nci_skb_alloc (ndev, (NCI_CTRL_HDR_SIZE + payload_size),GFP_KERNEL );
drivers/of/of_mdio.c +1 -0
@@ -269,6 +269,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) rc =of_mdiobus_register_phy (mdio, child, addr);if (rc && rc != -ENODEV ) goto unregister; +break ; } } }
drivers/scsi/ipr.c +2 -1
@@ -9947,6 +9947,7 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, ioa_cfg->max_devs_supported = ipr_max_devs;if (ioa_cfg->sis64) { + host->max_channel =IPR_MAX_SIS64_BUSES ; host->max_id =IPR_MAX_SIS64_TARGETS_PER_BUS ; host->max_lun =IPR_MAX_SIS64_LUNS_PER_TARGET ;if (ipr_max_devs >IPR_MAX_SIS64_DEVS )
@@ -9955,6 +9956,7 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, + ((sizeof (struct ipr_config_table_entry64 ) * ioa_cfg->max_devs_supported))); }else { + host->max_channel =IPR_VSET_BUS ; host->max_id =IPR_MAX_NUM_TARGETS_PER_BUS ; host->max_lun =IPR_MAX_NUM_LUNS_PER_TARGET ;if (ipr_max_devs >IPR_MAX_PHYSICAL_DEVS )
@@ -9964,7 +9966,6 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, * ioa_cfg->max_devs_supported))); } - host->max_channel =IPR_VSET_BUS ; host->unique_id = host->host_no; host->max_cmd_len =IPR_MAX_CDB_LEN ; host->can_queue = ioa_cfg->max_cmds;
drivers/scsi/ipr.h +1 -0
@@ -1300,6 +1300,7 @@ struct ipr_resource_entry {#define IPR_ARRAY_VIRTUAL_BUS 0x1#define IPR_VSET_VIRTUAL_BUS 0x2#define IPR_IOAFP_VIRTUAL_BUS 0x3 +#define IPR_MAX_SIS64_BUSES 0x4#define IPR_GET_RES_PHYS_LOC (res) \ (((res)->bus << 24) | ((res)->target << 8) | (res)->lun)
drivers/scsi/sd.c +3 -1
@@ -3181,9 +3181,11 @@ static int sd_revalidate_disk(struct gendisk *disk)if (sd_validate_opt_xfer_size (sdkp, dev_max)) { q->limits.io_opt =logical_to_bytes (sdp, sdkp->opt_xfer_blocks); rw_max =logical_to_sectors (sdp, sdkp->opt_xfer_blocks); - }else + }else { + q->limits.io_opt =0 ; rw_max =min_not_zero (logical_to_sectors (sdp, dev_max), (sector_t )BLK_DEF_MAX_SECTORS ); + }/* Do not exceed controller limit */ rw_max =min (rw_max,queue_max_hw_sectors (q));
drivers/soc/samsung/exynos-chipid.c +1 -1
@@ -59,7 +59,7 @@ static int __init exynos_chipid_early_init(void) syscon =of_find_compatible_node (NULL ,NULL ,"samsung,exynos4210-chipid" );if (!syscon) -return ENODEV ; +return -ENODEV ; regmap =device_node_to_regmap (syscon);of_node_put (syscon);
drivers/staging/kpc2000/kpc2000/core.c +2 -2
@@ -110,10 +110,10 @@ static ssize_t cpld_reconfigure(struct device *dev, const char *buf, size_t count) {struct kp2000_device *pcard =dev_get_drvdata (dev); -long wr_val; +unsigned long wr_val;int rv; - rv =kstrtol (buf,0 , &wr_val); + rv =kstrtoul (buf,0 , &wr_val);if (rv <0 )return rv;if (wr_val >7 )
drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -0
@@ -32,6 +32,7 @@ static const struct usb_device_id rtw_usb_id_tbl[] = {/****** 8188EUS ********/ {USB_DEVICE(0x056e, 0x4008)}, /* Elecom WDC-150SU2M */ {USB_DEVICE(0x07b8, 0x8179)}, /* Abocom - Abocom */ + {USB_DEVICE(0x0B05, 0x18F0)}, /* ASUS USB-N10 Nano B1 */ {USB_DEVICE(0x2001, 0x330F)}, /* DLink DWA-125 REV D1 */ {USB_DEVICE(0x2001, 0x3310)}, /* Dlink DWA-123 REV D1 */ {USB_DEVICE(0x2001, 0x3311)}, /* DLink GO-USB-N150 REV B1 */
drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/siliabs,wfx.txt +4 -3
@@ -6,7 +6,7 @@ SPI You have to declare the WFxxx chip in your device tree. Required properties: - - compatible: Should be "silabs,wfx-spi" + - compatible: Should be "silabs,wf200" - reg: Chip select address of device - spi-max-frequency: Maximum SPI clocking speed of device in Hz - interrupts-extended: Should contain interrupt line (interrupt-parent +
@@ -15,6 +15,7 @@ Required properties: Optional properties: - reset-gpios: phandle of gpio that will be used to reset chip during probe. Without this property, you may encounter issues with warm boot. + (Legacy: when compatible == "silabs,wfx-spi", the gpio is inverted.) Please consult Documentation/devicetree/bindings/spi/spi-bus.txt for optional SPI connection related properties,
@@ -23,12 +24,12 @@ Example: &spi1 { wfx { - compatible = "silabs,wfx-spi"; + compatible = "silabs,wf200"; pinctrl-names = "default"; pinctrl-0 = <&wfx_irq &wfx_gpios>; interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>; wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; reg = <0>; spi-max-frequency = <42000000>; };
drivers/staging/wfx/bus_sdio.c +6 -9
@@ -200,25 +200,23 @@ static int wfx_sdio_probe(struct sdio_func *func,if (ret) goto err0; - ret =wfx_sdio_irq_subscribe (bus); -if (ret) - goto err1; - bus->core =wfx_init_common (&func->dev, &wfx_sdio_pdata, &wfx_sdio_hwbus_ops, bus);if (!bus->core) { ret = -EIO ; - goto err2; + goto err1; } + ret =wfx_sdio_irq_subscribe (bus); +if (ret) + goto err1; + ret =wfx_probe (bus->core);if (ret) - goto err3; + goto err2;return 0 ; -err3: -wfx_free_common (bus->core); err2:wfx_sdio_irq_unsubscribe (bus); err1:
@@ -234,7 +232,6 @@ static void wfx_sdio_remove(struct sdio_func *func)struct wfx_sdio_priv *bus =sdio_get_drvdata (func);wfx_release (bus->core); -wfx_free_common (bus->core);wfx_sdio_irq_unsubscribe (bus);sdio_claim_host (func);sdio_disable_func (func);
drivers/staging/wfx/bus_spi.c +24 -17
89 lines not on this page · raw message
drivers/staging/wfx/main.c +13 -8
@@ -261,6 +261,16 @@ static int wfx_send_pdata_pds(struct wfx_dev *wdev)return ret; } +static void wfx_free_common (void *data) +{ +struct wfx_dev *wdev = data; + +mutex_destroy (&wdev->rx_stats_lock); +mutex_destroy (&wdev->conf_mutex); +wfx_tx_queues_deinit (wdev); +ieee80211_free_hw (wdev->hw); +} + struct wfx_dev *wfx_init_common(struct device *dev, const struct wfx_platform_data *pdata, const struct hwbus_ops *hwbus_ops,
@@ -326,15 +336,10 @@ struct wfx_dev *wfx_init_common(struct device *dev,wfx_init_hif_cmd (&wdev->hif_cmd);wfx_tx_queues_init (wdev); -return wdev; -} +if (devm_add_action_or_reset (dev, wfx_free_common, wdev)) +return NULL ; -void wfx_free_common (struct wfx_dev *wdev) -{ -mutex_destroy (&wdev->rx_stats_lock); -mutex_destroy (&wdev->conf_mutex); -wfx_tx_queues_deinit (wdev); -ieee80211_free_hw (wdev->hw); +return wdev; }int wfx_probe (struct wfx_dev *wdev)
drivers/staging/wfx/main.h +0 -1
@@ -34,7 +34,6 @@ struct wfx_dev *wfx_init_common(struct device *dev,const struct wfx_platform_data *pdata, const struct hwbus_ops *hwbus_ops, void *hwbus_priv); -void wfx_free_common (struct wfx_dev *wdev);int wfx_probe (struct wfx_dev *wdev);void wfx_release (struct wfx_dev *wdev);
drivers/staging/wfx/queue.c +8 -8
@@ -132,12 +132,12 @@ static void wfx_tx_queue_clear(struct wfx_dev *wdev, struct wfx_queue *queue,spin_lock_bh (&queue->queue.lock);while ((item =__skb_dequeue (&queue->queue)) !=NULL )skb_queue_head (gc_list, item); -spin_lock_bh (&stats->pending.lock); +spin_lock_nested (&stats->pending.lock,1 );for (i =0 ; i <ARRAY_SIZE (stats->link_map_cache); ++i) { stats->link_map_cache[i] -= queue->link_map_cache[i]; queue->link_map_cache[i] =0 ; } -spin_unlock_bh (&stats->pending.lock); +spin_unlock (&stats->pending.lock);spin_unlock_bh (&queue->queue.lock); }
@@ -213,9 +213,9 @@ void wfx_tx_queue_put(struct wfx_dev *wdev, struct wfx_queue *queue, ++queue->link_map_cache[tx_priv->link_id]; -spin_lock_bh (&stats->pending.lock); +spin_lock_nested (&stats->pending.lock,1 ); ++stats->link_map_cache[tx_priv->link_id]; -spin_unlock_bh (&stats->pending.lock); +spin_unlock (&stats->pending.lock);spin_unlock_bh (&queue->queue.lock); }
@@ -244,11 +244,11 @@ static struct sk_buff *wfx_tx_queue_get(struct wfx_dev *wdev,__skb_unlink (skb, &queue->queue); --queue->link_map_cache[tx_priv->link_id]; -spin_lock_bh (&stats->pending.lock); +spin_lock_nested (&stats->pending.lock,1 );__skb_queue_tail (&stats->pending, skb);if (!--stats->link_map_cache[tx_priv->link_id]) wakeup_stats = true; -spin_unlock_bh (&stats->pending.lock); +spin_unlock (&stats->pending.lock); }spin_unlock_bh (&queue->queue.lock);if (wakeup_stats)
@@ -266,10 +266,10 @@ int wfx_pending_requeue(struct wfx_dev *wdev, struct sk_buff *skb)spin_lock_bh (&queue->queue.lock); ++queue->link_map_cache[tx_priv->link_id]; -spin_lock_bh (&stats->pending.lock); +spin_lock_nested (&stats->pending.lock,1 ); ++stats->link_map_cache[tx_priv->link_id];__skb_unlink (skb, &stats->pending); -spin_unlock_bh (&stats->pending.lock); +spin_unlock (&stats->pending.lock);__skb_queue_tail (&queue->queue, skb);spin_unlock_bh (&queue->queue.lock);return 0 ;
drivers/staging/wlan-ng/hfa384x_usb.c +2 -0
@@ -3372,6 +3372,8 @@ static void hfa384x_int_rxmonitor(struct wlandevice *wlandev, WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN)) {pr_debug ("overlen frm: len=%zd\n" , skblen -sizeof (struct p80211_caphdr )); + +return ; } skb =dev_alloc_skb (skblen);
drivers/staging/wlan-ng/prism2usb.c +1 -0
@@ -180,6 +180,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)cancel_work_sync (&hw->link_bh);cancel_work_sync (&hw->commsqual_bh); +cancel_work_sync (&hw->usb_work);/* Now we complete any outstanding commands
Lines of this file are not shown. View the raw message.
fs/afs/rxrpc.c +8 -63
71 lines not on this page · raw message
lib/crypto/chacha20poly1305-selftest.c +1703 -14
1,717 lines not on this page · raw message
net/dsa/tag_8021q.c +0 -43
43 lines not on this page · raw message
net/hsr/hsr_netlink.c +42 -28
70 lines not on this page · raw message
net/ipv4/ip_gre.c +87 -18
105 lines not on this page · raw message
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c +1 -1
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c +1 -1
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c +2 -0
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h +1 -1
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.