Linux 6.6.13
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.13 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.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/arc/kernel/setup.c | 4 arch/arc/kernel/signal.c | 6 arch/arm/mach-sunxi/mc_smp.c | 4 arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 3 arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-dumo.dts | 4 arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 arch/arm64/boot/dts/rockchip/rk356x.dtsi | 2 arch/arm64/include/asm/syscall_wrapper.h | 4 arch/loongarch/Makefile | 2 arch/loongarch/include/asm/efi.h | 2 arch/loongarch/include/asm/elf.h | 2 arch/loongarch/kernel/stacktrace.c | 2 arch/loongarch/kernel/unwind.c | 1 arch/loongarch/kernel/unwind_prologue.c | 2 arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 3 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 3 arch/riscv/include/asm/syscall_wrapper.h | 5 arch/s390/include/asm/syscall_wrapper.h | 13 - arch/x86/include/asm/syscall_wrapper.h | 34 --- arch/x86/kernel/cpu/microcode/core.c | 6 arch/x86/lib/csum-partial_64.c | 105 +++------- block/blk-core.c | 14 + block/blk-mq.c | 14 + drivers/acpi/resource.c | 7 drivers/android/binder.c | 2 drivers/android/binder_alloc.c | 10 drivers/block/virtio_blk.c | 8 drivers/bus/moxtet.c | 9 drivers/clk/rockchip/clk-rk3128.c | 2 drivers/clk/rockchip/clk-rk3568.c | 1 drivers/connector/cn_proc.c | 5 drivers/firmware/efi/libstub/loongarch-stub.c | 4 drivers/firmware/efi/libstub/loongarch.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 6 drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c | 5 drivers/gpu/drm/amd/amdgpu/soc15.c | 17 + drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 54 +++-- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 18 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 23 +- drivers/gpu/drm/amd/display/dc/bios/command_table2.c | 12 - drivers/gpu/drm/amd/display/dc/bios/command_table2.h | 2 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 8 drivers/gpu/drm/amd/display/dc/core/dc.c | 26 +- drivers/gpu/drm/amd/display/dc/dc_bios_types.h | 2 drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 8 drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.c | 7 drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.h | 2 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 16 - drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c | 36 ++- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c | 5 drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 3 drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h | 2 drivers/gpu/drm/amd/display/dc/link/link_factory.c | 56 +++-- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 14 + drivers/gpu/drm/amd/display/include/grph_object_ctrl_defs.h | 2 drivers/gpu/drm/drm_crtc.c | 8 drivers/gpu/drm/drm_prime.c | 33 +-- drivers/gpu/drm/exynos/exynos_drm_dma.c | 8 drivers/gpu/drm/exynos/exynos_hdmi.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c | 2 drivers/hid/hid-nintendo.c | 71 ++++-- drivers/hwmon/corsair-psu.c | 18 + drivers/hwtracing/coresight/coresight-etm4x.h | 2 drivers/hwtracing/ptt/hisi_ptt.c | 9 drivers/i2c/busses/i2c-rk3x.c | 13 + drivers/input/joystick/xpad.c | 1 drivers/input/keyboard/atkbd.c | 46 ++++ drivers/input/mouse/synaptics.c | 1 drivers/input/serio/i8042-acpipnpio.h | 8 drivers/leds/trigger/ledtrig-tty.c | 4 drivers/md/Kconfig | 1 drivers/md/raid5.c | 12 - drivers/net/ethernet/broadcom/tg3.c | 11 - drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 5 drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 drivers/nvme/host/core.c | 64 +++--- drivers/nvme/host/fc.c | 6 drivers/nvme/host/ioctl.c | 21 +- drivers/nvme/host/nvme.h | 6 drivers/nvme/host/pci.c | 14 - drivers/nvme/host/rdma.c | 23 +- drivers/nvme/host/tcp.c | 27 +- drivers/nvme/target/configfs.c | 3 drivers/parport/parport_serial.c | 64 ++++++ drivers/pci/quirks.c | 8 drivers/pinctrl/cirrus/Kconfig | 3 drivers/pinctrl/nxp/pinctrl-s32cc.c | 4 drivers/pinctrl/pinctrl-amd.c | 9 drivers/pinctrl/pinctrl-amd.h | 5 drivers/pinctrl/pinctrl-cy8c95x0.c | 14 + drivers/platform/x86/amd/pmc/pmc-quirks.c | 20 + drivers/platform/x86/amd/pmc/pmc.c | 33 +-- drivers/platform/x86/amd/pmc/pmc.h | 12 + drivers/platform/x86/intel/vbtn.c | 19 + drivers/platform/x86/thinkpad_acpi.c | 98 ++++++++- drivers/reset/hisilicon/hi6220_reset.c | 2 drivers/s390/block/scm_blk.c | 7 drivers/soundwire/intel_ace2x.c | 3 drivers/uio/uio.c | 7 drivers/vdpa/pds/debugfs.c | 2 drivers/vdpa/pds/vdpa_dev.c | 7 fs/debugfs/file.c | 8 fs/debugfs/inode.c | 27 +- fs/debugfs/internal.h | 10 fs/f2fs/xattr.c | 6 fs/jbd2/commit.c | 10 fs/jbd2/journal.c | 24 +- fs/smb/client/cifspdu.h | 24 +- fs/smb/client/cifssmb.c | 6 fs/smb/client/smb2misc.c | 30 +- fs/smb/client/smb2ops.c | 6 fs/smb/client/smb2pdu.c | 8 fs/smb/client/smb2pdu.h | 16 - fs/smb/common/smb2pdu.h | 17 - fs/smb/server/smb2pdu.c | 23 -- fs/smb/server/smbacl.c | 11 - include/drm/drm_prime.h | 7 include/linux/blk_types.h | 1 include/linux/device.h | 2 include/linux/ieee80211.h | 4 include/linux/jbd2.h | 3 io_uring/cancel.c | 11 - io_uring/io_uring.c | 36 +-- kernel/sys_ni.c | 14 + kernel/time/posix-stubs.c | 45 ---- kernel/trace/ring_buffer.c | 6 kernel/trace/trace.c | 12 + kernel/trace/trace.h | 1 kernel/trace/trace_events_hist.c | 12 - kernel/trace/trace_output.c | 6 lib/idr.c | 2 lib/kunit/test.c | 42 +++- lib/test_ida.c | 40 +++ mm/memory_hotplug.c | 8 net/core/neighbour.c | 9 net/mac80211/ht.c | 1 net/mptcp/options.c | 1 net/nfc/llcp_sock.c | 5 net/qrtr/ns.c | 4 net/wireless/core.c | 2 scripts/decode_stacktrace.sh | 19 + sound/drivers/pcmtest.c | 13 + sound/hda/intel-nhlt.c | 33 ++- sound/pci/hda/patch_realtek.c | 16 + sound/soc/amd/yc/acp6x-mach.c | 14 + sound/soc/codecs/cs35l45-i2c.c | 2 sound/soc/codecs/cs35l45-spi.c | 2 sound/soc/codecs/cs35l45.c | 56 ++++- sound/soc/codecs/cs43130.c | 6 sound/soc/codecs/da7219-aad.c | 2 sound/soc/codecs/hdac_hda.c | 23 +- sound/soc/codecs/nau8822.c | 9 sound/soc/codecs/rt5645.c | 10 sound/soc/codecs/wm8974.c | 6 sound/soc/fsl/fsl_xcvr.c | 14 + sound/soc/intel/boards/bytcr_rt5640.c | 31 ++ sound/soc/intel/boards/skl_hda_dsp_generic.c | 2 sound/soc/intel/skylake/skl-pcm.c | 9 sound/soc/intel/skylake/skl-sst-ipc.c | 4 sound/soc/sof/intel/hda-codec.c | 18 - sound/soc/sof/ipc3-topology.c | 2 sound/soc/sof/ipc4-control.c | 20 - sound/soc/sof/ipc4-topology.c | 61 +++-- sound/soc/sof/ipc4-topology.h | 34 ++- sound/soc/sof/sof-audio.c | 65 +++--- sound/soc/sof/sof-audio.h | 2 sound/soc/sof/topology.c | 4 tools/testing/selftests/alsa/mixer-test.c | 2 171 files changed, 1572 insertions(+), 769 deletions(-)
Armin Wolf (1):
hwmon: (corsair-psu) Fix probe when built-in
Avraham Stern (1):
wifi: iwlwifi: pcie: avoid a NULL pointer dereference
Ben Greear (1):
wifi: mac80211: handle 320 MHz in ieee80211_ht_cap_ie_to_sta_ht_cap
Bitao Hu (1):
nvme: fix deadlock between reset and scan
Cameron Williams (2):
parport: parport_serial: Add Brainboxes BAR details
parport: parport_serial: Add Brainboxes device IDs and geometry
Carlos Llamas (5):
binder: use EPOLLERR from eventpoll.h
binder: fix use-after-free in shinker's callback
binder: fix trivial typo of binder_free_buf_locked()
binder: fix comment on binder_alloc_new_buf() return value scripts/decode_stacktrace.sh: optionally use LLVM utilities
Chao Song (1):
soundwire: intel_ace2x: fix AC timing setting for ACE2.x
Charlene Liu (1):
drm/amd/display: get dprefclk ss info from integration info table
Charles Keepax (2):
pinctrl: lochnagar: Don't build on MIPS
ASoC: wm8974: Correct boost mixer inputs
Chester Lin (1):
pinctrl: s32cc: Avoid possible string truncation
Chris Morgan (1):
clk: rockchip: rk3568: Add PLL rate for 292.5MHz
Dan Williams (1):
driver core: Add a guard() definition for the device_lock()
Dave Airlie (1):
nouveau/tu102: flush all pdbs on vmm flush
David Lin (1):
ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
David Rau (1):
ASoC: da7219: Support low DC impedance headset
Dmitry Antipov (1):
smb: client, common: fix fortify warnings
Dmytro Laktyushkin (1):
drm/amd/display: update dcn315 lpddr pstate latency
Edward Adam Davis (1):
mptcp: fix uninit-value in mptcp_incoming_options
Eric Biggers (1):
f2fs: explicitly null-terminate the xattr list
Esther Shimanovich (1):
Input: i8042 - add nomux quirk for Acer P459-G2-M
Fedor Pchelkin (1):
ksmbd: free ppace array on error in parse_dacl
Felix Kuehling (1):
Revert "drm/prime: Unexport helpers for fd/handle conversion"
Florian Eckert (1):
leds: ledtrig-tty: Free allocated ttyname buffer on deactivate
Ghanshyam Agrawal (1):
kselftest: alsa: fixed a print formatting warning
Greg Kroah-Hartman (1):
Linux 6.6.13
Guanghui Feng (1):
uio: Fix use-after-free in uio_open
Guilherme G. Piccoli (1):
HID: nintendo: Prevent divide-by-zero on code
Hans de Goede (5):
platform/x86: intel-vbtn: Fix missing tablet-mode-switch events
Input: atkbd - skip ATKBD_CMD_GETID in translated mode
ASoC: Intel: bytcr_rt5640: Add quirk for the Medion Lifetab S10346
ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk
ACPI: resource: Add another DMI match for the TongFang GMxXGxx
Hawking Zhang (1):
drm/amdgpu: Do not issue gpu reset from nbio v7_9 bif interrupt
Heiko Stuebner (1):
arm64: dts: rockchip: fix rk356x pcie msg interrupt name
Hengqi Chen (1):
LoongArch: Preserve syscall nr across execve()
Inki Dae (1):
drm/exynos: fix a wrong error checking
Ivan Lipski (1):
drm/amd/display: Add monitor patch for specific eDP
Ivan Orlov (1):
ALSA: pcmtest: stop timer before buffer is released
James Clark (1):
coresight: etm4x: Fix width of CCITMIN field
Jani Nikula (1):
drm/crtc: fix uninitialized variable use
Jens Axboe (1):
io_uring: use fget/fput consistently
Jensen Huang (1):
i2c: rk3x: fix potential spinlock recursion on poll
Jeremy Soller (1):
ASoC: amd: yc: Add DMI entry to support System76 Pangolin 13
Jinyang He (1):
LoongArch: Set unwind stack type to unknown rather than set error flag
Johannes Berg (2):
wifi: cfg80211: lock wiphy mutex for rfkill poll
debugfs: fix automount d_fsdata usage
José Pekkarinen (1):
Input: psmouse - enable Synaptics InterTouch for ThinkPad L14 G1
Judy Hsiao (1):
neighbour: Don't let neigh_forced_gc() disable preemption for long
Junxiao Bi (1):
Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
Kamil Duljas (3):
ASoC: Intel: Skylake: Fix mem leak in few functions
ASoC: SOF: topology: Fix mem leak in sof_dai_load()
ASoC: Intel: Skylake: mem leak in skl register function
Keith Busch (4):
nvme-core: check for too small lba shift
nvme: introduce helper function to get ctrl state
nvme: ensure reset state check ordering
nvme-ioctl: move capable() admin check to the end
Krzysztof Kozlowski (3):
stmmac: dwmac-loongson: drop useless check for compatible fallback
MIPS: dts: loongson: drop incorrect dwmac fallback compatible
reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
LeoLiuoc (1):
PCI: Add ACS quirk for more Zhaoxin Root Ports
Lewis Huang (1):
drm/amd/display: Pass pwrseq inst for backlight and ABM
Lijo Lazar (2):
drm/amdgpu: Use another offset for GC 9.4.3 remap drm/amdgpu: Add NULL checks for function pointers
Linus Torvalds (2):
posix-timers: Get rid of [COMPAT_]SYS_NI() uses x86/csum: clean up `csum_partial' further
Lu Yao (1):
drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
Luca Weiss (1):
Input: xpad - add Razer Wolverine V2 support
Maciej Strozek (2):
ASoC: cs43130: Fix the position of const qualifier
ASoC: cs43130: Fix incorrect frame delay configuration
Mario Limonciello (5):
pinctrl: amd: Mask non-wake source pins with interrupt enabled at suspend platform/x86/amd/pmc: Move platform defines to header platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13
Matthew Wilcox (Oracle) (1):
ida: Fix crash in ida_free when the bitmap is empty
Matus Malych (1):
ASoC: amd: yc: Add HP 255 G10 into quirk table
Maurizio Lombardi (1):
nvme-core: fix a memory leak in nvme_ns_info_from_identify()
Maxime Ripard (1):
kunit: Warn if tests are slow
Michael-CY Lee (1):
wifi: avoid offset calculation on NULL pointer
Michal Wajdeczko (1):
kunit: Reset suite counter right before running tests
Mike Snitzer (1):
dm audit: fix Kconfig so DM_AUDIT depends on BLK_DEV_DM
Ming Lei (1):
blk-mq: don't count completed flush data request as inflight in case of quiesce
Mukul Joshi (1):
drm/amdkfd: Use common function for IP version check
Namjae Jeon (1):
ksmbd: don't allow O_TRUNC open on read-only share
Nitesh Shetty (1):
nvme: prevent potential spectre v1 gadget
Noah Goldstein (1):
x86/csum: Remove unnecessary odd handling
Paolo Bonzini (1):
x86/microcode: do not cache microcode if it will not be used
Patrick Rudolph (3):
pinctrl: cy8c95x0: Fix typo
pinctrl: cy8c95x0: Fix regression
pinctrl: cy8c95x0: Fix get_pincfg
Paulo Alcantara (1):
smb: client: fix potential OOB in smb2_dump_detail()
Peter Ujfalusi (6):
ALSA: hda: intel-nhlt: Ignore vbps when looking for DMIC 32 bps format
ASoC: Intel: skl_hda_dsp_generic: Drop HDMI routes when HDMI is not available
ASoC: hdac_hda: Conditionally register dais for HDMI and Analog
ASoC: SOF: ipc4-topology: Correct data structures for the SRC module
ASoC: SOF: ipc4-topology: Correct data structures for the GAIN module
ASoC: SOF: Intel: hda-codec: Delay the codec device registration
Philip Yang (1):
drm/amdkfd: svm range always mapped flag not working on APU
Ranjani Sridharan (2):
ASoC: SOF: ipc4-topology: Add core_mask in struct snd_sof_pipeline
ASoC: SOF: sof-audio: Modify logic for enabling/disabling topology cores
Ricardo Rivera-Matos (3):
ASoC: cs35l45: Use modern pm_ops
ASoC: cs35l45: Prevent IRQ handling when suspending/resuming
ASoC: cs35l45: Prevents spinning during runtime suspend
Rob Herring (1):
arm64: dts: rockchip: Fix PCI node addresses on rk3399-gru
Ryan McClelland (1):
HID: nintendo: fix initializer element is not constant error
Sarannya S (1):
net: qrtr: ns: Return 0 if server port is not present
Shannon Nelson (3):
pds_vdpa: fix up format-truncation complaint
pds_vdpa: clear config callback when status goes to 0
pds_vdpa: set features order
Shengjiu Wang (2):
ASoC: fsl_xcvr: Enable 2 * TX bit clock for spdif only case
ASoC: fsl_xcvr: refine the requested phy clock frequency
Shuming Fan (1):
ASoC: rt5650: add mutex to avoid the jack detection failure
Siddh Raman Pant (1):
nfc: Do not send datagram if socket state isn't LLCP_BOUND
Sjoerd Simons (2):
bus: moxtet: Mark the irq as shared
bus: moxtet: Add spi device table
Stefan Binding (1):
ALSA: hda/realtek: Add quirks for ASUS Zenbook 2022 Models
Stefan Hajnoczi (1):
virtio_blk: fix snprintf truncation compiler warning
Stefan Wahren (1):
ARM: sun9i: smp: fix return code check of of_property_match_string
Steven Rostedt (Google) (3):
tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
tracing: Add size check when printing trace_marker output
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
Sumanth Korikkar (1):
mm/memory_hotplug: fix memmap_on_memory sysfs value retrieval
Thinh Tran (1):
net/tg3: fix race condition in tg3_reset_task()
Tom Jason Schwanke (1):
ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP Envy X360 13-ay0xxx
Vasiliy Kovalev (1):
ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
Vineet Gupta (2):
ARC: fix spare error
ARC: fix smatch warning
Vineeth Vijayan (1):
s390/scm: fix virtual vs physical address confusion
Vishnu Sankar (1):
platform/x86: thinkpad_acpi: fix for incorrect fan reporting on some ThinkPad systems
WANG Rui (1):
LoongArch: Apply dynamic relocations for LLD
Wang Yao (1):
efi/loongarch: Use load address to calculate kernel entry address
Wayne Lin (1):
drm/amd/display: Add case for dcn35 to support usb4 dmub hpd event
Weihao Li (1):
clk: rockchip: rk3128: Fix HCLK_OTG gate register
Xiang Yang (1):
drm/exynos: fix a potential error pointer dereference
Ye Bin (1):
jbd2: fix soft lockup in journal_finish_inode_data_buffers()
Yicong Yang (2):
hwtracing: hisi_ptt: Handle the interrupt in hardirq context
hwtracing: hisi_ptt: Don't try to attach a task
Yu Kuai (1):
block: warn once for each partition in bio_check_ro()
Zhang Yi (2):
jbd2: correct the printing of write_flags in jbd2_write_superblock()
jbd2: increase the journal IO's priority
ZhenGuo Yin (1):
drm/amdkfd: Free gang_ctx_bo and wptr_bo in pqm_uninit
Zheng Yejian (1):
tracing: Fix uaf issue when open the hist or hist_debug file
Ziqi Zhao (1):
drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
wangkeqi (1):
connector: Fix proc_event_num_listeners count not cleared
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 12 +SUBLEVEL = 13 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arc/kernel/setup.c +1 -3
@@ -153,7 +153,7 @@ static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len) {int n =0 ;#ifdef CONFIG_ISA_ARCV2 -const char *release, *cpu_nm, *isa_nm ="ARCv2" ; +const char *release ="" , *cpu_nm ="HS38" , *isa_nm ="ARCv2" ;int dual_issue =0 , dual_enb =0 , mpy_opt, present;int bpu_full, bpu_cache, bpu_pred, bpu_ret_stk;char mpy_nm[16 ], lpb_nm[32 ];
@@ -172,8 +172,6 @@ static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)* releases only update it. */ - cpu_nm ="HS38" ; -if (info->arcver >0x50 && info->arcver <=0x53 ) { release = arc_hs_rel[info->arcver -0x51 ].str; }else {
arch/arc/kernel/signal.c +3 -3
@@ -62,7 +62,7 @@ struct rt_sigframe {unsigned int sigret_magic; }; -static int save_arcv2_regs (struct sigcontext *mctx,struct pt_regs *regs) +static int save_arcv2_regs (struct sigcontext __user *mctx,struct pt_regs *regs) {int err =0 ;#ifndef CONFIG_ISA_ARCOMPACT
@@ -75,12 +75,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)#else v2abi.r58 = v2abi.r59 =0 ;#endif - err =__copy_to_user (&mctx->v2abi, &v2abi,sizeof (v2abi)); + err =__copy_to_user (&mctx->v2abi, (void const *)&v2abi,sizeof (v2abi));#endif return err; } -static int restore_arcv2_regs (struct sigcontext *mctx,struct pt_regs *regs) +static int restore_arcv2_regs (struct sigcontext __user *mctx,struct pt_regs *regs) {int err =0 ;#ifndef CONFIG_ISA_ARCOMPACT
arch/arm/mach-sunxi/mc_smp.c +2 -2
@@ -803,12 +803,12 @@ static int __init sunxi_mc_smp_init(void)for (i =0 ; i <ARRAY_SIZE (sunxi_mc_smp_data); i++) { ret =of_property_match_string (node,"enable-method" , sunxi_mc_smp_data[i].enable_method); -if (!ret) +if (ret >=0 )break ; }of_node_put (node); -if (ret) +if (ret <0 )return -ENODEV ; is_a83t = sunxi_mc_smp_data[i].is_a83t;
arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +1 -2
@@ -509,8 +509,7 @@ wacky_spi_audio: spi2@0 { &pci_rootport { mvl_wifi: wifi@0,0 { compatible = "pci1b4b,2b42"; - reg = <0x83010000 0x0 0x00000000 0x0 0x00100000 - 0x83010000 0x0 0x00100000 0x0 0x00100000>; + reg = <0x0000 0x0 0x0 0x0 0x0>; interrupt-parent = <&gpio0>; interrupts = <8 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default";
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-dumo.dts +2 -2
@@ -34,8 +34,8 @@ &mipi_panel { &pci_rootport { wifi@0,0 { compatible = "qcom,ath10k"; - reg = <0x00010000 0x0 0x00000000 0x0 0x00000000>, - <0x03010010 0x0 0x00000000 0x0 0x00200000>; + reg = <0x00000000 0x0 0x00000000 0x0 0x00000000>, + <0x03000010 0x0 0x00000000 0x0 0x00200000>; qcom,ath10k-calibration-variant = "GO_DUMO"; }; };
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +1 -0
@@ -489,6 +489,7 @@ pci_rootport: pcie@0,0 { #address-cells = <3>; #size-cells = <2>; ranges; + device_type = "pci"; }; };
arch/arm64/boot/dts/rockchip/rk356x.dtsi +1 -1
@@ -970,7 +970,7 @@ pcie2x1: pcie@fe260000 { <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "sys", "pmc", "msi", "legacy", "err"; + interrupt-names = "sys", "pmc", "msg", "legacy", "err"; bus-range = <0x0 0xf>; clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>, <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
arch/arm64/include/asm/syscall_wrapper.h +0 -4
@@ -44,9 +44,6 @@ return sys_ni_syscall(); \ } -#define COMPAT_SYS_NI (name) \ - SYSCALL_ALIAS(__arm64_compat_sys_##name, sys_ni_posix_timers); -#endif /* CONFIG_COMPAT */ #define __SYSCALL_DEFINEx (x, name, ...) \
@@ -82,6 +79,5 @@ }asmlinkage long __arm64_sys_ni_syscall (const struct pt_regs *__unused); -#define SYS_NI (name) SYSCALL_ALIAS(__arm64_sys_##name, sys_ni_posix_timers);#endif /* __ASM_SYSCALL_WRAPPER_H */
arch/loongarch/Makefile +1 -1
@@ -80,7 +80,7 @@ endif ifeq ($(CONFIG_RELOCATABLE),y) KBUILD_CFLAGS_KERNEL += -fPIE -LDFLAGS_vmlinux += -static -pie --no-dynamic-linker -z notext +LDFLAGS_vmlinux += -static -pie --no-dynamic-linker -z notext $(call ld-option, --apply-dynamic-relocs) endif cflags-y += $(call cc-option, -mno-check-zero-division)
arch/loongarch/include/asm/efi.h +1 -1
@@ -32,6 +32,6 @@ static inline unsigned long efi_get_kimg_min_align(void)#define EFI_KIMG_PREFERRED_ADDRESS PHYSADDR(VMLINUX_LOAD_ADDRESS) -unsigned long kernel_entry_address (void ); +unsigned long kernel_entry_address (unsigned long kernel_addr);#endif /* _ASM_LOONGARCH_EFI_H */
arch/loongarch/include/asm/elf.h +1 -1
@@ -293,7 +293,7 @@ extern const char *__elf_platform; #define ELF_PLAT_INIT(_r, load_addr) do { \ _r->regs[1] = _r->regs[2] = _r->regs[3] = _r->regs[4] = 0; \ _r->regs[5] = _r->regs[6] = _r->regs[7] = _r->regs[8] = 0; \ - _r->regs[9] = _r->regs[10] = _r->regs[11] = _r->regs[12] = 0; \ + _r->regs[9] = _r->regs[10] /* syscall n */ = _r->regs[12] = 0; \ _r->regs[13] = _r->regs[14] = _r->regs[15] = _r->regs[16] = 0; \ _r->regs[17] = _r->regs[18] = _r->regs[19] = _r->regs[20] = 0; \ _r->regs[21] = _r->regs[22] = _r->regs[23] = _r->regs[24] = 0; \
arch/loongarch/kernel/stacktrace.c +1 -1
@@ -32,7 +32,7 @@ void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, }for (unwind_start (&state, task, regs); - !unwind_done (&state) && !unwind_error (&state);unwind_next_frame (&state)) { + !unwind_done (&state);unwind_next_frame (&state)) { addr =unwind_get_return_address (&state);if (!addr || !consume_entry (cookie, addr))break ;
arch/loongarch/kernel/unwind.c +0 -1
@@ -28,6 +28,5 @@ bool default_next_frame(struct unwind_state *state) }while (!get_stack_info (state->sp, state->task, info)); - state->error = true;return false; }
arch/loongarch/kernel/unwind_prologue.c +1 -1
@@ -227,7 +227,7 @@ static bool next_frame(struct unwind_state *state) }while (!get_stack_info (state->sp, state->task, info)); out: - state->error = true; + state->stack_info.type =STACK_TYPE_UNKNOWN ;return false; }
arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi +1 -2
@@ -130,8 +130,7 @@ gmac@3,0 { compatible = "pci0014,7a03.0", "pci0014,7a03", "pciclass0c0320", - "pciclass0c03", - "loongson, pci-gmac"; + "pciclass0c03"; reg = <0x1800 0x0 0x0 0x0 0x0>; interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
arch/mips/boot/dts/loongson/ls7a-pch.dtsi +1 -2
@@ -193,8 +193,7 @@ gmac@3,0 { compatible = "pci0014,7a03.0", "pci0014,7a03", "pciclass020000", - "pciclass0200", - "loongson, pci-gmac"; + "pciclass0200"; reg = <0x1800 0x0 0x0 0x0 0x0>; interrupts = <12 IRQ_TYPE_LEVEL_HIGH>,
arch/riscv/include/asm/syscall_wrapper.h +0 -5
@@ -46,9 +46,6 @@ asmlinkage long __riscv_sys_ni_syscall(const struct pt_regs *); return sys_ni_syscall(); \ } -#define COMPAT_SYS_NI (name) \ - SYSCALL_ALIAS(__riscv_compat_sys_##name, sys_ni_posix_timers); -#endif /* CONFIG_COMPAT */ #define __SYSCALL_DEFINEx (x, name, ...) \
@@ -82,6 +79,4 @@ asmlinkage long __riscv_sys_ni_syscall(const struct pt_regs *); return sys_ni_syscall(); \ } -#define SYS_NI (name) SYSCALL_ALIAS(__riscv_sys_##name, sys_ni_posix_timers); -#endif /* __ASM_SYSCALL_WRAPPER_H */
arch/s390/include/asm/syscall_wrapper.h +1 -12
@@ -63,10 +63,6 @@ cond_syscall(__s390x_sys_##name); \ cond_syscall(__s390_sys_##name) -#define SYS_NI (name) \ - SYSCALL_ALIAS(__s390x_sys_##name, sys_ni_posix_timers); \ - SYSCALL_ALIAS(__s390_sys_##name, sys_ni_posix_timers) -#define COMPAT_SYSCALL_DEFINEx (x, name, ...) \ long __s390_compat_sys##name(struct pt_regs *regs); \ ALLOW_ERROR_INJECTION(__s390_compat_sys##name, ERRNO); \
@@ -85,15 +81,11 @@/* * As some compat syscalls may not be implemented, we need to expand -* COND_SYSCALL_COMPAT in kernel/sys_ni.c and COMPAT_SYS_NI in -* kernel/time/posix-stubs.c to cover this case as well. +* COND_SYSCALL_COMPAT in kernel/sys_ni.c to cover this case as well. */ #define COND_SYSCALL_COMPAT (name) \ cond_syscall(__s390_compat_sys_##name) -#define COMPAT_SYS_NI (name) \ - SYSCALL_ALIAS(__s390_compat_sys_##name, sys_ni_posix_timers) -#define __S390_SYS_STUBx (x, name, ...) \ long __s390_sys##name(struct pt_regs *regs); \ ALLOW_ERROR_INJECTION(__s390_sys##name, ERRNO); \
@@ -124,9 +116,6 @@#define COND_SYSCALL (name) \ cond_syscall(__s390x_sys_##name) -#define SYS_NI (name) \ - SYSCALL_ALIAS(__s390x_sys_##name, sys_ni_posix_timers) -#define __S390_SYS_STUBx (x, fullname, name, ...)#endif /* CONFIG_COMPAT */
arch/x86/include/asm/syscall_wrapper.h +4 -30
@@ -86,9 +86,6 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);return sys_ni_syscall (); \ } -#define __SYS_NI (abi, name) \ - SYSCALL_ALIAS(__##abi##_##name, sys_ni_posix_timers); -#ifdef CONFIG_X86_64 #define __X64_SYS_STUB0 (name) \ __SYS_STUB0(x64, sys_##name)
@@ -100,13 +97,10 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);#define __X64_COND_SYSCALL (name) \ __COND_SYSCALL(x64, sys_##name) -#define __X64_SYS_NI (name) \ - __SYS_NI(x64, sys_##name)#else /* CONFIG_X86_64 */ #define __X64_SYS_STUB0 (name)#define __X64_SYS_STUBx (x, name, ...)#define __X64_COND_SYSCALL (name) -#define __X64_SYS_NI (name)#endif /* CONFIG_X86_64 */ #if defined(CONFIG_X86_32 ) || defined(CONFIG_IA32_EMULATION )
@@ -120,13 +114,10 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);#define __IA32_COND_SYSCALL (name) \ __COND_SYSCALL(ia32, sys_##name) -#define __IA32_SYS_NI (name) \ - __SYS_NI(ia32, sys_##name)#else /* CONFIG_X86_32 || CONFIG_IA32_EMULATION */ #define __IA32_SYS_STUB0 (name)#define __IA32_SYS_STUBx (x, name, ...)#define __IA32_COND_SYSCALL (name) -#define __IA32_SYS_NI (name)#endif /* CONFIG_X86_32 || CONFIG_IA32_EMULATION */ #ifdef CONFIG_IA32_EMULATION
@@ -135,8 +126,7 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);* additional wrappers (aptly named __ia32_sys_xyzzy) which decode the * ia32 regs in the proper order for shared or "common" syscalls. As some * syscalls may not be implemented, we need to expand COND_SYSCALL in -* kernel/sys_ni.c and SYS_NI in kernel/time/posix-stubs.c to cover this -* case as well. +* kernel/sys_ni.c to cover this case as well. */ #define __IA32_COMPAT_SYS_STUB0 (name) \ __SYS_STUB0(ia32, compat_sys_##name)
@@ -148,14 +138,10 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);#define __IA32_COMPAT_COND_SYSCALL (name) \ __COND_SYSCALL(ia32, compat_sys_##name) -#define __IA32_COMPAT_SYS_NI (name) \ - __SYS_NI(ia32, compat_sys_##name) -#else /* CONFIG_IA32_EMULATION */ #define __IA32_COMPAT_SYS_STUB0 (name)#define __IA32_COMPAT_SYS_STUBx (x, name, ...)#define __IA32_COMPAT_COND_SYSCALL (name) -#define __IA32_COMPAT_SYS_NI (name)#endif /* CONFIG_IA32_EMULATION */
@@ -175,13 +161,10 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);#define __X32_COMPAT_COND_SYSCALL (name) \ __COND_SYSCALL(x64, compat_sys_##name) -#define __X32_COMPAT_SYS_NI (name) \ - __SYS_NI(x64, compat_sys_##name)#else /* CONFIG_X86_X32_ABI */ #define __X32_COMPAT_SYS_STUB0 (name)#define __X32_COMPAT_SYS_STUBx (x, name, ...)#define __X32_COMPAT_COND_SYSCALL (name) -#define __X32_COMPAT_SYS_NI (name)#endif /* CONFIG_X86_X32_ABI */
@@ -212,17 +195,12 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);/* * As some compat syscalls may not be implemented, we need to expand -* COND_SYSCALL_COMPAT in kernel/sys_ni.c and COMPAT_SYS_NI in -* kernel/time/posix-stubs.c to cover this case as well. +* COND_SYSCALL_COMPAT in kernel/sys_ni.c to cover this case as well. */ #define COND_SYSCALL_COMPAT (name) \ __IA32_COMPAT_COND_SYSCALL(name) \ __X32_COMPAT_COND_SYSCALL(name) -#define COMPAT_SYS_NI (name) \ - __IA32_COMPAT_SYS_NI(name) \ - __X32_COMPAT_SYS_NI(name) -#endif /* CONFIG_COMPAT */ #define __SYSCALL_DEFINEx (x, name, ...) \
@@ -243,8 +221,8 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);* As the generic SYSCALL_DEFINE0() macro does not decode any parameters for * obvious reasons, and passing struct pt_regs *regs to it in %rdi does not * hurt, we only need to re-define it here to keep the naming congruent to -* SYSCALL_DEFINEx() -- which is essential for the COND_SYSCALL() and SYS_NI() -* macros to work correctly. +* SYSCALL_DEFINEx() -- which is essential for the COND_SYSCALL() macro +* to work correctly. */ #define SYSCALL_DEFINE0 (sname) \ SYSCALL_METADATA(_##sname, 0); \
@@ -257,10 +235,6 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);__X64_COND_SYSCALL (name) \__IA32_COND_SYSCALL (name) -#define SYS_NI(name) \ - __X64_SYS_NI(name) \ - __IA32_SYS_NI(name) -/* * For VSYSCALLS, we need to declare these three syscalls with the new
arch/x86/kernel/cpu/microcode/core.c +6 -0
@@ -208,6 +208,11 @@ static int __init save_microcode_in_initrd(void)struct cpuinfo_x86 *c = &boot_cpu_data;int ret = -EINVAL ; +if (dis_ucode_ldr) { + ret =0 ; + goto out; + } +switch (c->x86_vendor) {case X86_VENDOR_INTEL :if (c->x86 >=6 )
@@ -221,6 +226,7 @@ static int __init save_microcode_in_initrd(void)break ; } +out: initrd_gone = true;return ret;
arch/x86/lib/csum-partial_64.c +35 -70
132 lines not on this page · raw message
block/blk-core.c +11 -3
@@ -501,9 +501,17 @@ static inline void bio_check_ro(struct bio *bio)if (op_is_write (bio_op (bio)) &&bdev_read_only (bio->bi_bdev)) {if (op_is_flush (bio->bi_opf) && !bio_sectors (bio))return ; -pr_warn_ratelimited ("Trying to write to read-only block-device %pg\n" , - bio->bi_bdev); -/* Older lvm-tools actually trigger this */ + +if (bio->bi_bdev->bd_ro_warned) +return ; + + bio->bi_bdev->bd_ro_warned = true; +/* +* Use ioctl to set underlying disk of raid/dm to read-only +* will trigger this. +*/ +pr_warn ("Trying to write to read-only block-device %pg\n" , + bio->bi_bdev); } }
block/blk-mq.c +13 -1
@@ -1511,14 +1511,26 @@ void blk_mq_delay_kick_requeue_list(struct request_queue *q, }EXPORT_SYMBOL (blk_mq_delay_kick_requeue_list); +static bool blk_is_flush_data_rq (struct request *rq) +{ +return (rq->rq_flags &RQF_FLUSH_SEQ ) && !is_flush_rq (rq); +} +static bool blk_mq_rq_inflight (struct request *rq,void *priv) {/* * If we find a request that isn't idle we know the queue is busy * as it's checked in the iter. * Return false to stop the iteration. +* +* In case of queue quiesce, if one flush data request is completed, +* don't count it as inflight given the flush sequence is suspended, +* and the original flush data request is invisible to driver, just +* like other pending requests because of quiesce */ -if (blk_mq_request_started (rq)) { +if (blk_mq_request_started (rq) && !(blk_queue_quiesced (rq->q) && +blk_is_flush_data_rq (rq) && +blk_mq_request_completed (rq))) {bool *busy = priv; *busy = true;
drivers/acpi/resource.c +7 -0
@@ -508,6 +508,13 @@ static const struct dmi_system_id maingear_laptop[] = { DMI_MATCH(DMI_BOARD_NAME, "GMxXGxx"), }, }, + { +/* TongFang GMxXGxx sold as Eluktronics Inc. RP-15 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Eluktronics Inc." ), + DMI_MATCH(DMI_BOARD_NAME, "RP-15"), + }, + }, {/* TongFang GM6XGxX/TUXEDO Stellaris 16 Gen5 AMD */ .matches = {
drivers/android/binder.c +1 -1
@@ -5030,7 +5030,7 @@ static __poll_t binder_poll(struct file *filp, thread =binder_get_thread (proc);if (!thread) -return POLLERR ; +return EPOLLERR ;binder_inner_proc_lock (thread->proc); thread->looper |=BINDER_LOOPER_STATE_POLL ;
drivers/android/binder_alloc.c +7 -3
@@ -557,7 +557,7 @@ static struct binder_buffer *binder_alloc_new_buf_locked(* is the sum of the three given sizes (each rounded up to * pointer-sized boundary) * -* Return: The allocated buffer or %NULL if error +* Return: The allocated buffer or %ERR_PTR(-errno) if error */ struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, size_t data_size,
@@ -706,7 +706,7 @@ void binder_alloc_free_buf(struct binder_alloc *alloc,/* * We could eliminate the call to binder_alloc_clear_buf() * from binder_alloc_deferred_release() by moving this to -* binder_alloc_free_buf_locked(). However, that could +* binder_free_buf_locked(). However, that could * increase contention for the alloc mutex if clear_on_free * is used frequently for large buffers. The mutex is not * needed for correctness here.
@@ -1005,7 +1005,9 @@ enum lru_status binder_alloc_free_page(struct list_head *item, goto err_mmget;if (!mmap_read_trylock (mm)) goto err_mmap_read_lock_failed; - vma =binder_alloc_get_vma (alloc); + vma =vma_lookup (mm, page_addr); +if (vma && vma !=binder_alloc_get_vma (alloc)) + goto err_invalid_vma;list_lru_isolate (lru, item);spin_unlock (lock);
@@ -1031,6 +1033,8 @@ enum lru_status binder_alloc_free_page(struct list_head *item,mutex_unlock (&alloc->mutex);return LRU_REMOVED_RETRY ; +err_invalid_vma: +mmap_read_unlock (mm); err_mmap_read_lock_failed:mmput_async (mm); err_mmget:
drivers/block/virtio_blk.c +4 -4
@@ -1021,12 +1021,12 @@ static void virtblk_config_changed(struct virtio_device *vdev)static int init_vq (struct virtio_blk *vblk) {int err; -int i; +unsigned short i;vq_callback_t **callbacks;const char **names;struct virtqueue **vqs;unsigned short num_vqs; -unsigned int num_poll_vqs; +unsigned short num_poll_vqs;struct virtio_device *vdev = vblk->vdev;struct irq_affinity desc = {0 , };
@@ -1070,13 +1070,13 @@ static int init_vq(struct virtio_blk *vblk)for (i =0 ; i < num_vqs - num_poll_vqs; i++) { callbacks[i] = virtblk_done; -snprintf (vblk->vqs[i].name,VQ_NAME_LEN ,"req.%d" , i); +snprintf (vblk->vqs[i].name,VQ_NAME_LEN ,"req.%u" , i); names[i] = vblk->vqs[i].name; }for (; i < num_vqs; i++) { callbacks[i] =NULL ; -snprintf (vblk->vqs[i].name,VQ_NAME_LEN ,"req_poll.%d" , i); +snprintf (vblk->vqs[i].name,VQ_NAME_LEN ,"req_poll.%u" , i); names[i] = vblk->vqs[i].name; }
drivers/bus/moxtet.c +8 -1
@@ -755,7 +755,7 @@ static int moxtet_irq_setup(struct moxtet *moxtet) moxtet->irq.masked = ~0 ; ret =request_threaded_irq (moxtet->dev_irq,NULL , moxtet_irq_thread_fn, -IRQF_ONESHOT ,"moxtet" , moxtet); +IRQF_SHARED |IRQF_ONESHOT ,"moxtet" , moxtet);if (ret <0 ) goto err_free;
@@ -830,6 +830,12 @@ static void moxtet_remove(struct spi_device *spi)mutex_destroy (&moxtet->lock); } +static const struct spi_device_id moxtet_spi_ids[] = { + {"moxtet" }, + { }, +}; +MODULE_DEVICE_TABLE (spi, moxtet_spi_ids); +static const struct of_device_id moxtet_dt_ids[] = { { .compatible ="cznic,moxtet" }, {},
@@ -841,6 +847,7 @@ static struct spi_driver moxtet_spi_driver = { .name = "moxtet", .of_match_table = moxtet_dt_ids, }, + .id_table = moxtet_spi_ids, .probe = moxtet_probe, .remove = moxtet_remove, };
drivers/clk/rockchip/clk-rk3128.c +1 -1
@@ -484,7 +484,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {GATE (HCLK_I2S_2CH ,"hclk_i2s_2ch" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (7 ),2 ,GFLAGS ),GATE (0 ,"hclk_usb_peri" ,"hclk_peri" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (9 ),13 ,GFLAGS ),GATE (HCLK_HOST2 ,"hclk_host2" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (7 ),3 ,GFLAGS ), -GATE (HCLK_OTG ,"hclk_otg" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (3 ),13 ,GFLAGS ), +GATE (HCLK_OTG ,"hclk_otg" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (5 ),13 ,GFLAGS ),GATE (0 ,"hclk_peri_ahb" ,"hclk_peri" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (9 ),14 ,GFLAGS ),GATE (HCLK_SPDIF ,"hclk_spdif" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (10 ),9 ,GFLAGS ), GATE(HCLK_TSP, "hclk_tsp", "hclk_peri", 0, RK2928_CLKGATE_CON(10), 12, GFLAGS),
drivers/clk/rockchip/clk-rk3568.c +1 -0
@@ -72,6 +72,7 @@ static struct rockchip_pll_rate_table rk3568_pll_rates[] = {RK3036_PLL_RATE (408000000 ,1 ,68 ,2 ,2 ,1 ,0 ),RK3036_PLL_RATE (312000000 ,1 ,78 ,6 ,1 ,1 ,0 ),RK3036_PLL_RATE (297000000 ,2 ,99 ,4 ,1 ,1 ,0 ), +RK3036_PLL_RATE (292500000 ,1 ,195 ,4 ,4 ,1 ,0 ),RK3036_PLL_RATE (241500000 ,2 ,161 ,4 ,2 ,1 ,0 ),RK3036_PLL_RATE (216000000 ,1 ,72 ,4 ,2 ,1 ,0 ), RK3036_PLL_RATE(200000000, 1, 100, 3, 4, 1, 0),
drivers/connector/cn_proc.c +3 -2
@@ -108,8 +108,9 @@ static inline void send_msg(struct cn_msg *msg) filter_data[1 ] =0 ; } -cn_netlink_send_mult (msg, msg->len,0 ,CN_IDX_PROC ,GFP_NOWAIT , - cn_filter, (void *)filter_data); +if (cn_netlink_send_mult (msg, msg->len,0 ,CN_IDX_PROC ,GFP_NOWAIT , + cn_filter, (void *)filter_data) == -ESRCH ) +atomic_set (&proc_event_num_listeners,0 );local_unlock (&local_event.lock); }
drivers/firmware/efi/libstub/loongarch-stub.c +2 -2
@@ -35,9 +35,9 @@ efi_status_t handle_kernel_image(unsigned long *image_addr,return status; } -unsigned long kernel_entry_address (void ) +unsigned long kernel_entry_address (unsigned long kernel_addr) {unsigned long base = (unsigned long )&kernel_offset - kernel_offset; -return (unsigned long )&kernel_entry - base +VMLINUX_LOAD_ADDRESS ; +return (unsigned long )&kernel_entry - base + kernel_addr; }
drivers/firmware/efi/libstub/loongarch.c +3 -3
@@ -37,9 +37,9 @@ static efi_status_t exit_boot_func(struct efi_boot_memmap *map, void *priv)return EFI_SUCCESS ; } -unsigned long __weak kernel_entry_address (void ) +unsigned long __weak kernel_entry_address (unsigned long kernel_addr) { -return *(unsigned long *)(PHYSADDR (VMLINUX_LOAD_ADDRESS ) +8 ); +return *(unsigned long *)(kernel_addr +8 ) -VMLINUX_LOAD_ADDRESS + kernel_addr; } efi_status_t efi_boot_kernel(void *handle, efi_loaded_image_t *image,
@@ -73,7 +73,7 @@ efi_status_t efi_boot_kernel(void *handle, efi_loaded_image_t *image,csr_write64 (CSR_DMW0_INIT ,LOONGARCH_CSR_DMWIN0 );csr_write64 (CSR_DMW1_INIT ,LOONGARCH_CSR_DMWIN1 ); - real_kernel_entry = (void *)kernel_entry_address (); + real_kernel_entry = (void *)kernel_entry_address (kernel_addr);real_kernel_entry (true, (unsigned long )cmdline_ptr, (unsigned long )efi_system_table);
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +6 -0
@@ -638,6 +638,9 @@ static ssize_t amdgpu_debugfs_regs_didt_read(struct file *f, char __user *buf,if (size &0x3 || *pos &0x3 )return -EINVAL ; +if (!adev->didt_rreg) +return -EOPNOTSUPP ; + r =pm_runtime_get_sync (adev_to_drm (adev)->dev);if (r <0 ) {pm_runtime_put_autosuspend (adev_to_drm (adev)->dev);
@@ -694,6 +697,9 @@ static ssize_t amdgpu_debugfs_regs_didt_write(struct file *f, const char __userif (size &0x3 || *pos &0x3 )return -EINVAL ; +if (!adev->didt_wreg) +return -EOPNOTSUPP ; + r =pm_runtime_get_sync (adev_to_drm (adev)->dev);if (r <0 ) {pm_runtime_put_autosuspend (adev_to_drm (adev)->dev);
drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c +0 -5
@@ -604,11 +604,6 @@ static void nbio_v7_9_handle_ras_controller_intr_no_bifring(struct amdgpu_devicedev_info (adev->dev,"RAS controller interrupt triggered " "by NBIF error\n" ); - -/* ras_controller_int is dedicated for nbif ras error, -* not the global interrupt for sync flood -*/ -amdgpu_ras_reset_gpu (adev); } }
drivers/gpu/drm/amd/amdgpu/soc15.c +13 -4
@@ -1160,6 +1160,11 @@ static int soc15_common_early_init(void *handle)AMD_PG_SUPPORT_VCN_DPG |AMD_PG_SUPPORT_JPEG ; adev->external_rev_id = adev->rev_id +0x46 ; +/* GC 9.4.3 uses MMIO register region hole at a different offset */ +if (!amdgpu_sriov_vf (adev)) { + adev->rmmio_remap.reg_offset =0x1A000 ; + adev->rmmio_remap.bus_addr = adev->rmmio_base +0x1A000 ; + }break ;default :/* FIXME: not supported yet */
@@ -1417,9 +1422,11 @@ static void soc15_common_get_clockgating_state(void *handle, u64 *flags)if (amdgpu_sriov_vf (adev)) *flags =0 ; - adev->nbio.funcs->get_clockgating_state (adev, flags); +if (adev->nbio.funcs && adev->nbio.funcs->get_clockgating_state) + adev->nbio.funcs->get_clockgating_state (adev, flags); - adev->hdp.funcs->get_clock_gating_state (adev, flags); +if (adev->hdp.funcs && adev->hdp.funcs->get_clock_gating_state) + adev->hdp.funcs->get_clock_gating_state (adev, flags);if (adev->ip_versions[MP0_HWIP ][0 ] !=IP_VERSION (13 ,0 ,2 )) {
@@ -1435,9 +1442,11 @@ static void soc15_common_get_clockgating_state(void *handle, u64 *flags) }/* AMD_CG_SUPPORT_ROM_MGCG */ - adev->smuio.funcs->get_clock_gating_state (adev, flags); +if (adev->smuio.funcs && adev->smuio.funcs->get_clock_gating_state) + adev->smuio.funcs->get_clock_gating_state (adev, flags); - adev->df.funcs->get_clockgating_state (adev, flags); +if (adev->df.funcs && adev->df.funcs->get_clockgating_state) + adev->df.funcs->get_clockgating_state (adev, flags); } static int soc15_common_set_powergating_state(void *handle,
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +1 -1
@@ -1128,7 +1128,7 @@ static inline struct kfd_node *kfd_node_by_irq_ids(struct amdgpu_device *adev,struct kfd_dev *dev = adev->kfd.dev;uint32_t i; -if (adev->ip_versions[GC_HWIP ][0 ] !=IP_VERSION (9 ,4 ,3 )) +if (KFD_GC_VERSION (dev) !=IP_VERSION (9 ,4 ,3 ))return dev->nodes[0 ];for (i =0 ; i < dev->num_nodes; i++)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +33 -21
71 lines not on this page · raw message
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +12 -6
@@ -1632,18 +1632,24 @@ static int svm_range_validate_and_map(struct mm_struct *mm,if (test_bit (gpuidx, prange->bitmap_access))bitmap_set (ctx->bitmap, gpuidx,1 ); } + +/* +* If prange is already mapped or with always mapped flag, +* update mapping on GPUs with ACCESS attribute +*/ +if (bitmap_empty (ctx->bitmap,MAX_GPU_INSTANCE )) { +if (prange->mapped_to_gpu || + prange->flags &KFD_IOCTL_SVM_FLAG_GPU_ALWAYS_MAPPED ) +bitmap_copy (ctx->bitmap, prange->bitmap_access,MAX_GPU_INSTANCE ); + } }else {bitmap_or (ctx->bitmap, prange->bitmap_access, prange->bitmap_aip,MAX_GPU_INSTANCE ); }if (bitmap_empty (ctx->bitmap,MAX_GPU_INSTANCE )) { -bitmap_copy (ctx->bitmap, prange->bitmap_access,MAX_GPU_INSTANCE ); -if (!prange->mapped_to_gpu || -bitmap_empty (ctx->bitmap,MAX_GPU_INSTANCE )) { - r =0 ; - goto free_ctx; - } + r =0 ; + goto free_ctx; }if (prange->actual_loc && !prange->ttm_res) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +6 -0
@@ -63,6 +63,12 @@ static void apply_edid_quirks(struct edid *edid, struct dc_edid_caps *edid_caps)DRM_DEBUG_DRIVER ("Disabling FAMS on monitor with panel id %X\n" , panel_id); edid_caps->panel_patch.disable_fams = true;break ; +/* Workaround for some monitors that do not clear DPCD 0x317 if FreeSync is unsupported */ +case drm_edid_encode_panel_id ('A' ,'U' ,'O' ,0xA7AB ): +case drm_edid_encode_panel_id ('A' ,'U' ,'O' ,0xE69B ): +DRM_DEBUG_DRIVER ("Clearing DPCD 0x317 on monitor with panel id %X\n" , panel_id); + edid_caps->panel_patch.remove_sink_ext_caps = true; +break ;default :return ; }
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +16 -7
@@ -1015,13 +1015,20 @@ static enum bp_result get_ss_info_v4_5(DC_LOG_BIOS ("AS_SIGNAL_TYPE_HDMI ss_percentage: %d\n" , ss_info->spread_spectrum_percentage);break ;case AS_SIGNAL_TYPE_DISPLAY_PORT : - ss_info->spread_spectrum_percentage = +if (bp->base.integrated_info) { +DC_LOG_BIOS ("gpuclk_ss_percentage (unit of 0.001 percent): %d\n" , bp->base.integrated_info->gpuclk_ss_percentage); + ss_info->spread_spectrum_percentage = + bp->base.integrated_info->gpuclk_ss_percentage; + ss_info->type.CENTER_MODE = + bp->base.integrated_info->gpuclk_ss_type; + }else { + ss_info->spread_spectrum_percentage = disp_cntl_tbl->dp_ss_percentage; - ss_info->spread_spectrum_range = + ss_info->spread_spectrum_range = disp_cntl_tbl->dp_ss_rate_10hz *10 ; -if (disp_cntl_tbl->dp_ss_mode &ATOM_SS_CENTRE_SPREAD_MODE ) - ss_info->type.CENTER_MODE = true; - +if (disp_cntl_tbl->dp_ss_mode &ATOM_SS_CENTRE_SPREAD_MODE ) + ss_info->type.CENTER_MODE = true; + }DC_LOG_BIOS ("AS_SIGNAL_TYPE_DISPLAY_PORT ss_percentage: %d\n" , ss_info->spread_spectrum_percentage);break ;case AS_SIGNAL_TYPE_GPU_PLL :
@@ -1692,7 +1699,7 @@ static enum bp_result bios_parser_enable_disp_power_gating(static enum bp_result bios_parser_enable_lvtma_control (struct dc_bios *dcb,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait) {struct bios_parser *bp =BP_FROM_DCB (dcb);
@@ -1700,7 +1707,7 @@ static enum bp_result bios_parser_enable_lvtma_control(if (!bp->cmd_tbl.enable_lvtma_control)return BP_RESULT_FAILURE ; -return bp->cmd_tbl.enable_lvtma_control (bp, uc_pwr_on, panel_instance, bypass_panel_control_wait); +return bp->cmd_tbl.enable_lvtma_control (bp, uc_pwr_on, pwrseq_instance, bypass_panel_control_wait); } static bool bios_parser_is_accelerated_mode(
@@ -2826,6 +2833,8 @@ static enum bp_result get_integrated_info_v2_2( info->ma_channel_number = info_v2_2->umachannelnumber; info->dp_ss_control =le16_to_cpu (info_v2_2->reserved1); + info->gpuclk_ss_percentage = info_v2_2->gpuclk_ss_percentage; + info->gpuclk_ss_type = info_v2_2->gpuclk_ss_type;for (i =0 ; i <NUMBER_OF_UCHAR_FOR_GUID ; ++i) { info->ext_disp_conn_info.gu_id[i] =
drivers/gpu/drm/amd/display/dc/bios/command_table2.c +6 -6
@@ -976,7 +976,7 @@ static unsigned int get_smu_clock_info_v3_1(struct bios_parser *bp, uint8_t id)static enum bp_result enable_lvtma_control (struct bios_parser *bp,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait);static void init_enable_lvtma_control (struct bios_parser *bp)
@@ -989,7 +989,7 @@ static void init_enable_lvtma_control(struct bios_parser *bp)static void enable_lvtma_control_dmcub (struct dc_dmub_srv *dmcub,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait) {
@@ -1002,8 +1002,8 @@ static void enable_lvtma_control_dmcub(DMUB_CMD__VBIOS_LVTMA_CONTROL ; cmd.lvtma_control.data.uc_pwr_action = uc_pwr_on; - cmd.lvtma_control.data.panel_inst = - panel_instance; + cmd.lvtma_control.data.pwrseq_inst = + pwrseq_instance; cmd.lvtma_control.data.bypass_panel_control_wait = bypass_panel_control_wait;dm_execute_dmub_cmd (dmcub->ctx, &cmd,DM_DMUB_WAIT_TYPE_WAIT );
@@ -1012,7 +1012,7 @@ static void enable_lvtma_control_dmcub(static enum bp_result enable_lvtma_control (struct bios_parser *bp,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait) {enum bp_result result =BP_RESULT_FAILURE ;
@@ -1021,7 +1021,7 @@ static enum bp_result enable_lvtma_control( bp->base.ctx->dc->debug.dmub_command_table) {enable_lvtma_control_dmcub (bp->base.ctx->dmub_srv, uc_pwr_on, - panel_instance, + pwrseq_instance, bypass_panel_control_wait);return BP_RESULT_OK ; }
drivers/gpu/drm/amd/display/dc/bios/command_table2.h +1 -1
@@ -96,7 +96,7 @@ struct cmd_tbl { struct bios_parser *bp, uint8_t id);enum bp_result (*enable_lvtma_control)(struct bios_parser *bp,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait); };
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c +4 -4
@@ -334,7 +334,7 @@ static struct wm_table lpddr5_wm_table = { { .wm_inst = WM_A, .wm_type = WM_TYPE_PSTATE_CHG, - .pstate_latency_us = 11.65333, + .pstate_latency_us = 129.0, .sr_exit_time_us = 11.5, .sr_enter_plus_exit_time_us = 14.5, .valid = true,
@@ -342,7 +342,7 @@ static struct wm_table lpddr5_wm_table = { { .wm_inst = WM_B, .wm_type = WM_TYPE_PSTATE_CHG, - .pstate_latency_us = 11.65333, + .pstate_latency_us = 129.0, .sr_exit_time_us = 11.5, .sr_enter_plus_exit_time_us = 14.5, .valid = true,
@@ -350,7 +350,7 @@ static struct wm_table lpddr5_wm_table = { { .wm_inst = WM_C, .wm_type = WM_TYPE_PSTATE_CHG, - .pstate_latency_us = 11.65333, + .pstate_latency_us = 129.0, .sr_exit_time_us = 11.5, .sr_enter_plus_exit_time_us = 14.5, .valid = true,
@@ -358,7 +358,7 @@ static struct wm_table lpddr5_wm_table = { { .wm_inst = WM_D, .wm_type = WM_TYPE_PSTATE_CHG, - .pstate_latency_us = 11.65333, + .pstate_latency_us = 129.0, .sr_exit_time_us = 11.5, .sr_enter_plus_exit_time_us = 14.5, .valid = true,
drivers/gpu/drm/amd/display/dc/core/dc.c +18 -8
@@ -4865,18 +4865,28 @@ void dc_mclk_switch_using_fw_based_vblank_stretch_shut_down(struct dc *dc)*/ bool dc_is_dmub_outbox_supported (struct dc *dc) { -/* DCN31 B0 USB4 DPIA needs dmub notifications for interrupts */ -if (dc->ctx->asic_id.chip_family ==FAMILY_YELLOW_CARP && - dc->ctx->asic_id.hw_internal_rev ==YELLOW_CARP_B0 && - !dc->debug.dpia_debug.bits.disable_dpia) -return true; +switch (dc->ctx->asic_id.chip_family) { -if (dc->ctx->asic_id.chip_family ==AMDGPU_FAMILY_GC_11_0_1 && - !dc->debug.dpia_debug.bits.disable_dpia) -return true; +case FAMILY_YELLOW_CARP : +/* DCN31 B0 USB4 DPIA needs dmub notifications for interrupts */ +if (dc->ctx->asic_id.hw_internal_rev ==YELLOW_CARP_B0 && + !dc->debug.dpia_debug.bits.disable_dpia) +return true; +break ; + +case AMDGPU_FAMILY_GC_11_0_1 : +case AMDGPU_FAMILY_GC_11_5_0 : +if (!dc->debug.dpia_debug.bits.disable_dpia) +return true; +break ; + +default : +break ; + }/* dmub aux needs dmub notifications to be enabled */ return dc->debug.enable_dmub_aux_for_legacy_ddc; + }/**
drivers/gpu/drm/amd/display/dc/dc_bios_types.h +1 -1
@@ -140,7 +140,7 @@ struct dc_vbios_funcs {enum bp_result (*enable_lvtma_control)(struct dc_bios *bios,uint8_t uc_pwr_on, -uint8_t panel_instance, +uint8_t pwrseq_instance,uint8_t bypass_panel_control_wait); enum bp_result (*get_soc_bb_info)(
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c +6 -2
@@ -145,7 +145,11 @@ static bool dmub_abm_save_restore_ex(return ret; } -static bool dmub_abm_set_pipe_ex (struct abm *abm,uint32_t otg_inst,uint32_t option,uint32_t panel_inst) +static bool dmub_abm_set_pipe_ex (struct abm *abm, +uint32_t otg_inst, +uint32_t option, +uint32_t panel_inst, +uint32_t pwrseq_inst) {bool ret = false;unsigned int feature_support;
@@ -153,7 +157,7 @@ static bool dmub_abm_set_pipe_ex(struct abm *abm, uint32_t otg_inst, uint32_t op feature_support =abm_feature_support (abm, panel_inst);if (feature_support ==ABM_LCD_SUPPORT ) - ret =dmub_abm_set_pipe (abm, otg_inst, option, panel_inst); + ret =dmub_abm_set_pipe (abm, otg_inst, option, panel_inst, pwrseq_inst);return ret; }
drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.c +6 -1
@@ -254,7 +254,11 @@ bool dmub_abm_save_restore(return true; } -bool dmub_abm_set_pipe (struct abm *abm,uint32_t otg_inst,uint32_t option,uint32_t panel_inst) +bool dmub_abm_set_pipe (struct abm *abm, +uint32_t otg_inst, +uint32_t option, +uint32_t panel_inst, +uint32_t pwrseq_inst) {union dmub_rb_cmd cmd;struct dc_context *dc = abm->ctx;
@@ -264,6 +268,7 @@ bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint cmd.abm_set_pipe.header.type =DMUB_CMD__ABM ; cmd.abm_set_pipe.header.sub_type =DMUB_CMD__ABM_SET_PIPE ; cmd.abm_set_pipe.abm_set_pipe_data.otg_inst = otg_inst; + cmd.abm_set_pipe.abm_set_pipe_data.pwrseq_inst = pwrseq_inst; cmd.abm_set_pipe.abm_set_pipe_data.set_pipe_option = option; cmd.abm_set_pipe.abm_set_pipe_data.panel_inst = panel_inst; cmd.abm_set_pipe.abm_set_pipe_data.ramping_boundary = ramping_boundary;
drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.h +1 -1
@@ -44,7 +44,7 @@ bool dmub_abm_save_restore(struct dc_context *dc, unsigned int panel_inst, struct abm_save_restore *pData); -bool dmub_abm_set_pipe (struct abm *abm,uint32_t otg_inst,uint32_t option,uint32_t panel_inst); +bool dmub_abm_set_pipe (struct abm *abm,uint32_t otg_inst,uint32_t option,uint32_t panel_inst,uint32_t pwrseq_inst); bool dmub_abm_set_backlight_level(struct abm *abm, unsigned int backlight_pwm_u16_16, unsigned int frame_ramp,
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +8 -8
@@ -788,7 +788,7 @@ void dce110_edp_power_control(struct dc_context *ctx = link->ctx;struct bp_transmitter_control cntl = {0 };enum bp_result bp_result; -uint8_t panel_instance; +uint8_t pwrseq_instance; if (dal_graphics_object_id_get_connector_id(link->link_enc->connector)
@@ -871,7 +871,7 @@ void dce110_edp_power_control( cntl.coherent = false; cntl.lanes_number =LANE_COUNT_FOUR ; cntl.hpd_sel = link->link_enc->hpd_source; - panel_instance = link->panel_cntl->inst; + pwrseq_instance = link->panel_cntl->pwrseq_inst;if (ctx->dc->ctx->dmub_srv && ctx->dc->debug.dmub_command_table) {
@@ -879,11 +879,11 @@ void dce110_edp_power_control(if (cntl.action ==TRANSMITTER_CONTROL_POWER_ON ) { bp_result = ctx->dc_bios->funcs->enable_lvtma_control (ctx->dc_bios,LVTMA_CONTROL_POWER_ON , - panel_instance, link->link_powered_externally); + pwrseq_instance, link->link_powered_externally); }else { bp_result = ctx->dc_bios->funcs->enable_lvtma_control (ctx->dc_bios,LVTMA_CONTROL_POWER_OFF , - panel_instance, link->link_powered_externally); + pwrseq_instance, link->link_powered_externally); } }
@@ -954,7 +954,7 @@ void dce110_edp_backlight_control( {struct dc_context *ctx = link->ctx;struct bp_transmitter_control cntl = {0 }; -uint8_t panel_instance; +uint8_t pwrseq_instance;unsigned int pre_T11_delay =OLED_PRE_T11_DELAY ;unsigned int post_T7_delay =OLED_POST_T7_DELAY ;
@@ -1007,7 +1007,7 @@ void dce110_edp_backlight_control(*/ /* dc_service_sleep_in_milliseconds(50); */ /*edp 1.2*/ - panel_instance = link->panel_cntl->inst; + pwrseq_instance = link->panel_cntl->pwrseq_inst;if (cntl.action ==TRANSMITTER_CONTROL_BACKLIGHT_ON ) {if (!link->dc->config.edp_no_power_sequencing)
@@ -1032,11 +1032,11 @@ void dce110_edp_backlight_control(if (cntl.action ==TRANSMITTER_CONTROL_BACKLIGHT_ON ) ctx->dc_bios->funcs->enable_lvtma_control (ctx->dc_bios,LVTMA_CONTROL_LCD_BLON , - panel_instance, link->link_powered_externally); + pwrseq_instance, link->link_powered_externally);else ctx->dc_bios->funcs->enable_lvtma_control (ctx->dc_bios,LVTMA_CONTROL_LCD_BLOFF , - panel_instance, link->link_powered_externally); + pwrseq_instance, link->link_powered_externally); }link_transmitter_control (ctx->dc_bios, &cntl);
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c +28 -8
@@ -137,7 +137,8 @@ void dcn21_PLAT_58856_wa(struct dc_state *context, struct pipe_ctx *pipe_ctx) pipe_ctx->stream->dpms_off = true; } -static bool dmub_abm_set_pipe (struct abm *abm,uint32_t otg_inst,uint32_t option,uint32_t panel_inst) +static bool dmub_abm_set_pipe (struct abm *abm,uint32_t otg_inst, +uint32_t option,uint32_t panel_inst,uint32_t pwrseq_inst) {union dmub_rb_cmd cmd;struct dc_context *dc = abm->ctx;
@@ -147,6 +148,7 @@ static bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t optio cmd.abm_set_pipe.header.type =DMUB_CMD__ABM ; cmd.abm_set_pipe.header.sub_type =DMUB_CMD__ABM_SET_PIPE ; cmd.abm_set_pipe.abm_set_pipe_data.otg_inst = otg_inst; + cmd.abm_set_pipe.abm_set_pipe_data.pwrseq_inst = pwrseq_inst; cmd.abm_set_pipe.abm_set_pipe_data.set_pipe_option = option; cmd.abm_set_pipe.abm_set_pipe_data.panel_inst = panel_inst; cmd.abm_set_pipe.abm_set_pipe_data.ramping_boundary = ramping_boundary;
@@ -179,7 +181,6 @@ void dcn21_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx)struct abm *abm = pipe_ctx->stream_res.abm;uint32_t otg_inst = pipe_ctx->stream_res.tg->inst;struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; -struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu;if (dmcu) {
@@ -190,9 +191,13 @@ void dcn21_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx)if (abm && panel_cntl) {if (abm->funcs && abm->funcs->set_pipe_ex) { abm->funcs->set_pipe_ex (abm, otg_inst,SET_ABM_PIPE_IMMEDIATELY_DISABLE , - panel_cntl->inst); + panel_cntl->inst, panel_cntl->pwrseq_inst); }else { -dmub_abm_set_pipe (abm, otg_inst,SET_ABM_PIPE_IMMEDIATELY_DISABLE , panel_cntl->inst); +dmub_abm_set_pipe (abm, + otg_inst, +SET_ABM_PIPE_IMMEDIATELY_DISABLE , + panel_cntl->inst, + panel_cntl->pwrseq_inst); } panel_cntl->funcs->store_backlight_level (panel_cntl); }
@@ -212,9 +217,16 @@ void dcn21_set_pipe(struct pipe_ctx *pipe_ctx)if (abm && panel_cntl) {if (abm->funcs && abm->funcs->set_pipe_ex) { - abm->funcs->set_pipe_ex (abm, otg_inst,SET_ABM_PIPE_NORMAL , panel_cntl->inst); + abm->funcs->set_pipe_ex (abm, + otg_inst, +SET_ABM_PIPE_NORMAL , + panel_cntl->inst, + panel_cntl->pwrseq_inst); }else { -dmub_abm_set_pipe (abm, otg_inst,SET_ABM_PIPE_NORMAL , panel_cntl->inst); +dmub_abm_set_pipe (abm, otg_inst, +SET_ABM_PIPE_NORMAL , + panel_cntl->inst, + panel_cntl->pwrseq_inst); } } }
@@ -237,9 +249,17 @@ bool dcn21_set_backlight_level(struct pipe_ctx *pipe_ctx,if (abm && panel_cntl) {if (abm->funcs && abm->funcs->set_pipe_ex) { - abm->funcs->set_pipe_ex (abm, otg_inst,SET_ABM_PIPE_NORMAL , panel_cntl->inst); + abm->funcs->set_pipe_ex (abm, + otg_inst, +SET_ABM_PIPE_NORMAL , + panel_cntl->inst, + panel_cntl->pwrseq_inst); }else { -dmub_abm_set_pipe (abm, otg_inst,SET_ABM_PIPE_NORMAL , panel_cntl->inst); +dmub_abm_set_pipe (abm, + otg_inst, +SET_ABM_PIPE_NORMAL , + panel_cntl->inst, + panel_cntl->pwrseq_inst); } } }
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c +3 -2
@@ -50,7 +50,7 @@ static bool dcn31_query_backlight_info(struct panel_cntl *panel_cntl, union dmub cmd->panel_cntl.header.type =DMUB_CMD__PANEL_CNTL ; cmd->panel_cntl.header.sub_type =DMUB_CMD__PANEL_CNTL_QUERY_BACKLIGHT_INFO ; cmd->panel_cntl.header.payload_bytes =sizeof (cmd->panel_cntl.data); - cmd->panel_cntl.data.inst = dcn31_panel_cntl->base.inst; + cmd->panel_cntl.data.pwrseq_inst = dcn31_panel_cntl->base.pwrseq_inst;return dm_execute_dmub_cmd (dc_dmub_srv->ctx, cmd,DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY ); }
@@ -78,7 +78,7 @@ static uint32_t dcn31_panel_cntl_hw_init(struct panel_cntl *panel_cntl) cmd.panel_cntl.header.type =DMUB_CMD__PANEL_CNTL ; cmd.panel_cntl.header.sub_type =DMUB_CMD__PANEL_CNTL_HW_INIT ; cmd.panel_cntl.header.payload_bytes =sizeof (cmd.panel_cntl.data); - cmd.panel_cntl.data.inst = dcn31_panel_cntl->base.inst; + cmd.panel_cntl.data.pwrseq_inst = dcn31_panel_cntl->base.pwrseq_inst; cmd.panel_cntl.data.bl_pwm_cntl = panel_cntl->stored_backlight_registers.BL_PWM_CNTL; cmd.panel_cntl.data.bl_pwm_period_cntl = panel_cntl->stored_backlight_registers.BL_PWM_PERIOD_CNTL; cmd.panel_cntl.data.bl_pwm_ref_div1 =
@@ -157,4 +157,5 @@ void dcn31_panel_cntl_construct( dcn31_panel_cntl->base.funcs = &dcn31_link_panel_cntl_funcs; dcn31_panel_cntl->base.ctx = init_data->ctx; dcn31_panel_cntl->base.inst = init_data->inst; + dcn31_panel_cntl->base.pwrseq_inst = init_data->pwrseq_inst; }
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h +2 -1
@@ -64,7 +64,8 @@ struct abm_funcs {bool (*set_pipe_ex)(struct abm *abm,unsigned int otg_inst,unsigned int option, - unsigned int panel_inst); +unsigned int panel_inst, + unsigned int pwrseq_inst); };#endif
drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h +2 -0
@@ -56,12 +56,14 @@ struct panel_cntl_funcs {struct panel_cntl_init_data {struct dc_context *ctx;uint32_t inst; +uint32_t pwrseq_inst; };struct panel_cntl {const struct panel_cntl_funcs *funcs;struct dc_context *ctx;uint32_t inst; +uint32_t pwrseq_inst;/* registers setting needs to be saved and restored at InitBacklight */ struct panel_cntl_backlight_registers stored_backlight_registers; };
drivers/gpu/drm/amd/display/dc/link/link_factory.c +38 -18
74 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +12 -2
@@ -3301,6 +3301,16 @@ struct dmub_cmd_abm_set_pipe_data {* TODO: Remove. */ uint8_t ramping_boundary; + +/** +* PwrSeq HW Instance. +*/ +uint8_t pwrseq_inst; + +/** +* Explicit padding to 4 byte boundary. +*/ +uint8_t pad[3 ]; };/**
@@ -3715,7 +3725,7 @@ enum dmub_cmd_panel_cntl_type {* struct dmub_cmd_panel_cntl_data - Panel control data. */ struct dmub_cmd_panel_cntl_data { -uint32_t inst;/**< panel instance */ +uint32_t pwrseq_inst;/**< pwrseq instance */ uint32_t current_backlight;/* in/out */ uint32_t bl_pwm_cntl;/* in/out */ uint32_t bl_pwm_period_cntl;/* in/out */
@@ -3742,7 +3752,7 @@ struct dmub_cmd_lvtma_control_data {uint8_t uc_pwr_action;/**< LVTMA_ACTION */ uint8_t bypass_panel_control_wait;uint8_t reserved_0[2 ];/**< For future use */ -uint8_t panel_inst;/**< LVTMA control instance */ +uint8_t pwrseq_inst;/**< LVTMA control instance */ uint8_t reserved_1[3 ];/**< For future use */ };
drivers/gpu/drm/amd/display/include/grph_object_ctrl_defs.h +2 -0
@@ -417,6 +417,8 @@ struct integrated_info {/* V2.1 */ struct edp_info edp1_info;struct edp_info edp2_info; +uint32_t gpuclk_ss_percentage; +uint32_t gpuclk_ss_type; };/*
drivers/gpu/drm/drm_crtc.c +4 -4
@@ -715,8 +715,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,struct drm_mode_set set;uint32_t __user *set_connectors_ptr;struct drm_modeset_acquire_ctx ctx; -int ret; -int i; +int ret, i, num_connectors =0 ;if (!drm_core_check_feature (dev,DRIVER_MODESET ))return -EOPNOTSUPP ;
@@ -871,6 +870,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, connector->name); connector_set[i] = connector; + num_connectors++; } }
@@ -879,7 +879,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, set.y = crtc_req->y; set.mode = mode; set.connectors = connector_set; - set.num_connectors = crtc_req->count_connectors; + set.num_connectors = num_connectors; set.fb = fb;if (drm_drv_uses_atomic_modeset (dev))
@@ -892,7 +892,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,drm_framebuffer_put (fb);if (connector_set) { -for (i =0 ; i < crtc_req->count_connectors; i++) { +for (i =0 ; i < num_connectors; i++) {if (connector_set[i])drm_connector_put (connector_set[i]); }
drivers/gpu/drm/drm_prime.c +18 -15
@@ -278,7 +278,7 @@ void drm_gem_dmabuf_release(struct dma_buf *dma_buf) }EXPORT_SYMBOL (drm_gem_dmabuf_release); -/* +/** * drm_gem_prime_fd_to_handle - PRIME import function for GEM drivers * @dev: drm_device to import into * @file_priv: drm file-private structure
@@ -292,9 +292,9 @@ EXPORT_SYMBOL(drm_gem_dmabuf_release);* * Returns 0 on success or a negative error code on failure. */ -static int drm_gem_prime_fd_to_handle (struct drm_device *dev, -struct drm_file *file_priv,int prime_fd, -uint32_t *handle) +int drm_gem_prime_fd_to_handle (struct drm_device *dev, +struct drm_file *file_priv,int prime_fd, +uint32_t *handle) {struct dma_buf *dma_buf;struct drm_gem_object *obj;
@@ -360,6 +360,7 @@ static int drm_gem_prime_fd_to_handle(struct drm_device *dev,dma_buf_put (dma_buf);return ret; } +EXPORT_SYMBOL (drm_gem_prime_fd_to_handle);int drm_prime_fd_to_handle_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv)
@@ -408,7 +409,7 @@ static struct dma_buf *export_and_register_object(struct drm_device *dev,return dmabuf; } -/* +/** * drm_gem_prime_handle_to_fd - PRIME export function for GEM drivers * @dev: dev to export the buffer from * @file_priv: drm file-private structure
@@ -421,10 +422,10 @@ static struct dma_buf *export_and_register_object(struct drm_device *dev,* The actual exporting from GEM object to a dma-buf is done through the * &drm_gem_object_funcs.export callback. */ -static int drm_gem_prime_handle_to_fd (struct drm_device *dev, -struct drm_file *file_priv,uint32_t handle, -uint32_t flags, -int *prime_fd) +int drm_gem_prime_handle_to_fd (struct drm_device *dev, +struct drm_file *file_priv,uint32_t handle, +uint32_t flags, +int *prime_fd) {struct drm_gem_object *obj;int ret =0 ;
@@ -506,6 +507,7 @@ static int drm_gem_prime_handle_to_fd(struct drm_device *dev,return ret; } +EXPORT_SYMBOL (drm_gem_prime_handle_to_fd);int drm_prime_handle_to_fd_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv)
@@ -864,9 +866,9 @@ EXPORT_SYMBOL(drm_prime_get_contiguous_size);* @obj: GEM object to export * @flags: flags like DRM_CLOEXEC and DRM_RDWR * -* This is the implementation of the &drm_gem_object_funcs.export functions -* for GEM drivers using the PRIME helpers. It is used as the default for -* drivers that do not set their own. +* This is the implementation of the &drm_gem_object_funcs.export functions for GEM drivers +* using the PRIME helpers. It is used as the default in +* drm_gem_prime_handle_to_fd(). */ struct dma_buf *drm_gem_prime_export (struct drm_gem_object *obj,int flags)
@@ -962,9 +964,10 @@ EXPORT_SYMBOL(drm_gem_prime_import_dev);* @dev: drm_device to import into * @dma_buf: dma-buf object to import * -* This is the implementation of the gem_prime_import functions for GEM -* drivers using the PRIME helpers. It is the default for drivers that do -* not set their own &drm_driver.gem_prime_import. +* This is the implementation of the gem_prime_import functions for GEM drivers +* using the PRIME helpers. Drivers can use this as their +* &drm_driver.gem_prime_import implementation. It is used as the default +* implementation in drm_gem_prime_fd_to_handle(). * * Drivers must arrange to call drm_prime_gem_destroy() from their * &drm_gem_object_funcs.free hook when using this function.
drivers/gpu/drm/exynos/exynos_drm_dma.c +3 -5
@@ -107,18 +107,16 @@ int exynos_drm_register_dma(struct drm_device *drm, struct device *dev,return 0 ;if (!priv->mapping) { -void *mapping; +void *mapping =NULL ;if (IS_ENABLED (CONFIG_ARM_DMA_USE_IOMMU )) mapping =arm_iommu_create_mapping (&platform_bus_type,EXYNOS_DEV_ADDR_START ,EXYNOS_DEV_ADDR_SIZE );else if (IS_ENABLED (CONFIG_IOMMU_DMA )) mapping =iommu_get_domain_for_dev (priv->dma_dev); -else - mapping =ERR_PTR (-ENODEV ); -if (IS_ERR (mapping)) -return PTR_ERR (mapping); +if (!mapping) +return -ENODEV ; priv->mapping = mapping; }
drivers/gpu/drm/exynos/exynos_hdmi.c +2 -0
@@ -1861,6 +1861,8 @@ static int hdmi_bind(struct device *dev, struct device *master, void *data)return ret; crtc =exynos_drm_crtc_get_by_type (drm_dev,EXYNOS_DISPLAY_TYPE_HDMI ); +if (IS_ERR (crtc)) +return PTR_ERR (crtc); crtc->pipe_clk = &hdata->phy_clk; ret =hdmi_create_connector (encoder);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c +1 -1
@@ -31,7 +31,7 @@ tu102_vmm_flush(struct nvkm_vmm *vmm, int depth) type |=0x00000001 ;/* PAGE_ALL */ if (atomic_read (&vmm->engref[NVKM_SUBDEV_BAR ])) - type |=0x00000004 ;/* HUB_ONLY */ + type |=0x00000006 ;/* HUB_ONLY | ALL PDB (hack) */ mutex_lock (&vmm->mmu->mutex);
drivers/hid/hid-nintendo.c +42 -29
100 lines not on this page · raw message
drivers/hwmon/corsair-psu.c +17 -1
@@ -899,7 +899,23 @@ static struct hid_driver corsairpsu_driver = { .reset_resume = corsairpsu_resume,#endif }; -module_hid_driver (corsairpsu_driver); + +static int __init corsair_init (void ) +{ +return hid_register_driver (&corsairpsu_driver); +} + +static void __exit corsair_exit(void) +{ +hid_unregister_driver (&corsairpsu_driver); +} + +/* +* With module_init() the driver would load before the HID bus when +* built-in, so use late_initcall() instead. +*/ +late_initcall (corsair_init); +module_exit (corsair_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Wilken Gottwalt <[email protected]>" );
drivers/hwtracing/coresight/coresight-etm4x.h +1 -1
@@ -1036,7 +1036,7 @@ struct etmv4_drvdata {u8 ctxid_size;u8 vmid_size;u8 ccsize; -u8 ccitmin; +u16 ccitmin;u8 s_ex_level;u8 ns_ex_level;u8 q_support;
drivers/hwtracing/ptt/hisi_ptt.c +6 -3
@@ -342,9 +342,9 @@ static int hisi_ptt_register_irq(struct hisi_ptt *hisi_ptt)return ret; hisi_ptt->trace_irq =pci_irq_vector (pdev,HISI_PTT_TRACE_DMA_IRQ ); - ret =devm_request_threaded_irq (&pdev->dev, hisi_ptt->trace_irq, -NULL , hisi_ptt_isr,0 , -DRV_NAME , hisi_ptt); + ret =devm_request_irq (&pdev->dev, hisi_ptt->trace_irq, hisi_ptt_isr, +IRQF_NOBALANCING |IRQF_NO_THREAD ,DRV_NAME , + hisi_ptt);if (ret) {pci_err (pdev,"failed to request irq %d, ret = %d\n" , hisi_ptt->trace_irq, ret);
@@ -1000,6 +1000,9 @@ static int hisi_ptt_pmu_event_init(struct perf_event *event)return -EOPNOTSUPP ; } +if (event->attach_state &PERF_ATTACH_TASK ) +return -EOPNOTSUPP ; +if (event->attr.type != hisi_ptt->hisi_ptt_pmu.type)return -ENOENT ;
drivers/i2c/busses/i2c-rk3x.c +11 -2
@@ -178,6 +178,7 @@ struct rk3x_i2c_soc_data {* @clk: function clk for rk3399 or function & Bus clks for others * @pclk: Bus clk for rk3399 * @clk_rate_nb: i2c clk rate change notify +* @irq: irq number * @t: I2C known timing information * @lock: spinlock for the i2c bus * @wait: the waitqueue to wait for i2c transfer
@@ -200,6 +201,7 @@ struct rk3x_i2c {struct clk *clk;struct clk *pclk;struct notifier_block clk_rate_nb; +int irq;/* Settings */ struct i2c_timings t;
@@ -1087,13 +1089,18 @@ static int rk3x_i2c_xfer_common(struct i2c_adapter *adap,spin_unlock_irqrestore (&i2c->lock, flags); -rk3x_i2c_start (i2c); -if (!polling) { +rk3x_i2c_start (i2c); + timeout =wait_event_timeout (i2c->wait, !i2c->busy,msecs_to_jiffies (WAIT_TIMEOUT )); }else { +disable_irq (i2c->irq); +rk3x_i2c_start (i2c); + timeout =rk3x_i2c_wait_xfer_poll (i2c); + +enable_irq (i2c->irq); }spin_lock_irqsave (&i2c->lock, flags);
@@ -1310,6 +1317,8 @@ static int rk3x_i2c_probe(struct platform_device *pdev)return ret; } + i2c->irq = irq; +platform_set_drvdata (pdev, i2c);if (i2c->soc_data->calc_timings == rk3x_i2c_v0_calc_timings) {
drivers/input/joystick/xpad.c +1 -0
@@ -286,6 +286,7 @@ static const struct xpad_device { { 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE }, { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE }, + { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE }, { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 }, { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 }, { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
drivers/input/keyboard/atkbd.c +42 -4
60 lines not on this page · raw message
drivers/input/mouse/synaptics.c +1 -0
@@ -183,6 +183,7 @@ static const char * const smbus_pnp_ids[] = {"LEN009b" ,/* T580 */ "LEN0402" ,/* X1 Extreme Gen 2 / P1 Gen 2 */ "LEN040f" ,/* P1 Gen 3 */ +"LEN0411" ,/* L14 Gen 1 */ "LEN200f" ,/* T450s */ "LEN2044" ,/* L470 */ "LEN2054", /* E480 */
drivers/input/serio/i8042-acpipnpio.h +8 -0
@@ -360,6 +360,14 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = { }, .driver_data = (void *)(SERIO_QUIRK_DRITEK) }, + { +/* Acer TravelMate P459-G2-M */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate P459-G2-M"), + }, + .driver_data = (void *)(SERIO_QUIRK_NOMUX ) + }, {/* Amoi M636/A737 */ .matches = {
drivers/leds/trigger/ledtrig-tty.c +4 -0
@@ -168,6 +168,10 @@ static void ledtrig_tty_deactivate(struct led_classdev *led_cdev)cancel_delayed_work_sync (&trigger_data->dwork); +kfree (trigger_data->ttyname); +tty_kref_put (trigger_data->tty); + trigger_data->tty =NULL ; +kfree (trigger_data); }
drivers/md/Kconfig +1 -0
@@ -660,6 +660,7 @@ config DM_ZONED config DM_AUDIT bool "DM audit events" + depends on BLK_DEV_DM depends on AUDIT help Generate audit events for device-mapper.
drivers/md/raid5.c +0 -12
@@ -36,7 +36,6 @@*/ #include <linux/blkdev.h> -#include <linux/delay.h> #include <linux/kthread.h> #include <linux/raid/pq.h> #include <linux/async_tx.h>
@@ -6843,18 +6842,7 @@ static void raid5d(struct md_thread *thread)spin_unlock_irq (&conf->device_lock);md_check_recovery (mddev);spin_lock_irq (&conf->device_lock); - -/* -* Waiting on MD_SB_CHANGE_PENDING below may deadlock -* seeing md_check_recovery() is needed to clear -* the flag when using mdmon. -*/ -continue ; } - -wait_event_lock_irq (mddev->sb_wait, - !test_bit (MD_SB_CHANGE_PENDING , &mddev->sb_flags), - conf->device_lock); }pr_debug ("%d stripes handled\n" , handled);
drivers/net/ethernet/broadcom/tg3.c +10 -1
@@ -6439,6 +6439,14 @@ static void tg3_dump_state(struct tg3 *tp)int i;u32 *regs; +/* If it is a PCI error, all registers will be 0xffff, +* we don't dump them out, just report the error and return +*/ +if (tp->pdev->error_state != pci_channel_io_normal) { +netdev_err (tp->dev,"PCI channel ERROR!\n" ); +return ; + } + regs =kzalloc (TG3_REG_BLK_SIZE ,GFP_ATOMIC );if (!regs)return ;
@@ -11179,7 +11187,8 @@ static void tg3_reset_task(struct work_struct *work)rtnl_lock ();tg3_full_lock (tp,0 ); -if (tp->pcierr_recovery || !netif_running (tp->dev)) { +if (tp->pcierr_recovery || !netif_running (tp->dev) || + tp->pdev->error_state != pci_channel_io_normal) {tg3_flag_clear (tp,RESET_TASK_PENDING );tg3_full_unlock (tp);rtnl_unlock ();
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +0 -5
@@ -59,11 +59,6 @@ static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_idreturn -ENODEV ; } -if (!of_device_is_compatible (np,"loongson, pci-gmac" )) { -pr_info ("dwmac_loongson_pci: Incompatible OF node\n" ); -return -ENODEV ; - } - plat =devm_kzalloc (&pdev->dev,sizeof (*plat),GFP_KERNEL );if (!plat)return -ENOMEM ;
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +1 -1
@@ -1385,7 +1385,7 @@ static void iwl_pcie_rx_handle_rb(struct iwl_trans *trans,* if it is true then one of the handlers took the page. */ -if (reclaim) { +if (reclaim && txq) {u16 sequence =le16_to_cpu (pkt->hdr.sequence);int index =SEQ_TO_INDEX (sequence);int cmd_index =iwl_txq_get_cmd_index (txq, index);
drivers/nvme/host/core.c +40 -24
207 lines not on this page · raw message
drivers/nvme/host/fc.c +3 -3
@@ -557,7 +557,7 @@ nvme_fc_rport_get(struct nvme_fc_rport *rport)static void nvme_fc_resume_controller (struct nvme_fc_ctrl *ctrl) { -switch (ctrl->ctrl.state) { +switch (nvme_ctrl_state (&ctrl->ctrl)) {case NVME_CTRL_NEW :case NVME_CTRL_CONNECTING :/*
@@ -793,7 +793,7 @@ nvme_fc_ctrl_connectivity_loss(struct nvme_fc_ctrl *ctrl)"NVME-FC{%d}: controller connectivity lost. Awaiting " "Reconnect", ctrl->cnum); -switch (ctrl->ctrl.state) { +switch (nvme_ctrl_state (&ctrl->ctrl)) {case NVME_CTRL_NEW :case NVME_CTRL_LIVE :/*
@@ -3305,7 +3305,7 @@ nvme_fc_reconnect_or_delete(struct nvme_fc_ctrl *ctrl, int status)unsigned long recon_delay = ctrl->ctrl.opts->reconnect_delay *HZ ;bool recon = true; -if (ctrl->ctrl.state !=NVME_CTRL_CONNECTING ) +if (nvme_ctrl_state (&ctrl->ctrl) !=NVME_CTRL_CONNECTING )return ;if (portptr->port_state ==FC_OBJSTATE_ONLINE ) {
drivers/nvme/host/ioctl.c +11 -10
@@ -18,15 +18,12 @@ static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c, {u32 effects; -if (capable (CAP_SYS_ADMIN )) -return true; -/* * Do not allow unprivileged passthrough on partitions, as that allows an * escape from the containment of the partition. */ if (flags &NVME_IOCTL_PARTITION ) -return false; + goto admin;/* * Do not allow unprivileged processes to send vendor specific or fabrics
@@ -34,7 +31,7 @@ static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c,*/ if (c->common.opcode >= nvme_cmd_vendor_start || c->common.opcode == nvme_fabrics_command) -return false; + goto admin;/* * Do not allow unprivileged passthrough of admin commands except
@@ -53,7 +50,7 @@ static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c,return true; } } -return false; + goto admin; }/*
@@ -63,7 +60,7 @@ static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c,*/ effects =nvme_command_effects (ns->ctrl, ns, c->common.opcode);if (!(effects &NVME_CMD_EFFECTS_CSUPP )) -return false; + goto admin;/* * Don't allow passthrough for command that have intrusive (or unknown)
@@ -72,16 +69,20 @@ static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c,if (effects & ~(NVME_CMD_EFFECTS_CSUPP |NVME_CMD_EFFECTS_LBCC |NVME_CMD_EFFECTS_UUID_SEL |NVME_CMD_EFFECTS_SCOPE_MASK )) -return false; + goto admin;/* * Only allow I/O commands that transfer data to the controller or that * change the logical block contents if the file descriptor is open for * writing. */ -if (nvme_is_write (c) || (effects &NVME_CMD_EFFECTS_LBCC )) -return open_for_write; +if ((nvme_is_write (c) || (effects &NVME_CMD_EFFECTS_LBCC )) && + !open_for_write) + goto admin; +return true; +admin: +return capable (CAP_SYS_ADMIN ); }/*
drivers/nvme/host/nvme.h +6 -0
@@ -256,6 +256,7 @@ enum nvme_ctrl_flags {NVME_CTRL_STOPPED =3 ,NVME_CTRL_SKIP_ID_CNS_CS =4 ,NVME_CTRL_DIRTY_CAPABILITY =5 , + NVME_CTRL_FROZEN = 6, }; struct nvme_ctrl {
@@ -391,6 +392,11 @@ struct nvme_ctrl {enum nvme_dctype dctype; }; +static inline enum nvme_ctrl_state nvme_ctrl_state (struct nvme_ctrl *ctrl) +{ +return READ_ONCE (ctrl->state); +} +enum nvme_iopolicy {NVME_IOPOLICY_NUMA ,NVME_IOPOLICY_RR ,
drivers/nvme/host/pci.c +7 -7
@@ -1234,7 +1234,7 @@ static bool nvme_should_reset(struct nvme_dev *dev, u32 csts)bool nssro = dev->subsystem && (csts &NVME_CSTS_NSSRO );/* If there is a reset/reinit ongoing, we shouldn't reset again. */ -switch (dev->ctrl.state) { +switch (nvme_ctrl_state (&dev->ctrl)) {case NVME_CTRL_RESETTING :case NVME_CTRL_CONNECTING :return false;
@@ -1322,7 +1322,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req)* cancellation error. All outstanding requests are completed on * shutdown, so we return BLK_EH_DONE. */ -switch (dev->ctrl.state) { +switch (nvme_ctrl_state (&dev->ctrl)) {case NVME_CTRL_CONNECTING :nvme_change_ctrl_state (&dev->ctrl,NVME_CTRL_DELETING ); fallthrough;
@@ -1594,7 +1594,7 @@ static int nvme_setup_io_queues_trylock(struct nvme_dev *dev)/* * Controller is in wrong state, fail early. */ -if (dev->ctrl.state !=NVME_CTRL_CONNECTING ) { +if (nvme_ctrl_state (&dev->ctrl) !=NVME_CTRL_CONNECTING ) {mutex_unlock (&dev->shutdown_lock);return -ENODEV ; }
@@ -2574,13 +2574,13 @@ static bool nvme_pci_ctrl_is_dead(struct nvme_dev *dev)static void nvme_dev_disable (struct nvme_dev *dev,bool shutdown) { +enum nvme_ctrl_state state =nvme_ctrl_state (&dev->ctrl);struct pci_dev *pdev =to_pci_dev (dev->dev);bool dead;mutex_lock (&dev->shutdown_lock); dead =nvme_pci_ctrl_is_dead (dev); -if (dev->ctrl.state ==NVME_CTRL_LIVE || - dev->ctrl.state ==NVME_CTRL_RESETTING ) { +if (state ==NVME_CTRL_LIVE || state ==NVME_CTRL_RESETTING ) {if (pci_is_enabled (pdev))nvme_start_freeze (&dev->ctrl);/*
@@ -2691,7 +2691,7 @@ static void nvme_reset_work(struct work_struct *work)bool was_suspend = !!(dev->ctrl.ctrl_config &NVME_CC_SHN_NORMAL );int result; -if (dev->ctrl.state !=NVME_CTRL_RESETTING ) { +if (nvme_ctrl_state (&dev->ctrl) !=NVME_CTRL_RESETTING ) {dev_warn (dev->ctrl.device,"ctrl state %d is not RESETTING\n" , dev->ctrl.state); result = -ENODEV ;
@@ -3207,7 +3207,7 @@ static int nvme_suspend(struct device *dev)nvme_wait_freeze (ctrl);nvme_sync_queues (ctrl); -if (ctrl->state !=NVME_CTRL_LIVE ) +if (nvme_ctrl_state (ctrl) !=NVME_CTRL_LIVE ) goto unfreeze;/*
drivers/nvme/host/rdma.c +14 -9
@@ -984,10 +984,11 @@ static void nvme_rdma_free_ctrl(struct nvme_ctrl *nctrl)static void nvme_rdma_reconnect_or_remove (struct nvme_rdma_ctrl *ctrl) { +enum nvme_ctrl_state state =nvme_ctrl_state (&ctrl->ctrl); +/* If we are resetting/deleting then do nothing */ -if (ctrl->ctrl.state !=NVME_CTRL_CONNECTING ) { -WARN_ON_ONCE (ctrl->ctrl.state ==NVME_CTRL_NEW || - ctrl->ctrl.state ==NVME_CTRL_LIVE ); +if (state !=NVME_CTRL_CONNECTING ) { +WARN_ON_ONCE (state ==NVME_CTRL_NEW || state ==NVME_CTRL_LIVE );return ; }
@@ -1059,8 +1060,10 @@ static int nvme_rdma_setup_ctrl(struct nvme_rdma_ctrl *ctrl, bool new)* unless we're during creation of a new controller to * avoid races with teardown flow. */ -WARN_ON_ONCE (ctrl->ctrl.state !=NVME_CTRL_DELETING && - ctrl->ctrl.state !=NVME_CTRL_DELETING_NOIO ); +enum nvme_ctrl_state state =nvme_ctrl_state (&ctrl->ctrl); + +WARN_ON_ONCE (state !=NVME_CTRL_DELETING && + state !=NVME_CTRL_DELETING_NOIO );WARN_ON_ONCE (new); ret = -EINVAL ; goto destroy_io;
@@ -1128,8 +1131,10 @@ static void nvme_rdma_error_recovery_work(struct work_struct *work)if (!nvme_change_ctrl_state (&ctrl->ctrl,NVME_CTRL_CONNECTING )) {/* state change failure is ok if we started ctrl delete */ -WARN_ON_ONCE (ctrl->ctrl.state !=NVME_CTRL_DELETING && - ctrl->ctrl.state !=NVME_CTRL_DELETING_NOIO ); +enum nvme_ctrl_state state =nvme_ctrl_state (&ctrl->ctrl); + +WARN_ON_ONCE (state !=NVME_CTRL_DELETING && + state !=NVME_CTRL_DELETING_NOIO );return ; }
@@ -1161,7 +1166,7 @@ static void nvme_rdma_wr_error(struct ib_cq *cq, struct ib_wc *wc,struct nvme_rdma_queue *queue = wc->qp->qp_context;struct nvme_rdma_ctrl *ctrl = queue->ctrl; -if (ctrl->ctrl.state ==NVME_CTRL_LIVE ) +if (nvme_ctrl_state (&ctrl->ctrl) ==NVME_CTRL_LIVE ) dev_info(ctrl->ctrl.device, "%s for CQE 0x%p failed with status %s (%d)\n", op, wc->wr_cqe,
@@ -1944,7 +1949,7 @@ static enum blk_eh_timer_return nvme_rdma_timeout(struct request *rq)dev_warn (ctrl->ctrl.device,"I/O %d QID %d timeout\n" , rq->tag,nvme_rdma_queue_idx (queue)); -if (ctrl->ctrl.state !=NVME_CTRL_LIVE ) { +if (nvme_ctrl_state (&ctrl->ctrl) !=NVME_CTRL_LIVE ) {/* * If we are resetting, connecting or deleting we should * complete immediately because we may block controller
drivers/nvme/host/tcp.c +17 -10
@@ -1993,10 +1993,11 @@ static void nvme_tcp_teardown_io_queues(struct nvme_ctrl *ctrl,static void nvme_tcp_reconnect_or_remove (struct nvme_ctrl *ctrl) { +enum nvme_ctrl_state state =nvme_ctrl_state (ctrl); +/* If we are resetting/deleting then do nothing */ -if (ctrl->state !=NVME_CTRL_CONNECTING ) { -WARN_ON_ONCE (ctrl->state ==NVME_CTRL_NEW || - ctrl->state ==NVME_CTRL_LIVE ); +if (state !=NVME_CTRL_CONNECTING ) { +WARN_ON_ONCE (state ==NVME_CTRL_NEW || state ==NVME_CTRL_LIVE );return ; }
@@ -2056,8 +2057,10 @@ static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new)* unless we're during creation of a new controller to * avoid races with teardown flow. */ -WARN_ON_ONCE (ctrl->state !=NVME_CTRL_DELETING && - ctrl->state !=NVME_CTRL_DELETING_NOIO ); +enum nvme_ctrl_state state =nvme_ctrl_state (ctrl); + +WARN_ON_ONCE (state !=NVME_CTRL_DELETING && + state !=NVME_CTRL_DELETING_NOIO );WARN_ON_ONCE (new); ret = -EINVAL ; goto destroy_io;
@@ -2124,8 +2127,10 @@ static void nvme_tcp_error_recovery_work(struct work_struct *work)if (!nvme_change_ctrl_state (ctrl,NVME_CTRL_CONNECTING )) {/* state change failure is ok if we started ctrl delete */ -WARN_ON_ONCE (ctrl->state !=NVME_CTRL_DELETING && - ctrl->state !=NVME_CTRL_DELETING_NOIO ); +enum nvme_ctrl_state state =nvme_ctrl_state (ctrl); + +WARN_ON_ONCE (state !=NVME_CTRL_DELETING && + state !=NVME_CTRL_DELETING_NOIO );return ; }
@@ -2155,8 +2160,10 @@ static void nvme_reset_ctrl_work(struct work_struct *work)if (!nvme_change_ctrl_state (ctrl,NVME_CTRL_CONNECTING )) {/* state change failure is ok if we started ctrl delete */ -WARN_ON_ONCE (ctrl->state !=NVME_CTRL_DELETING && - ctrl->state !=NVME_CTRL_DELETING_NOIO ); +enum nvme_ctrl_state state =nvme_ctrl_state (ctrl); + +WARN_ON_ONCE (state !=NVME_CTRL_DELETING && + state !=NVME_CTRL_DELETING_NOIO );return ; }
@@ -2274,7 +2281,7 @@ static enum blk_eh_timer_return nvme_tcp_timeout(struct request *rq)nvme_tcp_queue_id (req->queue),nvme_cid (rq), pdu->hdr.type, opc, nvme_opcode_str(qid, opc, fctype)); -if (ctrl->state !=NVME_CTRL_LIVE ) { +if (nvme_ctrl_state (ctrl) !=NVME_CTRL_LIVE ) {/* * If we are resetting, connecting or deleting we should * complete immediately because we may block controller
drivers/nvme/target/configfs.c +3 -0
@@ -17,6 +17,7 @@#endif #include <crypto/hash.h> #include <crypto/kpp.h> +#include <linux/nospec.h> #include "nvmet.h"
@@ -509,6 +510,7 @@ static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item,down_write (&nvmet_ana_sem); oldgrpid = ns->anagrpid; + newgrpid =array_index_nospec (newgrpid,NVMET_MAX_ANAGRPS ); nvmet_ana_group_enabled[newgrpid]++; ns->anagrpid = newgrpid; nvmet_ana_group_enabled[oldgrpid]--;
@@ -1700,6 +1702,7 @@ static struct config_group *nvmet_ana_groups_make_group( grp->grpid = grpid;down_write (&nvmet_ana_sem); + grpid =array_index_nospec (grpid,NVMET_MAX_ANAGRPS ); nvmet_ana_group_enabled[grpid]++;up_write (&nvmet_ana_sem);
drivers/parport/parport_serial.c +64 -0
88 lines not on this page · raw message
drivers/pci/quirks.c +6 -2
@@ -4699,17 +4699,21 @@ static int pci_quirk_xgene_acs(struct pci_dev *dev, u16 acs_flags)* But the implementation could block peer-to-peer transactions between them * and provide ACS-like functionality. */ -static int pci_quirk_zhaoxin_pcie_ports_acs (struct pci_dev *dev,u16 acs_flags) +static int pci_quirk_zhaoxin_pcie_ports_acs (struct pci_dev *dev,u16 acs_flags) {if (!pci_is_pcie (dev) || ((pci_pcie_type (dev) !=PCI_EXP_TYPE_ROOT_PORT ) && (pci_pcie_type (dev) !=PCI_EXP_TYPE_DOWNSTREAM )))return -ENOTTY ; +/* +* Future Zhaoxin Root Ports and Switch Downstream Ports will +* implement ACS capability in accordance with the PCIe Spec. +*/ switch (dev->device) { case 0x0710 ... 0x071e:case 0x0721 : - case 0x0723 ... 0x0732: + case 0x0723 ... 0x0752:return pci_acs_ctrl_enabled (acs_flags,PCI_ACS_SV |PCI_ACS_RR |PCI_ACS_CR |PCI_ACS_UF ); }
drivers/pinctrl/cirrus/Kconfig +2 -1
@@ -12,7 +12,8 @@ config PINCTRL_CS42L43 config PINCTRL_LOCHNAGAR tristate "Cirrus Logic Lochnagar pinctrl driver" - depends on MFD_LOCHNAGAR + # Avoid clash caused by MIPS defining RST, which is used in the driver + depends on MFD_LOCHNAGAR && !MIPS select GPIOLIB select PINMUX select PINCONF
drivers/pinctrl/nxp/pinctrl-s32cc.c +2 -2
@@ -843,8 +843,8 @@ static int s32_pinctrl_probe_dt(struct platform_device *pdev,if (!np)return -ENODEV ; -if (mem_regions ==0 ) { -dev_err (&pdev->dev,"mem_regions is 0\n" ); +if (mem_regions ==0 || mem_regions >=10000 ) { +dev_err (&pdev->dev,"mem_regions is invalid: %u\n" , mem_regions);return -EINVAL ; }
drivers/pinctrl/pinctrl-amd.c +9 -0
@@ -923,6 +923,15 @@ static int amd_gpio_suspend(struct device *dev)raw_spin_lock_irqsave (&gpio_dev->lock, flags); gpio_dev->saved_regs[i] =readl (gpio_dev->base + pin *4 ) & ~PIN_IRQ_PENDING ; + +/* mask any interrupts not intended to be a wake source */ +if (!(gpio_dev->saved_regs[i] &WAKE_SOURCE )) { +writel (gpio_dev->saved_regs[i] & ~BIT (INTERRUPT_MASK_OFF ), + gpio_dev->base + pin *4 ); +pm_pr_dbg ("Disabling GPIO #%d interrupt for suspend.\n" , + pin); + } +raw_spin_unlock_irqrestore (&gpio_dev->lock, flags); }
drivers/pinctrl/pinctrl-amd.h +5 -0
@@ -80,6 +80,11 @@#define FUNCTION_MASK GENMASK(1, 0)#define FUNCTION_INVALID GENMASK(7, 0) +#define WAKE_SOURCE (BIT(WAKE_CNTRL_OFF_S0I3) | \ + BIT(WAKE_CNTRL_OFF_S3) | \ + BIT(WAKE_CNTRL_OFF_S4) | \ + BIT(WAKECNTRL_Z_OFF)) +struct amd_function {const char *name;const char *const groups[NSELECTS ];
drivers/pinctrl/pinctrl-cy8c95x0.c +13 -1
@@ -307,6 +307,9 @@ static const char * const cy8c95x0_groups[] = { "gp77", }; +static int cy8c95x0_pinmux_direction (struct cy8c95x0_pinctrl *chip, +unsigned int pin,bool input); +static inline u8 cypress_get_port (struct cy8c95x0_pinctrl *chip,unsigned int pin) {/* Account for GPORT2 which only has 4 bits */
@@ -711,6 +714,8 @@ static int cy8c95x0_gpio_get_pincfg(struct cy8c95x0_pinctrl *chip, ret =regmap_read (chip->regmap, reg, ®_val);if (reg_val & bit) arg =1 ; +if (param ==PIN_CONFIG_OUTPUT_ENABLE ) + arg = !arg; *config =pinconf_to_config_packed (param, (u16 )arg); out:
@@ -726,6 +731,7 @@ static int cy8c95x0_gpio_set_pincfg(struct cy8c95x0_pinctrl *chip,u8 port =cypress_get_port (chip, off);u8 bit =cypress_get_pin_mask (chip, off);unsigned long param =pinconf_to_config_param (config); +unsigned long arg =pinconf_to_config_argument (config);unsigned int reg;int ret;
@@ -764,6 +770,12 @@ static int cy8c95x0_gpio_set_pincfg(struct cy8c95x0_pinctrl *chip,case PIN_CONFIG_MODE_PWM : reg =CY8C95X0_PWMSEL ;break ; +case PIN_CONFIG_OUTPUT_ENABLE : + ret =cy8c95x0_pinmux_direction (chip, off, !arg); + goto out; +case PIN_CONFIG_INPUT_ENABLE : + ret =cy8c95x0_pinmux_direction (chip, off, arg); + goto out;default : ret = -ENOTSUPP ; goto out;
@@ -821,7 +833,7 @@ static int cy8c95x0_setup_gpiochip(struct cy8c95x0_pinctrl *chip) gc->get_direction = cy8c95x0_gpio_get_direction; gc->get_multiple = cy8c95x0_gpio_get_multiple; gc->set_multiple = cy8c95x0_gpio_set_multiple; - gc->set_config = gpiochip_generic_config, + gc->set_config = gpiochip_generic_config; gc->can_sleep = true; gc->add_pin_ranges = cy8c95x0_add_pin_ranges;
drivers/platform/x86/amd/pmc/pmc-quirks.c +20 -0
@@ -16,12 +16,17 @@struct quirk_entry {u32 s2idle_bug_mmio; +bool spurious_8042; };static struct quirk_entry quirk_s2idle_bug = { .s2idle_bug_mmio =0xfed80380 , }; +static struct quirk_entry quirk_spurious_8042 = { + .spurious_8042 = true, +}; +static const struct dmi_system_id fwbug_list[] = { { .ident ="L14 Gen2 AMD" ,
@@ -193,6 +198,16 @@ static const struct dmi_system_id fwbug_list[] = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 15s-eq2xxx"), } }, +/* https://community.frame.work/t/tracking-framework-amd-ryzen-7040-series-lid-wakeup-behavior-feedback/39128 */ + { + .ident = "Framework Laptop 13 (Phoenix)", + .driver_data = &quirk_spurious_8042, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Framework"), + DMI_MATCH(DMI_PRODUCT_NAME, "Laptop 13 (AMD Ryzen 7040Series)"), + DMI_MATCH(DMI_BIOS_VERSION, "03.03"), + } + }, {} };
@@ -235,6 +250,9 @@ void amd_pmc_quirks_init(struct amd_pmc_dev *dev) {const struct dmi_system_id *dmi_id; +if (dev->cpu_id ==AMD_CPU_ID_CZN ) + dev->disable_8042_wakeup = true; + dmi_id =dmi_first_match (fwbug_list);if (!dmi_id)return ;
@@ -242,4 +260,6 @@ void amd_pmc_quirks_init(struct amd_pmc_dev *dev)if (dev->quirks->s2idle_bug_mmio)pr_info ("Using s2idle quirk to avoid %s platform firmware bug\n" , dmi_id->ident); +if (dev->quirks->spurious_8042) + dev->disable_8042_wakeup = true; }
drivers/platform/x86/amd/pmc/pmc.c +13 -20
@@ -87,16 +87,6 @@#define SMU_MSG_LOG_RESET 0x07#define SMU_MSG_LOG_DUMP_DATA 0x08#define SMU_MSG_GET_SUP_CONSTRAINTS 0x09 -/* List of supported CPU ids */ -#define AMD_CPU_ID_RV 0x15D0 -#define AMD_CPU_ID_RN 0x1630 -#define AMD_CPU_ID_PCO AMD_CPU_ID_RV -#define AMD_CPU_ID_CZN AMD_CPU_ID_RN -#define AMD_CPU_ID_YC 0x14B5 -#define AMD_CPU_ID_CB 0x14D8 -#define AMD_CPU_ID_PS 0x14E8 -#define AMD_CPU_ID_SP 0x14A4 -#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507#define PMC_MSG_DELAY_MIN_US 50#define RESPONSE_REGISTER_LOOP_MAX 20000
@@ -714,19 +704,22 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)return -EINVAL ; } -static int amd_pmc_czn_wa_irq1 (struct amd_pmc_dev *pdev) +static int amd_pmc_wa_irq1 (struct amd_pmc_dev *pdev) {struct device *d;int rc; -if (!pdev->major) { - rc =amd_pmc_get_smu_version (pdev); -if (rc) -return rc; - } +/* cezanne platform firmware has a fix in 64.66.0 */ +if (pdev->cpu_id ==AMD_CPU_ID_CZN ) { +if (!pdev->major) { + rc =amd_pmc_get_smu_version (pdev); +if (rc) +return rc; + } -if (pdev->major >64 || (pdev->major ==64 && pdev->minor >65 )) -return 0 ; +if (pdev->major >64 || (pdev->major ==64 && pdev->minor >65 )) +return 0 ; + } d =bus_find_device_by_name (&serio_bus,NULL ,"serio0" );if (!d)
@@ -885,8 +878,8 @@ static int amd_pmc_suspend_handler(struct device *dev) {struct amd_pmc_dev *pdev =dev_get_drvdata (dev); -if (pdev->cpu_id ==AMD_CPU_ID_CZN && !disable_workarounds) { -int rc =amd_pmc_czn_wa_irq1 (pdev); +if (pdev->disable_8042_wakeup && !disable_workarounds) { +int rc =amd_pmc_wa_irq1 (pdev);if (rc) {dev_err (pdev->dev,"failed to adjust keyboard wakeup: %d\n" , rc);
drivers/platform/x86/amd/pmc/pmc.h +12 -0
@@ -36,9 +36,21 @@ struct amd_pmc_dev {struct mutex lock;/* generic mutex lock */ struct dentry *dbgfs_dir;struct quirk_entry *quirks; + bool disable_8042_wakeup; };void amd_pmc_process_restore_quirks (struct amd_pmc_dev *dev);void amd_pmc_quirks_init (struct amd_pmc_dev *dev); +/* List of supported CPU ids */ +#define AMD_CPU_ID_RV 0x15D0 +#define AMD_CPU_ID_RN 0x1630 +#define AMD_CPU_ID_PCO AMD_CPU_ID_RV +#define AMD_CPU_ID_CZN AMD_CPU_ID_RN +#define AMD_CPU_ID_YC 0x14B5 +#define AMD_CPU_ID_CB 0x14D8 +#define AMD_CPU_ID_PS 0x14E8 +#define AMD_CPU_ID_SP 0x14A4 +#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507 +#endif /* PMC_H */
drivers/platform/x86/intel/vbtn.c +15 -4
@@ -73,10 +73,10 @@ struct intel_vbtn_priv {bool wakeup_mode; }; -static void detect_tablet_mode (struct platform_device *device) +static void detect_tablet_mode (struct device *dev) { -struct intel_vbtn_priv *priv =dev_get_drvdata (&device->dev); -acpi_handle handle =ACPI_HANDLE (&device->dev); +struct intel_vbtn_priv *priv =dev_get_drvdata (dev); +acpi_handle handle =ACPI_HANDLE (dev);unsigned long long vgbs;acpi_status status;int m;
@@ -89,6 +89,8 @@ static void detect_tablet_mode(struct platform_device *device)input_report_switch (priv->switches_dev,SW_TABLET_MODE , m); m = (vgbs &VGBS_DOCK_MODE_FLAG ) ?1 :0 ;input_report_switch (priv->switches_dev,SW_DOCK , m); + +input_sync (priv->switches_dev); }/*
@@ -134,7 +136,7 @@ static int intel_vbtn_input_setup(struct platform_device *device) priv->switches_dev->id.bustype =BUS_HOST ;if (priv->has_switches) { -detect_tablet_mode (device); +detect_tablet_mode (&device->dev); ret =input_register_device (priv->switches_dev);if (ret)
@@ -198,6 +200,9 @@ static void notify_handler(acpi_handle handle, u32 event, void *context) autorelease = val && (!ke_rel || ke_rel->type ==KE_IGNORE );sparse_keymap_report_event (input_dev, event, val, autorelease); + +/* Some devices need this to report further events */ +acpi_evaluate_object (handle,"VBDL" ,NULL ,NULL ); }/*
@@ -352,7 +357,13 @@ static void intel_vbtn_pm_complete(struct device *dev)static int intel_vbtn_pm_resume (struct device *dev) { +struct intel_vbtn_priv *priv =dev_get_drvdata (dev); +intel_vbtn_pm_complete (dev); + +if (priv->has_switches) +detect_tablet_mode (dev); +return 0 ; }
drivers/platform/x86/thinkpad_acpi.c +85 -13
201 lines not on this page · raw message
drivers/reset/hisilicon/hi6220_reset.c +1 -1
@@ -163,7 +163,7 @@ static int hi6220_reset_probe(struct platform_device *pdev)if (!data)return -ENOMEM ; - type = (enum hi6220_reset_ctrl_type )of_device_get_match_data (dev); + type = (uintptr_t )of_device_get_match_data (dev); regmap =syscon_node_to_regmap (np);if (IS_ERR (regmap)) {
drivers/s390/block/scm_blk.c +4 -3
@@ -17,6 +17,7 @@#include <linux/blk-mq.h> #include <linux/slab.h> #include <linux/list.h>
Lines of this file are not shown. View the raw message.
kernel/time/posix-stubs.c +0 -45
45 lines not on this page · raw message
lib/kunit/test.c +40 -2
42 lines not on this page · raw message
sound/soc/codecs/cs35l45.c +51 -5
56 lines not on this page · raw message
sound/soc/intel/boards/skl_hda_dsp_generic.c +2 -0
Lines of this file are not shown. View the raw message.
sound/soc/sof/ipc4-topology.c +35 -26
61 lines not on this page · raw message
sound/soc/sof/sof-audio.c +41 -24
65 lines not on this page · raw message
tools/testing/selftests/alsa/mixer-test.c +1 -1
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.