Linux 6.6.96
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.96 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
------------
Documentation/devicetree/bindings/serial/8250.yaml | 2 Makefile | 2 arch/arm/include/asm/ptrace.h | 5 arch/s390/kernel/entry.S | 2 arch/um/drivers/ubd_user.c | 2 arch/um/include/asm/asm-prototypes.h | 5 arch/um/kernel/trap.c | 129 ++++++- arch/x86/tools/insn_decoder_test.c | 5 arch/x86/um/asm/checksum.h | 3 drivers/cxl/core/region.c | 7 drivers/dma/idxd/cdev.c | 4 drivers/dma/xilinx/xilinx_dma.c | 2 drivers/edac/amd64_edac.c | 57 +-- drivers/firmware/arm_scmi/driver.c | 44 ++ drivers/firmware/arm_scmi/protocols.h | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 30 - drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 12 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 16 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 17 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 2 drivers/gpu/drm/amd/amdkfd/kfd_events.c | 1 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c | 2 drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c | 3 drivers/gpu/drm/ast/ast_mode.c | 6 drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 32 + drivers/gpu/drm/bridge/ti-sn65dsi86.c | 109 +++-- drivers/gpu/drm/etnaviv/etnaviv_sched.c | 5 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 drivers/gpu/drm/i915/i915_pmu.c | 2 drivers/gpu/drm/msm/msm_gpu_devfreq.c | 1 drivers/gpu/drm/scheduler/sched_entity.c | 1 drivers/gpu/drm/tegra/dc.c | 17 drivers/gpu/drm/tegra/hub.c | 4 drivers/gpu/drm/tegra/hub.h | 3 drivers/gpu/drm/tiny/cirrus.c | 1 drivers/gpu/drm/udl/udl_drv.c | 2 drivers/hid/hid-lenovo.c | 11 drivers/hid/wacom_sys.c | 6 drivers/hv/channel_mgmt.c | 15 drivers/hv/hyperv_vmbus.h | 5 drivers/hwmon/pmbus/max34440.c | 48 ++ drivers/hwtracing/coresight/coresight-core.c | 3 drivers/hwtracing/coresight/coresight-priv.h | 1 drivers/i2c/busses/i2c-robotfuzz-osif.c | 6 drivers/i2c/busses/i2c-tiny-usb.c | 6 drivers/iio/adc/ad_sigma_delta.c | 4 drivers/iio/pressure/zpa2326.c | 2 drivers/leds/led-class-multicolor.c | 3 drivers/mailbox/mailbox.c | 2 drivers/md/bcache/super.c | 7 drivers/md/dm-raid.c | 2 drivers/md/md-bitmap.c | 2 drivers/media/usb/uvc/uvc_ctrl.c | 39 +- drivers/mfd/max14577.c | 1 drivers/misc/tps6594-pfsm.c | 3 drivers/net/ethernet/freescale/enetc/enetc_hw.h | 2 drivers/net/ethernet/wangxun/libwx/wx_lib.c | 2 drivers/nvme/host/ioctl.c | 16 drivers/pci/controller/dwc/pcie-designware.c | 5 drivers/pci/controller/pcie-apple.c | 7 drivers/platform/x86/Kconfig | 1 drivers/platform/x86/ideapad-laptop.c | 237 +++++++++++++ drivers/platform/x86/ideapad-laptop.h | 142 ------- drivers/platform/x86/lenovo-ymc.c | 60 --- drivers/s390/crypto/pkey_api.c | 2 drivers/scsi/megaraid/megaraid_sas_base.c | 6 drivers/spi/spi-cadence-quadspi.c | 11 drivers/staging/rtl8723bs/core/rtw_security.c | 44 -- drivers/tty/serial/imx.c | 17 drivers/tty/serial/uartlite.c | 25 - drivers/tty/vt/vt.c | 12 drivers/ufs/core/ufshcd.c | 3 drivers/uio/uio_hv_generic.c | 10 drivers/usb/class/cdc-wdm.c | 23 - drivers/usb/common/usb-conn-gpio.c | 25 + drivers/usb/core/usb.c | 14 drivers/usb/dwc2/gadget.c | 6 drivers/usb/gadget/function/f_tcm.c | 4 drivers/usb/typec/altmodes/displayport.c | 4 drivers/usb/typec/mux.c | 4 drivers/video/console/dummycon.c | 24 - drivers/video/console/mdacon.c | 21 - drivers/video/console/newport_con.c | 12 drivers/video/console/sticon.c | 14 drivers/video/console/vgacon.c | 12 drivers/video/fbdev/core/fbcon.c | 40 +- fs/btrfs/disk-io.c | 3 fs/btrfs/inode.c | 81 +++- fs/btrfs/volumes.c | 6 fs/ceph/file.c | 2 fs/f2fs/super.c | 30 - fs/fuse/dir.c | 11 fs/jfs/jfs_dmap.c | 41 -- fs/namespace.c | 8 fs/nfs/inode.c | 2 fs/nfs/nfs4proc.c | 17 fs/overlayfs/util.c | 4 fs/smb/client/cifsglob.h | 2 fs/smb/client/cifspdu.h | 6 fs/smb/client/cifssmb.c | 1 fs/smb/client/connect.c | 58 +-- fs/smb/client/misc.c | 8 fs/smb/client/sess.c | 21 - fs/smb/server/connection.h | 1 fs/smb/server/smb2pdu.c | 81 ++-- fs/smb/server/smb2pdu.h | 3 include/linux/console.h | 13 include/linux/hyperv.h | 2 include/linux/ipv6.h | 1 include/uapi/linux/vm_sockets.h | 4 lib/Kconfig.debug | 9 lib/Makefile | 2 lib/group_cpus.c | 9 lib/longest_symbol_kunit.c | 82 ++++ mm/damon/sysfs-schemes.c | 1 net/atm/clip.c | 11 net/atm/resources.c | 3 net/bluetooth/l2cap_core.c | 9 net/core/selftests.c | 5 net/ipv6/ip6_output.c | 9 net/mac80211/util.c | 2 net/sunrpc/clnt.c | 9 net/unix/af_unix.c | 107 ++++- net/unix/garbage.c | 24 - rust/macros/module.rs | 1 scripts/checkstack.pl | 3 scripts/gdb/linux/tasks.py | 15 scripts/head-object-list.txt | 1 scripts/kconfig/mconf.c | 2 scripts/kconfig/nconf.c | 2 scripts/package/kernel.spec | 28 - scripts/package/mkdebian | 2 scripts/recordmcount.c | 1 scripts/recordmcount.pl | 7 scripts/xz_wrap.sh | 1 sound/pci/hda/hda_bind.c | 2 sound/pci/hda/hda_intel.c | 3 sound/pci/hda/patch_realtek.c | 1 sound/soc/amd/yc/acp6x-mach.c | 7 sound/soc/codecs/wcd9335.c | 62 +-- sound/usb/quirks.c | 2 sound/usb/stream.c | 2 tools/lib/bpf/btf_dump.c | 3 tools/lib/bpf/libbpf.c | 10 tools/testing/selftests/bpf/progs/test_global_map_resize.c | 16 149 files changed, 1557 insertions(+), 828 deletions(-)
Adin Scannell (1):
libbpf: Fix possible use-after-free for externs
Al Viro (1):
attach_recursive_mnt(): do not lock the covering tree when sliding something under it
Alex Deucher (1):
drm/amdgpu: switch job hw_fence to amdgpu_fence
Alexis Czezar Torreno (1):
hwmon: (pmbus/max34440) Fix support for max34451
Andy Shevchenko (1):
usb: Add checks for snprintf() calls in usb_alloc_dev()
Aradhya Bhatia (5):
drm/bridge: cdns-dsi: Fix the clock variable for mode_valid() drm/bridge: cdns-dsi: Fix phy de-init and flag it so drm/bridge: cdns-dsi: Fix connecting to next bridge drm/bridge: cdns-dsi: Check return value when getting default PHY config drm/bridge: cdns-dsi: Wait for Clk and Data Lanes to be ready
Arnd Bergmann (1):
drm/i915: fix build error some more
Avadhut Naik (1):
EDAC/amd64: Fix size calculation for Non-Power-of-Two DIMMs
Benjamin Berg (1):
um: use proper care when taking mmap lock during segfault
Brett A C Sheffield (Librecast) (1):
Revert "ipv6: save dontfrag in cork"
Cezary Rojewski (1):
ALSA: hda: Ignore unsol events for cards being shut down
Chance Yang (1):
usb: common: usb-conn-gpio: use a unique name for usb connector device
Chao Yu (1):
f2fs: don't over-report free space or inodes in statvfs
Chen Yu (1):
scsi: megaraid_sas: Fix invalid node index
Chen Yufeng (1):
usb: potential integer overflow in usbg_make_tpg()
Chenyuan Yang (1):
misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()
Cristian Marussi (1):
firmware: arm_scmi: Add a common helper to check if a message is supported
Dave Kleikamp (1):
fs/jfs: consolidate sanity checking in dbMount
Dmitry Kandybka (1):
ceph: fix possible integer overflow in ceph_zero_objects()
Eric Dumazet (1):
atm: clip: prevent NULL deref in clip_push()
FUJITA Tomonori (1):
rust: module: place cleanup_module() in .exit.text section
Fabio Estevam (1):
serial: imx: Restore original RXTL for console to fix data loss
Fedor Pchelkin (1):
s390/pkey: Prevent overflow in size calculation for memdup_user()
Filipe Manana (1):
btrfs: fix a race between renames and directory logging
Frank Min (1):
drm/amdgpu: Add kicker device detection
Frédéric Danis (1):
Bluetooth: L2CAP: Fix L2CAP MTU negotiation
Geert Uytterhoeven (1):
ARM: 9354/1: ptrace: Use bitfield helpers
Gergo Koteles (3):
platform/x86: ideapad-laptop: introduce a generic notification chain platform/x86: ideapad-laptop: move ymc_trigger_ec from lenovo-ymc platform/x86: ideapad-laptop: move ACPI helpers from header to source file
Greg Kroah-Hartman (1):
Linux 6.6.96
Guang Yuan Wu (1):
fuse: fix race between concurrent setattrs from multiple nodes
Han Young (1):
NFSv4: Always set NLINK even if the server doesn't support it
Hector Martin (1):
PCI: apple: Fix missing OF node reference in apple_pcie_setup_port
Heiko Carstens (1):
s390/entry: Fix last breaking event handling in case of stack corruption
Heinz Mauelshagen (1):
dm-raid: fix variable in journal device check
Iusico Maxim (1):
HID: lenovo: Restrict F7/9/11 mode to compact keyboards only
Jakub Kicinski (1):
net: selftests: fix TCP packet checksum
Jakub Lewalski (1):
tty: serial: uartlite: register uart driver in init
James Clark (1):
coresight: Only check bottom two claim bits
Janne Grunau (1):
PCI: apple: Set only available ports up
Jay Cornwall (1):
drm/amdkfd: Fix race in GWS queue scheduling
Jayesh Choudhary (1):
drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type
Jens Axboe (1):
nvme: always punt polled uring_cmd end_io work to task_work
Jiawen Wu (1):
net: libwx: fix the creation of page_pool
Jiri Slaby (SUSE) (3):
tty: vt: make init parameter of consw::con_init() a bool
tty: vt: sanitize arguments of consw::con_clear()
tty: vt: make consw::con_switch() return a bool
John Olender (1):
drm/amdgpu: amdgpu_vram_mgr_new(): Clamp lpfn to total vram
Jonathan Cameron (1):
iio: pressure: zpa2326: Use aligned_s64 for the timestamp
Jos Wang (1):
usb: typec: displayport: Receive DP Status Update NAK request exit dp altmode
Jose Ignacio Tornos Martinez (1):
kbuild: rpm-pkg: simplify installkernel %post
Kees Cook (1):
ovl: Check for NULL d_inode() in ovl_dentry_upper()
Khairul Anuar Romli (1):
spi: spi-cadence-quadspi: Fix pm runtime unbalance
Krzysztof Kozlowski (3):
mfd: max14577: Fix wakeup source leaks on device unbind
ASoC: codecs: wcd9335: Handle nicer probe deferral and simplify with dev_err_probe()
ASoC: codecs: wcd9335: Fix missing free of regulator supplies
Kuniyuki Iwashima (7):
af_unix: Define locking order for unix_table_double_lock().
af_unix: Define locking order for U_LOCK_SECOND in unix_state_double_lock().
af_unix: Define locking order for U_RECVQ_LOCK_EMBRYO in unix_collect_skb().
af_unix: Don't call skb_get() for OOB skb.
af_unix: Don't leave consecutive consumed OOB skbs.
af_unix: Don't set -ECONNRESET for consumed OOB skb.
atm: Release atm_dev_mutex after removing procfs in atm_dev_deregister().
Lachlan Hodges (1):
wifi: mac80211: fix beacon interval calculation overflow
Lin.Cao (1):
drm/scheduler: signal scheduled fence when kill job
Linggang Zeng (1):
bcache: fix NULL pointer in cache_set_flush()
Long Li (1):
uio_hv_generic: Align ring size to system page
Mario Limonciello (1):
ALSA: usb-audio: Add a quirk for Lenovo Thinkpad Thunderbolt 3 dock
Mark Harmstone (1):
btrfs: update superblock's device bytes_used when dropping chunk
Masahiro Yamada (1):
scripts: clean up IA-64 code
Maíra Canal (1):
drm/etnaviv: Protect the scheduler's pending list with its lock
Michael Grzeschik (2):
usb: dwc2: also exit clock_gating when stopping udc while suspended
usb: typec: mux: do not return on EOPNOTSUPP in {mux, switch}_set
Namjae Jeon (4):
ksmbd: allow a filename to contain special characters on SMB3.1.1 posix extension
ksmbd: provide zero as a unique ID to the Mac client
ksmbd: Use unsafe_memcpy() for ntlm_negotiate
ksmbd: remove unsafe_memcpy use in session setup
Nathan Chancellor (2):
staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() x86/tools: Drop duplicate unlikely() definition in insn_decoder_test.c
Nikhil Jha (1):
sunrpc: don't immediately retransmit on seqno miss
Olga Kornievskaia (1):
NFSv4.2: fix listxattr to return selinux security label
Oliver Schramm (1):
ASoC: amd: yc: Add DMI quirk for Lenovo IdeaPad Slim 5 15
Pali Rohár (3):
cifs: Correctly set SMB1 SessionKey field in Session Setup Request
cifs: Fix cifs_query_path_info() for Windows NT servers
cifs: Fix encoding of SMB1 Session Setup NTLMSSP Request in non-UNICODE mode
Paulo Alcantara (1):
smb: client: fix potential deadlock when reconnecting channels
Peng Fan (2):
mailbox: Not protect module_put with spin_lock_irqsave
ASoC: codec: wcd9335: Convert to GPIO descriptors
Purva Yeshi (1):
iio: adc: ad_sigma_delta: Fix use of uninitialized status_pos
Qasim Ijaz (3):
HID: wacom: fix memory leak on kobject creation failure
HID: wacom: fix memory leak on sysfs attribute creation failure
HID: wacom: fix kobject reference count leak
Qiu-ji Chen (1):
drm/tegra: Fix a possible null pointer dereference
Qu Wenruo (1):
btrfs: handle csum tree error with rescue=ibadroots correctly
Ricardo Ribalda (1):
media: uvcvideo: Rollback non processed entities on error
Robert Hodaszi (1):
usb: cdc-wdm: avoid setting WDM_READ for ZLP-s
Robert Richter (1):
cxl/region: Add a dev_err() on missing target list entries
Rong Zhang (1):
platform/x86: ideapad-laptop: use usleep_range() for EC polling
Salvatore Bonaccorso (1):
ALSA: hda/realtek: Fix built-in mic on ASUS VivoBook X507UAR
Sami Tolvanen (1):
um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h
Saurabh Sengar (2):
Drivers: hv: vmbus: Add utility function for querying ring size
uio_hv_generic: Query the ringbuffer size for device
Scott Mayhew (1):
NFSv4: xattr handlers should check for absent nfs filehandles
SeongJae Park (1):
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
Sergio González Collado (1):
Kunit to check the longest symbol length
Sibi Sankar (1):
firmware: arm_scmi: Ensure that the message-id supports fastchannel
Simon Horman (1):
net: enetc: Correct endianness handling in _enetc_rd_reg64
Stefano Garzarella (1):
vsock/uapi: fix linux/vm_sockets.h userspace compilation errors
Stephan Gerhold (1):
drm/msm/gpu: Fix crash when throttling GPU immediately during boot
Sven Schwermer (1):
leds: multicolor: Fix intensity setting while SW blinking
Thierry Reding (1):
drm/tegra: Assign plane type before registration
Thomas Gessler (1):
dmaengine: xilinx_dma: Set dma_device directions
Thomas Zimmermann (4):
dummycon: Trigger redraw when switching consoles with deferred takeover drm/ast: Fix comment on modeset lock
drm/cirrus-qemu: Fix pitch programming
drm/udl: Unregister device before cleaning up on disconnect
Tiwei Bie (1):
um: ubd: Add missing error check in start_io_thread()
Vasiliy Kovalev (1):
jfs: validate AG parameters in dbMount() to prevent crashes
Vijendar Mukunda (1):
ALSA: hda: Add new pci id for AMD GPU display HD audio controller
Ville Syrjälä (1):
drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1
Wenbin Yao (1):
PCI: dwc: Make link training more robust by setting PORT_LOGIC_LINK_WIDTH to one lane
Wentao Liang (1):
drm/amd/display: Add null pointer check for get_first_active_display()
Wolfram Sang (3):
i2c: tiny-usb: disable zero-length read messages
i2c: robotfuzz-osif: disable zero-length read messages drm/bridge: ti-sn65dsi86: make use of debugfs_init callback
Yao Zi (1):
dt-bindings: serial: 8250: Make clocks and clock-frequency exclusive
Yi Sun (1):
dmaengine: idxd: Check availability of workqueue allocated by idxd wq driver before using
Yifan Zhang (1):
amd/amdkfd: fix a kfd_process ref leak
Youngjun Lee (1):
ALSA: usb-audio: Fix out-of-bounds read in snd_usb_get_audioformat_uac3()
Yu Kuai (2):
md/md-bitmap: fix dm-raid max_write_behind setting lib/group_cpus: fix NULL pointer dereference from group_cpus_evenly()
Yuan Chen (1):
libbpf: Fix null pointer dereference in btf_dump__free on allocation failure
Zhang Zekun (1):
PCI: apple: Use helper function for_each_child_of_node_scoped()
Ziqi Chen (1):
scsi: ufs: core: Don't perform UFS clkscaling during host async scan
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/serial/8250.yaml +1 -1
@@ -45,7 +45,7 @@ allOf: - ns16550 - ns16550a then: - anyOf: + oneOf: - required: [ clock-frequency ] - required: [ clocks ]
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 95 +SUBLEVEL = 96 EXTRAVERSION = NAME = Pinguïn Aangedreven
arch/arm/include/asm/ptrace.h +3 -2
@@ -10,6 +10,7 @@#include <uapi/asm/ptrace.h> #ifndef __ASSEMBLY__ +#include <linux/bitfield.h> #include <linux/types.h> struct pt_regs {
@@ -35,8 +36,8 @@ struct svc_pt_regs {#ifndef CONFIG_CPU_V7M #define isa_mode (regs) \ - ((((regs)->ARM_cpsr & PSR_J_BIT) >> (__ffs(PSR_J_BIT) - 1)) | \ - (((regs)->ARM_cpsr & PSR_T_BIT) >> (__ffs(PSR_T_BIT)))) + (FIELD_GET(PSR_J_BIT, (regs)->ARM_cpsr) << 1 | \ + FIELD_GET(PSR_T_BIT, (regs)->ARM_cpsr))#else #define isa_mode (regs) 1/* Thumb */ #endif
arch/s390/kernel/entry.S +1 -1
@@ -639,7 +639,7 @@ SYM_CODE_START(stack_overflow) stmg %r0,%r7,__PT_R0(%r11) stmg %r8,%r9,__PT_PSW(%r11) mvc __PT_R8(64,%r11),0(%r14) - stg %r10,__PT_ORIG_GPR2(%r11) # store last break to orig_gpr2 + mvc __PT_ORIG_GPR2(8,%r11),__LC_PGM_LAST_BREAK xc __SF_BACKCHAIN(8,%r15),__SF_BACKCHAIN(%r15) lgr %r2,%r11 # pass pointer to pt_regs jg kernel_stack_overflow
arch/um/drivers/ubd_user.c +1 -1
@@ -41,7 +41,7 @@ int start_io_thread(unsigned long sp, int *fd_out) *fd_out = fds[1 ]; err =os_set_fd_block (*fd_out,0 ); - err =os_set_fd_block (kernel_fd,0 ); + err |=os_set_fd_block (kernel_fd,0 );if (err) {printk ("start_io_thread - failed to set nonblocking I/O.\n" ); goto out_close;
arch/um/include/asm/asm-prototypes.h +5 -0
@@ -1 +1,6 @@#include <asm-generic/asm-prototypes.h> +#include <asm/checksum.h> + +#ifdef CONFIG_UML_X86 +extern void cmpxchg8b_emu (void ); +#endif
arch/um/kernel/trap.c +117 -12
144 lines not on this page · raw message
arch/x86/tools/insn_decoder_test.c +2 -3
@@ -10,8 +10,7 @@#include <assert.h> #include <unistd.h> #include <stdarg.h> - -#define unlikely (cond) (cond) +#include <linux/kallsyms.h> #include <asm/insn.h> #include <inat.c>
@@ -106,7 +105,7 @@ static void parse_args(int argc, char **argv) } } -#define BUFSIZE 256 +#define BUFSIZE (256 + KSYM_NAME_LEN)int main (int argc,char **argv) {
arch/x86/um/asm/checksum.h +3 -0
@@ -20,6 +20,9 @@*/ extern __wsum csum_partial (const void *buff,int len,__wsum sum); +/* Do not call this directly. Declared for export type visibility. */ +extern __visible __wsum csum_partial_copy_generic(const void *src, void *dst, int len); +/** * csum_fold - Fold and invert a 32bit checksum. * sum: 32bit unfolded sum
drivers/cxl/core/region.c +7 -0
@@ -1653,6 +1653,13 @@ static int find_pos_and_ways(struct cxl_port *port, struct range *range, }put_device (dev); +if (rc) +dev_err (port->uport_dev, +"failed to find %s:%s in target list of %s\n" , +dev_name (&port->dev), +dev_name (port->parent_dport->dport_dev), +dev_name (&cxlsd->cxld.dev)); +return rc; }
drivers/dma/idxd/cdev.c +3 -1
@@ -354,7 +354,9 @@ static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid)set_bit (h, evl->bmap); h = (h +1 ) % size; } -drain_workqueue (wq->wq); +if (wq->wq) +drain_workqueue (wq->wq); +mutex_unlock (&evl->lock); }
drivers/dma/xilinx/xilinx_dma.c +2 -0
@@ -2900,6 +2900,8 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,return -EINVAL ; } + xdev->common.directions |= chan->direction; +/* Request the interrupt */ chan->irq =of_irq_get (node, chan->tdest);if (chan->irq <0 )
drivers/edac/amd64_edac.c +36 -21
104 lines not on this page · raw message
drivers/firmware/arm_scmi/driver.c +44 -0
68 lines not on this page · raw message
drivers/firmware/arm_scmi/protocols.h +6 -0
@@ -29,6 +29,8 @@#define PROTOCOL_REV_MAJOR (x) ((u16)(FIELD_GET(PROTOCOL_REV_MAJOR_MASK, (x))))#define PROTOCOL_REV_MINOR (x) ((u16)(FIELD_GET(PROTOCOL_REV_MINOR_MASK, (x)))) +#define MSG_SUPPORTS_FASTCHANNEL (x) ((x) & BIT(0)) +enum scmi_common_cmd {PROTOCOL_VERSION =0x0 ,PROTOCOL_ATTRIBUTES =0x1 ,
@@ -250,6 +252,8 @@ struct scmi_fc_info {* provided in @ops. * @iter_response_run: A common helper to trigger the run of a previously * initialized iterator. +* @protocol_msg_check: A common helper to check is a specific protocol message +* is supported. * @fastchannel_init: A common helper used to initialize FC descriptors by * gathering FC descriptions from the SCMI platform server. * @fastchannel_db_ring: A common helper to ring a FC doorbell.
@@ -262,6 +266,8 @@ struct scmi_proto_helpers_ops { unsigned int max_resources, u8 msg_id, size_t tx_size, void *priv);int (*iter_response_run)(void *iter); +int (*protocol_msg_check)(const struct scmi_protocol_handle *ph, +u32 message_id,u32 *attributes); void (*fastchannel_init)(const struct scmi_protocol_handle *ph, u8 describe_id, u32 message_id, u32 valid_size, u32 domain,
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +1 -1
@@ -1890,7 +1890,7 @@ static void amdgpu_ib_preempt_mark_partial_job(struct amdgpu_ring *ring)continue ; } job =to_amdgpu_job (s_job); -if (preempted && (&job->hw_fence) == fence) +if (preempted && (&job->hw_fence.base) == fence)/* mark the job as preempted */ job->preemption_status |=AMDGPU_IB_PREEMPTED ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -5367,7 +5367,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,* * job->base holds a reference to parent fence */ -if (job &&dma_fence_is_signaled (&job->hw_fence)) { +if (job &&dma_fence_is_signaled (&job->hw_fence.base)) { job_signaled = true;dev_info (adev->dev,"Guilty job already signaled, skipping HW reset" ); goto skip_hw_reset;
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +7 -23
@@ -41,22 +41,6 @@#include "amdgpu_trace.h" #include "amdgpu_reset.h" -/* -* Fences mark an event in the GPUs pipeline and are used -* for GPU/CPU synchronization. When the fence is written, -* it is expected that all buffers associated with that fence -* are no longer in use by the associated ring on the GPU and -* that the relevant GPU caches have been flushed. -*/ - -struct amdgpu_fence { -struct dma_fence base; - -/* RB, DMA, etc. */ -struct amdgpu_ring *ring; -ktime_t start_timestamp; -}; -static struct kmem_cache *amdgpu_fence_slab;int amdgpu_fence_slab_init (void )
@@ -153,12 +137,12 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f, struct amd am_fence =kmem_cache_alloc (amdgpu_fence_slab,GFP_ATOMIC );if (am_fence ==NULL )return -ENOMEM ; - fence = &am_fence->base; - am_fence->ring = ring; }else {/* take use of job-embedded fence */ - fence = &job->hw_fence; + am_fence = &job->hw_fence; } + fence = &am_fence->base; + am_fence->ring = ring; seq = ++ring->fence_drv.sync_seq;if (job && job->job_run_counter) {
@@ -719,7 +703,7 @@ void amdgpu_fence_driver_clear_job_fences(struct amdgpu_ring *ring)* it right here or we won't be able to track them in fence_drv * and they will remain unsignaled during sa_bo free. */ - job = container_of(old, struct amdgpu_job, hw_fence); + job = container_of(old, struct amdgpu_job, hw_fence.base);if (!job->base.s_fence && !dma_fence_is_signaled (old))dma_fence_signal (old);RCU_INIT_POINTER (*ptr,NULL );
@@ -781,7 +765,7 @@ static const char *amdgpu_fence_get_timeline_name(struct dma_fence *f)static const char *amdgpu_job_fence_get_timeline_name (struct dma_fence *f) { - struct amdgpu_job *job = container_of(f, struct amdgpu_job, hw_fence); + struct amdgpu_job *job = container_of(f, struct amdgpu_job, hw_fence.base);return (const char *)to_amdgpu_ring (job->base.sched)->name; }
@@ -811,7 +795,7 @@ static bool amdgpu_fence_enable_signaling(struct dma_fence *f)*/ static bool amdgpu_job_fence_enable_signaling (struct dma_fence *f) { - struct amdgpu_job *job = container_of(f, struct amdgpu_job, hw_fence); + struct amdgpu_job *job = container_of(f, struct amdgpu_job, hw_fence.base);if (!timer_pending (&to_amdgpu_ring (job->base.sched)->fence_drv.fallback_timer))amdgpu_fence_schedule_fallback (to_amdgpu_ring (job->base.sched));
@@ -846,7 +830,7 @@ static void amdgpu_job_fence_free(struct rcu_head *rcu) struct dma_fence *f = container_of(rcu, struct dma_fence, rcu);/* free job if fence has a parent job */ -kfree (container_of(f ,struct amdgpu_job ,hw_fence )); + kfree(container_of(f, struct amdgpu_job, hw_fence.base)); }/**
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +6 -6
@@ -165,8 +165,8 @@ void amdgpu_job_free_resources(struct amdgpu_job *job)/* Check if any fences where initialized */ if (job->base.s_fence && job->base.s_fence->finished.ops) f = &job->base.s_fence->finished; -else if (job->hw_fence.ops) - f = &job->hw_fence; +else if (job->hw_fence.base.ops) + f = &job->hw_fence.base;else f =NULL ;
@@ -183,10 +183,10 @@ static void amdgpu_job_free_cb(struct drm_sched_job *s_job)amdgpu_sync_free (&job->explicit_sync);/* only put the hw fence if has embedded fence */ -if (!job->hw_fence.ops) +if (!job->hw_fence.base.ops)kfree (job);else -dma_fence_put (&job->hw_fence); +dma_fence_put (&job->hw_fence.base); } void amdgpu_job_set_gang_leader(struct amdgpu_job *job,
@@ -215,10 +215,10 @@ void amdgpu_job_free(struct amdgpu_job *job)if (job->gang_submit != &job->base.s_fence->scheduled)dma_fence_put (job->gang_submit); -if (!job->hw_fence.ops) +if (!job->hw_fence.base.ops)kfree (job);else -dma_fence_put (&job->hw_fence); +dma_fence_put (&job->hw_fence.base); }struct dma_fence *amdgpu_job_submit (struct amdgpu_job *job)
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h +1 -1
@@ -48,7 +48,7 @@ struct amdgpu_job {struct drm_sched_job base;struct amdgpu_vm *vm;struct amdgpu_sync explicit_sync; -struct dma_fence hw_fence; +struct amdgpu_fence hw_fence;struct dma_fence *gang_submit;uint32_t preamble_status;uint32_t preemption_status;
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +16 -0
@@ -123,6 +123,22 @@ struct amdgpu_fence_driver {struct dma_fence **fences; }; +/* +* Fences mark an event in the GPUs pipeline and are used +* for GPU/CPU synchronization. When the fence is written, +* it is expected that all buffers associated with that fence +* are no longer in use by the associated ring on the GPU and +* that the relevant GPU caches have been flushed. +*/ + +struct amdgpu_fence { +struct dma_fence base; + +/* RB, DMA, etc. */ +struct amdgpu_ring *ring; +ktime_t start_timestamp; +}; +extern const struct drm_sched_backend_ops amdgpu_sched_ops;void amdgpu_fence_driver_clear_job_fences (struct amdgpu_ring *ring);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +17 -0
@@ -28,6 +28,10 @@#include "amdgpu.h" #include "amdgpu_ucode.h" +static const struct kicker_device kicker_device_list[] = { + {0x744B ,0x00 }, +}; +static void amdgpu_ucode_print_common_hdr (const struct common_firmware_header *hdr) {DRM_DEBUG ("size_bytes: %u\n" ,le32_to_cpu (hdr->size_bytes));
@@ -1268,6 +1272,19 @@ static const char *amdgpu_ucode_legacy_naming(struct amdgpu_device *adev, int blreturn NULL ; } +bool amdgpu_is_kicker_fw (struct amdgpu_device *adev) +{ +int i; + +for (i =0 ; i <ARRAY_SIZE (kicker_device_list); i++) { +if (adev->pdev->device == kicker_device_list[i].device && + adev->pdev->revision == kicker_device_list[i].revision) +return true; + } + +return false; +} +void amdgpu_ucode_ip_version_decode (struct amdgpu_device *adev,int block_type,char *ucode_prefix,int len) {int maj, min, rev;
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h +6 -0
@@ -536,6 +536,11 @@ struct amdgpu_firmware {uint64_t fw_buf_mc; }; +struct kicker_device { +unsigned short device; +u8 revision; +}; +void amdgpu_ucode_print_mc_hdr (const struct common_firmware_header *hdr);void amdgpu_ucode_print_smc_hdr (const struct common_firmware_header *hdr);void amdgpu_ucode_print_imu_hdr (const struct common_firmware_header *hdr);
@@ -562,5 +567,6 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type);const char *amdgpu_ucode_name (enum AMDGPU_UCODE_ID ucode_id);void amdgpu_ucode_ip_version_decode (struct amdgpu_device *adev,int block_type,char *ucode_prefix,int len); +bool amdgpu_is_kicker_fw (struct amdgpu_device *adev);#endif
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c +1 -1
@@ -435,7 +435,7 @@ static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man,int r; lpfn = (u64 )place->lpfn <<PAGE_SHIFT ; -if (!lpfn) +if (!lpfn || lpfn > man->size) lpfn = man->size; fpfn = (u64 )place->fpfn <<PAGE_SHIFT ;
drivers/gpu/drm/amd/amdkfd/kfd_events.c +1 -0
@@ -1287,6 +1287,7 @@ void kfd_signal_poison_consumed_event(struct kfd_node *dev, u32 pasid) user_gpu_id =kfd_process_get_user_gpu_id (p, dev->id);if (unlikely (user_gpu_id == -EINVAL )) {WARN_ONCE (1 ,"Could not get user_gpu_id from dev->id:%x\n" , dev->id); +kfd_unref_process (p);return ; }
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c +1 -1
@@ -225,7 +225,7 @@ static int pm_map_queues_v9(struct packet_manager *pm, uint32_t *buffer, packet->bitfields2.engine_sel = engine_sel__mes_map_queues__compute_vi; - packet->bitfields2.gws_control_queue = q->gws ?1 :0 ; + packet->bitfields2.gws_control_queue = q->properties.is_gws ?1 :0 ; packet->bitfields2.extended_engine_sel = extended_engine_sel__mes_map_queues__legacy_engine_sel; packet->bitfields2.queue_type =
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c +3 -0
@@ -368,6 +368,9 @@ enum mod_hdcp_status mod_hdcp_hdcp1_enable_encryption(struct mod_hdcp *hdcp)struct mod_hdcp_display *display =get_first_active_display (hdcp);enum mod_hdcp_status status =MOD_HDCP_STATUS_SUCCESS ; +if (!display) +return MOD_HDCP_STATUS_DISPLAY_NOT_FOUND ; +mutex_lock (&psp->hdcp_context.mutex); hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf;memset (hdcp_cmd,0 ,sizeof (struct ta_hdcp_shared_memory ));
drivers/gpu/drm/ast/ast_mode.c +3 -3
@@ -1868,9 +1868,9 @@ static void ast_mode_config_helper_atomic_commit_tail(struct drm_atomic_state *s/* * Concurrent operations could possibly trigger a call to -* drm_connector_helper_funcs.get_modes by trying to read the -* display modes. Protect access to I/O registers by acquiring -* the I/O-register lock. Released in atomic_flush(). +* drm_connector_helper_funcs.get_modes by reading the display +* modes. Protect access to registers by acquiring the modeset +* lock. */ mutex_lock (&ast->ioregs_lock);drm_atomic_helper_commit_tail_rpm (state);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +26 -6
@@ -568,15 +568,18 @@ static int cdns_dsi_check_conf(struct cdns_dsi *dsi,struct phy_configure_opts_mipi_dphy *phy_cfg = &output->phy_opts.mipi_dphy;unsigned long dsi_hss_hsa_hse_hbp;unsigned int nlanes = output->dev->lanes; +int mode_clock = (mode_valid_check ? mode->clock : mode->crtc_clock);int ret; ret =cdns_dsi_mode2cfg (dsi, mode, dsi_cfg, mode_valid_check);if (ret)return ret; -phy_mipi_dphy_get_default_config (mode->crtc_clock *1000 , -mipi_dsi_pixel_format_to_bpp (output->dev->format), - nlanes, phy_cfg); + ret =phy_mipi_dphy_get_default_config (mode_clock *1000 , +mipi_dsi_pixel_format_to_bpp (output->dev->format), + nlanes, phy_cfg); +if (ret) +return ret; ret =cdns_dsi_adjust_phy_config (dsi, dsi_cfg, phy_cfg, mode, mode_valid_check);if (ret)
@@ -680,6 +683,11 @@ static void cdns_dsi_bridge_post_disable(struct drm_bridge *bridge)struct cdns_dsi_input *input =bridge_to_cdns_dsi_input (bridge);struct cdns_dsi *dsi =input_to_dsi (input); + dsi->phy_initialized = false; + dsi->link_initialized = false; +phy_power_off (dsi->dphy); +phy_exit (dsi->dphy); +pm_runtime_put (dsi->base.dev); }
@@ -761,7 +769,7 @@ static void cdns_dsi_bridge_enable(struct drm_bridge *bridge)struct phy_configure_opts_mipi_dphy *phy_cfg = &output->phy_opts.mipi_dphy;unsigned long tx_byte_period;struct cdns_dsi_cfg dsi_cfg; -u32 tmp, reg_wakeup, div; +u32 tmp, reg_wakeup, div, status;int nlanes;if (WARN_ON (pm_runtime_get_sync (dsi->base.dev) <0 ))
@@ -778,6 +786,19 @@ static void cdns_dsi_bridge_enable(struct drm_bridge *bridge)cdns_dsi_hs_init (dsi);cdns_dsi_init_link (dsi); +/* +* Now that the DSI Link and DSI Phy are initialized, +* wait for the CLK and Data Lanes to be ready. +*/ + tmp =CLK_LANE_RDY ; +for (int i =0 ; i < nlanes; i++) + tmp |=DATA_LANE_RDY (i); + +if (readl_poll_timeout (dsi->regs +MCTL_MAIN_STS , status, + (tmp == (status & tmp)),100 ,500000 )) +dev_err (dsi->base.dev, +"Timed Out: DSI-DPhy Clock and Data Lanes not ready.\n" ); +writel (HBP_LEN (dsi_cfg.hbp) |HSA_LEN (dsi_cfg.hsa), dsi->regs +VID_HSIZE1 ); writel(HFP_LEN(dsi_cfg.hfp) | HACT_LEN(dsi_cfg.hact),
@@ -952,7 +973,7 @@ static int cdns_dsi_attach(struct mipi_dsi_host *host, bridge =drm_panel_bridge_add_typed (panel,DRM_MODE_CONNECTOR_DSI ); }else { - bridge =of_drm_find_bridge (dev->dev.of_node); + bridge =of_drm_find_bridge (np);if (!bridge) bridge =ERR_PTR (-EINVAL ); }
@@ -1152,7 +1173,6 @@ static int __maybe_unused cdns_dsi_suspend(struct device *dev)clk_disable_unprepare (dsi->dsi_sys_clk);clk_disable_unprepare (dsi->dsi_p_clk);reset_control_assert (dsi->dsi_p_rst); - dsi->link_initialized = false;return 0 ; }
drivers/gpu/drm/bridge/ti-sn65dsi86.c +70 -39
155 lines not on this page · raw message
drivers/gpu/drm/etnaviv/etnaviv_sched.c +4 -1
@@ -34,6 +34,7 @@ static enum drm_gpu_sched_stat etnaviv_sched_timedout_job(struct drm_sched_job *sched_job) {struct etnaviv_gem_submit *submit =to_etnaviv_submit (sched_job); +struct drm_gpu_scheduler *sched = sched_job->sched;struct etnaviv_gpu *gpu = submit->gpu;u32 dma_addr;int change;
@@ -76,7 +77,9 @@ static enum drm_gpu_sched_stat etnaviv_sched_timedout_job(struct drm_sched_jobreturn DRM_GPU_SCHED_STAT_NOMINAL ; out_no_timeout: -list_add (&sched_job->list, &sched_job->sched->pending_list); +spin_lock (&sched->job_list_lock); +list_add (&sched_job->list, &sched->pending_list); +spin_unlock (&sched->job_list_lock);return DRM_GPU_SCHED_STAT_NOMINAL ; }
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1 -1
@@ -2013,7 +2013,7 @@ static int eb_capture_stage(struct i915_execbuffer *eb)continue ;if (i915_gem_context_is_recoverable (eb->gem_context) && - (IS_DGFX (eb->i915) ||GRAPHICS_VER_FULL (eb->i915) >IP_VER (12 ,0 ))) +GRAPHICS_VER_FULL (eb->i915) >IP_VER (12 ,10 ))return -EINVAL ;for_each_batch_create_order (eb, j) {
drivers/gpu/drm/i915/i915_pmu.c +1 -1
@@ -101,7 +101,7 @@ static unsigned int config_bit(const u64 config)return other_bit (config); } -static u32 config_mask (const u64 config) +static __always_inline u32 config_mask(const u64 config) {unsigned int bit =config_bit (config);
drivers/gpu/drm/msm/msm_gpu_devfreq.c +1 -0
@@ -156,6 +156,7 @@ void msm_devfreq_init(struct msm_gpu *gpu) priv->gpu_devfreq_config.downdifferential =10 ;mutex_init (&df->lock); + df->suspended = true; ret =dev_pm_qos_add_request (&gpu->pdev->dev, &df->boost_freq,DEV_PM_QOS_MIN_FREQUENCY ,0 );
drivers/gpu/drm/scheduler/sched_entity.c +1 -0
@@ -167,6 +167,7 @@ static void drm_sched_entity_kill_jobs_work(struct work_struct *wrk) {struct drm_sched_job *job =container_of (wrk,typeof (*job), work); +drm_sched_fence_scheduled (job->s_fence,NULL );drm_sched_fence_finished (job->s_fence, -ESRCH );WARN_ON (job->s_fence->parent); job->sched->ops->free_job (job);
drivers/gpu/drm/tegra/dc.c +12 -5
@@ -1320,10 +1320,16 @@ static struct drm_plane *tegra_dc_add_shared_planes(struct drm_device *drm,if (wgrp->dc == dc->pipe) {for (j =0 ; j < wgrp->num_windows; j++) {unsigned int index = wgrp->windows[j]; +enum drm_plane_type type; + +if (primary) + type =DRM_PLANE_TYPE_OVERLAY ; +else + type =DRM_PLANE_TYPE_PRIMARY ; plane =tegra_shared_plane_create (drm, dc, wgrp->index, - index); + index, type);if (IS_ERR (plane))return plane;
@@ -1331,10 +1337,8 @@ static struct drm_plane *tegra_dc_add_shared_planes(struct drm_device *drm,* Choose the first shared plane owned by this * head as the primary plane. */ -if (!primary) { - plane->type =DRM_PLANE_TYPE_PRIMARY ; +if (!primary) primary = plane; - } } } }
@@ -1388,7 +1392,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)if (crtc->state)tegra_crtc_atomic_destroy_state (crtc, crtc->state); -__drm_atomic_helper_crtc_reset (crtc, &state->base); +if (state) +__drm_atomic_helper_crtc_reset (crtc, &state->base); +else +__drm_atomic_helper_crtc_reset (crtc,NULL ); } static struct drm_crtc_state *
drivers/gpu/drm/tegra/hub.c +2 -2
@@ -756,9 +756,9 @@ static const struct drm_plane_helper_funcs tegra_shared_plane_helper_funcs = {struct drm_plane *tegra_shared_plane_create (struct drm_device *drm,struct tegra_dc *dc,unsigned int wgrp, -unsigned int index) +unsigned int index, +enum drm_plane_type type) { -enum drm_plane_type type =DRM_PLANE_TYPE_OVERLAY ;struct tegra_drm *tegra = drm->dev_private;struct tegra_display_hub *hub = tegra->hub;struct tegra_shared_plane *plane;
drivers/gpu/drm/tegra/hub.h +2 -1
@@ -80,7 +80,8 @@ void tegra_display_hub_cleanup(struct tegra_display_hub *hub);struct drm_plane *tegra_shared_plane_create (struct drm_device *drm,struct tegra_dc *dc,unsigned int wgrp, -unsigned int index); +unsigned int index, +enum drm_plane_type type);int tegra_display_hub_atomic_check (struct drm_device *drm,struct drm_atomic_state *state);
drivers/gpu/drm/tiny/cirrus.c +0 -1
@@ -318,7 +318,6 @@ static void cirrus_pitch_set(struct cirrus_device *cirrus, unsigned int pitch)/* Enable extended blanking and pitch bits, and enable full memory */ cr1b =0x22 ; cr1b |= (pitch >>7 ) &0x10 ; - cr1b |= (pitch >>6 ) &0x40 ;wreg_crt (cirrus,0x1b , cr1b);cirrus_set_start_address (cirrus,0 );
drivers/gpu/drm/udl/udl_drv.c +1 -1
@@ -126,9 +126,9 @@ static void udl_usb_disconnect(struct usb_interface *interface) {struct drm_device *dev =usb_get_intfdata (interface); +drm_dev_unplug (dev);drm_kms_helper_poll_fini (dev);udl_drop_usb (dev); -drm_dev_unplug (dev); }/*
drivers/hid/hid-lenovo.c +7 -4
@@ -529,11 +529,14 @@ static void lenovo_features_set_cptkbd(struct hid_device *hdev)/* * Tell the keyboard a driver understands it, and turn F7, F9, F11 into -* regular keys +* regular keys (Compact only) */ - ret =lenovo_send_cmd_cptkbd (hdev,0x01 ,0x03 ); -if (ret) -hid_warn (hdev,"Failed to switch F7/9/11 mode: %d\n" , ret); +if (hdev->product ==USB_DEVICE_ID_LENOVO_CUSBKBD || + hdev->product ==USB_DEVICE_ID_LENOVO_CBTKBD ) { + ret =lenovo_send_cmd_cptkbd (hdev,0x01 ,0x03 ); +if (ret) +hid_warn (hdev,"Failed to switch F7/9/11 mode: %d\n" , ret); + }/* Switch middle button to native mode */ ret =lenovo_send_cmd_cptkbd (hdev,0x09 ,0x01 );
drivers/hid/wacom_sys.c +5 -1
@@ -2012,14 +2012,18 @@ static int wacom_initialize_remotes(struct wacom *wacom) remote->remote_dir =kobject_create_and_add ("wacom_remote" , &wacom->hdev->dev.kobj); -if (!remote->remote_dir) +if (!remote->remote_dir) { +kfifo_free (&remote->remote_fifo);return -ENOMEM ; + } error =sysfs_create_files (remote->remote_dir, remote_unpair_attrs);if (error) {hid_err (wacom->hdev,"cannot create sysfs group err: %d\n" , error); +kfifo_free (&remote->remote_fifo); +kobject_put (remote->remote_dir);return error; }
drivers/hv/channel_mgmt.c +12 -3
@@ -120,7 +120,9 @@ const struct vmbus_device vmbus_devs[] = { },/* File copy */ - { .dev_type = HV_FCOPY, +/* fcopy always uses 16KB ring buffer size and is working well for last many years */ + { .pref_ring_size = 0x4000, + .dev_type =HV_FCOPY ,HV_FCOPY_GUID , .perf_device = false, .allowed_in_isolated = false,
@@ -140,12 +142,19 @@ const struct vmbus_device vmbus_devs[] = { .allowed_in_isolated = false, }, -/* Unknown GUID */ - { .dev_type = HV_UNKNOWN, +/* +* Unknown GUID +* 64 KB ring buffer + 4 KB header should be sufficient size for any Hyper-V device apart +* from HV_NIC and HV_SCSI. This case avoid the fallback for unknown devices to allocate +* much bigger (2 MB) of ring size. +*/ + { .pref_ring_size = 0x11000, + .dev_type = HV_UNKNOWN, .perf_device = false, .allowed_in_isolated = false, }, }; +EXPORT_SYMBOL_GPL (vmbus_devs); static const struct { guid_t guid;
drivers/hv/hyperv_vmbus.h +5 -0
@@ -419,6 +419,11 @@ static inline bool hv_is_perf_channel(struct vmbus_channel *channel)return vmbus_devs[channel->device_id].perf_device; } +static inline size_t hv_dev_ring_size (struct vmbus_channel *channel) +{ +return vmbus_devs[channel->device_id].pref_ring_size; +} +static inline bool hv_is_allocated_cpu (unsigned int cpu) {struct vmbus_channel *channel, *sc;
drivers/hwmon/pmbus/max34440.c +44 -4
110 lines not on this page · raw message
drivers/hwtracing/coresight/coresight-core.c +2 -1
@@ -135,7 +135,8 @@ coresight_find_out_connection(struct coresight_device *src_dev,static inline u32 coresight_read_claim_tags (struct coresight_device *csdev) { -return csdev_access_relaxed_read32 (&csdev->access,CORESIGHT_CLAIMCLR ); +return FIELD_GET (CORESIGHT_CLAIM_MASK , +csdev_access_relaxed_read32 (&csdev->access,CORESIGHT_CLAIMCLR )); }static inline bool coresight_is_claimed_self_hosted (struct coresight_device *csdev)
drivers/hwtracing/coresight/coresight-priv.h +1 -0
@@ -32,6 +32,7 @@* Coresight device CLAIM protocol. * See PSCI - ARM DEN 0022D, Section: 6.8.1 Debug and Trace save and restore. */ +#define CORESIGHT_CLAIM_MASK GENMASK(1, 0)#define CORESIGHT_CLAIM_SELF_HOSTED BIT(1)#define TIMEOUT_US 100
drivers/i2c/busses/i2c-robotfuzz-osif.c +6 -0
@@ -111,6 +111,11 @@ static u32 osif_func(struct i2c_adapter *adapter)return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL ; } +/* prevent invalid 0-length usb_control_msg */ +static const struct i2c_adapter_quirks osif_quirks = { + .flags =I2C_AQ_NO_ZERO_LEN_READ , +}; +static const struct i2c_algorithm osif_algorithm = { .master_xfer = osif_xfer, .functionality = osif_func,
@@ -143,6 +148,7 @@ static int osif_probe(struct usb_interface *interface, priv->adapter.owner =THIS_MODULE ; priv->adapter.class =I2C_CLASS_HWMON ; + priv->adapter.quirks = &osif_quirks; priv->adapter.algo = &osif_algorithm; priv->adapter.algo_data = priv; snprintf(priv->adapter.name, sizeof(priv->adapter.name),
drivers/i2c/busses/i2c-tiny-usb.c +6 -0
@@ -140,6 +140,11 @@ static u32 usb_func(struct i2c_adapter *adapter)return ret; } +/* prevent invalid 0-length usb_control_msg */ +static const struct i2c_adapter_quirks usb_quirks = { + .flags =I2C_AQ_NO_ZERO_LEN_READ , +}; +/* This is the actual algorithm we define */ static const struct i2c_algorithm usb_algorithm = { .master_xfer = usb_xfer,
@@ -248,6 +253,7 @@ static int i2c_tiny_usb_probe(struct usb_interface *interface,/* setup i2c adapter description */ dev->adapter.owner =THIS_MODULE ; dev->adapter.class =I2C_CLASS_HWMON ; + dev->adapter.quirks = &usb_quirks; dev->adapter.algo = &usb_algorithm; dev->adapter.algo_data = dev; snprintf(dev->adapter.name, sizeof(dev->adapter.name),
drivers/iio/adc/ad_sigma_delta.c +4 -0
@@ -476,6 +476,10 @@ static irqreturn_t ad_sd_trigger_handler(int irq, void *p)* byte set to zero. */ ad_sd_read_reg_raw (sigma_delta, data_reg, transfer_size, &data[1 ]);break ; + +default : +dev_err_ratelimited (&indio_dev->dev,"Unsupported reg_size: %u\n" , reg_size); + goto irq_handled; }/*
drivers/iio/pressure/zpa2326.c +1 -1
@@ -582,7 +582,7 @@ static int zpa2326_fill_sample_buffer(struct iio_dev *indio_dev,struct {u32 pressure;u16 temperature; -u64 timestamp; +aligned_s64 timestamp; } sample;int err;
drivers/leds/led-class-multicolor.c +2 -1
@@ -61,7 +61,8 @@ static ssize_t multi_intensity_store(struct device *dev,for (i =0 ; i < mcled_cdev->num_colors; i++) mcled_cdev->subled_info[i].intensity = intensity_value[i]; -led_set_brightness (led_cdev, led_cdev->brightness); +if (!test_bit (LED_BLINK_SW , &led_cdev->work_flags)) +led_set_brightness (led_cdev, led_cdev->brightness); ret = size; err_out:mutex_unlock (&led_cdev->led_access);
drivers/mailbox/mailbox.c +1 -1
@@ -500,8 +500,8 @@ void mbox_free_channel(struct mbox_chan *chan)if (chan->txdone_method ==TXDONE_BY_ACK ) chan->txdone_method =TXDONE_BY_POLL ; -module_put (chan->mbox->dev->driver->owner);spin_unlock_irqrestore (&chan->lock, flags); +module_put (chan->mbox->dev->driver->owner); }EXPORT_SYMBOL_GPL (mbox_free_channel);
drivers/md/bcache/super.c +6 -1
@@ -1739,7 +1739,12 @@ static void cache_set_flush(struct closure *cl)mutex_unlock (&b->write_lock); } -if (ca->alloc_thread) +/* +* If the register_cache_set() call to bch_cache_set_alloc() failed, +* ca has not been assigned a value and return error. +* So we need check ca is not NULL during bch_cache_set_unregister(). +*/ +if (ca && ca->alloc_thread)kthread_stop (ca->alloc_thread);if (c->journal.cur) {
drivers/md/dm-raid.c +1 -1
@@ -2378,7 +2378,7 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)*/ sb_retrieve_failed_devices (sb, failed_devices);rdev_for_each (r, mddev) { -if (test_bit (Journal, &rdev->flags) || +if (test_bit (Journal, &r->flags) || !r->sb_page)continue ; sb2 =page_address (r->sb_page);
drivers/md/md-bitmap.c +1 -1
@@ -589,7 +589,7 @@ static int md_bitmap_new_disk_sb(struct bitmap *bitmap)* is a good choice? We choose COUNTER_MAX / 2 arbitrarily. */ write_behind = bitmap->mddev->bitmap_info.max_write_behind; -if (write_behind >COUNTER_MAX ) +if (write_behind >COUNTER_MAX /2 ) write_behind =COUNTER_MAX /2 ; sb->write_behind =cpu_to_le32 (write_behind); bitmap->mddev->bitmap_info.max_write_behind = write_behind;
drivers/media/usb/uvc/uvc_ctrl.c +26 -13
@@ -1801,7 +1801,7 @@ static int uvc_ctrl_commit_entity(struct uvc_device *dev,unsigned int processed_ctrls =0 ;struct uvc_control *ctrl;unsigned int i; -int ret; +int ret =0 ;if (entity ==NULL )return 0 ;
@@ -1830,8 +1830,6 @@ static int uvc_ctrl_commit_entity(struct uvc_device *dev, dev->intfnum, ctrl->info.selector,uvc_ctrl_data (ctrl,UVC_CTRL_DATA_CURRENT ), ctrl->info.size); - else - ret =0 ;if (!ret) processed_ctrls++;
@@ -1843,17 +1841,25 @@ static int uvc_ctrl_commit_entity(struct uvc_device *dev, ctrl->dirty =0 ; -if (ret <0 ) { +if (!rollback && handle && + ctrl->info.flags &UVC_CTRL_FLAG_ASYNCHRONOUS ) +uvc_ctrl_set_handle (handle, ctrl, handle); + +if (ret <0 && !rollback) {if (err_ctrl) *err_ctrl = ctrl; -return ret; +/* +* If we fail to set a control, we need to rollback +* the next ones. +*/ + rollback =1 ; } -if (!rollback && handle && - ctrl->info.flags &UVC_CTRL_FLAG_ASYNCHRONOUS ) -uvc_ctrl_set_handle (handle, ctrl, handle); } +if (ret) +return ret; +return processed_ctrls; }
@@ -1884,7 +1890,8 @@ int __uvc_ctrl_commit(struct uvc_fh *handle, int rollback,struct uvc_video_chain *chain = handle->chain;struct uvc_control *err_ctrl;struct uvc_entity *entity; -int ret =0 ; +int ret_out =0 ; +int ret;/* Find the control. */ list_for_each_entry (entity, &chain->entities, chain) {
@@ -1895,17 +1902,23 @@ int __uvc_ctrl_commit(struct uvc_fh *handle, int rollback, ctrls->error_idx =uvc_ctrl_find_ctrl_idx (entity, ctrls, err_ctrl); - goto done; +/* +* When we fail to commit an entity, we need to +* restore the UVC_CTRL_DATA_BACKUP for all the +* controls in the other entities, otherwise our cache +* and the hardware will be out of sync. +*/ + rollback =1 ; + + ret_out = ret; }else if (ret >0 && !rollback) {uvc_ctrl_send_events (handle, entity, ctrls->controls, ctrls->count); } } - ret =0 ; -done:mutex_unlock (&chain->ctrl_mutex); -return ret; +return ret_out; } int uvc_ctrl_get(struct uvc_video_chain *chain,
drivers/mfd/max14577.c +1 -0
@@ -463,6 +463,7 @@ static void max14577_i2c_remove(struct i2c_client *i2c) {struct max14577 *max14577 =i2c_get_clientdata (i2c); +device_init_wakeup (max14577->dev, false);mfd_remove_devices (max14577->dev);regmap_del_irq_chip (max14577->irq, max14577->irq_data);if (max14577->dev_type ==MAXIM_DEVICE_TYPE_MAX77836 )
drivers/misc/tps6594-pfsm.c +3 -0
@@ -260,6 +260,9 @@ static int tps6594_pfsm_probe(struct platform_device *pdev) pfsm->miscdev.minor =MISC_DYNAMIC_MINOR ; pfsm->miscdev.name =devm_kasprintf (dev,GFP_KERNEL ,"pfsm-%ld-0x%02x" , tps->chip_id, tps->reg); +if (!pfsm->miscdev.name) +return -ENOMEM ; + pfsm->miscdev.fops = &tps6594_pfsm_fops; pfsm->miscdev.parent = dev->parent;
drivers/net/ethernet/freescale/enetc/enetc_hw.h +1 -1
@@ -485,7 +485,7 @@ static inline u64 _enetc_rd_reg64(void __iomem *reg) tmp = ioread32(reg + 4); }while (high != tmp); -return le64_to_cpu ((__le64 )high <<32 | low); +return (u64 )high <<32 | low; }#endif
drivers/net/ethernet/wangxun/libwx/wx_lib.c +1 -1
@@ -2368,7 +2368,7 @@ static int wx_alloc_page_pool(struct wx_ring *rx_ring)struct page_pool_params pp_params = { .flags =PP_FLAG_DMA_MAP |PP_FLAG_DMA_SYNC_DEV , .order =0 , - .pool_size = rx_ring->size, + .pool_size = rx_ring->count, .nid =dev_to_node (rx_ring->dev), .dev = rx_ring->dev, .dma_dir =DMA_FROM_DEVICE ,
drivers/nvme/host/ioctl.c +7 -9
@@ -526,16 +526,14 @@ static enum rq_end_io_ret nvme_uring_cmd_end_io(struct request *req, pdu->u.result =le64_to_cpu (nvme_req (req)->result.u64);/* -* For iopoll, complete it directly. -* Otherwise, move the completion to task work. +* IOPOLL could potentially complete this request directly, but +* if multiple rings are polling on the same queue, then it's possible +* for one ring to find completions for another ring. Punting the +* completion via task_work will always direct it to the right +* location, rather than potentially complete requests for ringA +* under iopoll invocations from ringB. */ -if (blk_rq_is_poll (req)) { -WRITE_ONCE (ioucmd->cookie,NULL ); -nvme_uring_task_cb (ioucmd,IO_URING_F_UNLOCKED ); - }else { -io_uring_cmd_do_in_task_lazy (ioucmd, nvme_uring_task_cb); - } - +io_uring_cmd_do_in_task_lazy (ioucmd, nvme_uring_task_cb);return RQ_END_IO_FREE ; }
drivers/pci/controller/dwc/pcie-designware.c +1 -4
@@ -748,22 +748,19 @@ static void dw_pcie_link_set_max_link_width(struct dw_pcie *pci, u32 num_lanes)/* Set link width speed control register */ lwsc =dw_pcie_readl_dbi (pci,PCIE_LINK_WIDTH_SPEED_CONTROL ); lwsc &= ~PORT_LOGIC_LINK_WIDTH_MASK ; + lwsc |=PORT_LOGIC_LINK_WIDTH_1_LANES ;switch (num_lanes) {case 1 : plc |=PORT_LINK_MODE_1_LANES ; - lwsc |=PORT_LOGIC_LINK_WIDTH_1_LANES ;break ;case 2 : plc |=PORT_LINK_MODE_2_LANES ; - lwsc |=PORT_LOGIC_LINK_WIDTH_2_LANES ;break ;case 4 : plc |=PORT_LINK_MODE_4_LANES ; - lwsc |=PORT_LOGIC_LINK_WIDTH_4_LANES ;break ;case 8 : plc |=PORT_LINK_MODE_8_LANES ; - lwsc |=PORT_LOGIC_LINK_WIDTH_8_LANES ;break ;default :dev_err (pci->dev,"num-lanes %u: invalid value\n" , num_lanes);
drivers/pci/controller/pcie-apple.c +4 -3
@@ -585,6 +585,9 @@ static int apple_pcie_setup_port(struct apple_pcie *pcie,list_add_tail (&port->entry, &pcie->ports);init_completion (&pcie->event); +/* In the success path, we keep a reference to np around */ +of_node_get (np); + ret =apple_pcie_port_register_irqs (port);WARN_ON (ret);
@@ -764,7 +767,6 @@ static int apple_pcie_init(struct pci_config_window *cfg) {struct device *dev = cfg->parent;struct platform_device *platform =to_platform_device (dev); -struct device_node *of_port;struct apple_pcie *pcie;int ret;
@@ -787,11 +789,10 @@ static int apple_pcie_init(struct pci_config_window *cfg)if (ret)return ret; -for_each_child_of_node (dev->of_node, of_port) { +for_each_available_child_of_node_scoped (dev->of_node, of_port) { ret =apple_pcie_setup_port (pcie, of_port);if (ret) {dev_err (pcie->dev,"Port %pOF setup fail: %d\n" , of_port, ret); -of_node_put (of_port);return ret; } }
drivers/platform/x86/Kconfig +1 -0
@@ -466,6 +466,7 @@ config LENOVO_YMC tristate "Lenovo Yoga Tablet Mode Control" depends on ACPI_WMI depends on INPUT + depends on IDEAPAD_LAPTOP select INPUT_SPARSEKMAP help This driver maps the Tablet Mode Control switch to SW_TABLET_MODE input
drivers/platform/x86/ideapad-laptop.c +237 -0
309 lines not on this page · raw message
drivers/platform/x86/ideapad-laptop.h +6 -136
150 lines not on this page · raw message
drivers/platform/x86/lenovo-ymc.c +2 -58
105 lines not on this page · raw message
drivers/s390/crypto/pkey_api.c +1 -1
@@ -1333,7 +1333,7 @@ static void *_copy_apqns_from_user(void __user *uapqns, size_t nr_apqns)if (!uapqns || nr_apqns ==0 )return NULL ; -return memdup_user (uapqns, nr_apqns *sizeof (struct pkey_apqn )); +return memdup_array_user (uapqns, nr_apqns,sizeof (struct pkey_apqn )); } static long pkey_unlocked_ioctl(struct file *filp, unsigned int cmd,
drivers/scsi/megaraid/megaraid_sas_base.c +5 -1
@@ -5908,7 +5908,11 @@ megasas_set_high_iops_queue_affinity_and_hint(struct megasas_instance *instance)const struct cpumask *mask;if (instance->perf_mode ==MR_BALANCED_PERF_MODE ) { - mask =cpumask_of_node (dev_to_node (&instance->pdev->dev)); +int nid =dev_to_node (&instance->pdev->dev); + +if (nid ==NUMA_NO_NODE ) + nid =0 ; + mask =cpumask_of_node (nid);for (i =0 ; i < instance->low_latency_index_start; i++) { irq =pci_irq_vector (instance->pdev, i);
drivers/spi/spi-cadence-quadspi.c +10 -1
@@ -1868,6 +1868,13 @@ static int cqspi_probe(struct platform_device *pdev) goto probe_setup_failed; } +pm_runtime_enable (dev); + +if (cqspi->rx_chan) { +dma_release_channel (cqspi->rx_chan); + goto probe_setup_failed; + } + ret =spi_register_controller (host);if (ret) {dev_err (&pdev->dev,"failed to register SPI ctlr %d\n" , ret);
@@ -1877,6 +1884,7 @@ static int cqspi_probe(struct platform_device *pdev)return 0 ; probe_setup_failed:cqspi_controller_enable (cqspi,0 ); +pm_runtime_disable (dev); probe_reset_failed:if (cqspi->is_jh7110)cqspi_jh7110_disable_clk (pdev, cqspi);
@@ -1898,7 +1906,8 @@ static void cqspi_remove(struct platform_device *pdev)if (cqspi->rx_chan)dma_release_channel (cqspi->rx_chan); -clk_disable_unprepare (cqspi->clk); +if (pm_runtime_get_sync (&pdev->dev) >=0 ) +clk_disable (cqspi->clk);if (cqspi->is_jh7110)cqspi_jh7110_disable_clk (pdev, cqspi);
drivers/staging/rtl8723bs/core/rtw_security.c +14 -30
72 lines not on this page · raw message
drivers/tty/serial/imx.c +12 -5
@@ -234,6 +234,7 @@ struct imx_port {enum imx_tx_state tx_state;struct hrtimer trigger_start_tx;struct hrtimer trigger_stop_tx; +unsigned int rxtl; };struct imx_port_ucrs {
@@ -1337,6 +1338,7 @@ static void imx_uart_clear_rx_errors(struct imx_port *sport)#define TXTL_DEFAULT 8#define RXTL_DEFAULT 8/* 8 characters or aging timer */ +#define RXTL_CONSOLE_DEFAULT 1#define TXTL_DMA 8/* DMA burst setting */ #define RXTL_DMA 9/* DMA burst setting */
@@ -1449,7 +1451,7 @@ static void imx_uart_disable_dma(struct imx_port *sport) ucr1 &= ~(UCR1_RXDMAEN |UCR1_TXDMAEN |UCR1_ATDMAEN );imx_uart_writel (sport, ucr1,UCR1 ); -imx_uart_setup_ufcr (sport,TXTL_DEFAULT ,RXTL_DEFAULT ); +imx_uart_setup_ufcr (sport,TXTL_DEFAULT , sport->rxtl); sport->dma_is_enabled =0 ; }
@@ -1474,7 +1476,12 @@ static int imx_uart_startup(struct uart_port *port)return retval; } -imx_uart_setup_ufcr (sport,TXTL_DEFAULT ,RXTL_DEFAULT ); +if (uart_console (&sport->port)) + sport->rxtl =RXTL_CONSOLE_DEFAULT ; +else + sport->rxtl =RXTL_DEFAULT ; + +imx_uart_setup_ufcr (sport,TXTL_DEFAULT , sport->rxtl);/* disable the DREN bit (Data Ready interrupt enable) before * requesting IRQs
@@ -1887,7 +1894,7 @@ static int imx_uart_poll_init(struct uart_port *port)if (retval)clk_disable_unprepare (sport->clk_ipg); -imx_uart_setup_ufcr (sport,TXTL_DEFAULT ,RXTL_DEFAULT ); +imx_uart_setup_ufcr (sport,TXTL_DEFAULT , sport->rxtl);spin_lock_irqsave (&sport->port.lock, flags);
@@ -1979,7 +1986,7 @@ static int imx_uart_rs485_config(struct uart_port *port, struct ktermios *termio/* If the receiver trigger is 0, set it to a default value */ ufcr =imx_uart_readl (sport,UFCR );if ((ufcr &UFCR_RXTL_MASK ) ==0 ) -imx_uart_setup_ufcr (sport,TXTL_DEFAULT ,RXTL_DEFAULT ); +imx_uart_setup_ufcr (sport,TXTL_DEFAULT , sport->rxtl);imx_uart_start_rx (port); }
@@ -2164,7 +2171,7 @@ imx_uart_console_setup(struct console *co, char *options)else imx_uart_console_get_options (sport, &baud, &parity, &bits); -imx_uart_setup_ufcr (sport,TXTL_DEFAULT ,RXTL_DEFAULT ); +imx_uart_setup_ufcr (sport,TXTL_DEFAULT , sport->rxtl); retval =uart_set_options (&sport->port, co, baud, parity, bits, flow);
drivers/tty/serial/uartlite.c +12 -13
@@ -872,16 +872,6 @@ static int ulite_probe(struct platform_device *pdev)pm_runtime_set_active (&pdev->dev);pm_runtime_enable (&pdev->dev); -if (!ulite_uart_driver.state) { -dev_dbg (&pdev->dev,"uartlite: calling uart_register_driver()\n" ); - ret =uart_register_driver (&ulite_uart_driver); -if (ret <0 ) { -dev_err (&pdev->dev,"Failed to register driver\n" ); -clk_disable_unprepare (pdata->clk); -return ret; - } - } - ret =ulite_assign (&pdev->dev, id, res->start, irq, pdata);pm_runtime_mark_last_busy (&pdev->dev);
@@ -922,16 +912,25 @@ static struct platform_driver ulite_platform_driver = {static int __init ulite_init (void ) { +int ret; + +pr_debug ("uartlite: calling uart_register_driver()\n" ); + ret =uart_register_driver (&ulite_uart_driver); +if (ret) +return ret;pr_debug ("uartlite: calling platform_driver_register()\n" ); -return platform_driver_register (&ulite_platform_driver); + ret =platform_driver_register (&ulite_platform_driver); +if (ret) +uart_unregister_driver (&ulite_uart_driver); + +return ret; } static void __exit ulite_exit(void) {platform_driver_unregister (&ulite_platform_driver); -if (ulite_uart_driver.state) -uart_unregister_driver (&ulite_uart_driver); +uart_unregister_driver (&ulite_uart_driver); }module_init (ulite_init);
drivers/tty/vt/vt.c +6 -6
@@ -962,7 +962,7 @@ void redraw_screen(struct vc_data *vc, int is_switch) }if (redraw) { -int update; +bool update;int old_was_color = vc->vc_can_do_color;set_origin (vc);
@@ -999,7 +999,7 @@ int vc_cons_allocated(unsigned int i)return (i <MAX_NR_CONSOLES && vc_cons[i].d); } -static void visual_init (struct vc_data *vc,int num,int init) +static void visual_init (struct vc_data *vc,int num,bool init) {/* ++Geert: vc->vc_sw->con_init determines console size */ if (vc->vc_sw)
@@ -1083,7 +1083,7 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */ vc->port.ops = &vc_port_ops;INIT_WORK (&vc_cons[currcons].SAK_work, vc_SAK); -visual_init (vc, currcons,1 ); +visual_init (vc, currcons, true);if (!*vc->uni_pagedict_loc)con_set_default_unimap (vc);
@@ -1582,7 +1582,7 @@ static void csi_X(struct vc_data *vc, unsigned int vpar)vc_uniscr_clear_line (vc, vc->state.x, count);scr_memsetw ((unsigned short *)vc->vc_pos, vc->vc_video_erase_char,2 * count);if (con_should_update (vc)) - vc->vc_sw->con_clear (vc, vc->state.y, vc->state.x,1 , count); + vc->vc_sw->con_clear (vc, vc->state.y, vc->state.x, count); vc->vc_need_wrap =0 ; }
@@ -3474,7 +3474,7 @@ static int __init con_init(void) vc_cons[currcons].d = vc =kzalloc (sizeof (struct vc_data ),GFP_NOWAIT );INIT_WORK (&vc_cons[currcons].SAK_work, vc_SAK);tty_port_init (&vc->port); -visual_init (vc, currcons,1 ); +visual_init (vc, currcons, true);/* Assuming vc->vc_{cols,rows,screenbuf_size} are sane here. */ vc->vc_screenbuf =kzalloc (vc->vc_screenbuf_size,GFP_NOWAIT );vc_init (vc, currcons || !vc->vc_sw->con_save_screen);
@@ -3642,7 +3642,7 @@ static int do_bind_con_driver(const struct consw *csw, int first, int last, old_was_color = vc->vc_can_do_color; vc->vc_sw->con_deinit (vc); vc->vc_origin = (unsigned long )vc->vc_screenbuf; -visual_init (vc, i,0 ); +visual_init (vc, i, false);set_origin (vc);update_attr (vc);
drivers/ufs/core/ufshcd.c +3 -0
@@ -1284,6 +1284,7 @@ static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba, u64 timeout_us)* make sure that there are no outstanding requests when * clock scaling is in progress */ +mutex_lock (&hba->host->scan_mutex);blk_mq_quiesce_tagset (&hba->host->tag_set);mutex_lock (&hba->wb_mutex);down_write (&hba->clk_scaling_lock);
@@ -1294,6 +1295,7 @@ static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba, u64 timeout_us)up_write (&hba->clk_scaling_lock);mutex_unlock (&hba->wb_mutex);blk_mq_unquiesce_tagset (&hba->host->tag_set); +mutex_unlock (&hba->host->scan_mutex); goto out; }
@@ -1315,6 +1317,7 @@ static void ufshcd_clock_scaling_unprepare(struct ufs_hba *hba, int err, bool scmutex_unlock (&hba->wb_mutex);blk_mq_unquiesce_tagset (&hba->host->tag_set); +mutex_unlock (&hba->host->scan_mutex);ufshcd_release (hba); }
drivers/uio/uio_hv_generic.c +8 -2
@@ -249,6 +249,7 @@ hv_uio_probe(struct hv_device *dev,struct hv_uio_private_data *pdata;void *ring_buffer;int ret; +size_t ring_size =hv_dev_ring_size (channel);/* Communicating with host has to be via shared memory not hypercall */ if (!channel->offermsg.monitor_allocated) {
@@ -256,12 +257,17 @@ hv_uio_probe(struct hv_device *dev,return -ENOTSUPP ; } +if (!ring_size) + ring_size =HV_RING_SIZE *PAGE_SIZE ; + +/* Adjust ring size if necessary to have it page aligned */ + ring_size =VMBUS_RING_SIZE (ring_size); + pdata =devm_kzalloc (&dev->device,sizeof (*pdata),GFP_KERNEL );if (!pdata)return -ENOMEM ; - ret =vmbus_alloc_ring (channel,HV_RING_SIZE *PAGE_SIZE , -HV_RING_SIZE *PAGE_SIZE ); + ret =vmbus_alloc_ring (channel, ring_size, ring_size);if (ret)return ret;
drivers/usb/class/cdc-wdm.c +9 -14
@@ -92,7 +92,6 @@ struct wdm_device {u16 wMaxCommand;u16 wMaxPacketSize;__le16 inum; -int reslength;int length;int read;int count;
@@ -214,6 +213,11 @@ static void wdm_in_callback(struct urb *urb)if (desc->rerr ==0 && status != -EPIPE ) desc->rerr = status; +if (length ==0 ) { +dev_dbg (&desc->intf->dev,"received ZLP\n" ); + goto skip_zlp; + } +if (length + desc->length > desc->wMaxCommand) {/* The buffer would overflow */ set_bit (WDM_OVERFLOW , &desc->flags);
@@ -222,18 +226,18 @@ static void wdm_in_callback(struct urb *urb)if (!test_bit (WDM_OVERFLOW , &desc->flags)) {memmove (desc->ubuf + desc->length, desc->inbuf, length); desc->length += length; - desc->reslength = length; } } skip_error:if (desc->rerr) {/* -* Since there was an error, userspace may decide to not read -* any data after poll'ing. +* If there was a ZLP or an error, userspace may decide to not +* read any data after poll'ing. * We should respond to further attempts from the device to send * data, so that we can get unstuck. */ +skip_zlp:schedule_work (&desc->service_outs_intr); }else {set_bit (WDM_READ , &desc->flags);
@@ -585,15 +589,6 @@ static ssize_t wdm_read goto retry; } -if (!desc->reslength) {/* zero length read */ -dev_dbg (&desc->intf->dev,"zero length - clearing WDM_READ\n" ); -clear_bit (WDM_READ , &desc->flags); - rv =service_outstanding_interrupt (desc); -spin_unlock_irq (&desc->iuspin); -if (rv <0 ) - goto err; - goto retry; - } cntr = desc->length;spin_unlock_irq (&desc->iuspin); }
@@ -1016,7 +1011,7 @@ static void service_interrupt_work(struct work_struct *work)spin_lock_irq (&desc->iuspin);service_outstanding_interrupt (desc); -if (!desc->resp_count) { +if (!desc->resp_count && (desc->length || desc->rerr)) {set_bit (WDM_READ , &desc->flags);wake_up (&desc->wait); }
drivers/usb/common/usb-conn-gpio.c +22 -3
@@ -20,6 +20,9 @@#include <linux/power_supply.h> #include <linux/regulator/consumer.h> #include <linux/usb/role.h> +#include <linux/idr.h> + +static DEFINE_IDA (usb_conn_ida);#define USB_GPIO_DEB_MS 20/* ms */ #define USB_GPIO_DEB_US ((USB_GPIO_DEB_MS) * 1000)/* us */
@@ -29,6 +32,7 @@struct usb_conn_info {struct device *dev; +int conn_id;/* store the IDA-allocated ID */ struct usb_role_switch *role_sw;enum usb_role last_role;struct regulator *vbus;
@@ -160,7 +164,17 @@ static int usb_conn_psy_register(struct usb_conn_info *info) .of_node = dev->of_node, }; - desc->name ="usb-charger" ; + info->conn_id =ida_alloc (&usb_conn_ida,GFP_KERNEL ); +if (info->conn_id <0 ) +return info->conn_id; + + desc->name =devm_kasprintf (dev,GFP_KERNEL ,"usb-charger-%d" , + info->conn_id); +if (!desc->name) { +ida_free (&usb_conn_ida, info->conn_id); +return -ENOMEM ; + } + desc->properties = usb_charger_properties; desc->num_properties =ARRAY_SIZE (usb_charger_properties); desc->get_property = usb_charger_get_property;
@@ -168,8 +182,10 @@ static int usb_conn_psy_register(struct usb_conn_info *info) cfg.drv_data = info; info->charger =devm_power_supply_register (dev, desc, &cfg); -if (IS_ERR (info->charger)) -dev_err (dev,"Unable to register charger\n" ); +if (IS_ERR (info->charger)) { +dev_err (dev,"Unable to register charger %d\n" , info->conn_id); +ida_free (&usb_conn_ida, info->conn_id); + }return PTR_ERR_OR_ZERO (info->charger); }
@@ -277,6 +293,9 @@ static void usb_conn_remove(struct platform_device *pdev)cancel_delayed_work_sync (&info->dw_det); +if (info->charger) +ida_free (&usb_conn_ida, info->conn_id); +if (info->last_role ==USB_ROLE_HOST && info->vbus)regulator_disable (info->vbus);
drivers/usb/core/usb.c +10 -4
@@ -695,15 +695,16 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,device_set_of_node_from_dev (&dev->dev, bus->sysdev);dev_set_name (&dev->dev,"usb%d" , bus->busnum); }else { +int n; +/* match any labeling on the hubs; it's one-based */ if (parent->devpath[0 ] =='0' ) { -snprintf (dev->devpath,sizeof dev->devpath, -"%d" , port1); + n =snprintf (dev->devpath,sizeof (dev->devpath),"%d" , port1);/* Root ports are not counted in route string */ dev->route =0 ; }else { -snprintf (dev->devpath,sizeof dev->devpath, -"%s.%d" , parent->devpath, port1); + n =snprintf (dev->devpath,sizeof (dev->devpath),"%s.%d" , + parent->devpath, port1);/* Route string assumes hubs have less than 16 ports */ if (port1 <15 ) dev->route = parent->route +
@@ -712,6 +713,11 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent, dev->route = parent->route + (15 << ((parent->level -1 )*4 )); } +if (n >=sizeof (dev->devpath)) { +usb_put_hcd (bus_to_hcd (bus)); +usb_put_dev (dev); +return NULL ; + } dev->dev.parent = &parent->dev;dev_set_name (&dev->dev,"%d-%s" , bus->busnum, dev->devpath);
drivers/usb/dwc2/gadget.c +6 -0
@@ -4601,6 +4601,12 @@ static int dwc2_hsotg_udc_stop(struct usb_gadget *gadget)if (!hsotg)return -ENODEV ; +/* Exit clock gating when driver is stopped. */ +if (hsotg->params.power_down ==DWC2_POWER_DOWN_PARAM_NONE && + hsotg->bus_suspended && !hsotg->params.no_clock_gating) { +dwc2_gadget_exit_clock_gating (hsotg,0 ); + } +/* all endpoints should be shutdown */ for (ep =1 ; ep < hsotg->num_of_eps; ep++) {if (hsotg->eps_in[ep])
drivers/usb/gadget/function/f_tcm.c +2 -2
@@ -1297,14 +1297,14 @@ static struct se_portal_group *usbg_make_tpg(struct se_wwn *wwn, struct usbg_tport *tport = container_of(wwn, struct usbg_tport, tport_wwn);struct usbg_tpg *tpg; -unsigned long tpgt; +u16 tpgt;int ret;struct f_tcm_opts *opts;unsigned i;if (strstr (name,"tpgt_" ) != name)return ERR_PTR (-EINVAL ); -if (kstrtoul (name +5 ,0 , &tpgt) || tpgt >UINT_MAX ) +if (kstrtou16 (name +5 ,0 , &tpgt))return ERR_PTR (-EINVAL ); ret = -ENODEV ;mutex_lock (&tpg_instances_lock);
drivers/usb/typec/altmodes/displayport.c +4 -0
@@ -323,6 +323,10 @@ static int dp_altmode_vdm(struct typec_altmode *alt,break ;case CMDT_RSP_NAK :switch (cmd) { +case DP_CMD_STATUS_UPDATE : +if (typec_altmode_exit (alt)) +dev_err (&dp->alt->dev,"Exit Mode Failed!\n" ); +break ;case DP_CMD_CONFIGURE : dp->data.conf =0 ; ret =dp_altmode_configured (dp);
drivers/usb/typec/mux.c +2 -2
@@ -214,7 +214,7 @@ int typec_switch_set(struct typec_switch *sw, sw_dev = sw->sw_devs[i]; ret = sw_dev->set (sw_dev, orientation); -if (ret) +if (ret && ret != -EOPNOTSUPP )return ret; }
@@ -378,7 +378,7 @@ int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) mux_dev = mux->mux_devs[i]; ret = mux_dev->set (mux_dev, state); -if (ret) +if (ret && ret != -EOPNOTSUPP )return ret; }
drivers/video/console/dummycon.c +16 -8
@@ -82,6 +82,15 @@ static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch)/* Redraw, so that we get putc(s) for output done while blanked */ return 1 ; } + +static bool dummycon_switch (struct vc_data *vc) +{ +/* +* Redraw, so that we get putc(s) for output done while switched +* away. Informs deferred consoles to take over the display. +*/ +return true; +}#else static void dummycon_putc (struct vc_data *vc,int c,int ypos,int xpos) { } static void dummycon_putcs(struct vc_data *vc, const unsigned short *s,
@@ -90,6 +99,10 @@ static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) {return 0 ; } +static bool dummycon_switch (struct vc_data *vc) +{ +return false; +}#endif static const char *dummycon_startup (void )
@@ -97,7 +110,7 @@ static const char *dummycon_startup(void)return "dummy device" ; } -static void dummycon_init (struct vc_data *vc,int init) +static void dummycon_init (struct vc_data *vc,bool init) { vc->vc_can_do_color =1 ;if (init) {
@@ -108,8 +121,8 @@ static void dummycon_init(struct vc_data *vc, int init) }static void dummycon_deinit (struct vc_data *vc) { } -static void dummycon_clear (struct vc_data *vc,int sy,int sx,int height, -int width) { } +static void dummycon_clear (struct vc_data *vc,unsigned int sy,unsigned int sx, +unsigned int width) { }static void dummycon_cursor (struct vc_data *vc,int mode) { } static bool dummycon_scroll(struct vc_data *vc, unsigned int top,
@@ -119,11 +132,6 @@ static bool dummycon_scroll(struct vc_data *vc, unsigned int top,return false; } -static int dummycon_switch (struct vc_data *vc) -{ -return 0 ; -} -/* * The console `switch' structure for the dummy console *
drivers/video/console/mdacon.c +8 -13
@@ -352,7 +352,7 @@ static const char *mdacon_startup(void)return "MDA-2" ; } -static void mdacon_init (struct vc_data *c,int init) +static void mdacon_init (struct vc_data *c,bool init) { c->vc_complement_mask =0x0800 ;/* reverse video */ c->vc_display_fg = &mda_display_fg;
@@ -442,26 +442,21 @@ static void mdacon_putcs(struct vc_data *c, const unsigned short *s, } } -static void mdacon_clear (struct vc_data *c,int y,int x, -int height,int width) +static void mdacon_clear (struct vc_data *c,unsigned int y,unsigned int x, +unsigned int width) {u16 *dest =mda_addr (x, y);u16 eattr =mda_convert_attr (c->vc_video_erase_char); -if (width <=0 || height <=0 ) +if (width <=0 )return ; -if (x==0 && width==mda_num_columns) { -scr_memsetw (dest, eattr, height*width*2 ); - }else { -for (; height >0 ; height--, dest+=mda_num_columns) -scr_memsetw (dest, eattr, width*2 ); - } +scr_memsetw (dest, eattr, width *2 ); } - -static int mdacon_switch (struct vc_data *c) + +static bool mdacon_switch (struct vc_data *c) { -return 1 ;/* redrawing needed */ +return true;/* redrawing needed */ }static int mdacon_blank (struct vc_data *c,int blank,int mode_switch)
drivers/video/console/newport_con.c +6 -6
@@ -324,7 +324,7 @@ static const char *newport_startup(void)return NULL ; } -static void newport_init (struct vc_data *vc,int init) +static void newport_init (struct vc_data *vc,bool init) {int cols, rows;
@@ -346,12 +346,12 @@ static void newport_deinit(struct vc_data *c) } } -static void newport_clear (struct vc_data *vc,int sy,int sx,int height, -int width) +static void newport_clear (struct vc_data *vc,unsigned int sy,unsigned int sx, +unsigned int width) {int xend = ((sx + width) <<3 ) -1 ;int ystart = ((sy <<4 ) + topscan) &0x3ff ; -int yend = (((sy + height) <<4 ) + topscan -1 ) &0x3ff ; +int yend = (((sy +1 ) <<4 ) + topscan -1 ) &0x3ff ;if (logo_active)return ;
@@ -462,7 +462,7 @@ static void newport_cursor(struct vc_data *vc, int mode) } } -static int newport_switch (struct vc_data *vc) +static bool newport_switch (struct vc_data *vc) {static int logo_drawn =0 ;
@@ -476,7 +476,7 @@ static int newport_switch(struct vc_data *vc) } } -return 1 ; +return true; }static int newport_blank (struct vc_data *c,int blank,int mode_switch)
drivers/video/console/sticon.c +7 -7
@@ -273,7 +273,7 @@ static int sticon_font_set(struct vc_data *vc, struct console_font *font,return sticon_set_font (vc, font, vpitch); } -static void sticon_init (struct vc_data *c,int init) +static void sticon_init (struct vc_data *c,bool init) {struct sti_struct *sti = sticon_sti;int vc_cols, vc_rows;
@@ -300,19 +300,19 @@ static void sticon_deinit(struct vc_data *c)sticon_set_def_font (i); } -static void sticon_clear (struct vc_data *conp,int sy,int sx,int height, -int width) +static void sticon_clear (struct vc_data *conp,unsigned int sy,unsigned int sx, +unsigned int width) { -if (!height || !width) +if (!width)return ; -sti_clear (sticon_sti, sy, sx, height, width, +sti_clear (sticon_sti, sy, sx,1 , width, conp->vc_video_erase_char, font_data[conp->vc_num]); } -static int sticon_switch (struct vc_data *conp) +static bool sticon_switch (struct vc_data *conp) { -return 1 ;/* needs refreshing */ +return true;/* needs refreshing */ }static int sticon_blank (struct vc_data *c,int blank,int mode_switch)
drivers/video/console/vgacon.c +6 -6
@@ -332,7 +332,7 @@ static const char *vgacon_startup(void)return display_desc; } -static void vgacon_init (struct vc_data *c,int init) +static void vgacon_init (struct vc_data *c,bool init) {struct uni_pagedict *p;
@@ -349,7 +349,7 @@ static void vgacon_init(struct vc_data *c, int init) c->vc_scan_lines = vga_scan_lines; c->vc_font.height = c->vc_cell_height = vga_video_font_height; -/* set dimensions manually if init != 0 since vc_resize() will fail */ +/* set dimensions manually if init is true since vc_resize() will fail */ if (init) { c->vc_cols = vga_video_num_columns; c->vc_rows = vga_video_num_lines;
@@ -585,7 +585,7 @@ static void vgacon_doresize(struct vc_data *c,raw_spin_unlock_irqrestore (&vga_lock, flags); } -static int vgacon_switch (struct vc_data *c) +static bool vgacon_switch (struct vc_data *c) {int x = c->vc_cols *VGA_FONTWIDTH ;int y = c->vc_rows * c->vc_cell_height;
@@ -614,7 +614,7 @@ static int vgacon_switch(struct vc_data *c)vgacon_doresize (c, c->vc_cols, c->vc_rows); } -return 0 ;/* Redrawing not needed */ +return false;/* Redrawing not needed */ }static void vga_set_palette (struct vc_data *vc,const unsigned char *table)
@@ -1156,8 +1156,8 @@ static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b,* The console `switch' structure for the VGA based console */ -static void vgacon_clear (struct vc_data *vc,int sy,int sx,int height, -int width) { } +static void vgacon_clear (struct vc_data *vc,unsigned int sy,unsigned int sx, +unsigned int width) { }static void vgacon_putc (struct vc_data *vc,int c,int ypos,int xpos) { }static void vgacon_putcs (struct vc_data *vc,const unsigned short *s,int count,int ypos,int xpos) { }
drivers/video/fbdev/core/fbcon.c +23 -17
@@ -993,7 +993,7 @@ static const char *fbcon_startup(void)return display_desc; } -static void fbcon_init (struct vc_data *vc,int init) +static void fbcon_init (struct vc_data *vc,bool init) {struct fb_info *info;struct fbcon_ops *ops;
@@ -1240,8 +1240,8 @@ static void fbcon_deinit(struct vc_data *vc)* restriction is simplicity & efficiency at the moment. */ -static void fbcon_clear (struct vc_data *vc,int sy,int sx,int height, -int width) +static void __fbcon_clear (struct vc_data *vc,unsigned int sy,unsigned int sx, +unsigned int height,unsigned int width) {struct fb_info *info =fbcon_info_from_console (vc->vc_num);struct fbcon_ops *ops = info->fbcon_par;
@@ -1280,6 +1280,12 @@ static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height, ops->clear (vc, info,real_y (p, sy), sx, height, width, fg, bg); } +static void fbcon_clear (struct vc_data *vc,unsigned int sy,unsigned int sx, +unsigned int width) +{ +__fbcon_clear (vc, sy, sx,1 , width); +} +static void fbcon_putcs (struct vc_data *vc,const unsigned short *s,int count,int ypos,int xpos) {
@@ -1767,7 +1773,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b,case SCROLL_MOVE :fbcon_redraw_blit (vc, info, p, t, b - t - count, count); -fbcon_clear (vc, b - count,0 , count, vc->vc_cols); +__fbcon_clear (vc, b - count,0 , count, vc->vc_cols); scr_memsetw((unsigned short *) (vc->vc_origin + vc->vc_size_row * (b - count)),
@@ -1790,7 +1796,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, b - t - count, vc->vc_cols); else goto redraw_up; -fbcon_clear (vc, b - count,0 , count, vc->vc_cols); +__fbcon_clear (vc, b - count,0 , count, vc->vc_cols);break ;case SCROLL_PAN_REDRAW :
@@ -1808,7 +1814,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, vc->vc_rows - b, b); }else fbcon_redraw_move (vc, p, t + count, b - t - count, t); -fbcon_clear (vc, b - count,0 , count, vc->vc_cols); +__fbcon_clear (vc, b - count,0 , count, vc->vc_cols);break ;case SCROLL_PAN_MOVE :
@@ -1831,14 +1837,14 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, b - t - count, vc->vc_cols); else goto redraw_up; -fbcon_clear (vc, b - count,0 , count, vc->vc_cols); +__fbcon_clear (vc, b - count,0 , count, vc->vc_cols);break ;case SCROLL_REDRAW : redraw_up:fbcon_redraw (vc, t, b - t - count, count * vc->vc_cols); -fbcon_clear (vc, b - count,0 , count, vc->vc_cols); +__fbcon_clear (vc, b - count,0 , count, vc->vc_cols); scr_memsetw((unsigned short *) (vc->vc_origin + vc->vc_size_row * (b - count)),
@@ -1855,7 +1861,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b,case SCROLL_MOVE :fbcon_redraw_blit (vc, info, p, b -1 , b - t - count, -count); -fbcon_clear (vc, t,0 , count, vc->vc_cols); +__fbcon_clear (vc, t,0 , count, vc->vc_cols); scr_memsetw((unsigned short *) (vc->vc_origin + vc->vc_size_row * t),
@@ -1878,7 +1884,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, b - t - count, vc->vc_cols); else goto redraw_down; -fbcon_clear (vc, t,0 , count, vc->vc_cols); +__fbcon_clear (vc, t,0 , count, vc->vc_cols);break ;case SCROLL_PAN_MOVE :
@@ -1900,7 +1906,7 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, b - t - count, vc->vc_cols); else goto redraw_down; -fbcon_clear (vc, t,0 , count, vc->vc_cols); +__fbcon_clear (vc, t,0 , count, vc->vc_cols);break ;case SCROLL_PAN_REDRAW :
@@ -1917,14 +1923,14 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b,fbcon_redraw_move (vc, p, count, t,0 ); }else fbcon_redraw_move (vc, p, t, b - t - count, t + count); -fbcon_clear (vc, t,0 , count, vc->vc_cols); +__fbcon_clear (vc, t,0 , count, vc->vc_cols);break ;case SCROLL_REDRAW : redraw_down:fbcon_redraw (vc, b -1 , b - t - count, -count * vc->vc_cols); -fbcon_clear (vc, t,0 , count, vc->vc_cols); +__fbcon_clear (vc, t,0 , count, vc->vc_cols); scr_memsetw((unsigned short *) (vc->vc_origin + vc->vc_size_row * t),
@@ -2066,7 +2072,7 @@ static int fbcon_resize(struct vc_data *vc, unsigned int width,return 0 ; } -static int fbcon_switch (struct vc_data *vc) +static bool fbcon_switch (struct vc_data *vc) {struct fb_info *info, *old_info =NULL ;struct fbcon_ops *ops;
@@ -2188,9 +2194,9 @@ static int fbcon_switch(struct vc_data *vc) vc->vc_origin + vc->vc_size_row * vc->vc_top, vc->vc_size_row * (vc->vc_bottom - vc->vc_top) / 2); -return 0 ; +return false; } -return 1 ; +return true; } static void fbcon_generic_blank(struct vc_data *vc, struct fb_info *info,
@@ -2203,7 +2209,7 @@ static void fbcon_generic_blank(struct vc_data *vc, struct fb_info *info, oldc = vc->vc_video_erase_char; vc->vc_video_erase_char &= charmask; -fbcon_clear (vc,0 ,0 , vc->vc_rows, vc->vc_cols); +__fbcon_clear (vc,0 ,0 , vc->vc_rows, vc->vc_cols); vc->vc_video_erase_char = oldc; } }
fs/btrfs/disk-io.c +1 -2
@@ -2148,8 +2148,7 @@ static int load_global_roots_objectid(struct btrfs_root *tree_root, found = true; root =read_tree_root_path (tree_root, path, &key);if (IS_ERR (root)) { -if (!btrfs_test_opt (fs_info,IGNOREBADROOTS )) - ret =PTR_ERR (root); + ret =PTR_ERR (root);break ; }set_bit (BTRFS_ROOT_TRACK_DIRTY , &root->state);
fs/btrfs/inode.c +64 -17
16 lines not on this page · raw message
fs/jfs/jfs_dmap.c +13 -28
41 lines not on this page · raw message
fs/smb/client/connect.c +36 -22
58 lines not on this page · raw message
fs/smb/server/smb2pdu.c +47 -34
81 lines not on this page · raw message
lib/longest_symbol_kunit.c new file +82 -0
82 lines not on this page · raw message
net/unix/af_unix.c +75 -32
107 lines not on this page · raw message
sound/soc/codecs/wcd9335.c +20 -42
62 lines not on this page · raw message
tools/testing/selftests/bpf/progs/test_global_map_resize.c +16 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.