Linux 6.16.8
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.16.8 kernel.
All users of the 6.16 kernel series must upgrade.
The updated 6.16.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.16.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml | 2 Documentation/netlink/specs/mptcp_pm.yaml | 2 Documentation/networking/can.rst | 2 Documentation/networking/mptcp.rst | 8 Makefile | 2 arch/arm64/kernel/machine_kexec_file.c | 2 arch/s390/kernel/kexec_elf.c | 2 arch/s390/kernel/kexec_image.c | 2 arch/s390/kernel/machine_kexec_file.c | 6 arch/s390/kernel/perf_cpum_cf.c | 4 arch/s390/kernel/perf_pai_crypto.c | 4 arch/s390/kernel/perf_pai_ext.c | 2 arch/x86/kernel/cpu/topology_amd.c | 25 block/fops.c | 13 drivers/cpufreq/amd-pstate.c | 19 drivers/cpufreq/intel_pstate.c | 4 drivers/dma/dw/rzn1-dmamux.c | 15 drivers/dma/idxd/init.c | 39 - drivers/dma/qcom/bam_dma.c | 8 drivers/dma/ti/edma.c | 4 drivers/edac/altera_edac.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 11 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 2 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 4 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 31 - drivers/gpu/drm/amd/amdgpu/psp_v11_0_8.c | 25 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 18 drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 25 drivers/gpu/drm/amd/amdgpu/psp_v13_0_4.c | 25 drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 25 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 12 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 64 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 106 ++-- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 1 drivers/gpu/drm/amd/display/dc/dc.h | 1 drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c | 74 +- drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 115 ---- drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_init.c | 3 drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c | 3 drivers/gpu/drm/amd/display/dc/inc/hw/pg_cntl.h | 1 drivers/gpu/drm/amd/display/dc/pg/dcn35/dcn35_pg_cntl.c | 78 +- drivers/gpu/drm/display/drm_dp_helper.c | 42 + drivers/gpu/drm/drm_edid.c | 232 ++++---- drivers/gpu/drm/i915/display/intel_display_power.c | 6 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 11 drivers/gpu/drm/panthor/panthor_drv.c | 2 drivers/gpu/drm/xe/tests/xe_bo.c | 2 drivers/gpu/drm/xe/tests/xe_dma_buf.c | 10 drivers/gpu/drm/xe/xe_bo.c | 16 drivers/gpu/drm/xe/xe_bo.h | 2 drivers/gpu/drm/xe/xe_device_types.h | 6 drivers/gpu/drm/xe/xe_dma_buf.c | 2 drivers/gpu/drm/xe/xe_exec.c | 9 drivers/gpu/drm/xe/xe_pm.c | 42 + drivers/gpu/drm/xe/xe_survivability_mode.c | 3 drivers/gpu/drm/xe/xe_vm.c | 42 + drivers/gpu/drm/xe/xe_vm.h | 2 drivers/gpu/drm/xe/xe_vm_types.h | 5 drivers/i2c/busses/i2c-i801.c | 2 drivers/i2c/busses/i2c-rtl9300.c | 22 drivers/input/joystick/xpad.c | 2 drivers/input/misc/iqs7222.c | 3 drivers/input/serio/i8042-acpipnpio.h | 14 drivers/iommu/intel/cache.c | 5 drivers/iommu/intel/iommu.c | 263 ++++++---- drivers/iommu/intel/iommu.h | 12 drivers/iommu/intel/nested.c | 4 drivers/iommu/intel/svm.c | 1 drivers/irqchip/irq-mvebu-gicp.c | 2 drivers/md/md.c | 6 drivers/mtd/nand/raw/atmel/nand-controller.c | 16 drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c | 4 drivers/mtd/nand/raw/stm32_fmc2_nand.c | 46 - drivers/mtd/nand/spi/core.c | 18 drivers/mtd/nand/spi/winbond.c | 80 ++- drivers/net/can/xilinx_can.c | 16 drivers/net/dsa/b53/b53_common.c | 17 drivers/net/ethernet/freescale/fec_main.c | 3 drivers/net/ethernet/intel/i40e/i40e_main.c | 2 drivers/net/ethernet/intel/igb/igb_ethtool.c | 5 drivers/net/ethernet/intel/igb/igb_main.c | 3 drivers/net/ethernet/ti/icssg/icssg_prueth.c | 20 drivers/net/ethernet/wangxun/libwx/wx_hw.c | 4 drivers/net/macsec.c | 1 drivers/net/phy/phy.c | 12 drivers/net/phy/phylink.c | 28 - drivers/net/wireless/ath/ath12k/core.h | 1 drivers/net/wireless/ath/ath12k/dp_mon.c | 22 drivers/net/wireless/ath/ath12k/dp_rx.c | 11 drivers/net/wireless/ath/ath12k/hw.c | 55 ++ drivers/net/wireless/ath/ath12k/hw.h | 2 drivers/net/wireless/ath/ath12k/mac.c | 127 ++-- drivers/net/wireless/ath/ath12k/peer.c | 2 drivers/net/wireless/ath/ath12k/peer.h | 28 + drivers/net/wireless/ath/ath12k/wmi.c | 58 ++ drivers/net/wireless/ath/ath12k/wmi.h | 16 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 26 drivers/pci/controller/pci-mvebu.c | 21 drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 4 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 25 drivers/phy/tegra/xusb-tegra210.c | 6 drivers/phy/ti/phy-omap-usb2.c | 13 drivers/phy/ti/phy-ti-pipe3.c | 13 drivers/regulator/sy7636a-regulator.c | 7 drivers/tty/hvc/hvc_console.c | 6 drivers/tty/serial/sc16is7xx.c | 14 drivers/usb/gadget/function/f_midi2.c | 11 drivers/usb/gadget/udc/dummy_hcd.c | 8 drivers/usb/host/xhci-dbgcap.c | 94 ++- drivers/usb/host/xhci-mem.c | 2 drivers/usb/serial/option.c | 17 drivers/usb/typec/tcpm/tcpm.c | 12 fs/btrfs/extent_io.c | 73 ++ fs/btrfs/inode.c | 12 fs/btrfs/qgroup.c | 6 fs/ceph/addr.c | 9 fs/ceph/debugfs.c | 14 fs/ceph/dir.c | 17 fs/ceph/file.c | 24 fs/ceph/inode.c | 88 ++- fs/ceph/mds_client.c | 172 +++--- fs/ceph/mds_client.h | 18 fs/coredump.c | 4 fs/erofs/data.c | 8 fs/erofs/fileio.c | 2 fs/erofs/fscache.c | 2 fs/erofs/inode.c | 8 fs/erofs/internal.h | 2 fs/erofs/super.c | 16 fs/erofs/zdata.c | 17 fs/erofs/zmap.c | 98 +-- fs/exec.c | 2 fs/fhandle.c | 8 fs/fuse/dev.c | 2 fs/fuse/file.c | 5 fs/fuse/passthrough.c | 5 fs/kernfs/file.c | 58 +- fs/nfs/client.c | 2 fs/nfs/file.c | 7 fs/nfs/flexfilelayout/flexfilelayout.c | 21 fs/nfs/inode.c | 4 fs/nfs/internal.h | 10 fs/nfs/io.c | 13 fs/nfs/localio.c | 12 fs/nfs/nfs42proc.c | 2 fs/nfs/nfs4file.c | 2 fs/nfs/nfs4proc.c | 7 fs/nfs/write.c | 1 fs/ocfs2/extent_map.c | 10 fs/proc/generic.c | 3 fs/resctrl/ctrlmondata.c | 2 fs/resctrl/internal.h | 4 fs/resctrl/monitor.c | 6 fs/smb/client/cifsglob.h | 13 fs/smb/client/file.c | 18 fs/smb/client/inode.c | 86 ++- fs/smb/client/smb2glob.h | 3 fs/smb/client/smb2inode.c | 204 ++++++- fs/smb/client/smb2ops.c | 32 + fs/smb/client/smb2proto.h | 3 fs/smb/client/trace.h | 9 include/drm/display/drm_dp_helper.h | 6 include/drm/drm_connector.h | 4 include/drm/drm_edid.h | 8 include/linux/compiler-clang.h | 29 - include/linux/energy_model.h | 10 include/linux/fs.h | 3 include/linux/kasan.h | 6 include/linux/mtd/spinand.h | 8 include/net/netfilter/nf_tables.h | 11 include/net/netfilter/nf_tables_core.h | 49 - include/net/netns/nftables.h | 1 include/uapi/linux/raid/md_p.h | 2 io_uring/rw.c | 3 kernel/bpf/Makefile | 1 kernel/bpf/core.c | 16 kernel/bpf/cpumap.c | 4 kernel/bpf/crypto.c | 2 kernel/bpf/helpers.c | 7 kernel/bpf/rqspinlock.c | 2 kernel/dma/debug.c | 48 + kernel/dma/debug.h | 20 kernel/dma/mapping.c | 4 kernel/events/core.c | 1 kernel/power/energy_model.c | 29 - kernel/power/hibernate.c | 1 kernel/time/hrtimer.c | 11 kernel/trace/fgraph.c | 3 kernel/trace/trace.c | 10 kernel/trace/trace_osnoise.c | 3 mm/damon/core.c | 4 mm/damon/lru_sort.c | 5 mm/damon/reclaim.c | 5 mm/damon/sysfs.c | 14 mm/hugetlb.c | 9 mm/kasan/shadow.c | 31 - mm/khugepaged.c | 4 mm/memory-failure.c | 20 mm/vmalloc.c | 8 net/bluetooth/hci_conn.c | 14 net/bluetooth/hci_event.c | 7 net/bluetooth/iso.c | 2 net/bridge/br.c | 7 net/can/j1939/bus.c | 5 net/can/j1939/j1939-priv.h | 1 net/can/j1939/main.c | 3 net/can/j1939/socket.c | 52 + net/ceph/messenger.c | 7 net/core/dev_ioctl.c | 22 net/hsr/hsr_device.c | 28 - net/hsr/hsr_main.c | 4 net/hsr/hsr_main.h | 3 net/ipv4/ip_tunnel_core.c | 6 net/ipv4/tcp_bpf.c | 5 net/mptcp/sockopt.c | 11 net/netfilter/nf_tables_api.c | 123 +++- net/netfilter/nft_dynset.c | 5 net/netfilter/nft_lookup.c | 67 +- net/netfilter/nft_objref.c | 5 net/netfilter/nft_set_bitmap.c | 14 net/netfilter/nft_set_hash.c | 54 -- net/netfilter/nft_set_pipapo.c | 214 ++------ net/netfilter/nft_set_pipapo_avx2.c | 27 - net/netfilter/nft_set_rbtree.c | 46 - net/netlink/genetlink.c | 3 net/sunrpc/sched.c | 2 net/sunrpc/xprtsock.c | 6 net/xdp/xsk.c | 113 +++- net/xdp/xsk_queue.h | 12 samples/ftrace/ftrace-direct-modify.c | 2 tools/testing/selftests/net/can/config | 3 234 files changed, 3151 insertions(+), 1712 deletions(-)
Alan Stern (1):
USB: gadget: dummy-hcd: Fix locking bug in RT-enabled kernels
Alex Deucher (3):
Revert "drm/amdgpu: Add more checks to PSP mailbox" drm/amdgpu: fix a memory leak in fence cleanup when unloading drm/amd/display: use udelay rather than fsleep
Alex Markuze (2):
ceph: fix race condition validating r_parent before applying state
ceph: fix race condition where r_parent becomes stale before sending message
Alex Tran (1):
docs: networking: can: change bcm_msg_head frames member to support flexible array
Alexander Sverdlin (1):
mtd: nand: raw: atmel: Respect tAR, tCLR in read setup timing
Alok Tiwari (1):
genetlink: fix genl_bind() invoking bind() after -EPERM
Amir Goldstein (2):
fhandle: use more consistent rules for decoding file handle from userns
fuse: do not allow mapping a non-regular backing file
Anders Roxell (1):
dmaengine: ti: edma: Fix memory allocation size for queue_priority_map
Andreas Kemnade (1):
regulator: sy7636a: fix lifecycle of power good gpio
Anssi Hannula (1):
can: xilinx_can: xcan_write_frame(): fix use-after-free of transmitted SKB
Antheas Kapenekakis (1):
Input: xpad - add support for Flydigi Apex 5
Antoine Tenart (1):
tunnels: reset the GSO metadata before reusing the skb
Baochen Qiang (1):
dma-debug: don't enforce dma mapping check on noncoherent allocations
Boris Burkov (2):
btrfs: fix squota compressed stats leak
btrfs: use readahead_expand() on compressed extents
Breno Leitao (2):
arm64: kexec: initialize kexec_buf struct in load_other_segments()
s390: kexec: initialize kexec_buf struct
Carolina Jubran (1):
net: dev_ioctl: take ops lock in hwtstamp lower paths
Chen Ridong (1):
kernfs: Fix UAF in polling when open file is released
Chia-I Wu (1):
drm/panthor: validate group queue count
Chiasheng Lee (1):
i2c: i801: Hide Intel Birch Stream SoC TCO WDT
Christian Brauner (1):
coredump: don't pointlessly check and spew warnings
Christoffer Sandberg (1):
Input: i8042 - add TUXEDO InfinityBook Pro Gen10 AMD to i8042 quirk table
Christoph Hellwig (2):
fs: add a FMODE_ flag to indicate IOCB_HAS_METADATA availability
block: don't silently ignore metadata for sync read/write
Christophe JAILLET (1):
mtd: rawnand: nuvoton: Fix an error handling path in ma35_nand_chips_init()
Christophe Kerello (2):
mtd: rawnand: stm32_fmc2: avoid overlapping mappings on ECC buffer
mtd: rawnand: stm32_fmc2: fix ECC overwrite
Dan Carpenter (2):
irqchip/mvebu-gicp: Fix an IS_ERR() vs NULL check in probe()
dmaengine: idxd: Fix double free in idxd_setup_wqs()
Daniel Borkmann (1):
bpf: Fix out-of-bounds dynptr write in bpf_crypto_crypt
David Rosca (2):
drm/amdgpu/vcn: Allow limiting ctx to instance 0 for AV1 at any time drm/amdgpu/vcn4: Fix IB parsing with multiple engine info packages
Davide Caratti (1):
selftests: can: enable CONFIG_CAN_VCAN as a module
Edward Adam Davis (1):
fuse: Block access to folio overlimit
Fabian Vogt (1):
tty: hvc_console: Call hvc_kick in hvc_write unconditionally
Fabio Porcedda (2):
USB: serial: option: add Telit Cinterion FN990A w/audio compositions
USB: serial: option: add Telit Cinterion LE910C4-WWX new compositions
Fangzhi Zuo (1):
drm/amd/display: Disable DPCD Probe Quirk
Florian Westphal (11):
netfilter: nft_set_bitmap: fix lockdep splat due to missing annotation
netfilter: nft_set_pipapo: remove unused arguments
netfilter: nft_set: remove one argument from lookup and update functions
netfilter: nft_set_pipapo: merge pipapo_get/lookup
netfilter: nft_set_pipapo: don't return bogus extension pointer
netfilter: nft_set_pipapo: don't check genbit from packetpath lookups
netfilter: nft_set_rbtree: continue traversal if element is inactive
netfilter: nf_tables: place base_seq in struct net
netfilter: nf_tables: make nft_set_do_lookup available unconditionally
netfilter: nf_tables: restart set lookup on base_seq change
netfilter: nft_set_pipapo: fix null deref for empty set
Gao Xiang (4):
erofs: get rid of {get,put}_page() for ztailpacking data
erofs: remove need_kmap in erofs_read_metabuf()
erofs: unify meta buffers in z_erofs_fill_inode()
erofs: fix invalid algorithm for encoded extents
Gautham R. Shenoy (1):
cpufreq/amd-pstate: Fix setting of CPPC.min_perf in active mode for performance governor
Geoffrey McRae (1):
drm/amd/display: remove oem i2c adapter on finish
Greg Kroah-Hartman (1):
Linux 6.16.8
Guenter Roeck (1):
trace/fgraph: Fix error handling
Hangbin Liu (3):
hsr: use rtnl lock when iterating over ports
hsr: use hsr_for_each_port_rtnl in hsr_port_get_hsr
hsr: hold rcu and dev lock for hsr_get_port_ndev
Hugo Villeneuve (1):
serial: sc16is7xx: fix bug in flow control levels init
Ilya Dryomov (1):
libceph: fix invalid accesses to ceph_connection_v1_info
Imre Deak (3):
drm/edid: Define the quirks in an enum list
drm/edid: Add support for quirks visible to DRM core and drivers drm/dp: Add an EDID quirk for the DPCD register access probe
Jani Nikula (1):
drm/i915/power: fix size for for_each_set_bit() in abox iteration
Jason Gunthorpe (3):
iommu/vt-d: Split intel_iommu_domain_alloc_paging_flags() iommu/vt-d: Create unique domain ops for each stage iommu/vt-d: Split paging_domain_compatible()
Jeff LaBundy (1):
Input: iqs7222 - avoid enabling unused interrupts
Jeongjun Park (1):
mm/hugetlb: add missing hugetlb_lock in __unmap_hugepage_range()
Jesper Dangaard Brouer (1):
bpf, cpumap: Disable page_pool direct xdp_return need larger scope
Jiawen Wu (1):
net: libwx: fix to enable RSS
Johan Hovold (4):
drm/mediatek: fix potential OF node use-after-free
phy: tegra: xusb: fix device and OF node leak at probe
phy: ti: omap-usb2: fix device leak at unbind
phy: ti-pipe3: fix device leak at unbind
Johannes Berg (1):
wifi: iwlwifi: fix 130/1030 configs
Jonas Gorski (1):
net: dsa: b53: fix ageing time for BCM53101
Jonas Jelonek (3):
i2c: rtl9300: fix channel number bound check
i2c: rtl9300: ensure data length is within supported range
i2c: rtl9300: remove broken SMBus Quick operation support
Jonathan Curley (1):
NFSv4/flexfiles: Fix layout merge mirror check.
Justin Worrell (1):
SUNRPC: call xs_sock_process_cmsg for all cmsg
K Prateek Nayak (1):
x86/cpu/topology: Always try cpu_parse_topology_ext() on AMD/Hygon
KaFai Wan (1):
bpf: Allow fall back to interpreter for programs with stack size <= 512
Kan Liang (1):
perf: Fix the POLL_HUP delivery breakage
Klaus Kudielka (1):
PCI: mvebu: Fix use of for_each_of_range() iterator
Kohei Enju (1):
igb: fix link test skipping when interface is admin down
Krister Johansen (1):
mptcp: sockopt: make sync_socket_options propagate SOCK_KEEPOPEN
Krzysztof Kozlowski (1):
dt-bindings: serial: brcm,bcm7271-uart: Constrain clocks
Kumar Kartikeya Dwivedi (1):
rqspinlock: Choose trylock fallback for NMI waiters
Kuniyuki Iwashima (1):
tcp_bpf: Call sk_msg_free() when tcp_bpf_send_verdict() fails to allocate psock->cork.
Kyle Meyer (1):
mm/memory-failure: fix redundant updates for already poisoned pages
Lu Baolu (1):
iommu/vt-d: Make iotlb_sync_map a static property of dmar_domain
Luiz Augusto von Dentz (3):
Bluetooth: hci_conn: Fix not cleaning up Broadcaster/Broadcast Source
Bluetooth: hci_conn: Fix running bis_cleanup for hci_conn->type PA_LINK
Bluetooth: ISO: Fix getname not returning broadcast fields
Luo Gengkun (1):
tracing: Fix tracing_marker may trigger page fault during preempt_disable
Maciej Fijalkowski (1):
xsk: Fix immature cq descriptor production
Mario Limonciello (1):
drm/amd/display: Destroy cached state in complete() callback
Mario Limonciello (AMD) (2):
cpufreq/amd-pstate: Fix a regression leading to EPP 0 after resume drm/amd/display: Drop dm_prepare_suspend() and dm_complete()
Mark Tinguely (1):
ocfs2: fix recursive semaphore deadlock in fiemap call
Mathias Nyman (3):
xhci: dbc: decouple endpoint allocation from initialization
xhci: dbc: Fix full DbC transfer ring after several reconnects
xhci: fix memory leak regression when freeing xhci vdev devices depth first
Matthieu Baerts (NGI0) (2):
doc: mptcp: net.mptcp.pm_type is deprecated
netlink: specs: mptcp: fix if-idx attribute type
Max Kellermann (2):
ceph: always call ceph_shift_unused_folios_left()
ceph: fix crash after fscrypt_encrypt_pagecache_blocks() error
Miaohe Lin (1):
mm/memory-failure: fix VM_BUG_ON_PAGE(PagePoisoned(page)) when unpoison memory
Miaoqian Lin (1):
dmaengine: dw: dmamux: Fix device reference leak in rzn1_dmamux_route_allocate
Miaoqing Pan (2):
wifi: ath12k: Fix missing station power save configuration
wifi: ath12k: fix WMI TLV header misalignment
Michal Schmidt (1):
i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path
Michal Wajdeczko (1):
drm/xe/configfs: Don't touch survivability_mode on fini
Miklos Szeredi (2):
fuse: check if copy_file_range() returns larger than requested size
fuse: prevent overflow in copy_file_range return value
Miquel Raynal (2):
mtd: spinand: Add a ->configure_chip() hook
mtd: spinand: winbond: Enable high-speed modes on w25n0xjwNathan Chancellor (1):
compiler-clang.h: define __SANITIZE_*__ macros only when undefined
Oleksij Rempel (1):
net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups
Omar Sandoval (1):
btrfs: fix subvolume deletion lockup caused by inodes xarray race
Ovidiu Bunea (1):
drm/amd/display: Correct sequences and delays for DCN35 PG & RCG
Paolo Abeni (1):
Revert "net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups"
Paulo Alcantara (2):
smb: client: fix compound alignment with encryption
smb: client: fix data loss due to broken rename(2)
Peilin Ye (1):
bpf: Tell memcg to use allow_spinning=false path in bpf_timer_init()
Pengyu Luo (1):
phy: qualcomm: phy-qcom-eusb2-repeater: fix override properties
Petr Machata (1):
net: bridge: Bounce invalid boolopts
Phil Sutter (1):
netfilter: nf_tables: Reintroduce shortened deletion notifications
Pratap Nirujogi (1):
drm/amd/amdgpu: Declare isp firmware binary file
Pu Lehui (1):
tracing: Silence warning when chunk allocation fails in trace_pid_write
Qu Wenruo (1):
btrfs: fix corruption reading compressed range when block size is smaller than page size
Quanmin Yan (2):
mm/damon/lru_sort: avoid divide-by-zero in damon_lru_sort_apply_parameters() mm/damon/reclaim: avoid divide-by-zero in damon_reclaim_apply_parameters()
RD Babiera (1):
usb: typec: tcpm: properly deliver cable vdms to altmode drivers
Rafael J. Wysocki (2):
PM: EM: Add function for registering a PD without capacity update
PM: hibernate: Restrict GFP mask in hibernation_snapshot()
Reinette Chatre (1):
fs/resctrl: Eliminate false positive lockdep warning when reading SNC counters
Salah Triki (1):
EDAC/altera: Delete an inappropriate dma_free_coherent() call
Sang-Heon Jeon (1):
mm/damon/core: set quota->charged_from to jiffies at first charge window
Santhosh Kumar K (1):
mtd: spinand: winbond: Fix oob_layout for W25N01JW
Sarika Sharma (1):
wifi: ath12k: add link support for multi-link in arsta
Scott Mayhew (1):
nfs/localio: restore creds before releasing pageio data
Sriram R (1):
wifi: ath12k: Add support to enqueue management frame at MLD level
Stanislav Fomichev (1):
macsec: sync features on RTM_NEWLINK
Stanislav Fort (1):
mm/damon/sysfs: fix use-after-free in state_show()
Stefan Wahren (1):
net: fec: Fix possible NPD in fec_enet_phy_reset_after_clk_enable()
Stephan Gerhold (2):
dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees
phy: qcom: qmp-pcie: Fix PHY initialization when powered down by firmware
Takashi Iwai (2):
usb: gadget: midi2: Fix missing UMP group attributes initialization
usb: gadget: midi2: Fix MIDI2 IN EP max packet size
Tetsuo Handa (3):
can: j1939: implement NETDEV_UNREGISTER notification handler
can: j1939: j1939_sk_bind(): call j1939_priv_put() immediately when j1939_local_ecu_get() failed
can: j1939: j1939_local_ecu_get(): undo increment when j1939_local_ecu_get() failsThomas Hellström (3):
drm/xe: Attempt to bring bos back to VRAM after eviction drm/xe: Allow the pm notifier to continue on failure
drm/xe: Block exec and rebind worker while evicting for suspend / hibernate
Thomas Richter (2):
s390/pai: Deny all events not handled by this PMU s390/cpum_cf: Deny all sampling events by counter PMU
Tianyu Xu (1):
igb: Fix NULL pointer dereference in ethtool loopback test
Tigran Mkrtchyan (1):
flexfiles/pNFS: fix NULL checks on result of ff_layout_choose_ds_for_read
Trond Myklebust (10):
NFSv4: Don't clear capabilities that won't be reset
NFSv4: Clear the NFS_CAP_FS_LOCATIONS flag if it is not set
NFSv4: Clear NFS_CAP_OPEN_XOR and NFS_CAP_DELEGTIME if not supported
NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server
NFS: Serialise O_DIRECT i/o and truncate()
NFSv4.2: Serialise O_DIRECT i/o and fallocate()
NFSv4.2: Serialise O_DIRECT i/o and clone range
NFSv4.2: Serialise O_DIRECT i/o and copy range
NFS: nfs_invalidate_folio() must observe the offset and size arguments Revert "SUNRPC: Don't allow waiting for exiting tasks"
Uladzislau Rezki (Sony) (1):
mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()
Vladimir Oltean (2):
net: phylink: add lock for serializing concurrent pl->phydev writes with resolver
net: phy: transfer phy_config_inband() locking responsibility to phylink
Vladimir Riabchun (1):
ftrace/samples: Fix function size computation
Wang Liang (1):
tracing/osnoise: Fix null-ptr-deref in bitmap_parselist()
Wei Yang (1):
mm/khugepaged: fix the address passed to notifier on testing young
Xiao Ni (1):
md: keep recovery_cp in mdp_superblock_s
Xiongfeng Wang (1):
hrtimers: Unconditionally update target CPU base after offline timer migration
Yi Sun (2):
dmaengine: idxd: Remove improper idxd_free
dmaengine: idxd: Fix refcount underflow on module unload
Yuezhang Mo (1):
erofs: fix runtime warning on truncate_folio_batch_exceptionals()
wangzijie (1):
proc: fix type confusion in pde_set_flags()
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml +1 -1
@@ -41,7 +41,7 @@ properties: - const: dma_intr2 clocks: - minItems: 1 + maxItems: 1 clock-names: const: sw_baud
Documentation/netlink/specs/mptcp_pm.yaml +1 -1
@@ -256,7 +256,7 @@ attribute-sets: type: u32 - name: if-idx - type: u32 + type: s32 - name: reset-reason type: u32
Documentation/networking/can.rst +1 -1
@@ -742,7 +742,7 @@ The broadcast manager sends responses to user space in the same form: struct timeval ival1, ival2; /* count and subsequent interval */ canid_t can_id; /* unique can_id for task */ __u32 nframes; /* number of can_frames following */ - struct can_frame frames[0]; + struct can_frame frames[]; }; The aligned payload 'frames' uses the same basic CAN frame structure defined
Documentation/networking/mptcp.rst +4 -4
@@ -60,10 +60,10 @@ address announcements. Typically, it is the client side that initiates subflows, and the server side that announces additional addresses via the ``ADD_ADDR`` and ``REMOVE_ADDR`` options. -Path managers are controlled by the ``net.mptcp.pm_type`` sysctl knob -- see -mptcp-sysctl.rst. There are two types: the in-kernel one (type ``0``) where the -same rules are applied for all the connections (see: ``ip mptcp``) ; and the -userspace one (type ``1``), controlled by a userspace daemon (i.e. `mptcpd +Path managers are controlled by the ``net.mptcp.path_manager`` sysctl knob -- +see mptcp-sysctl.rst. There are two types: the in-kernel one (``kernel``) where +the same rules are applied for all the connections (see: ``ip mptcp``) ; and the +userspace one (``userspace``), controlled by a userspace daemon (i.e. `mptcpd <https://mptcpd.mptcp.dev/>`_) where different rules can be applied for each connection. The path managers can be controlled via a Netlink API; see netlink_spec/mptcp_pm.rst.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 16 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/kernel/machine_kexec_file.c +1 -1
@@ -94,7 +94,7 @@ int load_other_segments(struct kimage *image, char *initrd, unsigned long initrd_len, char *cmdline) { - struct kexec_buf kbuf; + struct kexec_buf kbuf = {};void *dtb =NULL ;unsigned long initrd_load_addr =0 , dtb_len, orig_segments = image->nr_segments;
arch/s390/kernel/kexec_elf.c +1 -1
@@ -16,7 +16,7 @@static int kexec_file_add_kernel_elf (struct kimage *image,struct s390_load_data *data) { -struct kexec_buf buf; +struct kexec_buf buf = {};const Elf_Ehdr *ehdr;const Elf_Phdr *phdr;Elf_Addr entry;
arch/s390/kernel/kexec_image.c +1 -1
@@ -16,7 +16,7 @@static int kexec_file_add_kernel_image (struct kimage *image,struct s390_load_data *data) { -struct kexec_buf buf; +struct kexec_buf buf = {}; buf.image = image;
arch/s390/kernel/machine_kexec_file.c +3 -3
@@ -129,7 +129,7 @@ static int kexec_file_update_purgatory(struct kimage *image,static int kexec_file_add_purgatory (struct kimage *image,struct s390_load_data *data) { -struct kexec_buf buf; +struct kexec_buf buf = {};int ret; buf.image = image;
@@ -152,7 +152,7 @@ static int kexec_file_add_purgatory(struct kimage *image,static int kexec_file_add_initrd (struct kimage *image,struct s390_load_data *data) { -struct kexec_buf buf; +struct kexec_buf buf = {};int ret; buf.image = image;
@@ -184,7 +184,7 @@ static int kexec_file_add_ipl_report(struct kimage *image, {__u32 *lc_ipl_parmblock_ptr;unsigned int len, ncerts; -struct kexec_buf buf; +struct kexec_buf buf = {};unsigned long addr;void *ptr, *end;int ret;
arch/s390/kernel/perf_cpum_cf.c +2 -2
@@ -761,8 +761,6 @@ static int __hw_perf_event_init(struct perf_event *event, unsigned int type)break ;case PERF_TYPE_HARDWARE : -if (is_sampling_event (event))/* No sampling support */ -return -ENOENT ; ev = attr->config;if (!attr->exclude_user && attr->exclude_kernel) {/*
@@ -860,6 +858,8 @@ static int cpumf_pmu_event_init(struct perf_event *event)unsigned int type = event->attr.type;int err = -ENOENT ; +if (is_sampling_event (event))/* No sampling support */ +return err;if (type ==PERF_TYPE_HARDWARE || type ==PERF_TYPE_RAW ) err =__hw_perf_event_init (event, type);else if (event->pmu->type == type)
arch/s390/kernel/perf_pai_crypto.c +2 -2
@@ -286,10 +286,10 @@ static int paicrypt_event_init(struct perf_event *event)/* PAI crypto PMU registered as PERF_TYPE_RAW, check event type */ if (a->type !=PERF_TYPE_RAW && event->pmu->type != a->type)return -ENOENT ; -/* PAI crypto event must be in valid range */ +/* PAI crypto event must be in valid range, try others if not */ if (a->config <PAI_CRYPTO_BASE || a->config >PAI_CRYPTO_BASE + paicrypt_cnt) -return -EINVAL ; +return -ENOENT ;/* Allow only CRYPTO_ALL for sampling */ if (a->sample_period && a->config !=PAI_CRYPTO_BASE )return -EINVAL ;
arch/s390/kernel/perf_pai_ext.c +1 -1
@@ -266,7 +266,7 @@ static int paiext_event_valid(struct perf_event *event) event->hw.config_base = offsetof(struct paiext_cb , acc);return 0 ; } -return -EINVAL ; +return -ENOENT ; }/* Might be called on different CPU than the one the event is intended for. */
arch/x86/kernel/cpu/topology_amd.c +14 -11
@@ -175,27 +175,30 @@ static void topoext_fixup(struct topo_scan *tscan)static void parse_topology_amd (struct topo_scan *tscan) { -bool has_topoext = false; -/* -* If the extended topology leaf 0x8000_001e is available -* try to get SMT, CORE, TILE, and DIE shifts from extended +* Try to get SMT, CORE, TILE, and DIE shifts from extended * CPUID leaf 0x8000_0026 on supported processors first. If * extended CPUID leaf 0x8000_0026 is not supported, try to -* get SMT and CORE shift from leaf 0xb first, then try to -* get the CORE shift from leaf 0x8000_0008. +* get SMT and CORE shift from leaf 0xb. If either leaf is +* available, cpu_parse_topology_ext() will return true. */ -if (cpu_feature_enabled (X86_FEATURE_TOPOEXT )) - has_topoext =cpu_parse_topology_ext (tscan); +bool has_xtopology =cpu_parse_topology_ext (tscan);if (cpu_feature_enabled (X86_FEATURE_AMD_HTR_CORES )) tscan->c->topo.cpu_type =cpuid_ebx (0x80000026 ); -if (!has_topoext && !parse_8000_0008 (tscan)) +/* +* If XTOPOLOGY leaves (0x26/0xb) are not available, try to +* get the CORE shift from leaf 0x8000_0008 first. +*/ +if (!has_xtopology && !parse_8000_0008 (tscan))return ; -/* Prefer leaf 0x8000001e if available */ -if (parse_8000_001e (tscan, has_topoext)) +/* +* Prefer leaf 0x8000001e if available to get the SMT shift and +* the initial APIC ID if XTOPOLOGY leaves are not available. +*/ +if (parse_8000_001e (tscan, has_xtopology))return ;/* Try the NODEID MSR */
block/fops.c +8 -5
@@ -7,6 +7,7 @@#include <linux/init.h> #include <linux/mm.h> #include <linux/blkdev.h> +#include <linux/blk-integrity.h> #include <linux/buffer_head.h> #include <linux/mpage.h> #include <linux/uio.h>
@@ -54,7 +55,6 @@ static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb,struct bio bio;ssize_t ret; -WARN_ON_ONCE (iocb->ki_flags &IOCB_HAS_METADATA );if (nr_pages <=DIO_INLINE_BIO_VECS ) vecs = inline_vecs;else {
@@ -131,7 +131,7 @@ static void blkdev_bio_end_io(struct bio *bio)if (bio->bi_status && !dio->bio.bi_status) dio->bio.bi_status = bio->bi_status; -if (!is_sync && (dio->iocb->ki_flags &IOCB_HAS_METADATA )) +if (bio_integrity (bio))bio_integrity_unmap_user (bio);if (atomic_dec_and_test (&dio->ref)) {
@@ -233,7 +233,7 @@ static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, } bio->bi_opf |=REQ_NOWAIT ; } -if (!is_sync && (iocb->ki_flags &IOCB_HAS_METADATA )) { +if (iocb->ki_flags &IOCB_HAS_METADATA ) { ret =bio_integrity_map_iter (bio, iocb->private);if (unlikely (ret)) goto fail;
@@ -301,7 +301,7 @@ static void blkdev_bio_end_io_async(struct bio *bio) ret =blk_status_to_errno (bio->bi_status); } -if (iocb->ki_flags &IOCB_HAS_METADATA ) +if (bio_integrity (bio))bio_integrity_unmap_user (bio); iocb->ki_complete (iocb, ret);
@@ -422,7 +422,8 @@ static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) } nr_pages =bio_iov_vecs_to_alloc (iter,BIO_MAX_VECS +1 ); -if (likely (nr_pages <=BIO_MAX_VECS )) { +if (likely (nr_pages <=BIO_MAX_VECS && + !(iocb->ki_flags &IOCB_HAS_METADATA ))) {if (is_sync_kiocb (iocb))return __blkdev_direct_IO_simple (iocb, iter, bdev, nr_pages);
@@ -672,6 +673,8 @@ static int blkdev_open(struct inode *inode, struct file *filp)if (bdev_can_atomic_write (bdev)) filp->f_mode |=FMODE_CAN_ATOMIC_WRITE ; +if (blk_get_integrity (bdev->bd_disk)) + filp->f_mode |=FMODE_HAS_METADATA ; ret =bdev_open (bdev, mode, filp->private_data,NULL , filp);if (ret)
drivers/cpufreq/amd-pstate.c +11 -8
@@ -1547,13 +1547,15 @@ static void amd_pstate_epp_cpu_exit(struct cpufreq_policy *policy)pr_debug ("CPU %d exiting\n" , policy->cpu); } -static int amd_pstate_epp_update_limit (struct cpufreq_policy *policy) +static int amd_pstate_epp_update_limit (struct cpufreq_policy *policy,bool policy_change) {struct amd_cpudata *cpudata = policy->driver_data;union perf_cached perf;u8 epp; -if (policy->min != cpudata->min_limit_freq || policy->max != cpudata->max_limit_freq) +if (policy_change || + policy->min != cpudata->min_limit_freq || + policy->max != cpudata->max_limit_freq)amd_pstate_update_min_max_limit (policy);if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE )
@@ -1577,7 +1579,7 @@ static int amd_pstate_epp_set_policy(struct cpufreq_policy *policy) cpudata->policy = policy->policy; - ret =amd_pstate_epp_update_limit (policy); + ret =amd_pstate_epp_update_limit (policy, true);if (ret)return ret;
@@ -1619,13 +1621,14 @@ static int amd_pstate_suspend(struct cpufreq_policy *policy)* min_perf value across kexec reboots. If this CPU is just resumed back without kexec, * the limits, epp and desired perf will get reset to the cached values in cpudata struct */ - ret =amd_pstate_update_perf (policy, perf.bios_min_perf,0U ,0U ,0U , false); + ret =amd_pstate_update_perf (policy, perf.bios_min_perf, +FIELD_GET (AMD_CPPC_DES_PERF_MASK , cpudata->cppc_req_cached), +FIELD_GET (AMD_CPPC_MAX_PERF_MASK , cpudata->cppc_req_cached), +FIELD_GET (AMD_CPPC_EPP_PERF_MASK , cpudata->cppc_req_cached), + false);if (ret)return ret; -/* invalidate to ensure it's rewritten during resume */ - cpudata->cppc_req_cached =0 ; -/* set this flag to avoid setting core offline*/ cpudata->suspended = true;
@@ -1651,7 +1654,7 @@ static int amd_pstate_epp_resume(struct cpufreq_policy *policy)int ret;/* enable amd pstate from suspend state*/ - ret =amd_pstate_epp_update_limit (policy); + ret =amd_pstate_epp_update_limit (policy, false);if (ret)return ret;
drivers/cpufreq/intel_pstate.c +2 -2
@@ -1034,8 +1034,8 @@ static bool hybrid_register_perf_domain(unsigned int cpu)if (!cpu_dev)return false; -if (em_dev_register_perf_domain (cpu_dev,HYBRID_EM_STATE_COUNT , &cb, -cpumask_of (cpu), false)) +if (em_dev_register_pd_no_update (cpu_dev,HYBRID_EM_STATE_COUNT , &cb, +cpumask_of (cpu), false))return false; cpudata->pd_registered = true;
drivers/dma/dw/rzn1-dmamux.c +11 -4
@@ -48,12 +48,16 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec,u32 mask;int ret; -if (dma_spec->args_count !=RNZ1_DMAMUX_NCELLS ) -return ERR_PTR (-EINVAL ); +if (dma_spec->args_count !=RNZ1_DMAMUX_NCELLS ) { + ret = -EINVAL ; + goto put_device; + } map =kzalloc (sizeof (*map),GFP_KERNEL ); -if (!map) -return ERR_PTR (-ENOMEM ); +if (!map) { + ret = -ENOMEM ; + goto put_device; + } chan = dma_spec->args[0 ]; map->req_idx = dma_spec->args[4 ];
@@ -94,12 +98,15 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec,if (ret) goto clear_bitmap; +put_device (&pdev->dev);return map; clear_bitmap:clear_bit (map->req_idx, dmamux->used_chans); free_map:kfree (map); +put_device: +put_device (&pdev->dev);return ERR_PTR (ret); }
drivers/dma/idxd/init.c +21 -18
@@ -189,27 +189,30 @@ static int idxd_setup_wqs(struct idxd_device *idxd) idxd->wq_enable_map =bitmap_zalloc_node (idxd->max_wqs,GFP_KERNEL ,dev_to_node (dev));if (!idxd->wq_enable_map) { rc = -ENOMEM ; - goto err_bitmap; + goto err_free_wqs; }for (i =0 ; i < idxd->max_wqs; i++) { wq =kzalloc_node (sizeof (*wq),GFP_KERNEL ,dev_to_node (dev));if (!wq) { rc = -ENOMEM ; - goto err; + goto err_unwind; }idxd_dev_set_type (&wq->idxd_dev,IDXD_DEV_WQ ); conf_dev =wq_confdev (wq); wq->id = i; wq->idxd = idxd; -device_initialize (wq_confdev (wq)); +device_initialize (conf_dev); conf_dev->parent =idxd_confdev (idxd); conf_dev->bus = &dsa_bus_type; conf_dev->type = &idxd_wq_device_type; rc =dev_set_name (conf_dev,"wq%d.%d" , idxd->id, wq->id); -if (rc <0 ) - goto err; +if (rc <0 ) { +put_device (conf_dev); +kfree (wq); + goto err_unwind; + }mutex_init (&wq->wq_lock);init_waitqueue_head (&wq->err_queue);
@@ -220,15 +223,20 @@ static int idxd_setup_wqs(struct idxd_device *idxd) wq->enqcmds_retries =IDXD_ENQCMDS_RETRIES ; wq->wqcfg =kzalloc_node (idxd->wqcfg_size,GFP_KERNEL ,dev_to_node (dev));if (!wq->wqcfg) { +put_device (conf_dev); +kfree (wq); rc = -ENOMEM ; - goto err; + goto err_unwind; }if (idxd->hw.wq_cap.op_config) { wq->opcap_bmap =bitmap_zalloc (IDXD_MAX_OPCAP_BITS ,GFP_KERNEL );if (!wq->opcap_bmap) { +kfree (wq->wqcfg); +put_device (conf_dev); +kfree (wq); rc = -ENOMEM ; - goto err_opcap_bmap; + goto err_unwind; }bitmap_copy (wq->opcap_bmap, idxd->opcap_bmap,IDXD_MAX_OPCAP_BITS ); }
@@ -239,13 +247,7 @@ static int idxd_setup_wqs(struct idxd_device *idxd)return 0 ; -err_opcap_bmap: -kfree (wq->wqcfg); - -err: -put_device (conf_dev); -kfree (wq); - +err_unwind:while (--i >=0 ) { wq = idxd->wqs[i];if (idxd->hw.wq_cap.op_config)
@@ -254,11 +256,10 @@ static int idxd_setup_wqs(struct idxd_device *idxd) conf_dev =wq_confdev (wq);put_device (conf_dev);kfree (wq); - }bitmap_free (idxd->wq_enable_map); -err_bitmap: +err_free_wqs:kfree (idxd->wqs);return rc;
@@ -1292,10 +1293,12 @@ static void idxd_remove(struct pci_dev *pdev)device_unregister (idxd_confdev (idxd));idxd_shutdown (pdev);idxd_device_remove_debugfs (idxd); -idxd_cleanup (idxd); +perfmon_pmu_remove (idxd); +idxd_cleanup_interrupts (idxd); +if (device_pasid_enabled (idxd)) +idxd_disable_system_pasid (idxd);pci_iounmap (pdev, idxd->reg_base);put_device (idxd_confdev (idxd)); -idxd_free (idxd);pci_disable_device (pdev); }
drivers/dma/qcom/bam_dma.c +6 -2
@@ -1283,13 +1283,17 @@ static int bam_dma_probe(struct platform_device *pdev)if (!bdev->bamclk) { ret =of_property_read_u32 (pdev->dev.of_node,"num-channels" , &bdev->num_channels); -if (ret) +if (ret) {dev_err (bdev->dev,"num-channels unspecified in dt\n" ); +return ret; + } ret =of_property_read_u32 (pdev->dev.of_node,"qcom,num-ees" , &bdev->num_ees); -if (ret) +if (ret) {dev_err (bdev->dev,"num-ees unspecified in dt\n" ); +return ret; + } } ret =clk_prepare_enable (bdev->bamclk);
drivers/dma/ti/edma.c +2 -2
@@ -2064,8 +2064,8 @@ static int edma_setup_from_hw(struct device *dev, struct edma_soc_info *pdata,* priority. So Q0 is the highest priority queue and the last queue has * the lowest priority. */ - queue_priority_map =devm_kcalloc (dev, ecc->num_tc +1 ,sizeof (s8), -GFP_KERNEL ); + queue_priority_map =devm_kcalloc (dev, ecc->num_tc +1 , +sizeof (*queue_priority_map),GFP_KERNEL );if (!queue_priority_map)return -ENOMEM ;
drivers/edac/altera_edac.c +0 -1
@@ -128,7 +128,6 @@ static ssize_t altr_sdr_mc_err_inject_write(struct file *file, ptemp =dma_alloc_coherent (mci->pdev,16 , &dma_handle,GFP_KERNEL );if (!ptemp) { -dma_free_coherent (mci->pdev,16 , ptemp, dma_handle);edac_printk (KERN_ERR ,EDAC_MC ,"Inject: Buffer Allocation error\n" );return -ENOMEM ;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +0 -4
@@ -596,10 +596,6 @@ int psp_wait_for(struct psp_context *psp, uint32_t reg_index,udelay (1 ); } -dev_err (adev->dev, -"psp reg (0x%x) wait timed out, mask: %x, read: %x exp: %x" , - reg_index, mask, val, reg_val); -return -ETIME ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +0 -11
@@ -51,17 +51,6 @@#define C2PMSG_CMD_SPI_GET_ROM_IMAGE_ADDR_HI 0x10#define C2PMSG_CMD_SPI_GET_FLASH_IMAGE 0x11 -/* Command register bit 31 set to indicate readiness */ -#define MBOX_TOS_READY_FLAG (GFX_FLAG_RESPONSE) -#define MBOX_TOS_READY_MASK (GFX_CMD_RESPONSE_MASK | GFX_CMD_STATUS_MASK) - -/* Values to check for a successful GFX_CMD response wait. Check against -* both status bits and response state - helps to detect a command failure -* or other unexpected cases like a device drop reading all 0xFFs -*/ -#define MBOX_TOS_RESP_FLAG (GFX_FLAG_RESPONSE) -#define MBOX_TOS_RESP_MASK (GFX_CMD_RESPONSE_MASK | GFX_CMD_STATUS_MASK) -extern const struct attribute_group amdgpu_flash_attr_group;enum psp_shared_mem_size {
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +0 -2
@@ -389,8 +389,6 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)dma_fence_put (ring->vmid_wait); ring->vmid_wait =NULL ; ring->me =0 ; - - ring->adev->rings[ring->idx] =NULL ; }/**
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c +2 -0
@@ -29,6 +29,8 @@#include "amdgpu.h" #include "isp_v4_1_1.h" +MODULE_FIRMWARE ("amdgpu/isp_4_1_1.bin" ); +static const unsigned int isp_4_1_1_int_srcid[MAX_ISP411_INT_SRC ] = {ISP_4_1__SRCID__ISP_RINGBUFFER_WPT9 ,ISP_4_1__SRCID__ISP_RINGBUFFER_WPT10 ,
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c +2 -2
@@ -94,7 +94,7 @@ static int psp_v10_0_ring_create(struct psp_context *psp,/* Wait for response flag (bit 31) in C2PMSG_64 */ ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); +0x80000000 ,0x8000FFFF , false);return ret; }
@@ -115,7 +115,7 @@ static int psp_v10_0_ring_stop(struct psp_context *psp,/* Wait for response flag (bit 31) in C2PMSG_64 */ ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); +0x80000000 ,0x80000000 , false);return ret; }
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +12 -19
@@ -277,13 +277,11 @@ static int psp_v11_0_ring_stop(struct psp_context *psp,/* Wait for response flag (bit 31) */ if (amdgpu_sriov_vf (adev)) - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false);else - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);return ret; }
@@ -319,15 +317,13 @@ static int psp_v11_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_101 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), +0x80000000 ,0x8000FFFF , false); }else {/* Wait for sOS ready for ring creation */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_READY_FLAG ,MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);if (ret) {DRM_ERROR ("Failed to wait for sOS ready for ring creation\n" );return ret;
@@ -351,9 +347,8 @@ static int psp_v11_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_64 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x8000FFFF , false); }return ret;
@@ -386,8 +381,7 @@ static int psp_v11_0_mode1_reset(struct psp_context *psp) offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64); - ret =psp_wait_for (psp, offset,MBOX_TOS_READY_FLAG , -MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp, offset,0x80000000 ,0x8000FFFF , false);if (ret) {DRM_INFO ("psp is not working correctly before mode1 reset!\n" );
@@ -401,8 +395,7 @@ static int psp_v11_0_mode1_reset(struct psp_context *psp) offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_33); - ret =psp_wait_for (psp, offset,MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , - false); + ret =psp_wait_for (psp, offset,0x80000000 ,0x80000000 , false);if (ret) {DRM_INFO ("psp mode 1 reset failed!\n" );
drivers/gpu/drm/amd/amdgpu/psp_v11_0_8.c +10 -15
@@ -41,9 +41,8 @@ static int psp_v11_0_8_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false); }else {/* Write the ring destroy command*/ WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_64,
@@ -51,9 +50,8 @@ static int psp_v11_0_8_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false); }return ret;
@@ -89,15 +87,13 @@ static int psp_v11_0_8_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_101 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), +0x80000000 ,0x8000FFFF , false); }else {/* Wait for sOS ready for ring creation */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_READY_FLAG ,MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);if (ret) {DRM_ERROR ("Failed to wait for trust OS ready for ring creation\n" );return ret;
@@ -121,9 +117,8 @@ static int psp_v11_0_8_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_64 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x8000FFFF , false); }return ret;
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +7 -11
@@ -163,7 +163,7 @@ static int psp_v12_0_ring_create(struct psp_context *psp,/* Wait for response flag (bit 31) in C2PMSG_64 */ ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); +0x80000000 ,0x8000FFFF , false);return ret; }
@@ -184,13 +184,11 @@ static int psp_v12_0_ring_stop(struct psp_context *psp,/* Wait for response flag (bit 31) */ if (amdgpu_sriov_vf (adev)) - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false);else - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);return ret; }
@@ -221,8 +219,7 @@ static int psp_v12_0_mode1_reset(struct psp_context *psp) offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_64); - ret =psp_wait_for (psp, offset,MBOX_TOS_READY_FLAG , -MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp, offset,0x80000000 ,0x8000FFFF , false);if (ret) {DRM_INFO ("psp is not working correctly before mode1 reset!\n" );
@@ -236,8 +233,7 @@ static int psp_v12_0_mode1_reset(struct psp_context *psp) offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_33); - ret =psp_wait_for (psp, offset,MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , - false); + ret =psp_wait_for (psp, offset,0x80000000 ,0x80000000 , false);if (ret) {DRM_INFO ("psp mode 1 reset failed!\n" );
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +10 -15
@@ -384,9 +384,8 @@ static int psp_v13_0_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false); }else {/* Write the ring destroy command*/ WREG32_SOC15(MP0, 0, regMP0_SMN_C2PMSG_64,
@@ -394,9 +393,8 @@ static int psp_v13_0_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false); }return ret;
@@ -432,15 +430,13 @@ static int psp_v13_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_101 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), +0x80000000 ,0x8000FFFF , false); }else {/* Wait for sOS ready for ring creation */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_READY_FLAG ,MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);if (ret) {DRM_ERROR ("Failed to wait for trust OS ready for ring creation\n" );return ret;
@@ -464,9 +460,8 @@ static int psp_v13_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_64 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x8000FFFF , false); }return ret;
drivers/gpu/drm/amd/amdgpu/psp_v13_0_4.c +10 -15
@@ -204,9 +204,8 @@ static int psp_v13_0_4_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false); }else {/* Write the ring destroy command*/ WREG32_SOC15(MP0, 0, regMP0_SMN_C2PMSG_64,
@@ -214,9 +213,8 @@ static int psp_v13_0_4_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false); }return ret;
@@ -252,15 +250,13 @@ static int psp_v13_0_4_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_101 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_101), +0x80000000 ,0x8000FFFF , false); }else {/* Wait for sOS ready for ring creation */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_READY_FLAG ,MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);if (ret) {DRM_ERROR ("Failed to wait for trust OS ready for ring creation\n" );return ret;
@@ -284,9 +280,8 @@ static int psp_v13_0_4_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_64 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMP0_SMN_C2PMSG_64), +0x80000000 ,0x8000FFFF , false); }return ret;
drivers/gpu/drm/amd/amdgpu/psp_v14_0.c +10 -15
@@ -250,9 +250,8 @@ static int psp_v14_0_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_101), +0x80000000 ,0x80000000 , false); }else {/* Write the ring destroy command*/ WREG32_SOC15(MP0, 0, regMPASP_SMN_C2PMSG_64,
@@ -260,9 +259,8 @@ static int psp_v14_0_ring_stop(struct psp_context *psp,/* there might be handshake issue with hardware which needs delay */ mdelay (20 );/* Wait for response flag (bit 31) */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false); }return ret;
@@ -298,15 +296,13 @@ static int psp_v14_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_101 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_101), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_101), +0x80000000 ,0x8000FFFF , false); }else {/* Wait for sOS ready for ring creation */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), -MBOX_TOS_READY_FLAG ,MBOX_TOS_READY_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), +0x80000000 ,0x80000000 , false);if (ret) {DRM_ERROR ("Failed to wait for trust OS ready for ring creation\n" );return ret;
@@ -330,9 +326,8 @@ static int psp_v14_0_ring_create(struct psp_context *psp,mdelay (20 );/* Wait for response flag (bit 31) in C2PMSG_64 */ - ret =psp_wait_for ( - psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), -MBOX_TOS_RESP_FLAG ,MBOX_TOS_RESP_MASK , false); + ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , regMPASP_SMN_C2PMSG_64), +0x80000000 ,0x8000FFFF , false); }return ret;
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +8 -4
@@ -1875,15 +1875,19 @@ static int vcn_v3_0_limit_sched(struct amdgpu_cs_parser *p, struct amdgpu_job *job) {struct drm_gpu_scheduler **scheds; - -/* The create msg must be in the first IB submitted */ -if (atomic_read (&job->base.entity->fence_seq)) -return -EINVAL ; +struct dma_fence *fence;/* if VCN0 is harvested, we can't support AV1 */ if (p->adev->vcn.harvest_config &AMDGPU_VCN_HARVEST_VCN0 )return -EINVAL ; +/* wait for all jobs to finish before switching to instance 0 */ + fence =amdgpu_ctx_get_fence (p->ctx, job->base.entity, ~0ull ); +if (fence) { +dma_fence_wait (fence, false); +dma_fence_put (fence); + } + scheds = p->adev->gpu_sched[AMDGPU_HW_IP_VCN_DEC ] [AMDGPU_RING_PRIO_DEFAULT ].sched;drm_sched_entity_modify_sched (job->base.entity, scheds,1 );
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +29 -35
99 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +58 -48
146 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -0
@@ -809,6 +809,7 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,drm_dp_aux_init (&aconnector->dm_dp_aux.aux);drm_dp_cec_register_connector (&aconnector->dm_dp_aux.aux, &aconnector->base); +drm_dp_dpcd_set_probe (&aconnector->dm_dp_aux.aux, false);if (aconnector->base.connector_type == DRM_MODE_CONNECTOR_eDP)return ;
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -1095,6 +1095,7 @@ struct dc_debug_options {bool enable_hblank_borrow;bool force_subvp_df_throttle;uint32_t acpi_transition_bitmasks[MAX_PIPES ]; +bool enable_pg_cntl_debug_logs; };
drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c +39 -35
190 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +1 -1
@@ -955,7 +955,7 @@ enum dc_status dcn20_enable_stream_timing(return DC_ERROR_UNEXPECTED ; } -fsleep (stream->timing.v_total * (stream->timing.h_total *10000u / stream->timing.pix_clk_100hz)); +udelay (stream->timing.v_total * (stream->timing.h_total *10000u / stream->timing.pix_clk_100hz)); params.vertical_total_min = stream->adjust.v_total_min; params.vertical_total_max = stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c +20 -95
169 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_init.c +0 -3
@@ -115,7 +115,6 @@ static const struct hw_sequencer_funcs dcn35_funcs = { .exit_optimized_pwr_state = dcn21_exit_optimized_pwr_state, .update_visual_confirm_color = dcn10_update_visual_confirm_color, .apply_idle_power_optimizations = dcn35_apply_idle_power_optimizations, - .update_dsc_pg = dcn32_update_dsc_pg, .calc_blocks_to_gate = dcn35_calc_blocks_to_gate, .calc_blocks_to_ungate = dcn35_calc_blocks_to_ungate, .hw_block_power_up = dcn35_hw_block_power_up,
@@ -150,7 +149,6 @@ static const struct hwseq_private_funcs dcn35_private_funcs = { .plane_atomic_disable = dcn35_plane_atomic_disable,//.plane_atomic_disable = dcn20_plane_atomic_disable,/*todo*/ //.hubp_pg_control = dcn35_hubp_pg_control, - .enable_power_gating_plane = dcn35_enable_power_gating_plane, .dpp_root_clock_control = dcn35_dpp_root_clock_control, .dpstream_root_clock_control = dcn35_dpstream_root_clock_control, .physymclk_root_clock_control = dcn35_physymclk_root_clock_control,
@@ -165,7 +163,6 @@ static const struct hwseq_private_funcs dcn35_private_funcs = { .calculate_dccg_k1_k2_values = dcn32_calculate_dccg_k1_k2_values, .resync_fifo_dccg_dio = dcn314_resync_fifo_dccg_dio, .is_dp_dig_pixel_rate_div_policy = dcn35_is_dp_dig_pixel_rate_div_policy, - .dsc_pg_control = dcn35_dsc_pg_control, .dsc_pg_status = dcn32_dsc_pg_status, .enable_plane = dcn35_enable_plane, .wait_for_pipe_update_if_needed = dcn10_wait_for_pipe_update_if_needed,
drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c +0 -3
@@ -114,7 +114,6 @@ static const struct hw_sequencer_funcs dcn351_funcs = { .exit_optimized_pwr_state = dcn21_exit_optimized_pwr_state, .update_visual_confirm_color = dcn10_update_visual_confirm_color, .apply_idle_power_optimizations = dcn35_apply_idle_power_optimizations, - .update_dsc_pg = dcn32_update_dsc_pg, .calc_blocks_to_gate = dcn351_calc_blocks_to_gate, .calc_blocks_to_ungate = dcn351_calc_blocks_to_ungate, .hw_block_power_up = dcn351_hw_block_power_up,
@@ -145,7 +144,6 @@ static const struct hwseq_private_funcs dcn351_private_funcs = { .plane_atomic_disable = dcn35_plane_atomic_disable,//.plane_atomic_disable = dcn20_plane_atomic_disable,/*todo*/ //.hubp_pg_control = dcn35_hubp_pg_control, - .enable_power_gating_plane = dcn35_enable_power_gating_plane, .dpp_root_clock_control = dcn35_dpp_root_clock_control, .dpstream_root_clock_control = dcn35_dpstream_root_clock_control, .physymclk_root_clock_control = dcn35_physymclk_root_clock_control,
@@ -159,7 +157,6 @@ static const struct hwseq_private_funcs dcn351_private_funcs = { .setup_hpo_hw_control = dcn35_setup_hpo_hw_control, .calculate_dccg_k1_k2_values = dcn32_calculate_dccg_k1_k2_values, .is_dp_dig_pixel_rate_div_policy = dcn35_is_dp_dig_pixel_rate_div_policy, - .dsc_pg_control = dcn35_dsc_pg_control, .dsc_pg_status = dcn32_dsc_pg_status, .enable_plane = dcn35_enable_plane, .wait_for_pipe_update_if_needed = dcn10_wait_for_pipe_update_if_needed,
drivers/gpu/drm/amd/display/dc/inc/hw/pg_cntl.h +1 -0
@@ -47,6 +47,7 @@ struct pg_cntl_funcs {void (*optc_pg_control)(struct pg_cntl *pg_cntl,unsigned int optc_inst,bool power_on);void (*dwb_pg_control)(struct pg_cntl *pg_cntl,bool power_on);void (*init_pg_status)(struct pg_cntl *pg_cntl); + void (*print_pg_status)(struct pg_cntl *pg_cntl, const char *debug_func, const char *debug_log); };#endif //__DC_PG_CNTL_H__
drivers/gpu/drm/amd/display/dc/pg/dcn35/dcn35_pg_cntl.c +50 -28
152 lines not on this page · raw message
drivers/gpu/drm/display/drm_dp_helper.c +29 -13
54 lines not on this page · raw message
drivers/gpu/drm/drm_edid.c +126 -106
386 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display_power.c +3 -3
@@ -1169,7 +1169,7 @@ static void icl_mbus_init(struct intel_display *display)if (DISPLAY_VER (display) ==12 ) abox_regs |=BIT (0 ); -for_each_set_bit (i, &abox_regs,sizeof (abox_regs)) +for_each_set_bit (i, &abox_regs,BITS_PER_TYPE (abox_regs))intel_de_rmw (display,MBUS_ABOX_CTL (i), mask, val); }
@@ -1630,11 +1630,11 @@ static void tgl_bw_buddy_init(struct intel_display *display)if (table[config].page_mask ==0 ) {drm_dbg_kms (display->drm,"Unknown memory configuration; disabling address buddy logic.\n" ); -for_each_set_bit (i, &abox_mask,sizeof (abox_mask)) +for_each_set_bit (i, &abox_mask,BITS_PER_TYPE (abox_mask))intel_de_write (display,BW_BUDDY_CTL (i),BW_BUDDY_DISABLE ); }else { -for_each_set_bit (i, &abox_mask,sizeof (abox_mask)) { +for_each_set_bit (i, &abox_mask,BITS_PER_TYPE (abox_mask)) {intel_de_write (display,BW_BUDDY_PAGE_MASK (i), table[config].page_mask);
drivers/gpu/drm/mediatek/mtk_drm_drv.c +5 -6
@@ -388,11 +388,11 @@ static bool mtk_drm_get_all_drm_priv(struct device *dev) of_id =of_match_node (mtk_drm_of_ids, node);if (!of_id) - goto next_put_node; +continue ; pdev =of_find_device_by_node (node);if (!pdev) - goto next_put_node; +continue ; drm_dev =device_find_child (&pdev->dev,NULL , mtk_drm_match);if (!drm_dev)
@@ -418,11 +418,10 @@ static bool mtk_drm_get_all_drm_priv(struct device *dev) next_put_device_pdev_dev:put_device (&pdev->dev); -next_put_node: -of_node_put (node); - -if (cnt ==MAX_CRTC ) +if (cnt ==MAX_CRTC ) { +of_node_put (node);break ; + } }if (drm_priv->data->mmsys_dev_num == cnt) {
drivers/gpu/drm/panthor/panthor_drv.c +1 -1
@@ -1093,7 +1093,7 @@ static int panthor_ioctl_group_create(struct drm_device *ddev, void *data,struct drm_panthor_queue_create *queue_args;int ret; -if (!args->queues.count) +if (!args->queues.count || args->queues.count >MAX_CS_PER_CSG )return -EINVAL ; ret =PANTHOR_UOBJ_GET_ARRAY (queue_args, &args->queues);
drivers/gpu/drm/xe/tests/xe_bo.c +1 -1
@@ -236,7 +236,7 @@ static int evict_test_run_tile(struct xe_device *xe, struct xe_tile *tile, struc }xe_bo_lock (external, false); - err =xe_bo_pin_external (external); + err =xe_bo_pin_external (external, false);xe_bo_unlock (external);if (err) { KUNIT_FAIL(test, "external bo pin err=%pe\n",
drivers/gpu/drm/xe/tests/xe_dma_buf.c +1 -9
@@ -89,15 +89,7 @@ static void check_residency(struct kunit *test, struct xe_bo *exported,return ; } -/* -* If on different devices, the exporter is kept in system if -* possible, saving a migration step as the transfer is just -* likely as fast from system memory. -*/ -if (params->mem_mask &XE_BO_FLAG_SYSTEM ) -KUNIT_EXPECT_TRUE (test,xe_bo_is_mem_type (exported,XE_PL_TT )); -else -KUNIT_EXPECT_TRUE (test,xe_bo_is_mem_type (exported, mem_type)); +KUNIT_EXPECT_TRUE (test,xe_bo_is_mem_type (exported, mem_type));if (params->force_different_devices)KUNIT_EXPECT_TRUE (test,xe_bo_is_mem_type (imported,XE_PL_TT ));
drivers/gpu/drm/xe/xe_bo.c +12 -4
@@ -184,6 +184,8 @@ static void try_add_system(struct xe_device *xe, struct xe_bo *bo, bo->placements[*c] = (struct ttm_place ) { .mem_type =XE_PL_TT , + .flags = (bo_flags &XE_BO_FLAG_VRAM_MASK ) ? +TTM_PL_FLAG_FALLBACK :0 , }; *c +=1 ; }
@@ -2266,6 +2268,7 @@ uint64_t vram_region_gpu_offset(struct ttm_resource *res)/** * xe_bo_pin_external - pin an external BO * @bo: buffer object to be pinned +* @in_place: Pin in current placement, don't attempt to migrate. * * Pin an external (not tied to a VM, can be exported via dma-buf / prime FD) * BO. Unique call compared to xe_bo_pin as this function has it own set of
@@ -2273,7 +2276,7 @@ uint64_t vram_region_gpu_offset(struct ttm_resource *res)* * Returns 0 for success, negative error code otherwise. */ -int xe_bo_pin_external (struct xe_bo *bo) +int xe_bo_pin_external (struct xe_bo *bo,bool in_place) {struct xe_device *xe =xe_bo_device (bo);int err;
@@ -2282,9 +2285,11 @@ int xe_bo_pin_external(struct xe_bo *bo)xe_assert (xe,xe_bo_is_user (bo));if (!xe_bo_is_pinned (bo)) { - err =xe_bo_validate (bo,NULL , false); -if (err) -return err; +if (!in_place) { + err =xe_bo_validate (bo,NULL , false); +if (err) +return err; + }spin_lock (&xe->pinned.lock);list_add_tail (&bo->pinned_link, &xe->pinned.late.external);
@@ -2437,6 +2442,9 @@ int xe_bo_validate(struct xe_bo *bo, struct xe_vm *vm, bool allow_res_evict) };int ret; +if (xe_bo_is_pinned (bo)) +return 0 ; +if (vm) {lockdep_assert_held (&vm->lock);xe_vm_assert_held (vm);
drivers/gpu/drm/xe/xe_bo.h +1 -1
@@ -201,7 +201,7 @@ static inline void xe_bo_unlock_vm_held(struct xe_bo *bo) } } -int xe_bo_pin_external (struct xe_bo *bo); +int xe_bo_pin_external (struct xe_bo *bo,bool in_place);int xe_bo_pin (struct xe_bo *bo);void xe_bo_unpin_external (struct xe_bo *bo);void xe_bo_unpin (struct xe_bo *bo);
drivers/gpu/drm/xe/xe_device_types.h +6 -0
@@ -529,6 +529,12 @@ struct xe_device {/** @pm_notifier: Our PM notifier to perform actions in response to various PM events. */ struct notifier_block pm_notifier; +/** @pm_block: Completion to block validating tasks on suspend / hibernate prepare */ +struct completion pm_block; +/** @rebind_resume_list: List of wq items to kick on resume. */ +struct list_head rebind_resume_list; +/** @rebind_resume_lock: Lock to protect the rebind_resume_list */ +struct mutex rebind_resume_lock;/** @pmt: Support the PMT driver callback interface */ struct {
drivers/gpu/drm/xe/xe_dma_buf.c +1 -1
@@ -72,7 +72,7 @@ static int xe_dma_buf_pin(struct dma_buf_attachment *attach)return ret; } - ret =xe_bo_pin_external (bo); + ret =xe_bo_pin_external (bo, true);xe_assert (xe, !ret);return 0 ;
drivers/gpu/drm/xe/xe_exec.c +9 -0
@@ -237,6 +237,15 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file) goto err_unlock_list; } +/* +* It's OK to block interruptible here with the vm lock held, since +* on task freezing during suspend / hibernate, the call will +* return -ERESTARTSYS and the IOCTL will be rerun. +*/ + err =wait_for_completion_interruptible (&xe->pm_block); +if (err) + goto err_unlock_list; + vm_exec.vm = &vm->gpuvm; vm_exec.flags =DRM_EXEC_INTERRUPTIBLE_WAIT ;if (xe_vm_in_lr_mode (vm)) {
drivers/gpu/drm/xe/xe_pm.c +32 -10
80 lines not on this page · raw message
drivers/gpu/drm/xe/xe_survivability_mode.c +2 -1
@@ -40,6 +40,8 @@* * # echo 1 > /sys/kernel/config/xe/0000:03:00.0/survivability_mode * +* It is the responsibility of the user to clear the mode once firmware flash is complete. +* * Refer :ref:`xe_configfs` for more details on how to use configfs * * Survivability mode is indicated by the below admin-only readable sysfs which provides additional
@@ -146,7 +148,6 @@ static void xe_survivability_mode_fini(void *arg)struct pci_dev *pdev =to_pci_dev (xe->drm.dev);struct device *dev = &pdev->dev; -xe_configfs_clear_survivability_mode (pdev);sysfs_remove_file (&dev->kobj, &dev_attr_survivability_mode.attr); }
drivers/gpu/drm/xe/xe_vm.c +41 -1
73 lines not on this page · raw message
drivers/gpu/drm/xe/xe_vm.h +2 -0
@@ -268,6 +268,8 @@ struct dma_fence *xe_vm_bind_kernel_bo(struct xe_vm *vm, struct xe_bo *bo, struct xe_exec_queue *q, u64 addr, enum xe_cache_level cache_lvl); +void xe_vm_resume_rebind_worker (struct xe_vm *vm); +/** * xe_vm_resv() - Return's the vm's reservation object * @vm: The vm
drivers/gpu/drm/xe/xe_vm_types.h +5 -0
@@ -286,6 +286,11 @@ struct xe_vm {* BOs */ struct work_struct rebind_work; +/** +* @preempt.pm_activate_link: Link to list of rebind workers to be +* kicked on resume. +*/ +struct list_head pm_activate_link; } preempt;/** @um: unified memory state */
drivers/i2c/busses/i2c-i801.c +1 -1
@@ -1052,7 +1052,7 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE_DATA(INTEL, METEOR_LAKE_P_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, { PCI_DEVICE_DATA(INTEL, METEOR_LAKE_SOC_S_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, { PCI_DEVICE_DATA(INTEL, METEOR_LAKE_PCH_S_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, - { PCI_DEVICE_DATA(INTEL, BIRCH_STREAM_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, + { PCI_DEVICE_DATA(INTEL, BIRCH_STREAM_SMBUS, FEATURES_ICH5) }, { PCI_DEVICE_DATA(INTEL, ARROW_LAKE_H_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, { PCI_DEVICE_DATA(INTEL, PANTHER_LAKE_H_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) }, { PCI_DEVICE_DATA(INTEL, PANTHER_LAKE_P_SMBUS, FEATURES_ICH5 | FEATURE_TCO_CNL) },
drivers/i2c/busses/i2c-rtl9300.c +8 -14
@@ -99,6 +99,9 @@ static int rtl9300_i2c_config_xfer(struct rtl9300_i2c *i2c, struct rtl9300_i2c_c {u32 val, mask; +if (len <1 || len >16 ) +return -EINVAL ; + val = chan->bus_freq <<RTL9300_I2C_MST_CTRL2_SCL_FREQ_OFS ; mask =RTL9300_I2C_MST_CTRL2_SCL_FREQ_MASK ;
@@ -222,15 +225,6 @@ static int rtl9300_i2c_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned s }switch (size) { -case I2C_SMBUS_QUICK : - ret =rtl9300_i2c_config_xfer (i2c, chan, addr,0 ); -if (ret) - goto out_unlock; - ret =rtl9300_i2c_reg_addr_set (i2c,0 ,0 ); -if (ret) - goto out_unlock; -break ; -case I2C_SMBUS_BYTE :if (read_write ==I2C_SMBUS_WRITE ) { ret =rtl9300_i2c_config_xfer (i2c, chan, addr,0 );
@@ -312,9 +306,9 @@ static int rtl9300_i2c_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned sstatic u32 rtl9300_i2c_func (struct i2c_adapter *a) { -return I2C_FUNC_SMBUS_QUICK |I2C_FUNC_SMBUS_BYTE | -I2C_FUNC_SMBUS_BYTE_DATA |I2C_FUNC_SMBUS_WORD_DATA | -I2C_FUNC_SMBUS_BLOCK_DATA ; +return I2C_FUNC_SMBUS_BYTE |I2C_FUNC_SMBUS_BYTE_DATA | +I2C_FUNC_SMBUS_WORD_DATA |I2C_FUNC_SMBUS_BLOCK_DATA | +I2C_FUNC_SMBUS_I2C_BLOCK ; }static const struct i2c_algorithm rtl9300_i2c_algo = {
@@ -323,7 +317,7 @@ static const struct i2c_algorithm rtl9300_i2c_algo = { };static struct i2c_adapter_quirks rtl9300_i2c_quirks = { - .flags =I2C_AQ_NO_CLK_STRETCH , + .flags =I2C_AQ_NO_CLK_STRETCH |I2C_AQ_NO_ZERO_LEN , .max_read_len =16 , .max_write_len =16 , };
@@ -353,7 +347,7 @@ static int rtl9300_i2c_probe(struct platform_device *pdev)platform_set_drvdata (pdev, i2c); -if (device_get_child_node_count (dev) >=RTL9300_I2C_MUX_NCHAN ) +if (device_get_child_node_count (dev) >RTL9300_I2C_MUX_NCHAN )return dev_err_probe (dev, -EINVAL ,"Too many channels\n" );device_for_each_child_node (dev, child) {
drivers/input/joystick/xpad.c +2 -0
@@ -422,6 +422,7 @@ static const struct xpad_device { { 0x3537, 0x1010, "GameSir G7 SE", 0, XTYPE_XBOXONE }, { 0x366c, 0x0005, "ByoWave Proteus Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE, FLAG_DELAY_INIT }, { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, + { 0x37d7, 0x2501, "Flydigi Apex 5", 0, XTYPE_XBOX360 }, { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
@@ -578,6 +579,7 @@ static const struct usb_device_id xpad_table[] = {XPAD_XBOX360_VENDOR (0x3537 ),/* GameSir Controllers */ XPAD_XBOXONE_VENDOR (0x3537 ),/* GameSir Controllers */ XPAD_XBOXONE_VENDOR (0x366c ),/* ByoWave controllers */ +XPAD_XBOX360_VENDOR (0x37d7 ),/* Flydigi Controllers */ XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */ { } };
drivers/input/misc/iqs7222.c +3 -0
@@ -2427,6 +2427,9 @@ static int iqs7222_parse_chan(struct iqs7222_private *iqs7222,if (error)return error; +if (!iqs7222->kp_type[chan_index][i]) +continue ; +if (!dev_desc->event_offset)continue ;
drivers/input/serio/i8042-acpipnpio.h +14 -0
@@ -1155,6 +1155,20 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = { .driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS | SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP) }, + { + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "XxHP4NAx"), + }, + .driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS | + SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP) + }, + { + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "XxKK4NAx_XxSP4NAx"), + }, + .driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS | + SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP) + }, /* * A lot of modern Clevo barebones have touchpad and/or keyboard issues * after suspend fixable with the forcenorestore quirk.
drivers/iommu/intel/cache.c +3 -2
@@ -370,7 +370,7 @@ static void cache_tag_flush_iotlb(struct dmar_domain *domain, struct cache_tag *struct intel_iommu *iommu = tag->iommu;u64 type =DMA_TLB_PSI_FLUSH ; -if (domain->use_first_level) { +if (intel_domain_is_fs_paging (domain)) {qi_batch_add_piotlb (iommu, tag->domain_id, tag->pasid, addr, pages, ih, domain->qi_batch);return ;
@@ -529,7 +529,8 @@ void cache_tag_flush_range_np(struct dmar_domain *domain, unsigned long start,qi_batch_flush_descs (iommu, domain->qi_batch); iommu = tag->iommu; -if (!cap_caching_mode (iommu->cap) || domain->use_first_level) { +if (!cap_caching_mode (iommu->cap) || +intel_domain_is_fs_paging (domain)) {iommu_flush_write_buffer (iommu);continue ; }
drivers/iommu/intel/iommu.c +180 -83
371 lines not on this page · raw message
drivers/iommu/intel/iommu.h +12 -0
@@ -1381,6 +1381,18 @@ struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, u8 devfn, int alloc);extern const struct iommu_ops intel_iommu_ops; +extern const struct iommu_domain_ops intel_fs_paging_domain_ops; +extern const struct iommu_domain_ops intel_ss_paging_domain_ops; + +static inline bool intel_domain_is_fs_paging (struct dmar_domain *domain) +{ +return domain->domain.ops == &intel_fs_paging_domain_ops; +} + +static inline bool intel_domain_is_ss_paging (struct dmar_domain *domain) +{ +return domain->domain.ops == &intel_ss_paging_domain_ops; +}#ifdef CONFIG_INTEL_IOMMU extern int intel_iommu_sm;
drivers/iommu/intel/nested.c +1 -3
@@ -216,8 +216,7 @@ intel_iommu_domain_alloc_nested(struct device *dev, struct iommu_domain *parent,/* Must be nested domain */ if (user_data->type !=IOMMU_HWPT_DATA_VTD_S1 )return ERR_PTR (-EOPNOTSUPP ); -if (parent->ops != intel_iommu_ops.default_domain_ops || - !s2_domain->nested_parent) +if (!intel_domain_is_ss_paging (s2_domain) || !s2_domain->nested_parent)return ERR_PTR (-EINVAL ); ret = iommu_copy_struct_from_user(&vtd, user_data,
@@ -229,7 +228,6 @@ intel_iommu_domain_alloc_nested(struct device *dev, struct iommu_domain *parent,if (!domain)return ERR_PTR (-ENOMEM ); - domain->use_first_level = true; domain->s2_domain = s2_domain; domain->s1_cfg = vtd;
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/atmel/nand-controller.c +13 -3
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/stm32_fmc2_nand.c +24 -22
46 lines not on this page · raw message
drivers/mtd/nand/spi/winbond.c +78 -2
80 lines not on this page · raw message
drivers/net/ethernet/freescale/fec_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_ethtool.c +1 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/icssg/icssg_prueth.c +14 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/libwx/wx_hw.c +0 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath12k/dp_mon.c +16 -6
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath12k/dp_rx.c +6 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath12k/hw.c +55 -0
55 lines not on this page · raw message
drivers/net/wireless/ath/ath12k/mac.c +71 -56
127 lines not on this page · raw message
drivers/net/wireless/ath/ath12k/peer.h +28 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath12k/wmi.c +53 -5
58 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +19 -6
Lines of this file are not shown. View the raw message.
drivers/usb/host/xhci-dbgcap.c +67 -27
94 lines not on this page · raw message
fs/btrfs/extent_io.c +63 -10
73 lines not on this page · raw message
fs/ceph/inode.c +72 -16
88 lines not on this page · raw message
fs/ceph/mds_client.c +105 -67
172 lines not on this page · raw message
fs/erofs/zmap.c +51 -47
98 lines not on this page · raw message
fs/kernfs/file.c +38 -20
58 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayout.c +13 -8
Lines of this file are not shown. View the raw message.
fs/smb/client/inode.c +69 -17
86 lines not on this page · raw message
fs/smb/client/smb2inode.c +162 -42
204 lines not on this page · raw message
include/net/netfilter/nf_tables_core.h +25 -24
49 lines not on this page · raw message
kernel/dma/debug.c +47 -1
48 lines not on this page · raw message
net/can/j1939/socket.c +52 -0
52 lines not on this page · raw message
net/netfilter/nf_tables_api.c +79 -44
123 lines not on this page · raw message
net/netfilter/nft_lookup.c +52 -15
67 lines not on this page · raw message
net/netfilter/nft_set_hash.c +24 -30
54 lines not on this page · raw message
net/netfilter/nft_set_pipapo.c +78 -136
214 lines not on this page · raw message
net/netfilter/nft_set_rbtree.c +22 -24
46 lines not on this page · raw message
net/xdp/xsk.c +99 -14
113 lines not on this page · raw message
tools/testing/selftests/net/can/config new file +3 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.