Linux 4.19.84
Greg KH
maintainerI'm announcing the release of the 4.19.84 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.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/ABI/testing/sysfs-devices-system-cpu | 2 Documentation/admin-guide/hw-vuln/index.rst | 2 Documentation/admin-guide/hw-vuln/multihit.rst | 163 ++++ Documentation/admin-guide/hw-vuln/tsx_async_abort.rst | 276 +++++++ Documentation/admin-guide/kernel-parameters.txt | 92 ++ Documentation/scheduler/sched-bwc.txt | 45 + Documentation/virtual/kvm/locking.txt | 4 Documentation/x86/index.rst | 1 Documentation/x86/tsx_async_abort.rst | 117 +++ Makefile | 2 arch/arm/mach-sunxi/mc_smp.c | 6 arch/arm64/include/asm/pgtable.h | 17 arch/s390/kvm/kvm-s390.c | 4 arch/x86/Kconfig | 45 + arch/x86/events/amd/ibs.c | 8 arch/x86/events/intel/uncore.c | 44 + arch/x86/events/intel/uncore.h | 12 arch/x86/include/asm/cpufeatures.h | 2 arch/x86/include/asm/kvm_host.h | 6 arch/x86/include/asm/msr-index.h | 16 arch/x86/include/asm/nospec-branch.h | 4 arch/x86/include/asm/processor.h | 7 arch/x86/kernel/apic/apic.c | 28 arch/x86/kernel/cpu/Makefile | 2 arch/x86/kernel/cpu/bugs.c | 161 ++++ arch/x86/kernel/cpu/common.c | 94 +- arch/x86/kernel/cpu/cpu.h | 18 arch/x86/kernel/cpu/intel.c | 5 arch/x86/kernel/cpu/tsx.c | 140 +++ arch/x86/kvm/cpuid.c | 8 arch/x86/kvm/mmu.c | 374 ++++++++-- arch/x86/kvm/mmu.h | 4 arch/x86/kvm/mmutrace.h | 59 + arch/x86/kvm/paging_tmpl.h | 65 + arch/x86/kvm/svm.c | 10 arch/x86/kvm/vmx.c | 14 arch/x86/kvm/x86.c | 67 + block/blk-cgroup.c | 13 drivers/base/cpu.c | 17 drivers/dma/sprd-dma.c | 15 drivers/dma/xilinx/xilinx_dma.c | 7 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 24 drivers/gpu/drm/i915/i915_cmd_parser.c | 435 ++++++++---- drivers/gpu/drm/i915/i915_drv.c | 5 drivers/gpu/drm/i915/i915_drv.h | 31 drivers/gpu/drm/i915/i915_gem.c | 24 drivers/gpu/drm/i915/i915_gem_context.c | 5 drivers/gpu/drm/i915/i915_gem_context.h | 6 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 110 ++- drivers/gpu/drm/i915/i915_gem_gtt.c | 3 drivers/gpu/drm/i915/i915_reg.h | 10 drivers/gpu/drm/i915/intel_drv.h | 3 drivers/gpu/drm/i915/intel_pm.c | 115 +++ drivers/gpu/drm/i915/intel_ringbuffer.h | 17 drivers/gpu/drm/radeon/si_dpm.c | 1 drivers/hid/hid-google-hammer.c | 4 drivers/hid/hid-ids.h | 2 drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 drivers/hid/wacom.h | 15 drivers/hid/wacom_wac.c | 10 drivers/hwtracing/intel_th/pci.c | 10 drivers/iio/adc/stm32-adc.c | 4 drivers/iio/imu/adis16480.c | 5 drivers/iio/imu/inv_mpu6050/Kconfig | 8 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 86 ++ drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 6 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 30 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 18 drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c | 12 drivers/iio/proximity/srf04.c | 29 drivers/infiniband/core/uverbs.h | 2 drivers/infiniband/hw/cxgb4/cm.c | 30 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 6 drivers/infiniband/hw/mlx5/qp.c | 8 drivers/infiniband/hw/qedr/main.c | 2 drivers/iommu/amd_iommu_quirks.c | 13 drivers/net/bonding/bond_main.c | 47 - drivers/net/can/c_can/c_can.c | 25 drivers/net/can/c_can/c_can.h | 1 drivers/net/can/dev.c | 1 drivers/net/can/flexcan.c | 1 drivers/net/can/rx-offload.c | 6 drivers/net/can/usb/gs_usb.c | 1 drivers/net/can/usb/mcba_usb.c | 3 drivers/net/can/usb/peak_usb/pcan_usb.c | 17 drivers/net/can/usb/peak_usb/pcan_usb_core.c | 2 drivers/net/can/usb/usb_8dev.c | 3 drivers/net/ethernet/arc/emac_rockchip.c | 3 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 2 drivers/net/ethernet/hisilicon/hip04_eth.c | 1 drivers/net/ethernet/hisilicon/hns/hnae.c | 1 drivers/net/ethernet/hisilicon/hns/hnae.h | 3 drivers/net/ethernet/hisilicon/hns/hns_enet.c | 22 drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 7 drivers/net/ethernet/intel/igb/igb_main.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 5 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c | 4 drivers/net/ethernet/mscc/ocelot.c | 20 drivers/net/ethernet/qlogic/qede/qede_main.c | 12 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 4 drivers/net/fjes/fjes_main.c | 15 drivers/net/hyperv/netvsc_drv.c | 9 drivers/net/macsec.c | 4 drivers/net/usb/cdc_ncm.c | 6 drivers/net/usb/qmi_wwan.c | 1 drivers/nfc/fdp/i2c.c | 2 drivers/nfc/st21nfca/core.c | 1 drivers/nvme/host/multipath.c | 2 drivers/pci/controller/pci-tegra.c | 7 drivers/pinctrl/intel/pinctrl-cherryview.c | 2 drivers/pinctrl/intel/pinctrl-intel.c | 21 drivers/scsi/lpfc/lpfc_nportdisc.c | 4 drivers/scsi/qla2xxx/qla_bsg.c | 6 drivers/scsi/qla2xxx/qla_mbx.c | 3 drivers/scsi/qla2xxx/qla_os.c | 4 drivers/soundwire/Kconfig | 1 drivers/soundwire/bus.c | 2 drivers/usb/core/config.c | 5 drivers/usb/dwc3/core.c | 3 drivers/usb/dwc3/dwc3-pci.c | 2 drivers/usb/dwc3/gadget.c | 6 drivers/usb/gadget/composite.c | 4 drivers/usb/gadget/configfs.c | 110 ++- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 drivers/usb/gadget/udc/fsl_udc_core.c | 2 drivers/usb/misc/ldusb.c | 7 drivers/usb/usbip/stub.h | 7 drivers/usb/usbip/stub_main.c | 57 + drivers/usb/usbip/stub_rx.c | 204 ++++- drivers/usb/usbip/stub_tx.c | 99 ++ drivers/usb/usbip/usbip_common.c | 59 + drivers/usb/usbip/vhci_hcd.c | 16 drivers/usb/usbip/vhci_rx.c | 3 drivers/usb/usbip/vhci_tx.c | 69 + fs/ceph/caps.c | 10 fs/ceph/inode.c | 1 fs/cifs/smb2pdu.h | 1 fs/configfs/configfs_internal.h | 15 fs/configfs/dir.c | 137 ++- fs/configfs/file.c | 280 +++---- fs/configfs/symlink.c | 33 fs/fs-writeback.c | 9 fs/nfs/delegation.c | 10 fs/nfs/delegation.h | 1 fs/nfs/nfs4proc.c | 7 fs/ocfs2/file.c | 134 ++- include/linux/cpu.h | 30 include/linux/kvm_host.h | 10 include/linux/mm.h | 5 include/linux/mm_types.h | 5 include/linux/page-flags.h | 20 include/net/bonding.h | 3 include/net/ip_vs.h | 1 include/net/neighbour.h | 4 include/net/netfilter/nf_tables.h | 3 include/net/sock.h | 4 include/rdma/ib_verbs.h | 2 kernel/cpu.c | 27 kernel/sched/fair.c | 91 -- kernel/sched/sched.h | 4 lib/dump_stack.c | 7 mm/filemap.c | 3 mm/memcontrol.c | 9 mm/page_alloc.c | 10 mm/vmstat.c | 2 net/ipv4/fib_semantics.c | 2 net/ipv6/route.c | 13 net/netfilter/ipset/ip_set_core.c | 8 net/netfilter/ipset/ip_set_hash_ipmac.c | 2 net/netfilter/ipvs/ip_vs_app.c | 12 net/netfilter/ipvs/ip_vs_ctl.c | 29 net/netfilter/ipvs/ip_vs_pe.c | 3 net/netfilter/ipvs/ip_vs_sched.c | 3 net/netfilter/ipvs/ip_vs_sync.c | 13 net/netfilter/nf_flow_table_core.c | 3 net/nfc/netlink.c | 2 net/openvswitch/vport-internal_dev.c | 11 net/vmw_vsock/virtio_transport_common.c | 8 sound/core/timer.c | 6 sound/firewire/bebob/bebob_focusrite.c | 3 sound/pci/hda/patch_ca0132.c | 2 sound/usb/Makefile | 3 sound/usb/clock.c | 14 sound/usb/helper.h | 4 sound/usb/mixer.c | 633 ++++++++---------- sound/usb/power.c | 2 sound/usb/quirks.c | 3 sound/usb/stream.c | 25 sound/usb/validate.c | 332 +++++++++ tools/gpio/Makefile | 6 tools/perf/util/hist.c | 2 tools/usb/usbip/libsrc/usbip_device_driver.c | 6 virt/kvm/kvm_main.c | 154 +++- 194 files changed, 4691 insertions(+), 1505 deletions(-)
Al Viro (6):
ceph: add missing check in d_revalidate snapdir handling
configfs: stash the data we need into configfs_buffer at open time configfs_register_group() shouldn't be (and isn't) called in rmdirable parts
configfs: new object reprsenting tree fragments
configfs: provide exclusion between IO and removals
configfs: fix a deadlock in configfs_symlink()
Alan Stern (1):
USB: Skip endpoints with 0 maxpacket length
Aleksander Morgado (1):
net: usb: qmi_wwan: add support for DW5821e with eSIM support
Alex Deucher (1):
drm/radeon: fix si_enable_smc_cac() failed issue
Alexander Shishkin (2):
intel_th: pci: Add Comet Lake PCH support
intel_th: pci: Add Jasper Lake PCH support
Alexander Sverdlin (1):
net: ethernet: octeon_mgmt: Account for second possible VLAN header
Alexandru Ardelean (1):
iio: imu: adis16480: make sure provided frequency is positive
Andreas Klinger (1):
iio: srf04: fix wrong limitation in distance measuring
Andrey Grodzovsky (1):
drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
Andy Shevchenko (1):
pinctrl: intel: Avoid potential glitches if pin is in GPIO mode
Anton Eidelman (1):
nvme-multipath: fix possible io hang after ctrl reconnect
Baolin Wang (1):
dmaengine: sprd: Fix the possible memory leak issue
Bard Liao (1):
soundwire: bus: set initial value to port_status
Ben Hutchings (1):
drm/i915/cmdparser: Fix jump whitelist clearing
Catalin Marinas (1):
arm64: Do not mask out PTE_RDONLY in pte_same()
Chandana Kishori Chiluveru (1):
usb: gadget: composite: Fix possible double free memory bug
Chuhong Yuan (1):
net: ethernet: arc: add the missed clk_disable_unprepare
Claudiu Manoil (2):
net: mscc: ocelot: don't handle netdev events for other netdevs
net: mscc: ocelot: fix NULL pointer on LAG slave removal
Cristian Birsan (1):
usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.
Dan Carpenter (3):
netfilter: ipset: Fix an error code in ip_set_sockfn_get()
ALSA: usb-audio: remove some dead code RDMA/uverbs: Prevent potential underflow
Daniel Wagner (1):
scsi: lpfc: Honor module parameter lpfc_use_adisc
Dave Chiluk (1):
sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices
David Ahern (1):
ipv4: Fix table id reference in fib_sync_down_addr
Davide Caratti (1):
ipvs: don't ignore errors in case refcounting ip_vs module fails
Eric Dumazet (4):
net: fix data-race in neigh_event_send()
ipv6: fixes rt6_probe() and fib6_nh->last_probe init
ipvs: move old_secure_tcp into struct netns_ipvs
net: prevent load/store tearing on sk->sk_stamp
Fabrice Gasnier (1):
iio: adc: stm32-adc: fix stopping dma
Felipe Balbi (1):
usb: dwc3: gadget: fix race when disabling ep with cancelled xfers
Gomez Iglesias, Antonio (1):
Documentation: Add ITLB_MULTIHIT documentation
Greg Kroah-Hartman (1):
Linux 4.19.84
GwanYeong Kim (1):
usbip: tools: Fix read_usb_vudc_device() error path handling
Haiyang Zhang (1):
hv_netvsc: Fix error handling in netvsc_attach()
Hannes Reinecke (1):
scsi: qla2xxx: fixup incorrect usage of host_byte
Hans de Goede (1):
pinctrl: cherryview: Fix irq_valid_mask calculation
Hillf Danton (1):
net: openvswitch: free vport unless register_netdevice() succeeds
Himanshu Madhani (1):
scsi: qla2xxx: Initialized mailbox to prevent driver load failure
Imre Deak (1):
drm/i915/gen8+: Add RC6 CTX corruption WA
Jan Beulich (1):
x86/apic/32: Avoid bogus LDR warnings
Jason Gerecke (1):
HID: wacom: generic: Treat serial number and related fields as unsigned
Jay Vosburgh (1):
bonding: fix state transition issue in link monitoring
Jean-Baptiste Maneyrol (1):
iio: imu: inv_mpu6050: fix no data on MPU6050
Jiangfeng Xiao (1):
net: hisilicon: Fix "Trying to free already-free IRQ"
Jiri Olsa (1):
perf tools: Fix time sorting
Joakim Zhang (1):
can: flexcan: disable completely the ECC mechanism
Johan Hovold (4):
can: usb_8dev: fix use-after-free on disconnect
can: mcba_usb: fix use-after-free on disconnect
can: peak_usb: fix slab info leak
USB: ldusb: use unsigned size format specifiers
Johannes Weiner (1):
mm: memcontrol: fix network errors from failing __GFP_ATOMIC charges
Jon Bloomfield (10):
drm/i915: Rename gen7 cmdparser tables
drm/i915: Disable Secure Batches for gen6+
drm/i915: Remove Master tables from cmdparser drm/i915: Add support for mandatory cmdparsing drm/i915: Support ro ppgtt mapped cmdparser shadow buffers drm/i915: Allow parsing of unsized batches
drm/i915: Add gen9 BCS cmdparsing
drm/i915/cmdparser: Use explicit goto for error paths drm/i915/cmdparser: Add support for backward jumps drm/i915/cmdparser: Ignore Length operands during command matching
Josh Poimboeuf (1):
x86/speculation/taa: Fix printing of TAA_MSG_SMT on IBRS_ALL CPUs
Junaid Shahid (4):
kvm: Convert kvm_lock to a mutex
kvm: mmu: Do not release the page inside mmu_set_spte()
kvm: Add helper function for creating VM worker threads
kvm: x86: mmu: Recovery of shattered NX large pages
Kamal Heib (1):
RDMA/qedr: Fix reported firmware version
Kan Liang (1):
perf/x86/uncore: Fix event group support
Kevin Hao (1):
dump_stack: avoid the livelock of the dump_lock
Kim Phillips (2):
perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
Konstantin Khlebnikov (1):
mm/filemap.c: don't initiate writeback if mapping has no dirty pages
Kurt Van Dijck (1):
can: c_can: c_can_poll(): only read status register after status IRQ
Lijun Ou (1):
RDMA/hns: Prevent memory leaks of eq->buf_list
Luis Henriques (1):
ceph: fix use-after-free in __ceph_remove_cap()
Lukas Wunner (1):
netfilter: nf_tables: Align nft_expr private data to 64-bit
Manfred Rudigier (1):
igb: Fix constant media auto sense switching when no cable is connected
Manish Chopra (1):
qede: fix NULL pointer deref in __qede_remove()
Marc Kleine-Budde (1):
can: rx-offload: can_rx_offload_queue_sorted(): fix error handling, avoid skb mem leak
Mel Gorman (1):
mm, meminit: recalculate pcpu batch and high limits after init completes
Michael Strauss (1):
drm/amd/display: Passive DP->HDMI dongle detection fix
Michal Hocko (2):
mm, vmstat: hide /proc/pagetypeinfo from normal users x86/tsx: Add config options to set tsx=on|off|auto
Michal Suchanek (1):
soundwire: depend on ACPI
Navid Emamdoost (3):
can: gs_usb: gs_can_open(): prevent memory leak net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq
usb: dwc3: pci: prevent memory leak in dwc3_pci_probe
Nicholas Piggin (1):
scsi: qla2xxx: stop timer in shutdown path
Nicolas Boichat (1):
HID: google: add magnemite/masterball USB ids
Nikhil Badola (1):
usb: fsl: Check memory resource before releasing it
Oliver Neukum (1):
CDC-NCM: handle incomplete transfer of MTU
Ondrej Jirman (1):
ARM: sunxi: Fix CPU powerdown on A83T
Pablo Neira Ayuso (1):
netfilter: nf_flow_table: set timeout before insertion into hashes
Pan Bian (3):
NFC: fdp: fix incorrect free object
nfc: netlink: fix double device reference drop
NFC: st21nfca: fix double free
Paolo Bonzini (8):
KVM: x86: use Intel speculation bugs and features as derived in generic x86 code
kvm: x86, powerpc: do not allow clearing largepages debugfs entry
KVM: x86: make FNAME(fetch) and __direct_map more similar
KVM: x86: remove now unneeded hugepage gfn adjustment
KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON
KVM: x86: add tracepoints around __direct_map and FNAME(fetch)
KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
kvm: mmu: ITLB_MULTIHIT mitigation
Pavel Shilovsky (1):
SMB3: Fix persistent handles reconnect
Pawan Gupta (9):
x86/msr: Add the IA32_TSX_CTRL MSR
x86/cpu: Add a helper function x86_read_arch_cap_msr() x86/cpu: Add a "tsx=" cmdline option with TSX disabled by default x86/speculation/taa: Add mitigation for TSX Async Abort x86/speculation/taa: Add sysfs reporting for TSX Async Abort kvm/x86: Export MDS_NO=0 to guests when TSX is enabled x86/tsx: Add "auto" option to the tsx= cmdline parameter x86/speculation/taa: Add documentation for TSX Async Abort x86/cpu: Add Tremont to the cpu vulnerability whitelist
Peter Chen (1):
usb: gadget: configfs: fix concurrent issue between composite APIs
Potnuri Bharat Teja (2):
iw_cxgb4: fix ECN check on the passive accept RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
Qian Cai (1):
sched/fair: Fix -Wunused-but-set-variable warnings
Radhey Shyam Pandey (1):
dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
Rafi Wiener (1):
RDMA/mlx5: Clear old rate limit when closing QP
Randolph Maaßen (1):
iio: imu: mpu6050: Add support for the ICM 20602 IMU
Salil Mehta (1):
net: hns: Fix the stray netpoll locks causing deadlock in NAPI path
Sean Tranchetti (1):
net: qualcomm: rmnet: Fix potential UAF when unregistering
Shuah Khan (2):
tools: gpio: Use !building_out_of_srctree to determine srctree
usbip: Fix vhci_urb_enqueue() URB null transfer buffer error path
Shuning Zhang (1):
ocfs2: protect extent tree in ocfs2_prepare_inode_for_write()
Stefano Brivio (1):
netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 sets
Stefano Garzarella (1):
vsock/virtio: fix sock refcnt holding during the shutdown
Stephane Grosjean (1):
can: peak_usb: fix a potential out-of-sync while decoding packets
Steve Moskovchenko (1):
iio: imu: mpu6050: Fix FIFO layout for ICM20602
Suwan Kim (2):
usbip: Implement SG support to vhci-hcd and stub driver
usbip: Fix free of unallocated memory in vhci tx
Taehee Yoo (2):
bonding: fix unexpected IFF_BONDING bit unset
macsec: fix refcnt leak in module exit routine
Takashi Iwai (10):
ALSA: timer: Fix incorrectly assigned timer instance
ALSA: hda/ca0132 - Fix possible workqueue stall
ALSA: usb-audio: More validations of descriptor units
ALSA: usb-audio: Simplify parse_audio_unit()
ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
ALSA: usb-audio: Remove superfluous bLength checks
ALSA: usb-audio: Clean up check_input_term()
ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
ALSA: usb-audio: Fix copy&paste error in the validator iommu/amd: Apply the same IVRS IOAPIC workaround to Acer Aspire A315-41
Takashi Sakamoto (1):
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
Tariq Toukan (1):
net/mlx5e: TX, Fix consumer index of error cqe dump
Tejun Heo (2):
blkcg: make blkcg_print_stat() print stats only for online blkgs cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead
Trond Myklebust (1):
NFSv4: Don't allow a cached open with a revoked delegation
Tyler Hicks (1):
cpu/speculation: Uninline and export CPU mitigations helpers
Uma Shankar (1):
drm/i915: Lower RM timeout to avoid DSI hard hangs
Vidya Sagar (1):
PCI: tegra: Enable Relaxed Ordering only for Tegra20 & Tegra30
Vineela Tummalapalli (1):
x86/bugs: Add ITLB_MULTIHIT bug infrastructure
Vladimir Oltean (2):
net: mscc: ocelot: fix vlan_filtering when enslaving to bridge before link is up
net: mscc: ocelot: refuse to overwrite the port's native vlan
Wen Yang (1):
can: dev: add missing of_node_put() after calling of_get_child_by_name()
Wenwen Wang (1):
e1000: fix memory leaks
Will Deacon (1):
fjes: Handle workqueue allocation failure
Yang Shi (1):
mm: thp: handle page cache THP correctly in PageTransCompoundMap
Yinbo Zhu (1):
usb: dwc3: remove the call trace of USBx_GFLADJ
Zhang Lixu (1):
HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
Greg KH
maintainerDocumentation/ABI/testing/sysfs-devices-system-cpu +2 -0
@@ -478,6 +478,8 @@ What: /sys/devices/system/cpu/vulnerabilities /sys/devices/system/cpu/vulnerabilities/spec_store_bypass /sys/devices/system/cpu/vulnerabilities/l1tf /sys/devices/system/cpu/vulnerabilities/mds + /sys/devices/system/cpu/vulnerabilities/tsx_async_abort + /sys/devices/system/cpu/vulnerabilities/itlb_multihit Date: January 2018 Contact: Linux kernel mailing list <[email protected]> Description: Information about CPU vulnerabilities
Documentation/admin-guide/hw-vuln/index.rst +2 -0
@@ -12,3 +12,5 @@ are configurable at compile, boot or run time. spectre l1tf mds + tsx_async_abort + multihit.rst
Documentation/admin-guide/hw-vuln/multihit.rst new file +163 -0
163 lines not on this page · raw message
Documentation/admin-guide/hw-vuln/tsx_async_abort.rst new file +276 -0
276 lines not on this page · raw message
Documentation/admin-guide/kernel-parameters.txt +92 -0
116 lines not on this page · raw message
Documentation/scheduler/sched-bwc.txt +45 -0
51 lines not on this page · raw message
Documentation/virtual/kvm/locking.txt +1 -3
@@ -15,8 +15,6 @@ The acquisition orders for mutexes are as follows: On x86, vcpu->mutex is taken outside kvm->arch.hyperv.hv_lock. -For spinlocks, kvm_lock is taken outside kvm->mmu_lock. - Everything else is a leaf: no other lock is taken inside the critical sections.
@@ -169,7 +167,7 @@ which time it will be set using the Dirty tracking mechanism described above. ------------ Name: kvm_lock -Type: spinlock_t +Type: mutex Arch: any Protects: - vm_list
Documentation/x86/index.rst +1 -0
@@ -6,3 +6,4 @@ x86 architecture specifics :maxdepth: 1 mds + tsx_async_abort
Documentation/x86/tsx_async_abort.rst new file +117 -0
117 lines not on this page · raw message
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 83 +SUBLEVEL = 84 EXTRAVERSION = NAME = "People's Front"
arch/arm/mach-sunxi/mc_smp.c +5 -1
@@ -478,14 +478,18 @@ static void sunxi_mc_smp_cpu_die(unsigned int l_cpu)static int sunxi_cpu_powerdown (unsigned int cpu,unsigned int cluster) {u32 reg; +int gating_bit = cpu;pr_debug ("%s: cluster %u cpu %u\n" , __func__, cluster, cpu);if (cpu >=SUNXI_CPUS_PER_CLUSTER || cluster >=SUNXI_NR_CLUSTERS )return -EINVAL ; +if (is_a83t && cpu ==0 ) + gating_bit =4 ; +/* gate processor power */ reg =readl (prcm_base +PRCM_PWROFF_GATING_REG (cluster)); - reg |=PRCM_PWROFF_GATING_REG_CORE (cpu); + reg |=PRCM_PWROFF_GATING_REG_CORE (gating_bit);writel (reg, prcm_base +PRCM_PWROFF_GATING_REG (cluster));udelay (20 );
arch/arm64/include/asm/pgtable.h +0 -17
@@ -274,23 +274,6 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,set_pte (ptep, pte); } -#define __HAVE_ARCH_PTE_SAME -static inline int pte_same (pte_t pte_a,pte_t pte_b) -{ -pteval_t lhs, rhs; - - lhs =pte_val (pte_a); - rhs =pte_val (pte_b); - -if (pte_present (pte_a)) - lhs &= ~PTE_RDONLY ; - -if (pte_present (pte_b)) - rhs &= ~PTE_RDONLY ; - -return (lhs == rhs); -} -/* * Huge pte definitions. */
arch/s390/kvm/kvm-s390.c +2 -2
@@ -2110,13 +2110,13 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm->arch.sca = (struct bsca_block *)get_zeroed_page (alloc_flags);if (!kvm->arch.sca) goto out_err; -spin_lock (&kvm_lock); +mutex_lock (&kvm_lock); sca_offset +=16 ;if (sca_offset +sizeof (struct bsca_block ) >PAGE_SIZE ) sca_offset =0 ; kvm->arch.sca = (struct bsca_block *) ((char *) kvm->arch.sca + sca_offset); -spin_unlock (&kvm_lock); +mutex_unlock (&kvm_lock);sprintf (debug_name,"kvm-%u" , current->pid);
arch/x86/Kconfig +45 -0
51 lines not on this page · raw message
arch/x86/events/amd/ibs.c +5 -3
@@ -389,7 +389,8 @@ static inline void perf_ibs_disable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) { config &= ~perf_ibs->cnt_mask; -wrmsrl (hwc->config_base, config); +if (boot_cpu_data.x86 ==0x10 ) +wrmsrl (hwc->config_base, config); config &= ~perf_ibs->enable_mask;wrmsrl (hwc->config_base, config); }
@@ -564,7 +565,8 @@ static struct perf_ibs perf_ibs_op = { }, .msr = MSR_AMD64_IBSOPCTL, .config_mask = IBS_OP_CONFIG_MASK, - .cnt_mask = IBS_OP_MAX_CNT, + .cnt_mask =IBS_OP_MAX_CNT |IBS_OP_CUR_CNT | + IBS_OP_CUR_CNT_RAND, .enable_mask = IBS_OP_ENABLE, .valid_mask = IBS_OP_VAL, .max_period = IBS_OP_MAX_CNT << 4,
@@ -625,7 +627,7 @@ static int perf_ibs_handle_irq(struct perf_ibs *perf_ibs, struct pt_regs *iregs)if (event->attr.sample_type &PERF_SAMPLE_RAW ) offset_max = perf_ibs->offset_max;else if (check_rip) - offset_max =2 ; + offset_max =3 ;else offset_max =1 ; do {
arch/x86/events/intel/uncore.c +38 -6
70 lines not on this page · raw message
arch/x86/events/intel/uncore.h +0 -12
@@ -412,18 +412,6 @@ static inline int uncore_freerunning_hw_config(struct intel_uncore_box *box,return -EINVAL ; } -static inline void uncore_disable_box (struct intel_uncore_box *box) -{ -if (box->pmu->type->ops->disable_box) - box->pmu->type->ops->disable_box (box); -} - -static inline void uncore_enable_box (struct intel_uncore_box *box) -{ -if (box->pmu->type->ops->enable_box) - box->pmu->type->ops->enable_box (box); -} -static inline void uncore_disable_event (struct intel_uncore_box *box,struct perf_event *event) {
arch/x86/include/asm/cpufeatures.h +2 -0
@@ -389,5 +389,7 @@#define X86_BUG_MDS X86_BUG(19)/* CPU is affected by Microarchitectural data sampling */ #define X86_BUG_MSBDS_ONLY X86_BUG(20)/* CPU is only affected by the MSDBS variant of BUG_MDS */ #define X86_BUG_SWAPGS X86_BUG(21)/* CPU is affected by speculation through SWAPGS */ +#define X86_BUG_TAA X86_BUG(22)/* CPU is affected by TSX Async Abort(TAA) */ +#define X86_BUG_ITLB_MULTIHIT X86_BUG(23)/* CPU may incur MCE during certain page attribute changes */ #endif /* _ASM_X86_CPUFEATURES_H */
arch/x86/include/asm/kvm_host.h +6 -0
@@ -281,6 +281,7 @@ struct kvm_rmap_head {struct kvm_mmu_page {struct list_head link;struct hlist_node hash_link; +struct list_head lpage_disallowed_link;/* * The following two entries are used to key the shadow page in the
@@ -293,6 +294,7 @@ struct kvm_mmu_page {/* hold the gfn of each spte inside spt */ gfn_t *gfns;bool unsync; +bool lpage_disallowed;/* Can't be replaced by an equiv large page */ int root_count;/* Currently serving as active root */ unsigned int unsync_children;struct kvm_rmap_head parent_ptes;/* rmap pointers to parent sptes */
@@ -807,6 +809,7 @@ struct kvm_arch {*/ struct list_head active_mmu_pages;struct list_head zapped_obsolete_pages; +struct list_head lpage_disallowed_mmu_pages;struct kvm_page_track_notifier_node mmu_sp_tracker;struct kvm_page_track_notifier_head track_notifier_head;
@@ -877,6 +880,8 @@ struct kvm_arch {bool x2apic_broadcast_quirk_disabled;bool guest_can_read_msr_platform_info; + +struct task_struct *nx_lpage_recovery_thread; };struct kvm_vm_stat {
@@ -890,6 +895,7 @@ struct kvm_vm_stat {ulong mmu_unsync;ulong remote_tlb_flush;ulong lpages; +ulong nx_lpage_splits;ulong max_mmu_page_hash_collisions; };
arch/x86/include/asm/msr-index.h +16 -0
@@ -84,6 +84,18 @@* Microarchitectural Data * Sampling (MDS) vulnerabilities. */ +#define ARCH_CAP_PSCHANGE_MC_NO BIT(6)/* +* The processor is not susceptible to a +* machine check error due to modifying the +* code page size along with either the +* physical address or cache type +* without TLB invalidation. +*/ +#define ARCH_CAP_TSX_CTRL_MSR BIT(7)/* MSR for TSX control is available. */ +#define ARCH_CAP_TAA_NO BIT(8)/* +* Not susceptible to +* TSX Async Abort (TAA) vulnerabilities. +*/ #define MSR_IA32_FLUSH_CMD 0x0000010b#define L1D_FLUSH BIT(0)/*
@@ -94,6 +106,10 @@#define MSR_IA32_BBL_CR_CTL 0x00000119#define MSR_IA32_BBL_CR_CTL3 0x0000011e +#define MSR_IA32_TSX_CTRL 0x00000122 +#define TSX_CTRL_RTM_DISABLE BIT(0)/* Disable RTM feature */ +#define TSX_CTRL_CPUID_CLEAR BIT(1)/* Disable TSX enumeration */ +#define MSR_IA32_SYSENTER_CS 0x00000174#define MSR_IA32_SYSENTER_ESP 0x00000175#define MSR_IA32_SYSENTER_EIP 0x00000176
arch/x86/include/asm/nospec-branch.h +2 -2
@@ -323,7 +323,7 @@ DECLARE_STATIC_KEY_FALSE(mds_idle_clear);#include <asm/segment.h> /** -* mds_clear_cpu_buffers - Mitigation for MDS vulnerability +* mds_clear_cpu_buffers - Mitigation for MDS and TAA vulnerability * * This uses the otherwise unused and obsolete VERW instruction in * combination with microcode which triggers a CPU buffer flush when the
@@ -346,7 +346,7 @@ static inline void mds_clear_cpu_buffers(void) }/** -* mds_user_clear_cpu_buffers - Mitigation for MDS vulnerability +* mds_user_clear_cpu_buffers - Mitigation for MDS and TAA vulnerability * * Clear CPU buffers if the corresponding static key is enabled */
arch/x86/include/asm/processor.h +7 -0
@@ -1003,4 +1003,11 @@ enum mds_mitigations { MDS_MITIGATION_VMWERV, }; +enum taa_mitigations { +TAA_MITIGATION_OFF , +TAA_MITIGATION_UCODE_NEEDED , +TAA_MITIGATION_VERW , +TAA_MITIGATION_TSX_DISABLED , +}; +#endif /* _ASM_X86_PROCESSOR_H */
arch/x86/kernel/apic/apic.c +15 -13
@@ -1528,9 +1528,6 @@ static void setup_local_APIC(void) {int cpu =smp_processor_id ();unsigned int value; -#ifdef CONFIG_X86_32 -int logical_apicid, ldr_apicid; -#endif if (disable_apic) {
@@ -1571,16 +1568,21 @@ static void setup_local_APIC(void) apic->init_apic_ldr ();#ifdef CONFIG_X86_32 -/* -* APIC LDR is initialized. If logical_apicid mapping was -* initialized during get_smp_config(), make sure it matches the -* actual value. -*/ - logical_apicid =early_per_cpu (x86_cpu_to_logical_apicid, cpu); - ldr_apicid =GET_APIC_LOGICAL_ID (apic_read (APIC_LDR )); -WARN_ON (logical_apicid !=BAD_APICID && logical_apicid != ldr_apicid); -/* always use the value from LDR */ -early_per_cpu (x86_cpu_to_logical_apicid, cpu) = ldr_apicid; +if (apic->dest_logical) { +int logical_apicid, ldr_apicid; + +/* +* APIC LDR is initialized. If logical_apicid mapping was +* initialized during get_smp_config(), make sure it matches +* the actual value. +*/ + logical_apicid =early_per_cpu (x86_cpu_to_logical_apicid, cpu); + ldr_apicid =GET_APIC_LOGICAL_ID (apic_read (APIC_LDR )); +if (logical_apicid !=BAD_APICID ) +WARN_ON (logical_apicid != ldr_apicid); +/* Always use the value from LDR. */ +early_per_cpu (x86_cpu_to_logical_apicid, cpu) = ldr_apicid; + }#endif /*
arch/x86/kernel/cpu/Makefile +1 -1
@@ -28,7 +28,7 @@ obj-y += cpuid-deps.o obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o -obj-$(CONFIG_CPU_SUP_INTEL) += intel.o intel_pconfig.o +obj-$(CONFIG_CPU_SUP_INTEL) += intel.o intel_pconfig.o tsx.o obj-$(CONFIG_CPU_SUP_AMD) += amd.o obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
arch/x86/kernel/cpu/bugs.c +157 -4
232 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +62 -32
146 lines not on this page · raw message
arch/x86/kernel/cpu/cpu.h +18 -0
@@ -45,6 +45,22 @@ struct _tlb_table {extern const struct cpu_dev *const __x86_cpu_dev_start[], *const __x86_cpu_dev_end[]; +#ifdef CONFIG_CPU_SUP_INTEL +enum tsx_ctrl_states { +TSX_CTRL_ENABLE , +TSX_CTRL_DISABLE , +TSX_CTRL_NOT_SUPPORTED , +}; + +extern __ro_after_init enum tsx_ctrl_states tsx_ctrl_state; + +extern void __init tsx_init (void ); +extern void tsx_enable (void ); +extern void tsx_disable (void ); +#else +static inline void tsx_init (void ) { } +#endif /* CONFIG_CPU_SUP_INTEL */ +extern void get_cpu_cap (struct cpuinfo_x86 *c);extern void get_cpu_address_sizes (struct cpuinfo_x86 *c);extern void cpu_detect_cache_sizes (struct cpuinfo_x86 *c);
@@ -65,4 +81,6 @@ unsigned int aperfmperf_get_khz(int cpu);extern void x86_spec_ctrl_setup_ap (void ); +extern u64 x86_read_arch_cap_msr (void ); +#endif /* ARCH_X86_CPU_H */
arch/x86/kernel/cpu/intel.c +5 -0
@@ -766,6 +766,11 @@ static void init_intel(struct cpuinfo_x86 *c)init_intel_energy_perf (c);init_intel_misc_features (c); + +if (tsx_ctrl_state ==TSX_CTRL_ENABLE ) +tsx_enable (); +if (tsx_ctrl_state ==TSX_CTRL_DISABLE ) +tsx_disable (); }#ifdef CONFIG_X86_32
arch/x86/kernel/cpu/tsx.c new file +140 -0
140 lines not on this page · raw message
arch/x86/kvm/cpuid.c +8 -0
@@ -501,8 +501,16 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,/* PKU is not yet implemented for shadow paging. */ if (!tdp_enabled || !boot_cpu_has (X86_FEATURE_OSPKE )) entry->ecx &= ~F (PKU ); + entry->edx &= kvm_cpuid_7_0_edx_x86_features;cpuid_mask (&entry->edx,CPUID_7_EDX ); +if (boot_cpu_has (X86_FEATURE_IBPB ) && +boot_cpu_has (X86_FEATURE_IBRS )) + entry->edx |=F (SPEC_CTRL ); +if (boot_cpu_has (X86_FEATURE_STIBP )) + entry->edx |=F (INTEL_STIBP ); +if (boot_cpu_has (X86_FEATURE_SSBD )) + entry->edx |=F (SPEC_CTRL_SSBD );/* * We emulate ARCH_CAPABILITIES in software even * if the host doesn't support it.
arch/x86/kvm/mmu.c +314 -60
566 lines not on this page · raw message
arch/x86/kvm/mmu.h +4 -0
@@ -216,4 +216,8 @@ void kvm_mmu_gfn_allow_lpage(struct kvm_memory_slot *slot, gfn_t gfn);bool kvm_mmu_slot_gfn_write_protect (struct kvm *kvm,struct kvm_memory_slot *slot,u64 gfn);int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu); + +int kvm_mmu_post_init_vm (struct kvm *kvm); +void kvm_mmu_pre_destroy_vm (struct kvm *kvm); +#endif
arch/x86/kvm/mmutrace.h +59 -0
65 lines not on this page · raw message
arch/x86/kvm/paging_tmpl.h +40 -25
127 lines not on this page · raw message
arch/x86/kvm/svm.c +8 -2
@@ -736,8 +736,14 @@ static int get_npt_level(struct kvm_vcpu *vcpu)static void svm_set_efer (struct kvm_vcpu *vcpu,u64 efer) { vcpu->arch.efer = efer; -if (!npt_enabled && !(efer &EFER_LMA )) - efer &= ~EFER_LME ; + +if (!npt_enabled) { +/* Shadow paging assumes NX to be available. */ + efer |=EFER_NX ; + +if (!(efer &EFER_LMA )) + efer &= ~EFER_LME ; + }to_svm (vcpu)->vmcb->save.efer = efer |EFER_SVME ;mark_dirty (to_svm (vcpu)->vmcb,VMCB_CR );
arch/x86/kvm/vmx.c +3 -11
@@ -2785,17 +2785,9 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset)u64 guest_efer = vmx->vcpu.arch.efer;u64 ignore_bits =0 ; -if (!enable_ept) { -/* -* NX is needed to handle CR0.WP=1, CR4.SMEP=1. Testing -* host CPUID is more efficient than testing guest CPUID -* or CR4. Host SMEP is anyway a requirement for guest SMEP. -*/ -if (boot_cpu_has (X86_FEATURE_SMEP )) - guest_efer |=EFER_NX ; -else if (!(guest_efer &EFER_NX )) - ignore_bits |=EFER_NX ; - } +/* Shadow paging assumes NX to be available. */ +if (!enable_ept) + guest_efer |=EFER_NX ;/* * LMA and LME handled by hardware; SCE meaningless outside long mode.
arch/x86/kvm/x86.c +57 -10
147 lines not on this page · raw message
block/blk-cgroup.c +8 -5
@@ -955,9 +955,14 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)int i;bool has_stats = false; +spin_lock_irq (blkg->q->queue_lock); + +if (!blkg->online) + goto skip; + dname =blkg_dev_name (blkg);if (!dname) -continue ; + goto skip;/* * Hooray string manipulation, count is the size written NOT
@@ -967,8 +972,6 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)*/ off +=scnprintf (buf+off, size-off,"%s " , dname); -spin_lock_irq (blkg->q->queue_lock); - rwstat =blkg_rwstat_recursive_sum (blkg,NULL , offsetof(struct blkcg_gq , stat_bytes)); rbytes =atomic64_read (&rwstat.aux_cnt[BLKG_RWSTAT_READ ]);
@@ -981,8 +984,6 @@ static int blkcg_print_stat(struct seq_file *sf, void *v) wios =atomic64_read (&rwstat.aux_cnt[BLKG_RWSTAT_WRITE ]); dios =atomic64_read (&rwstat.aux_cnt[BLKG_RWSTAT_DISCARD ]); -spin_unlock_irq (blkg->q->queue_lock); -if (rbytes || wbytes || rios || wios) { has_stats = true; off += scnprintf(buf+off, size-off,
@@ -1023,6 +1024,8 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)seq_commit (sf,-1 ); } } + skip: +spin_unlock_irq (blkg->q->queue_lock); }rcu_read_unlock ();
drivers/base/cpu.c +17 -0
@@ -552,12 +552,27 @@ ssize_t __weak cpu_show_mds(struct device *dev,return sprintf (buf,"Not affected\n" ); } +ssize_t __weak cpu_show_tsx_async_abort (struct device *dev, +struct device_attribute *attr, +char *buf) +{ +return sprintf (buf,"Not affected\n" ); +} + +ssize_t __weak cpu_show_itlb_multihit (struct device *dev, +struct device_attribute *attr,char *buf) +{ +return sprintf (buf,"Not affected\n" ); +} + static DEVICE_ATTR(meltdown, 0444, cpu_show_meltdown, NULL); static DEVICE_ATTR(spectre_v1, 0444, cpu_show_spectre_v1, NULL); static DEVICE_ATTR(spectre_v2, 0444, cpu_show_spectre_v2, NULL); static DEVICE_ATTR(spec_store_bypass, 0444, cpu_show_spec_store_bypass, NULL); static DEVICE_ATTR(l1tf, 0444, cpu_show_l1tf, NULL); static DEVICE_ATTR(mds, 0444, cpu_show_mds, NULL); +static DEVICE_ATTR(tsx_async_abort, 0444, cpu_show_tsx_async_abort, NULL); +static DEVICE_ATTR(itlb_multihit, 0444, cpu_show_itlb_multihit, NULL);static struct attribute *cpu_root_vulnerabilities_attrs[] = { &dev_attr_meltdown.attr,
@@ -566,6 +581,8 @@ static struct attribute *cpu_root_vulnerabilities_attrs[] = { &dev_attr_spec_store_bypass.attr, &dev_attr_l1tf.attr, &dev_attr_mds.attr, + &dev_attr_tsx_async_abort.attr, + &dev_attr_itlb_multihit.attr, NULL };
drivers/dma/sprd-dma.c +15 -0
@@ -181,6 +181,7 @@ struct sprd_dma_dev {struct sprd_dma_chn channels[0 ]; }; +static void sprd_dma_free_desc (struct virt_dma_desc *vd);static bool sprd_dma_filter_fn (struct dma_chan *chan,void *param);static struct of_dma_filter_info sprd_dma_info = { .filter_fn = sprd_dma_filter_fn,
@@ -493,12 +494,19 @@ static int sprd_dma_alloc_chan_resources(struct dma_chan *chan)static void sprd_dma_free_chan_resources (struct dma_chan *chan) {struct sprd_dma_chn *schan =to_sprd_dma_chan (chan); +struct virt_dma_desc *cur_vd =NULL ;unsigned long flags;spin_lock_irqsave (&schan->vc.lock, flags); +if (schan->cur_desc) + cur_vd = &schan->cur_desc->vd; +sprd_dma_stop (schan);spin_unlock_irqrestore (&schan->vc.lock, flags); +if (cur_vd) +sprd_dma_free_desc (cur_vd); +vchan_free_chan_resources (&schan->vc);pm_runtime_put (chan->device->dev); }
@@ -814,15 +822,22 @@ static int sprd_dma_resume(struct dma_chan *chan)static int sprd_dma_terminate_all (struct dma_chan *chan) {struct sprd_dma_chn *schan =to_sprd_dma_chan (chan); +struct virt_dma_desc *cur_vd =NULL ;unsigned long flags;LIST_HEAD (head);spin_lock_irqsave (&schan->vc.lock, flags); +if (schan->cur_desc) + cur_vd = &schan->cur_desc->vd; +sprd_dma_stop (schan);vchan_get_all_descriptors (&schan->vc, &head);spin_unlock_irqrestore (&schan->vc.lock, flags); +if (cur_vd) +sprd_dma_free_desc (cur_vd); +vchan_dma_desc_free_list (&schan->vc, &head);return 0 ; }
drivers/dma/xilinx/xilinx_dma.c +7 -0
@@ -72,6 +72,9 @@#define XILINX_DMA_DMACR_CIRC_EN BIT(1)#define XILINX_DMA_DMACR_RUNSTOP BIT(0)#define XILINX_DMA_DMACR_FSYNCSRC_MASK GENMASK(6, 5) +#define XILINX_DMA_DMACR_DELAY_MASK GENMASK(31, 24) +#define XILINX_DMA_DMACR_FRAME_COUNT_MASK GENMASK(23, 16) +#define XILINX_DMA_DMACR_MASTER_MASK GENMASK(11, 8)#define XILINX_DMA_REG_DMASR 0x0004#define XILINX_DMA_DMASR_EOL_LATE_ERR BIT(15)
@@ -2112,8 +2115,10 @@ int xilinx_vdma_channel_set_config(struct dma_chan *dchan, chan->config.gen_lock = cfg->gen_lock; chan->config.master = cfg->master; + dmacr &= ~XILINX_DMA_DMACR_GENLOCK_EN ;if (cfg->gen_lock && chan->genlock) { dmacr |=XILINX_DMA_DMACR_GENLOCK_EN ; + dmacr &= ~XILINX_DMA_DMACR_MASTER_MASK ; dmacr |= cfg->master <<XILINX_DMA_DMACR_MASTER_SHIFT ; }
@@ -2129,11 +2134,13 @@ int xilinx_vdma_channel_set_config(struct dma_chan *dchan, chan->config.delay = cfg->delay;if (cfg->coalesc <=XILINX_DMA_DMACR_FRAME_COUNT_MAX ) { + dmacr &= ~XILINX_DMA_DMACR_FRAME_COUNT_MASK ; dmacr |= cfg->coalesc <<XILINX_DMA_DMACR_FRAME_COUNT_SHIFT ; chan->config.coalesc = cfg->coalesc; }if (cfg->delay <=XILINX_DMA_DMACR_DELAY_MAX ) { + dmacr &= ~XILINX_DMA_DMACR_DELAY_MASK ; dmacr |= cfg->delay <<XILINX_DMA_DMACR_DELAY_SHIFT ; chan->config.delay = cfg->delay; }
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +3 -1
@@ -203,7 +203,7 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job)struct amdgpu_ring *ring =to_amdgpu_ring (sched_job->sched);struct dma_fence *fence =NULL , *finished;struct amdgpu_job *job; -int r; +int r =0 ; job =to_amdgpu_job (sched_job); finished = &job->base.s_fence->finished;
@@ -228,6 +228,8 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job) job->fence =dma_fence_get (fence);amdgpu_job_free_resources (job); + + fence = r ?ERR_PTR (r) : fence;return fence; }
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c +18 -6
@@ -433,6 +433,7 @@ void dal_ddc_service_i2c_query_dp_dual_mode_adaptor(enum display_dongle_type *dongle = &sink_cap->dongle_type;uint8_t type2_dongle_buf[DP_ADAPTOR_TYPE2_SIZE ];bool is_type2_dongle = false; +int retry_count =2 ;struct dp_hdmi_dongle_signature_data *dongle_signature;/* Assume we have no valid DP passive dongle connected */
@@ -445,13 +446,24 @@ void dal_ddc_service_i2c_query_dp_dual_mode_adaptor( DP_HDMI_DONGLE_ADDRESS, type2_dongle_buf, sizeof(type2_dongle_buf))) { - *dongle =DISPLAY_DONGLE_DP_DVI_DONGLE ; - sink_cap->max_hdmi_pixel_clock =DP_ADAPTOR_DVI_MAX_TMDS_CLK ; +/* Passive HDMI dongles can sometimes fail here without retrying*/ +while (retry_count >0 ) { +if (i2c_read (ddc, +DP_HDMI_DONGLE_ADDRESS , + type2_dongle_buf, +sizeof (type2_dongle_buf))) +break ; + retry_count--; + } +if (retry_count ==0 ) { + *dongle =DISPLAY_DONGLE_DP_DVI_DONGLE ; + sink_cap->max_hdmi_pixel_clock =DP_ADAPTOR_DVI_MAX_TMDS_CLK ; -CONN_DATA_DETECT (ddc->link, type2_dongle_buf,sizeof (type2_dongle_buf), -"DP-DVI passive dongle %dMhz: " , -DP_ADAPTOR_DVI_MAX_TMDS_CLK /1000 ); -return ; +CONN_DATA_DETECT (ddc->link, type2_dongle_buf,sizeof (type2_dongle_buf), +"DP-DVI passive dongle %dMhz: " , +DP_ADAPTOR_DVI_MAX_TMDS_CLK /1000 ); +return ; + } }/* Check if Type 2 dongle.*/
drivers/gpu/drm/i915/i915_cmd_parser.c +306 -129
139 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem_context.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_context.h +6 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_execbuffer.c +79 -31
110 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.c +113 -2
115 lines not on this page · raw message
drivers/gpu/drm/i915/intel_ringbuffer.h +12 -5
Lines of this file are not shown. View the raw message.
drivers/hid/intel-ish-hid/ishtp/client-buffers.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +82 -4
86 lines not on this page · raw message
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +29 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c +15 -3
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c +9 -3
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/bonding/bond_main.c +24 -23
47 lines not on this page · raw message
drivers/net/can/usb/peak_usb/pcan_usb.c +12 -5
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/arc/emac_rockchip.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hip04_eth.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.h +0 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hns_enet.c +1 -21
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000/e1000_ethtool.c +3 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_main.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-cherryview.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/configfs.c +105 -5
110 lines not on this page · raw message
drivers/usb/gadget/udc/atmel_usba_udc.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/usb/usbip/stub_main.c +42 -15
57 lines not on this page · raw message
drivers/usb/usbip/stub_rx.c +146 -58
204 lines not on this page · raw message
drivers/usb/usbip/stub_tx.c +77 -22
99 lines not on this page · raw message
drivers/usb/usbip/usbip_common.c +41 -18
59 lines not on this page · raw message
drivers/usb/usbip/vhci_tx.c +57 -12
69 lines not on this page · raw message
fs/configfs/dir.c +104 -33
137 lines not on this page · raw message
fs/configfs/file.c +140 -140
280 lines not on this page · raw message
fs/ocfs2/file.c +90 -44
134 lines not on this page · raw message
kernel/sched/fair.c +13 -78
91 lines not on this page · raw message
net/netfilter/ipset/ip_set_hash_ipmac.c +1 -1
Lines of this file are not shown. View the raw message.
net/vmw_vsock/virtio_transport_common.c +5 -3
Lines of this file are not shown. View the raw message.
sound/usb/mixer.c +283 -350
633 lines not on this page · raw message
sound/usb/validate.c new file +332 -0
332 lines not on this page · raw message
tools/usb/usbip/libsrc/usbip_device_driver.c +4 -2
Lines of this file are not shown. View the raw message.
virt/kvm/kvm_main.c +135 -19
154 lines not on this page · 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.