Linux 5.4.8
Greg KH
maintainerI'm announcing the release of the 5.4.8 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/Makefile | 5 Documentation/devicetree/writing-schema.rst | 6 Makefile | 2 arch/arm/boot/compressed/libfdt_env.h | 4 arch/arm/mm/dma-mapping-nommu.c | 2 arch/arm/mm/proc-v7-bugs.c | 3 arch/mips/include/asm/barrier.h | 13 arch/mips/include/asm/futex.h | 15 arch/powerpc/Makefile | 4 arch/powerpc/boot/libfdt_env.h | 2 arch/powerpc/include/asm/fixmap.h | 7 arch/powerpc/include/asm/spinlock.h | 4 arch/powerpc/include/asm/uaccess.h | 9 arch/powerpc/kernel/eeh_driver.c | 4 arch/powerpc/kernel/security.c | 21 - arch/powerpc/kernel/time.c | 2 arch/powerpc/kernel/traps.c | 15 arch/powerpc/lib/string_32.S | 4 arch/powerpc/lib/string_64.S | 6 arch/powerpc/mm/book3s64/hash_utils.c | 10 arch/powerpc/platforms/pseries/cmm.c | 5 arch/powerpc/platforms/pseries/papr_scm.c | 4 arch/powerpc/platforms/pseries/setup.c | 7 arch/powerpc/tools/relocs_check.sh | 2 arch/powerpc/tools/unrel_branch_check.sh | 4 arch/s390/kernel/machine_kexec.c | 2 arch/s390/kernel/perf_cpum_sf.c | 17 arch/s390/kernel/unwind_bc.c | 5 arch/s390/mm/maccess.c | 12 arch/um/drivers/virtio_uml.c | 8 drivers/cdrom/cdrom.c | 12 drivers/clk/clk-gpio.c | 2 drivers/clk/pxa/clk-pxa27x.c | 1 drivers/clk/qcom/clk-rcg2.c | 2 drivers/clk/qcom/clk-smd-rpm.c | 3 drivers/clk/qcom/common.c | 3 drivers/clocksource/asm9260_timer.c | 4 drivers/clocksource/timer-of.c | 2 drivers/dma/fsl-qdma.c | 3 drivers/dma/xilinx/xilinx_dma.c | 1 drivers/gpio/gpio-lynxpoint.c | 6 drivers/gpio/gpio-mpc8xxx.c | 6 drivers/gpio/gpio-mxc.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 37 + drivers/gpu/drm/drm_property.c | 2 drivers/hid/hid-core.c | 4 drivers/hid/hid-ids.h | 2 drivers/hid/hid-logitech-hidpp.c | 3 drivers/hid/hid-quirks.c | 1 drivers/hid/hid-rmi.c | 3 drivers/hid/i2c-hid/i2c-hid-core.c | 2 drivers/hv/vmbus_drv.c | 2 drivers/i2c/busses/i2c-stm32f7.c | 19 drivers/input/touchscreen/atmel_mxt_ts.c | 4 drivers/input/touchscreen/ili210x.c | 7 drivers/input/touchscreen/st1232.c | 22 - drivers/iommu/arm-smmu-v3.c | 8 drivers/iommu/rockchip-iommu.c | 7 drivers/iommu/tegra-smmu.c | 11 drivers/irqchip/irq-bcm7038-l1.c | 4 drivers/irqchip/irq-ingenic.c | 15 drivers/leds/leds-an30259a.c | 7 drivers/leds/leds-lm3692x.c | 13 drivers/leds/trigger/ledtrig-netdev.c | 5 drivers/mailbox/imx-mailbox.c | 19 drivers/md/bcache/btree.c | 2 drivers/md/md.c | 1 drivers/misc/habanalabs/memory.c | 30 + drivers/mmc/host/sdhci-esdhc.h | 14 drivers/mmc/host/sdhci-of-esdhc.c | 232 ++++++++++-- drivers/net/bonding/bond_main.c | 3 drivers/net/dsa/bcm_sf2_cfp.c | 6 drivers/net/dsa/sja1105/sja1105_main.c | 8 drivers/net/dsa/sja1105/sja1105_static_config.c | 7 drivers/net/ethernet/amazon/ena/ena_netdev.c | 10 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 63 ++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 93 +++- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 38 + drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h | 4 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 8 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 4 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 21 - drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 4 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | 1 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c | 18 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c | 7 drivers/net/ethernet/mellanox/mlxsw/reg.h | 1 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 9 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 3 drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 14 drivers/net/gtp.c | 111 +++-- drivers/net/hamradio/6pack.c | 4 drivers/net/hamradio/mkiss.c | 4 drivers/net/hyperv/rndis_filter.c | 6 drivers/net/phy/aquantia_main.c | 2 drivers/net/phy/phylink.c | 3 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 24 - drivers/nvdimm/btt.c | 8 drivers/of/unittest.c | 4 drivers/pci/hotplug/rpaphp_core.c | 38 + drivers/platform/x86/Kconfig | 1 drivers/platform/x86/intel_pmc_core.c | 17 drivers/platform/x86/peaq-wmi.c | 66 ++- drivers/ptp/ptp_clock.c | 31 - drivers/ptp/ptp_private.h | 2 drivers/s390/crypto/zcrypt_error.h | 2 drivers/scsi/NCR5380.c | 6 drivers/scsi/atari_scsi.c | 6 drivers/scsi/csiostor/csio_lnode.c | 15 drivers/scsi/hisi_sas/hisi_sas_main.c | 9 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 drivers/scsi/iscsi_tcp.c | 8 drivers/scsi/lpfc/lpfc_ct.c | 6 drivers/scsi/lpfc/lpfc_els.c | 42 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 12 drivers/scsi/lpfc/lpfc_nportdisc.c | 4 drivers/scsi/lpfc/lpfc_scsi.c | 5 drivers/scsi/lpfc/lpfc_sli.c | 18 drivers/scsi/mac_scsi.c | 2 drivers/scsi/mpt3sas/mpt3sas_ctl.c | 15 drivers/scsi/pm8001/pm80xx_hwi.c | 2 drivers/scsi/scsi_debug.c | 5 drivers/scsi/scsi_trace.c | 11 drivers/scsi/sun3_scsi.c | 4 drivers/scsi/ufs/ufs-sysfs.c | 15 drivers/scsi/ufs/ufshcd.c | 35 + drivers/scsi/ufs/ufshcd.h | 2 drivers/scsi/zorro_esp.c | 11 drivers/target/iscsi/iscsi_target.c | 10 drivers/target/iscsi/iscsi_target_auth.c | 2 drivers/target/target_core_transport.c | 15 drivers/vhost/vsock.c | 4 drivers/watchdog/imx7ulp_wdt.c | 16 drivers/watchdog/watchdog_dev.c | 80 +--- fs/cifs/cifsfs.c | 13 fs/cifs/cifsglob.h | 5 fs/cifs/connect.c | 46 +- fs/cifs/file.c | 74 ++- fs/ext4/inode.c | 16 fs/f2fs/f2fs.h | 24 - fs/f2fs/file.c | 1 fs/f2fs/inode.c | 6 fs/f2fs/namei.c | 15 fs/f2fs/segment.c | 21 - fs/hugetlbfs/inode.c | 33 + fs/io_uring.c | 10 fs/iomap/direct-io.c | 4 fs/jbd2/commit.c | 4 fs/ocfs2/acl.c | 4 fs/quota/dquot.c | 29 - fs/userfaultfd.c | 18 fs/xfs/xfs_log.c | 2 include/linux/dma-direct.h | 12 include/linux/dma-mapping.h | 8 include/linux/hrtimer.h | 14 include/linux/libfdt_env.h | 3 include/linux/posix-clock.h | 19 include/linux/quota.h | 2 include/linux/rculist_nulls.h | 37 + include/linux/skbuff.h | 6 include/linux/thread_info.h | 2 include/net/dst.h | 13 include/net/dst_ops.h | 3 include/net/inet_hashtables.h | 12 include/net/sch_generic.h | 5 include/net/sock.h | 5 include/scsi/iscsi_proto.h | 1 kernel/dma/coherent.c | 16 kernel/dma/debug.c | 1 kernel/sysctl.c | 2 kernel/time/hrtimer.c | 11 kernel/time/posix-clock.c | 31 - net/bridge/br_netfilter_hooks.c | 3 net/bridge/br_nf_core.c | 3 net/bridge/netfilter/ebtables.c | 33 - net/decnet/dn_route.c | 6 net/ipv4/icmp.c | 11 net/ipv4/inet_connection_sock.c | 2 net/ipv4/inet_diag.c | 3 net/ipv4/inet_hashtables.c | 16 net/ipv4/inetpeer.c | 12 net/ipv4/ip_tunnel.c | 2 net/ipv4/ip_vti.c | 2 net/ipv4/route.c | 9 net/ipv4/tcp_ipv4.c | 7 net/ipv4/tcp_output.c | 11 net/ipv4/udp.c | 2 net/ipv4/xfrm4_policy.c | 5 net/ipv6/addrconf.c | 8 net/ipv6/inet6_connection_sock.c | 2 net/ipv6/ip6_gre.c | 2 net/ipv6/ip6_tunnel.c | 4 net/ipv6/ip6_vti.c | 2 net/ipv6/route.c | 22 - net/ipv6/sit.c | 2 net/ipv6/xfrm6_policy.c | 5 net/netfilter/ipvs/ip_vs_xmit.c | 2 net/sched/act_mirred.c | 22 - net/sched/cls_api.c | 31 - net/sched/cls_flower.c | 12 net/sched/sch_fq.c | 17 net/sctp/stream.c | 30 - net/sctp/transport.c | 2 net/smc/af_smc.c | 14 scripts/dtc/Makefile | 4 scripts/kallsyms.c | 2 security/apparmor/label.c | 12 security/tomoyo/realpath.c | 32 - tools/perf/builtin-diff.c | 4 tools/perf/builtin-script.c | 2 tools/perf/util/perf_regs.h | 2 tools/power/x86/intel-speed-select/isst-config.c | 9 tools/power/x86/intel-speed-select/isst-core.c | 8 tools/power/x86/intel-speed-select/isst-display.c | 3 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c | 2 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c | 4 tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c | 2 tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c | 4 tools/testing/selftests/powerpc/tm/tm-signal-sigreturn-nt.c | 4 tools/testing/selftests/vm/config | 1 224 files changed, 1811 insertions(+), 866 deletions(-)
Aaron Ma (1):
HID: i2c-hid: fix no irq after reset on raydium 3118
Adrian Hunter (1):
perf script: Fix brstackinsn for AUXTRACE
Alain Volmat (1):
i2c: stm32f7: fix & reorder remove & probe error handling
Amit Cohen (1):
mlxsw: spectrum_router: Skip loopback RIFs during MAC validation
Anatol Pomazau (1):
scsi: iscsi: Don't send data to unbound connection
Anders Kaseorg (1):
Revert "iwlwifi: assign directly to iwl_trans->cfg in QuZ detection"
Anders Roxell (1):
selftests: vm: add fragment CONFIG_TEST_VMALLOC
Andrew Donnellan (1):
powerpc: Fix __clear_user() with KUAP enabled
Andrew Duggan (1):
HID: rmi: Check that the RMI_STARTED bit is set before unregistering the RMI transport device
Andy Shevchenko (1):
gpio: lynxpoint: Setup correct IRQ handlers
Aneesh Kumar K.V (3):
powerpc/pseries: Don't fail hash page table insert for bolted mapping powerpc/book3s64/hash: Add cond_resched to avoid soft lockup warning powerpc/book3s/mm: Update Oops message to print the correct translation in use
Anson Huang (1):
gpio: mxc: Only get the second IRQ when there is more than one IRQ
Anthony Steinhauser (1):
powerpc/security/book3s64: Report L1TF status in sysfs
Antonio Messina (1):
udp: fix integer overflow while computing available space in sk_rcvbuf
Arnaldo Carvalho de Melo (2):
perf diff: Use llabs() with 64-bit values
perf regs: Make perf_reg_name() return "unknown" instead of NULL
Bart Van Assche (3):
scsi: tracing: Fix handling of TRANSFER LENGTH == 0 for READ(6) and WRITE(6)
scsi: target: core: Release SPC-2 reservations when closing a session
scsi: target: iscsi: Wait for all commands to finish before freeing a session
Bean Huo (1):
scsi: ufs: fix potential bug which ends in system hang
Blaž Hrastnik (1):
HID: Improve Windows Precision Touchpad detection.
Brian Foster (1):
xfs: fix mount failure crash on invalid iclog memory access
Cambda Zhu (1):
tcp: Fix highest_sack and highest_sack_seq
Can Guo (1):
scsi: ufs: Fix up auto hibern8 enablement
Chao Yu (2):
f2fs: fix to update time in lazytime mode
f2fs: fix to update dir's i_pino during cross_rename
Christophe Leroy (1):
powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt()
Chuhong Yuan (2):
leds: an30259a: add a check for devm_regmap_init_i2c clocksource/drivers/asm9260: Add a check for of_clk_get
Colin Ian King (1):
apparmor: fix unsigned len comparison with less than zero
Coly Li (1):
bcache: at least try to shrink 1 node in bch_mca_scan()
Dan Carpenter (1):
scsi: csiostor: Don't enable IRQs too early
Daniel Baluta (2):
mailbox: imx: Clear the right interrupts at shutdown
mailbox: imx: Fix Tx doorbell shutdown path
Daniel Vetter (1):
drm: limit to INT_MAX in create_blob ioctl
David Disseldorp (1):
scsi: target: compare full CHAP_A Algorithm strings
David Hildenbrand (1):
powerpc/pseries/cmm: Implement release() function for sysfs device
Davide Caratti (1):
net/sched: add delete_empty() to filters and use it in cls_flower
Diego Elio Pettenò (1):
cdrom: respect device capabilities during opening action
Ding Xiang (1):
ocfs2: fix passing zero to 'PTR_ERR' warning
Dmitry Torokhov (3):
platform/x86: peaq-wmi: switch to using polled mode of input devices
Input: st1232 - do not reset the chip too early
Input: ili210x - handle errors from input_mt_init_slots()
Doug Berger (1):
ARM: 8937/1: spectre-v2: remove Brahma-B53 from hardening
Erhard Furtner (1):
of: unittest: fix memory leak in attach_node_and_children
Eric Dumazet (10):
dma-debug: add a schedule point in debug_dma_dump_mappings() 6pack,mkiss: fix possible deadlock
netfilter: bridge: make sure to pull arp header in br_nf_forward_arp()
inetpeer: fix data-race in inet_putpeer / inet_putpeer
net: add a READ_ONCE() in skb_peek_tail()
net: icmp: fix data-race in cmp_global_allow()
hrtimer: Annotate lockless access to timer->state
net_sched: sch_fq: properly set sk->sk_pacing_status
tcp: do not send empty skb from tcp_write_xmit()
tcp/dccp: fix possible race __inet_lookup_established()
Evan Green (1):
Input: atmel_mxt_ts - disable IRQ across suspend
Ezequiel Garcia (1):
iommu: rockchip: Free domain on .domain_free
Fabio Estevam (1):
watchdog: imx7ulp: Fix reboot hang
Finn Thain (2):
scsi: atari_scsi: sun3_scsi: Set sg_tablesize to 1 instead of SG_NONE
scsi: NCR5380: Add disconnect_mask module parameter
Florian Fainelli (2):
irqchip/irq-bcm7038-l1: Enable parent IRQ if necessary
net: dsa: bcm_sf2: Fix IP fragment location and behavior
Florian Westphal (1):
netfilter: ebtables: compat: reject all padding in matches/watchers
Gayatri Kammela (2):
platform/x86: intel_pmc_core: Fix the SoC naming inconsistency
platform/x86: intel_pmc_core: Add Comet Lake (CML) platform support to intel_pmc_core driver
Geert Uytterhoeven (1):
clocksource/drivers/timer-of: Use unique device name instead of timer
Greg Kroah-Hartman (4):
Revert "MIPS: futex: Restore \n after sync instructions" Revert "MIPS: futex: Emit Loongson3 sync workarounds within asm" Revert "powerpc/vcpu: Assume dedicated processors as non-preempt" Linux 5.4.8
Guido Günther (1):
leds: lm3692x: Handle failure to probe the regulator
Gustavo L. F. Walbon (1):
powerpc/security: Fix wrong message when RFI Flush is disable
Haiyang Zhang (1):
hv_netvsc: Fix tx_table init in rndis_set_subchannel()
Hangbin Liu (9):
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
ip6_gre: do not confirm neighbor when do pmtu update
gtp: do not confirm neighbor when do pmtu update
net/dst: add new function skb_dst_update_pmtu_no_confirm
tunnel: do not confirm neighbor when do pmtu update
vti: do not confirm neighbor when do pmtu update
sit: do not confirm neighbor when do pmtu update
net/dst: do not confirm neighbor for vxlan and geneve pmtu update ipv6/addrconf: only check invalid header values when NETLINK_F_STRICT_CHK is set
Hans de Goede (1):
HID: logitech-hidpp: Silence intermittent get_battery_capacity errors
Harald Freudenberger (1):
s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR
Ido Schimmel (1):
mlxsw: spectrum: Use dedicated policer for VRRP packets
James Smart (9):
scsi: lpfc: Fix spinlock_irq issues in lpfc_els_flush_cmd()
scsi: lpfc: Fix discovery failures when target device connectivity bounces
scsi: lpfc: Fix locking on mailbox command completion
scsi: lpfc: Fix list corruption in lpfc_sli_get_iocbq
scsi: lpfc: Fix hardlockup in lpfc_abort_handler
scsi: lpfc: Fix SLI3 hba in loop mode not discovering devices
scsi: lpfc: Fix unexpected error messages during RSCN handling
scsi: lpfc: Fix duplicate unreg_rpi error in port offline flow
scsi: lpfc: fix: Coverity: lpfc_cmpl_els_rsp(): Null pointer dereferences
Jan Kara (1):
jbd2: Fix statistics for the number of logged blocks
Jan Stancek (2):
iomap: fix return value of iomap_dio_bio_actor on 32bit systems mm/hugetlbfs: fix for_each_hstate() loop in init_hugetlbfs_fs()
Jason Gunthorpe (1):
drm/amdgpu: Call find_vma under mmap_sem
Jean-Philippe Brucker (1):
iommu/arm-smmu-v3: Don't display an error when IRQ lines are missing
Jeffrey Hugo (2):
clk: qcom: smd: Add missing pnoc clock
clk: qcom: Allow constant ratio freq tables for rcg
Jens Axboe (1):
io_uring: io_allocate_scq_urings() should return a sane state
Jinke Fan (1):
HID: quirks: Add quirk for HP MSU1465 PIXART OEM mouse
Johannes Berg (1):
um: virtio: Keep reading on -EAGAIN
Johannes Weiner (1):
kernel: sysctl: make drop_caches write-only
Jonathan Lemon (1):
bnxt: apply computed clamp value for coalece parameter
Julia Cartwright (1):
watchdog: prevent deferral of watchdogd wakeup on RT
Kars de Jong (1):
scsi: zorro_esp: Limit DMA transfers to 65536 bytes (except on Fastlane)
Kees Cook (2):
dma-mapping: Add vmap checks to dma_map_single()
uaccess: disallow > INT_MAX copy sizes
Kevin Hao (1):
watchdog: Fix the race between the release of watchdog_core_data and cdev
Konstantin Khlebnikov (1):
fs/quota: handle overflows of sysctl fs.quota.* and report as unsigned long
Krzysztof Kozlowski (1):
dmaengine: fsl-qdma: Handle invalid qdma-queue0 IRQ
Luo Jiaxing (1):
scsi: hisi_sas: Delete the debugfs folder of hisi_sas when the probe fails
Madalin Bucur (1):
net: phy: aquantia: add suspend / resume ops for AQR105
Mahesh Bandewar (1):
bonding: fix active-backup transition after link failure
Marcelo Ricardo Leitner (1):
sctp: fix err handling of stream initialization
Martin Blumenstingl (1):
net: stmmac: dwmac-meson8b: Fix the RGMII TX delay on Meson8b/8m2 SoCs
Martin Schiller (1):
leds: trigger: netdev: fix handling on interface rename
Masahiro Yamada (2):
scripts/kallsyms: fix definitely-lost memory leak
libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h
Matthew Bobrowski (2):
ext4: update direct I/O read lock pattern for IOCB_NOWAIT
ext4: iomap that extends beyond EOF should be marked dirty
Maurizio Lombardi (1):
scsi: scsi_debug: num_tgts must be >= 0
Michael Chan (2):
bnxt_en: Fix MSIX request logic for RDMA driver.
bnxt_en: Free context memory in the open path if firmware has been reset.
Michael Ellerman (4):
powerpc/pseries: Mark accumulate_stolen_time() as notrace selftests/powerpc: Fixup clobbers for TM tests powerpc/tools: Don't quote $objdump in scripts selftests/powerpc: Skip tm-signal-sigreturn-nt if TM not available
Michael Hennerich (1):
clk: clk-gpio: propagate rate change to parent
Michael Kelley (1):
Drivers: hv: vmbus: Fix crash handler reset of Hyper-V synic
Mike Kravetz (1):
mm/hugetlbfs: fix error handling when setting up mounts
Mike Rapoport (1):
userfaultfd: require CAP_SYS_PTRACE for UFFD_FEATURE_EVENT_FORK
Nathan Chancellor (1):
powerpc: Don't add -mabi= flags when building with Clang
Netanel Belgazal (1):
net: ena: fix napi handler misbehavior when the napi budget is zero
Nicholas Graumann (1):
dmaengine: xilinx_dma: Clear desc_pendingcount in xilinx_dma_reset
Nicolas Saenz Julienne (1):
dma-direct: check for overflows on 32 bit DMA addresses
Omer Shpigelman (1):
habanalabs: skip VA block list update in reset flow
Paul Cercueil (1):
irqchip: ingenic: Error out if IRQ domain creation failed
Paulo Alcantara (SUSE) (1):
cifs: Fix use-after-free bug in cifs_reconnect()
Pavel Modilaynen (1):
dtc: Use pkg-config to locate libyaml
Qian Cai (1):
libnvdimm/btt: fix variable 'rc' set but not used
Rahul Lakkireddy (1):
cxgb4/cxgb4vf: fix flow control display for auto negotiation
Rob Herring (1):
dt-bindings: Improve validation build error handling
Robert Jarzmik (1):
clk: pxa: fix one of the pxa RTC clocks
Ronnie Sahlberg (1):
cifs: move cifsFileInfo_put logic into a work-queue
Russell King (3):
gpio/mpc8xxx: fix qoriq GPIO reading
net: marvell: mvpp2: phylink requires the link interrupt
net: phylink: fix interface passed to mac_link_up
Sahitya Tummala (1):
f2fs: Fix deadlock in f2fs_gc() context during atomic files handling
Sam Bobroff (1):
powerpc/eeh: differentiate duplicate detection message
Shmulik Ladkani (1):
net/sched: act_mirred: Pull mac prior redir to non mac_header_xmit device
Sreekanth Reddy (2):
scsi: mpt3sas: Fix clear pending bit in ioctl status
scsi: mpt3sas: Reject NVMe Encap cmnds to unsupported HBA
Srinivas Pandruvada (2):
tools/power/x86/intel-speed-select: Remove warning for unused result tools/power/x86/intel-speed-select: Ignore missing config level
Stefano Garzarella (1):
vhost/vsock: accept only packets with the right dst_cid
Subhash Jadavani (1):
scsi: ufs: Fix error handing during hibern8 enter
Taehee Yoo (4):
gtp: fix wrong condition in gtp_genl_dump_pdp()
gtp: avoid zero size hashtable
gtp: fix an use-after-free in ipv4_pdp_find()
gtp: do not allow adding duplicate tid and ms_addr pdp context
Tetsuo Handa (1):
tomoyo: Don't use nifty names on sockets.
Thierry Reding (1):
iommu/tegra-smmu: Fix page tables in > 4 GiB memory
Thomas Richter (1):
s390/cpum_sf: Check for SDBT and SDB consistency
Tyrel Datwyler (4):
PCI: rpaphp: Fix up pointer to first drc-info entry
PCI: rpaphp: Don't rely on firmware feature to imply drc-info support
PCI: rpaphp: Annotate and correctly byte swap DRC properties
PCI: rpaphp: Correctly match ibm, my-drc-index to drc-name when using drc-info
Ursula Braun (1):
net/smc: add fallback check to connect()
Vaibhav Jain (1):
powerpc/papr_scm: Fix an off-by-one check in papr_scm_meta_{get, set}Vasily Gorbik (2):
s390/unwind: filter out unreliable bogus %r14
s390: disable preemption when switching to nodat stack with CALL_ON_STACK
Vasundhara Volam (5):
bnxt_en: Return error if FW returns more data than dump length
bnxt_en: Fix bp->fw_health allocation and free logic.
bnxt_en: Remove unnecessary NULL checks for fw_health
bnxt_en: Fix the logic that creates the health reporters.
bnxt_en: Add missing devlink health reporters for VFs.
Vladimir Murzin (1):
dma-mapping: fix handling of dma-ranges for reserved memory (again)
Vladimir Oltean (2):
gpio: mpc8xxx: Don't overwrite default irq_set_type callback
net: dsa: sja1105: Reconcile the meaning of TPID and TPID2 for E/T and P/Q/R/S
Vladis Dronov (1):
ptp: fix the race between the release of ptp_clock and cdev
Vladyslav Tarasiuk (1):
net/mlxfw: Fix out-of-memory error in mfa2 flash burning
Xiang Chen (1):
scsi: hisi_sas: Replace in_softirq() check in hisi_sas_task_exec()
Yangbo Lu (2):
mmc: sdhci-of-esdhc: fix up erratum A-008171 workaround
mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
Yufen Yu (1):
md: make sure desc_nr less than MD_SB_DISKS
peter chang (1):
scsi: pm80xx: Fix for SATA device discovery
Greg KH
maintainerDocumentation/devicetree/bindings/Makefile +4 -1
@@ -12,7 +12,6 @@ $(obj)/%.example.dts: $(src)/%.yaml FORCE $(call if_changed,chk_binding) DT_TMP_SCHEMA := processed-schema.yaml -extra-y += $(DT_TMP_SCHEMA) quiet_cmd_mk_schema = SCHEMA $@ cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(real-prereqs)
@@ -26,8 +25,12 @@ DT_DOCS = $(shell \ DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS)) +ifeq ($(CHECK_DTBS),) extra-y += $(patsubst $(src)/%.yaml,%.example.dts, $(DT_SCHEMA_FILES)) extra-y += $(patsubst $(src)/%.yaml,%.example.dt.yaml, $(DT_SCHEMA_FILES)) +endif $(obj)/$(DT_TMP_SCHEMA): $(DT_SCHEMA_FILES) FORCE $(call if_changed,mk_schema) + +extra-y += $(DT_TMP_SCHEMA)
Documentation/devicetree/writing-schema.rst +4 -2
@@ -130,11 +130,13 @@ binding schema. All of the DT binding documents can be validated using the make dt_binding_check -In order to perform validation of DT source files, use the `dtbs_check` target:: +In order to perform validation of DT source files, use the ``dtbs_check`` target:: make dtbs_check -This will first run the `dt_binding_check` which generates the processed schema. +Note that ``dtbs_check`` will skip any binding schema files with errors. It is +necessary to use ``dt_binding_check`` to get all the validation errors in the +binding schema files. It is also possible to run checks with a single schema file by setting the ``DT_SCHEMA_FILES`` variable to a specific schema file.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/compressed/libfdt_env.h +3 -1
@@ -2,11 +2,13 @@#ifndef _ARM_LIBFDT_ENV_H#define _ARM_LIBFDT_ENV_H +#include <linux/limits.h> #include <linux/types.h> #include <linux/string.h> #include <asm/byteorder.h> -#define INT_MAX ((int)(~0U>>1)) +#define INT32_MAX S32_MAX +#define UINT32_MAX U32_MAXtypedef __be16 fdt16_t ;typedef __be32 fdt32_t ;
arch/arm/mm/dma-mapping-nommu.c +1 -1
@@ -35,7 +35,7 @@ static void *arm_nommu_dma_alloc(struct device *dev, size_t size, unsigned long attrs) { -void *ret =dma_alloc_from_global_coherent (size, dma_handle); +void *ret =dma_alloc_from_global_coherent (dev, size, dma_handle);/* * dma_alloc_from_global_coherent() may fail because:
arch/arm/mm/proc-v7-bugs.c +3 -0
@@ -65,6 +65,9 @@ static void cpu_v7_spectre_init(void)break ;#ifdef CONFIG_ARM_PSCI +case ARM_CPU_PART_BRAHMA_B53 : +/* Requires no workaround */ +break ;default :/* Other ARM CPUs require no workaround */ if (read_cpuid_implementor () ==ARM_CPU_IMP_ARM )
arch/mips/include/asm/barrier.h +6 -7
@@ -218,14 +218,13 @@* ordering will be done by smp_llsc_mb() and friends. */ #if defined(CONFIG_WEAK_REORDERING_BEYOND_LLSC ) && defined(CONFIG_SMP ) -# define __WEAK_LLSC_MB sync -# define smp_llsc_mb () \ - __asm__ __volatile__(__stringify(__WEAK_LLSC_MB) : : :"memory") -# define __LLSC_CLOBBER +#define __WEAK_LLSC_MB " sync \n" +#define smp_llsc_mb () __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory") +#define __LLSC_CLOBBER#else -# define __WEAK_LLSC_MB -# define smp_llsc_mb () do { } while (0) -# define __LLSC_CLOBBER "memory" +#define __WEAK_LLSC_MB " \n" +#define smp_llsc_mb () do { } while (0) +#define __LLSC_CLOBBER "memory"#endif #ifdef CONFIG_CPU_CAVIUM_OCTEON
arch/mips/include/asm/futex.h +8 -7
@@ -16,7 +16,6 @@#include <asm/barrier.h> #include <asm/compiler.h> #include <asm/errno.h> -#include <asm/sync.h> #include <asm/war.h> #define __futex_atomic_op (insn, ret, oldval, uaddr, oparg) \
@@ -33,7 +32,7 @@" .set arch=r4000 \n" \"2: sc $1, %2 \n" \" beqzl $1, 1b \n" \ - __stringify(__WEAK_LLSC_MB) " \n" \ + __WEAK_LLSC_MB \"3: \n" \" .insn \n" \" .set pop \n" \
@@ -51,19 +50,19 @@ "i" (-EFAULT) \ : "memory"); \ } else if (cpu_has_llsc) { \ + loongson_llsc_mb(); \ __asm__ __volatile__( \ " .set push \n" \ " .set noat \n" \ " .set push \n" \ " .set "MIPS_ISA_ARCH_LEVEL" \n" \ - " " __SYNC(full, loongson3_war) " \n" \ "1: "user_ll("%1", "%4")" # __futex_atomic_op\n" \ " .set pop \n" \ " " insn " \n" \ " .set "MIPS_ISA_ARCH_LEVEL" \n" \ "2: "user_sc("$1", "%2")" \n" \" beqz $1, 1b \n" \ - __stringify(__WEAK_LLSC_MB) " \n" \ + __WEAK_LLSC_MB \"3: \n" \" .insn \n" \" .set pop \n" \
@@ -148,7 +147,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr," .set arch=r4000 \n" "2: sc $1, %2 \n" " beqzl $1, 1b \n" - __stringify(__WEAK_LLSC_MB) " \n" + __WEAK_LLSC_MB"3: \n" " .insn \n" " .set pop \n"
@@ -165,13 +164,13 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, "i" (-EFAULT) : "memory"); }else if (cpu_has_llsc) { +loongson_llsc_mb (); __asm__ __volatile__("# futex_atomic_cmpxchg_inatomic \n" " .set push \n" " .set noat \n" " .set push \n" " .set " MIPS_ISA_ARCH_LEVEL " \n" - " " __SYNC(full, loongson3_war) " \n" "1: "user_ll("%1", "%3")" \n"" bne %1, %z4, 3f \n" " .set pop \n"
@@ -179,7 +178,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr," .set " MIPS_ISA_ARCH_LEVEL " \n" "2: "user_sc("$1", "%2")" \n"" beqz $1, 1b \n" - "3: " __SYNC_ELSE(full, loongson3_war, __WEAK_LLSC_MB) "\n" + __WEAK_LLSC_MB +"3: \n" " .insn \n" " .set pop \n" " .section .fixup,\"ax\" \n"
@@ -194,6 +194,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), "i" (-EFAULT) : "memory"); +loongson_llsc_mb (); }else return -ENOSYS ;
arch/powerpc/Makefile +4 -0
@@ -91,11 +91,13 @@ MULTIPLEWORD := -mmultiple endif ifdef CONFIG_PPC64 +ifndef CONFIG_CC_IS_CLANG cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(call cc-option,-mabi=elfv1) cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(call cc-option,-mcall-aixdesc) aflags-$(CONFIG_CPU_BIG_ENDIAN) += $(call cc-option,-mabi=elfv1) aflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mabi=elfv2 endif +endif ifndef CONFIG_CC_IS_CLANG cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mno-strict-align
@@ -141,6 +143,7 @@ endif endif CFLAGS-$(CONFIG_PPC64) := $(call cc-option,-mtraceback=no) +ifndef CONFIG_CC_IS_CLANG ifdef CONFIG_CPU_LITTLE_ENDIAN CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2,$(call cc-option,-mcall-aixdesc)) AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2)
@@ -149,6 +152,7 @@ CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcall-aixdesc) AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) endif +endif CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,$(call cc-option,-mminimal-toc)) CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
arch/powerpc/boot/libfdt_env.h +2 -0
@@ -6,6 +6,8 @@#include <string.h> #define INT_MAX ((int)(~0U>>1)) +#define UINT32_MAX ((u32)~0U) +#define INT32_MAX ((s32)(UINT32_MAX >> 1))#include "of.h"
arch/powerpc/include/asm/fixmap.h +6 -1
@@ -77,7 +77,12 @@ enum fixed_addresses {static inline void __set_fixmap (enum fixed_addresses idx,phys_addr_t phys,pgprot_t flags) { -map_kernel_page (fix_to_virt (idx), phys, flags); +if (__builtin_constant_p (idx)) +BUILD_BUG_ON (idx >= __end_of_fixed_addresses); +else if (WARN_ON (idx >= __end_of_fixed_addresses)) +return ; + +map_kernel_page (__fix_to_virt (idx), phys, flags); }#endif /* !__ASSEMBLY__ */
arch/powerpc/include/asm/spinlock.h +1 -3
@@ -36,12 +36,10 @@#endif #ifdef CONFIG_PPC_PSERIES -DECLARE_STATIC_KEY_FALSE (shared_processor); -#define vcpu_is_preempted vcpu_is_preemptedstatic inline bool vcpu_is_preempted (int cpu) { -if (!static_branch_unlikely (&shared_processor)) +if (!firmware_has_feature (FW_FEATURE_SPLPAR ))return false;return !!(be32_to_cpu (lppaca_of (cpu).yield_count) &1 ); }
arch/powerpc/include/asm/uaccess.h +7 -2
@@ -401,7 +401,7 @@ copy_to_user_mcsafe(void __user *to, const void *from, unsigned long n)return n; } -extern unsigned long __clear_user (void __user *addr,unsigned long size); +unsigned long __arch_clear_user (void __user *addr,unsigned long size);static inline unsigned long clear_user (void __user *addr,unsigned long size) {
@@ -409,12 +409,17 @@ static inline unsigned long clear_user(void __user *addr, unsigned long size)might_fault ();if (likely (access_ok (addr, size))) {allow_write_to_user (addr, size); - ret =__clear_user (addr, size); + ret =__arch_clear_user (addr, size);prevent_write_to_user (addr, size); }return ret; } +static inline unsigned long __clear_user (void __user *addr,unsigned long size) +{ +return clear_user (addr, size); +} +extern long strncpy_from_user (char *dst,const char __user *src,long count);extern __must_check long strnlen_user (const char __user *str,long n);
arch/powerpc/kernel/eeh_driver.c +2 -2
@@ -897,12 +897,12 @@ void eeh_handle_normal_event(struct eeh_pe *pe)/* Log the event */ if (pe->type &EEH_PE_PHB ) { -pr_err ("EEH: PHB#%x failure detected, location: %s\n" , +pr_err ("EEH: Recovering PHB#%x, location: %s\n" , pe->phb->global_number,eeh_pe_loc_get (pe)); }else {struct eeh_pe *phb_pe =eeh_phb_pe_get (pe->phb); -pr_err ("EEH: Frozen PHB#%x-PE#%x detected\n" , +pr_err ("EEH: Recovering PHB#%x-PE#%x\n" , pe->phb->global_number, pe->addr);pr_err ("EEH: PE location: %s, PHB location: %s\n" ,eeh_pe_loc_get (pe),eeh_pe_loc_get (phb_pe));
arch/powerpc/kernel/security.c +11 -10
@@ -142,32 +142,33 @@ ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, cha thread_priv =security_ftr_enabled (SEC_FTR_L1D_THREAD_PRIV ); -if (rfi_flush || thread_priv) { +if (rfi_flush) {struct seq_buf s;seq_buf_init (&s, buf,PAGE_SIZE -1 ); -seq_buf_printf (&s,"Mitigation: " ); - -if (rfi_flush) -seq_buf_printf (&s,"RFI Flush" ); - -if (rfi_flush && thread_priv) -seq_buf_printf (&s,", " ); - +seq_buf_printf (&s,"Mitigation: RFI Flush" );if (thread_priv) -seq_buf_printf (&s,"L1D private per thread" ); +seq_buf_printf (&s,", L1D private per thread" );seq_buf_printf (&s,"\n" );return s.len; } +if (thread_priv) +return sprintf (buf,"Vulnerable: L1D private per thread\n" ); +if (!security_ftr_enabled (SEC_FTR_L1D_FLUSH_HV ) && !security_ftr_enabled (SEC_FTR_L1D_FLUSH_PR ))return sprintf (buf,"Not affected\n" ); return sprintf(buf, "Vulnerable\n"); } + +ssize_t cpu_show_l1tf (struct device *dev,struct device_attribute *attr,char *buf) +{ +return cpu_show_meltdown (dev, attr, buf); +}#endif ssize_t cpu_show_spectre_v1 (struct device *dev,struct device_attribute *attr,char *buf)
arch/powerpc/kernel/time.c +1 -1
@@ -232,7 +232,7 @@ static u64 scan_dispatch_log(u64 stop_tb)* Accumulate stolen time by scanning the dispatch trace log. * Called on entry from user mode. */ -void accumulate_stolen_time (void ) +void notrace accumulate_stolen_time(void) {u64 sst, ust;unsigned long save_irq_soft_mask =irq_soft_mask_return ();
arch/powerpc/kernel/traps.c +11 -4
@@ -250,15 +250,22 @@ static void oops_end(unsigned long flags, struct pt_regs *regs, }NOKPROBE_SYMBOL (oops_end); +static char *get_mmu_str (void ) +{ +if (early_radix_enabled ()) +return " MMU=Radix" ; +if (early_mmu_has_feature (MMU_FTR_HPTE_TABLE )) +return " MMU=Hash" ; +return "" ; +} +static int __die (const char *str,struct pt_regs *regs,long err) {printk ("Oops: %s, sig: %ld [#%d]\n" , str, err, ++die_counter); - printk("%s PAGE_SIZE=%luK%s%s%s%s%s%s%s %s\n", + printk("%s PAGE_SIZE=%luK%s%s%s%s%s%s %s\n", IS_ENABLED(CONFIG_CPU_LITTLE_ENDIAN) ? "LE" : "BE", - PAGE_SIZE / 1024, - early_radix_enabled() ? " MMU=Radix" : "", - early_mmu_has_feature(MMU_FTR_HPTE_TABLE) ? " MMU=Hash" : "", + PAGE_SIZE / 1024, get_mmu_str(), IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "", IS_ENABLED(CONFIG_SMP) ? " SMP" : "", IS_ENABLED(CONFIG_SMP) ? (" NR_CPUS=" __stringify(NR_CPUS)) : "",
arch/powerpc/lib/string_32.S +2 -2
@@ -17,7 +17,7 @@ CACHELINE_BYTES = L1_CACHE_BYTES LG_CACHELINE_BYTES = L1_CACHE_SHIFT CACHELINE_MASK = (L1_CACHE_BYTES-1) -_GLOBAL(__clear_user) +_GLOBAL(__arch_clear_user) /* * Use dcbz on the complete cache lines in the destination * to set them to zero. This requires that the destination
@@ -87,4 +87,4 @@ _GLOBAL(__clear_user) EX_TABLE(8b, 91b) EX_TABLE(9b, 91b) -EXPORT_SYMBOL(__clear_user) +EXPORT_SYMBOL(__arch_clear_user)
arch/powerpc/lib/string_64.S +3 -3
@@ -17,7 +17,7 @@ PPC64_CACHES: .section ".text" /** - * __clear_user: - Zero a block of memory in user space, with less checking. + * __arch_clear_user: - Zero a block of memory in user space, with less checking. * @to: Destination address, in user space. * @n: Number of bytes to zero. *
@@ -58,7 +58,7 @@ err3; stb r0,0(r3) mr r3,r4 blr -_GLOBAL_TOC(__clear_user) +_GLOBAL_TOC(__arch_clear_user) cmpdi r4,32 neg r6,r3 li r0,0
@@ -181,4 +181,4 @@ err1; dcbz 0,r3 cmpdi r4,32 blt .Lshort_clear b .Lmedium_clear -EXPORT_SYMBOL(__clear_user) +EXPORT_SYMBOL(__arch_clear_user)
arch/powerpc/mm/book3s64/hash_utils.c +9 -1
@@ -294,10 +294,18 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend, ret = mmu_hash_ops.hpte_insert (hpteg, vpn, paddr, tprot,HPTE_V_BOLTED , psize, psize, ssize); - +if (ret ==-1 ) { +/* Try to remove a non bolted entry */ + ret = mmu_hash_ops.hpte_remove (hpteg); +if (ret !=-1 ) + ret = mmu_hash_ops.hpte_insert (hpteg, vpn, paddr, tprot, +HPTE_V_BOLTED , psize, psize, + ssize); + }if (ret <0 )break ; +cond_resched ();#ifdef CONFIG_DEBUG_PAGEALLOC if (debug_pagealloc_enabled () && (paddr >>PAGE_SHIFT ) < linear_map_hash_count)
arch/powerpc/platforms/pseries/cmm.c +5 -0
@@ -411,6 +411,10 @@ static struct bus_type cmm_subsys = { .dev_name = "cmm", }; +static void cmm_release_device (struct device *dev) +{ +} +/** * cmm_sysfs_register - Register with sysfs *
@@ -426,6 +430,7 @@ static int cmm_sysfs_register(struct device *dev) dev->id =0 ; dev->bus = &cmm_subsys; + dev->release = cmm_release_device;if ((rc =device_register (dev))) goto subsys_unregister;
arch/powerpc/platforms/pseries/papr_scm.c +2 -2
@@ -152,7 +152,7 @@ static int papr_scm_meta_get(struct papr_scm_priv *p,int len, read;int64_t ret; -if ((hdr->in_offset + hdr->in_length) >= p->metadata_size) +if ((hdr->in_offset + hdr->in_length) > p->metadata_size)return -EINVAL ;for (len = hdr->in_length; len; len -= read) {
@@ -206,7 +206,7 @@ static int papr_scm_meta_set(struct papr_scm_priv *p,__be64 data_be;int64_t ret; -if ((hdr->in_offset + hdr->in_length) >= p->metadata_size) +if ((hdr->in_offset + hdr->in_length) > p->metadata_size)return -EINVAL ;for (len = hdr->in_length; len; len -= wrote) {
arch/powerpc/platforms/pseries/setup.c +0 -7
@@ -74,9 +74,6 @@#include "pseries.h" #include "../../../../drivers/pci/pci.h" -DEFINE_STATIC_KEY_FALSE (shared_processor); -EXPORT_SYMBOL_GPL (shared_processor); -int CMO_PrPSP =-1 ;int CMO_SecPSP =-1 ;unsigned long CMO_PageSize = (ASM_CONST (1 ) <<IOMMU_PAGE_SHIFT_4K );
@@ -761,10 +758,6 @@ static void __init pSeries_setup_arch(void)if (firmware_has_feature (FW_FEATURE_LPAR )) {vpa_init (boot_cpuid); - -if (lppaca_shared_proc (get_lppaca ())) -static_branch_enable (&shared_processor); - ppc_md.power_save = pseries_lpar_idle; ppc_md.enable_pmcs = pseries_lpar_enable_pmcs;#ifdef CONFIG_PCI_IOV
arch/powerpc/tools/relocs_check.sh +1 -1
@@ -20,7 +20,7 @@ objdump="$1" vmlinux="$2" bad_relocs=$( -"$objdump" -R "$vmlinux" | +$objdump -R "$vmlinux" | # Only look at relocation lines. grep -E '\<R_' | # These relocations are okay
arch/powerpc/tools/unrel_branch_check.sh +2 -2
@@ -18,14 +18,14 @@ vmlinux="$2" #__end_interrupts should be located within the first 64K end_intr=0x$( -"$objdump" -R "$vmlinux" -d --start-address=0xc000000000000000 \ +$objdump -R "$vmlinux" -d --start-address=0xc000000000000000 \ --stop-address=0xc000000000010000 | grep '\<__end_interrupts>:' | awk '{print $1}' ) BRANCHES=$( -"$objdump" -R "$vmlinux" -D --start-address=0xc000000000000000 \ +$objdump -R "$vmlinux" -D --start-address=0xc000000000000000 \ --stop-address=${end_intr} | grep -e "^c[0-9a-f]*:[[:space:]]*\([0-9a-f][0-9a-f][[:space:]]\)\{4\}[[:space:]]*b" | grep -v '\<__start_initialization_multiplatform>' |
arch/s390/kernel/machine_kexec.c +2 -0
@@ -164,7 +164,9 @@ static bool kdump_csum_valid(struct kimage *image)#ifdef CONFIG_CRASH_DUMP int rc; +preempt_disable (); rc =CALL_ON_STACK (do_start_kdump, S390_lowcore.nodat_stack,1 , image); +preempt_enable ();return rc ==0 ;#else return false;
arch/s390/kernel/perf_cpum_sf.c +15 -2
@@ -193,7 +193,7 @@ static int realloc_sampling_buffer(struct sf_buffer *sfb, unsigned long num_sdb, gfp_t gfp_flags) { int i, rc; -unsigned long *new, *tail; +unsigned long *new, *tail, *tail_prev =NULL ;if (!sfb->sdbt || !sfb->tail)return -EINVAL ;
@@ -232,6 +232,7 @@ static int realloc_sampling_buffer(struct sf_buffer *sfb, sfb->num_sdbt++;/* Link current page to tail of chain */ *tail = (unsigned long )(void *) new +1 ; + tail_prev = tail; tail = new; }
@@ -241,10 +242,22 @@ static int realloc_sampling_buffer(struct sf_buffer *sfb,* issue, a new realloc call (if required) might succeed. */ rc =alloc_sample_data_block (tail, gfp_flags); -if (rc) +if (rc) { +/* Undo last SDBT. An SDBT with no SDB at its first +* entry but with an SDBT entry instead can not be +* handled by the interrupt handler code. +* Avoid this situation. +*/ +if (tail_prev) { + sfb->num_sdbt--; +free_page ((unsigned long ) new); + tail = tail_prev; + }break ; + } sfb->num_sdb++; tail++; + tail_prev = new =NULL ;/* Allocated at least one SBD */ }/* Link sampling buffer to its origin */
arch/s390/kernel/unwind_bc.c +5 -0
@@ -60,6 +60,11 @@ bool unwind_next_frame(struct unwind_state *state) ip =READ_ONCE_NOCHECK (sf->gprs[8 ]); reliable = false; regs =NULL ; +if (!__kernel_text_address (ip)) { +/* skip bogus %r14 */ + state->regs =NULL ; +return unwind_next_frame (state); + } }else { sf = (struct stack_frame *) state->sp; sp =READ_ONCE_NOCHECK (sf->back_chain);
arch/s390/mm/maccess.c +9 -3
@@ -119,9 +119,15 @@ static unsigned long __no_sanitize_address _memcpy_real(unsigned long dest,*/ int memcpy_real (void *dest,void *src,size_t count) { -if (S390_lowcore.nodat_stack !=0 ) -return CALL_ON_STACK (_memcpy_real, S390_lowcore.nodat_stack, -3 , dest, src, count); +int rc; + +if (S390_lowcore.nodat_stack !=0 ) { +preempt_disable (); + rc =CALL_ON_STACK (_memcpy_real, S390_lowcore.nodat_stack,3 , + dest, src, count); +preempt_enable (); +return rc; + }/* * This is a really early memcpy_real call, the stacks are * not set up yet. Just call _memcpy_real on the early boot
arch/um/drivers/virtio_uml.c +4 -4
@@ -83,7 +83,7 @@ static int full_sendmsg_fds(int fd, const void *buf, unsigned int len,return 0 ; } -static int full_read (int fd,void *buf,int len) +static int full_read (int fd,void *buf,int len,bool abortable) {int rc;
@@ -93,7 +93,7 @@ static int full_read(int fd, void *buf, int len) buf += rc; len -= rc; } - }while (len && (rc >0 || rc == -EINTR )); + }while (len && (rc >0 || rc == -EINTR || (!abortable && rc == -EAGAIN )));if (rc <0 )return rc;
@@ -104,7 +104,7 @@ static int full_read(int fd, void *buf, int len)static int vhost_user_recv_header (int fd,struct vhost_user_msg *msg) { -return full_read (fd, msg,sizeof (msg->header)); +return full_read (fd, msg,sizeof (msg->header), true); } static int vhost_user_recv(int fd, struct vhost_user_msg *msg,
@@ -118,7 +118,7 @@ static int vhost_user_recv(int fd, struct vhost_user_msg *msg, size = msg->header.size;if (size > max_payload_size)return -EPROTO ; -return full_read (fd, &msg->payload, size); +return full_read (fd, &msg->payload, size, false); } static int vhost_user_recv_resp(struct virtio_uml_device *vu_dev,
drivers/cdrom/cdrom.c +11 -1
@@ -996,6 +996,12 @@ static void cdrom_count_tracks(struct cdrom_device_info *cdi, tracktype *tracks) tracks->xa =0 ; tracks->error =0 ;cd_dbg (CD_COUNT_TRACKS ,"entering cdrom_count_tracks\n" ); + +if (!CDROM_CAN (CDC_PLAY_AUDIO )) { + tracks->error =CDS_NO_INFO ; +return ; + } +/* Grab the TOC header so we can see how many tracks there are */ ret = cdi->ops->audio_ioctl (cdi,CDROMREADTOCHDR , &header);if (ret) {
@@ -1162,7 +1168,8 @@ int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev, ret =open_for_data (cdi);if (ret) goto err; -cdrom_mmc3_profile (cdi); +if (CDROM_CAN (CDC_GENERIC_PACKET )) +cdrom_mmc3_profile (cdi);if (mode &FMODE_WRITE ) { ret = -EROFS ;if (cdrom_open_write (cdi))
@@ -2882,6 +2889,9 @@ int cdrom_get_last_written(struct cdrom_device_info *cdi, long *last_written)it doesn't give enough information or fails. then we return the toc contents. */ use_toc: +if (!CDROM_CAN (CDC_PLAY_AUDIO )) +return -ENOSYS ; + toc.cdte_format =CDROM_MSF ; toc.cdte_track =CDROM_LEADOUT ;if ((ret = cdi->ops->audio_ioctl (cdi,CDROMREADTOCENTRY , &toc)))
drivers/clk/clk-gpio.c +1 -1
@@ -280,7 +280,7 @@ static int gpio_clk_driver_probe(struct platform_device *pdev)else clk =clk_register_gpio_gate (&pdev->dev, node->name, parent_names ? parent_names[0 ] :NULL , gpiod, -0 ); +CLK_SET_RATE_PARENT );if (IS_ERR (clk))return PTR_ERR (clk);
drivers/clk/pxa/clk-pxa27x.c +1 -0
@@ -459,6 +459,7 @@ struct dummy_clk { };static struct dummy_clk dummy_clks[]__initdata = {DUMMY_CLK (NULL ,"pxa27x-gpio" ,"osc_32_768khz" ), +DUMMY_CLK (NULL ,"pxa-rtc" ,"osc_32_768khz" ),DUMMY_CLK (NULL ,"sa1100-rtc" ,"osc_32_768khz" ),DUMMY_CLK ("UARTCLK" ,"pxa2xx-ir" ,"STUART" ), };
drivers/clk/qcom/clk-rcg2.c +2 -0
@@ -220,6 +220,8 @@ static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f,if (clk_flags &CLK_SET_RATE_PARENT ) { rate = f->freq;if (f->pre_div) { +if (!rate) + rate = req->rate; rate /=2 ; rate *= f->pre_div +1 ; }
drivers/clk/qcom/clk-smd-rpm.c +3 -0
@@ -648,6 +648,7 @@ static const struct rpm_smd_clk_desc rpm_clk_qcs404 = { };/* msm8998 */ +DEFINE_CLK_SMD_RPM (msm8998, pcnoc_clk, pcnoc_a_clk,QCOM_SMD_RPM_BUS_CLK ,0 );DEFINE_CLK_SMD_RPM (msm8998, snoc_clk, snoc_a_clk,QCOM_SMD_RPM_BUS_CLK ,1 );DEFINE_CLK_SMD_RPM (msm8998, cnoc_clk, cnoc_a_clk,QCOM_SMD_RPM_BUS_CLK ,2 );DEFINE_CLK_SMD_RPM (msm8998, ce1_clk, ce1_a_clk,QCOM_SMD_RPM_CE_CLK ,0 );
@@ -670,6 +671,8 @@ DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8998, rf_clk2_pin, rf_clk2_a_pin, 5);DEFINE_CLK_SMD_RPM_XO_BUFFER (msm8998, rf_clk3, rf_clk3_a,6 );DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL (msm8998, rf_clk3_pin, rf_clk3_a_pin,6 );static struct clk_smd_rpm *msm8998_clks[] = { + [RPM_SMD_PCNOC_CLK ] = &msm8998_pcnoc_clk, + [RPM_SMD_PCNOC_A_CLK ] = &msm8998_pcnoc_a_clk, [RPM_SMD_SNOC_CLK ] = &msm8998_snoc_clk, [RPM_SMD_SNOC_A_CLK ] = &msm8998_snoc_a_clk, [RPM_SMD_CNOC_CLK ] = &msm8998_cnoc_clk,
drivers/clk/qcom/common.c +3 -0
@@ -29,6 +29,9 @@ struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate)if (!f)return NULL ; +if (!f->freq) +return f; +for (; f->freq; f++)if (rate <= f->freq)return f;
drivers/clocksource/asm9260_timer.c +4 -0
@@ -194,6 +194,10 @@ static int __init asm9260_timer_init(struct device_node *np) } clk =of_clk_get (np,0 ); +if (IS_ERR (clk)) { +pr_err ("Failed to get clk!\n" ); +return PTR_ERR (clk); + } ret =clk_prepare_enable (clk);if (ret) {
drivers/clocksource/timer-of.c +1 -1
@@ -192,7 +192,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) }if (!to->clkevt.name) - to->clkevt.name = np->name; + to->clkevt.name = np->full_name; to->np = np;
drivers/dma/fsl-qdma.c +3 -0
@@ -1155,6 +1155,9 @@ static int fsl_qdma_probe(struct platform_device *pdev)return ret; fsl_qdma->irq_base =platform_get_irq_byname (pdev,"qdma-queue0" ); +if (fsl_qdma->irq_base <0 ) +return fsl_qdma->irq_base; + fsl_qdma->feature =of_property_read_bool (np,"big-endian" );INIT_LIST_HEAD (&fsl_qdma->dma_dev.channels);
drivers/dma/xilinx/xilinx_dma.c +1 -0
@@ -1433,6 +1433,7 @@ static int xilinx_dma_reset(struct xilinx_dma_chan *chan) chan->err = false; chan->idle = true; + chan->desc_pendingcount =0 ; chan->desc_submitcount =0 ;return err;
drivers/gpio/gpio-lynxpoint.c +6 -0
@@ -164,6 +164,12 @@ static int lp_irq_type(struct irq_data *d, unsigned type) value |=TRIG_SEL_BIT |INT_INV_BIT ;outl (value, reg); + +if (type &IRQ_TYPE_EDGE_BOTH ) +irq_set_handler_locked (d, handle_edge_irq); +else if (type &IRQ_TYPE_LEVEL_MASK ) +irq_set_handler_locked (d, handle_level_irq); +spin_unlock_irqrestore (&lg->lock, flags);return 0 ;
drivers/gpio/gpio-mpc8xxx.c +5 -1
@@ -377,7 +377,8 @@ static int mpc8xxx_probe(struct platform_device *pdev)* It's assumed that only a single type of gpio controller is available * on the current machine, so overwriting global data is fine. */ - mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; +if (devtype->irq_set_type) + mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type;if (devtype->gpio_dir_out) gc->direction_output = devtype->gpio_dir_out;
@@ -386,6 +387,9 @@ static int mpc8xxx_probe(struct platform_device *pdev) gc->to_irq = mpc8xxx_gpio_to_irq; +if (of_device_is_compatible (np,"fsl,qoriq-gpio" )) + gc->write_reg (mpc8xxx_gc->regs +GPIO_IBE ,0xffffffff ); + ret =gpiochip_add_data (gc, mpc8xxx_gc);if (ret) { pr_err("%pOF: GPIO chip registration failed with status %d\n",
drivers/gpio/gpio-mxc.c +10 -3
@@ -411,6 +411,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) {struct device_node *np = pdev->dev.of_node;struct mxc_gpio_port *port; +int irq_count;int irq_base;int err;
@@ -426,9 +427,15 @@ static int mxc_gpio_probe(struct platform_device *pdev)if (IS_ERR (port->base))return PTR_ERR (port->base); - port->irq_high =platform_get_irq (pdev,1 ); -if (port->irq_high <0 ) - port->irq_high =0 ; + irq_count =platform_irq_count (pdev); +if (irq_count <0 ) +return irq_count; + +if (irq_count >1 ) { + port->irq_high =platform_get_irq (pdev,1 ); +if (port->irq_high <0 ) + port->irq_high =0 ; + } port->irq =platform_get_irq (pdev,0 );if (port->irq <0 )
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +21 -16
@@ -35,6 +35,7 @@#include <linux/hmm.h> #include <linux/pagemap.h> #include <linux/sched/task.h> +#include <linux/sched/mm.h> #include <linux/seq_file.h> #include <linux/slab.h> #include <linux/swap.h>
@@ -788,7 +789,7 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages)struct hmm_mirror *mirror = bo->mn ? &bo->mn->mirror :NULL ;struct ttm_tt *ttm = bo->tbo.ttm;struct amdgpu_ttm_tt *gtt = (void *)ttm; -struct mm_struct *mm = gtt->usertask->mm; +struct mm_struct *mm;unsigned long start = gtt->userptr;struct vm_area_struct *vma;struct hmm_range *range;
@@ -796,25 +797,14 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages)uint64_t *pfns;int r =0 ; -if (!mm)/* Happens during process shutdown */ -return -ESRCH ; -if (unlikely (!mirror)) {DRM_DEBUG_DRIVER ("Failed to get hmm_mirror\n" ); - r = -EFAULT ; - goto out; +return -EFAULT ; } - vma =find_vma (mm, start); -if (unlikely (!vma || start < vma->vm_start)) { - r = -EFAULT ; - goto out; - } -if (unlikely ((gtt->userflags &AMDGPU_GEM_USERPTR_ANONONLY ) && - vma->vm_file)) { - r = -EPERM ; - goto out; - } + mm = mirror->hmm->mmu_notifier.mm; +if (!mmget_not_zero (mm))/* Happens during process shutdown */ +return -ESRCH ; range =kzalloc (sizeof (*range),GFP_KERNEL );if (unlikely (!range)) {
@@ -847,6 +837,17 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages)hmm_range_wait_until_valid (range,HMM_RANGE_DEFAULT_TIMEOUT );down_read (&mm->mmap_sem); + vma =find_vma (mm, start); +if (unlikely (!vma || start < vma->vm_start)) { + r = -EFAULT ; + goto out_unlock; + } +if (unlikely ((gtt->userflags &AMDGPU_GEM_USERPTR_ANONONLY ) && + vma->vm_file)) { + r = -EPERM ; + goto out_unlock; + } + r =hmm_range_fault (range,0 );up_read (&mm->mmap_sem);
@@ -865,15 +866,19 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages) } gtt->range = range; +mmput (mm);return 0 ; +out_unlock: +up_read (&mm->mmap_sem); out_free_pfns:hmm_range_unregister (range);kvfree (pfns); out_free_ranges:kfree (range); out: +mmput (mm);return r; }
drivers/gpu/drm/drm_property.c +1 -1
@@ -561,7 +561,7 @@ drm_property_create_blob(struct drm_device *dev, size_t length,struct drm_property_blob *blob;int ret; -if (!length || length >ULONG_MAX -sizeof (struct drm_property_blob )) +if (!length || length >INT_MAX -sizeof (struct drm_property_blob ))return ERR_PTR (-EINVAL ); blob =kvzalloc (sizeof (struct drm_property_blob )+length,GFP_KERNEL );
drivers/hid/hid-core.c +4 -0
@@ -781,6 +781,10 @@ static void hid_scan_feature_usage(struct hid_parser *parser, u32 usage)if (usage ==0xff0000c5 && parser->global.report_count ==256 && parser->global.report_size ==8 ) parser->scan_flags |=HID_SCAN_FLAG_MT_WIN_8 ; + +if (usage ==0xff0000c6 && parser->global.report_count ==1 && + parser->global.report_size ==8 ) + parser->scan_flags |=HID_SCAN_FLAG_MT_WIN_8 ; }static void hid_scan_collection (struct hid_parser *parser,unsigned type)
drivers/hid/hid-ids.h +2 -0
@@ -573,6 +573,7 @@#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A 0x094a#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0941 0x0941#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0641 0x0641 +#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_1f4a 0x1f4a#define USB_VENDOR_ID_HUION 0x256c#define USB_DEVICE_ID_HUION_TABLET 0x006e
@@ -959,6 +960,7 @@#define I2C_VENDOR_ID_RAYDIUM 0x2386#define I2C_PRODUCT_ID_RAYDIUM_4B33 0x4b33 +#define I2C_PRODUCT_ID_RAYDIUM_3118 0x3118#define USB_VENDOR_ID_RAZER 0x1532#define USB_DEVICE_ID_RAZER_BLADE_14 0x011D
drivers/hid/hid-logitech-hidpp.c +3 -0
@@ -1102,6 +1102,9 @@ static int hidpp20_batterylevel_get_battery_capacity(struct hidpp_device *hidpp, ret =hidpp_send_fap_command_sync (hidpp, feature_index,CMD_BATTERY_LEVEL_STATUS_GET_BATTERY_LEVEL_STATUS ,NULL ,0 , &response); +/* Ignore these intermittent errors */ +if (ret ==HIDPP_ERROR_RESOURCE_ERROR ) +return -EIO ;if (ret >0 ) {hid_err (hidpp->hid_dev,"%s: received protocol error 0x%02x\n" , __func__, ret);
drivers/hid/hid-quirks.c +1 -0
@@ -94,6 +94,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0941), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0641), HID_QUIRK_ALWAYS_POLL }, + { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_1f4a), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_IDEACOM, USB_DEVICE_ID_IDEACOM_IDC6680), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_INNOMEDIA, USB_DEVICE_ID_INNEX_GENESIS_ATARI), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M610X), HID_QUIRK_MULTI_INPUT },
drivers/hid/hid-rmi.c +2 -1
@@ -744,7 +744,8 @@ static void rmi_remove(struct hid_device *hdev) {struct rmi_data *hdata =hid_get_drvdata (hdev); -if (hdata->device_flags &RMI_DEVICE ) { +if ((hdata->device_flags &RMI_DEVICE ) + &&test_bit (RMI_STARTED , &hdata->flags)) {clear_bit (RMI_STARTED , &hdata->flags);cancel_work_sync (&hdata->reset_work);rmi_unregister_transport_device (&hdata->xport);
drivers/hid/i2c-hid/i2c-hid-core.c +2 -0
@@ -170,6 +170,8 @@ static const struct i2c_hid_quirks { I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV }, {I2C_VENDOR_ID_HANTICK ,I2C_PRODUCT_ID_HANTICK_5288 , I2C_HID_QUIRK_NO_IRQ_AFTER_RESET }, + { I2C_VENDOR_ID_RAYDIUM, I2C_PRODUCT_ID_RAYDIUM_3118, + I2C_HID_QUIRK_NO_IRQ_AFTER_RESET }, { USB_VENDOR_ID_ELAN, HID_ANY_ID, I2C_HID_QUIRK_BOGUS_IRQ }, { 0, 0 }
drivers/hv/vmbus_drv.c +1 -1
@@ -2308,7 +2308,7 @@ static void hv_crash_handler(struct pt_regs *regs) vmbus_connection.conn_state =DISCONNECTED ; cpu =smp_processor_id ();hv_stimer_cleanup (cpu); -hv_synic_cleanup (cpu); +hv_synic_disable_regs (cpu);hyperv_cleanup (); };
drivers/i2c/busses/i2c-stm32f7.c +12 -7
@@ -1985,6 +1985,11 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)pm_runtime_set_suspended (i2c_dev->dev);pm_runtime_dont_use_autosuspend (i2c_dev->dev); +if (i2c_dev->dma) { +stm32_i2c_dma_free (i2c_dev->dma); + i2c_dev->dma =NULL ; + } + clk_free:clk_disable_unprepare (i2c_dev->clk);
@@ -1995,21 +2000,21 @@ static int stm32f7_i2c_remove(struct platform_device *pdev) {struct stm32f7_i2c_dev *i2c_dev =platform_get_drvdata (pdev); -if (i2c_dev->dma) { -stm32_i2c_dma_free (i2c_dev->dma); - i2c_dev->dma =NULL ; - } -i2c_del_adapter (&i2c_dev->adap);pm_runtime_get_sync (i2c_dev->dev); -clk_disable_unprepare (i2c_dev->clk); -pm_runtime_put_noidle (i2c_dev->dev);pm_runtime_disable (i2c_dev->dev);pm_runtime_set_suspended (i2c_dev->dev);pm_runtime_dont_use_autosuspend (i2c_dev->dev); +if (i2c_dev->dma) { +stm32_i2c_dma_free (i2c_dev->dma); + i2c_dev->dma =NULL ; + } + +clk_disable_unprepare (i2c_dev->clk); +return 0 ; }
drivers/input/touchscreen/atmel_mxt_ts.c +4 -0
@@ -3156,6 +3156,8 @@ static int __maybe_unused mxt_suspend(struct device *dev)mutex_unlock (&input_dev->mutex); +disable_irq (data->irq); +return 0 ; }
@@ -3168,6 +3170,8 @@ static int __maybe_unused mxt_resume(struct device *dev)if (!input_dev)return 0 ; +enable_irq (data->irq); +mutex_lock (&input_dev->mutex);if (input_dev->users)
drivers/input/touchscreen/ili210x.c +6 -1
@@ -334,7 +334,12 @@ static int ili210x_i2c_probe(struct i2c_client *client,input_set_abs_params (input,ABS_MT_POSITION_X ,0 ,0xffff ,0 ,0 );input_set_abs_params (input,ABS_MT_POSITION_Y ,0 ,0xffff ,0 ,0 );touchscreen_parse_properties (input, true, &priv->prop); -input_mt_init_slots (input, priv->max_touches,INPUT_MT_DIRECT ); + + error =input_mt_init_slots (input, priv->max_touches,INPUT_MT_DIRECT ); +if (error) { +dev_err (dev,"Unable to set up slots, err: %d\n" , error); +return error; + } error =devm_add_action (dev, ili210x_cancel_work, priv);if (error)
drivers/input/touchscreen/st1232.c +12 -10
@@ -149,6 +149,11 @@ static void st1232_ts_power(struct st1232_ts_data *ts, bool poweron)gpiod_set_value_cansleep (ts->reset_gpio, !poweron); } +static void st1232_ts_power_off (void *data) +{ +st1232_ts_power (data, false); +} +static const struct st_chip_info st1232_chip_info = { .have_z = true, .max_x =0x31f ,/* 800 - 1 */
@@ -229,6 +234,13 @@ static int st1232_ts_probe(struct i2c_client *client,st1232_ts_power (ts, true); + error =devm_add_action_or_reset (&client->dev, st1232_ts_power_off, ts); +if (error) { +dev_err (&client->dev, +"Failed to install power off action: %d\n" , error); +return error; + } + input_dev->name ="st1232-touchscreen" ; input_dev->id.bustype =BUS_I2C ; input_dev->dev.parent = &client->dev;
@@ -271,15 +283,6 @@ static int st1232_ts_probe(struct i2c_client *client,return 0 ; } -static int st1232_ts_remove (struct i2c_client *client) -{ -struct st1232_ts_data *ts =i2c_get_clientdata (client); - -st1232_ts_power (ts, false); - -return 0 ; -} -static int __maybe_unused st1232_ts_suspend (struct device *dev) {struct i2c_client *client =to_i2c_client (dev);
@@ -329,7 +332,6 @@ MODULE_DEVICE_TABLE(of, st1232_ts_dt_ids);static struct i2c_driver st1232_ts_driver = { .probe = st1232_ts_probe, - .remove = st1232_ts_remove, .id_table = st1232_ts_id, .driver = { .name =ST1232_TS_NAME ,
drivers/iommu/arm-smmu-v3.c +4 -4
@@ -3611,19 +3611,19 @@ static int arm_smmu_device_probe(struct platform_device *pdev)/* Interrupt lines */ - irq =platform_get_irq_byname (pdev,"combined" ); + irq =platform_get_irq_byname_optional (pdev,"combined" );if (irq >0 ) smmu->combined_irq = irq;else { - irq =platform_get_irq_byname (pdev,"eventq" ); + irq =platform_get_irq_byname_optional (pdev,"eventq" );if (irq >0 ) smmu->evtq.q.irq = irq; - irq =platform_get_irq_byname (pdev,"priq" ); + irq =platform_get_irq_byname_optional (pdev,"priq" );if (irq >0 ) smmu->priq.q.irq = irq; - irq =platform_get_irq_byname (pdev,"gerror" ); + irq =platform_get_irq_byname_optional (pdev,"gerror" );if (irq >0 ) smmu->gerr_irq = irq; }
drivers/iommu/rockchip-iommu.c +5 -2
@@ -980,13 +980,13 @@ static struct iommu_domain *rk_iommu_domain_alloc(unsigned type)if (!dma_dev)return NULL ; - rk_domain =devm_kzalloc (dma_dev,sizeof (*rk_domain),GFP_KERNEL ); + rk_domain =kzalloc (sizeof (*rk_domain),GFP_KERNEL );if (!rk_domain)return NULL ;if (type ==IOMMU_DOMAIN_DMA &&iommu_get_dma_cookie (&rk_domain->domain)) -return NULL ; + goto err_free_domain;/* * rk32xx iommus use a 2 level pagetable.
@@ -1021,6 +1021,8 @@ static struct iommu_domain *rk_iommu_domain_alloc(unsigned type) err_put_cookie:if (type ==IOMMU_DOMAIN_DMA )iommu_put_dma_cookie (&rk_domain->domain); +err_free_domain: +kfree (rk_domain);return NULL ; }
@@ -1049,6 +1051,7 @@ static void rk_iommu_domain_free(struct iommu_domain *domain)if (domain->type ==IOMMU_DOMAIN_DMA )iommu_put_dma_cookie (&rk_domain->domain); +kfree (rk_domain); }static int rk_iommu_add_device (struct device *dev)
drivers/iommu/tegra-smmu.c +6 -5
@@ -159,9 +159,9 @@ static bool smmu_dma_addr_valid(struct tegra_smmu *smmu, dma_addr_t addr)return (addr & smmu->pfn_mask) == addr; } -static dma_addr_t smmu_pde_to_dma (u32 pde) +static dma_addr_t smmu_pde_to_dma (struct tegra_smmu *smmu,u32 pde) { -return pde <<12 ; +return (dma_addr_t)(pde & smmu->pfn_mask) <<12 ; }static void smmu_flush_ptc_all (struct tegra_smmu *smmu)
@@ -549,6 +549,7 @@ static u32 *tegra_smmu_pte_lookup(struct tegra_smmu_as *as, unsigned long iova, dma_addr_t *dmap) {unsigned int pd_index =iova_pd_index (iova); +struct tegra_smmu *smmu = as->smmu;struct page *pt_page;u32 *pd;
@@ -557,7 +558,7 @@ static u32 *tegra_smmu_pte_lookup(struct tegra_smmu_as *as, unsigned long iova,return NULL ; pd =page_address (as->pd); - *dmap =smmu_pde_to_dma (pd[pd_index]); + *dmap =smmu_pde_to_dma (smmu, pd[pd_index]);return tegra_smmu_pte_offset (pt_page, iova); }
@@ -599,7 +600,7 @@ static u32 *as_get_pte(struct tegra_smmu_as *as, dma_addr_t iova, }else {u32 *pd =page_address (as->pd); - *dmap =smmu_pde_to_dma (pd[pde]); + *dmap =smmu_pde_to_dma (smmu, pd[pde]); }return tegra_smmu_pte_offset (as->pts[pde], iova);
@@ -624,7 +625,7 @@ static void tegra_smmu_pte_put_use(struct tegra_smmu_as *as, unsigned long iova)if (--as->count[pde] ==0 ) {struct tegra_smmu *smmu = as->smmu;u32 *pd =page_address (as->pd); -dma_addr_t pte_dma =smmu_pde_to_dma (pd[pde]); +dma_addr_t pte_dma =smmu_pde_to_dma (smmu, pd[pde]);tegra_smmu_set_pde (as, iova,0 );
drivers/irqchip/irq-bcm7038-l1.c +4 -0
@@ -281,6 +281,10 @@ static int __init bcm7038_l1_init_one(struct device_node *dn,pr_err ("failed to map parent interrupt %d\n" , parent_irq);return -EINVAL ; } + +if (of_property_read_bool (dn,"brcm,irq-can-wake" )) +enable_irq_wake (parent_irq); +irq_set_chained_handler_and_data (parent_irq, bcm7038_l1_irq_handle, intc);
drivers/irqchip/irq-ingenic.c +10 -5
@@ -108,6 +108,14 @@ static int __init ingenic_intc_of_init(struct device_node *node, goto out_unmap_irq; } + domain =irq_domain_add_legacy (node, num_chips *32 , +JZ4740_IRQ_BASE ,0 , + &irq_domain_simple_ops,NULL ); +if (!domain) { + err = -ENOMEM ; + goto out_unmap_base; + } +for (i =0 ; i < num_chips; i++) {/* Mask all irqs */ writel(0xffffffff, intc->base + (i * CHIP_SIZE) +
@@ -134,14 +142,11 @@ static int __init ingenic_intc_of_init(struct device_node *node, IRQ_NOPROBE | IRQ_LEVEL); } - domain =irq_domain_add_legacy (node, num_chips *32 ,JZ4740_IRQ_BASE ,0 , - &irq_domain_simple_ops,NULL ); -if (!domain) -pr_warn ("unable to register IRQ domain\n" ); -setup_irq (parent_irq, &intc_cascade_action);return 0 ; +out_unmap_base: +iounmap (intc->base); out_unmap_irq:irq_dispose_mapping (parent_irq); out_free:
drivers/leds/leds-an30259a.c +7 -0
@@ -305,6 +305,13 @@ static int an30259a_probe(struct i2c_client *client) chip->regmap =devm_regmap_init_i2c (client, &an30259a_regmap_config); +if (IS_ERR (chip->regmap)) { + err =PTR_ERR (chip->regmap); +dev_err (&client->dev,"Failed to allocate register map: %d\n" , + err); + goto exit; + } +for (i =0 ; i < chip->num_leds; i++) {struct led_init_data init_data = {};
drivers/leds/leds-lm3692x.c +11 -2
@@ -334,9 +334,18 @@ static int lm3692x_probe_dt(struct lm3692x_led *led)return ret; } - led->regulator =devm_regulator_get (&led->client->dev,"vled" ); -if (IS_ERR (led->regulator)) + led->regulator =devm_regulator_get_optional (&led->client->dev,"vled" ); +if (IS_ERR (led->regulator)) { + ret =PTR_ERR (led->regulator); +if (ret != -ENODEV ) { +if (ret != -EPROBE_DEFER ) +dev_err (&led->client->dev, +"Failed to get vled regulator: %d\n" , + ret); +return ret; + } led->regulator =NULL ; + } child =device_get_next_child_node (&led->client->dev, child);if (!child) {
drivers/leds/trigger/ledtrig-netdev.c +4 -1
@@ -302,10 +302,12 @@ static int netdev_trig_notify(struct notifier_block *nb, container_of(nb, struct led_netdev_data, notifier);if (evt !=NETDEV_UP && evt !=NETDEV_DOWN && evt !=NETDEV_CHANGE - && evt !=NETDEV_REGISTER && evt !=NETDEV_UNREGISTER ) + && evt !=NETDEV_REGISTER && evt !=NETDEV_UNREGISTER + && evt !=NETDEV_CHANGENAME )return NOTIFY_DONE ;if (!(dev == trigger_data->net_dev || + (evt ==NETDEV_CHANGENAME && !strcmp (dev->name, trigger_data->device_name)) || (evt ==NETDEV_REGISTER && !strcmp (dev->name, trigger_data->device_name))))return NOTIFY_DONE ;
@@ -315,6 +317,7 @@ static int netdev_trig_notify(struct notifier_block *nb,clear_bit (NETDEV_LED_MODE_LINKUP , &trigger_data->mode);switch (evt) { +case NETDEV_CHANGENAME :case NETDEV_REGISTER :if (trigger_data->net_dev)dev_put (trigger_data->net_dev);
drivers/mailbox/imx-mailbox.c +16 -3
@@ -214,11 +214,24 @@ static void imx_mu_shutdown(struct mbox_chan *chan)struct imx_mu_priv *priv =to_imx_mu_priv (chan->mbox);struct imx_mu_con_priv *cp = chan->con_priv; -if (cp->type ==IMX_MU_TYPE_TXDB ) +if (cp->type ==IMX_MU_TYPE_TXDB ) {tasklet_kill (&cp->txdb_tasklet); +return ; + } -imx_mu_xcr_rmw (priv,0 ,IMX_MU_xCR_TIEn (cp->idx) | -IMX_MU_xCR_RIEn (cp->idx) |IMX_MU_xCR_GIEn (cp->idx)); +switch (cp->type) { +case IMX_MU_TYPE_TX : +imx_mu_xcr_rmw (priv,0 ,IMX_MU_xCR_TIEn (cp->idx)); +break ; +case IMX_MU_TYPE_RX : +imx_mu_xcr_rmw (priv,0 ,IMX_MU_xCR_RIEn (cp->idx)); +break ; +case IMX_MU_TYPE_RXDB : +imx_mu_xcr_rmw (priv,0 ,IMX_MU_xCR_GIEn (cp->idx)); +break ; +default : +break ; + }free_irq (priv->irq, chan); }
drivers/md/bcache/btree.c +2 -0
@@ -723,6 +723,8 @@ static unsigned long bch_mca_scan(struct shrinker *shrink,* IO can always make forward progress: */ nr /= c->btree_pages; +if (nr ==0 ) + nr =1 ; nr = min_t(unsigned long, nr, mca_can_free(c)); i =0 ;
drivers/md/md.c +1 -0
@@ -1159,6 +1159,7 @@ static int super_90_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor/* not spare disk, or LEVEL_MULTIPATH */ if (sb->level ==LEVEL_MULTIPATH || (rdev->desc_nr >=0 && + rdev->desc_nr <MD_SB_DISKS && sb->disks[rdev->desc_nr].state & ((1 <<MD_DISK_SYNC ) | (1 <<MD_DISK_ACTIVE )))) spare_disk = false;
drivers/misc/habanalabs/memory.c +20 -10
@@ -965,17 +965,19 @@ static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args,* * @ctx : current context * @vaddr : device virtual address to unmap +* @ctx_free : true if in context free flow, false otherwise. * * This function does the following: * - Unmap the physical pages related to the given virtual address * - return the device virtual block to the virtual block list */ -static int unmap_device_va (struct hl_ctx *ctx,u64 vaddr) +static int unmap_device_va (struct hl_ctx *ctx,u64 vaddr,bool ctx_free) {struct hl_device *hdev = ctx->hdev;struct hl_vm_phys_pg_pack *phys_pg_pack =NULL ;struct hl_vm_hash_node *hnode =NULL ;struct hl_userptr *userptr =NULL ; +struct hl_va_range *va_range;enum vm_type_t *vm_type;u64 next_vaddr, i;u32 page_size;
@@ -1003,6 +1005,7 @@ static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr)if (*vm_type ==VM_TYPE_USERPTR ) { is_userptr = true; + va_range = &ctx->host_va_range; userptr = hnode->ptr; rc =init_phys_pg_pack_from_userptr (ctx, userptr, &phys_pg_pack);
@@ -1014,6 +1017,7 @@ static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr) } }else if (*vm_type ==VM_TYPE_PHYS_PACK ) { is_userptr = false; + va_range = &ctx->dram_va_range; phys_pg_pack = hnode->ptr; }else { dev_warn(hdev->dev,
@@ -1052,12 +1056,18 @@ static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr)mutex_unlock (&ctx->mmu_lock); -if (add_va_block (hdev, - is_userptr ? &ctx->host_va_range : &ctx->dram_va_range, - vaddr, - vaddr + phys_pg_pack->total_size -1 )) -dev_warn (hdev->dev,"add va block failed for vaddr: 0x%llx\n" , - vaddr); +/* +* No point in maintaining the free VA block list if the context is +* closing as the list will be freed anyway +*/ +if (!ctx_free) { + rc =add_va_block (hdev, va_range, vaddr, + vaddr + phys_pg_pack->total_size -1 ); +if (rc) +dev_warn (hdev->dev, +"add va block failed for vaddr: 0x%llx\n" , + vaddr); + }atomic_dec (&phys_pg_pack->mapping_cnt);kfree (hnode);
@@ -1189,8 +1199,8 @@ int hl_mem_ioctl(struct hl_fpriv *hpriv, void *data)break ;case HL_MEM_OP_UNMAP : - rc =unmap_device_va (ctx, - args->in.unmap.device_virt_addr); + rc =unmap_device_va (ctx, args->in.unmap.device_virt_addr, + false);break ;default :
@@ -1620,7 +1630,7 @@ void hl_vm_ctx_fini(struct hl_ctx *ctx)dev_dbg (hdev->dev,"hl_mem_hash_node of vaddr 0x%llx of asid %d is still alive\n" , hnode->vaddr, ctx->asid); -unmap_device_va (ctx, hnode->vaddr); +unmap_device_va (ctx, hnode->vaddr, true); }spin_lock (&vm->idr_lock);
drivers/mmc/host/sdhci-esdhc.h +14 -0
@@ -51,6 +51,11 @@#define ESDHC_CLOCK_HCKEN 0x00000002#define ESDHC_CLOCK_IPGEN 0x00000001 +/* System Control 2 Register */ +#define ESDHC_SYSTEM_CONTROL_2 0x3c +#define ESDHC_SMPCLKSEL 0x00800000 +#define ESDHC_EXTN 0x00400000 +/* Host Controller Capabilities Register 2 */ #define ESDHC_CAPABILITIES_1 0x114
@@ -59,7 +64,16 @@#define ESDHC_HS400_WNDW_ADJUST 0x00000040#define ESDHC_HS400_MODE 0x00000010#define ESDHC_TB_EN 0x00000004 +#define ESDHC_TB_MODE_MASK 0x00000003 +#define ESDHC_TB_MODE_SW 0x00000003 +#define ESDHC_TB_MODE_3 0x00000002 + +#define ESDHC_TBSTAT 0x124 +#define ESDHC_TBPTR 0x128 +#define ESDHC_WNDW_STRT_PTR_SHIFT 8 +#define ESDHC_WNDW_STRT_PTR_MASK (0x7f << 8) +#define ESDHC_WNDW_END_PTR_MASK 0x7f/* SD Clock Control Register */ #define ESDHC_SDCLKCTL 0x144
drivers/mmc/host/sdhci-of-esdhc.c +199 -33
321 lines not on this page · raw message
drivers/net/bonding/bond_main.c +0 -3
@@ -2225,9 +2225,6 @@ static void bond_miimon_commit(struct bonding *bond) }else if (BOND_MODE (bond) !=BOND_MODE_ACTIVEBACKUP ) {/* make it immediately active */ bond_set_active_slave (slave); - }else if (slave != primary) { -/* prevent it from being the active one */ -bond_set_backup_slave (slave); } slave_info(bond->dev, slave->dev, "link status definitely up, %u Mbps %s duplex\n",
drivers/net/dsa/bcm_sf2_cfp.c +3 -3
@@ -358,7 +358,7 @@ static int bcm_sf2_cfp_ipv4_rule_set(struct bcm_sf2_priv *priv, int port,return -EINVAL ; } - ip_frag =be32_to_cpu (fs->m_ext.data[0 ]); + ip_frag = !!(be32_to_cpu (fs->h_ext.data[0 ]) &1 );/* Locate the first rule available */ if (fs->location ==RX_CLS_LOC_ANY )
@@ -569,7 +569,7 @@ static int bcm_sf2_cfp_rule_cmp(struct bcm_sf2_priv *priv, int port,if (rule->fs.flow_type != fs->flow_type || rule->fs.ring_cookie != fs->ring_cookie || - rule->fs.m_ext.data[0 ] != fs->m_ext.data[0 ]) + rule->fs.h_ext.data[0 ] != fs->h_ext.data[0 ])continue ;switch (fs->flow_type & ~FLOW_EXT ) {
@@ -621,7 +621,7 @@ static int bcm_sf2_cfp_ipv6_rule_set(struct bcm_sf2_priv *priv, int port,return -EINVAL ; } - ip_frag =be32_to_cpu (fs->m_ext.data[0 ]); + ip_frag = !!(be32_to_cpu (fs->h_ext.data[0 ]) &1 ); layout = &udf_tcpip6_layout; slice_num =bcm_sf2_get_slice_number (layout,0 );
drivers/net/dsa/sja1105/sja1105_main.c +4 -4
@@ -1560,8 +1560,8 @@ static int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled)if (enabled) {/* Enable VLAN filtering. */ - tpid =ETH_P_8021AD ; - tpid2 =ETH_P_8021Q ; + tpid =ETH_P_8021Q ; + tpid2 =ETH_P_8021AD ; }else {/* Disable VLAN filtering. */ tpid =ETH_P_SJA1105 ;
@@ -1570,9 +1570,9 @@ static int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled) table = &priv->static_config.tables[BLK_IDX_GENERAL_PARAMS ]; general_params = table->entries; -/* EtherType used to identify outer tagged (S-tag) VLAN traffic */ - general_params->tpid = tpid;/* EtherType used to identify inner tagged (C-tag) VLAN traffic */ + general_params->tpid = tpid; +/* EtherType used to identify outer tagged (S-tag) VLAN traffic */ general_params->tpid2 = tpid2;/* When VLAN filtering is on, we need to at least be able to * decode management traffic through the "backup plan".
drivers/net/dsa/sja1105/sja1105_static_config.c +5 -2
@@ -142,6 +142,9 @@ static size_t sja1105et_general_params_entry_packing(void *buf, void *entry_ptr,return size; } +/* TPID and TPID2 are intentionally reversed so that semantic +* compatibility with E/T is kept. +*/ static size_t sja1105pqrs_general_params_entry_packing (void *buf,void *entry_ptr,enum packing_op op)
@@ -166,9 +169,9 @@ sja1105pqrs_general_params_entry_packing(void *buf, void *entry_ptr,sja1105_packing (buf, &entry->mirr_port,141 ,139 , size, op);sja1105_packing (buf, &entry->vlmarker,138 ,107 , size, op);sja1105_packing (buf, &entry->vlmask,106 ,75 , size, op); -sja1105_packing (buf, &entry->tpid,74 ,59 , size, op); +sja1105_packing (buf, &entry->tpid2,74 ,59 , size, op);sja1105_packing (buf, &entry->ignore2stf,58 ,58 , size, op); -sja1105_packing (buf, &entry->tpid2,57 ,42 , size, op); +sja1105_packing (buf, &entry->tpid,57 ,42 , size, op);sja1105_packing (buf, &entry->queue_ts,41 ,41 , size, op);sja1105_packing (buf, &entry->egrmirrvid,40 ,29 , size, op);sja1105_packing (buf, &entry->egrmirrpcp,28 ,26 , size, op);
drivers/net/ethernet/amazon/ena/ena_netdev.c +7 -3
@@ -1238,8 +1238,8 @@ static int ena_io_poll(struct napi_struct *napi, int budget) struct ena_napi *ena_napi = container_of(napi, struct ena_napi, napi);struct ena_ring *tx_ring, *rx_ring; -u32 tx_work_done; -u32 rx_work_done; +int tx_work_done; +int rx_work_done =0 ;int tx_budget;int napi_comp_call =0 ;int ret;
@@ -1256,7 +1256,11 @@ static int ena_io_poll(struct napi_struct *napi, int budget) } tx_work_done =ena_clean_tx_irq (tx_ring, tx_budget); - rx_work_done =ena_clean_rx_irq (rx_ring, napi, budget); +/* On netpoll the budget is zero and the handler should only clean the +* tx completions. +*/ +if (likely (budget)) + rx_work_done =ena_clean_rx_irq (rx_ring, napi, budget);/* If the device is about to reset or down, avoid unmask * the interrupt and return 0 so NAPI won't reschedule
drivers/net/ethernet/broadcom/bnxt/bnxt.c +43 -20
143 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
@@ -1658,6 +1658,7 @@ struct bnxt {#define BNXT_FW_CAP_PCIE_STATS_SUPPORTED 0x00020000#define BNXT_FW_CAP_EXT_STATS_SUPPORTED 0x00040000#define BNXT_FW_CAP_ERR_RECOVER_RELOAD 0x00100000 +#define BNXT_FW_CAP_HOT_RESET 0x00200000#define BNXT_NEW_RM (bp) ((bp)->fw_cap & BNXT_FW_CAP_NEW_RM)u32 hwrm_spec_code;
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +62 -31
174 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h +2 -0
@@ -57,6 +57,8 @@ struct bnxt_dl_nvm_param { };void bnxt_devlink_health_report (struct bnxt *bp,unsigned long event); +void bnxt_dl_fw_reporters_create (struct bnxt *bp); +void bnxt_dl_fw_reporters_destroy (struct bnxt *bp,bool all);int bnxt_dl_register (struct bnxt *bp);void bnxt_dl_unregister (struct bnxt *bp);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +30 -8
@@ -3064,8 +3064,15 @@ static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, int msg_len, } } -if (info->dest_buf) -memcpy (info->dest_buf + off, dma_buf, len); +if (info->dest_buf) { +if ((info->seg_start + off + len) <= +BNXT_COREDUMP_BUF_LEN (info->buf_len)) { +memcpy (info->dest_buf + off, dma_buf, len); + }else { + rc = -ENOBUFS ; +break ; + } + }if (cmn_req->req_type ==cpu_to_le16 (HWRM_DBG_COREDUMP_RETRIEVE ))
@@ -3119,7 +3126,7 @@ static int bnxt_hwrm_dbg_coredump_initiate(struct bnxt *bp, u16 component_id,static int bnxt_hwrm_dbg_coredump_retrieve (struct bnxt *bp,u16 component_id,u16 segment_id,u32 *seg_len, -void *buf,u32 offset) +void *buf,u32 buf_len,u32 offset) {struct hwrm_dbg_coredump_retrieve_input req = {0 };struct bnxt_hwrm_dbg_dma_info info = {NULL };
@@ -3134,8 +3141,11 @@ static int bnxt_hwrm_dbg_coredump_retrieve(struct bnxt *bp, u16 component_id, seq_no); info.data_len_off = offsetof(struct hwrm_dbg_coredump_retrieve_output , data_len); -if (buf) +if (buf) { info.dest_buf = buf + offset; + info.buf_len = buf_len; + info.seg_start = offset; + } rc =bnxt_hwrm_dbg_dma_data (bp, &req,sizeof (req), &info);if (!rc)
@@ -3225,14 +3235,17 @@ bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record,static int bnxt_get_coredump (struct bnxt *bp,void *buf,u32 *dump_len) {u32 ver_get_resp_len =sizeof (struct hwrm_ver_get_output ); +u32 offset =0 , seg_hdr_len, seg_record_len, buf_len =0 ;struct coredump_segment_record *seg_record =NULL ; -u32 offset =0 , seg_hdr_len, seg_record_len;struct bnxt_coredump_segment_hdr seg_hdr;struct bnxt_coredump coredump = {NULL };time64_t start_time;u16 start_utc;int rc =0 , i; +if (buf) + buf_len = *dump_len; + start_time =ktime_get_real_seconds (); start_utc = sys_tz.tz_minuteswest *60 ; seg_hdr_len =sizeof (seg_hdr);
@@ -3265,6 +3278,12 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len)u32 duration =0 , seg_len =0 ;unsigned long start, end; +if (buf && ((offset + seg_hdr_len) > +BNXT_COREDUMP_BUF_LEN (buf_len))) { + rc = -ENOBUFS ; + goto err; + } + start = jiffies; rc =bnxt_hwrm_dbg_coredump_initiate (bp, comp_id, seg_id);
@@ -3277,9 +3296,11 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len)/* Write segment data into the buffer */ rc =bnxt_hwrm_dbg_coredump_retrieve (bp, comp_id, seg_id, - &seg_len, buf, + &seg_len, buf, buf_len, offset + seg_hdr_len); -if (rc) +if (rc && rc == -ENOBUFS ) + goto err; +else if (rc)netdev_err (bp->dev,"Failed to retrieve coredump for seg = %d\n" , seg_record->segment_id);
@@ -3309,7 +3330,8 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len) rc);kfree (coredump.data); *dump_len +=sizeof (struct bnxt_coredump_record ); - +if (rc == -ENOBUFS ) +netdev_err (bp->dev,"Firmware returned large coredump buffer" );return rc; }
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h +4 -0
@@ -31,6 +31,8 @@ struct bnxt_coredump {u16 total_segs; }; +#define BNXT_COREDUMP_BUF_LEN (len) ((len) - sizeof(struct bnxt_coredump_record)) +struct bnxt_hwrm_dbg_dma_info {void *dest_buf;int dest_buf_size;
@@ -38,6 +40,8 @@ struct bnxt_hwrm_dbg_dma_info {u16 seq_off;u16 data_len_off;u16 segs; +u32 seg_start; +u32 buf_len; };struct hwrm_dbg_cmn_input {
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +6 -2
@@ -113,8 +113,10 @@ static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, int ulp_id, {struct net_device *dev = edev->net;struct bnxt *bp =netdev_priv (dev); +struct bnxt_hw_resc *hw_resc;int max_idx, max_cp_rings;int avail_msix, idx; +int total_vecs;int rc =0 ;ASSERT_RTNL ();
@@ -142,7 +144,10 @@ static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, int ulp_id, } edev->ulp_tbl[ulp_id].msix_base = idx; edev->ulp_tbl[ulp_id].msix_requested = avail_msix; -if (bp->total_irqs < (idx + avail_msix)) { + hw_resc = &bp->hw_resc; + total_vecs = idx + avail_msix; +if (bp->total_irqs < total_vecs || + (BNXT_NEW_RM (bp) && hw_resc->resv_irqs < total_vecs)) {if (netif_running (dev)) {bnxt_close_nic (bp, true, false); rc =bnxt_open_nic (bp, true, false);
@@ -156,7 +161,6 @@ static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, int ulp_id, }if (BNXT_NEW_RM (bp)) { -struct bnxt_hw_resc *hw_resc = &bp->hw_resc;int resv_msix; resv_msix = hw_resc->resv_irqs - bp->cp_nr_rings;
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +1 -0
@@ -503,6 +503,7 @@ struct link_config {enum cc_pause requested_fc;/* flow control user has requested */ enum cc_pause fc;/* actual link flow control */ +enum cc_pause advertised_fc;/* actual advertised flow control */ enum cc_fec requested_fec;/* Forward Error Correction: */ enum cc_fec fec;/* requested and actual in use */
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c +2 -2
@@ -793,8 +793,8 @@ static void get_pauseparam(struct net_device *dev,struct port_info *p =netdev_priv (dev); epause->autoneg = (p->link_cfg.requested_fc &PAUSE_AUTONEG ) !=0 ; - epause->rx_pause = (p->link_cfg.fc &PAUSE_RX ) !=0 ; - epause->tx_pause = (p->link_cfg.fc &PAUSE_TX ) !=0 ; + epause->rx_pause = (p->link_cfg.advertised_fc &PAUSE_RX ) !=0 ; + epause->tx_pause = (p->link_cfg.advertised_fc &PAUSE_TX ) !=0 ; } static int set_pauseparam(struct net_device *dev,
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +13 -8
@@ -4089,7 +4089,8 @@ static inline fw_port_cap32_t cc_to_fwcap_pause(enum cc_pause cc_pause)if (cc_pause &PAUSE_TX ) fw_pause |=FW_PORT_CAP32_802_3_PAUSE ;else - fw_pause |=FW_PORT_CAP32_802_3_ASM_DIR ; + fw_pause |=FW_PORT_CAP32_802_3_ASM_DIR | +FW_PORT_CAP32_802_3_PAUSE ; }else if (cc_pause &PAUSE_TX ) { fw_pause |=FW_PORT_CAP32_802_3_ASM_DIR ; }
@@ -8563,17 +8564,17 @@ static fw_port_cap32_t lstatus_to_fwcap(u32 lstatus)void t4_handle_get_port_info (struct port_info *pi,const __be64 *rpl) {const struct fw_port_cmd *cmd = (const void *)rpl; -int action =FW_PORT_CMD_ACTION_G (be32_to_cpu (cmd->action_to_len16)); -struct adapter *adapter = pi->adapter; +fw_port_cap32_t pcaps, acaps, lpacaps, linkattr;struct link_config *lc = &pi->link_cfg; -int link_ok, linkdnrc; -enum fw_port_type port_type; +struct adapter *adapter = pi->adapter; +unsigned int speed, fc, fec, adv_fc;enum fw_port_module_type mod_type; -unsigned int speed, fc, fec; -fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; +int action, link_ok, linkdnrc; +enum fw_port_type port_type;/* Extract the various fields from the Port Information message. */ + action =FW_PORT_CMD_ACTION_G (be32_to_cpu (cmd->action_to_len16));switch (action) {case FW_PORT_ACTION_GET_PORT_INFO : {u32 lstatus =be32_to_cpu (cmd->u.info.lstatus_to_modtype);
@@ -8611,6 +8612,7 @@ void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl) } fec =fwcap_to_cc_fec (acaps); + adv_fc =fwcap_to_cc_pause (acaps); fc =fwcap_to_cc_pause (linkattr); speed =fwcap_to_speed (linkattr);
@@ -8667,7 +8669,9 @@ void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl) }if (link_ok != lc->link_ok || speed != lc->speed || - fc != lc->fc || fec != lc->fec) {/* something changed */ + fc != lc->fc || adv_fc != lc->advertised_fc || + fec != lc->fec) { +/* something changed */ if (!link_ok && lc->link_ok) { lc->link_down_rc = linkdnrc; dev_warn_ratelimited(adapter->pdev_dev,
@@ -8677,6 +8681,7 @@ void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl) } lc->link_ok = link_ok; lc->speed = speed; + lc->advertised_fc = adv_fc; lc->fc = fc; lc->fec = fec;
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +2 -2
@@ -1690,8 +1690,8 @@ static void cxgb4vf_get_pauseparam(struct net_device *dev,struct port_info *pi =netdev_priv (dev); pauseparam->autoneg = (pi->link_cfg.requested_fc &PAUSE_AUTONEG ) !=0 ; - pauseparam->rx_pause = (pi->link_cfg.fc &PAUSE_RX ) !=0 ; - pauseparam->tx_pause = (pi->link_cfg.fc &PAUSE_TX ) !=0 ; + pauseparam->rx_pause = (pi->link_cfg.advertised_fc &PAUSE_RX ) !=0 ; + pauseparam->tx_pause = (pi->link_cfg.advertised_fc &PAUSE_TX ) !=0 ; }/*
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h +1 -0
@@ -135,6 +135,7 @@ struct link_config {enum cc_pause requested_fc;/* flow control user has requested */ enum cc_pause fc;/* actual link flow control */ +enum cc_pause advertised_fc;/* actual advertised flow control */ enum cc_fec auto_fec;/* Forward Error Correction: */ enum cc_fec requested_fec;/* "automatic" (IEEE 802.3), */
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c +11 -7
@@ -1913,16 +1913,16 @@ static const char *t4vf_link_down_rc_str(unsigned char link_down_rc)static void t4vf_handle_get_port_info (struct port_info *pi,const struct fw_port_cmd *cmd) { -int action =FW_PORT_CMD_ACTION_G (be32_to_cpu (cmd->action_to_len16)); -struct adapter *adapter = pi->adapter; +fw_port_cap32_t pcaps, acaps, lpacaps, linkattr;struct link_config *lc = &pi->link_cfg; -int link_ok, linkdnrc; -enum fw_port_type port_type; +struct adapter *adapter = pi->adapter; +unsigned int speed, fc, fec, adv_fc;enum fw_port_module_type mod_type; -unsigned int speed, fc, fec; -fw_port_cap32_t pcaps, acaps, lpacaps, linkattr; +int action, link_ok, linkdnrc; +enum fw_port_type port_type;/* Extract the various fields from the Port Information message. */ + action =FW_PORT_CMD_ACTION_G (be32_to_cpu (cmd->action_to_len16));switch (action) {case FW_PORT_ACTION_GET_PORT_INFO : {u32 lstatus =be32_to_cpu (cmd->u.info.lstatus_to_modtype);
@@ -1982,6 +1982,7 @@ static void t4vf_handle_get_port_info(struct port_info *pi, } fec =fwcap_to_cc_fec (acaps); + adv_fc =fwcap_to_cc_pause (acaps); fc =fwcap_to_cc_pause (linkattr); speed =fwcap_to_speed (linkattr);
@@ -2012,7 +2013,9 @@ static void t4vf_handle_get_port_info(struct port_info *pi, }if (link_ok != lc->link_ok || speed != lc->speed || - fc != lc->fc || fec != lc->fec) {/* something changed */ + fc != lc->fc || adv_fc != lc->advertised_fc || + fec != lc->fec) { +/* something changed */ if (!link_ok && lc->link_ok) { lc->link_down_rc = linkdnrc; dev_warn_ratelimited(adapter->pdev_dev,
@@ -2022,6 +2025,7 @@ static void t4vf_handle_get_port_info(struct port_info *pi, } lc->link_ok = link_ok; lc->speed = speed; + lc->advertised_fc = adv_fc; lc->fc = fc; lc->fec = fec;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +1 -1
@@ -3674,7 +3674,7 @@ static int mvpp2_open(struct net_device *dev) valid = true; } -if (priv->hw_version ==MVPP22 && port->link_irq && !port->phylink) { +if (priv->hw_version ==MVPP22 && port->link_irq) { err =request_irq (port->link_irq, mvpp2_link_status_isr,0 , dev->name, port);if (err) {
drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c +4 -3
@@ -6,6 +6,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/netlink.h> +#include <linux/vmalloc.h> #include <linux/xz.h> #include "mlxfw_mfa2.h" #include "mlxfw_mfa2_file.h"
@@ -548,7 +549,7 @@ mlxfw_mfa2_file_component_get(const struct mlxfw_mfa2_file *mfa2_file, comp_size =be32_to_cpu (comp->size); comp_buf_size = comp_size + mlxfw_mfa2_comp_magic_len; - comp_data =kmalloc (sizeof (*comp_data) + comp_buf_size,GFP_KERNEL ); + comp_data =vzalloc (sizeof (*comp_data) + comp_buf_size);if (!comp_data)return ERR_PTR (-ENOMEM ); comp_data->comp.data_size = comp_size;
@@ -570,7 +571,7 @@ mlxfw_mfa2_file_component_get(const struct mlxfw_mfa2_file *mfa2_file, comp_data->comp.data = comp_data->buff + mlxfw_mfa2_comp_magic_len;return &comp_data->comp; err_out: -kfree (comp_data); +vfree (comp_data);return ERR_PTR (err); }
@@ -579,7 +580,7 @@ void mlxfw_mfa2_file_component_put(struct mlxfw_mfa2_component *comp)const struct mlxfw_mfa2_comp_data *comp_data; comp_data = container_of(comp, struct mlxfw_mfa2_comp_data, comp); -kfree (comp_data); +vfree (comp_data); }void mlxfw_mfa2_file_fini (struct mlxfw_mfa2_file *mfa2_file)
drivers/net/ethernet/mellanox/mlxsw/reg.h +1 -0
@@ -5421,6 +5421,7 @@ enum mlxsw_reg_htgt_trap_group {MLXSW_REG_HTGT_TRAP_GROUP_SP_LBERROR ,MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP0 ,MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP1 , +MLXSW_REG_HTGT_TRAP_GROUP_SP_VRRP , __MLXSW_REG_HTGT_TRAP_GROUP_MAX,MLXSW_REG_HTGT_TRAP_GROUP_MAX = __MLXSW_REG_HTGT_TRAP_GROUP_MAX -1
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +7 -2
@@ -4398,8 +4398,8 @@ static const struct mlxsw_listener mlxsw_sp_listener[] = {MLXSW_SP_RXL_MARK (ROUTER_ALERT_IPV6 ,TRAP_TO_CPU ,ROUTER_EXP , false),MLXSW_SP_RXL_MARK (IPIP_DECAP_ERROR ,TRAP_TO_CPU ,ROUTER_EXP , false),MLXSW_SP_RXL_MARK (DECAP_ECN0 ,TRAP_TO_CPU ,ROUTER_EXP , false), -MLXSW_SP_RXL_MARK (IPV4_VRRP ,TRAP_TO_CPU ,ROUTER_EXP , false), -MLXSW_SP_RXL_MARK (IPV6_VRRP ,TRAP_TO_CPU ,ROUTER_EXP , false), +MLXSW_SP_RXL_MARK (IPV4_VRRP ,TRAP_TO_CPU ,VRRP , false), +MLXSW_SP_RXL_MARK (IPV6_VRRP ,TRAP_TO_CPU ,VRRP , false),/* PKT Sample trap */ MLXSW_RXL (mlxsw_sp_rx_listener_sample_func,PKT_SAMPLE ,MIRROR_TO_CPU , false, SP_IP2ME, DISCARD),
@@ -4483,6 +4483,10 @@ static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) rate =19 *1024 ; burst_size =12 ;break ; +case MLXSW_REG_HTGT_TRAP_GROUP_SP_VRRP : + rate =360 ; + burst_size =7 ; +break ;default :continue ; }
@@ -4522,6 +4526,7 @@ static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core)case MLXSW_REG_HTGT_TRAP_GROUP_SP_OSPF :case MLXSW_REG_HTGT_TRAP_GROUP_SP_PIM :case MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP0 : +case MLXSW_REG_HTGT_TRAP_GROUP_SP_VRRP : priority =5 ; tc =5 ;break ;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +3 -0
@@ -6985,6 +6985,9 @@ static int mlxsw_sp_router_port_check_rif_addr(struct mlxsw_sp *mlxsw_sp,for (i =0 ; i <MLXSW_CORE_RES_GET (mlxsw_sp->core,MAX_RIFS ); i++) { rif = mlxsw_sp->router->rifs[i]; +if (rif && rif->ops && + rif->ops->type ==MLXSW_SP_RIF_TYPE_IPIP_LB ) +continue ;if (rif && rif->dev && rif->dev != dev && !ether_addr_equal_masked (rif->dev->dev_addr, dev_addr, mlxsw_sp->mac_mask)) {
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c +11 -3
@@ -112,6 +112,14 @@ static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac)struct device *dev = dwmac->dev;const char *parent_name, *mux_parent_names[MUX_CLK_NUM_PARENTS ];struct meson8b_dwmac_clk_configs *clk_configs; +static const struct clk_div_table div_table[] = { + { .div =2 , .val =2 , }, + { .div =3 , .val =3 , }, + { .div =4 , .val =4 , }, + { .div =5 , .val =5 , }, + { .div =6 , .val =6 , }, + { .div =7 , .val =7 , }, + }; clk_configs =devm_kzalloc (dev,sizeof (*clk_configs),GFP_KERNEL );if (!clk_configs)
@@ -146,9 +154,9 @@ static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) clk_configs->m250_div.reg = dwmac->regs +PRG_ETH0 ; clk_configs->m250_div.shift =PRG_ETH0_CLK_M250_DIV_SHIFT ; clk_configs->m250_div.width =PRG_ETH0_CLK_M250_DIV_WIDTH ; - clk_configs->m250_div.flags =CLK_DIVIDER_ONE_BASED | -CLK_DIVIDER_ALLOW_ZERO | -CLK_DIVIDER_ROUND_CLOSEST ; + clk_configs->m250_div.table = div_table; + clk_configs->m250_div.flags =CLK_DIVIDER_ALLOW_ZERO | +CLK_DIVIDER_ROUND_CLOSEST ; clk =meson8b_dwmac_register_clk (dwmac,"m250_div" , &parent_name,1 , &clk_divider_ops, &clk_configs->m250_div.hw);
drivers/net/gtp.c +64 -47
218 lines not on this page · raw message
drivers/net/hamradio/6pack.c +2 -2
@@ -654,10 +654,10 @@ static void sixpack_close(struct tty_struct *tty) {struct sixpack *sp; -write_lock_bh (&disc_data_lock); +write_lock_irq (&disc_data_lock); sp = tty->disc_data; tty->disc_data =NULL ; -write_unlock_bh (&disc_data_lock); +write_unlock_irq (&disc_data_lock);if (!sp)return ;
drivers/net/hamradio/mkiss.c +2 -2
@@ -773,10 +773,10 @@ static void mkiss_close(struct tty_struct *tty) {struct mkiss *ax; -write_lock_bh (&disc_data_lock); +write_lock_irq (&disc_data_lock); ax = tty->disc_data; tty->disc_data =NULL ; -write_unlock_bh (&disc_data_lock); +write_unlock_irq (&disc_data_lock);if (!ax)return ;
drivers/net/hyperv/rndis_filter.c +3 -3
@@ -1165,6 +1165,9 @@ int rndis_set_subchannel(struct net_device *ndev,wait_event (nvdev->subchan_open,atomic_read (&nvdev->open_chn) == nvdev->num_chn); +for (i =0 ; i <VRSS_SEND_TAB_SIZE ; i++) + ndev_ctx->tx_table[i] = i % nvdev->num_chn; +/* ignore failures from setting rss parameters, still have channels */ if (dev_info)rndis_filter_set_rss_param (rdev, dev_info->rss_key);
@@ -1174,9 +1177,6 @@ int rndis_set_subchannel(struct net_device *ndev,netif_set_real_num_tx_queues (ndev, nvdev->num_chn);netif_set_real_num_rx_queues (ndev, nvdev->num_chn); -for (i =0 ; i <VRSS_SEND_TAB_SIZE ; i++) - ndev_ctx->tx_table[i] = i % nvdev->num_chn; -return 0 ; }
drivers/net/phy/aquantia_main.c +2 -0
@@ -627,6 +627,8 @@ static struct phy_driver aqr_driver[] = { .config_intr = aqr_config_intr, .ack_interrupt = aqr_ack_interrupt, .read_status = aqr_read_status, + .suspend = aqr107_suspend, + .resume = aqr107_resume, }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR106),
drivers/net/phy/phylink.c +1 -2
@@ -444,8 +444,7 @@ static void phylink_mac_link_up(struct phylink *pl, pl->cur_interface = link_state.interface; pl->ops->mac_link_up (pl->config, pl->link_an_mode, - pl->phy_state.interface, - pl->phydev); + pl->cur_interface, pl->phydev);if (ndev)netif_carrier_on (ndev);
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +12 -12
@@ -1111,18 +1111,18 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)/* same thing for QuZ... */ if (iwl_trans->hw_rev ==CSR_HW_REV_TYPE_QUZ ) { -if (iwl_trans->cfg == &iwl_ax101_cfg_qu_hr) - iwl_trans->cfg = &iwl_ax101_cfg_quz_hr; -else if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr) - iwl_trans->cfg = &iwl_ax201_cfg_quz_hr; -else if (iwl_trans->cfg == &iwl9461_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9461_2ac_cfg_quz_a0_jf_b0_soc; -else if (iwl_trans->cfg == &iwl9462_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9462_2ac_cfg_quz_a0_jf_b0_soc; -else if (iwl_trans->cfg == &iwl9560_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9560_2ac_cfg_quz_a0_jf_b0_soc; -else if (iwl_trans->cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc; +if (cfg == &iwl_ax101_cfg_qu_hr) + cfg = &iwl_ax101_cfg_quz_hr; +else if (cfg == &iwl_ax201_cfg_qu_hr) + cfg = &iwl_ax201_cfg_quz_hr; +else if (cfg == &iwl9461_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9461_2ac_cfg_quz_a0_jf_b0_soc; +else if (cfg == &iwl9462_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9462_2ac_cfg_quz_a0_jf_b0_soc; +else if (cfg == &iwl9560_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9560_2ac_cfg_quz_a0_jf_b0_soc; +else if (cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0) + cfg = &iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc; }#endif
drivers/nvdimm/btt.c +4 -4
@@ -1261,11 +1261,11 @@ static int btt_read_pg(struct btt *btt, struct bio_integrity_payload *bip, ret =btt_data_read (arena, page, off, postmap, cur_len);if (ret) { -int rc; -/* Media error - set the e_flag */ - rc =btt_map_write (arena, premap, postmap,0 ,1 , -NVDIMM_IO_ATOMIC ); +if (btt_map_write (arena, premap, postmap,0 ,1 ,NVDIMM_IO_ATOMIC )) +dev_warn_ratelimited (to_dev (arena), +"Error persistently tracking bad blocks at %#x\n" , + premap); goto out_rtt; }
drivers/of/unittest.c +3 -1
@@ -1146,8 +1146,10 @@ static void attach_node_and_children(struct device_node *np) full_name =kasprintf (GFP_KERNEL ,"%pOF" , np);if (!strcmp (full_name,"/__local_fixups__" ) || - !strcmp (full_name,"/__fixups__" )) + !strcmp (full_name,"/__fixups__" )) { +kfree (full_name);return ; + } dup =of_find_node_by_path (full_name);kfree (full_name);
drivers/pci/hotplug/rpaphp_core.c +21 -17
@@ -154,11 +154,11 @@ static enum pci_bus_speed get_max_bus_speed(struct slot *slot)return speed; } -static int get_children_props (struct device_node *dn,const int **drc_indexes, -const int **drc_names,const int **drc_types, -const int **drc_power_domains) +static int get_children_props (struct device_node *dn,const __be32 **drc_indexes, +const __be32 **drc_names,const __be32 **drc_types, +const __be32 **drc_power_domains) { -const int *indexes, *names, *types, *domains; +const __be32 *indexes, *names, *types, *domains; indexes =of_get_property (dn,"ibm,drc-indexes" ,NULL ); names =of_get_property (dn,"ibm,drc-names" ,NULL );
@@ -194,8 +194,8 @@ static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, char *drc_type, unsigned int my_index) { char *name_tmp, *type_tmp; -const int *indexes, *names; -const int *types, *domains; +const __be32 *indexes, *names; +const __be32 *types, *domains;int i, rc; rc =get_children_props (dn->parent, &indexes, &names, &types, &domains);
@@ -208,7 +208,7 @@ static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name,/* Iterate through parent properties, looking for my-drc-index */ for (i =0 ; i <be32_to_cpu (indexes[0 ]); i++) { -if ((unsigned int ) indexes[i +1 ] == my_index) +if (be32_to_cpu (indexes[i +1 ]) == my_index)break ; name_tmp += (strlen (name_tmp) +1 );
@@ -239,6 +239,8 @@ static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, value =of_prop_next_u32 (info,NULL , &entries);if (!value)return -EINVAL ; +else + value++;for (j =0 ; j < entries; j++) {of_read_drc_info_cell (&info, &value, &drc);
@@ -246,9 +248,10 @@ static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name,/* Should now know end of current entry */ /* Found it */ -if (my_index <= drc.last_drc_index) { +if (my_index >= drc.drc_index_start && my_index <= drc.last_drc_index) { +int index = my_index - drc.drc_index_start;sprintf (cell_drc_name,"%s%d" , drc.drc_name_prefix, - my_index); + drc.drc_name_suffix_start + index);break ; } }
@@ -265,7 +268,7 @@ static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name,int rpaphp_check_drc_props (struct device_node *dn,char *drc_name,char *drc_type) { -const unsigned int *my_index; +const __be32 *my_index; my_index =of_get_property (dn,"ibm,my-drc-index" ,NULL );if (!my_index) {
@@ -273,12 +276,12 @@ int rpaphp_check_drc_props(struct device_node *dn, char *drc_name,return -EINVAL ; } -if (firmware_has_feature (FW_FEATURE_DRC_INFO )) +if (of_find_property (dn->parent,"ibm,drc-info" ,NULL ))return rpaphp_check_drc_props_v2 (dn, drc_name, drc_type, - *my_index); +be32_to_cpu (*my_index));else return rpaphp_check_drc_props_v1 (dn, drc_name, drc_type, - *my_index); +be32_to_cpu (*my_index)); }EXPORT_SYMBOL_GPL (rpaphp_check_drc_props);
@@ -309,10 +312,11 @@ static int is_php_type(char *drc_type)* for built-in pci slots (even when the built-in slots are * dlparable.) */ -static int is_php_dn (struct device_node *dn,const int **indexes, -const int **names,const int **types,const int **power_domains) +static int is_php_dn (struct device_node *dn,const __be32 **indexes, +const __be32 **names,const __be32 **types, +const __be32 **power_domains) { -const int *drc_types; +const __be32 *drc_types;int rc; rc =get_children_props (dn, indexes, names, &drc_types, power_domains);
@@ -347,7 +351,7 @@ int rpaphp_add_slot(struct device_node *dn)struct slot *slot;int retval =0 ;int i; -const int *indexes, *names, *types, *power_domains; +const __be32 *indexes, *names, *types, *power_domains;char *name, *type;if (!dn->name ||strcmp (dn->name,"pci" ))
drivers/platform/x86/Kconfig +0 -1
@@ -806,7 +806,6 @@ config PEAQ_WMI tristate "PEAQ 2-in-1 WMI hotkey driver" depends on ACPI_WMI depends on INPUT - select INPUT_POLLDEV help Say Y here if you want to support WMI-based hotkeys on PEAQ 2-in-1s.
drivers/platform/x86/intel_pmc_core.c +10 -7
@@ -158,8 +158,9 @@ static const struct pmc_reg_map spt_reg_map = { .pm_vric1_offset = SPT_PMC_VRIC1_OFFSET, }; -/* Cannonlake: PGD PFET Enable Ack Status Register(s) bitmap */ +/* Cannon Lake: PGD PFET Enable Ack Status Register(s) bitmap */ static const struct pmc_bit_map cnp_pfear_map[] = { +/* Reserved for Cannon Lake but valid for Comet Lake */ {"PMC" ,BIT (0 )}, {"OPI-DMI" ,BIT (1 )}, {"SPI/eSPI" ,BIT (2 )},
@@ -185,7 +186,7 @@ static const struct pmc_bit_map cnp_pfear_map[] = { {"SDX", BIT(4)}, {"SPE", BIT(5)}, {"Fuse", BIT(6)}, -/* Reserved for Cannonlake but valid for Icelake */ +/* Reserved for Cannon Lake but valid for Ice Lake and Comet Lake */ {"SBR8", BIT(7)}, {"CSME_FSC", BIT(0)},
@@ -229,12 +230,12 @@ static const struct pmc_bit_map cnp_pfear_map[] = { {"HDA_PGD4", BIT(2)}, {"HDA_PGD5", BIT(3)}, {"HDA_PGD6", BIT(4)}, -/* Reserved for Cannonlake but valid for Icelake */ +/* Reserved for Cannon Lake but valid for Ice Lake and Comet Lake */ {"PSF6", BIT(5)}, {"PSF7", BIT(6)}, {"PSF8", BIT(7)}, -/* Icelake generation onwards only */ +/* Ice Lake generation onwards only */ {"RES_65", BIT(0)}, {"RES_66", BIT(1)}, {"RES_67", BIT(2)},
@@ -324,7 +325,7 @@ static const struct pmc_bit_map cnp_ltr_show_map[] = { {"ISH", CNP_PMC_LTR_ISH}, {"UFSX2", CNP_PMC_LTR_UFSX2}, {"EMMC", CNP_PMC_LTR_EMMC}, -/* Reserved for Cannonlake but valid for Icelake */ +/* Reserved for Cannon Lake but valid for Ice Lake */ {"WIGIG", ICL_PMC_LTR_WIGIG},/* Below two cannot be used for LTR_IGNORE */ {"CURRENT_PLATFORM", CNP_PMC_LTR_CUR_PLT},
@@ -813,6 +814,8 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = {INTEL_CPU_FAM6 (CANNONLAKE_L , cnp_reg_map),INTEL_CPU_FAM6 (ICELAKE_L , icl_reg_map),INTEL_CPU_FAM6 (ICELAKE_NNPI , icl_reg_map), +INTEL_CPU_FAM6 (COMETLAKE , cnp_reg_map), + INTEL_CPU_FAM6(COMETLAKE_L, cnp_reg_map), {} };
@@ -871,8 +874,8 @@ static int pmc_core_probe(struct platform_device *pdev) pmcdev->map = (struct pmc_reg_map *)cpu_id->driver_data;/* -* Coffeelake has CPU ID of Kabylake and Cannonlake PCH. So here -* Sunrisepoint PCH regmap can't be used. Use Cannonlake PCH regmap +* Coffee Lake has CPU ID of Kaby Lake and Cannon Lake PCH. So here +* Sunrisepoint PCH regmap can't be used. Use Cannon Lake PCH regmap * in this case. */ if (pmcdev->map == &spt_reg_map && !pci_dev_present (pmc_pci_ids))
drivers/platform/x86/peaq-wmi.c +42 -24
30 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_els.c +32 -10
42 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_auth.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/target/target_core_transport.c +15 -0
Lines of this file are not shown. View the raw message.
drivers/watchdog/watchdog_dev.c +38 -42
80 lines not on this page · raw message
fs/cifs/connect.c +35 -11
46 lines not on this page · raw message
fs/cifs/file.c +49 -25
74 lines not on this page · raw message
tools/power/x86/intel-speed-select/isst-config.c +6 -3
Lines of this file are not shown. View the raw message.
tools/power/x86/intel-speed-select/isst-core.c +4 -4
Lines of this file are not shown. View the raw message.
tools/power/x86/intel-speed-select/isst-display.c +2 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/tm/tm-signal-sigreturn-nt.c +4 -0
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.