Linux 6.9.9
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.9.9 kernel.
All users of the 6.9 kernel series must upgrade.
The updated 6.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.9.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts | 2 arch/powerpc/include/asm/interrupt.h | 10 arch/powerpc/include/asm/io.h | 2 arch/powerpc/include/asm/percpu.h | 10 arch/powerpc/kernel/head_64.S | 5 arch/powerpc/kernel/setup_64.c | 2 arch/powerpc/kexec/core_64.c | 11 arch/powerpc/platforms/pseries/kexec.c | 8 arch/powerpc/platforms/pseries/pseries.h | 1 arch/powerpc/platforms/pseries/setup.c | 1 arch/powerpc/xmon/xmon.c | 6 arch/riscv/include/asm/errata_list.h | 12 arch/riscv/include/asm/tlbflush.h | 19 + arch/riscv/kernel/machine_kexec.c | 10 arch/riscv/kvm/vcpu_pmu.c | 2 arch/riscv/mm/tlbflush.c | 23 - arch/s390/include/asm/kvm_host.h | 1 arch/s390/include/asm/processor.h | 2 arch/s390/kvm/kvm-s390.c | 1 arch/s390/kvm/kvm-s390.h | 15 + arch/s390/kvm/priv.c | 32 ++ block/blk-settings.c | 8 crypto/aead.c | 3 crypto/cipher.c | 3 drivers/base/regmap/regmap-i2c.c | 3 drivers/block/null_blk/zoned.c | 11 drivers/bluetooth/hci_bcm4377.c | 10 drivers/bluetooth/hci_qca.c | 18 + drivers/cdrom/cdrom.c | 2 drivers/clk/mediatek/clk-mt8183-mfgcfg.c | 1 drivers/clk/mediatek/clk-mtk.c | 24 + drivers/clk/mediatek/clk-mtk.h | 2 drivers/clk/qcom/clk-alpha-pll.c | 3 drivers/clk/qcom/gcc-ipq9574.c | 10 drivers/clk/qcom/gcc-sm6350.c | 10 drivers/clk/sunxi-ng/ccu_common.c | 18 - drivers/crypto/hisilicon/debugfs.c | 21 + drivers/crypto/hisilicon/sec2/sec_main.c | 2 drivers/firmware/dmi_scan.c | 11 drivers/firmware/sysfb.c | 12 drivers/gpio/gpio-mmio.c | 2 drivers/gpio/gpiolib-of.c | 22 + drivers/gpu/drm/amd/amdgpu/aldebaran.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 20 - drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 3 drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c | 2 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 2 drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 6 drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 3 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 8 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 8 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 106 +++++--- drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c | 4 drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c | 6 drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c | 8 drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c | 3 drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c | 5 drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c | 5 drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c | 2 drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c | 2 drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c | 5 drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c | 2 drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c | 2 drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c | 2 drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c | 8 drivers/gpu/drm/amd/include/atomfirmware.h | 4 drivers/gpu/drm/drm_fbdev_generic.c | 3 drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 drivers/gpu/drm/lima/lima_gp.c | 2 drivers/gpu/drm/lima/lima_mmu.c | 5 drivers/gpu/drm/lima/lima_pp.c | 4 drivers/gpu/drm/nouveau/nouveau_connector.c | 3 drivers/gpu/drm/ttm/ttm_bo.c | 1 drivers/gpu/drm/xe/tests/xe_dma_buf.c | 3 drivers/gpu/drm/xe/xe_gt_mcr.c | 6 drivers/gpu/drm/xe/xe_migrate.c | 8 drivers/hwmon/dell-smm-hwmon.c | 8 drivers/i2c/busses/i2c-i801.c | 2 drivers/i2c/busses/i2c-pnx.c | 48 --- drivers/infiniband/core/user_mad.c | 21 + drivers/input/ff-core.c | 7 drivers/leds/leds-an30259a.c | 14 - drivers/leds/leds-mlxreg.c | 14 - drivers/media/dvb-frontends/as102_fe_types.h | 2 drivers/media/dvb-frontends/tda10048.c | 9 drivers/media/dvb-frontends/tda18271c2dd.c | 4 drivers/media/i2c/st-mipid02.c | 2 drivers/media/i2c/tc358746.c | 3 drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 22 + drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.c | 5 drivers/media/usb/dvb-usb/dib0700_devices.c | 18 + drivers/media/usb/dvb-usb/dw2102.c | 120 +++++---- drivers/media/usb/s2255/s2255drv.c | 20 - drivers/mtd/nand/raw/nand_base.c | 66 +++-- drivers/mtd/nand/raw/rockchip-nand-controller.c | 6 drivers/net/bonding/bond_options.c | 6 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c | 1 drivers/net/dsa/mv88e6xxx/chip.c | 4 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 drivers/net/ethernet/google/gve/gve_ethtool.c | 41 ++- drivers/net/ethernet/intel/e1000e/netdev.c | 132 +++++----- drivers/net/ethernet/intel/ice/ice_hwmon.c | 2 drivers/net/ethernet/intel/ice/ice_ptp.c | 131 +++++++-- drivers/net/ethernet/intel/ice/ice_ptp.h | 9 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c | 48 ++- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 5 drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c | 37 ++ drivers/net/ethernet/mellanox/mlxsw/core_linecards.c | 1 drivers/net/ethernet/renesas/rswitch.c | 4 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 7 drivers/net/ethernet/wangxun/libwx/wx_hw.c | 1 drivers/net/ethernet/wangxun/libwx/wx_lib.c | 10 drivers/net/ethernet/wangxun/libwx/wx_type.h | 1 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 2 drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c | 124 +++------ drivers/net/ethernet/wangxun/txgbe/txgbe_irq.h | 2 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 9 drivers/net/ntb_netdev.c | 2 drivers/net/phy/aquantia/aquantia.h | 5 drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 10 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c | 5 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 5 drivers/net/wireless/microchip/wilc1000/hif.c | 3 drivers/net/wireless/realtek/rtw89/fw.c | 4 drivers/nfc/virtual_ncidev.c | 4 drivers/nvme/host/multipath.c | 2 drivers/nvme/host/pci.c | 3 drivers/nvme/target/core.c | 9 drivers/platform/x86/toshiba_acpi.c | 31 +- drivers/platform/x86/touchscreen_dmi.c | 36 ++ drivers/s390/block/dasd_eckd.c | 4 drivers/s390/block/dasd_fba.c | 2 drivers/s390/cio/vfio_ccw_cp.c | 9 drivers/s390/crypto/pkey_api.c | 109 +++----- drivers/scsi/mpi3mr/mpi3mr_transport.c | 10 drivers/scsi/qedf/qedf_io.c | 6 drivers/spi/spi-cadence-xspi.c | 20 + drivers/thermal/mediatek/lvts_thermal.c | 2 drivers/tty/serial/imx.c | 2 drivers/usb/host/xhci-ring.c | 5 drivers/vhost/scsi.c | 17 - drivers/vhost/vhost.c | 114 ++++++-- drivers/vhost/vhost.h | 2 drivers/virtio/virtio_pci_common.c | 2 fs/btrfs/block-group.c | 13 fs/btrfs/extent_io.c | 2 fs/btrfs/qgroup.c | 10 fs/btrfs/scrub.c | 2 fs/btrfs/space-info.c | 24 + fs/f2fs/f2fs.h | 12 fs/f2fs/super.c | 27 +- fs/f2fs/sysfs.c | 14 - fs/jffs2/super.c | 1 fs/locks.c | 9 fs/nilfs2/alloc.c | 19 + fs/nilfs2/alloc.h | 4 fs/nilfs2/dat.c | 2 fs/nilfs2/dir.c | 6 fs/nilfs2/ifile.c | 7 fs/nilfs2/nilfs.h | 10 fs/nilfs2/the_nilfs.c | 6 fs/nilfs2/the_nilfs.h | 2 fs/ntfs3/xattr.c | 5 fs/orangefs/super.c | 3 fs/super.c | 11 include/linux/dynamic_queue_limits.h | 3 include/linux/fsnotify.h | 8 include/linux/mutex.h | 27 ++ include/linux/phy.h | 2 include/linux/sched/vhost_task.h | 3 include/net/bluetooth/hci.h | 11 include/net/mac80211.h | 2 include/uapi/linux/cn_proc.h | 3 kernel/dma/map_benchmark.c | 3 kernel/exit.c | 2 kernel/locking/mutex-debug.c | 12 kernel/power/swap.c | 2 kernel/vhost_task.c | 53 ++-- lib/fortify_kunit.c | 9 lib/kunit/try-catch.c | 3 mm/page-writeback.c | 32 ++ net/bluetooth/hci_conn.c | 15 - net/bluetooth/hci_event.c | 33 ++ net/bluetooth/iso.c | 3 net/bpf/bpf_dummy_struct_ops.c | 55 +++- net/core/datagram.c | 19 - net/ipv4/inet_diag.c | 2 net/ipv4/tcp_input.c | 9 net/ipv4/tcp_metrics.c | 1 net/mac802154/main.c | 14 - net/netfilter/nf_tables_api.c | 3 net/sctp/socket.c | 7 net/wireless/nl80211.c | 6 scripts/link-vmlinux.sh | 2 sound/core/ump.c | 8 sound/pci/hda/patch_realtek.c | 9 tools/lib/bpf/bpf_core_read.h | 1 tools/lib/bpf/features.c | 32 ++ tools/power/x86/turbostat/turbostat.c | 35 +- tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c | 34 ++ tools/testing/selftests/bpf/progs/dummy_st_ops_success.c | 15 - tools/testing/selftests/kselftest_harness.h | 43 +-- tools/testing/selftests/net/gro.c | 3 tools/testing/selftests/net/ip_local_port_range.c | 2 tools/testing/selftests/net/mptcp/pm_nl_ctl.c | 2 tools/testing/selftests/net/msg_zerocopy.c | 14 - tools/testing/selftests/resctrl/cat_test.c | 32 +- 219 files changed, 1973 insertions(+), 862 deletions(-)
Aleksandr Mishin (1):
mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
Alex Deucher (2):
drm/amdgpu/atomfirmware: silence UBSAN warning drm/amdgpu: silence UBSAN warning
Alex Hung (6):
drm/amd/display: Check index msg_id before read or write drm/amd/display: Check pipe offset before setting vblank drm/amd/display: Skip finding free audio for unknown engine_id drm/amd/display: Do not return negative stream id for array drm/amd/display: ASSERT when failing to find index by plane/stream id drm/amd/display: Fix uninitialized variables in DM
Andrii Nakryiko (2):
libbpf: detect broken PID filtering logic for multi-uprobe
libbpf: don't close(-1) in multi-uprobe feature detector
Armin Wolf (2):
platform/x86: toshiba_acpi: Fix quickstart quirk handling
hwmon: (dell-smm) Add Dell G15 5511 to fan control whitelist
Atish Patra (1):
RISC-V: KVM: Fix the initial sample period value
Babu Moger (1):
selftests/resctrl: Fix non-contiguous CBM for AMD
Bartosz Golaszewski (1):
net: phy: aquantia: add missing include guards
Bob Zhou (1):
drm/amdgpu: fix double free err_addr pointer warnings
Boris Burkov (1):
btrfs: fix folio refcount in __alloc_dummy_extent_buffer()
Breno Leitao (1):
net: dql: Avoid calling BUG() when WARN() is enough
Chao Yu (1):
f2fs: check validation of fault attrs in f2fs_build_fault_attr()
Chenghai Huang (1):
crypto: hisilicon/debugfs - Fix debugfs uninit process issue
Chris Mi (1):
net/mlx5: E-switch, Create ingress ACL when needed
Christian Borntraeger (1):
KVM: s390: fix LPSWEY handling
Christian Brauner (2):
fs: don't misleadingly warn during thaw operations
swap: yield device immediately
Corinna Vinschen (1):
igc: fix a log entry using uninitialized netdev
Damien Le Moal (1):
null_blk: Do not allow runt zone with zone capacity smaller then zone size
Dave Jiang (1):
net: ntb_netdev: Move ntb_netdev_rx_handler() to call netif_rx() from __netif_rx()
Dima Ruinskiy (1):
e1000e: Fix S0ix residency on corporate systems
Dmitry Antipov (1):
mac802154: fix time calculation in ieee802154_configure_durations()
Dmitry Torokhov (2):
gpiolib: of: fix lookup quirk for MIPS Lantiq
gpiolib: of: add polarity quirk for TSC2005
Dragan Simic (1):
arm64: dts: rockchip: Fix the DCDC_REG2 minimum voltage on Quartz64 Model B
Eduard Zingerman (5):
bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable selftests/bpf: adjust dummy_st_ops_success to detect additional error selftests/bpf: do not pass NULL for non-nullable params in dummy_st_ops
bpf: check bpf_dummy_struct_ops program params for test runs selftests/bpf: dummy_st_ops should reject 0 for non-nullable params
Edward Adam Davis (2):
Bluetooth: Ignore too large handle values in BIG
nfc/nci: Add the inconsistency check between the input data length and count
Eric Dumazet (1):
wifi: cfg80211: restrict NL80211_ATTR_TXQ_QUANTUM values
Eric Farman (1):
s390/vfio_ccw: Fix target addresses of TIC CCWs
Erick Archer (2):
sctp: prefer struct_size over open coded arithmetic
Input: ff-core - prefer struct_size over open coded arithmetic
Erico Nunes (1):
drm/lima: fix shared irq handling on driver remove
Fedor Pchelkin (1):
dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
Fei Shao (1):
media: mediatek: vcodec: Only free buffer VA that is not NULL
Felix Fietkau (1):
wifi: mt76: replace skb_put with skb_put_zero
Florian Westphal (1):
netfilter: nf_tables: unconditionally flush pending work before notifier
Frank Oltmanns (1):
clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
Furong Xu (1):
net: stmmac: enable HW-accelerated VLAN stripping for gmac4 only
Gabor Juhos (1):
clk: qcom: clk-alpha-pll: set ALPHA_EN bit for Stromer Plus PLLs
George Stark (3):
locking/mutex: Introduce devm_mutex_init()
leds: mlxreg: Use devm_mutex_init() for mutex initialization
leds: an30259a: Use devm_mutex_init() for mutex initialization
Ghadi Elie Rahme (1):
bnx2x: Fix multiple UBSAN array-index-out-of-bounds
Greg Kroah-Hartman (1):
Linux 6.9.9
Greg Kurz (1):
powerpc/xmon: Check cpu id in commands "c#", "dp#" and "dx#"
Hailey Mothershead (1):
crypto: aead,cipher - zeroize key buffer after use
Hannes Reinecke (1):
block: check for max_hw_sectors underflow
Hawking Zhang (1):
drm/amdgpu: correct hbm field in boot status
Hector Martin (1):
Bluetooth: hci_bcm4377: Fix msgid release
Heiner Kallweit (1):
i2c: i801: Annotate apanel_addr as __ro_after_init
Hersen Wu (2):
drm/amd/display: Add NULL pointer check for kzalloc drm/amd/display: Fix overlapping copy within dml_core_mode_programming
Holger Dengler (3):
s390/pkey: Wipe sensitive data on failure s390/pkey: Wipe copies of clear-key structures on failure s390/pkey: Wipe copies of protected- and secure-keys
Iulia Tanasescu (1):
Bluetooth: ISO: Check socket flag instead of hcon
Jacob Keller (2):
ice: Don't process extts if PTP is disabled
ice: Reject pin requests with unsupported flags
Jakub Kicinski (1):
tcp_metrics: validate source addr length
Jan Kara (3):
mm: avoid overflows in dirty throttling logic
fsnotify: Do not generate events for O_PATH file descriptors Revert "mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again"
Jann Horn (1):
filelock: Remove locks reliably when fcntl/close race is detected
Jean Delvare (1):
firmware: dmi: Stop decoding on broken entry
Jesse Zhang (2):
drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc drm/amdgpu: fix the warning about the expression (int)size - len
Jian-Hong Pan (1):
ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897
Jianbo Liu (1):
net/mlx5e: Add mqprio_rl cleanup and free in mlx5e_priv_cleanup()
Jiawen Wu (4):
net: txgbe: initialize num_q_vectors for MSI/INTx interrupts
net: txgbe: remove separate irq request for MSI and INTx
net: txgbe: add extra handle for MSI/INTx into thread irq handle
net: txgbe: free isb resources at the right time
Jim Wylder (1):
regmap-i2c: Subtract reg size from max_write
Jimmy Assarsson (1):
can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct
Jinglin Wen (1):
powerpc/64s: Fix unnecessary copy to 0 when kernel is booted at address 0
Jinliang Zheng (1):
mm: optimize the redundant loop of mm_update_owner_next()
Johannes Berg (1):
wifi: mac80211: fix BSS_CHANGED_UNSOL_BCAST_PROBE_RESP
John Hubbard (1):
selftests/net: fix uninitialized variables
John Meneghini (1):
scsi: qedf: Make qedf_execute_tmf() non-preemptible
John Schoenick (1):
drm: panel-orientation-quirks: Add quirk for Valve Galileo
Jose E. Marchesi (1):
bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD
Jozef Hopko (1):
wifi: wilc1000: fix ies_len type in connect path
Jules Irenge (1):
s390/pkey: Use kfree_sensitive() to fix Coccinelle warnings
Julien Panis (1):
thermal/drivers/mediatek/lvts_thermal: Check NULL ptr on lvts_data
Justin Stitt (1):
cdrom: rearrange last_media_change check to avoid unintentional overflow
Kees Cook (1):
kunit/fortify: Do not spam logs with fortify WARNs
Konstantin Komarov (1):
fs/ntfs3: Mark volume as dirty if xattr is broken
Kundan Kumar (1):
nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset
Kuniyuki Iwashima (1):
tcp: Don't flag tcp_sk(sk)->rx_opt.saw_unknown for TCP AO.
Lang Yu (1):
drm/amdkfd: Let VRAM allocations go to GTT domain on small APUs
Len Brown (1):
tools/power turbostat: Remember global max_die_id
Leon Romanovsky (2):
net/mlx5e: Present succeeded IPsec SA bytes and packet net/mlx5e: Approximate IPsec per-SA payload data bytes count
Li Zhang (1):
virtio-pci: Check if is_avq is NULL
Lu Yao (1):
btrfs: scrub: initialize ret in scrub_simple_mirror() to fix compilation warning
Luca Weiss (1):
clk: qcom: gcc-sm6350: Fix gpll6* & gpll7 parents
Luiz Augusto von Dentz (1):
Bluetooth: hci_event: Fix setting of unicast qos interval
Ma Jun (2):
drm/amdgpu: Fix uninitialized variable warnings drm/amdgpu: Initialize timestamp for some legacy SOCs
Ma Ke (1):
drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes
Mahesh Salgaonkar (1):
powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt.
Marek Vasut (1):
net: phy: phy_device: Fix PHY LED blinking code comment
Masahiro Yamada (1):
kbuild: fix short log for AS in link-vmlinux.sh
Matt Jan (1):
connector: Fix invalid conversion in cn_proc.h
Matt Roper (1):
drm/xe/mcr: Avoid clobbering DSS steering
Matthew Auld (1):
drm/xe: fix error handling in xe_migrate_update_pgtables
Matthias Schiffer (1):
serial: imx: Raise TX trigger level to 8
Mauro Carvalho Chehab (1):
media: dw2102: fix a potential buffer overflow
Md Sadre Alam (1):
clk: qcom: gcc-ipq9574: Add BRANCH_HALT_VOTED flag
Michael Bunk (1):
media: dw2102: Don't translate i2c read into write
Michael Ellerman (1):
powerpc/64: Set _IO_BASE to POISON_POINTER_DELTA not 0 for CONFIG_PCI=n
Michael Guralnik (1):
IB/core: Implement a limit on UMAD receive List
Mickaël Salaün (2):
kunit: Fix timeout message
selftests/harness: Fix tests timeout and race condition
Mike Christie (4):
vhost: Use virtqueue mutex for swapping worker
vhost: Release worker mutex during flushes
vhost_task: Handle SIGKILL by flushing work and exiting
vhost-scsi: Handle vhost_vq_work_queue failures for events
Mike Marshall (1):
orangefs: fix out-of-bounds fsid access
Milena Olech (1):
ice: Fix improper extts handling
Miquel Raynal (3):
mtd: rawnand: Ensure ECC configuration is propagated to upper layers
mtd: rawnand: Fix the nand_read_data_op() early check
mtd: rawnand: Bypass a couple of sanity checks during NAND identification
Naohiro Aota (2):
btrfs: zoned: fix calc_available_free_space() for zoned mode
btrfs: fix adding block group to a reclaim list and the unused list during reclaim
Nathan Chancellor (2):
f2fs: Add inline to f2fs_build_fault_attr() stub
scsi: mpi3mr: Use proper format specifier in mpi3mr_sas_port_add()
Neal Cardwell (1):
UPSTREAM: tcp: fix DSACK undo in fast recovery to call tcp_try_to_open()
Nicholas Piggin (1):
powerpc/pseries: Fix scv instruction crash with kexec
Niklas Neronin (1):
usb: xhci: prevent potential failure in handle_tx_event() for Transfer events without TRB
Nilay Shroff (1):
nvme-multipath: find NUMA path only for online numa-node
Patryk Wlazlyn (1):
tools/power turbostat: Avoid possible memory corruption due to sparse topology IDs
Pavan Chebbi (1):
bnxt_en: Fix the resource check condition for RSS contexts
Pavel Skripkin (1):
bluetooth/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX
Petr Oros (1):
ice: use proper macro for testing bit
Pin-yen Lin (1):
clk: mediatek: mt8183: Only enable runtime PM on mt8183-mfgcfg
Piotr Wojtaszczyk (1):
i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr
Qu Wenruo (1):
btrfs: always do the basic checks for btrfs_qgroup_inherit structure
Radu Rendec (1):
net: rswitch: Avoid use-after-free in rswitch_poll()
Ricardo Ribalda (7):
media: dvb: as102-fe: Fix as10x_register_addr packing
media: dvb-usb: dib0700_devices: Add missing release_firmware()
media: dvb-frontends: tda18271c2dd: Remove casting during div
media: s2255: Use refcount_t instead of atomic_t for num_channels
media: i2c: st-mipid02: Use the correct div function
media: tc358746: Use the correct div_ function
media: dvb-frontends: tda10048: Fix integer overflow
Rodrigo Vivi (1):
drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf
Ryusuke Konishi (3):
nilfs2: fix inode number range checks
nilfs2: add missing check for inode numbers on directory entries
nilfs2: fix incorrect inode allocation from reserved inodes
Sagi Grimberg (2):
net: allow skb_datagram_iter to be called from any context
nvmet: fix a possible leak when destroy a ctrl during qp establishment
Sam Sun (1):
bonding: Fix out-of-bounds read in bond_option_arp_ip_targets_set()
Samuel Holland (1):
riscv: Apply SiFive CIP-1200 workaround to single-ASID sfence.vma
Sasha Neftin (1):
Revert "igc: fix a log entry using uninitialized netdev"
Shailend Chand (1):
gve: Account for stopped queues when reading NIC stats
Shigeru Yoshida (1):
inet_diag: Initialize pad field in struct inet_diag_req_v2
Shiji Yang (1):
gpio: mmio: do not calculate bgpio_bits via "ngpios"
Simon Horman (1):
net: dsa: mv88e6xxx: Correct check for empty list
Song Shuai (1):
riscv: kexec: Avoid deadlock in kexec crash path
StanleyYP Wang (1):
wifi: mt76: mt7996: add sanity checks for background radar trigger
Stefan Haberland (1):
s390/dasd: Fix invalid dereferencing of indirect CCW data pointer
Sven Peter (1):
Bluetooth: Add quirk to ignore reserved PHY bits in LE Extended Adv Report
Sven Schnelle (1):
s390: Mark psw in __load_psw_mask() as __unitialized
Takashi Iwai (1):
ALSA: ump: Set default protocol when not given explicitly
Thomas Hellström (1):
drm/ttm: Always take the bo delayed cleanup path for imported bos
Thomas Huth (1):
drm/fbdev-generic: Fix framebuffer on big endian devices
Thomas Zimmermann (1):
firmware: sysfb: Fix reference count of sysfb parent device
Tim Huang (1):
drm/amdgpu: fix uninitialized scalar variable warning
Tomas Henzl (1):
scsi: mpi3mr: Sanitise num_phys
Val Packett (1):
mtd: rawnand: rockchip: ensure NVDDR timings are rejected
Wang Yong (1):
jffs2: Fix potential illegal address access in jffs2_free_inode
Wenjing Liu (1):
drm/amd/display: update pipe topology log to support subvp
Wenkai Lin (1):
crypto: hisilicon/sec2 - fix for register offset
Witold Sadowski (1):
spi: cadence: Ensure data lines set to low during dummy-cycle period
Yijie Yang (1):
net: stmmac: dwmac-qcom-ethqos: fix error array size
Zijian Zhang (2):
selftests: fix OOM in msg_zerocopy selftest
selftests: make order checking verbose in msg_zerocopy selftest
Zijun Hu (1):
Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot
Zong-Zhe Yang (1):
wifi: rtw89: fw: scan offload prohibit all 6 GHz channel if no 6 GHz sband
hmtheboy154 (2):
platform/x86: touchscreen_dmi: Add info for GlobalSpace SolT IVW 11.6" tablet platform/x86: touchscreen_dmi: Add info for the EZpad 6s Pro
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 9 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts +1 -1
@@ -289,7 +289,7 @@ vdd_gpu: DCDC_REG2 { regulator-name = "vdd_gpu"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <900000>; + regulator-min-microvolt = <500000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <6001>;
arch/powerpc/include/asm/interrupt.h +10 -0
@@ -336,6 +336,14 @@ static inline void interrupt_nmi_enter_prepare(struct pt_regs *regs, struct inteif (IS_ENABLED (CONFIG_KASAN ))return ; +/* +* Likewise, do not use it in real mode if percpu first chunk is not +* embedded. With CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK enabled there +* are chances where percpu allocation can come from vmalloc area. +*/ +if (percpu_first_chunk_is_paged) +return ; +/* Otherwise, it should be safe to call it */ nmi_enter (); }
@@ -351,6 +359,8 @@ static inline void interrupt_nmi_exit_prepare(struct pt_regs *regs, struct inter// no nmi_exit for a pseries hash guest taking a real mode exception }else if (IS_ENABLED (CONFIG_KASAN )) {// no nmi_exit for KASAN in real mode + }else if (percpu_first_chunk_is_paged) { +// no nmi_exit if percpu first chunk is not embedded }else {nmi_exit (); }
arch/powerpc/include/asm/io.h +1 -1
@@ -37,7 +37,7 @@ extern struct pci_dev *isa_bridge_pcidev;* define properly based on the platform */ #ifndef CONFIG_PCI -#define _IO_BASE 0 +#define _IO_BASE POISON_POINTER_DELTA#define _ISA_MEM_BASE 0#define PCI_DRAM_OFFSET 0#elif defined(CONFIG_PPC32 )
arch/powerpc/include/asm/percpu.h +10 -0
@@ -15,6 +15,16 @@#endif /* CONFIG_SMP */ #endif /* __powerpc64__ */ +#if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK ) && defined(CONFIG_SMP ) +#include <linux/jump_label.h> +DECLARE_STATIC_KEY_FALSE (__percpu_first_chunk_is_paged); + +#define percpu_first_chunk_is_paged \ + (static_key_enabled(&__percpu_first_chunk_is_paged.key)) +#else +#define percpu_first_chunk_is_paged false +#endif /* CONFIG_PPC64 && CONFIG_SMP */ +#include <asm-generic/percpu.h> #include <asm/paca.h>
arch/powerpc/kernel/head_64.S +3 -2
@@ -647,8 +647,9 @@ __after_prom_start: * Note: This process overwrites the OF exception vectors. */ LOAD_REG_IMMEDIATE(r3, PAGE_OFFSET) - mr. r4,r26 /* In some cases the loader may */ - beq 9f /* have already put us at zero */ + mr r4,r26 /* Load the virtual source address into r4 */ + cmpld r3,r4 /* Check if source == dest */ + beq 9f /* If so skip the copy */ li r6,0x100 /* Start offset, the first 0x100 */ /* bytes were copied earlier. */
arch/powerpc/kernel/setup_64.c +2 -0
@@ -834,6 +834,7 @@ static __init int pcpu_cpu_to_node(int cpu)unsigned long __per_cpu_offset[NR_CPUS ]__read_mostly ;EXPORT_SYMBOL (__per_cpu_offset); +DEFINE_STATIC_KEY_FALSE (__percpu_first_chunk_is_paged);void __init setup_per_cpu_areas (void ) {
@@ -876,6 +877,7 @@ void __init setup_per_cpu_areas(void)if (rc <0 )panic ("cannot initialize percpu area (err=%d)" , rc); +static_key_enable (&__percpu_first_chunk_is_paged.key); delta = (unsigned long )pcpu_base_addr - (unsigned long )__per_cpu_start;for_each_possible_cpu (cpu) { __per_cpu_offset[cpu] = delta + pcpu_unit_offsets[cpu];
arch/powerpc/kexec/core_64.c +11 -0
@@ -26,6 +26,7 @@#include <asm/paca.h> #include <asm/mmu.h> #include <asm/sections.h> /* _end */ +#include <asm/setup.h> #include <asm/smp.h> #include <asm/hw_breakpoint.h> #include <asm/svm.h>
@@ -315,6 +316,16 @@ void default_machine_kexec(struct kimage *image)if (!kdump_in_progress ())kexec_prepare_cpus (); +#ifdef CONFIG_PPC_PSERIES +/* +* This must be done after other CPUs have shut down, otherwise they +* could execute the 'scv' instruction, which is not supported with +* reloc disabled (see configure_exceptions()). +*/ +if (firmware_has_feature (FW_FEATURE_SET_MODE )) +pseries_disable_reloc_on_exc (); +#endif +printk ("kexec: Starting switchover sequence.\n" );/* switch to a staticly allocated stack. Based on irq stack code.
arch/powerpc/platforms/pseries/kexec.c +0 -8
@@ -61,11 +61,3 @@ void pseries_kexec_cpu_down(int crash_shutdown, int secondary) }else xics_kexec_teardown_cpu (secondary); } - -void pseries_machine_kexec (struct kimage *image) -{ -if (firmware_has_feature (FW_FEATURE_SET_MODE )) -pseries_disable_reloc_on_exc (); - -default_machine_kexec (image); -}
arch/powerpc/platforms/pseries/pseries.h +0 -1
@@ -38,7 +38,6 @@ static inline void smp_init_pseries(void) { }#endif extern void pseries_kexec_cpu_down (int crash_shutdown,int secondary); -void pseries_machine_kexec (struct kimage *image);extern void pSeries_final_fixup (void );
arch/powerpc/platforms/pseries/setup.c +0 -1
@@ -1159,7 +1159,6 @@ define_machine(pseries) { .machine_check_exception = pSeries_machine_check_exception, .machine_check_log_err = pSeries_machine_check_log_err,#ifdef CONFIG_KEXEC_CORE - .machine_kexec = pseries_machine_kexec, .kexec_cpu_down = pseries_kexec_cpu_down,#endif #ifdef CONFIG_MEMORY_HOTPLUG
arch/powerpc/xmon/xmon.c +3 -3
@@ -1350,7 +1350,7 @@ static int cpu_cmd(void) } termch = cpu; -if (!scanhex (&cpu)) { +if (!scanhex (&cpu) || cpu >=num_possible_cpus ()) {/* print cpus waiting or in xmon */ printf ("cpus stopped:" ); last_cpu = first_cpu =NR_CPUS ;
@@ -2772,7 +2772,7 @@ static void dump_pacas(void) termch = c;/* Put c back, it wasn't 'a' */ -if (scanhex (&num)) +if (scanhex (&num) && num <num_possible_cpus ())dump_one_paca (num);else dump_one_paca (xmon_owner);
@@ -2845,7 +2845,7 @@ static void dump_xives(void) termch = c;/* Put c back, it wasn't 'a' */ -if (scanhex (&num)) +if (scanhex (&num) && num <num_possible_cpus ())dump_one_xive (num);else dump_one_xive (xmon_owner);
arch/riscv/include/asm/errata_list.h +11 -1
@@ -43,11 +43,21 @@ ALTERNATIVE(__stringify(RISCV_PTR do_page_fault), \ CONFIG_ERRATA_SIFIVE_CIP_453)#else /* !__ASSEMBLY__ */ -#define ALT_FLUSH_TLB_PAGE (x) \ +#define ALT_SFENCE_VMA_ASID (asid) \ +asm(ALTERNATIVE("sfence.vma x0, %0", "sfence.vma", SIFIVE_VENDOR_ID, \ + ERRATA_SIFIVE_CIP_1200, CONFIG_ERRATA_SIFIVE_CIP_1200) \ + : : "r" (asid) : "memory") + +#define ALT_SFENCE_VMA_ADDR (addr) \ asm(ALTERNATIVE("sfence.vma %0", "sfence.vma", SIFIVE_VENDOR_ID, \ ERRATA_SIFIVE_CIP_1200, CONFIG_ERRATA_SIFIVE_CIP_1200) \ : : "r" (addr) : "memory") +#define ALT_SFENCE_VMA_ADDR_ASID (addr, asid) \ +asm(ALTERNATIVE("sfence.vma %0, %1", "sfence.vma", SIFIVE_VENDOR_ID, \ + ERRATA_SIFIVE_CIP_1200, CONFIG_ERRATA_SIFIVE_CIP_1200) \ + : : "r" (addr), "r" (asid) : "memory") +/* * _val is marked as "will be overwritten", so need to set it to 0 * in the default case.
arch/riscv/include/asm/tlbflush.h +18 -1
@@ -22,10 +22,27 @@ static inline void local_flush_tlb_all(void) __asm__ __volatile__ ("sfence.vma" : : : "memory"); } +static inline void local_flush_tlb_all_asid (unsigned long asid) +{ +if (asid !=FLUSH_TLB_NO_ASID ) +ALT_SFENCE_VMA_ASID (asid); +else +local_flush_tlb_all (); +} +/* Flush one page from local TLB */ static inline void local_flush_tlb_page (unsigned long addr) { -ALT_FLUSH_TLB_PAGE (__asm__ __volatile__ ("sfence.vma %0" : :"r" (addr) :"memory" )); +ALT_SFENCE_VMA_ADDR (addr); +} + +static inline void local_flush_tlb_page_asid (unsigned long addr, +unsigned long asid) +{ +if (asid !=FLUSH_TLB_NO_ASID ) +ALT_SFENCE_VMA_ADDR_ASID (addr, asid); +else +local_flush_tlb_page (addr); }#else /* CONFIG_MMU */ #define local_flush_tlb_all () do { } while (0)
arch/riscv/kernel/machine_kexec.c +1 -9
@@ -121,20 +121,12 @@ static void machine_kexec_mask_interrupts(void)for_each_irq_desc (i, desc) {struct irq_chip *chip; -int ret; chip =irq_desc_get_chip (desc);if (!chip)continue ; -/* -* First try to remove the active state. If this -* fails, try to EOI the interrupt. -*/ - ret =irq_set_irqchip_state (i,IRQCHIP_STATE_ACTIVE , false); - -if (ret &&irqd_irq_inprogress (&desc->irq_data) && - chip->irq_eoi) +if (chip->irq_eoi &&irqd_irq_inprogress (&desc->irq_data)) chip->irq_eoi (&desc->irq_data);if (chip->irq_mask)
arch/riscv/kvm/vcpu_pmu.c +1 -1
@@ -39,7 +39,7 @@ static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc)u64 sample_period;if (!pmc->counter_val) - sample_period = counter_val_mask +1 ; + sample_period = counter_val_mask;else sample_period = (-pmc->counter_val) & counter_val_mask;
arch/riscv/mm/tlbflush.c +0 -23
@@ -7,29 +7,6 @@#include <asm/sbi.h> #include <asm/mmu_context.h> -static inline void local_flush_tlb_all_asid (unsigned long asid) -{ -if (asid !=FLUSH_TLB_NO_ASID ) - __asm__ __volatile__ ("sfence.vma x0, %0" - : - :"r" (asid) - :"memory" ); -else -local_flush_tlb_all (); -} - -static inline void local_flush_tlb_page_asid (unsigned long addr, -unsigned long asid) -{ -if (asid !=FLUSH_TLB_NO_ASID ) - __asm__ __volatile__ ("sfence.vma %0, %1" - : - :"r" (addr),"r" (asid) - :"memory" ); -else -local_flush_tlb_page (addr); -} -/* * Flush entire TLB if number of entries to be flushed is greater * than the threshold below.
arch/s390/include/asm/kvm_host.h +1 -0
@@ -427,6 +427,7 @@ struct kvm_vcpu_stat {u64 instruction_io_other;u64 instruction_lpsw;u64 instruction_lpswe; +u64 instruction_lpswey;u64 instruction_pfmf;u64 instruction_ptff;u64 instruction_sck;
arch/s390/include/asm/processor.h +1 -1
@@ -305,8 +305,8 @@ static inline void __load_psw(psw_t psw)*/ static __always_inline void __load_psw_mask(unsigned long mask) { + psw_t psw __uninitialized;unsigned long addr; -psw_t psw; psw.mask = mask;
arch/s390/kvm/kvm-s390.c +1 -0
@@ -132,6 +132,7 @@ const struct _kvm_stats_desc kvm_vcpu_stats_desc[] = {STATS_DESC_COUNTER (VCPU , instruction_io_other),STATS_DESC_COUNTER (VCPU , instruction_lpsw),STATS_DESC_COUNTER (VCPU , instruction_lpswe), +STATS_DESC_COUNTER (VCPU , instruction_lpswey),STATS_DESC_COUNTER (VCPU , instruction_pfmf),STATS_DESC_COUNTER (VCPU , instruction_ptff), STATS_DESC_COUNTER(VCPU, instruction_sck),
arch/s390/kvm/kvm-s390.h +15 -0
@@ -138,6 +138,21 @@ static inline u64 kvm_s390_get_base_disp_s(struct kvm_vcpu *vcpu, u8 *ar)return (base2 ? vcpu->run->s.regs.gprs[base2] :0 ) + disp2; } +static inline u64 kvm_s390_get_base_disp_siy (struct kvm_vcpu *vcpu,u8 *ar) +{ +u32 base1 = vcpu->arch.sie_block->ipb >>28 ; +s64 disp1; + +/* The displacement is a 20bit _SIGNED_ value */ + disp1 =sign_extend64 (((vcpu->arch.sie_block->ipb &0x0fff0000 ) >>16 ) + + ((vcpu->arch.sie_block->ipb &0xff00 ) <<4 ),19 ); + +if (ar) + *ar = base1; + +return (base1 ? vcpu->run->s.regs.gprs[base1] :0 ) + disp1; +} +static inline void kvm_s390_get_base_disp_sse (struct kvm_vcpu *vcpu,u64 *address1,u64 *address2,u8 *ar_b1,u8 *ar_b2)
arch/s390/kvm/priv.c +32 -0
@@ -797,6 +797,36 @@ static int handle_lpswe(struct kvm_vcpu *vcpu)return 0 ; } +static int handle_lpswey (struct kvm_vcpu *vcpu) +{ +psw_t new_psw; +u64 addr; +int rc; +u8 ar; + + vcpu->stat.instruction_lpswey++; + +if (!test_kvm_facility (vcpu->kvm,193 )) +return kvm_s390_inject_program_int (vcpu,PGM_OPERATION ); + +if (vcpu->arch.sie_block->gpsw.mask &PSW_MASK_PSTATE ) +return kvm_s390_inject_program_int (vcpu,PGM_PRIVILEGED_OP ); + + addr =kvm_s390_get_base_disp_siy (vcpu, &ar); +if (addr &7 ) +return kvm_s390_inject_program_int (vcpu,PGM_SPECIFICATION ); + + rc =read_guest (vcpu, addr, ar, &new_psw,sizeof (new_psw)); +if (rc) +return kvm_s390_inject_prog_cond (vcpu, rc); + + vcpu->arch.sie_block->gpsw = new_psw; +if (!is_valid_psw (&vcpu->arch.sie_block->gpsw)) +return kvm_s390_inject_program_int (vcpu,PGM_SPECIFICATION ); + +return 0 ; +} +static int handle_stidp (struct kvm_vcpu *vcpu) {u64 stidp_data = vcpu->kvm->arch.model.cpuid;
@@ -1462,6 +1492,8 @@ int kvm_s390_handle_eb(struct kvm_vcpu *vcpu)case 0x61 :case 0x62 :return handle_ri (vcpu); +case 0x71 : +return handle_lpswey (vcpu);default :return -EOPNOTSUPP ; }
block/blk-settings.c +6 -2
@@ -104,6 +104,7 @@ static int blk_validate_zoned_limits(struct queue_limits *lim)static int blk_validate_limits (struct queue_limits *lim) {unsigned int max_hw_sectors; +unsigned int logical_block_sectors;/* * Unless otherwise specified, default to 512 byte logical blocks and a
@@ -134,8 +135,11 @@ static int blk_validate_limits(struct queue_limits *lim) lim->max_hw_sectors =BLK_SAFE_MAX_SECTORS ;if (WARN_ON_ONCE (lim->max_hw_sectors <PAGE_SECTORS ))return -EINVAL ; + logical_block_sectors = lim->logical_block_size >>SECTOR_SHIFT ; +if (WARN_ON_ONCE (logical_block_sectors > lim->max_hw_sectors)) +return -EINVAL ; lim->max_hw_sectors =round_down (lim->max_hw_sectors, - lim->logical_block_size >>SECTOR_SHIFT ); + logical_block_sectors);/* * The actual max_sectors value is a complex beast and also takes the
@@ -153,7 +157,7 @@ static int blk_validate_limits(struct queue_limits *lim) lim->max_sectors =min (max_hw_sectors,BLK_DEF_MAX_SECTORS_CAP ); } lim->max_sectors =round_down (lim->max_sectors, - lim->logical_block_size >>SECTOR_SHIFT ); + logical_block_sectors);/* * Random default for the maximum number of segments. Driver should not
crypto/aead.c +1 -2
@@ -45,8 +45,7 @@ static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, alignbuffer = (u8 *)ALIGN ((unsigned long )buffer, alignmask +1 );memcpy (alignbuffer, key, keylen); ret =crypto_aead_alg (tfm)->setkey (tfm, alignbuffer, keylen); -memset (alignbuffer,0 , keylen); -kfree (buffer); +kfree_sensitive (buffer);return ret; }
crypto/cipher.c +1 -2
@@ -34,8 +34,7 @@ static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, alignbuffer = (u8 *)ALIGN ((unsigned long )buffer, alignmask +1 );memcpy (alignbuffer, key, keylen); ret = cia->cia_setkey (crypto_cipher_tfm (tfm), alignbuffer, keylen); -memset (alignbuffer,0 , keylen); -kfree (buffer); +kfree_sensitive (buffer);return ret; }
drivers/base/regmap/regmap-i2c.c +2 -1
@@ -350,7 +350,8 @@ static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c,if (quirks->max_write_len && (bus->max_raw_write ==0 || bus->max_raw_write > quirks->max_write_len)) - max_write = quirks->max_write_len; + max_write = quirks->max_write_len - + (config->reg_bits + config->pad_bits) /BITS_PER_BYTE ;if (max_read || max_write) { ret_bus =kmemdup (bus,sizeof (*bus),GFP_KERNEL );
drivers/block/null_blk/zoned.c +11 -0
@@ -84,6 +84,17 @@ int null_init_zoned_dev(struct nullb_device *dev,return -EINVAL ; } +/* +* If a smaller zone capacity was requested, do not allow a smaller last +* zone at the same time as such zone configuration does not correspond +* to any real zoned device. +*/ +if (dev->zone_capacity != dev->zone_size && + dev->size & (dev->zone_size -1 )) { +pr_err ("A smaller last zone is not allowed with zone capacity smaller than zone size.\n" ); +return -EINVAL ; + } + zone_capacity_sects =mb_to_sects (dev->zone_capacity); dev_capacity_sects =mb_to_sects (dev->size); dev->zone_size_sects =mb_to_sects (dev->zone_size);
drivers/bluetooth/hci_bcm4377.c +9 -1
@@ -495,6 +495,10 @@ struct bcm4377_data;* extended scanning * broken_mws_transport_config: Set to true if the chip erroneously claims to * support MWS Transport Configuration +* broken_le_ext_adv_report_phy: Set to true if this chip stuffs flags inside +* reserved bits of Primary/Secondary_PHY inside +* LE Extended Advertising Report events which +* have to be ignored * send_calibration: Optional callback to send calibration data * send_ptb: Callback to send "PTB" regulatory/calibration data */
@@ -513,6 +517,7 @@ struct bcm4377_hw { unsigned long broken_ext_scan : 1; unsigned long broken_mws_transport_config : 1; unsigned long broken_le_coded : 1; + unsigned long broken_le_ext_adv_report_phy : 1;int (*send_calibration)(struct bcm4377_data *bcm4377); int (*send_ptb)(struct bcm4377_data *bcm4377,
@@ -716,7 +721,7 @@ static void bcm4377_handle_ack(struct bcm4377_data *bcm4377, ring->events[msgid] =NULL ; } -bitmap_release_region (ring->msgids, msgid, ring->n_entries); +bitmap_release_region (ring->msgids, msgid,0 ); unlock:spin_unlock_irqrestore (&ring->lock, flags);
@@ -2373,6 +2378,8 @@ static int bcm4377_probe(struct pci_dev *pdev, const struct pci_device_id *id)set_bit (HCI_QUIRK_BROKEN_EXT_SCAN , &hdev->quirks);if (bcm4377->hw->broken_le_coded)set_bit (HCI_QUIRK_BROKEN_LE_CODED , &hdev->quirks); +if (bcm4377->hw->broken_le_ext_adv_report_phy) +set_bit (HCI_QUIRK_FIXUP_LE_EXT_ADV_REPORT_PHY , &hdev->quirks);pci_set_drvdata (pdev, bcm4377);hci_set_drvdata (hdev, bcm4377);
@@ -2477,6 +2484,7 @@ static const struct bcm4377_hw bcm4377_hw_variants[] = { .clear_pciecfg_subsystem_ctrl_bit19 = true, .broken_mws_transport_config = true, .broken_le_coded = true, + .broken_le_ext_adv_report_phy = true, .send_calibration = bcm4387_send_calibration, .send_ptb = bcm4378_send_ptb, },
drivers/bluetooth/hci_qca.c +15 -3
@@ -2450,15 +2450,27 @@ static void qca_serdev_shutdown(struct device *dev)struct qca_serdev *qcadev =serdev_device_get_drvdata (serdev);struct hci_uart *hu = &qcadev->serdev_hu;struct hci_dev *hdev = hu->hdev; -struct qca_data *qca = hu->priv;const u8 ibs_wake_cmd[] = {0xFD };const u8 edl_reset_soc_cmd[] = {0x01 ,0x00 ,0xFC ,0x01 ,0x05 };if (qcadev->btsoc_type ==QCA_QCA6390 ) { -if (test_bit (QCA_BT_OFF , &qca->flags) || - !test_bit (HCI_RUNNING , &hdev->flags)) +/* The purpose of sending the VSC is to reset SOC into a initial +* state and the state will ensure next hdev->setup() success. +* if HCI_QUIRK_NON_PERSISTENT_SETUP is set, it means that +* hdev->setup() can do its job regardless of SoC state, so +* don't need to send the VSC. +* if HCI_SETUP is set, it means that hdev->setup() was never +* invoked and the SOC is already in the initial state, so +* don't also need to send the VSC. +*/ +if (test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks) || +hci_dev_test_flag (hdev,HCI_SETUP ))return ; +/* The serdev must be in open state when conrol logic arrives +* here, so also fix the use-after-free issue caused by that +* the serdev is flushed or wrote after it is closed. +*/ serdev_device_write_flush (serdev); ret =serdev_device_write_buf (serdev, ibs_wake_cmd,sizeof (ibs_wake_cmd));
drivers/cdrom/cdrom.c +1 -1
@@ -2358,7 +2358,7 @@ static int cdrom_ioctl_timed_media_change(struct cdrom_device_info *cdi,return -EFAULT ; tmp_info.media_flags =0 ; -if (tmp_info.last_media_change - cdi->last_media_change_ms <0 ) +if (cdi->last_media_change_ms > tmp_info.last_media_change) tmp_info.media_flags |=MEDIA_CHANGED_FLAG ; tmp_info.last_media_change = cdi->last_media_change_ms;
drivers/clk/mediatek/clk-mt8183-mfgcfg.c +1 -0
@@ -29,6 +29,7 @@ static const struct mtk_gate mfg_clks[] = {static const struct mtk_clk_desc mfg_desc = { .clks = mfg_clks, .num_clks =ARRAY_SIZE (mfg_clks), + .need_runtime_pm = true, };static const struct of_device_id of_match_clk_mt8183_mfg[] = {
drivers/clk/mediatek/clk-mtk.c +14 -10
@@ -496,14 +496,16 @@ static int __mtk_clk_simple_probe(struct platform_device *pdev, } -devm_pm_runtime_enable (&pdev->dev); -/* -* Do a pm_runtime_resume_and_get() to workaround a possible -* deadlock between clk_register() and the genpd framework. -*/ - r =pm_runtime_resume_and_get (&pdev->dev); -if (r) -return r; +if (mcd->need_runtime_pm) { +devm_pm_runtime_enable (&pdev->dev); +/* +* Do a pm_runtime_resume_and_get() to workaround a possible +* deadlock between clk_register() and the genpd framework. +*/ + r =pm_runtime_resume_and_get (&pdev->dev); +if (r) +return r; + }/* Calculate how many clk_hw_onecell_data entries to allocate */ num_clks = mcd->num_clks + mcd->num_composite_clks;
@@ -585,7 +587,8 @@ static int __mtk_clk_simple_probe(struct platform_device *pdev, goto unregister_clks; } -pm_runtime_put (&pdev->dev); +if (mcd->need_runtime_pm) +pm_runtime_put (&pdev->dev);return r;
@@ -618,7 +621,8 @@ static int __mtk_clk_simple_probe(struct platform_device *pdev,if (mcd->shared_io && base)iounmap (base); -pm_runtime_put (&pdev->dev); +if (mcd->need_runtime_pm) +pm_runtime_put (&pdev->dev);return r; }
drivers/clk/mediatek/clk-mtk.h +2 -0
@@ -237,6 +237,8 @@ struct mtk_clk_desc {int (*clk_notifier_func)(struct device *dev,struct clk *clk);unsigned int mfg_clk_idx; + +bool need_runtime_pm; };int mtk_clk_pdev_probe (struct platform_device *pdev);
drivers/clk/qcom/clk-alpha-pll.c +3 -0
@@ -2555,6 +2555,9 @@ static int clk_alpha_pll_stromer_plus_set_rate(struct clk_hw *hw,regmap_write (pll->clkr.regmap,PLL_ALPHA_VAL_U (pll), a >>ALPHA_BITWIDTH ); +regmap_update_bits (pll->clkr.regmap,PLL_USER_CTL (pll), +PLL_ALPHA_EN ,PLL_ALPHA_EN ); +regmap_write (pll->clkr.regmap,PLL_MODE (pll),PLL_BYPASSNL );/* Wait five micro seconds or more */
drivers/clk/qcom/gcc-ipq9574.c +6 -4
@@ -2140,9 +2140,10 @@ static struct clk_rcg2 pcnoc_bfdcd_clk_src = {static struct clk_branch gcc_crypto_axi_clk = { .halt_reg =0x16010 , + .halt_check =BRANCH_HALT_VOTED , .clkr = { - .enable_reg =0x16010 , - .enable_mask =BIT (0 ), + .enable_reg =0xb004 , + .enable_mask =BIT (15 ), .hw.init = &(const struct clk_init_data ) { .name ="gcc_crypto_axi_clk" , .parent_hws = (const struct clk_hw *[]) {
@@ -2156,9 +2157,10 @@ static struct clk_branch gcc_crypto_axi_clk = {static struct clk_branch gcc_crypto_ahb_clk = { .halt_reg =0x16014 , + .halt_check =BRANCH_HALT_VOTED , .clkr = { - .enable_reg =0x16014 , - .enable_mask =BIT (0 ), + .enable_reg =0xb004 , + .enable_mask =BIT (16 ), .hw.init = &(const struct clk_init_data ) { .name ="gcc_crypto_ahb_clk" , .parent_hws = (const struct clk_hw *[]) {
drivers/clk/qcom/gcc-sm6350.c +5 -5
@@ -100,8 +100,8 @@ static struct clk_alpha_pll gpll6 = { .enable_mask = BIT(6), .hw.init = &(struct clk_init_data ){ .name ="gpll6" , - .parent_hws = (const struct clk_hw *[]){ - &gpll0.clkr.hw, + .parent_data = &(const struct clk_parent_data ){ + .fw_name ="bi_tcxo" , }, .num_parents =1 , .ops = &clk_alpha_pll_fixed_fabia_ops,
@@ -124,7 +124,7 @@ static struct clk_alpha_pll_postdiv gpll6_out_even = { .clkr.hw.init = &(struct clk_init_data){ .name ="gpll6_out_even" , .parent_hws = (const struct clk_hw *[]){ - &gpll0.clkr.hw, + &gpll6.clkr.hw, }, .num_parents =1 , .ops = &clk_alpha_pll_postdiv_fabia_ops,
@@ -139,8 +139,8 @@ static struct clk_alpha_pll gpll7 = { .enable_mask = BIT(7), .hw.init = &(struct clk_init_data ){ .name ="gpll7" , - .parent_hws = (const struct clk_hw *[]){ - &gpll0.clkr.hw, + .parent_data = &(const struct clk_parent_data ){ + .fw_name ="bi_tcxo" , }, .num_parents =1 , .ops = &clk_alpha_pll_fixed_fabia_ops,
drivers/clk/sunxi-ng/ccu_common.c +12 -6
@@ -132,7 +132,6 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,for (i =0 ; i < desc->hw_clks->num ; i++) {struct clk_hw *hw = desc->hw_clks->hws[i]; -struct ccu_common *common =hw_to_ccu_common (hw);const char *name;if (!hw)
@@ -147,14 +146,21 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,pr_err ("Couldn't register clock %d - %s\n" , i, name); goto err_clk_unreg; } + } + +for (i =0 ; i < desc->num_ccu_clks; i++) { +struct ccu_common *cclk = desc->ccu_clks[i]; + +if (!cclk) +continue ; -if (common->max_rate) -clk_hw_set_rate_range (hw, common->min_rate, - common->max_rate); +if (cclk->max_rate) +clk_hw_set_rate_range (&cclk->hw, cclk->min_rate, + cclk->max_rate);else -WARN (common->min_rate, +WARN (cclk->min_rate,"No max_rate, ignoring min_rate of clock %d - %s\n" , - i, name); + i,clk_hw_get_name (&cclk->hw)); } ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get,
drivers/crypto/hisilicon/debugfs.c +18 -3
@@ -809,8 +809,14 @@ static void dfx_regs_uninit(struct hisi_qm *qm, {int i; +if (!dregs) +return ; +/* Setting the pointer is NULL to prevent double free */ for (i =0 ; i < reg_len; i++) { +if (!dregs[i].regs) +continue ; +kfree (dregs[i].regs); dregs[i].regs =NULL ; }
@@ -860,14 +866,21 @@ static struct dfx_diff_registers *dfx_regs_init(struct hisi_qm *qm,static int qm_diff_regs_init (struct hisi_qm *qm,struct dfx_diff_registers *dregs,u32 reg_len) { +int ret; + qm->debug.qm_diff_regs =dfx_regs_init (qm, qm_diff_regs,ARRAY_SIZE (qm_diff_regs)); -if (IS_ERR (qm->debug.qm_diff_regs)) -return PTR_ERR (qm->debug.qm_diff_regs); +if (IS_ERR (qm->debug.qm_diff_regs)) { + ret =PTR_ERR (qm->debug.qm_diff_regs); + qm->debug.qm_diff_regs =NULL ; +return ret; + } qm->debug.acc_diff_regs =dfx_regs_init (qm, dregs, reg_len);if (IS_ERR (qm->debug.acc_diff_regs)) {dfx_regs_uninit (qm, qm->debug.qm_diff_regs,ARRAY_SIZE (qm_diff_regs)); -return PTR_ERR (qm->debug.acc_diff_regs); + ret =PTR_ERR (qm->debug.acc_diff_regs); + qm->debug.acc_diff_regs =NULL ; +return ret; }return 0 ;
@@ -908,7 +921,9 @@ static int qm_last_regs_init(struct hisi_qm *qm)static void qm_diff_regs_uninit (struct hisi_qm *qm,u32 reg_len) {dfx_regs_uninit (qm, qm->debug.acc_diff_regs, reg_len); + qm->debug.acc_diff_regs =NULL ;dfx_regs_uninit (qm, qm->debug.qm_diff_regs,ARRAY_SIZE (qm_diff_regs)); + qm->debug.qm_diff_regs =NULL ; }/**
drivers/crypto/hisilicon/sec2/sec_main.c +1 -1
@@ -152,7 +152,7 @@ static const struct hisi_qm_cap_info sec_basic_info[] = { {SEC_CORE_TYPE_NUM_CAP, 0x313c, 16, GENMASK(3, 0), 0x1, 0x1, 0x1}, {SEC_CORE_NUM_CAP, 0x313c, 8, GENMASK(7, 0), 0x4, 0x4, 0x4}, {SEC_CORES_PER_CLUSTER_NUM_CAP, 0x313c, 0, GENMASK(7, 0), 0x4, 0x4, 0x4}, - {SEC_CORE_ENABLE_BITMAP, 0x3140, 32, GENMASK(31, 0), 0x17F, 0x17F, 0xF}, + {SEC_CORE_ENABLE_BITMAP, 0x3140, 0, GENMASK(31, 0), 0x17F, 0x17F, 0xF}, {SEC_DRV_ALG_BITMAP_LOW, 0x3144, 0, GENMASK(31, 0), 0x18050CB, 0x18050CB, 0x18670CF}, {SEC_DRV_ALG_BITMAP_HIGH, 0x3148, 0, GENMASK(31, 0), 0x395C, 0x395C, 0x395C}, {SEC_DEV_ALG_BITMAP_LOW, 0x314c, 0, GENMASK(31, 0), 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF},
drivers/firmware/dmi_scan.c +11 -0
@@ -101,6 +101,17 @@ static void dmi_decode_table(u8 *buf, (data - buf + sizeof(struct dmi_header)) <= dmi_len) {const struct dmi_header *dm = (const struct dmi_header *)data; +/* +* If a short entry is found (less than 4 bytes), not only it +* is invalid, but we cannot reliably locate the next entry. +*/ +if (dm->length <sizeof (struct dmi_header )) { +pr_warn (FW_BUG +"Corrupted DMI table, offset %zd (only %d entries processed)\n" , + data - buf, i); +break ; + } +/* * We want to know the total length (formatted area and * strings) before decoding to make sure we won't run off the
drivers/firmware/sysfb.c +8 -4
@@ -101,8 +101,10 @@ static __init struct device *sysfb_parent_dev(const struct screen_info *si)if (IS_ERR (pdev)) {return ERR_CAST (pdev); }else if (pdev) { -if (!sysfb_pci_dev_is_enabled (pdev)) +if (!sysfb_pci_dev_is_enabled (pdev)) { +pci_dev_put (pdev);return ERR_PTR (-ENODEV ); + }return &pdev->dev; }
@@ -137,7 +139,7 @@ static __init int sysfb_init(void)if (compatible) { pd =sysfb_create_simplefb (si, &mode, parent);if (!IS_ERR (pd)) - goto unlock_mutex; + goto put_device; }/* if the FB is incompatible, create a legacy framebuffer device */
@@ -155,7 +157,7 @@ static __init int sysfb_init(void) pd =platform_device_alloc (name,0 );if (!pd) { ret = -ENOMEM ; - goto unlock_mutex; + goto put_device; } pd->dev.parent = parent;
@@ -170,9 +172,11 @@ static __init int sysfb_init(void)if (ret) goto err; - goto unlock_mutex; + goto put_device; err:platform_device_put (pd); +put_device: +put_device (parent); unlock_mutex:mutex_unlock (&disable_lock);return ret;
drivers/gpio/gpio-mmio.c +0 -2
@@ -619,8 +619,6 @@ int bgpio_init(struct gpio_chip *gc, struct device *dev, ret =gpiochip_get_ngpios (gc, dev);if (ret) gc->ngpio = gc->bgpio_bits; -else - gc->bgpio_bits =roundup_pow_of_two (round_up (gc->ngpio,8 )); ret =bgpio_setup_io (gc, dat, set, clr, flags);if (ret)
drivers/gpio/gpiolib-of.c +20 -2
@@ -202,6 +202,24 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np, * helper, and be consistent with what other drivers do. */ { "qi,lb60", "rb-gpios", true }, +#endif +#if IS_ENABLED(CONFIG_PCI_LANTIQ) + /* + * According to the PCI specification, the RST# pin is an + * active-low signal. However, most of the device trees that + * have been widely used for a long time incorrectly describe + * reset GPIO as active-high, and were also using wrong name + * for the property. + */ + { "lantiq,pci-xway", "gpio-reset", false }, +#endif +#if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2005) + /* + * DTS for Nokia N900 incorrectly specified "active high" + * polarity for the reset line, while the chip actually + * treats it as "active low". + */ + { "ti,tsc2005", "reset-gpios", false }, #endif }; unsigned int i;
@@ -504,9 +522,9 @@ static struct gpio_desc *of_find_gpio_rename(struct device_node *np, { "reset", "reset-n-io", "marvell,nfc-uart" }, { "reset", "reset-n-io", "mrvl,nfc-uart" }, #endif -#if !IS_ENABLED(CONFIG_PCI_LANTIQ) +#if IS_ENABLED(CONFIG_PCI_LANTIQ) /* MIPS Lantiq PCI */ - { "reset", "gpios-reset", "lantiq,pci-xway" }, + { "reset", "gpio-reset", "lantiq,pci-xway" }, #endif /*
drivers/gpu/drm/amd/amdgpu/aldebaran.c +1 -1
@@ -97,7 +97,7 @@ static int aldebaran_mode2_suspend_ip(struct amdgpu_device *adev) adev->ip_blocks[i].status.hw = false; } -return r; +return 0 ; } static int
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +5 -0
@@ -455,6 +455,9 @@ void amdgpu_amdkfd_get_local_mem_info(struct amdgpu_device *adev,else mem_info->local_mem_size_private =KFD_XCP_MEMORY_SIZE (adev, xcp->id); + }else if (adev->flags &AMD_IS_APU ) { + mem_info->local_mem_size_public = (ttm_tt_pages_limit () <<PAGE_SHIFT ); + mem_info->local_mem_size_private =0 ; }else { mem_info->local_mem_size_public = adev->gmc.visible_vram_size; mem_info->local_mem_size_private = adev->gmc.real_vram_size -
@@ -809,6 +812,8 @@ u64 amdgpu_amdkfd_xcp_memory_size(struct amdgpu_device *adev, int xcp_id) }do_div (tmp, adev->xcp_mgr->num_xcp_per_mem_partition);return ALIGN_DOWN (tmp,PAGE_SIZE ); + }else if (adev->flags &AMD_IS_APU ) { +return (ttm_tt_pages_limit () <<PAGE_SHIFT ); }else {return adev->gmc.real_vram_size; }
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +11 -9
@@ -196,7 +196,7 @@ int amdgpu_amdkfd_reserve_mem_limit(struct amdgpu_device *adev,return -EINVAL ; vram_size =KFD_XCP_MEMORY_SIZE (adev, xcp_id); -if (adev->gmc.is_app_apu) { +if (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) { system_mem_needed = size; ttm_mem_needed = size; }
@@ -232,7 +232,8 @@ int amdgpu_amdkfd_reserve_mem_limit(struct amdgpu_device *adev, "adev reference can't be null when vram is used");if (adev && xcp_id >=0 ) { adev->kfd.vram_used[xcp_id] += vram_needed; - adev->kfd.vram_used_aligned[xcp_id] += adev->gmc.is_app_apu ? + adev->kfd.vram_used_aligned[xcp_id] += + (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) ? vram_needed :ALIGN (vram_needed,VRAM_AVAILABLITY_ALIGN ); }
@@ -260,7 +261,7 @@ void amdgpu_amdkfd_unreserve_mem_limit(struct amdgpu_device *adev,if (adev) { adev->kfd.vram_used[xcp_id] -= size; -if (adev->gmc.is_app_apu) { +if (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) { adev->kfd.vram_used_aligned[xcp_id] -= size; kfd_mem_limit.system_mem_used -= size; kfd_mem_limit.ttm_mem_used -= size;
@@ -889,7 +890,7 @@ static int kfd_mem_attach(struct amdgpu_device *adev, struct kgd_mem *mem,* if peer device has large BAR. In contrast, access over xGMI is * allowed for both small and large BAR configurations of peer device */ -if ((adev != bo_adev && !adev->gmc.is_app_apu) && +if ((adev != bo_adev && !(adev->gmc.is_app_apu || adev->flags &AMD_IS_APU )) && ((mem->domain ==AMDGPU_GEM_DOMAIN_VRAM ) || (mem->alloc_flags &KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL ) || (mem->alloc_flags &KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP ))) {
@@ -1657,7 +1658,7 @@ size_t amdgpu_amdkfd_get_available_memory(struct amdgpu_device *adev, -atomic64_read (&adev->vram_pin_size) - reserved_for_pt; -if (adev->gmc.is_app_apu) { +if (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) { system_mem_available = no_system_mem_limit ? kfd_mem_limit.max_system_mem_limit : kfd_mem_limit.max_system_mem_limit -
@@ -1705,7 +1706,7 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(if (flags &KFD_IOC_ALLOC_MEM_FLAGS_VRAM ) { domain = alloc_domain =AMDGPU_GEM_DOMAIN_VRAM ; -if (adev->gmc.is_app_apu) { +if (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) { domain =AMDGPU_GEM_DOMAIN_GTT ; alloc_domain =AMDGPU_GEM_DOMAIN_GTT ; alloc_flags =0 ;
@@ -1952,7 +1953,7 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu(if (size) {if (!is_imported && (mem->bo->preferred_domains ==AMDGPU_GEM_DOMAIN_VRAM || - (adev->gmc.is_app_apu && + ((adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) && mem->bo->preferred_domains ==AMDGPU_GEM_DOMAIN_GTT ))) *size = bo_size;else
@@ -2374,8 +2375,9 @@ static int import_obj_create(struct amdgpu_device *adev, (*mem)->dmabuf = dma_buf; (*mem)->bo = bo; (*mem)->va = va; - (*mem)->domain = (bo->preferred_domains &AMDGPU_GEM_DOMAIN_VRAM ) && !adev->gmc.is_app_apu ? -AMDGPU_GEM_DOMAIN_VRAM :AMDGPU_GEM_DOMAIN_GTT ; + (*mem)->domain = (bo->preferred_domains &AMDGPU_GEM_DOMAIN_VRAM ) && + !(adev->gmc.is_app_apu || adev->flags &AMD_IS_APU ) ? +AMDGPU_GEM_DOMAIN_VRAM :AMDGPU_GEM_DOMAIN_GTT ; (*mem)->mapped_to_gpu_memory =0 ; (*mem)->process_info = avm->process_info;
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +3 -2
@@ -2065,12 +2065,13 @@ static ssize_t amdgpu_reset_dump_register_list_write(struct file *f,struct amdgpu_device *adev = (struct amdgpu_device *)file_inode (f)->i_private;char reg_offset[11 ];uint32_t *new =NULL , *tmp =NULL ; -int ret, i =0 , len =0 ; +unsigned int len =0 ; +int ret, i =0 ; do { memset(reg_offset, 0, 11); if (copy_from_user(reg_offset, buf + len, - min(10, ((int)size-len)))) { + min(10, (size-len)))) { ret = -EFAULT; goto error_free; }
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +2 -1
@@ -1206,7 +1206,8 @@ void amdgpu_gfx_cp_init_microcode(struct amdgpu_device *adev, fw_size =le32_to_cpu (cp_hdr_v2_0->data_size_bytes);break ;default : -break ; +dev_err (adev->dev,"Invalid ucode id %u\n" , ucode_id); +return ; }if (adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP ) {
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +8 -0
@@ -445,6 +445,14 @@ void amdgpu_irq_dispatch(struct amdgpu_device *adev, entry.ih = ih; entry.iv_entry = (const uint32_t *)&ih->ring[ring_index]; + +/* +* timestamp is not supported on some legacy SOCs (cik, cz, iceland, +* si and tonga), so initialize timestamp and timestamp_src to 0 +*/ + entry.timestamp =0 ; + entry.timestamp_src =0 ; +amdgpu_ih_decode_iv (adev, &entry);trace_amdgpu_iv (ih - &adev->irq.ih, &entry);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +1 -1
@@ -43,7 +43,7 @@ struct amdgpu_iv_entry;#define AMDGPU_RAS_GPU_ERR_HBM_BIST_TEST (x) AMDGPU_GET_REG_FIELD(x, 7, 7)#define AMDGPU_RAS_GPU_ERR_SOCKET_ID (x) AMDGPU_GET_REG_FIELD(x, 10, 8)#define AMDGPU_RAS_GPU_ERR_AID_ID (x) AMDGPU_GET_REG_FIELD(x, 12, 11) -#define AMDGPU_RAS_GPU_ERR_HBM_ID (x) AMDGPU_GET_REG_FIELD(x, 13, 13) +#define AMDGPU_RAS_GPU_ERR_HBM_ID (x) AMDGPU_GET_REG_FIELD(x, 14, 13)#define AMDGPU_RAS_GPU_ERR_BOOT_STATUS (x) AMDGPU_GET_REG_FIELD(x, 31, 31)#define AMDGPU_RAS_BOOT_STATUS_POLLING_LIMIT 1000
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +1 -0
@@ -170,6 +170,7 @@ static void amdgpu_umc_handle_bad_pages(struct amdgpu_device *adev, }kfree (err_data->err_addr); + err_data->err_addr =NULL ;mutex_unlock (&con->page_retirement_lock); }
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +2 -1
@@ -743,7 +743,8 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p,uint32_t created =0 ;uint32_t allocated =0 ;uint32_t tmp, handle =0 ; -uint32_t *size = &tmp; +uint32_t dummy =0xffffffff ; +uint32_t *size = &dummy;unsigned int idx;int i, r =0 ;
drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c +1 -1
@@ -92,7 +92,7 @@ static int sienna_cichlid_mode2_suspend_ip(struct amdgpu_device *adev) adev->ip_blocks[i].status.hw = false; } -return r; +return 0 ; } static int
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c +1 -1
@@ -1023,7 +1023,7 @@ int kgd2kfd_init_zone_device(struct amdgpu_device *adev)if (amdgpu_ip_version (adev,GC_HWIP ,0 ) <IP_VERSION (9 ,0 ,1 ))return -EINVAL ; -if (adev->gmc.is_app_apu) +if (adev->gmc.is_app_apu || adev->flags &AMD_IS_APU )return 0 ; pgmap = &kfddev->pgmap;
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +4 -2
@@ -2619,7 +2619,8 @@ svm_range_best_restore_location(struct svm_range *prange,return -1 ; } -if (node->adev->gmc.is_app_apu) +if (node->adev->gmc.is_app_apu || + node->adev->flags &AMD_IS_APU )return 0 ; if (prange->preferred_loc == gpuid ||
@@ -3337,7 +3338,8 @@ svm_range_best_prefetch_location(struct svm_range *prange) goto out; } -if (bo_node->adev->gmc.is_app_apu) { +if (bo_node->adev->gmc.is_app_apu || + bo_node->adev->flags &AMD_IS_APU ) { best_loc =0 ; goto out; }
drivers/gpu/drm/amd/amdkfd/kfd_svm.h +2 -1
@@ -201,7 +201,8 @@ void svm_range_list_lock_and_flush_work(struct svm_range_list *svms, struct mm_s* is initialized to not 0 when page migration register device memory. */ #define KFD_IS_SVM_API_SUPPORTED (adev) ((adev)->kfd.pgmap.type != 0 ||\ - (adev)->gmc.is_app_apu) + (adev)->gmc.is_app_apu ||\ + ((adev)->flags & AMD_IS_APU))void svm_range_bo_unref_async (struct svm_range_bo *svm_bo);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +4 -4
@@ -274,7 +274,7 @@ static u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc)static int dm_crtc_get_scanoutpos (struct amdgpu_device *adev,int crtc,u32 *vbl,u32 *position) { -u32 v_blank_start, v_blank_end, h_position, v_position; +u32 v_blank_start =0 , v_blank_end =0 , h_position =0 , v_position =0 ;struct amdgpu_crtc *acrtc =NULL ;struct dc *dc = adev->dm.dc;
@@ -848,7 +848,7 @@ static void dm_handle_hpd_work(struct work_struct *work)*/ static void dm_dmub_outbox1_low_irq (void *interrupt_params) { -struct dmub_notification notify; +struct dmub_notification notify = {0 };struct common_irq_params *irq_params = interrupt_params;struct amdgpu_device *adev = irq_params->adev;struct amdgpu_display_manager *dm = &adev->dm;
@@ -7192,7 +7192,7 @@ static int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_state *state,struct amdgpu_dm_connector *aconnector;struct dm_connector_state *dm_conn_state;int i, j, ret; -int vcpi, pbn_div, pbn, slot_num =0 ; +int vcpi, pbn_div, pbn =0 , slot_num =0 ;for_each_new_connector_in_state (state, connector, new_con_state, i) {
@@ -10595,7 +10595,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,struct dm_crtc_state *dm_old_crtc_state, *dm_new_crtc_state;struct drm_dp_mst_topology_mgr *mgr;struct drm_dp_mst_topology_state *mst_state; -struct dsc_mst_fairness_vars vars[MAX_PIPES ]; +struct dsc_mst_fairness_vars vars[MAX_PIPES ] = {0 };trace_amdgpu_dm_atomic_check_begin (state);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +2 -2
@@ -1249,7 +1249,7 @@ static ssize_t dp_sdp_message_debugfs_write(struct file *f, const char __user *b size_t size, loff_t *pos) { int r; -uint8_t data[36 ]; +uint8_t data[36 ] = {0 };struct amdgpu_dm_connector *connector =file_inode (f)->i_private;struct dm_crtc_state *acrtc_state;uint32_t write_size =36 ;
@@ -2960,7 +2960,7 @@ static int psr_read_residency(void *data, u64 *val) {struct amdgpu_dm_connector *connector = data;struct dc_link *link = connector->dc_link; -u32 residency; +u32 residency =0 ; link->dc->link_srv->edp_get_psr_residency (link, &residency);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c +8 -0
@@ -560,11 +560,19 @@ void dcn3_clk_mgr_construct(dce_clock_read_ss_info (clk_mgr); clk_mgr->base.bw_params =kzalloc (sizeof (*clk_mgr->base.bw_params),GFP_KERNEL ); +if (!clk_mgr->base.bw_params) { +BREAK_TO_DEBUGGER (); +return ; + }/* need physical address of table to give to PMFW */ clk_mgr->wm_range_table =dm_helpers_allocate_gpu_mem (clk_mgr->base.ctx,DC_MEM_ALLOC_TYPE_GART ,sizeof (WatermarksExternal_t), &clk_mgr->wm_range_table_addr); +if (!clk_mgr->wm_range_table) { +BREAK_TO_DEBUGGER (); +return ; + } }void dcn3_clk_mgr_destroy (struct clk_mgr_internal *clk_mgr)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c +8 -0
@@ -1208,11 +1208,19 @@ void dcn32_clk_mgr_construct( clk_mgr->smu_present = false; clk_mgr->base.bw_params =kzalloc (sizeof (*clk_mgr->base.bw_params),GFP_KERNEL ); +if (!clk_mgr->base.bw_params) { +BREAK_TO_DEBUGGER (); +return ; + }/* need physical address of table to give to PMFW */ clk_mgr->wm_range_table =dm_helpers_allocate_gpu_mem (clk_mgr->base.ctx,DC_MEM_ALLOC_TYPE_GART ,sizeof (WatermarksExternal_t), &clk_mgr->wm_range_table_addr); +if (!clk_mgr->wm_range_table) { +BREAK_TO_DEBUGGER (); +return ; + } }void dcn32_clk_mgr_destroy (struct clk_mgr_internal *clk_mgr)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +75 -31
131 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c +3 -1
@@ -9460,8 +9460,10 @@ void dml_core_mode_programming(struct display_mode_lib_st *mode_lib, const struc/* Copy the calculated watermarks to mp.Watermark as the getter functions are * implemented by the DML team to copy the calculated values from the mp.Watermark interface. +* &mode_lib->mp.Watermark and &locals->Watermark are the same address, memcpy may lead to +* unexpected behavior. memmove should be used. */ -memcpy (&mode_lib->mp.Watermark, CalculateWatermarks_params->Watermark,sizeof (struct Watermarks )); +memmove (&mode_lib->mp.Watermark, CalculateWatermarks_params->Watermark,sizeof (struct Watermarks ));for (k =0 ; k < mode_lib->ms.num_active_planes; ++k) {if (mode_lib->ms.cache_display_cfg.writeback.WritebackEnable[k] == true) {
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c +4 -2
@@ -88,7 +88,8 @@ static int find_disp_cfg_idx_by_plane_id(struct dml2_dml_to_dc_pipe_mapping *mapreturn i; } -return -1 ; +ASSERT (false); +return __DML2_WRAPPER_MAX_STREAMS_PLANES__; }static int find_disp_cfg_idx_by_stream_id (struct dml2_dml_to_dc_pipe_mapping *mapping,unsigned int stream_id)
@@ -100,7 +101,8 @@ static int find_disp_cfg_idx_by_stream_id(struct dml2_dml_to_dc_pipe_mapping *mareturn i; } -return -1 ; +ASSERT (false); +return __DML2_WRAPPER_MAX_STREAMS_PLANES__; }// The master pipe of a stream is defined as the top pipe in odm slice 0
drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c +6 -2
@@ -211,8 +211,12 @@ bool dce110_vblank_set(struct irq_service *irq_service, info->ext_id);uint8_t pipe_offset = dal_irq_src -IRQ_TYPE_VBLANK ; -struct timing_generator *tg = - dc->current_state->res_ctx.pipe_ctx[pipe_offset].stream_res.tg; +struct timing_generator *tg; + +if (pipe_offset >=MAX_PIPES ) +return false; + + tg = dc->current_state->res_ctx.pipe_ctx[pipe_offset].stream_res.tg;if (enable) {if (!tg || !tg->funcs->arm_vert_intr (tg,2 )) {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c +3 -0
@@ -2050,6 +2050,9 @@ bool dcn30_validate_bandwidth(struct dc *dc,BW_VAL_TRACE_COUNT (); +if (!pipes) + goto validate_fail; +DC_FP_START (); out =dcn30_internal_validate_bw (dc, context, pipes, &pipe_cnt, &vlevel, fast_validate, true);DC_FP_END ();
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +5 -0
@@ -1311,6 +1311,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ hpo_dp_link_encoder31_construct(hpo_dp_enc31, ctx, inst, &hpo_dp_link_enc_regs[inst],
@@ -1767,6 +1769,9 @@ bool dcn31_validate_bandwidth(struct dc *dc,BW_VAL_TRACE_COUNT (); +if (!pipes) + goto validate_fail; +DC_FP_START (); out =dcn30_internal_validate_bw (dc, context, pipes, &pipe_cnt, &vlevel, fast_validate, true);DC_FP_END ();
drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c +5 -0
@@ -1384,6 +1384,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ hpo_dp_link_encoder31_construct(hpo_dp_enc31, ctx, inst, &hpo_dp_link_enc_regs[inst],
@@ -1744,6 +1746,9 @@ bool dcn314_validate_bandwidth(struct dc *dc,BW_VAL_TRACE_COUNT (); +if (!pipes) + goto validate_fail; +if (filter_modes_for_single_channel_workaround (dc, context)) goto validate_fail;
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c +2 -0
@@ -1309,6 +1309,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ hpo_dp_link_encoder31_construct(hpo_dp_enc31, ctx, inst, &hpo_dp_link_enc_regs[inst],
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c +2 -0
@@ -1306,6 +1306,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ hpo_dp_link_encoder31_construct(hpo_dp_enc31, ctx, inst, &hpo_dp_link_enc_regs[inst],
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +5 -0
@@ -1304,6 +1304,8 @@ static struct hpo_dp_link_encoder *dcn32_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ #undef REG_STRUCT#define REG_STRUCT hpo_dp_link_enc_regs
@@ -1751,6 +1753,9 @@ static bool dml1_validate(struct dc *dc, struct dc_state *context, bool fast_valBW_VAL_TRACE_COUNT (); +if (!pipes) + goto validate_fail; +DC_FP_START (); out =dcn32_internal_validate_bw (dc, context, pipes, &pipe_cnt, &vlevel, fast_validate);DC_FP_END ();
drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +2 -0
@@ -1288,6 +1288,8 @@ static struct hpo_dp_link_encoder *dcn321_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ #undef REG_STRUCT#define REG_STRUCT hpo_dp_link_enc_regs
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +2 -0
@@ -1368,6 +1368,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ #undef REG_STRUCT#define REG_STRUCT hpo_dp_link_enc_regs
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c +2 -0
@@ -1348,6 +1348,8 @@ static struct hpo_dp_link_encoder *dcn31_hpo_dp_link_encoder_create(/* allocate HPO link encoder */ hpo_dp_enc31 =kzalloc (sizeof (struct dcn31_hpo_dp_link_encoder ),GFP_KERNEL ); +if (!hpo_dp_enc31) +return NULL ;/* out of memory */ #undef REG_STRUCT#define REG_STRUCT hpo_dp_link_enc_regs
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c +8 -0
@@ -156,6 +156,10 @@ static enum mod_hdcp_status read(struct mod_hdcp *hdcp,uint32_t cur_size =0 ;uint32_t data_offset =0 ; +if (msg_id ==MOD_HDCP_MESSAGE_ID_INVALID ) { +return MOD_HDCP_STATUS_DDC_FAILURE ; + } +if (is_dp_hdcp (hdcp)) {while (buf_len >0 ) { cur_size =MIN (buf_len,HDCP_MAX_AUX_TRANSACTION_SIZE );
@@ -215,6 +219,10 @@ static enum mod_hdcp_status write(struct mod_hdcp *hdcp,uint32_t cur_size =0 ;uint32_t data_offset =0 ; +if (msg_id ==MOD_HDCP_MESSAGE_ID_INVALID ) { +return MOD_HDCP_STATUS_DDC_FAILURE ; + } +if (is_dp_hdcp (hdcp)) {while (buf_len >0 ) { cur_size =MIN (buf_len,HDCP_MAX_AUX_TRANSACTION_SIZE );
drivers/gpu/drm/amd/include/atomfirmware.h +2 -2
@@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1 {struct atom_common_table_header table_header;/*the real number of this included in the structure is calcualted by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */ -struct atom_gpio_pin_assignment gpio_pin[8 ]; +struct atom_gpio_pin_assignment gpio_pin[]; };
@@ -3583,7 +3583,7 @@ struct atom_gpio_voltage_object_v4uint8_t phase_delay_us;// phase delay in unit of micro second uint8_t reserved;uint32_t gpio_mask_val;// GPIO Mask value -struct atom_voltage_gpio_map_lut voltage_gpio_lut[1 ]; + struct atom_voltage_gpio_map_lut voltage_gpio_lut[] __counted_by(gpio_entry_num); };struct atom_svid2_voltage_object_v4
drivers/gpu/drm/drm_fbdev_generic.c +2 -1
@@ -84,7 +84,8 @@ static int drm_fbdev_generic_helper_fb_probe(struct drm_fb_helper *fb_helper, sizes->surface_width, sizes->surface_height, sizes->surface_bpp); - format =drm_mode_legacy_fb_format (sizes->surface_bpp, sizes->surface_depth); + format =drm_driver_legacy_fb_format (dev, sizes->surface_bpp, + sizes->surface_depth); buffer =drm_client_framebuffer_create (client, sizes->surface_width, sizes->surface_height, format);if (IS_ERR (buffer))
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
@@ -421,6 +421,13 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"), }, .driver_data = (void *)&lcd800x1280_rightside_up, + }, { /* Valve Steam Deck */ + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"Valve" ), +DMI_EXACT_MATCH (DMI_PRODUCT_NAME ,"Galileo" ), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"), + }, + .driver_data = (void *)&lcd800x1280_rightside_up, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
drivers/gpu/drm/lima/lima_gp.c +2 -0
@@ -345,7 +345,9 @@ int lima_gp_init(struct lima_ip *ip)void lima_gp_fini (struct lima_ip *ip) { +struct lima_device *dev = ip->dev; +devm_free_irq (dev->dev, ip->irq, ip); }int lima_gp_pipe_init (struct lima_device *dev)
drivers/gpu/drm/lima/lima_mmu.c +5 -0
@@ -118,7 +118,12 @@ int lima_mmu_init(struct lima_ip *ip)void lima_mmu_fini (struct lima_ip *ip) { +struct lima_device *dev = ip->dev; + +if (ip->id == lima_ip_ppmmu_bcast) +return ; +devm_free_irq (dev->dev, ip->irq, ip); }void lima_mmu_flush_tlb (struct lima_ip *ip)
drivers/gpu/drm/lima/lima_pp.c +4 -0
@@ -286,7 +286,9 @@ int lima_pp_init(struct lima_ip *ip)void lima_pp_fini (struct lima_ip *ip) { +struct lima_device *dev = ip->dev; +devm_free_irq (dev->dev, ip->irq, ip); }int lima_pp_bcast_resume (struct lima_ip *ip)
@@ -319,7 +321,9 @@ int lima_pp_bcast_init(struct lima_ip *ip)void lima_pp_bcast_fini (struct lima_ip *ip) { +struct lima_device *dev = ip->dev; +devm_free_irq (dev->dev, ip->irq, ip); } static int lima_pp_task_validate(struct lima_sched_pipe *pipe,
drivers/gpu/drm/nouveau/nouveau_connector.c +3 -0
@@ -1001,6 +1001,9 @@ nouveau_connector_get_modes(struct drm_connector *connector)struct drm_display_mode *mode; mode =drm_mode_duplicate (dev, nv_connector->native_mode); +if (!mode) +return 0 ; +drm_mode_probed_add (connector, mode); ret =1 ; }
drivers/gpu/drm/ttm/ttm_bo.c +1 -0
@@ -346,6 +346,7 @@ static void ttm_bo_release(struct kref *kref)if (!dma_resv_test_signaled (bo->base.resv,DMA_RESV_USAGE_BOOKKEEP ) || (want_init_on_free () && (bo->ttm !=NULL )) || + bo->type == ttm_bo_type_sg || !dma_resv_trylock (bo->base.resv)) {/* The BO is not idle, resurrect it for delayed destroy */ ttm_bo_flush_all_fences (bo);
drivers/gpu/drm/xe/tests/xe_dma_buf.c +3 -0
@@ -12,6 +12,7 @@#include "tests/xe_pci_test.h" #include "xe_pci.h" +#include "xe_pm.h" static bool p2p_enabled (struct dma_buf_test_params *params) {
@@ -259,6 +260,7 @@ static int dma_buf_run_device(struct xe_device *xe)const struct dma_buf_test_params *params;struct kunit *test =xe_cur_kunit (); +xe_pm_runtime_get (xe);for (params = test_params; params->mem_mask; ++params) {struct dma_buf_test_params p = *params;
@@ -266,6 +268,7 @@ static int dma_buf_run_device(struct xe_device *xe) test->priv = &p;xe_test_dmabuf_import_same_driver (xe); } +xe_pm_runtime_put (xe);/* A non-zero return would halt iteration over driver devices */ return 0 ;
drivers/gpu/drm/xe/xe_gt_mcr.c +3 -3
@@ -315,7 +315,7 @@ static void init_steering_oaddrm(struct xe_gt *gt)else gt->steering[OADDRM ].group_target =1 ; - gt->steering[DSS ].instance_target =0 ;/* unused */ + gt->steering[OADDRM ].instance_target =0 ;/* unused */ }static void init_steering_sqidi_psmi (struct xe_gt *gt)
@@ -330,8 +330,8 @@ static void init_steering_sqidi_psmi(struct xe_gt *gt)static void init_steering_inst0 (struct xe_gt *gt) { - gt->steering[DSS ].group_target =0 ;/* unused */ - gt->steering[DSS ].instance_target =0 ;/* unused */ + gt->steering[INSTANCE0 ].group_target =0 ;/* unused */ + gt->steering[INSTANCE0 ].instance_target =0 ;/* unused */ } static const struct {
drivers/gpu/drm/xe/xe_migrate.c +4 -4
@@ -1336,7 +1336,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m, GFP_KERNEL, true, 0);if (IS_ERR (sa_bo)) { err =PTR_ERR (sa_bo); - goto err; + goto err_bb; } ppgtt_ofs = NUM_KERNEL_PDE +
@@ -1387,7 +1387,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m, update_idx);if (IS_ERR (job)) { err =PTR_ERR (job); - goto err_bb; + goto err_sa; }/* Wait on BO move */
@@ -1436,12 +1436,12 @@ xe_migrate_update_pgtables(struct xe_migrate *m, err_job:xe_sched_job_put (job); +err_sa: +drm_suballoc_free (sa_bo,NULL ); err_bb:if (!q)mutex_unlock (&m->job_mutex);xe_bb_free (bb,NULL ); -err: -drm_suballoc_free (sa_bo,NULL );return ERR_PTR (err); }
drivers/hwmon/dell-smm-hwmon.c +8 -0
@@ -1530,6 +1530,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = { }, .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_30A3_31A3], }, + { + .ident = "Dell G15 5511", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Dell G15 5511"), + }, + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_30A3_31A3], + }, { } };
drivers/i2c/busses/i2c-i801.c +1 -1
@@ -1059,7 +1059,7 @@ static const struct pci_device_id i801_ids[] = {MODULE_DEVICE_TABLE (pci, i801_ids);#if definedCONFIG_X86 && definedCONFIG_DMI -static unsigned char apanel_addr; +static unsigned char apanel_addr__ro_after_init ;/* Scan the system ROM for the signature "FJKEYINF" */ static __init const void __iomem *bios_signature (const void __iomem *bios)
drivers/i2c/busses/i2c-pnx.c +10 -38
139 lines not on this page · raw message
drivers/infiniband/core/user_mad.c +15 -6
@@ -63,6 +63,8 @@ MODULE_AUTHOR("Roland Dreier");MODULE_DESCRIPTION ("InfiniBand userspace MAD packet access" );MODULE_LICENSE ("Dual BSD/GPL" ); +#define MAX_UMAD_RECV_LIST_SIZE 200000 +enum {IB_UMAD_MAX_PORTS =RDMA_MAX_PORTS ,IB_UMAD_MAX_AGENTS =32 ,
@@ -113,6 +115,7 @@ struct ib_umad_file {struct mutex mutex;struct ib_umad_port *port;struct list_head recv_list; +atomic_t recv_list_size;struct list_head send_list;struct list_head port_list;spinlock_t send_lock;
@@ -180,24 +183,28 @@ static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id)return file->agents_dead ?NULL : file->agent[id]; } -static int queue_packet (struct ib_umad_file *file, -struct ib_mad_agent *agent, -struct ib_umad_packet *packet) +static int queue_packet (struct ib_umad_file *file,struct ib_mad_agent *agent, +struct ib_umad_packet *packet,bool is_recv_mad) {int ret =1 ;mutex_lock (&file->mutex); +if (is_recv_mad && +atomic_read (&file->recv_list_size) >MAX_UMAD_RECV_LIST_SIZE ) + goto unlock; +for (packet->mad.hdr.id =0 ; packet->mad.hdr.id <IB_UMAD_MAX_AGENTS ; packet->mad.hdr.id++)if (agent ==__get_agent (file, packet->mad.hdr.id)) {list_add_tail (&packet->list, &file->recv_list); +atomic_inc (&file->recv_list_size);wake_up_interruptible (&file->recv_wait); ret =0 ;break ; } - +unlock:mutex_unlock (&file->mutex);return ret;
@@ -224,7 +231,7 @@ static void send_handler(struct ib_mad_agent *agent,if (send_wc->status ==IB_WC_RESP_TIMEOUT_ERR ) { packet->length =IB_MGMT_MAD_HDR ; packet->mad.hdr.status =ETIMEDOUT ; -if (!queue_packet (file, agent, packet)) +if (!queue_packet (file, agent, packet, false))return ; }kfree (packet);
@@ -284,7 +291,7 @@ static void recv_handler(struct ib_mad_agent *agent,rdma_destroy_ah_attr (&ah_attr); } -if (queue_packet (file, agent, packet)) +if (queue_packet (file, agent, packet, true)) goto err2;return ;
@@ -409,6 +416,7 @@ static ssize_t ib_umad_read(struct file *filp, char __user *buf, packet = list_entry(file->recv_list.next, struct ib_umad_packet, list);list_del (&packet->list); +atomic_dec (&file->recv_list_size);mutex_unlock (&file->mutex);
@@ -421,6 +429,7 @@ static ssize_t ib_umad_read(struct file *filp, char __user *buf,/* Requeue packet */ mutex_lock (&file->mutex);list_add (&packet->list, &file->recv_list); +atomic_inc (&file->recv_list_size);mutex_unlock (&file->mutex); }else {if (packet->recv_wc)
drivers/input/ff-core.c +4 -3
@@ -9,8 +9,10 @@/* #define DEBUG */ #include <linux/input.h> +#include <linux/limits.h> #include <linux/module.h> #include <linux/mutex.h> +#include <linux/overflow.h> #include <linux/sched.h> #include <linux/slab.h>
@@ -315,9 +317,8 @@ int input_ff_create(struct input_dev *dev, unsigned int max_effects)return -EINVAL ; } - ff_dev_size =sizeof (struct ff_device ) + - max_effects *sizeof (struct file *); -if (ff_dev_size < max_effects)/* overflow */ + ff_dev_size =struct_size (ff, effect_owners, max_effects); +if (ff_dev_size ==SIZE_MAX )/* overflow */ return -EINVAL ; ff =kzalloc (ff_dev_size,GFP_KERNEL );
drivers/leds/leds-an30259a.c +4 -10
@@ -283,7 +283,10 @@ static int an30259a_probe(struct i2c_client *client)if (err <0 )return err; -mutex_init (&chip->mutex); + err =devm_mutex_init (&client->dev, &chip->mutex); +if (err) +return err; + chip->client = client;i2c_set_clientdata (client, chip);
@@ -317,17 +320,9 @@ static int an30259a_probe(struct i2c_client *client)return 0 ; exit: -mutex_destroy (&chip->mutex);return err; } -static void an30259a_remove (struct i2c_client *client) -{ -struct an30259a *chip =i2c_get_clientdata (client); - -mutex_destroy (&chip->mutex); -} -static const struct of_device_id an30259a_match_table[] = { { .compatible ="panasonic,an30259a" , }, {/* sentinel */ },
@@ -347,7 +342,6 @@ static struct i2c_driver an30259a_driver = { .of_match_table = an30259a_match_table, }, .probe = an30259a_probe, - .remove = an30259a_remove, .id_table = an30259a_id, };
drivers/leds/leds-mlxreg.c +5 -9
@@ -256,6 +256,7 @@ static int mlxreg_led_probe(struct platform_device *pdev) {struct mlxreg_core_platform_data *led_pdata;struct mlxreg_led_priv_data *priv; +int err; led_pdata =dev_get_platdata (&pdev->dev);if (!led_pdata) {
@@ -267,26 +268,21 @@ static int mlxreg_led_probe(struct platform_device *pdev)if (!priv)return -ENOMEM ; -mutex_init (&priv->access_lock); + err =devm_mutex_init (&pdev->dev, &priv->access_lock); +if (err) +return err; + priv->pdev = pdev; priv->pdata = led_pdata;return mlxreg_led_config (priv); } -static void mlxreg_led_remove (struct platform_device *pdev) -{ -struct mlxreg_led_priv_data *priv =dev_get_drvdata (&pdev->dev); - -mutex_destroy (&priv->access_lock); -} -static struct platform_driver mlxreg_led_driver = { .driver = { .name ="leds-mlxreg" , }, .probe = mlxreg_led_probe, - .remove_new = mlxreg_led_remove, };module_platform_driver (mlxreg_led_driver);
drivers/media/dvb-frontends/as102_fe_types.h +1 -1
@@ -174,6 +174,6 @@ struct as10x_register_addr {uint32_t addr;/* register mode access */ uint8_t mode; -}; +} __packed;#endif
drivers/media/dvb-frontends/tda10048.c +6 -3
@@ -410,6 +410,7 @@ static int tda10048_set_if(struct dvb_frontend *fe, u32 bw)struct tda10048_config *config = &state->config;int i;u32 if_freq_khz; +u64 sample_freq;dprintk (1 ,"%s(bw = %d)\n" , __func__, bw);
@@ -451,9 +452,11 @@ static int tda10048_set_if(struct dvb_frontend *fe, u32 bw)dprintk (1 ,"- pll_pfactor = %d\n" , state->pll_pfactor);/* Calculate the sample frequency */ - state->sample_freq = state->xtal_hz * (state->pll_mfactor +45 ); - state->sample_freq /= (state->pll_nfactor +1 ); - state->sample_freq /= (state->pll_pfactor +4 ); + sample_freq = state->xtal_hz; + sample_freq *= state->pll_mfactor +45 ; +do_div (sample_freq, state->pll_nfactor +1 ); +do_div (sample_freq, state->pll_pfactor +4 ); + state->sample_freq = sample_freq;dprintk (1 ,"- sample_freq = %d\n" , state->sample_freq);/* Update the I/F */
drivers/media/dvb-frontends/tda18271c2dd.c +2 -2
@@ -328,7 +328,7 @@ static int CalcMainPLL(struct tda_state *state, u32 freq) OscFreq = (u64 ) freq * (u64 ) Div; OscFreq *= (u64 )16384 ; -do_div (OscFreq, (u64 )16000000 ); +do_div (OscFreq,16000000 ); MainDiv = OscFreq; state->m_Regs[MPD ] = PostDiv &0x77 ;
@@ -352,7 +352,7 @@ static int CalcCalPLL(struct tda_state *state, u32 freq) OscFreq = (u64 )freq * (u64 )Div;/* CalDiv = u32( OscFreq * 16384 / 16000000 ); */ OscFreq *= (u64 )16384 ; -do_div (OscFreq, (u64 )16000000 ); +do_div (OscFreq,16000000 ); CalDiv = OscFreq; state->m_Regs[CPD ] = PostDiv;
drivers/media/i2c/st-mipid02.c +1 -1
@@ -326,7 +326,7 @@ static int mipid02_configure_from_rx_speed(struct mipid02_dev *bridge, }dev_dbg (&client->dev,"detect link_freq = %lld Hz" , link_freq); -do_div (ui_4, link_freq); + ui_4 =div64_u64 (ui_4, link_freq); bridge->r.clk_lane_reg1 |= ui_4 <<2 ;return 0 ;
drivers/media/i2c/tc358746.c +1 -2
@@ -844,8 +844,7 @@ static unsigned long tc358746_find_pll_settings(struct tc358746 *tc358746,continue ; tmp = fout * postdiv; -do_div (tmp, fin); - mul = tmp; + mul =div64_ul (tmp, fin);if (mul >511 )continue ;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c +15 -7
@@ -1023,18 +1023,26 @@ static void vdec_av1_slice_free_working_buffer(struct vdec_av1_slice_instance *iint i;for (i =0 ; i <ARRAY_SIZE (instance->mv); i++) -mtk_vcodec_mem_free (ctx, &instance->mv[i]); +if (instance->mv[i].va) +mtk_vcodec_mem_free (ctx, &instance->mv[i]);for (i =0 ; i <ARRAY_SIZE (instance->seg); i++) -mtk_vcodec_mem_free (ctx, &instance->seg[i]); +if (instance->seg[i].va) +mtk_vcodec_mem_free (ctx, &instance->seg[i]);for (i =0 ; i <ARRAY_SIZE (instance->cdf); i++) -mtk_vcodec_mem_free (ctx, &instance->cdf[i]); +if (instance->cdf[i].va) +mtk_vcodec_mem_free (ctx, &instance->cdf[i]); + -mtk_vcodec_mem_free (ctx, &instance->tile); -mtk_vcodec_mem_free (ctx, &instance->cdf_temp); -mtk_vcodec_mem_free (ctx, &instance->cdf_table); -mtk_vcodec_mem_free (ctx, &instance->iq_table); +if (instance->tile.va) +mtk_vcodec_mem_free (ctx, &instance->tile); +if (instance->cdf_temp.va) +mtk_vcodec_mem_free (ctx, &instance->cdf_temp); +if (instance->cdf_table.va) +mtk_vcodec_mem_free (ctx, &instance->cdf_table); +if (instance->iq_table.va) +mtk_vcodec_mem_free (ctx, &instance->iq_table); instance->level =AV1_RES_NONE ; }
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.c +3 -2
@@ -301,11 +301,12 @@ static void h264_enc_free_work_buf(struct venc_h264_inst *inst)* other buffers need to be freed by AP. */ for (i =0 ; i <VENC_H264_VPU_WORK_BUF_MAX ; i++) { -if (i !=VENC_H264_VPU_WORK_BUF_SKIP_FRAME ) +if (i !=VENC_H264_VPU_WORK_BUF_SKIP_FRAME && inst->work_bufs[i].va)mtk_vcodec_mem_free (inst->ctx, &inst->work_bufs[i]); } -mtk_vcodec_mem_free (inst->ctx, &inst->pps_buf); +if (inst->pps_buf.va) +mtk_vcodec_mem_free (inst->ctx, &inst->pps_buf); }static int h264_enc_alloc_work_buf (struct venc_h264_inst *inst,bool is_34bit)
drivers/media/usb/dvb-usb/dib0700_devices.c +15 -3
@@ -2412,7 +2412,12 @@ static int stk9090m_frontend_attach(struct dvb_usb_adapter *adap) adap->fe_adap[0 ].fe =dvb_attach (dib9000_attach, &adap->dev->i2c_adap,0x80 , &stk9090m_config); -return adap->fe_adap[0 ].fe ==NULL ? -ENODEV :0 ; +if (!adap->fe_adap[0 ].fe) { +release_firmware (state->frontend_firmware); +return -ENODEV ; + } + +return 0 ; }static int dib9090_tuner_attach (struct dvb_usb_adapter *adap)
@@ -2485,8 +2490,10 @@ static int nim9090md_frontend_attach(struct dvb_usb_adapter *adap)dib9000_i2c_enumeration (&adap->dev->i2c_adap,1 ,0x20 ,0x80 ); adap->fe_adap[0 ].fe =dvb_attach (dib9000_attach, &adap->dev->i2c_adap,0x80 , &nim9090md_config[0 ]); -if (adap->fe_adap[0 ].fe ==NULL ) +if (!adap->fe_adap[0 ].fe) { +release_firmware (state->frontend_firmware);return -ENODEV ; + } i2c =dib9000_get_i2c_master (adap->fe_adap[0 ].fe,DIBX000_I2C_INTERFACE_GPIO_3_4 ,0 );dib9000_i2c_enumeration (i2c,1 ,0x12 ,0x82 );
@@ -2494,7 +2501,12 @@ static int nim9090md_frontend_attach(struct dvb_usb_adapter *adap) fe_slave =dvb_attach (dib9000_attach, i2c,0x82 , &nim9090md_config[1 ]);dib9000_set_slave_frontend (adap->fe_adap[0 ].fe, fe_slave); -return fe_slave ==NULL ? -ENODEV :0 ; +if (!fe_slave) { +release_firmware (state->frontend_firmware); +return -ENODEV ; + } + +return 0 ; }static int nim9090md_tuner_attach (struct dvb_usb_adapter *adap)
drivers/media/usb/dvb-usb/dw2102.c +73 -47
151 lines not on this page · raw message
drivers/media/usb/s2255/s2255drv.c +10 -10
@@ -247,7 +247,7 @@ struct s2255_vc {struct s2255_dev {struct s2255_vc vc[MAX_CHANNELS ];struct v4l2_device v4l2_dev; -atomic_t num_channels; +refcount_t num_channels;int frames;struct mutex lock;/* channels[].vdev.lock */ struct mutex cmdlock;/* protects cmdbuf */
@@ -1550,11 +1550,11 @@ static void s2255_video_device_release(struct video_device *vdev) container_of(vdev, struct s2255_vc, vdev);dprintk (dev,4 ,"%s, chnls: %d\n" , __func__, -atomic_read (&dev->num_channels)); +refcount_read (&dev->num_channels));v4l2_ctrl_handler_free (&vc->hdl); -if (atomic_dec_and_test (&dev->num_channels)) +if (refcount_dec_and_test (&dev->num_channels))s2255_destroy (dev);return ; }
@@ -1659,7 +1659,7 @@ static int s2255_probe_v4l(struct s2255_dev *dev) "failed to register video device!\n");break ; } -atomic_inc (&dev->num_channels); +refcount_inc (&dev->num_channels);v4l2_info (&dev->v4l2_dev,"V4L2 device registered as %s\n" ,video_device_node_name (&vc->vdev));
@@ -1667,11 +1667,11 @@ static int s2255_probe_v4l(struct s2255_dev *dev)pr_info ("Sensoray 2255 V4L driver Revision: %s\n" ,S2255_VERSION );/* if no channels registered, return error and probe will fail*/ -if (atomic_read (&dev->num_channels) ==0 ) { +if (refcount_read (&dev->num_channels) ==0 ) {v4l2_device_unregister (&dev->v4l2_dev);return ret; } -if (atomic_read (&dev->num_channels) !=MAX_CHANNELS ) +if (refcount_read (&dev->num_channels) !=MAX_CHANNELS )pr_warn ("s2255: Not all channels available.\n" );return 0 ; }
@@ -2221,7 +2221,7 @@ static int s2255_probe(struct usb_interface *interface, goto errorFWDATA1; } -atomic_set (&dev->num_channels,0 ); +refcount_set (&dev->num_channels,0 ); dev->pid = id->idProduct; dev->fw_data =kzalloc (sizeof (struct s2255_fw ),GFP_KERNEL );if (!dev->fw_data)
@@ -2341,12 +2341,12 @@ static void s2255_disconnect(struct usb_interface *interface) {struct s2255_dev *dev =to_s2255_dev (usb_get_intfdata (interface));int i; -int channels =atomic_read (&dev->num_channels); +int channels =refcount_read (&dev->num_channels);mutex_lock (&dev->lock);v4l2_device_disconnect (&dev->v4l2_dev);mutex_unlock (&dev->lock);/*see comments in the uvc_driver.c usb disconnect function */ -atomic_inc (&dev->num_channels); +refcount_inc (&dev->num_channels);/* unregister each video device. */ for (i =0 ; i < channels; i++)video_unregister_device (&dev->vc[i].vdev);
@@ -2359,7 +2359,7 @@ static void s2255_disconnect(struct usb_interface *interface) dev->vc[i].vidstatus_ready =1 ;wake_up (&dev->vc[i].wait_vidstatus); } -if (atomic_dec_and_test (&dev->num_channels)) +if (refcount_dec_and_test (&dev->num_channels))s2255_destroy (dev);dev_info (&interface->dev,"%s\n" , __func__); }
drivers/mtd/nand/raw/nand_base.c +40 -26
119 lines not on this page · raw message
drivers/mtd/nand/raw/rockchip-nand-controller.c +3 -3
@@ -420,13 +420,13 @@ static int rk_nfc_setup_interface(struct nand_chip *chip, int target,u32 rate, tc2rw, trwpw, trw2c;u32 temp; -if (target <0 ) -return 0 ; - timings =nand_get_sdr_timings (conf);if (IS_ERR (timings))return -EOPNOTSUPP ; +if (target <0 ) +return 0 ; +if (IS_ERR (nfc->nfc_clk)) rate =clk_get_rate (nfc->ahb_clk);else
drivers/net/bonding/bond_options.c +3 -3
@@ -1214,9 +1214,9 @@ static int bond_option_arp_ip_targets_set(struct bonding *bond,__be32 target;if (newval->string) { -if (!in4_pton (newval->string+1 ,-1 , (u8 *)&target,-1 ,NULL )) { -netdev_err (bond->dev,"invalid ARP target %pI4 specified\n" , - &target); +if (strlen (newval->string) <1 || + !in4_pton (newval->string +1 ,-1 , (u8 *)&target,-1 ,NULL )) { +netdev_err (bond->dev,"invalid ARP target specified\n" );return ret; }if (newval->string[0 ] =='+' )
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c +1 -0
@@ -125,6 +125,7 @@ static const struct kvaser_usb_driver_info kvaser_usb_driver_info_leaf_err_listestatic const struct kvaser_usb_driver_info kvaser_usb_driver_info_leafimx = { .quirks =0 , + .family =KVASER_LEAF , .ops = &kvaser_usb_leaf_dev_ops, };
drivers/net/dsa/mv88e6xxx/chip.c +2 -2
@@ -131,8 +131,8 @@ struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) {struct mv88e6xxx_mdio_bus *mdio_bus; - mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, - list); + mdio_bus =list_first_entry_or_null (&chip->mdios, + struct mv88e6xxx_mdio_bus, list);if (!mdio_bus)return NULL ;
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +1 -1
@@ -1262,7 +1262,7 @@ enum {struct bnx2x_fw_stats_req {struct stats_query_header hdr; -struct stats_query_entry query[FP_SB_MAX_E1x+ +struct stats_query_entry query[FP_SB_MAX_E2 +BNX2X_FIRST_QUEUE_QUERY_IDX ]; };
drivers/net/ethernet/broadcom/bnxt/bnxt.c +5 -1
@@ -12436,7 +12436,11 @@ static bool bnxt_rfs_capable(struct bnxt *bp)if (!BNXT_NEW_RM (bp))return true; -if (hwr.vnic == bp->hw_resc.resv_vnics && +/* Do not reduce VNIC and RSS ctx reservations. There is a FW +* issue that will mess up the default VNIC if we reduce the +* reservations. +*/ +if (hwr.vnic <= bp->hw_resc.resv_vnics && hwr.rss_ctx <= bp->hw_resc.resv_rsscos_ctxs)return true;
drivers/net/ethernet/google/gve/gve_ethtool.c +35 -6
107 lines not on this page · raw message
drivers/net/ethernet/intel/e1000e/netdev.c +66 -66
167 lines not on this page · raw message
drivers/net/ethernet/intel/ice/ice_hwmon.c +1 -1
@@ -96,7 +96,7 @@ static bool ice_is_internal_reading_supported(struct ice_pf *pf)unsigned long sensors = pf->hw.dev_caps.supported_sensors; -return _test_bit (ICE_SENSOR_SUPPORT_E810_INT_TEMP_BIT , &sensors); +return test_bit (ICE_SENSOR_SUPPORT_E810_INT_TEMP_BIT , &sensors); };void ice_hwmon_init (struct ice_pf *pf)
drivers/net/ethernet/intel/ice/ice_ptp.c +101 -30
244 lines not on this page · raw message
drivers/net/ethernet/intel/ice/ice_ptp.h +9 -0
@@ -29,10 +29,17 @@ enum ice_ptp_pin_e810t {struct ice_perout_channel {bool ena;u32 gpio_pin; +u32 flags;u64 period;u64 start_time; }; +struct ice_extts_channel { +bool ena; +u32 gpio_pin; +u32 flags; +}; +/* The ice hardware captures Tx hardware timestamps in the PHY. The timestamp * is stored in a buffer of registers. Depending on the specific hardware, * this buffer might be shared across multiple PHY ports.
@@ -226,6 +233,7 @@ enum ice_ptp_state {* @ext_ts_irq: the external timestamp IRQ in use * @kworker: kwork thread for handling periodic work * @perout_channels: periodic output data +* @extts_channels: channels for external timestamps * @info: structure defining PTP hardware capabilities * @clock: pointer to registered PTP clock device * @tstamp_config: hardware timestamping configuration
@@ -249,6 +257,7 @@ struct ice_ptp {u8 ext_ts_irq;struct kthread_worker *kworker;struct ice_perout_channel perout_channels[GLTSYN_TGT_H_IDX_MAX ]; +struct ice_extts_channel extts_channels[GLTSYN_TGT_H_IDX_MAX ];struct ptp_clock_info info;struct ptp_clock *clock;struct hwtstamp_config tstamp_config;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c +35 -13
11 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c +29 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/libwx/wx_hw.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/libwx/wx_lib.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/libwx/wx_type.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c +47 -77
124 lines not on this page · raw message
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/microchip/wilc1000/hif.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw89/fw.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/platform/x86/touchscreen_dmi.c +36 -0
Lines of this file are not shown. View the raw message.
drivers/s390/crypto/pkey_api.c +51 -58
109 lines not on this page · raw message
drivers/scsi/mpi3mr/mpi3mr_transport.c +10 -0
Lines of this file are not shown. View the raw message.
drivers/thermal/mediatek/lvts_thermal.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/vhost/vhost.c +91 -23
114 lines not on this page · raw message
kernel/vhost_task.c +34 -19
53 lines not on this page · raw message
net/bpf/bpf_dummy_struct_ops.c +52 -3
55 lines not on this page · raw message
tools/power/x86/turbostat/turbostat.c +24 -11
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c +32 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/dummy_st_ops_success.c +12 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kselftest_harness.h +24 -19
43 lines not on this page · raw message
tools/testing/selftests/net/ip_local_port_range.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/mptcp/pm_nl_ctl.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/msg_zerocopy.c +12 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/resctrl/cat_test.c +22 -10
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.