Linux 5.15.150
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.150 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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-platform-asus-wmi | 9 Makefile | 2 arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts | 1 arch/arm/boot/dts/bcm47189-luxul-xap-810.dts | 2 arch/arm/boot/dts/bcm53573.dtsi | 20 arch/arm/mach-ep93xx/core.c | 1 arch/arm64/boot/dts/rockchip/px30.dtsi | 2 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 79 arch/arm64/include/asm/exception.h | 5 arch/arm64/kvm/vgic/vgic-its.c | 5 arch/arm64/mm/mmu.c | 4 arch/mips/include/asm/vpe.h | 1 arch/mips/kernel/smp-cps.c | 8 arch/mips/kernel/traps.c | 8 arch/mips/kernel/vpe-mt.c | 7 arch/mips/lantiq/prom.c | 6 arch/powerpc/kernel/eeh_driver.c | 71 arch/powerpc/kernel/rtas.c | 24 arch/powerpc/perf/hv-24x7.c | 42 arch/powerpc/platforms/powernv/pci-ioda.c | 3 arch/powerpc/platforms/pseries/lpar.c | 20 arch/powerpc/platforms/pseries/lparcfg.c | 20 arch/riscv/include/asm/parse_asm.h | 2 arch/s390/pci/pci.c | 2 arch/x86/include/asm/nospec-branch.h | 2 arch/x86/include/asm/text-patching.h | 30 arch/x86/kernel/alternative.c | 13 arch/x86/kernel/fpu/signal.c | 12 arch/x86/kernel/ftrace.c | 4 arch/x86/kernel/paravirt.c | 23 arch/x86/kernel/static_call.c | 2 arch/x86/net/bpf_jit_comp.c | 2 drivers/acpi/button.c | 9 drivers/acpi/property.c | 4 drivers/acpi/resource.c | 35 drivers/acpi/video_detect.c | 34 drivers/ata/ahci.c | 34 drivers/ata/ahci.h | 6 drivers/ata/ahci_ceva.c | 125 - drivers/ata/ahci_da850.c | 47 drivers/ata/ahci_dm816.c | 4 drivers/ata/libahci_platform.c | 133 - drivers/block/nbd.c | 3 drivers/block/virtio_blk.c | 7 drivers/clk/clk.c | 11 drivers/clk/imx/clk-imx8mp.c | 23 drivers/clk/imx/clk.c | 3 drivers/clk/qcom/gcc-qcs404.c | 24 drivers/clk/qcom/gpucc-sc7180.c | 7 drivers/clk/qcom/gpucc-sdm845.c | 7 drivers/clk/renesas/renesas-cpg-mssr.c | 8 drivers/dma/fsl-qdma.c | 2 drivers/dma/sh/shdma.h | 2 drivers/dma/ti/edma.c | 10 drivers/firewire/core-card.c | 18 drivers/firmware/efi/arm-runtime.c | 2 drivers/firmware/efi/efi-init.c | 19 drivers/firmware/efi/riscv-runtime.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 drivers/gpu/drm/amd/amdgpu/soc15.c | 22 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 drivers/gpu/drm/drm_syncobj.c | 6 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 4 drivers/gpu/drm/i915/i915_reg.h | 3 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 8 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c | 2 drivers/gpu/drm/ttm/ttm_pool.c | 2 drivers/hwmon/coretemp.c | 2 drivers/i2c/busses/i2c-imx.c | 97 - drivers/infiniband/hw/bnxt_re/ib_verbs.c | 5 drivers/infiniband/hw/hfi1/pio.c | 6 drivers/infiniband/hw/hfi1/sdma.c | 2 drivers/infiniband/hw/irdma/defs.h | 1 drivers/infiniband/hw/irdma/hw.c | 8 drivers/infiniband/hw/irdma/verbs.c | 9 drivers/infiniband/hw/qedr/verbs.c | 11 drivers/infiniband/sw/siw/siw_cm.c | 1 drivers/infiniband/sw/siw/siw_verbs.c | 2 drivers/infiniband/ulp/srpt/ib_srpt.c | 17 drivers/input/joystick/xpad.c | 2 drivers/input/misc/iqs269a.c | 335 +-- drivers/input/serio/i8042-acpipnpio.h | 8 drivers/input/touchscreen/ads7846.c | 23 drivers/md/dm-crypt.c | 6 drivers/md/md.c | 14 drivers/md/raid10.c | 2 drivers/mmc/host/jz4740_mmc.c | 10 drivers/mmc/host/mxcmmc.c | 6 drivers/mtd/nand/raw/sunxi_nand.c | 2 drivers/net/ethernet/intel/igb/igb_main.c | 5 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 4 drivers/net/ethernet/realtek/r8169_main.c | 14 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 20 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 29 drivers/net/gtp.c | 10 drivers/net/wireless/ath/ath11k/mac.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 drivers/nvme/host/fc.c | 47 drivers/nvme/target/fc.c | 131 - drivers/nvme/target/fcloop.c | 6 drivers/nvme/target/tcp.c | 1 drivers/pci/controller/dwc/pcie-designware-ep.c | 3 drivers/pci/msi.c | 2 drivers/platform/x86/intel/vbtn.c | 3 drivers/platform/x86/touchscreen_dmi.c | 39 drivers/regulator/pwm-regulator.c | 3 drivers/scsi/Kconfig | 2 drivers/scsi/lpfc/lpfc_scsi.c | 12 drivers/soc/mediatek/mtk-pm-domains.c | 15 drivers/soc/renesas/r8a77980-sysc.c | 3 drivers/spi/spi-hisi-sfc-v3xx.c | 5 drivers/spi/spi-sh-msiof.c | 16 drivers/target/target_core_device.c | 5 drivers/target/target_core_transport.c | 4 drivers/tty/serial/8250/8250_port.c | 18 drivers/tty/serial/amba-pl011.c | 60 drivers/usb/cdns3/cdns3-gadget.c | 8 drivers/usb/cdns3/core.c | 1 drivers/usb/cdns3/drd.c | 13 drivers/usb/cdns3/drd.h | 6 drivers/usb/cdns3/host.c | 16 drivers/usb/dwc3/gadget.c | 5 drivers/usb/gadget/function/f_ncm.c | 10 drivers/usb/host/xhci-hub.c | 228 +- drivers/usb/host/xhci-mem.c | 10 drivers/usb/host/xhci-ring.c | 13 drivers/usb/host/xhci.h | 9 drivers/usb/roles/class.c | 29 drivers/vdpa/mlx5/core/mr.c | 1 drivers/video/fbdev/savage/savagefb_driver.c | 3 drivers/video/fbdev/sis/sis_main.c | 2 fs/afs/volume.c | 4 fs/aio.c | 9 fs/btrfs/disk-io.c | 3 fs/cifs/connect.c | 19 fs/cifs/smb2file.c | 1 fs/cifs/smb2ops.c | 54 fs/cifs/smb2pdu.c | 113 - fs/cifs/smb2proto.h | 16 fs/erofs/decompressor.c | 34 fs/exfat/dir.c | 15 fs/exfat/exfat_fs.h | 5 fs/ext4/extents.c | 111 - fs/ext4/mballoc.c | 70 fs/f2fs/gc.c | 41 fs/ksmbd/smb2pdu.c | 8 fs/ntfs3/attrib.c | 20 fs/ntfs3/attrlist.c | 8 fs/ntfs3/dir.c | 40 fs/ntfs3/file.c | 2 fs/ntfs3/fslog.c | 14 fs/ntfs3/fsntfs.c | 24 fs/ntfs3/inode.c | 2 fs/ntfs3/ntfs.h | 4 fs/ntfs3/ntfs_fs.h | 14 fs/ntfs3/record.c | 16 fs/ntfs3/xattr.c | 3 fs/zonefs/super.c | 68 include/dt-bindings/clock/imx8mp-clock.h | 10 include/linux/ahci_platform.h | 5 include/linux/bpf.h | 14 include/linux/clk-provider.h | 15 include/linux/fs.h | 2 include/linux/pm.h | 80 include/linux/sched.h | 4 include/linux/sched/signal.h | 2 include/linux/socket.h | 5 include/net/netfilter/nf_flow_table.h | 4 include/net/tcp.h | 2 kernel/bpf/bpf_lru_list.c | 21 kernel/bpf/bpf_lru_list.h | 7 kernel/bpf/helpers.c | 76 kernel/bpf/verifier.c | 3 kernel/sched/fair.c | 2 kernel/sched/rt.c | 10 kernel/sysctl.c | 4 kernel/time/posix-timers.c | 31 kernel/trace/bpf_trace.c | 39 lib/debugobjects.c | 9 mm/userfaultfd.c | 14 net/core/dev.c | 2 net/core/dev_ioctl.c | 2 net/core/devlink.c | 5 net/ipv4/arp.c | 3 net/ipv4/devinet.c | 21 net/ipv6/addrconf.c | 21 net/ipv6/seg6.c | 20 net/l2tp/l2tp_ip6.c | 2 net/mac80211/mlme.c | 1 net/mac80211/sta_info.c | 2 net/mac80211/tx.c | 2 net/mptcp/diag.c | 6 net/netfilter/nf_conntrack_proto_sctp.c | 2 net/netfilter/nf_flow_table_core.c | 41 net/netfilter/nf_tables_api.c | 3 net/netfilter/nft_flow_offload.c | 12 net/packet/af_packet.c | 12 net/sched/Kconfig | 42 net/sched/Makefile | 3 net/sched/sch_api.c | 20 net/sched/sch_atm.c | 710 ------- net/sched/sch_cbq.c | 1817 ------------------- net/sched/sch_dsmark.c | 522 ----- net/tls/tls_main.c | 2 net/tls/tls_sw.c | 12 net/wireless/nl80211.c | 1 net/wireless/wext-core.c | 6 scripts/bpf_doc.py | 2 sound/soc/sunxi/sun4i-spdif.c | 5 sound/usb/clock.c | 10 sound/usb/format.c | 20 tools/include/uapi/linux/fscrypt.h | 3 tools/perf/trace/beauty/include/linux/socket.h | 2 tools/testing/selftests/net/vrf-xfrm-tests.sh | 32 tools/virtio/linux/kernel.h | 2 tools/virtio/linux/vringh.h | 1 219 files changed, 2291 insertions(+), 4618 deletions(-)
Alex Bee (2):
arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
Alexander Tsoy (2):
ALSA: usb-audio: Check presence of valid altsetting control
ALSA: usb-audio: Ignore clock selector errors for single connection
Alexey Khoroshilov (1):
clk: renesas: cpg-mssr: Fix use after free if cpg_mssr_common_init() failed
Andrei Vagin (1):
x86/fpu: Stop relying on userspace for info to fault in xsave buffer
Andrew Bresticker (2):
efi: runtime: Fix potential overflow of soft-reserved region size
efi: Don't add memblocks for soft-reserved memory
Armin Wolf (1):
drm/amd/display: Fix memory leak in dm_sw_fini()
Arnaldo Carvalho de Melo (2):
tools headers UAPI: Sync linux/fscrypt.h with the kernel sources perf beauty: Update copy of linux/socket.h with the kernel sources
Arnd Bergmann (2):
RDMA/srpt: fix function pointer cast warnings
nouveau: fix function cast warnings
Baokun Li (5):
ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
ext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found()
ext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal()
ext4: regenerate buddy after block freeing failed if under fc replay
ext4: avoid bb_free and bb_fragments inconsistency in mb_free_blocks()
Bart Van Assche (2):
RDMA/srpt: Support specifying the srpt_service_guid parameter fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio
Borislav Petkov (AMD) (2):
Revert "x86/ftrace: Use alternative RET encoding" Revert "x86/alternative: Make custom return thunk unconditional"
Brenton Simpson (1):
Input: xpad - add Lenovo Legion Go controllers
Byungki Lee (1):
f2fs: write checkpoint during FG_GC
Chao Yu (1):
f2fs: don't set GC_FAILURE_PIN for background GC
Chen-Yu Tsai (2):
ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616
clk: Honor CLK_OPS_PARENT_ENABLE in clk_core_is_enabled()
Chuansheng Liu (1):
drm/i915/dg1: Update DMC_DEBUG3 register
Conrad Kostecki (1):
ahci: asm1166: correct count of reported ports
Corey Minyard (2):
i2c: imx: Add timer for handling the stop condition
i2c: imx: when being a target, mark the last read as processed
Cyril Hrubis (3):
sched/rt: sysctl_sched_rr_timeslice show default timeslice after reset sched/rt: Fix sysctl_sched_rr_timeslice intial value sched/rt: Disallow writing invalid values to sched_rt_period_us
Damien Le Moal (1):
zonefs: Improve error handling
Dan Carpenter (1):
PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
Daniel Axtens (1):
powerpc/eeh: Small refactor of eeh_handle_normal_event()
Daniel Vacek (1):
IB/hfi1: Fix sdma.h tx->num_descs off-by-one error
Daniel Wagner (8):
nvme-fc: do not wait in vain when unloading module
nvmet-fcloop: swap the list_add_tail arguments
nvmet-fc: release reference on target port
nvmet-fc: defer cleanup using RCU properly
nvmet-fc: hold reference on hostport match
nvmet-fc: abort command when there is no binding
nvmet-fc: avoid deadlock on delete association path
nvmet-fc: take ref count on tgtport before delete assoc
Daniil Dulov (1):
afs: Increase buffer size in afs_update_volume_status()
Dave Marchevsky (1):
bpf: Merge printk and seq_printf VARARG max macros
David Sterba (1):
btrfs: add xxhash to fast checksum implementations
Devyn Liu (1):
spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected
Dmitry Baryshkov (4):
clk: qcom: gcc-qcs404: disable gpll[04]_out_aux parents
clk: qcom: gcc-qcs404: fix names of the DSI clocks used as parents
clk: qcom: gpucc-sc7180: fix clk_dis_wait being programmed for CX GDSC
clk: qcom: gpucc-sdm845: fix clk_dis_wait being programmed for CX GDSC
Dmitry Bogdanov (1):
scsi: target: core: Add TMF to tmr_list handling
Edward Adam Davis (1):
fs/ntfs3: Fix oob in ntfs_listxattr
Eli Cohen (1):
vdpa/mlx5: Don't clear mr struct on destroy MR
Enzo Matsumiya (1):
cifs: remove useless parameter 'is_fsctl' from SMB2_ioctl()
Eric Dumazet (2):
ipv4: properly combine dev_base_seq and ipv4.dev_addr_genid
ipv6: properly combine dev_base_seq and ipv6.dev_addr_genid
Erik Kurzinger (1):
drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set
Eugen Hristev (1):
pmdomain: mediatek: fix race conditions with genpd
FUKAUMI Naoki (1):
arm64: dts: rockchip: fix regulator name on rk3399-rock-4
Fedor Pchelkin (1):
ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
Felix Fietkau (1):
wifi: mac80211: fix race condition on enabling fast-xmit
Florian Westphal (4):
netfilter: nf_tables: add rescheduling points during loop detection walks
netfilter: nf_tables: set dormant flag on hook register failure
netfilter: nf_tables: fix scheduling-while-atomic splat
netfilter: nf_tables: can't schedule in nft_chain_validate
Frank Li (2):
usb: cdns3: fixed memory use after free at cdns3_gadget_ep_disable()
usb: cdns3: fix memory double free when handle zero packet
Frederic Barrat (1):
powerpc/powernv/ioda: Skip unallocated resources when mapping to PE
Fullway Wang (2):
fbdev: savage: Error out if pixclock equals zero
fbdev: sis: Error out if pixclock equals zero
Ganesh Goudar (1):
powerpc/eeh: Set channel state after notifying the drivers
Gao Xiang (1):
erofs: fix lz4 inplace decompression
Geert Uytterhoeven (2):
pmdomain: renesas: r8a77980-sysc: CR7 must be always on
clk: renesas: cpg-mssr: Remove superfluous check in resume code
Gianmarco Lusvardi (1):
bpf, scripts: Correct GPL license name
Greg Kroah-Hartman (1):
Linux 5.15.150
Guixin Liu (1):
nvmet-tcp: fix nvme tcp ida memory leak
Guo Zhengkui (1):
drm/nouveau/instmem: fix uninitialized_var.cocci warning
Guoqing Jiang (2):
RDMA/siw: Balance the reference of cep->kref in the error path RDMA/siw: Correct wrong debug message
Gustavo A. R. Silva (1):
wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()
Hannes Reinecke (1):
scsi: lpfc: Use unsigned type for num_sge
Hans de Goede (7):
platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names
ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A
ACPI: video: Add backlight=native DMI quirk for Apple iMac11,3
ACPI: video: Add backlight=native DMI quirk for Lenovo ThinkPad X131e (3371 AMD version)
ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2
ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
Heiko Stuebner (2):
RISC-V: fix funct4 definition for c.jalr in parse_asm.h
arm64: dts: rockchip: set num-cs property for spi on px30
Heiner Kallweit (1):
r8169: use new PM macros
Huang Pei (1):
MIPS: reserve exception vector space ONLY ONCE
Hui Su (1):
kernel/sched: Remove dl_boosted flag comment
Ilpo Järvinen (1):
serial: 8250: Remove serial_rs485 sanitization from em485
Ism Hong (1):
fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cache
Jakub Kicinski (2):
tls: rx: jump to a more appropriate label
tls: rx: drop pointless else after goto
Jamal Hadi Salim (3):
net/sched: Retire CBQ qdisc
net/sched: Retire ATM qdisc
net/sched: Retire dsmark qdisc
Jason Gunthorpe (1):
s390: use the correct count for __iowrite64_copy()
Jeff LaBundy (5):
Input: iqs269a - drop unused device node references
Input: iqs269a - configure device with a single block write
Input: iqs269a - increase interrupt handler return delay
Input: iqs269a - do not poll during suspend or resume
Input: iqs269a - do not poll during ATI
Jiri Olsa (3):
bpf: Add struct for bin_args arg in bpf_bprintf_prepare
bpf: Do cleanup in bpf_bprintf_cleanup only when needed
bpf: Remove trace_printk_lock
Johannes Berg (2):
wifi: mac80211: adding missing drv_mgd_complete_tx() call
wifi: iwlwifi: mvm: avoid baid size integer overflow
Jonathan Cameron (1):
Input: iqs269a - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
Kalesh AP (1):
RDMA/bnxt_re: Return error for SRQ resize
Kamal Heib (1):
RDMA/qedr: Fix qedr_create_user_qp error flow
Kees Cook (1):
net: dev: Convert sa_data to flexible array in struct sockaddr
Kellen Renshaw (1):
ACPI: resource: Add ASUS model S5402ZA to quirks
Konstantin Komarov (10):
fs/ntfs3: Modified fix directory element type detection
fs/ntfs3: Improve ntfs_dir_count
fs/ntfs3: Correct hard links updating when dealing with DOS names fs/ntfs3: Print warning while fixing hard links count
fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name" fs/ntfs3: Add NULL ptr dereference checking at the end of attr_allocate_frame() fs/ntfs3: Disable ATTR_LIST_ENTRY size check
fs/ntfs3: Prevent generic message "attempt to access beyond end of device" fs/ntfs3: Correct function is_rst_area_valid
fs/ntfs3: Update inode->i_size after success write into compressed file
Krishna Kurapati (1):
usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBs
Kuniyuki Iwashima (1):
arp: Prevent overflow in arp_req_get().
Kunwu Chan (1):
dmaengine: ti: edma: Add some null pointer checks to the edma_probe
Lennert Buytenhek (1):
ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers
Li Jun (2):
clk: imx: imx8mp: add shared clk gate for usb suspend clk
dt-bindings: clocks: imx8mp: Add ID for usb suspend clock
Lino Sanfilippo (1):
serial: amba-pl011: Fix DMA transmission in RS485 mode
Lokesh Gidra (1):
userfaultfd: fix mmap_changing checking in mfill_atomic_hugetlb
Luca Ellero (3):
Input: ads7846 - don't report pressure for ads7845
Input: ads7846 - always set last command to PWRDOWN
Input: ads7846 - don't check penirq immediately for 7845
Lucas Stach (1):
clk: imx8mp: add clkout1/2 support
Luke D. Jones (1):
platform/x86: asus-wmi: Document the dgpu_disable sysfs attribute
Magali Lemes (1):
selftests: net: vrf-xfrm-tests: change authentication and encryption algos
Marek Vasut (1):
clk: imx8mp: Add DISP2 pixel clock
Mark Rutland (1):
arm64: mm: fix VA-range sanity check
Martin Blumenstingl (1):
regulator: pwm-regulator: Add validity checks in continuous .get_voltage
Martin KaFai Lau (2):
bpf: Address KCSAN report on bpf_lru_list
bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel
Mathias Nyman (6):
xhci: cleanup xhci_hub_control port references
xhci: move port specific items such as state completions to port structure
xhci: rename resume_done to resume_timestamp
xhci: clear usb2 resume related variables in one place.
xhci: decouple usb2 port resume and get_port_status request handling
xhci: track port suspend state correctly in unsuccessful resume cases
Maxime Bizon (1):
wifi: ath11k: fix registration of 6Ghz-only phy without the full channel range
Michal Kazior (1):
wifi: cfg80211: fix missing interfaces when dumping
Mike Marciniszyn (1):
RDMA/irdma: Fix KASAN issue with tasklet
Mikulas Patocka (1):
dm-crypt: don't modify the data when using authenticated encryption
Mustafa Ismail (2):
RDMA/irdma: Set the CQ read threshold for GEN 1 RDMA/irdma: Add AE for too many RNRS
Nathan Lynch (5):
powerpc/pseries/lparcfg: add missing RTAS retry status handling powerpc/perf/hv-24x7: add missing RTAS retry status handling powerpc/pseries/lpar: add missing RTAS retry status handling powerpc/rtas: make all exports GPL
powerpc/rtas: ensure 4KB alignment for rtas_data_buf
Nikita Shubin (1):
ARM: ep93xx: Add terminator to gpiod_lookup_table
Oliver Upton (2):
KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handler
KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table()
Pablo Neira Ayuso (3):
netfilter: flowtable: simplify route logic
netfilter: nft_flow_offload: reset dst in route object after setting up flow
netfilter: nft_flow_offload: release dst in case direct xmit path is used
Paolo Abeni (1):
mptcp: fix lockless access in subflow ULP diag
Paul Cercueil (5):
PM: core: Redefine pm_ptr() macro
PM: core: Add new *_PM_OPS macros, deprecate old ones
mmc: jz4740: Use the new PM macros
mmc: mxc: Use the new PM macros
PM: core: Remove static qualifier in DEFINE_SIMPLE_DEV_PM_OPS macro
Paul Menzel (1):
ACPI: resource: Skip IRQ override on ASUS ExpertBook B1502CBA
Paulo Alcantara (3):
smb: client: fix OOB in receive_encrypted_standard()
smb: client: fix potential OOBs in smb2_parse_contexts()
smb: client: fix parsing of SMB3.1.1 POSIX create context
Pavel Sakharov (1):
net: stmmac: Fix incorrect dereference in interrupt handlers
Pawel Laszczak (2):
usb: cdnsp: blocked some cdns3 specific code
usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers
Peilin Ye (1):
net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs
Peng Fan (1):
clk: imx: avoid memory leak
Peter Zijlstra (5):
x86/text-patching: Make text_gen_insn() play nice with ANNOTATE_NOENDBR x86/ibt,paravirt: Use text_gen_insn() for paravirt_patch() x86/ftrace: Use alternative RET encoding
x86/returnthunk: Allow different return thunks x86/alternative: Make custom return thunk unconditional
Petr Oros (1):
devlink: report devlink_port_type_warn source device
Phoenix Chen (1):
platform/x86: touchscreen_dmi: Add info for the TECLAST X16 Plus tablet
Prike Liang (2):
drm/amdgpu: skip to program GFXDEC registers for suspend abort drm/amdgpu: reset gpu for s3 suspend abort case
Radhey Shyam Pandey (1):
ata: ahci_ceva: fix error handling for Xilinx GT PHY support
Rafał Miłecki (3):
ARM: dts: BCM53573: Drop nonexistent #usb-cells
ARM: dts: BCM53573: Drop nonexistent "default-off" LED trigger
ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch
Randy Dunlap (4):
MIPS: SMP-CPS: fix build error when HOTPLUG_CPU not set
MIPS: vpe-mt: drop physical_memsize
clk: linux/clk-provider.h: fix kernel-doc warnings and typos
scsi: jazz_esp: Only build if SCSI core is builtin
Sabrina Dubroca (1):
tls: stop recv() if initial process_rx_list gave us non-DATA
Sakari Ailus (1):
acpi: property: Let args be NULL in __acpi_node_get_property_reference
Samuel Holland (1):
mtd: rawnand: sunxi: Fix the size of the last OOB region
Serge Semin (2):
ata: libahci_platform: Convert to using devm bulk clocks API
ata: libahci_platform: Introduce reset assertion/deassertion methods
Shiraz Saleem (1):
RDMA/irdma: Validate max_send_wr and max_recv_wr
Shyam Prasad N (2):
cifs: add a warning when the in-flight count goes negative
cifs: fix mid leak during reconnection after timeout threshold
Stefano Garzarella (1):
tools/virtio: fix build
Subbaraya Sundeep (1):
octeontx2-af: Consider the action set by PF
Szilard Fabian (1):
Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk table
Takashi Sakamoto (1):
firewire: core: send bus reset promptly on gap count error
Tamim Khan (2):
ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA
ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
Tetsuo Handa (1):
debugobjects: Recheck debug_objects_enabled before reporting
Thinh Nguyen (1):
usb: dwc3: gadget: Don't disconnect if not started
Thomas Gleixner (1):
posix-timers: Ensure timer ID search-loop limit is valid
Thomas Hellström (1):
drm/ttm: Fix an invalid freeing on already freed page in error path
Tom Parkin (1):
l2tp: pass correct message length to ip6_append_data
Vasiliy Kovalev (2):
gtp: fix use-after-free and null-ptr-deref in gtp_genl_dump_pdp()
ipv6: sr: fix possible use-after-free and null-ptr-deref
Vidya Sagar (1):
PCI/MSI: Prevent MSI hardware interrupt number truncation
Vinod Koul (2):
dmaengine: shdma: increase size of 'dev_id'
dmaengine: fsl-qdma: increase size of 'irq_name'
Wang Qing (1):
net: ethernet: ti: add missing of_node_put before return
Wolfram Sang (2):
spi: sh-msiof: avoid integer overflow in constants
packet: move from strlcpy with unused retval to strscpy
Xin Long (1):
netfilter: conntrack: check SCTP_CID_SHUTDOWN_ACK for vtag setting in sctp_new
Xu Yang (2):
usb: roles: fix NULL pointer issue when put module's reference
usb: roles: don't get/set_role() when usb_role_switch is unregistered
Yi Sun (1):
virtio-blk: Ensure no requests in virtqueues before deleting vqs.
Yicong Yang (1):
sched/fair: Don't balance task to its current running CPU
Yifan Zhang (1):
drm/amdgpu: init iommu after amdkfd device init
Ying Hsu (1):
igb: Fix igb_down hung on surprise removal
Youngmin Nam (1):
arm64: set __exception_irq_entry with __irq_entry as a default
Yu Kuai (2):
md: fix data corruption for raid456 when reshape restart while grow up md/raid10: prevent soft lockup while flush writes
Yuezhang Mo (1):
exfat: support dynamic allocate bh for exfat_entry_set_cache
Zhang Rui (1):
hwmon: (coretemp) Enlarge per package core count limit
Zhang Yi (1):
ext4: correct the hole length returned by ext4_map_blocks()
Zhipeng Lu (1):
IB/hfi1: Fix a memleak in init_credit_return
Zhong Jinghua (1):
nbd: Add the maximum limit of allocated index in nbd_dev_add
Greg Kroah-Hartman
maintainerDocumentation/ABI/testing/sysfs-platform-asus-wmi +9 -0
@@ -57,3 +57,12 @@ Description: * 0 - default, * 1 - overboost, * 2 - silent + +What: /sys/devices/platform/<platform>/dgpu_disable +Date: Aug 2022 +KernelVersion: 5.17 +Contact: "Luke Jones" <[email protected]> +Description: + Disable discrete GPU: + * 0 - Enable dGPU, + * 1 - Disable dGPU
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 149 +SUBLEVEL = 150 EXTRAVERSION = NAME = Trick or Treat
arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts +0 -1
@@ -26,7 +26,6 @@ leds { wlan { label = "bcm53xx:blue:wlan"; gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; - linux,default-trigger = "default-off"; }; system {
arch/arm/boot/dts/bcm47189-luxul-xap-810.dts +0 -2
@@ -26,7 +26,6 @@ leds { 5ghz { label = "bcm53xx:blue:5ghz"; gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "default-off"; }; system {
@@ -42,7 +41,6 @@ pcie0_leds { 2ghz { label = "bcm53xx:blue:2ghz"; gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "default-off"; }; };
arch/arm/boot/dts/bcm53573.dtsi +18 -2
@@ -159,8 +159,6 @@ ehci_port2: port@2 { }; ohci: usb@d000 { - #usb-cells = <0>; - compatible = "generic-ohci"; reg = <0xd000 0x1000>; interrupt-parent = <&gic>;
@@ -183,6 +181,24 @@ ohci_port2: port@2 { gmac0: ethernet@5000 { reg = <0x5000 0x1000>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch: switch@1e { + compatible = "brcm,bcm53125"; + reg = <0x1e>; + + status = "disabled"; + + /* ports are defined in board DTS */ + ports { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + }; }; gmac1: ethernet@b000 {
arch/arm/mach-ep93xx/core.c +1 -0
@@ -337,6 +337,7 @@ static struct gpiod_lookup_table ep93xx_i2c_gpiod_table = { GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), GPIO_LOOKUP_IDX("G", 0, NULL, 1, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), + { } }, };
arch/arm64/boot/dts/rockchip/px30.dtsi +2 -0
@@ -585,6 +585,7 @@ spi0: spi@ff1d0000 { clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 12>, <&dmac 13>; dma-names = "tx", "rx"; + num-cs = <2>; pinctrl-names = "default"; pinctrl-0 = <&spi0_clk &spi0_csn &spi0_miso &spi0_mosi>; #address-cells = <1>;
@@ -600,6 +601,7 @@ spi1: spi@ff1d8000 { clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 14>, <&dmac 15>; dma-names = "tx", "rx"; + num-cs = <2>; pinctrl-names = "default"; pinctrl-0 = <&spi1_clk &spi1_csn0 &spi1_csn1 &spi1_miso &spi1_mosi>; #address-cells = <1>;
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +67 -12
153 lines not on this page · raw message
arch/arm64/include/asm/exception.h +0 -5
@@ -8,16 +8,11 @@#define __ASM_EXCEPTION_H#include <asm/esr.h> -#include <asm/kprobes.h> #include <asm/ptrace.h> #include <linux/interrupt.h> -#ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __exception_irq_entry __irq_entry -#else -#define __exception_irq_entry __kprobes -#endif static inline unsigned long disr_to_esr (u64 disr) {
arch/arm64/kvm/vgic/vgic-its.c +5 -0
@@ -462,6 +462,9 @@ static int its_sync_lpi_pending_table(struct kvm_vcpu *vcpu) } irq =vgic_get_irq (vcpu->kvm,NULL , intids[i]); +if (!irq) +continue ; +raw_spin_lock_irqsave (&irq->irq_lock, flags); irq->pending_latch = pendmask & (1U << bit_nr);vgic_queue_irq_unlock (vcpu->kvm, irq, flags);
@@ -1374,6 +1377,8 @@ static int vgic_its_cmd_handle_movall(struct kvm *kvm, struct vgic_its *its,for (i =0 ; i < irq_count; i++) { irq =vgic_get_irq (kvm,NULL , intids[i]); +if (!irq) +continue ;update_affinity (irq, vcpu2);
arch/arm64/mm/mmu.c +2 -2
@@ -435,7 +435,7 @@ static phys_addr_t pgd_pgtable_alloc(int shift)static void __init create_mapping_noalloc (phys_addr_t phys,unsigned long virt,phys_addr_t size,pgprot_t prot) { -if ((virt >=PAGE_END ) && (virt <VMALLOC_START )) { +if (virt <PAGE_OFFSET ) {pr_warn ("BUG: not creating mapping for %pa at 0x%016lx - outside kernel range\n" , &phys, virt);return ;
@@ -462,7 +462,7 @@ void __init create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,static void update_mapping_prot (phys_addr_t phys,unsigned long virt,phys_addr_t size,pgprot_t prot) { -if ((virt >=PAGE_END ) && (virt <VMALLOC_START )) { +if (virt <PAGE_OFFSET ) {pr_warn ("BUG: not updating mapping for %pa at 0x%016lx - outside kernel range\n" , &phys, virt);return ;
arch/mips/include/asm/vpe.h +0 -1
@@ -102,7 +102,6 @@ struct vpe_control {struct list_head tc_list;/* Thread contexts */ }; -extern unsigned long physical_memsize;extern struct vpe_control vpecontrol;extern const struct file_operations vpe_fops;
arch/mips/kernel/smp-cps.c +5 -3
@@ -424,9 +424,11 @@ static void cps_shutdown_this_cpu(enum cpu_death death)wmb (); } }else { -pr_debug ("Gating power to core %d\n" , core); -/* Power down the core */ -cps_pm_enter_state (CPS_PM_POWER_GATED ); +if (IS_ENABLED (CONFIG_HOTPLUG_CPU )) { +pr_debug ("Gating power to core %d\n" , core); +/* Power down the core */ +cps_pm_enter_state (CPS_PM_POWER_GATED ); + } } }
arch/mips/kernel/traps.c +7 -1
@@ -2001,7 +2001,13 @@ unsigned long vi_handlers[64];void reserve_exception_space (phys_addr_t addr,unsigned long size) { -memblock_reserve (addr, size); +/* +* reserve exception space on CPUs other than CPU0 +* is too late, since memblock is unavailable when APs +* up +*/ +if (smp_processor_id () ==0 ) +memblock_reserve (addr, size); }void __init *set_except_vector (int n,void *addr)
arch/mips/kernel/vpe-mt.c +3 -4
@@ -92,12 +92,11 @@ int vpe_run(struct vpe *v)write_tc_c0_tchalt (read_tc_c0_tchalt () & ~TCHALT_H );/* -* The sde-kit passes 'memsize' to __start in $a3, so set something -* here... Or set $a3 to zero and define DFLT_STACK_SIZE and -* DFLT_HEAP_SIZE when you compile your program +* We don't pass the memsize here, so VPE programs need to be +* compiled with DFLT_STACK_SIZE and DFLT_HEAP_SIZE defined. */ +mttgpr (7 ,0 );mttgpr (6 , v->ntcs); -mttgpr (7 , physical_memsize);/* set up VPE1 */ /*
arch/mips/lantiq/prom.c +0 -6
@@ -22,12 +22,6 @@DEFINE_SPINLOCK (ebu_lock);EXPORT_SYMBOL_GPL (ebu_lock); -/* -* This is needed by the VPE loader code, just set it to 0 and assume -* that the firmware hardcodes this value to something useful. -*/ -unsigned long physical_memsize =0L ; -/* * this struct is filled by the soc specific detection code and holds * information about the specific soc type, revision and name
arch/powerpc/kernel/eeh_driver.c +36 -35
91 lines not on this page · raw message
arch/powerpc/kernel/rtas.c +12 -12
@@ -68,10 +68,10 @@ struct rtas_t rtas = {EXPORT_SYMBOL (rtas);DEFINE_SPINLOCK (rtas_data_buf_lock); -EXPORT_SYMBOL (rtas_data_buf_lock); +EXPORT_SYMBOL_GPL (rtas_data_buf_lock); -char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned; -EXPORT_SYMBOL (rtas_data_buf); +char rtas_data_buf[RTAS_DATA_BUF_SIZE ]__aligned(SZ_4K) ; +EXPORT_SYMBOL_GPL (rtas_data_buf);unsigned long rtas_rmo_buf;
@@ -80,7 +80,7 @@ unsigned long rtas_rmo_buf;* This is done like this so rtas_flash can be a module. */ void (*rtas_flash_term_hook)(int ); -EXPORT_SYMBOL (rtas_flash_term_hook); +EXPORT_SYMBOL_GPL (rtas_flash_term_hook);/* RTAS use home made raw locking instead of spin_lock_irqsave * because those can be called from within really nasty contexts
@@ -328,7 +328,7 @@ void rtas_progress(char *s, unsigned short hex)spin_unlock (&progress_lock); } -EXPORT_SYMBOL (rtas_progress);/* needed by rtas_flash module */ +EXPORT_SYMBOL_GPL (rtas_progress);/* needed by rtas_flash module */ int rtas_token (const char *service) {
@@ -338,7 +338,7 @@ int rtas_token(const char *service) tokp =of_get_property (rtas.dev, service,NULL );return tokp ?be32_to_cpu (*tokp) :RTAS_UNKNOWN_SERVICE ; } -EXPORT_SYMBOL (rtas_token); +EXPORT_SYMBOL_GPL (rtas_token);int rtas_service_present (const char *service) {
@@ -498,7 +498,7 @@ int rtas_call(int token, int nargs, int nret, int *outputs, ...) }return ret; } -EXPORT_SYMBOL (rtas_call); +EXPORT_SYMBOL_GPL (rtas_call);/* For RTAS_BUSY (-2), delay for 1 millisecond. For an extended busy status * code of 990n, perform the hinted delay of 10^n (last digit) milliseconds.
@@ -533,7 +533,7 @@ unsigned int rtas_busy_delay(int status)return ms; } -EXPORT_SYMBOL (rtas_busy_delay); +EXPORT_SYMBOL_GPL (rtas_busy_delay);static int rtas_error_rc (int rtas_rc) {
@@ -579,7 +579,7 @@ int rtas_get_power_level(int powerdomain, int *level)return rtas_error_rc (rc);return rc; } -EXPORT_SYMBOL (rtas_get_power_level); +EXPORT_SYMBOL_GPL (rtas_get_power_level);int rtas_set_power_level (int powerdomain,int level,int *setlevel) {
@@ -597,7 +597,7 @@ int rtas_set_power_level(int powerdomain, int level, int *setlevel)return rtas_error_rc (rc);return rc; } -EXPORT_SYMBOL (rtas_set_power_level); +EXPORT_SYMBOL_GPL (rtas_set_power_level);int rtas_get_sensor (int sensor,int index,int *state) {
@@ -615,7 +615,7 @@ int rtas_get_sensor(int sensor, int index, int *state)return rtas_error_rc (rc);return rc; } -EXPORT_SYMBOL (rtas_get_sensor); +EXPORT_SYMBOL_GPL (rtas_get_sensor);int rtas_get_sensor_fast (int sensor,int index,int *state) {
@@ -676,7 +676,7 @@ int rtas_set_indicator(int indicator, int index, int new_value)return rtas_error_rc (rc);return rc; } -EXPORT_SYMBOL (rtas_set_indicator); +EXPORT_SYMBOL_GPL (rtas_set_indicator);/* * Ignoring RTAS extended delay
arch/powerpc/perf/hv-24x7.c +18 -24
59 lines not on this page · raw message
arch/powerpc/platforms/powernv/pci-ioda.c +2 -1
@@ -2334,7 +2334,8 @@ static void pnv_ioda_setup_pe_res(struct pnv_ioda_pe *pe,int index;int64_t rc; -if (!res || !res->flags || res->start > res->end) +if (!res || !res->flags || res->start > res->end || + res->flags &IORESOURCE_UNSET )return ;if (res->flags &IORESOURCE_IO ) {
arch/powerpc/platforms/pseries/lpar.c +10 -10
@@ -1434,22 +1434,22 @@ static inline void __init check_lp_set_hblkrm(unsigned int lp,void __init pseries_lpar_read_hblkrm_characteristics (void ) { +const s32 token =rtas_token ("ibm,get-system-parameter" );unsigned char local_buffer[SPLPAR_TLB_BIC_MAXLENGTH ];int call_status, len, idx, bpsize;if (!firmware_has_feature (FW_FEATURE_BLOCK_REMOVE ))return ; -spin_lock (&rtas_data_buf_lock); -memset (rtas_data_buf,0 ,RTAS_DATA_BUF_SIZE ); - call_status =rtas_call (rtas_token ("ibm,get-system-parameter" ),3 ,1 , -NULL , -SPLPAR_TLB_BIC_TOKEN , -__pa (rtas_data_buf), -RTAS_DATA_BUF_SIZE ); -memcpy (local_buffer, rtas_data_buf,SPLPAR_TLB_BIC_MAXLENGTH ); - local_buffer[SPLPAR_TLB_BIC_MAXLENGTH -1 ] ='\0' ; -spin_unlock (&rtas_data_buf_lock); +do { +spin_lock (&rtas_data_buf_lock); +memset (rtas_data_buf,0 ,RTAS_DATA_BUF_SIZE ); + call_status =rtas_call (token,3 ,1 ,NULL ,SPLPAR_TLB_BIC_TOKEN , +__pa (rtas_data_buf),RTAS_DATA_BUF_SIZE ); +memcpy (local_buffer, rtas_data_buf,SPLPAR_TLB_BIC_MAXLENGTH ); + local_buffer[SPLPAR_TLB_BIC_MAXLENGTH -1 ] ='\0' ; +spin_unlock (&rtas_data_buf_lock); + }while (rtas_busy_delay (call_status));if (call_status !=0 ) { pr_warn("%s %s Error calling get-system-parameter (0x%x)\n",
arch/powerpc/platforms/pseries/lparcfg.c +10 -10
@@ -322,6 +322,7 @@ static void parse_mpp_x_data(struct seq_file *m)*/ static void parse_system_parameter_string (struct seq_file *m) { +const s32 token =rtas_token ("ibm,get-system-parameter" );int call_status;unsigned char *local_buffer =kmalloc (SPLPAR_MAXLENGTH ,GFP_KERNEL );
@@ -331,16 +332,15 @@ static void parse_system_parameter_string(struct seq_file *m)return ; } -spin_lock (&rtas_data_buf_lock); -memset (rtas_data_buf,0 ,SPLPAR_MAXLENGTH ); - call_status =rtas_call (rtas_token ("ibm,get-system-parameter" ),3 ,1 , -NULL , -SPLPAR_CHARACTERISTICS_TOKEN , -__pa (rtas_data_buf), -RTAS_DATA_BUF_SIZE ); -memcpy (local_buffer, rtas_data_buf,SPLPAR_MAXLENGTH ); - local_buffer[SPLPAR_MAXLENGTH -1 ] ='\0' ; -spin_unlock (&rtas_data_buf_lock); +do { +spin_lock (&rtas_data_buf_lock); +memset (rtas_data_buf,0 ,SPLPAR_MAXLENGTH ); + call_status =rtas_call (token,3 ,1 ,NULL ,SPLPAR_CHARACTERISTICS_TOKEN , +__pa (rtas_data_buf),RTAS_DATA_BUF_SIZE ); +memcpy (local_buffer, rtas_data_buf,SPLPAR_MAXLENGTH ); + local_buffer[SPLPAR_MAXLENGTH -1 ] ='\0' ; +spin_unlock (&rtas_data_buf_lock); + }while (rtas_busy_delay (call_status));if (call_status !=0 ) { printk(KERN_INFO
arch/riscv/include/asm/parse_asm.h +1 -1
@@ -128,7 +128,7 @@#define FUNCT3_C_J 0xa000#define FUNCT3_C_JAL 0x2000#define FUNCT4_C_JR 0x8000 -#define FUNCT4_C_JALR 0xf000 +#define FUNCT4_C_JALR 0x9000#define FUNCT12_SRET 0x10200000
arch/s390/pci/pci.c +1 -1
@@ -228,7 +228,7 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,/* combine single writes by using store-block insn */ void __iowrite64_copy (void __iomem *to,const void *from,size_t count) { -zpci_memcpy_toio (to, from, count); +zpci_memcpy_toio (to, from, count *8 ); }static void __iomem *__ioremap (phys_addr_t addr,size_t size,pgprot_t prot)
arch/x86/include/asm/nospec-branch.h +2 -0
@@ -207,6 +207,8 @@ extern void srso_alias_untrain_ret(void);extern void entry_untrain_ret (void );extern void entry_ibpb (void ); +extern void (*x86_return_thunk)(void ); +#ifdef CONFIG_RETPOLINE typedef u8 retpoline_thunk_t [RETPOLINE_THUNK_SIZE ];
arch/x86/include/asm/text-patching.h +23 -7
@@ -96,24 +96,40 @@ union text_poke_insn { };static __always_inline -void *text_gen_insn(u8 opcode, const void *addr, const void *dest) +void __text_gen_insn(void *buf, u8 opcode, const void *addr, const void *dest, int size) { -static union text_poke_insn insn;/* per instance */ -int size =text_opcode_size (opcode); +union text_poke_insn *insn = buf; + +BUG_ON (size <text_opcode_size (opcode)); + +/* +* Hide the addresses to avoid the compiler folding in constants when +* referencing code, these can mess up annotations like +* ANNOTATE_NOENDBR. +*/ +OPTIMIZER_HIDE_VAR (insn); +OPTIMIZER_HIDE_VAR (addr); +OPTIMIZER_HIDE_VAR (dest); - insn.opcode = opcode; + insn->opcode = opcode;if (size >1 ) { - insn.disp = (long )dest - (long )(addr + size); + insn->disp = (long )dest - (long )(addr + size);if (size ==2 ) {/* -* Ensure that for JMP9 the displacement +* Ensure that for JMP8 the displacement * actually fits the signed byte. */ -BUG_ON ((insn.disp >>31 ) != (insn.disp >>7 )); +BUG_ON ((insn->disp >>31 ) != (insn->disp >>7 )); } } +} +static __always_inline +void *text_gen_insn(u8 opcode, const void *addr, const void *dest) +{ +static union text_poke_insn insn;/* per instance */ +__text_gen_insn (&insn, opcode, addr, dest,text_opcode_size (opcode));return &insn.text; }
arch/x86/kernel/alternative.c +9 -4
@@ -521,6 +521,7 @@ void __init_or_module noinline apply_retpolines(s32 *start, s32 *end) }#ifdef CONFIG_RETHUNK +/* * Rewrite the compiler generated return thunk tail-calls. *
@@ -536,14 +537,18 @@ static int patch_return(void *addr, struct insn *insn, u8 *bytes) {int i =0 ; -if (cpu_feature_enabled (X86_FEATURE_RETHUNK )) -return -1 ; +if (cpu_feature_enabled (X86_FEATURE_RETHUNK )) { +if (x86_return_thunk == __x86_return_thunk) +return -1 ; - bytes[i++] =RET_INSN_OPCODE ; + i =JMP32_INSN_SIZE ; +__text_gen_insn (bytes,JMP32_INSN_OPCODE , addr, x86_return_thunk, i); + }else { + bytes[i++] =RET_INSN_OPCODE ; + }for (; i < insn->length;) bytes[i++] =INT3_INSN_OPCODE ; -return i; }
arch/x86/kernel/fpu/signal.c +5 -7
@@ -246,12 +246,13 @@ static int __restore_fpregs_from_user(void __user *buf, u64 xrestore,* Attempt to restore the FPU registers directly from user memory. * Pagefaults are handled and any errors returned are fatal. */ -static int restore_fpregs_from_user (void __user *buf,u64 xrestore, -bool fx_only,unsigned int size) +static int restore_fpregs_from_user (void __user *buf,u64 xrestore,bool fx_only) {struct fpu *fpu = ¤t->thread.fpu;int ret; +/* Restore enabled features only. */ + xrestore &= xfeatures_mask_all &XFEATURE_MASK_USER_SUPPORTED ; retry:fpregs_lock ();pagefault_disable ();
@@ -278,7 +279,7 @@ static int restore_fpregs_from_user(void __user *buf, u64 xrestore,if (ret != -EFAULT )return -EINVAL ; -if (!fault_in_readable (buf, size)) +if (!fault_in_readable (buf, fpu_user_xstate_size)) goto retry;return -EFAULT ; }
@@ -303,7 +304,6 @@ static int restore_fpregs_from_user(void __user *buf, u64 xrestore,static int __fpu_restore_sig (void __user *buf,void __user *buf_fx,bool ia32_fxstate) { -int state_size = fpu_kernel_xstate_size;struct task_struct *tsk = current;struct fpu *fpu = &tsk->thread.fpu;struct user_i387_ia32_struct env;
@@ -319,7 +319,6 @@ static int __fpu_restore_sig(void __user *buf, void __user *buf_fx,return ret; fx_only = !fx_sw_user.magic1; - state_size = fx_sw_user.xstate_size; user_xfeatures = fx_sw_user.xfeatures; }else { user_xfeatures =XFEATURE_MASK_FPSSE ;
@@ -332,8 +331,7 @@ static int __fpu_restore_sig(void __user *buf, void __user *buf_fx,* faults. If it does, fall back to the slow path below, going * through the kernel buffer with the enabled pagefault handler. */ -return restore_fpregs_from_user (buf_fx, user_xfeatures, fx_only, - state_size); +return restore_fpregs_from_user (buf_fx, user_xfeatures, fx_only); }/*
arch/x86/kernel/ftrace.c +1 -3
@@ -367,10 +367,8 @@ create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) goto fail; ip = trampoline + size; - -/* The trampoline ends with ret(q) */ if (cpu_feature_enabled (X86_FEATURE_RETHUNK )) -memcpy (ip,text_gen_insn (JMP32_INSN_OPCODE , ip, &__x86_return_thunk),JMP32_INSN_SIZE ); +__text_gen_insn (ip,JMP32_INSN_OPCODE , ip, x86_return_thunk,JMP32_INSN_SIZE );else memcpy (ip, retq,sizeof (retq));
arch/x86/kernel/paravirt.c +3 -20
@@ -58,29 +58,12 @@ static void paravirt_BUG(void)BUG (); } -struct branch { -unsigned char opcode; -u32 delta; -} __attribute__((packed)); -static unsigned paravirt_patch_call (void *insn_buff,const void *target,unsigned long addr,unsigned len) { -const int call_len =5 ; -struct branch *b = insn_buff; -unsigned long delta = (unsigned long )target - (addr+call_len); - -if (len < call_len) { -pr_warn ("paravirt: Failed to patch indirect CALL at %ps\n" , (void *)addr); -/* Kernel might not be viable if patching fails, bail out: */ -BUG_ON (1 ); - } - - b->opcode =0xe8 ;/* call */ - b->delta = delta; -BUILD_BUG_ON (sizeof (*b) != call_len); - -return call_len; +__text_gen_insn (insn_buff,CALL_INSN_OPCODE , + (void *)addr, target,CALL_INSN_SIZE ); +return CALL_INSN_SIZE ; }#ifdef CONFIG_PARAVIRT_XXL
arch/x86/kernel/static_call.c +1 -1
@@ -52,7 +52,7 @@ static void __ref __static_call_transform(void *insn, enum insn_type type,case RET :if (cpu_feature_enabled (X86_FEATURE_RETHUNK )) - code =text_gen_insn (JMP32_INSN_OPCODE , insn, &__x86_return_thunk); + code =text_gen_insn (JMP32_INSN_OPCODE , insn, x86_return_thunk);else code = &retinsn;break ;
arch/x86/net/bpf_jit_comp.c +1 -1
@@ -411,7 +411,7 @@ static void emit_return(u8 **pprog, u8 *ip)u8 *prog = *pprog;if (cpu_feature_enabled (X86_FEATURE_RETHUNK )) { -emit_jump (&prog, &__x86_return_thunk, ip); +emit_jump (&prog, x86_return_thunk, ip); }else {EMIT1 (0xC3 );/* ret */ if (IS_ENABLED (CONFIG_SLS ))
drivers/acpi/button.c +9 -0
@@ -77,6 +77,15 @@ static const struct dmi_system_id dmi_lid_quirks[] = { }, .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, }, + { +/* Nextbook Ares 8A tablet, _LID device always reports lid closed */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Insyde" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"CherryTrail" ), + DMI_MATCH(DMI_BIOS_VERSION, "M882"), + }, + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, + }, {/* * Lenovo Yoga 9 14ITL5, initial notification of the LID device
drivers/acpi/property.c +4 -0
@@ -639,6 +639,7 @@ acpi_fwnode_get_named_child_node(const struct fwnode_handle *fwnode,* @index: Index of the reference to return * @num_args: Maximum number of arguments after each reference * @args: Location to store the returned reference with optional arguments +* (may be NULL) * * Find property with @name, verifify that it is a package containing at least * one object reference and if so, store the ACPI device object pointer to the
@@ -697,6 +698,9 @@ int __acpi_node_get_property_reference(const struct fwnode_handle *fwnode,if (ret)return ret == -ENODEV ? -EINVAL : ret; +if (!args) +return 0 ; + args->fwnode =acpi_fwnode_handle (device); args->nargs =0 ;return 0 ;
drivers/acpi/resource.c +35 -0
@@ -421,6 +421,41 @@ static const struct dmi_system_id asus_laptop[] = { DMI_MATCH(DMI_BOARD_NAME, "K3502ZA"), }, }, + { + .ident = "Asus Vivobook S5402ZA", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"), + }, + }, + { + .ident = "Asus Vivobook S5602ZA", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"), + }, + }, + { + .ident = "Asus ExpertBook B1502CBA", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "B1502CBA"), + }, + }, + { + .ident = "Asus ExpertBook B2402CBA", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "B2402CBA"), + }, + }, + { + .ident = "Asus ExpertBook B2502", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "B2502CBA"), + }, + }, { } };
drivers/acpi/video_detect.c +34 -0
@@ -341,6 +341,40 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82BK"), }, }, + { + .callback = video_detect_force_native, +/* Lenovo ThinkPad X131e (3371 AMD version) */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), + DMI_MATCH(DMI_PRODUCT_NAME, "3371"), + }, + }, + { + .callback = video_detect_force_native, +/* Apple iMac11,3 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Apple Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"), + }, + }, + { +/* https://gitlab.freedesktop.org/drm/amd/-/issues/1838 */ + .callback = video_detect_force_native, +/* Apple iMac12,1 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Apple Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,1"), + }, + }, + { +/* https://gitlab.freedesktop.org/drm/amd/-/issues/2753 */ + .callback = video_detect_force_native, +/* Apple iMac12,2 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Apple Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"), + }, + }, {/* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */ .callback = video_detect_force_native,
drivers/ata/ahci.c +28 -6
@@ -49,6 +49,7 @@ enum {enum board_ids {/* board IDs by feature in alphabetical order */ board_ahci, + board_ahci_43bit_dma, board_ahci_ign_iferr, board_ahci_low_power, board_ahci_no_debounce_delay,
@@ -129,6 +130,13 @@ static const struct ata_port_info ahci_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &ahci_ops, }, + [board_ahci_43bit_dma] = { + AHCI_HFLAGS (AHCI_HFLAG_43BIT_ONLY), + .flags = AHCI_FLAG_COMMON, + .pio_mask = ATA_PIO4, + .udma_mask = ATA_UDMA6, + .port_ops = &ahci_ops, + }, [board_ahci_ign_iferr] = { AHCI_HFLAGS (AHCI_HFLAG_IGN_IRQ_IF_ERR), .flags = AHCI_FLAG_COMMON,
@@ -598,11 +606,11 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(PROMISE, 0x3f20), board_ahci }, /* PDC42819 */ { PCI_VDEVICE(PROMISE, 0x3781), board_ahci }, /* FastTrak TX8660 ahci-mode */ -/* Asmedia */ +/* ASMedia */ { PCI_VDEVICE(ASMEDIA, 0x0601), board_ahci }, /* ASM1060 */ { PCI_VDEVICE(ASMEDIA, 0x0602), board_ahci }, /* ASM1060 */ - { PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci }, /* ASM1061 */ - { PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci }, /* ASM1062 */ + { PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci_43bit_dma }, /* ASM1061 */ + { PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci_43bit_dma }, /* ASM1061/1062 */ { PCI_VDEVICE(ASMEDIA, 0x0621), board_ahci }, /* ASM1061R */ { PCI_VDEVICE(ASMEDIA, 0x0622), board_ahci }, /* ASM1062R */
@@ -658,6 +666,11 @@ MODULE_PARM_DESC(mobile_lpm_policy, "Default LPM policy for mobile chipsets");static void ahci_pci_save_initial_config (struct pci_dev *pdev,struct ahci_host_priv *hpriv) { +if (pdev->vendor ==PCI_VENDOR_ID_ASMEDIA && pdev->device ==0x1166 ) { +dev_info (&pdev->dev,"ASM1166 has only six ports\n" ); + hpriv->saved_port_map =0x3f ; + } +if (pdev->vendor ==PCI_VENDOR_ID_JMICRON && pdev->device ==0x2361 ) {dev_info (&pdev->dev,"JMB361 has only one port\n" ); hpriv->force_port_map =1 ;
@@ -950,11 +963,20 @@ static int ahci_pci_device_resume(struct device *dev)#endif /* CONFIG_PM */ -static int ahci_configure_dma_masks (struct pci_dev *pdev,int using_dac) +static int ahci_configure_dma_masks (struct pci_dev *pdev, +struct ahci_host_priv *hpriv) { -const int dma_bits = using_dac ?64 :32 ; +int dma_bits;int rc; +if (hpriv->cap &HOST_CAP_64 ) { + dma_bits =64 ; +if (hpriv->flags &AHCI_HFLAG_43BIT_ONLY ) + dma_bits =43 ; + }else { + dma_bits =32 ; + } +/* * If the device fixup already set the dma_mask to some non-standard * value, don't extend it here. This happens on STA2X11, for example.
@@ -1932,7 +1954,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)ahci_gtf_filter_workaround (host);/* initialize adapter */ - rc =ahci_configure_dma_masks (pdev, hpriv->cap &HOST_CAP_64 ); + rc =ahci_configure_dma_masks (pdev, hpriv);if (rc)return rc;
drivers/ata/ahci.h +4 -2
@@ -39,7 +39,6 @@enum {AHCI_MAX_PORTS =32 , -AHCI_MAX_CLKS =5 ,AHCI_MAX_SG =168 ,/* hardware max is 64K */ AHCI_DMA_BOUNDARY =0xffffffff ,AHCI_MAX_CMDS =32 ,
@@ -244,6 +243,7 @@ enum {AHCI_HFLAG_IGN_NOTSUPP_POWER_ON =BIT (27 ),/* ignore -EOPNOTSUPP from phy_power_on() */ AHCI_HFLAG_NO_SXS =BIT (28 ),/* SXS not supported */ + AHCI_HFLAG_43BIT_ONLY = BIT(29), /* 43bit DMA addr limit *//* ap->flags bits */
@@ -342,7 +342,9 @@ struct ahci_host_priv {u32 em_msg_type;/* EM message type */ u32 remapped_nvme;/* NVMe remapped device count */ bool got_runtime_pm;/* Did we do pm_runtime_get? */ -struct clk *clks[AHCI_MAX_CLKS ];/* Optional */ +unsigned int n_clks; +struct clk_bulk_data *clks;/* Optional */ +unsigned int f_rsts;struct reset_control *rsts;/* Optional */ struct regulator **target_pwrs;/* Optional */ struct regulator *ahci_regulator;/* Optional */
drivers/ata/ahci_ceva.c +79 -46
198 lines not on this page · raw message
drivers/ata/ahci_da850.c +19 -28
62 lines not on this page · raw message
drivers/ata/ahci_dm816.c +2 -2
@@ -69,12 +69,12 @@ static int ahci_dm816_phy_init(struct ahci_host_priv *hpriv, struct device *dev)* keep-alive clock and the external reference clock. We need the * rate of the latter to calculate the correct value of MPY bits. */ -if (!hpriv->clks[1 ]) { +if (hpriv->n_clks <2 ) {dev_err (dev,"reference clock not supplied\n" );return -EINVAL ; } - refclk_rate =clk_get_rate (hpriv->clks[1 ]); + refclk_rate =clk_get_rate (hpriv->clks[1 ].clk);if ((refclk_rate %100 ) !=0 ) {dev_err (dev,"reference clock rate must be divisible by 100\n" );return -EINVAL ;
drivers/ata/libahci_platform.c +83 -50
213 lines not on this page · raw message
drivers/block/nbd.c +2 -1
@@ -1715,7 +1715,8 @@ static struct nbd_device *nbd_dev_add(int index, unsigned int refs)if (err == -ENOSPC ) err = -EEXIST ; }else { - err =idr_alloc (&nbd_index_idr, nbd,0 ,0 ,GFP_KERNEL ); + err =idr_alloc (&nbd_index_idr, nbd,0 , + (MINORMASK >> part_shift) +1 ,GFP_KERNEL );if (err >=0 ) index = err; }
drivers/block/virtio_blk.c +4 -3
@@ -989,14 +989,15 @@ static int virtblk_freeze(struct virtio_device *vdev) {struct virtio_blk *vblk = vdev->priv; +/* Ensure no requests in virtqueues before deleting vqs. */ +blk_mq_freeze_queue (vblk->disk->queue); +/* Ensure we don't receive any more interrupts */ vdev->config->reset (vdev);/* Make sure no work handler is accessing the device. */ flush_work (&vblk->config_work); -blk_mq_quiesce_queue (vblk->disk->queue); - vdev->config->del_vqs (vdev);kfree (vblk->vqs);
@@ -1014,7 +1015,7 @@ static int virtblk_restore(struct virtio_device *vdev)virtio_device_ready (vdev); -blk_mq_unquiesce_queue (vblk->disk->queue); +blk_mq_unfreeze_queue (vblk->disk->queue); return 0; }#endif
drivers/clk/clk.c +11 -0
@@ -251,6 +251,17 @@ static bool clk_core_is_enabled(struct clk_core *core) } } +/* +* This could be called with the enable lock held, or from atomic +* context. If the parent isn't enabled already, we can't do +* anything here. We can also assume this clock isn't enabled. +*/ +if ((core->flags &CLK_OPS_PARENT_ENABLE ) && core->parent) +if (!clk_core_is_enabled (core->parent)) { + ret = false; + goto done; + } + ret = core->ops->is_enabled (core->hw); done:if (core->rpm_enabled)
drivers/clk/imx/clk-imx8mp.c +20 -3
@@ -17,6 +17,7 @@static u32 share_count_nand;static u32 share_count_media; +static u32 share_count_usb;static const char *const pll_ref_sels[] = {"osc_24m" ,"dummy" ,"dummy" ,"dummy" , };static const char *const audio_pll1_bypass_sels[] = {"audio_pll1" ,"audio_pll1_ref_sel" , };
@@ -354,7 +355,7 @@ static const char * const imx8mp_media_mipi_phy1_ref_sels[] = {"osc_24m", "sys_p"clk_ext2" ,"audio_pll2_out" , "video_pll1_out", }; -static const char *const imx8mp_media_disp1_pix_sels[] = {"osc_24m" ,"video_pll1_out" ,"audio_pll2_out" , +static const char *const imx8mp_media_disp_pix_sels[] = {"osc_24m" ,"video_pll1_out" ,"audio_pll2_out" ,"audio_pll1_out" ,"sys_pll1_800m" ,"sys_pll2_1000m" ,"sys_pll3_out" ,"clk_ext4" , };
@@ -395,6 +396,11 @@ static const char * const imx8mp_sai7_sels[] = {"osc_24m", "audio_pll1_out", "austatic const char *const imx8mp_dram_core_sels[] = {"dram_pll_out" ,"dram_alt_root" , }; +static const char *const imx8mp_clkout_sels[] = {"audio_pll1_out" ,"audio_pll2_out" ,"video_pll1_out" , +"dummy" ,"dummy" ,"gpu_pll_out" ,"vpu_pll_out" , +"arm_pll_out" ,"sys_pll1" ,"sys_pll2" ,"sys_pll3" , +"dummy" ,"dummy" ,"osc_24m" ,"dummy" ,"osc_32k" }; +static struct clk_hw **hws;static struct clk_hw_onecell_data *clk_hw_data;
@@ -513,6 +519,15 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_SYS_PLL2_500M ] =imx_clk_hw_fixed_factor ("sys_pll2_500m" ,"sys_pll2_500m_cg" ,1 ,2 ); hws[IMX8MP_SYS_PLL2_1000M ] =imx_clk_hw_fixed_factor ("sys_pll2_1000m" ,"sys_pll2_out" ,1 ,1 ); + hws[IMX8MP_CLK_CLKOUT1_SEL ] =imx_clk_hw_mux2 ("clkout1_sel" , anatop_base +0x128 ,4 ,4 , + imx8mp_clkout_sels,ARRAY_SIZE (imx8mp_clkout_sels)); + hws[IMX8MP_CLK_CLKOUT1_DIV ] =imx_clk_hw_divider ("clkout1_div" ,"clkout1_sel" , anatop_base +0x128 ,0 ,4 ); + hws[IMX8MP_CLK_CLKOUT1 ] =imx_clk_hw_gate ("clkout1" ,"clkout1_div" , anatop_base +0x128 ,8 ); + hws[IMX8MP_CLK_CLKOUT2_SEL ] =imx_clk_hw_mux2 ("clkout2_sel" , anatop_base +0x128 ,20 ,4 , + imx8mp_clkout_sels,ARRAY_SIZE (imx8mp_clkout_sels)); + hws[IMX8MP_CLK_CLKOUT2_DIV ] =imx_clk_hw_divider ("clkout2_div" ,"clkout2_sel" , anatop_base +0x128 ,16 ,4 ); + hws[IMX8MP_CLK_CLKOUT2 ] =imx_clk_hw_gate ("clkout2" ,"clkout2_div" , anatop_base +0x128 ,24 ); + hws[IMX8MP_CLK_A53_DIV ] =imx8m_clk_hw_composite_core ("arm_a53_div" , imx8mp_a53_sels, ccm_base +0x8000 ); hws[IMX8MP_CLK_A53_SRC ] = hws[IMX8MP_CLK_A53_DIV ]; hws[IMX8MP_CLK_A53_CG ] = hws[IMX8MP_CLK_A53_DIV ];
@@ -547,6 +562,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_AHB ] =imx8m_clk_hw_composite_bus_critical ("ahb_root" , imx8mp_ahb_sels, ccm_base +0x9000 ); hws[IMX8MP_CLK_AUDIO_AHB ] =imx8m_clk_hw_composite_bus ("audio_ahb" , imx8mp_audio_ahb_sels, ccm_base +0x9100 ); hws[IMX8MP_CLK_MIPI_DSI_ESC_RX ] =imx8m_clk_hw_composite_bus ("mipi_dsi_esc_rx" , imx8mp_mipi_dsi_esc_rx_sels, ccm_base +0x9200 ); + hws[IMX8MP_CLK_MEDIA_DISP2_PIX ] =imx8m_clk_hw_composite ("media_disp2_pix" , imx8mp_media_disp_pix_sels, ccm_base +0x9300 ); hws[IMX8MP_CLK_IPG_ROOT ] =imx_clk_hw_divider2 ("ipg_root" ,"ahb_root" , ccm_base +0x9080 ,0 ,1 );
@@ -608,7 +624,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_USDHC3 ] =imx8m_clk_hw_composite ("usdhc3" , imx8mp_usdhc3_sels, ccm_base +0xbc80 ); hws[IMX8MP_CLK_MEDIA_CAM1_PIX ] =imx8m_clk_hw_composite ("media_cam1_pix" , imx8mp_media_cam1_pix_sels, ccm_base +0xbd00 ); hws[IMX8MP_CLK_MEDIA_MIPI_PHY1_REF ] =imx8m_clk_hw_composite ("media_mipi_phy1_ref" , imx8mp_media_mipi_phy1_ref_sels, ccm_base +0xbd80 ); - hws[IMX8MP_CLK_MEDIA_DISP1_PIX ] =imx8m_clk_hw_composite ("media_disp1_pix" , imx8mp_media_disp1_pix_sels, ccm_base +0xbe00 ); + hws[IMX8MP_CLK_MEDIA_DISP1_PIX ] =imx8m_clk_hw_composite ("media_disp1_pix" , imx8mp_media_disp_pix_sels, ccm_base +0xbe00 ); hws[IMX8MP_CLK_MEDIA_CAM2_PIX ] =imx8m_clk_hw_composite ("media_cam2_pix" , imx8mp_media_cam2_pix_sels, ccm_base +0xbe80 ); hws[IMX8MP_CLK_MEDIA_LDB ] =imx8m_clk_hw_composite ("media_ldb" , imx8mp_media_ldb_sels, ccm_base +0xbf00 ); hws[IMX8MP_CLK_MEMREPAIR ] =imx8m_clk_hw_composite_critical ("mem_repair" , imx8mp_memrepair_sels, ccm_base +0xbf80 );
@@ -667,7 +683,8 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_UART2_ROOT ] =imx_clk_hw_gate4 ("uart2_root_clk" ,"uart2" , ccm_base +0x44a0 ,0 ); hws[IMX8MP_CLK_UART3_ROOT ] =imx_clk_hw_gate4 ("uart3_root_clk" ,"uart3" , ccm_base +0x44b0 ,0 ); hws[IMX8MP_CLK_UART4_ROOT ] =imx_clk_hw_gate4 ("uart4_root_clk" ,"uart4" , ccm_base +0x44c0 ,0 ); - hws[IMX8MP_CLK_USB_ROOT ] =imx_clk_hw_gate4 ("usb_root_clk" ,"hsio_axi" , ccm_base +0x44d0 ,0 ); + hws[IMX8MP_CLK_USB_ROOT ] =imx_clk_hw_gate2_shared2 ("usb_root_clk" ,"hsio_axi" , ccm_base +0x44d0 ,0 , &share_count_usb); + hws[IMX8MP_CLK_USB_SUSP ] =imx_clk_hw_gate2_shared2 ("usb_suspend_clk" ,"osc_32k" , ccm_base +0x44d0 ,0 , &share_count_usb); hws[IMX8MP_CLK_USB_PHY_ROOT ] =imx_clk_hw_gate4 ("usb_phy_root_clk" ,"usb_phy_ref" , ccm_base +0x44f0 ,0 ); hws[IMX8MP_CLK_USDHC1_ROOT ] =imx_clk_hw_gate4 ("usdhc1_root_clk" ,"usdhc1" , ccm_base +0x4510 ,0 ); hws[IMX8MP_CLK_USDHC2_ROOT ] =imx_clk_hw_gate4 ("usdhc2_root_clk" ,"usdhc2" , ccm_base +0x4520 ,0 );
drivers/clk/imx/clk.c +2 -1
@@ -201,9 +201,10 @@ static int __init imx_clk_disable_uart(void)clk_disable_unprepare (imx_uart_clocks[i]);clk_put (imx_uart_clocks[i]); } -kfree (imx_uart_clocks); } +kfree (imx_uart_clocks); +return 0 ; }late_initcall_sync (imx_clk_disable_uart);
drivers/clk/qcom/gcc-qcs404.c +4 -20
@@ -25,11 +25,9 @@ enum {P_CORE_BI_PLL_TEST_SE ,P_DSI0_PHY_PLL_OUT_BYTECLK ,P_DSI0_PHY_PLL_OUT_DSICLK , -P_GPLL0_OUT_AUX ,P_GPLL0_OUT_MAIN ,P_GPLL1_OUT_MAIN ,P_GPLL3_OUT_MAIN , -P_GPLL4_OUT_AUX ,P_GPLL4_OUT_MAIN ,P_GPLL6_OUT_AUX , P_HDMI_PHY_PLL_CLK,
@@ -109,28 +107,24 @@ static const char * const gcc_parent_names_4[] = {static const struct parent_map gcc_parent_map_5[] = { {P_XO ,0 }, {P_DSI0_PHY_PLL_OUT_BYTECLK ,1 }, - {P_GPLL0_OUT_AUX ,2 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_5[] = {"cxo" , -"dsi0pll_byteclk_src" , -"gpll0_out_aux" , +"dsi0pllbyte" ,"core_bi_pll_test_se" , };static const struct parent_map gcc_parent_map_6[] = { {P_XO ,0 }, {P_DSI0_PHY_PLL_OUT_BYTECLK ,2 }, - {P_GPLL0_OUT_AUX ,3 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_6[] = {"cxo" , -"dsi0_phy_pll_out_byteclk" , -"gpll0_out_aux" , +"dsi0pllbyte" ,"core_bi_pll_test_se" , };
@@ -139,7 +133,6 @@ static const struct parent_map gcc_parent_map_7[] = { { P_GPLL0_OUT_MAIN, 1 }, { P_GPLL3_OUT_MAIN, 2 }, { P_GPLL6_OUT_AUX, 3 }, - { P_GPLL4_OUT_AUX, 4 }, { P_CORE_BI_PLL_TEST_SE, 7 }, };
@@ -148,7 +141,6 @@ static const char * const gcc_parent_names_7[] = {"gpll0_out_main" ,"gpll3_out_main" ,"gpll6_out_aux" , -"gpll4_out_aux" , "core_bi_pll_test_se", };
@@ -175,7 +167,7 @@ static const struct parent_map gcc_parent_map_9[] = {static const char *const gcc_parent_names_9[] = {"cxo" ,"gpll0_out_main" , -"dsi0_phy_pll_out_dsiclk" , +"dsi0pll" ,"gpll6_out_aux" ,"core_bi_pll_test_se" , };
@@ -207,14 +199,12 @@ static const char * const gcc_parent_names_11[] = {static const struct parent_map gcc_parent_map_12[] = { {P_XO ,0 }, {P_DSI0_PHY_PLL_OUT_DSICLK ,1 }, - {P_GPLL0_OUT_AUX ,2 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_12[] = {"cxo" , -"dsi0pll_pclk_src" , -"gpll0_out_aux" , +"dsi0pll" ,"core_bi_pll_test_se" , };
@@ -237,40 +227,34 @@ static const char * const gcc_parent_names_13[] = {static const struct parent_map gcc_parent_map_14[] = { {P_XO ,0 }, {P_GPLL0_OUT_MAIN ,1 }, - {P_GPLL4_OUT_AUX ,2 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_14[] = {"cxo" ,"gpll0_out_main" , -"gpll4_out_aux" ,"core_bi_pll_test_se" , };static const struct parent_map gcc_parent_map_15[] = { {P_XO ,0 }, - {P_GPLL0_OUT_AUX ,2 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_15[] = {"cxo" , -"gpll0_out_aux" ,"core_bi_pll_test_se" , };static const struct parent_map gcc_parent_map_16[] = { {P_XO ,0 }, {P_GPLL0_OUT_MAIN ,1 }, - {P_GPLL0_OUT_AUX ,2 }, {P_CORE_BI_PLL_TEST_SE ,7 }, };static const char *const gcc_parent_names_16[] = {"cxo" ,"gpll0_out_main" , -"gpll0_out_aux" ,"core_bi_pll_test_se" , };
drivers/clk/qcom/gpucc-sc7180.c +1 -6
@@ -21,8 +21,6 @@#define CX_GMU_CBCR_SLEEP_SHIFT 4#define CX_GMU_CBCR_WAKE_MASK 0xF#define CX_GMU_CBCR_WAKE_SHIFT 8 -#define CLK_DIS_WAIT_SHIFT 12 -#define CLK_DIS_WAIT_MASK (0xf << CLK_DIS_WAIT_SHIFT)enum {P_BI_TCXO ,
@@ -160,6 +158,7 @@ static struct clk_branch gpu_cc_cxo_clk = {static struct gdsc cx_gdsc = { .gdscr =0x106c , .gds_hw_ctrl =0x1540 , + .clk_dis_wait_val =8 , .pd = { .name ="cx_gdsc" , },
@@ -242,10 +241,6 @@ static int gpu_cc_sc7180_probe(struct platform_device *pdev) value =0xF <<CX_GMU_CBCR_WAKE_SHIFT |0xF <<CX_GMU_CBCR_SLEEP_SHIFT ;regmap_update_bits (regmap,0x1098 , mask, value); -/* Configure clk_dis_wait for gpu_cx_gdsc */ -regmap_update_bits (regmap,0x106c ,CLK_DIS_WAIT_MASK , -8 <<CLK_DIS_WAIT_SHIFT ); -return qcom_cc_really_probe (pdev, &gpu_cc_sc7180_desc, regmap); }
drivers/clk/qcom/gpucc-sdm845.c +1 -6
@@ -22,8 +22,6 @@#define CX_GMU_CBCR_SLEEP_SHIFT 4#define CX_GMU_CBCR_WAKE_MASK 0xf#define CX_GMU_CBCR_WAKE_SHIFT 8 -#define CLK_DIS_WAIT_SHIFT 12 -#define CLK_DIS_WAIT_MASK (0xf << CLK_DIS_WAIT_SHIFT)enum {P_BI_TCXO ,
@@ -121,6 +119,7 @@ static struct clk_branch gpu_cc_cxo_clk = {static struct gdsc gpu_cx_gdsc = { .gdscr =0x106c , .gds_hw_ctrl =0x1540 , + .clk_dis_wait_val =0x8 , .pd = { .name ="gpu_cx_gdsc" , },
@@ -193,10 +192,6 @@ static int gpu_cc_sdm845_probe(struct platform_device *pdev) value =0xf <<CX_GMU_CBCR_WAKE_SHIFT |0xf <<CX_GMU_CBCR_SLEEP_SHIFT ;regmap_update_bits (regmap,0x1098 , mask, value); -/* Configure clk_dis_wait for gpu_cx_gdsc */ -regmap_update_bits (regmap,0x106c ,CLK_DIS_WAIT_MASK , -8 <<CLK_DIS_WAIT_SHIFT ); -return qcom_cc_really_probe (pdev, &gpu_cc_sdm845_desc, regmap); }
drivers/clk/renesas/renesas-cpg-mssr.c +4 -4
@@ -911,9 +911,8 @@ static int cpg_mssr_resume_noirq(struct device *dev) }if (!i) -dev_warn (dev,"Failed to enable %s%u[0x%x]\n" , - priv->reg_layout ==CLK_REG_LAYOUT_RZ_A ? -"STB" :"SMSTP" , reg, oldval & mask); +dev_warn (dev,"Failed to enable SMSTP%u[0x%x]\n" , reg, + oldval & mask); }return 0 ;
@@ -957,7 +956,6 @@ static int __init cpg_mssr_common_init(struct device *dev, goto out_err; } - cpg_mssr_priv = priv; priv->num_core_clks = info->num_total_core_clks; priv->num_mod_clks = info->num_hw_mod_clks; priv->last_dt_core_clk = info->last_dt_core_clk;
@@ -987,6 +985,8 @@ static int __init cpg_mssr_common_init(struct device *dev,if (error) goto out_err; + cpg_mssr_priv = priv; +return 0 ; out_err:
drivers/dma/fsl-qdma.c +1 -1
@@ -805,7 +805,7 @@ fsl_qdma_irq_init(struct platform_device *pdev,int i;int cpu;int ret; -char irq_name[20 ]; +char irq_name[32 ]; fsl_qdma->error_irq =platform_get_irq_byname (pdev,"qdma-error" );
drivers/dma/sh/shdma.h +1 -1
@@ -25,7 +25,7 @@ struct sh_dmae_chan {const struct sh_dmae_slave_config *config;/* Slave DMA configuration */ int xmit_shift;/* log_2(bytes_per_xfer) */ void __iomem *base; -char dev_id[16 ];/* unique name per DMAC of channel */ +char dev_id[32 ];/* unique name per DMAC of channel */ int pm_error;dma_addr_t slave_addr; };
drivers/dma/ti/edma.c +10 -0
@@ -2462,6 +2462,11 @@ static int edma_probe(struct platform_device *pdev)if (irq >0 ) { irq_name =devm_kasprintf (dev,GFP_KERNEL ,"%s_ccint" ,dev_name (dev)); +if (!irq_name) { + ret = -ENOMEM ; + goto err_disable_pm; + } + ret =devm_request_irq (dev, irq, dma_irq_handler,0 , irq_name, ecc);if (ret) {
@@ -2478,6 +2483,11 @@ static int edma_probe(struct platform_device *pdev)if (irq >0 ) { irq_name =devm_kasprintf (dev,GFP_KERNEL ,"%s_ccerrint" ,dev_name (dev)); +if (!irq_name) { + ret = -ENOMEM ; + goto err_disable_pm; + } + ret =devm_request_irq (dev, irq, dma_ccerr_handler,0 , irq_name, ecc);if (ret) {
drivers/firewire/core-card.c +17 -1
@@ -429,7 +429,23 @@ static void bm_work(struct work_struct *work)*/ card->bm_generation = generation; -if (root_device ==NULL ) { +if (card->gap_count ==0 ) { +/* +* If self IDs have inconsistent gap counts, do a +* bus reset ASAP. The config rom read might never +* complete, so don't wait for it. However, still +* send a PHY configuration packet prior to the +* bus reset. The PHY configuration packet might +* fail, but 1394-2008 8.4.5.2 explicitly permits +* it in this case, so it should be safe to try. +*/ + new_root_id = local_id; +/* +* We must always send a bus reset if the gap count +* is inconsistent, so bypass the 5-reset limit. +*/ + card->bm_retries =0 ; + }else if (root_device ==NULL ) {/* * Either link_on is false, or we failed to read the * config rom. In either case, pick another root.
drivers/firmware/efi/arm-runtime.c +1 -1
@@ -107,7 +107,7 @@ static int __init arm_enable_runtime_services(void)efi_memory_desc_t *md;for_each_efi_memory_desc (md) { -int md_size = md->num_pages <<EFI_PAGE_SHIFT ; +u64 md_size = md->num_pages <<EFI_PAGE_SHIFT ;struct resource *res;if (!(md->attribute &EFI_MEMORY_SP ))
drivers/firmware/efi/efi-init.c +10 -9
@@ -141,15 +141,6 @@ static __init int is_usable_memory(efi_memory_desc_t *md)case EFI_BOOT_SERVICES_DATA :case EFI_CONVENTIONAL_MEMORY :case EFI_PERSISTENT_MEMORY : -/* -* Special purpose memory is 'soft reserved', which means it -* is set aside initially, but can be hotplugged back in or -* be assigned to the dax driver after boot. -*/ -if (efi_soft_reserve_enabled () && - (md->attribute &EFI_MEMORY_SP )) -return false; -/* * According to the spec, these regions are no longer reserved * after calling ExitBootServices(). However, we can only use
@@ -194,6 +185,16 @@ static __init void reserve_regions(void) size = npages <<PAGE_SHIFT ;if (is_memory (md)) { +/* +* Special purpose memory is 'soft reserved', which +* means it is set aside initially. Don't add a memblock +* for it now so that it can be hotplugged back in or +* be assigned to the dax driver after boot. +*/ +if (efi_soft_reserve_enabled () && + (md->attribute &EFI_MEMORY_SP )) +continue ; +early_init_dt_add_memory_arch (paddr, size);if (!is_usable_memory (md))
drivers/firmware/efi/riscv-runtime.c +1 -1
@@ -85,7 +85,7 @@ static int __init riscv_enable_runtime_services(void)efi_memory_desc_t *md;for_each_efi_memory_desc (md) { -int md_size = md->num_pages <<EFI_PAGE_SHIFT ; +u64 md_size = md->num_pages <<EFI_PAGE_SHIFT ;struct resource *res;if (!(md->attribute &EFI_MEMORY_SP ))
drivers/gpu/drm/amd/amdgpu/amdgpu.h +2 -0
@@ -1045,6 +1045,8 @@ struct amdgpu_device {bool in_s3;bool in_s4;bool in_s0ix; +/* indicate amdgpu suspension status */ +bool suspend_complete;atomic_t in_gpu_reset;enum pp_mp1_state mp1_state;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -4
@@ -2487,10 +2487,6 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)if (r) goto init_failed; - r =amdgpu_amdkfd_resume_iommu (adev); -if (r) - goto init_failed; - r =amdgpu_device_ip_hw_init_phase1 (adev);if (r) goto init_failed;
@@ -2529,6 +2525,10 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)if (!adev->gmc.xgmi.pending_reset)amdgpu_amdkfd_device_init (adev); + r =amdgpu_amdkfd_resume_iommu (adev); +if (r) + goto init_failed; +amdgpu_fru_get_product_info (adev); init_failed:
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2 -0
@@ -2252,6 +2252,7 @@ static int amdgpu_pmops_suspend(struct device *dev)struct drm_device *drm_dev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (drm_dev); + adev->suspend_complete = false;if (amdgpu_acpi_is_s0ix_active (adev)) adev->in_s0ix = true;else
@@ -2264,6 +2265,7 @@ static int amdgpu_pmops_suspend_noirq(struct device *dev)struct drm_device *drm_dev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (drm_dev); + adev->suspend_complete = true;if (amdgpu_acpi_should_gpu_reset (adev))return amdgpu_asic_reset (adev);
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +8 -0
@@ -3268,6 +3268,14 @@ static int gfx_v9_0_cp_gfx_start(struct amdgpu_device *adev)gfx_v9_0_cp_gfx_enable (adev, true); +/* Now only limit the quirk on the APU gfx9 series and already +* confirmed that the APU gfx10/gfx11 needn't such update. +*/ +if (adev->flags &AMD_IS_APU && + adev->in_s3 && !adev->suspend_complete) { +DRM_INFO (" Will skip the CSB packet resubmit\n" ); +return 0 ; + } r =amdgpu_ring_alloc (ring,gfx_v9_0_get_csb_size (adev) +4 +3 );if (r) {DRM_ERROR ("amdgpu: cp failed to lock ring (%d).\n" , r);
drivers/gpu/drm/amd/amdgpu/soc15.c +22 -0
@@ -1490,10 +1490,32 @@ static int soc15_common_suspend(void *handle)return soc15_common_hw_fini (adev); } +static bool soc15_need_reset_on_resume (struct amdgpu_device *adev) +{ +u32 sol_reg; + + sol_reg =RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_81); + +/* Will reset for the following suspend abort cases. +* 1) Only reset limit on APU side, dGPU hasn't checked yet. +* 2) S3 suspend abort and TOS already launched. +*/ +if (adev->flags &AMD_IS_APU && adev->in_s3 && + !adev->suspend_complete && + sol_reg) +return true; + +return false; +} +static int soc15_common_resume (void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; +if (soc15_need_reset_on_resume (adev)) { +dev_info (adev->dev,"S3 suspend abort case, let's reset ASIC.\n" ); +soc15_asic_reset (adev); + }return soc15_common_hw_init (adev); }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -0
@@ -2088,6 +2088,7 @@ static int dm_sw_fini(void *handle)if (adev->dm.dmub_srv) {dmub_srv_destroy (adev->dm.dmub_srv); +kfree (adev->dm.dmub_srv); adev->dm.dmub_srv =NULL ; }
drivers/gpu/drm/drm_syncobj.c +4 -2
@@ -1021,7 +1021,8 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,uint64_t *points;uint32_t signaled_count, i; -if (flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT ) +if (flags & (DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT | +DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ))lockdep_assert_none_held_once (); points =kmalloc_array (count,sizeof (*points),GFP_KERNEL );
@@ -1090,7 +1091,8 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,* fallthough and try a 0 timeout wait! */ -if (flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT ) { +if (flags & (DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT | +DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE )) {for (i =0 ; i < count; ++i)drm_syncobj_fence_add_wait (syncobjs[i], &entries[i]); }
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -2
@@ -571,8 +571,8 @@ static int i915_dmc_info(struct seq_file *m, void *unused)* reg for DC3CO debugging and validation, * but TGL DMC f/w is using DMC_DEBUG3 reg for DC3CO counter. */ -seq_printf (m,"DC3CO count: %d\n" , -intel_de_read (dev_priv,DMC_DEBUG3 )); +seq_printf (m,"DC3CO count: %d\n" ,intel_de_read (dev_priv,IS_DGFX (dev_priv) ? +DG1_DMC_DEBUG3 :TGL_DMC_DEBUG3 )); }else { dc5_reg =IS_BROXTON (dev_priv) ?BXT_DMC_DC3_DC5_COUNT :SKL_DMC_DC3_DC5_COUNT ;
drivers/gpu/drm/i915/i915_reg.h +2 -1
@@ -7841,7 +7841,8 @@ enum {#define TGL_DMC_DEBUG_DC6_COUNT _MMIO(0x101088)#define DG1_DMC_DEBUG_DC5_COUNT _MMIO(0x134154) -#define DMC_DEBUG3 _MMIO(0x101090) +#define TGL_DMC_DEBUG3 _MMIO(0x101090) +#define DG1_DMC_DEBUG3 _MMIO(0x13415c)/* Display Internal Timeout Register */ #define RM_TIMEOUT _MMIO(0x42060)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c +7 -1
@@ -154,11 +154,17 @@ shadow_fw_init(struct nvkm_bios *bios, const char *name)return (void *)fw; } +static void +shadow_fw_release (void *fw) +{ +release_firmware (fw); +} +static const struct nvbios_source shadow_fw = { .name ="firmware" , .init = shadow_fw_init, - .fini = (void (*)(void *))release_firmware, + .fini = shadow_fw_release, .read = shadow_fw_read, .rw = false, };
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c +1 -1
@@ -313,7 +313,7 @@ nv50_instobj_dtor(struct nvkm_memory *memory)struct nv50_instobj *iobj =nv50_instobj (memory);struct nvkm_instmem *imem = &iobj->imem->base;struct nvkm_vma *bar; -void *map = map; +void *map;mutex_lock (&imem->mutex);if (likely (iobj->lru.next))
drivers/gpu/drm/ttm/ttm_pool.c +1 -1
@@ -384,7 +384,7 @@ static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt,enum ttm_caching caching, pgoff_t start_page, pgoff_t end_page) { - struct page **pages = tt->pages; + struct page **pages = &tt->pages[start_page];unsigned int order;pgoff_t i, nr;
drivers/hwmon/coretemp.c +1 -1
@@ -40,7 +40,7 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius");#define PKG_SYSFS_ATTR_NO 1/* Sysfs attribute for package temp */ #define BASE_SYSFS_ATTR_NO 2/* Sysfs Base attr no for coretemp */ -#define NUM_REAL_CORES 128/* Number of Real cores per cpu */ +#define NUM_REAL_CORES 512/* Number of Real cores per cpu */ #define CORETEMP_NAME_LENGTH 28/* String Length of attrs */ #define MAX_CORE_ATTRS 4/* Maximum no of basic attrs */ #define TOTAL_ATTRS (MAX_CORE_ATTRS + 1)
drivers/i2c/busses/i2c-imx.c +78 -19
183 lines not on this page · raw message
drivers/infiniband/hw/bnxt_re/ib_verbs.c +2 -3
@@ -1705,7 +1705,7 @@ int bnxt_re_modify_srq(struct ib_srq *ib_srq, struct ib_srq_attr *srq_attr,switch (srq_attr_mask) {case IB_SRQ_MAX_WR :/* SRQ resize is not supported */ -break ; +return -EINVAL ;case IB_SRQ_LIMIT :/* Change the SRQ threshold */ if (srq_attr->srq_limit > srq->qplib_srq.max_wqe)
@@ -1720,13 +1720,12 @@ int bnxt_re_modify_srq(struct ib_srq *ib_srq, struct ib_srq_attr *srq_attr,/* On success, update the shadow */ srq->srq_limit = srq_attr->srq_limit;/* No need to Build and send response back to udata */ -break ; +return 0 ;default :ibdev_err (&rdev->ibdev,"Unsupported srq_attr_mask 0x%x" , srq_attr_mask);return -EINVAL ; } -return 0 ; }int bnxt_re_query_srq (struct ib_srq *ib_srq,struct ib_srq_attr *srq_attr)
drivers/infiniband/hw/hfi1/pio.c +5 -1
@@ -2089,7 +2089,7 @@ int init_credit_return(struct hfi1_devdata *dd)"Unable to allocate credit return DMA range for NUMA %d\n" , i); ret = -ENOMEM ; - goto done; + goto free_cr_base; } }set_dev_node (&dd->pcidev->dev, dd->node);
@@ -2097,6 +2097,10 @@ int init_credit_return(struct hfi1_devdata *dd) ret =0 ; done:return ret; + +free_cr_base: +free_credit_return (dd); + goto done; }void free_credit_return (struct hfi1_devdata *dd)
drivers/infiniband/hw/hfi1/sdma.c +1 -1
@@ -3158,7 +3158,7 @@ int _pad_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx) {int rval =0 ; -if ((unlikely (tx->num_desc +1 == tx->desc_limit))) { +if ((unlikely (tx->num_desc == tx->desc_limit))) { rval =_extend_sdma_tx_descs (dd, tx);if (rval) {__sdma_txclean (dd, tx);
drivers/infiniband/hw/irdma/defs.h +1 -0
@@ -345,6 +345,7 @@ enum irdma_cqp_op_type {#define IRDMA_AE_LLP_TOO_MANY_KEEPALIVE_RETRIES 0x050b#define IRDMA_AE_LLP_DOUBT_REACHABILITY 0x050c#define IRDMA_AE_LLP_CONNECTION_ESTABLISHED 0x050e +#define IRDMA_AE_LLP_TOO_MANY_RNRS 0x050f#define IRDMA_AE_RESOURCE_EXHAUSTION 0x0520#define IRDMA_AE_RESET_SENT 0x0601#define IRDMA_AE_TERMINATE_SENT 0x0602
drivers/infiniband/hw/irdma/hw.c +8 -0
@@ -379,6 +379,7 @@ static void irdma_process_aeq(struct irdma_pci_f *rf)case IRDMA_AE_LLP_TOO_MANY_RETRIES :case IRDMA_AE_LCE_QP_CATASTROPHIC :case IRDMA_AE_LCE_FUNCTION_CATASTROPHIC : +case IRDMA_AE_LLP_TOO_MANY_RNRS :case IRDMA_AE_LCE_CQ_CATASTROPHIC :case IRDMA_AE_UDA_XMIT_DGRAM_TOO_LONG :default :
@@ -562,6 +563,13 @@ static void irdma_destroy_irq(struct irdma_pci_f *rf, dev->irq_ops->irdma_dis_irq (dev, msix_vec->idx);irq_set_affinity_hint (msix_vec->irq,NULL );free_irq (msix_vec->irq, dev_id); +if (rf == dev_id) { +tasklet_kill (&rf->dpc_tasklet); + }else { +struct irdma_ceq *iwceq = (struct irdma_ceq *)dev_id; + +tasklet_kill (&iwceq->dpc_tasklet); + } }/**
drivers/infiniband/hw/irdma/verbs.c +5 -4
@@ -749,7 +749,9 @@ static int irdma_validate_qp_attrs(struct ib_qp_init_attr *init_attr,if (init_attr->cap.max_inline_data > uk_attrs->max_hw_inline || init_attr->cap.max_send_sge > uk_attrs->max_hw_wq_frags || - init_attr->cap.max_recv_sge > uk_attrs->max_hw_wq_frags) + init_attr->cap.max_recv_sge > uk_attrs->max_hw_wq_frags || + init_attr->cap.max_send_wr > uk_attrs->max_hw_wq_quanta || + init_attr->cap.max_recv_wr > uk_attrs->max_hw_rq_quanta)return -EINVAL ;if (rdma_protocol_roce (&iwdev->ibdev,1 )) {
@@ -2074,9 +2076,8 @@ static int irdma_create_cq(struct ib_cq *ibcq, info.cq_base_pa = iwcq->kmem.pa; } -if (dev->hw_attrs.uk_attrs.hw_rev >=IRDMA_GEN_2 ) - info.shadow_read_threshold =min (info.cq_uk_init_info.cq_size /2 , - (u32 )IRDMA_MAX_CQ_READ_THRESH ); + info.shadow_read_threshold =min (info.cq_uk_init_info.cq_size /2 , + (u32 )IRDMA_MAX_CQ_READ_THRESH );if (irdma_sc_cq_init (cq, &info)) {ibdev_dbg (&iwdev->ibdev,"VERBS: init cq fail\n" );
drivers/infiniband/hw/qedr/verbs.c +10 -1
@@ -1888,8 +1888,17 @@ static int qedr_create_user_qp(struct qedr_dev *dev,/* RQ - read access only (0) */ rc =qedr_init_user_queue (udata, dev, &qp->urq, ureq.rq_addr, ureq.rq_len, true,0 , alloc_and_init); -if (rc) +if (rc) { +ib_umem_release (qp->usq.umem); + qp->usq.umem =NULL ; +if (rdma_protocol_roce (&dev->ibdev,1 )) { +qedr_free_pbl (dev, &qp->usq.pbl_info, + qp->usq.pbl_tbl); + }else { +kfree (qp->usq.pbl_tbl); + }return rc; + } }memset (&in_params,0 ,sizeof (in_params));
drivers/infiniband/sw/siw/siw_cm.c +0 -1
@@ -1504,7 +1504,6 @@ int siw_connect(struct iw_cm_id *id, struct iw_cm_conn_param *params) cep->cm_id =NULL ; id->rem_ref (id); -siw_cep_put (cep); qp->cep =NULL ;siw_cep_put (cep);
drivers/infiniband/sw/siw/siw_verbs.c +1 -1
@@ -1492,7 +1492,7 @@ int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle,if (pbl->max_buf < num_sle) {siw_dbg_mem (mem,"too many SGE's: %d > %d\n" , - mem->pbl->max_buf, num_sle); + num_sle, pbl->max_buf);return -ENOMEM ; }for_each_sg (sl, slp, num_sle, i) {
drivers/infiniband/ulp/srpt/ib_srpt.c +11 -6
@@ -79,12 +79,16 @@ module_param(srpt_srq_size, int, 0444);MODULE_PARM_DESC (srpt_srq_size,"Shared receive queue (SRQ) size." ); +static int srpt_set_u64_x (const char *buffer,const struct kernel_param *kp) +{ +return kstrtou64 (buffer,16 , (u64 *)kp->arg); +}static int srpt_get_u64_x (char *buffer,const struct kernel_param *kp) {return sprintf (buffer,"0x%016llx\n" , *(u64 *)kp->arg); } -module_param_call (srpt_service_guid,NULL , srpt_get_u64_x, &srpt_service_guid, -0444 ); +module_param_call (srpt_service_guid, srpt_set_u64_x, srpt_get_u64_x, + &srpt_service_guid,0444 );MODULE_PARM_DESC (srpt_service_guid,"Using this value for ioc_guid, id_ext, and cm_listen_id instead of using the node_guid of the first HCA." );
@@ -210,10 +214,12 @@ static const char *get_ch_state_name(enum rdma_ch_state s)/** * srpt_qp_event - QP event callback function * @event: Description of the event that occurred. -* @ch: SRPT RDMA channel. +* @ptr: SRPT RDMA channel. */ -static void srpt_qp_event (struct ib_event *event,struct srpt_rdma_ch *ch) +static void srpt_qp_event (struct ib_event *event,void *ptr) { +struct srpt_rdma_ch *ch = ptr; +pr_debug ("QP event %d on ch=%p sess_name=%s-%d state=%s\n" , event->event, ch, ch->sess_name, ch->qp->qp_num,get_ch_state_name (ch->state));
@@ -1807,8 +1813,7 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) ch->cq_size = ch->rq_size + sq_size; qp_init->qp_context = (void *)ch; - qp_init->event_handler - = (void (*)(struct ib_event *,void *))srpt_qp_event; + qp_init->event_handler = srpt_qp_event; qp_init->send_cq = ch->cq; qp_init->recv_cq = ch->cq; qp_init->sq_sig_type =IB_SIGNAL_REQ_WR ;
drivers/input/joystick/xpad.c +2 -0
@@ -276,6 +276,7 @@ static const struct xpad_device { { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 }, { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 }, { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 }, + { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 }, { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 }, { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 }, { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
@@ -464,6 +465,7 @@ static const struct usb_device_id xpad_table[] = {XPAD_XBOX360_VENDOR (0x15e4 ),/* Numark X-Box 360 controllers */ XPAD_XBOX360_VENDOR (0x162e ),/* Joytech X-Box 360 controllers */ XPAD_XBOX360_VENDOR (0x1689 ),/* Razer Onza */ +XPAD_XBOX360_VENDOR (0x17ef ),/* Lenovo */ XPAD_XBOX360_VENDOR (0x1949 ),/* Amazon controllers */ XPAD_XBOX360_VENDOR (0x1bad ),/* Harminix Rock Band Guitar and Drums */ XPAD_XBOX360_VENDOR(0x20d6), /* PowerA Controllers */
drivers/input/misc/iqs269a.c +132 -203
460 lines not on this page · raw message
drivers/net/ethernet/intel/igb/igb_main.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +5 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +0 -20
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/am65-cpsw-nuss.c +20 -9
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/sta.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/nvme/host/fc.c +6 -41
47 lines not on this page · raw message
drivers/nvme/target/fc.c +75 -56
131 lines not on this page · raw message
drivers/pci/controller/dwc/pcie-designware-ep.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/platform/x86/touchscreen_dmi.c +37 -2
Lines of this file are not shown. View the raw message.
drivers/tty/serial/amba-pl011.c +30 -30
60 lines not on this page · raw message
drivers/usb/host/xhci-hub.c +114 -114
228 lines not on this page · raw message
drivers/video/fbdev/savage/savagefb_driver.c +3 -0
Lines of this file are not shown. View the raw message.
fs/cifs/smb2ops.c +25 -29
54 lines not on this page · raw message
fs/cifs/smb2pdu.c +65 -48
113 lines not on this page · raw message
fs/ext4/extents.c +70 -41
111 lines not on this page · raw message
fs/ext4/mballoc.c +48 -22
70 lines not on this page · raw message
fs/f2fs/gc.c +25 -16
41 lines not on this page · raw message
fs/zonefs/super.c +39 -29
68 lines not on this page · raw message
include/dt-bindings/clock/imx8mp-clock.h +9 -1
Lines of this file are not shown. View the raw message.
include/linux/pm.h +51 -29
80 lines not on this page · raw message
kernel/bpf/helpers.c +44 -32
76 lines not on this page · raw message
net/netfilter/nf_conntrack_proto_sctp.c +1 -1
Lines of this file are not shown. View the raw message.
net/netfilter/nf_flow_table_core.c +17 -24
41 lines not on this page · raw message
net/sched/Kconfig +0 -42
42 lines not on this page · raw message
net/sched/sch_atm.c deleted +0 -710
710 lines not on this page · raw message
net/sched/sch_cbq.c deleted +0 -1817
1,817 lines not on this page · raw message
net/sched/sch_dsmark.c deleted +0 -522
522 lines not on this page · raw message
tools/perf/trace/beauty/include/linux/socket.h +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/vrf-xfrm-tests.sh +16 -16
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.