Linux 4.19.120
Greg KH
maintainerI'm announcing the release of the 4.19.120 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.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/arm/boot/dts/bcm283x.dtsi | 1 arch/arm64/include/asm/sysreg.h | 4 arch/x86/kernel/cpu/mshyperv.c | 4 arch/x86/net/bpf_jit_comp.c | 18 + arch/x86/net/bpf_jit_comp32.c | 24 +- drivers/android/binder_alloc.c | 8 drivers/hwmon/jc42.c | 2 drivers/i2c/busses/i2c-altera.c | 9 drivers/iio/adc/ad7793.c | 2 drivers/mtd/chips/cfi_cmdset_0002.c | 6 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 drivers/net/ethernet/freescale/fec.h | 7 drivers/net/ethernet/freescale/fec_main.c | 149 ++++++++++++--- drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c | 6 drivers/net/ethernet/qlogic/qed/qed_dev.c | 38 +-- drivers/pci/quirks.c | 18 + drivers/remoteproc/remoteproc_core.c | 2 drivers/staging/gasket/apex_driver.c | 7 drivers/target/target_core_fabric_lib.c | 2 drivers/target/target_core_user.c | 1 drivers/usb/dwc3/gadget.c | 8 drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 drivers/xen/xenbus/xenbus_client.c | 9 fs/ext4/ialloc.c | 2 fs/ext4/inode.c | 2 fs/ext4/mballoc.c | 6 fs/ext4/super.c | 3 fs/nfsd/nfs4state.c | 2 fs/pnode.c | 9 fs/xfs/xfs_icache.c | 10 + fs/xfs/xfs_ioctl.c | 5 fs/xfs/xfs_reflink.c | 1 fs/xfs/xfs_trans_ail.c | 4 include/linux/qed/qed_chain.h | 24 +- include/linux/sunrpc/svc_rdma.h | 1 include/trace/events/rpcrdma.h | 50 +++-- include/uapi/linux/swab.h | 4 kernel/bpf/cpumap.c | 2 kernel/events/core.c | 13 + mm/shmem.c | 4 net/rxrpc/local_object.c | 9 net/rxrpc/output.c | 44 +--- net/sunrpc/svc_xprt.c | 3 net/sunrpc/svcsock.c | 4 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 22 ++ net/sunrpc/xprtrdma/svc_rdma_rw.c | 3 net/sunrpc/xprtrdma/svc_rdma_sendto.c | 29 +- net/sunrpc/xprtrdma/svc_rdma_transport.c | 5 sound/pci/hda/hda_intel.c | 17 + sound/soc/codecs/tas571x.c | 20 +- sound/soc/codecs/wm8960.c | 3 sound/soc/qcom/qdsp6/q6afe-dai.c | 16 + tools/objtool/check.c | 17 + tools/objtool/orc_dump.c | 44 ++-- 55 files changed, 470 insertions(+), 239 deletions(-)
Al Viro (1):
propagate_one(): mnt_set_mountpoint() needs mount_lock
Bjorn Helgaas (1):
PCI: Move Apex Edge TPU class quirk to fix BAR assignment
Bodo Stroesser (2):
scsi: target: fix PR IN / READ FULL STATUS for FC
scsi: target: tcmu: reset_ring should reset TCMU_DEV_BIT_BROKEN
Brian Foster (1):
xfs: acquire superblock freeze protection on eofblocks scans
Christian Borntraeger (1):
include/uapi/linux/swab.h: fix userspace breakage, use __BITS_PER_LONG for swap
Chuck Lever (2):
svcrdma: Fix trace point use-after-free race
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
Clement Leger (1):
remoteproc: Fix wrong rvring index computation
Darrick J. Wong (1):
xfs: fix partially uninitialized structure in xfs_reflink_remap_extent
David Howells (1):
rxrpc: Fix DATA Tx to disable nofrag for UDP on AF_INET6 socket
Eric Biggers (1):
xfs: clear PF_MEMALLOC before exiting xfsaild thread
Fangrui Song (1):
arm64: Delete the space separator in __emit_inst
Greg Kroah-Hartman (1):
Linux 4.19.120
Hui Wang (1):
ALSA: hda: call runtime_allow() for all hda controllers
Ian Rogers (1):
perf/core: fix parent pid/tid in task exit events
Jason Gunthorpe (1):
net/cxgb4: Check the return from t4_query_params properly
Josh Poimboeuf (2):
objtool: Fix CONFIG_UBSAN_TRAP unreachable warnings
objtool: Support Clang non-section symbols in ORC dump
Juergen Gross (1):
xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status
Kai-Heng Feng (1):
PCI: Avoid ASMedia XHCI USB PME# from D0 defect
Liu Jian (1):
mtd: cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer
Luke Nelson (3):
bpf, x86_32: Fix incorrect encoding in BPF_LDX zero-extension bpf, x86: Fix encoding for lower 8-bit registers in BPF_STX BPF_B bpf, x86_32: Fix clobbering of dst for BPF_JSET
Martin Fuzzey (1):
net: fec: set GPR bit on suspend by DT configuration.
Nathan Chancellor (1):
usb: gadget: udc: bdc: Remove unnecessary NULL checks in bdc_req_complete
Nicolas Saenz Julienne (1):
ARM: dts: bcm283x: Disable dsi0 node
Niklas Schnelle (1):
net/mlx5: Fix failing fw tracer allocation on s390
Olaf Hering (1):
x86: hyperv: report value of misc_features
Philipp Puschmann (1):
ASoC: tas571x: disable regulators on failed probe
Ritesh Harjani (1):
ext4: check for non-zero journal inum in ext4_calculate_overhead
Roy Spliet (1):
ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported
Sascha Hauer (1):
hwmon: (jc42) Fix name to have no illegal characters
Shengjiu Wang (1):
ASoC: wm8960: Fix wrong clock after suspend & resume
Stephan Gerhold (1):
ASoC: q6dsp6: q6afe-dai: add missing channels to MI2S DAIs
Takashi Iwai (1):
ALSA: hda: Keep the controller initialization even if no codecs found
Theodore Ts'o (2):
ext4: increase wait time needed before reuse of deleted inode numbers
ext4: convert BUG_ON's to WARN_ON's in mballoc.c
Thinh Nguyen (1):
usb: dwc3: gadget: Do link recovery for SS and SSP
Toke Høiland-Jørgensen (1):
cpumap: Avoid warning when CONFIG_DEBUG_PER_CPU_MAPS is enabled
Tyler Hicks (1):
binder: take read mode of mmap_sem in binder_alloc_free_page()
Vasily Averin (1):
nfsd: memory corruption in nfsd4_lock()
Wolfram Sang (1):
i2c: altera: use proper variable to hold errno
Yang Shi (1):
mm: shmem: disable interrupt when acquiring info->lock in userfaultfd_copy path
YueHaibing (1):
iio:ad7797: Use correct attribute_group
Yuval Basson (1):
qed: Fix use after free in qed_chain_free
yangerkun (1):
ext4: use matching invalidatepage in ext4_writepage
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 119 +SUBLEVEL = 120 EXTRAVERSION = NAME = "People's Front"
arch/arm/boot/dts/bcm283x.dtsi +1 -0
@@ -476,6 +476,7 @@ "dsi0_ddr2", "dsi0_ddr"; + status = "disabled"; }; thermal: thermal@7e212000 {
arch/arm64/include/asm/sysreg.h +3 -1
@@ -60,7 +60,9 @@#ifndef CONFIG_BROKEN_GAS_INST #ifdef __ASSEMBLY__ -#define __emit_inst (x) .inst (x) +// The space separator is omitted so that __emit_inst(x) can be parsed as +// either an assembler directive or an assembler macro argument. +#define __emit_inst (x) .inst(x)#else #define __emit_inst (x) ".inst " __stringify((x)) "\n\t"#endif
arch/x86/kernel/cpu/mshyperv.c +2 -2
@@ -214,8 +214,8 @@ static void __init ms_hyperv_init_platform(void) ms_hyperv.misc_features =cpuid_edx (HYPERV_CPUID_FEATURES ); ms_hyperv.hints =cpuid_eax (HYPERV_CPUID_ENLIGHTMENT_INFO ); -pr_info ("Hyper-V: features 0x%x, hints 0x%x\n" , - ms_hyperv.features, ms_hyperv.hints); +pr_info ("Hyper-V: features 0x%x, hints 0x%x, misc 0x%x\n" , + ms_hyperv.features, ms_hyperv.hints, ms_hyperv.misc_features); ms_hyperv.max_vp_index =cpuid_eax (HYPERV_CPUID_IMPLEMENT_LIMITS ); ms_hyperv.max_lp_index =cpuid_ebx (HYPERV_CPUID_IMPLEMENT_LIMITS );
arch/x86/net/bpf_jit_comp.c +15 -3
@@ -142,6 +142,19 @@ static bool is_ereg(u32 reg) BIT(BPF_REG_AX)); } +/* +* is_ereg_8l() == true if BPF register 'reg' is mapped to access x86-64 +* lower 8-bit registers dil,sil,bpl,spl,r8b..r15b, which need extra byte +* of encoding. al,cl,dl,bl have simpler encoding. +*/ +static bool is_ereg_8l (u32 reg) +{ +return is_ereg (reg) || + (1 << reg) & (BIT (BPF_REG_1 ) | +BIT (BPF_REG_2 ) | +BIT (BPF_REG_FP )); +} +static bool is_axreg (u32 reg) {return reg ==BPF_REG_0 ;
@@ -751,9 +764,8 @@ st: if (is_imm8(insn->off))/* STX: *(u8*)(dst_reg + off) = src_reg */ case BPF_STX |BPF_MEM |BPF_B :/* Emit 'mov byte ptr [rax + off], al' */ -if (is_ereg (dst_reg) ||is_ereg (src_reg) || -/* We have to add extra byte for x86 SIL, DIL regs */ - src_reg ==BPF_REG_1 || src_reg ==BPF_REG_2 ) +if (is_ereg (dst_reg) ||is_ereg_8l (src_reg)) +/* Add extra byte for eregs or SIL,DIL,BPL in src_reg */ EMIT2 (add_2mod (0x40 , dst_reg, src_reg),0x88 );else EMIT1 (0x88 );
arch/x86/net/bpf_jit_comp32.c +19 -5
@@ -1830,7 +1830,9 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, STACK_VAR(dst_hi));EMIT (0x0 ,4 ); }else { -EMIT3 (0xC7 ,add_1reg (0xC0 , dst_hi),0 ); +/* xor dst_hi,dst_hi */ +EMIT2 (0x33 , +add_2reg (0xC0 , dst_hi, dst_hi)); }break ;case BPF_DW :
@@ -1968,8 +1970,8 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, goto emit_cond_jmp_signed; }case BPF_JMP |BPF_JSET |BPF_X : { -u8 dreg_lo = dstk ?IA32_EAX : dst_lo; -u8 dreg_hi = dstk ?IA32_EDX : dst_hi; +u8 dreg_lo =IA32_EAX ; +u8 dreg_hi =IA32_EDX ;u8 sreg_lo = sstk ?IA32_ECX : src_lo;u8 sreg_hi = sstk ?IA32_EBX : src_hi;
@@ -1978,6 +1980,12 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, STACK_VAR(dst_lo));EMIT3 (0x8B ,add_2reg (0x40 ,IA32_EBP ,IA32_EDX ),STACK_VAR (dst_hi)); + }else { +/* mov dreg_lo,dst_lo */ +EMIT2 (0x89 ,add_2reg (0xC0 , dreg_lo, dst_lo)); +/* mov dreg_hi,dst_hi */ +EMIT2 (0x89 , +add_2reg (0xC0 , dreg_hi, dst_hi)); }if (sstk) {
@@ -1996,8 +2004,8 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, }case BPF_JMP |BPF_JSET |BPF_K : {u32 hi; -u8 dreg_lo = dstk ?IA32_EAX : dst_lo; -u8 dreg_hi = dstk ?IA32_EDX : dst_hi; +u8 dreg_lo =IA32_EAX ; +u8 dreg_hi =IA32_EDX ;u8 sreg_lo =IA32_ECX ;u8 sreg_hi =IA32_EBX ;
@@ -2006,6 +2014,12 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, STACK_VAR(dst_lo));EMIT3 (0x8B ,add_2reg (0x40 ,IA32_EBP ,IA32_EDX ),STACK_VAR (dst_hi)); + }else { +/* mov dreg_lo,dst_lo */ +EMIT2 (0x89 ,add_2reg (0xC0 , dreg_lo, dst_lo)); +/* mov dreg_hi,dst_hi */ +EMIT2 (0x89 , +add_2reg (0xC0 , dreg_hi, dst_hi)); } hi = imm32 & (1 <<31 ) ? (u32 )~0 :0 ;
drivers/android/binder_alloc.c +4 -4
@@ -970,8 +970,8 @@ enum lru_status binder_alloc_free_page(struct list_head *item, mm = alloc->vma_vm_mm;if (!mmget_not_zero (mm)) goto err_mmget; -if (!down_write_trylock (&mm->mmap_sem)) - goto err_down_write_mmap_sem_failed; +if (!down_read_trylock (&mm->mmap_sem)) + goto err_down_read_mmap_sem_failed; vma =binder_alloc_get_vma (alloc);list_lru_isolate (lru, item);
@@ -986,7 +986,7 @@ enum lru_status binder_alloc_free_page(struct list_head *item,trace_binder_unmap_user_end (alloc, index); } -up_write (&mm->mmap_sem); +up_read (&mm->mmap_sem);mmput (mm);trace_binder_unmap_kernel_start (alloc, index);
@@ -1001,7 +1001,7 @@ enum lru_status binder_alloc_free_page(struct list_head *item,mutex_unlock (&alloc->mutex);return LRU_REMOVED_RETRY ; -err_down_write_mmap_sem_failed: +err_down_read_mmap_sem_failed:mmput_async (mm); err_mmget: err_page_already_freed:
drivers/hwmon/jc42.c +1 -1
@@ -527,7 +527,7 @@ static int jc42_probe(struct i2c_client *client, const struct i2c_device_id *id) } data->config = config; - hwmon_dev =devm_hwmon_device_register_with_info (dev, client->name, + hwmon_dev =devm_hwmon_device_register_with_info (dev,"jc42" , data, &jc42_chip_info,NULL );return PTR_ERR_OR_ZERO (hwmon_dev);
drivers/i2c/busses/i2c-altera.c +4 -5
@@ -395,7 +395,6 @@ static int altr_i2c_probe(struct platform_device *pdev)struct altr_i2c_dev *idev =NULL ;struct resource *res;int irq, ret; -u32 val; idev =devm_kzalloc (&pdev->dev,sizeof (*idev),GFP_KERNEL );if (!idev)
@@ -422,17 +421,17 @@ static int altr_i2c_probe(struct platform_device *pdev)init_completion (&idev->msg_complete);spin_lock_init (&idev->lock); - val =device_property_read_u32 (idev->dev,"fifo-size" , + ret =device_property_read_u32 (idev->dev,"fifo-size" , &idev->fifo_size); -if (val) { +if (ret) {dev_err (&pdev->dev,"FIFO size set to default of %d\n" ,ALTR_I2C_DFLT_FIFO_SZ ); idev->fifo_size =ALTR_I2C_DFLT_FIFO_SZ ; } - val =device_property_read_u32 (idev->dev,"clock-frequency" , + ret =device_property_read_u32 (idev->dev,"clock-frequency" , &idev->bus_clk_rate); -if (val) { +if (ret) {dev_err (&pdev->dev,"Default to 100kHz\n" ); idev->bus_clk_rate =100000 ;/* default clock rate */ }
drivers/iio/adc/ad7793.c +1 -1
@@ -542,7 +542,7 @@ static const struct iio_info ad7797_info = { .read_raw = &ad7793_read_raw, .write_raw = &ad7793_write_raw, .write_raw_get_fmt = &ad7793_write_raw_get_fmt, - .attrs = &ad7793_attribute_group, + .attrs = &ad7797_attribute_group, .validate_trigger = ad_sd_validate_trigger, };
drivers/mtd/chips/cfi_cmdset_0002.c +5 -1
@@ -1882,7 +1882,11 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip,continue ; } -if (time_after (jiffies, timeo) && !chip_ready (map, adr)) +/* +* We check "time_after" and "!chip_good" before checking "chip_good" to avoid +* the failure due to scheduling. +*/ +if (time_after (jiffies, timeo) && !chip_good (map, adr, datum))break ;if (chip_good (map, adr, datum)) {
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +1 -1
@@ -3748,7 +3748,7 @@ int t4_phy_fw_ver(struct adapter *adap, int *phy_fw_ver) FW_PARAMS_PARAM_Z_V(FW_PARAMS_PARAM_DEV_PHYFW_VERSION)); ret =t4_query_params (adap, adap->mbox, adap->pf,0 ,1 , ¶m, &val); -if (ret <0 ) +if (ret)return ret; *phy_fw_ver = val;return 0 ;
drivers/net/ethernet/freescale/fec.h +7 -0
@@ -488,6 +488,12 @@ struct fec_enet_priv_rx_q {struct sk_buff *rx_skbuff[RX_RING_SIZE ]; }; +struct fec_stop_mode_gpr { +struct regmap *gpr; +u8 reg; +u8 bit; +}; +/* The FEC buffer descriptors track the ring buffers. The rx_bd_base and * tx_bd_base always point to the base of the buffer descriptors. The * cur_rx and cur_tx point to the currently available buffer.
@@ -563,6 +569,7 @@ struct fec_enet_private {int hwts_tx_en;struct delayed_work time_keep;struct regulator *reg_phy; +struct fec_stop_mode_gpr stop_gpr;unsigned int tx_align;unsigned int rx_align;
drivers/net/ethernet/freescale/fec_main.c +120 -29
237 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c +3 -3
@@ -796,7 +796,7 @@ struct mlx5_fw_tracer *mlx5_fw_tracer_create(struct mlx5_core_dev *dev)return NULL ; } - tracer =kzalloc (sizeof (*tracer),GFP_KERNEL ); + tracer =kvzalloc (sizeof (*tracer),GFP_KERNEL );if (!tracer)return ERR_PTR (-ENOMEM );
@@ -842,7 +842,7 @@ struct mlx5_fw_tracer *mlx5_fw_tracer_create(struct mlx5_core_dev *dev) tracer->dev =NULL ;destroy_workqueue (tracer->work_queue); free_tracer: -kfree (tracer); +kvfree (tracer);return ERR_PTR (err); }
@@ -919,7 +919,7 @@ void mlx5_fw_tracer_destroy(struct mlx5_fw_tracer *tracer)mlx5_fw_tracer_destroy_log_buf (tracer);flush_workqueue (tracer->work_queue);destroy_workqueue (tracer->work_queue); -kfree (tracer); +kvfree (tracer); }void mlx5_fw_tracer_event (struct mlx5_core_dev *dev,struct mlx5_eqe *eqe)
drivers/net/ethernet/qlogic/qed/qed_dev.c +16 -22
@@ -3316,26 +3316,20 @@ static void qed_chain_free_single(struct qed_dev *cdev,static void qed_chain_free_pbl (struct qed_dev *cdev,struct qed_chain *p_chain) { -void **pp_virt_addr_tbl = p_chain->pbl.pp_virt_addr_tbl; +struct addr_tbl_entry *pp_addr_tbl = p_chain->pbl.pp_addr_tbl;u32 page_cnt = p_chain->page_cnt, i, pbl_size; -u8 *p_pbl_virt = p_chain->pbl_sp.p_virt_table; -if (!pp_virt_addr_tbl) +if (!pp_addr_tbl)return ; -if (!p_pbl_virt) - goto out; -for (i =0 ; i < page_cnt; i++) { -if (!pp_virt_addr_tbl[i]) +if (!pp_addr_tbl[i].virt_addr || !pp_addr_tbl[i].dma_map)break ;dma_free_coherent (&cdev->pdev->dev,QED_CHAIN_PAGE_SIZE , - pp_virt_addr_tbl[i], - *(dma_addr_t *)p_pbl_virt); - - p_pbl_virt +=QED_CHAIN_PBL_ENTRY_SIZE ; + pp_addr_tbl[i].virt_addr, + pp_addr_tbl[i].dma_map); } pbl_size = page_cnt *QED_CHAIN_PBL_ENTRY_SIZE ;
@@ -3345,9 +3339,9 @@ static void qed_chain_free_pbl(struct qed_dev *cdev, struct qed_chain *p_chain) pbl_size, p_chain->pbl_sp.p_virt_table, p_chain->pbl_sp.p_phys_table); -out: -vfree (p_chain->pbl.pp_virt_addr_tbl); - p_chain->pbl.pp_virt_addr_tbl =NULL ; + +vfree (p_chain->pbl.pp_addr_tbl); + p_chain->pbl.pp_addr_tbl =NULL ; }void qed_chain_free (struct qed_dev *cdev,struct qed_chain *p_chain)
@@ -3448,19 +3442,19 @@ qed_chain_alloc_pbl(struct qed_dev *cdev, {u32 page_cnt = p_chain->page_cnt, size, i;dma_addr_t p_phys =0 , p_pbl_phys =0 ; -void **pp_virt_addr_tbl =NULL ; +struct addr_tbl_entry *pp_addr_tbl;u8 *p_pbl_virt =NULL ;void *p_virt =NULL ; - size = page_cnt *sizeof (*pp_virt_addr_tbl); - pp_virt_addr_tbl =vzalloc (size); -if (!pp_virt_addr_tbl) + size = page_cnt *sizeof (*pp_addr_tbl); + pp_addr_tbl =vzalloc (size); +if (!pp_addr_tbl)return -ENOMEM ;/* The allocation of the PBL table is done with its full size, since it * is expected to be successive. * qed_chain_init_pbl_mem() is called even in a case of an allocation -* failure, since pp_virt_addr_tbl was previously allocated, and it +* failure, since tbl was previously allocated, and it * should be saved to allow its freeing during the error flow. */ size = page_cnt *QED_CHAIN_PBL_ENTRY_SIZE ;
@@ -3474,8 +3468,7 @@ qed_chain_alloc_pbl(struct qed_dev *cdev, p_chain->b_external_pbl = true; } -qed_chain_init_pbl_mem (p_chain, p_pbl_virt, p_pbl_phys, - pp_virt_addr_tbl); +qed_chain_init_pbl_mem (p_chain, p_pbl_virt, p_pbl_phys, pp_addr_tbl);if (!p_pbl_virt)return -ENOMEM ;
@@ -3494,7 +3487,8 @@ qed_chain_alloc_pbl(struct qed_dev *cdev,/* Fill the PBL table with the physical address of the page */ *(dma_addr_t *)p_pbl_virt = p_phys;/* Keep the virtual address of the page */ - p_chain->pbl.pp_virt_addr_tbl[i] = p_virt; + p_chain->pbl.pp_addr_tbl[i].virt_addr = p_virt; + p_chain->pbl.pp_addr_tbl[i].dma_map = p_phys; p_pbl_virt +=QED_CHAIN_PBL_ENTRY_SIZE ; }
drivers/pci/quirks.c +18 -0
@@ -5282,3 +5282,21 @@ static void quirk_reset_lenovo_thinkpad_p50_nvgpu(struct pci_dev *pdev)DECLARE_PCI_FIXUP_CLASS_FINAL (PCI_VENDOR_ID_NVIDIA ,0x13b1 ,PCI_CLASS_DISPLAY_VGA ,8 , quirk_reset_lenovo_thinkpad_p50_nvgpu); + +/* +* Device [1b21:2142] +* When in D0, PME# doesn't get asserted when plugging USB 3.0 device. +*/ +static void pci_fixup_no_d0_pme (struct pci_dev *dev) +{ +pci_info (dev,"PME# does not work under D0, disabling it\n" ); + dev->pme_support &= ~(PCI_PM_CAP_PME_D0 >>PCI_PM_CAP_PME_SHIFT ); +} +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ASMEDIA ,0x2142 , pci_fixup_no_d0_pme); + +static void apex_pci_fixup_class (struct pci_dev *pdev) +{ + pdev->class = (PCI_CLASS_SYSTEM_OTHER <<8 ) | pdev->class; +} +DECLARE_PCI_FIXUP_CLASS_HEADER (0x1ac1 ,0x089a , +PCI_CLASS_NOT_DEFINED ,8 , apex_pci_fixup_class);
drivers/remoteproc/remoteproc_core.c +1 -1
@@ -289,7 +289,7 @@ void rproc_free_vring(struct rproc_vring *rvring) {int size =PAGE_ALIGN (vring_size (rvring->len, rvring->align));struct rproc *rproc = rvring->rvdev->rproc; -int idx = rvring->rvdev->vring - rvring; +int idx = rvring - rvring->rvdev->vring;struct fw_rsc_vdev *rsc;dma_free_coherent (rproc->dev.parent, size, rvring->va, rvring->dma);
drivers/staging/gasket/apex_driver.c +0 -7
@@ -578,13 +578,6 @@ static const struct pci_device_id apex_pci_ids[] = { { PCI_DEVICE(APEX_PCI_VENDOR_ID, APEX_PCI_DEVICE_ID) }, { 0 } }; -static void apex_pci_fixup_class (struct pci_dev *pdev) -{ - pdev->class = (PCI_CLASS_SYSTEM_OTHER <<8 ) | pdev->class; -} -DECLARE_PCI_FIXUP_CLASS_HEADER (APEX_PCI_VENDOR_ID ,APEX_PCI_DEVICE_ID , -PCI_CLASS_NOT_DEFINED ,8 , apex_pci_fixup_class); -static int apex_pci_probe (struct pci_dev *pci_dev,const struct pci_device_id *id) {
drivers/target/target_core_fabric_lib.c +1 -1
@@ -76,7 +76,7 @@ static int fc_get_pr_transport_id(* encoded TransportID. */ ptr = &se_nacl->initiatorname[0 ]; -for (i =0 ; i <24 ; ) { +for (i =0 ; i <23 ; ) {if (!strncmp (&ptr[i],":" ,1 )) { i++;continue ;
drivers/target/target_core_user.c +1 -0
@@ -2067,6 +2067,7 @@ static void tcmu_reset_ring(struct tcmu_dev *udev, u8 err_level) mb->cmd_tail =0 ; mb->cmd_head =0 ;tcmu_flush_dcache_range (mb,sizeof (*mb)); +clear_bit (TCMU_DEV_BIT_BROKEN , &udev->flags);del_timer (&udev->cmd_timer);
drivers/usb/dwc3/gadget.c +2 -6
@@ -1577,7 +1577,6 @@ static int __dwc3_gadget_wakeup(struct dwc3 *dwc)u32 reg;u8 link_state; -u8 speed;/* * According to the Databook Remote wakeup request should
@@ -1587,16 +1586,13 @@ static int __dwc3_gadget_wakeup(struct dwc3 *dwc)*/ reg =dwc3_readl (dwc->regs,DWC3_DSTS ); - speed = reg &DWC3_DSTS_CONNECTSPD ; -if ((speed ==DWC3_DSTS_SUPERSPEED ) || - (speed ==DWC3_DSTS_SUPERSPEED_PLUS )) -return 0 ; - link_state =DWC3_DSTS_USBLNKST (reg);switch (link_state) { +case DWC3_LINK_STATE_RESET :case DWC3_LINK_STATE_RX_DET :/* in HS, means Early Suspend */ case DWC3_LINK_STATE_U3 :/* in HS, means SUSPEND */ +case DWC3_LINK_STATE_RESUME :break ;default :return -EINVAL ;
drivers/usb/gadget/udc/bdc/bdc_ep.c +1 -1
@@ -540,7 +540,7 @@ static void bdc_req_complete(struct bdc_ep *ep, struct bdc_req *req, {struct bdc *bdc = ep->bdc; -if (req ==NULL || &req->queue ==NULL || &req->usb_req ==NULL ) +if (req ==NULL )return ;dev_dbg (bdc->dev,"%s ep:%s status:%d\n" , __func__, ep->name, status);
drivers/xen/xenbus/xenbus_client.c +8 -1
@@ -450,7 +450,14 @@ EXPORT_SYMBOL_GPL(xenbus_free_evtchn);int xenbus_map_ring_valloc (struct xenbus_device *dev,grant_ref_t *gnt_refs,unsigned int nr_grefs,void **vaddr) { -return ring_ops->map (dev, gnt_refs, nr_grefs, vaddr); +int err; + + err = ring_ops->map (dev, gnt_refs, nr_grefs, vaddr); +/* Some hypervisors are buggy and can return 1. */ +if (err >0 ) + err = GNTST_general_error; + +return err; }EXPORT_SYMBOL_GPL (xenbus_map_ring_valloc);
fs/ext4/ialloc.c +1 -1
@@ -665,7 +665,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent,* block has been written back to disk. (Yes, these values are * somewhat arbitrary...) */ -#define RECENTCY_MIN 5 +#define RECENTCY_MIN 60#define RECENTCY_DIRTY 300static int recently_deleted (struct super_block *sb,ext4_group_t group,int ino)
fs/ext4/inode.c +1 -1
@@ -2128,7 +2128,7 @@ static int ext4_writepage(struct page *page,bool keep_towrite = false;if (unlikely (ext4_forced_shutdown (EXT4_SB (inode->i_sb)))) { -ext4_invalidatepage (page,0 ,PAGE_SIZE ); + inode->i_mapping->a_ops->invalidatepage (page,0 ,PAGE_SIZE );unlock_page (page);return -EIO ; }
fs/ext4/mballoc.c +4 -2
@@ -1936,7 +1936,8 @@ void ext4_mb_complex_scan_group(struct ext4_allocation_context *ac,int free; free = e4b->bd_info->bb_free; -BUG_ON (free <=0 ); +if (WARN_ON (free <=0 )) +return ; i = e4b->bd_info->bb_first_free;
@@ -1959,7 +1960,8 @@ void ext4_mb_complex_scan_group(struct ext4_allocation_context *ac, }mb_find_extent (e4b, i, ac->ac_g_ex.fe_len, &ex); -BUG_ON (ex.fe_len <=0 ); +if (WARN_ON (ex.fe_len <=0 )) +break ;if (free < ex.fe_len) {ext4_grp_locked_error (sb, e4b->bd_group,0 ,0 , "%d free clusters as per "
fs/ext4/super.c +2 -1
@@ -3524,7 +3524,8 @@ int ext4_calculate_overhead(struct super_block *sb)*/ if (sbi->s_journal && !sbi->journal_bdev) overhead +=EXT4_NUM_B2C (sbi, sbi->s_journal->j_maxlen); -else if (ext4_has_feature_journal (sb) && !sbi->s_journal) { +else if (ext4_has_feature_journal (sb) && !sbi->s_journal && j_inum) { +/* j_inum for internal journal is non-zero */ j_inode =ext4_get_journal_inode (sb, j_inum);if (j_inode) { j_blocks = j_inode->i_size >> sb->s_blocksize_bits;
fs/nfsd/nfs4state.c +2 -0
@@ -252,6 +252,8 @@ find_or_allocate_block(struct nfs4_lockowner *lo, struct knfsd_fh *fh,if (!nbl) { nbl=kmalloc (sizeof (*nbl),GFP_KERNEL );if (nbl) { +INIT_LIST_HEAD (&nbl->nbl_list); +INIT_LIST_HEAD (&nbl->nbl_lru);fh_copy_shallow (&nbl->nbl_fh, fh);locks_init_lock (&nbl->nbl_lock); nfsd4_init_cb(&nbl->nbl_cb, lo->lo_owner.so_client,
fs/pnode.c +4 -5
@@ -266,14 +266,13 @@ static int propagate_one(struct mount *m)if (IS_ERR (child))return PTR_ERR (child); child->mnt.mnt_flags &= ~MNT_LOCKED ; +read_seqlock_excl (&mount_lock);mnt_set_mountpoint (m, mp, child); +if (m->mnt_master != dest_master) +SET_MNT_MARK (m->mnt_master); +read_sequnlock_excl (&mount_lock); last_dest = m; last_source = child; -if (m->mnt_master != dest_master) { -read_seqlock_excl (&mount_lock); -SET_MNT_MARK (m->mnt_master); -read_sequnlock_excl (&mount_lock); - }hlist_add_head (&child->mnt_hash, list);return count_mounts (m->mnt_ns, child); }
fs/xfs/xfs_icache.c +10 -0
@@ -902,7 +902,12 @@ xfs_eofblocks_worker( {struct xfs_mount *mp =container_of (to_delayed_work (work), struct xfs_mount, m_eofblocks_work); + +if (!sb_start_write_trylock (mp->m_super)) +return ;xfs_icache_free_eofblocks (mp,NULL ); +sb_end_write (mp->m_super); +xfs_queue_eofblocks (mp); }
@@ -929,7 +934,12 @@ xfs_cowblocks_worker( {struct xfs_mount *mp =container_of (to_delayed_work (work), struct xfs_mount, m_cowblocks_work); + +if (!sb_start_write_trylock (mp->m_super)) +return ;xfs_icache_free_cowblocks (mp,NULL ); +sb_end_write (mp->m_super); +xfs_queue_cowblocks (mp); }
fs/xfs/xfs_ioctl.c +4 -1
@@ -2182,7 +2182,10 @@ xfs_file_ioctl(if (error)return error; -return xfs_icache_free_eofblocks (mp, &keofb); +sb_start_write (mp->m_super); + error =xfs_icache_free_eofblocks (mp, &keofb); +sb_end_write (mp->m_super); +return error; }default :
fs/xfs/xfs_reflink.c +1 -0
@@ -1058,6 +1058,7 @@ xfs_reflink_remap_extent( uirec.br_startblock = irec->br_startblock + rlen; uirec.br_startoff = irec->br_startoff + rlen; uirec.br_blockcount = unmap_len - rlen; + uirec.br_state = irec->br_state; unmap_len = rlen;/* If this isn't a real mapping, we're done. */
fs/xfs/xfs_trans_ail.c +3 -1
@@ -520,8 +520,9 @@ xfsaild( {struct xfs_ail *ailp = data;long tout =0 ;/* milliseconds */ +unsigned int noreclaim_flag; - current->flags |=PF_MEMALLOC ; + noreclaim_flag =memalloc_noreclaim_save ();set_freezable ();while (1 ) {
@@ -592,6 +593,7 @@ xfsaild( tout =xfsaild_push (ailp); } +memalloc_noreclaim_restore (noreclaim_flag);return 0 ; }
include/linux/qed/qed_chain.h +15 -9
@@ -97,6 +97,11 @@ struct qed_chain_u32 {u32 cons_idx; }; +struct addr_tbl_entry { +void *virt_addr; +dma_addr_t dma_map; +}; +struct qed_chain {/* fastpath portion of the chain - required for commands such * as produce / consume.
@@ -107,10 +112,11 @@ struct qed_chain {/* Fastpath portions of the PBL [if exists] */ struct { -/* Table for keeping the virtual addresses of the chain pages, -* respectively to the physical addresses in the pbl table. +/* Table for keeping the virtual and physical addresses of the +* chain pages, respectively to the physical addresses +* in the pbl table. */ -void **pp_virt_addr_tbl; +struct addr_tbl_entry *pp_addr_tbl;union {struct qed_chain_pbl_u16 u16;
@@ -287,7 +293,7 @@ qed_chain_advance_page(struct qed_chain *p_chain, *(u32 *)page_to_inc =0 ; page_index = *(u32 *)page_to_inc; } - *p_next_elem = p_chain->pbl.pp_virt_addr_tbl[page_index]; + *p_next_elem = p_chain->pbl.pp_addr_tbl[page_index].virt_addr; } }
@@ -537,7 +543,7 @@ static inline void qed_chain_init_params(struct qed_chain *p_chain, p_chain->pbl_sp.p_phys_table =0 ; p_chain->pbl_sp.p_virt_table =NULL ; - p_chain->pbl.pp_virt_addr_tbl =NULL ; + p_chain->pbl.pp_addr_tbl =NULL ; }/**
@@ -575,11 +581,11 @@ static inline void qed_chain_init_mem(struct qed_chain *p_chain,static inline void qed_chain_init_pbl_mem (struct qed_chain *p_chain,void *p_virt_pbl,dma_addr_t p_phys_pbl, -void **pp_virt_addr_tbl) +struct addr_tbl_entry *pp_addr_tbl) { p_chain->pbl_sp.p_phys_table = p_phys_pbl; p_chain->pbl_sp.p_virt_table = p_virt_pbl; - p_chain->pbl.pp_virt_addr_tbl = pp_virt_addr_tbl; + p_chain->pbl.pp_addr_tbl = pp_addr_tbl; }/**
@@ -644,7 +650,7 @@ static inline void *qed_chain_get_last_elem(struct qed_chain *p_chain)break ;case QED_CHAIN_MODE_PBL : last_page_idx = p_chain->page_cnt -1 ; - p_virt_addr = p_chain->pbl.pp_virt_addr_tbl[last_page_idx]; + p_virt_addr = p_chain->pbl.pp_addr_tbl[last_page_idx].virt_addr;break ; }/* p_virt_addr points at this stage to the last page of the chain */
@@ -716,7 +722,7 @@ static inline void qed_chain_pbl_zero_mem(struct qed_chain *p_chain) page_cnt =qed_chain_get_page_cnt (p_chain);for (i =0 ; i < page_cnt; i++) -memset (p_chain->pbl.pp_virt_addr_tbl[i],0 , +memset (p_chain->pbl.pp_addr_tbl[i].virt_addr,0 ,QED_CHAIN_PAGE_SIZE ); }
include/linux/sunrpc/svc_rdma.h +1 -0
@@ -159,6 +159,7 @@ extern bool svc_rdma_post_recvs(struct svcxprt_rdma *rdma);extern void svc_rdma_recv_ctxt_put (struct svcxprt_rdma *rdma,struct svc_rdma_recv_ctxt *ctxt);extern void svc_rdma_flush_recv_queues (struct svcxprt_rdma *rdma); +extern void svc_rdma_release_rqst (struct svc_rqst *rqstp);extern int svc_rdma_recvfrom (struct svc_rqst *);/* svc_rdma_rw.c */
include/trace/events/rpcrdma.h +36 -14
97 lines not on this page · raw message
include/uapi/linux/swab.h +2 -2
@@ -135,9 +135,9 @@ static inline __attribute_const__ __u32 __fswahb32(__u32 val)static __always_inline unsigned long __swab (const unsigned long y) { -#if BITS_PER_LONG ==64 +#if __BITS_PER_LONG ==64 return __swab64 (y); -#else /* BITS_PER_LONG == 32 */ +#else /* __BITS_PER_LONG == 32 */ return __swab32 (y);#endif }
kernel/bpf/cpumap.c +1 -1
@@ -455,7 +455,7 @@ static int cpu_map_update_elem(struct bpf_map *map, void *key, void *value,return -EOVERFLOW ;/* Make sure CPU is a valid possible cpu */ -if (!cpu_possible (key_cpu)) +if (key_cpu >= nr_cpumask_bits || !cpu_possible (key_cpu))return -ENODEV ;if (qsize ==0 ) {
kernel/events/core.c +10 -3
@@ -6923,10 +6923,17 @@ static void perf_event_task_output(struct perf_event *event, goto out; task_event->event_id.pid =perf_event_pid (event, task); - task_event->event_id.ppid =perf_event_pid (event, current); - task_event->event_id.tid =perf_event_tid (event, task); - task_event->event_id.ptid =perf_event_tid (event, current); + +if (task_event->event_id.header.type ==PERF_RECORD_EXIT ) { + task_event->event_id.ppid =perf_event_pid (event, + task->real_parent); + task_event->event_id.ptid =perf_event_pid (event, + task->real_parent); + }else {/* PERF_RECORD_FORK */ + task_event->event_id.ppid =perf_event_pid (event, current); + task_event->event_id.ptid =perf_event_tid (event, current); + } task_event->event_id.time =perf_event_clock (event);
mm/shmem.c +2 -2
@@ -2350,11 +2350,11 @@ static int shmem_mfill_atomic_pte(struct mm_struct *dst_mm,lru_cache_add_anon (page); -spin_lock (&info->lock); +spin_lock_irq (&info->lock); info->alloced++; inode->i_blocks +=BLOCKS_PER_PAGE ;shmem_recalc_inode (inode); -spin_unlock (&info->lock); +spin_unlock_irq (&info->lock);inc_mm_counter (dst_mm,mm_counter_file (page));page_add_file_rmap (page, false);
net/rxrpc/local_object.c +0 -9
@@ -169,15 +169,6 @@ static int rxrpc_open_socket(struct rxrpc_local *local, struct net *net) goto error; } -/* we want to set the don't fragment bit */ - opt =IPV6_PMTUDISC_DO ; - ret =kernel_setsockopt (local->socket,SOL_IPV6 ,IPV6_MTU_DISCOVER , - (char *) &opt,sizeof (opt)); -if (ret <0 ) { -_debug ("setsockopt failed" ); - goto error; - } -/* Fall through and set IPv4 options too otherwise we don't get * errors from IPv4 packets sent through the IPv6 socket. */
net/rxrpc/output.c +12 -32
53 lines not on this page · raw message
net/sunrpc/svc_xprt.c +0 -3
@@ -878,9 +878,6 @@ int svc_send(struct svc_rqst *rqstp)if (!xprt) goto out; -/* release the receive skb before sending the reply */ - xprt->xpt_ops->xpo_release_rqst (rqstp); -/* calculate over-all length */ xb = &rqstp->rq_res; xb->len = xb->head[0].iov_len +
net/sunrpc/svcsock.c +4 -0
@@ -636,6 +636,8 @@ svc_udp_sendto(struct svc_rqst *rqstp) {int error; +svc_release_udp_skb (rqstp); + error =svc_sendto (rqstp, &rqstp->rq_res);if (error == -ECONNREFUSED )/* ICMP error on earlier request. */
@@ -1173,6 +1175,8 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp)int sent;__be32 reclen; +svc_release_skb (rqstp); +/* Set up the first element of the reply kvec. * Any other kvecs that may be in use have been taken * care of by the server implementation itself.
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +22 -0
@@ -226,6 +226,26 @@ void svc_rdma_recv_ctxt_put(struct svcxprt_rdma *rdma,svc_rdma_recv_ctxt_destroy (rdma, ctxt); } +/** +* svc_rdma_release_rqst - Release transport-specific per-rqst resources +* @rqstp: svc_rqst being released +* +* Ensure that the recv_ctxt is released whether or not a Reply +* was sent. For example, the client could close the connection, +* or svc_process could drop an RPC, before the Reply is sent. +*/ +void svc_rdma_release_rqst (struct svc_rqst *rqstp) +{ +struct svc_rdma_recv_ctxt *ctxt = rqstp->rq_xprt_ctxt; +struct svc_xprt *xprt = rqstp->rq_xprt; +struct svcxprt_rdma *rdma = + container_of(xprt, struct svcxprt_rdma, sc_xprt); + + rqstp->rq_xprt_ctxt =NULL ; +if (ctxt) +svc_rdma_recv_ctxt_put (rdma, ctxt); +} +static int __svc_rdma_post_recv (struct svcxprt_rdma *rdma,struct svc_rdma_recv_ctxt *ctxt) {
@@ -704,6 +724,8 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)__be32 *p;int ret; + rqstp->rq_xprt_ctxt =NULL ; +spin_lock (&rdma_xprt->sc_rq_dto_lock); ctxt =svc_rdma_next_recv_ctxt (&rdma_xprt->sc_read_complete_q);if (ctxt) {
net/sunrpc/xprtrdma/svc_rdma_rw.c +1 -2
@@ -331,8 +331,6 @@ static int svc_rdma_post_chunk_ctxt(struct svc_rdma_chunk_ctxt *cc)if (atomic_sub_return (cc->cc_sqecount, &rdma->sc_sq_avail) >0 ) { ret =ib_post_send (rdma->sc_qp, first_wr, &bad_wr); -trace_svcrdma_post_rw (&cc->cc_cqe, - cc->cc_sqecount, ret);if (ret)break ;return 0 ;
@@ -345,6 +343,7 @@ static int svc_rdma_post_chunk_ctxt(struct svc_rdma_chunk_ctxt *cc)trace_svcrdma_sq_retry (rdma); }while (1 ); +trace_svcrdma_sq_post_err (rdma, ret);set_bit (XPT_CLOSE , &xprt->xpt_flags);/* If even one was posted, there will be a completion. */
net/sunrpc/xprtrdma/svc_rdma_sendto.c +12 -17
@@ -310,15 +310,17 @@ int svc_rdma_send(struct svcxprt_rdma *rdma, struct ib_send_wr *wr) }svc_xprt_get (&rdma->sc_xprt); +trace_svcrdma_post_send (wr); ret =ib_post_send (rdma->sc_qp, wr,NULL ); -trace_svcrdma_post_send (wr, ret); -if (ret) { -set_bit (XPT_CLOSE , &rdma->sc_xprt.xpt_flags); -svc_xprt_put (&rdma->sc_xprt); -wake_up (&rdma->sc_send_wait); - } -break ; +if (ret) +break ; +return 0 ; } + +trace_svcrdma_sq_post_err (rdma, ret); +set_bit (XPT_CLOSE , &rdma->sc_xprt.xpt_flags); +svc_xprt_put (&rdma->sc_xprt); +wake_up (&rdma->sc_send_wait);return ret; }
@@ -906,12 +908,7 @@ int svc_rdma_sendto(struct svc_rqst *rqstp) wr_lst, rp_ch);if (ret <0 ) goto err1; - ret =0 ; - -out: - rqstp->rq_xprt_ctxt =NULL ; -svc_rdma_recv_ctxt_put (rdma, rctxt); -return ret; +return 0 ; err2:if (ret != -E2BIG && ret != -EINVAL )
@@ -920,14 +917,12 @@ int svc_rdma_sendto(struct svc_rqst *rqstp) ret =svc_rdma_send_error_msg (rdma, sctxt, rqstp);if (ret <0 ) goto err1; - ret =0 ; - goto out; +return 0 ; err1:svc_rdma_send_ctxt_put (rdma, sctxt); err0:trace_svcrdma_send_failed (rqstp, ret);set_bit (XPT_CLOSE , &xprt->xpt_flags); - ret = -ENOTCONN ; - goto out; +return -ENOTCONN ; }
net/sunrpc/xprtrdma/svc_rdma_transport.c +0 -5
@@ -71,7 +71,6 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, struct sockaddr *sa, int salen, int flags);static struct svc_xprt *svc_rdma_accept (struct svc_xprt *xprt); -static void svc_rdma_release_rqst (struct svc_rqst *);static void svc_rdma_detach (struct svc_xprt *xprt);static void svc_rdma_free (struct svc_xprt *xprt);static int svc_rdma_has_wspace (struct svc_xprt *xprt);
@@ -616,10 +615,6 @@ static struct svc_xprt *svc_rdma_accept(struct svc_xprt *xprt)return NULL ; } -static void svc_rdma_release_rqst (struct svc_rqst *rqstp) -{ -} -/* * When connected, an svc_xprt has at least two references: *
sound/pci/hda/hda_intel.c +11 -6
@@ -2054,7 +2054,7 @@ static int azx_first_init(struct azx *chip)/* codec detection */ if (!azx_bus (chip)->codec_mask) {dev_err (card->dev,"no codecs found!\n" ); -return -ENODEV ; +/* keep running the rest for the runtime PM */ }if (azx_acquire_irq (chip,0 ) <0 )
@@ -2440,9 +2440,11 @@ static int azx_probe_continue(struct azx *chip)#endif /* create codec instances */ - err =azx_probe_codecs (chip, azx_max_codecs[chip->driver_type]); -if (err <0 ) - goto out_free; +if (bus->codec_mask) { + err =azx_probe_codecs (chip, azx_max_codecs[chip->driver_type]); +if (err <0 ) + goto out_free; + }#ifdef CONFIG_SND_HDA_PATCH_LOADER if (chip->fw) {
@@ -2456,7 +2458,7 @@ static int azx_probe_continue(struct azx *chip) #endif }#endif -if ((probe_only[dev] &1 ) ==0 ) { +if (bus->codec_mask && !(probe_only[dev] &1 )) { err =azx_codec_configure (chip);if (err <0 ) goto out_free;
@@ -2473,8 +2475,11 @@ static int azx_probe_continue(struct azx *chip)set_default_power_save (chip); -if (azx_has_pm_runtime (chip)) +if (azx_has_pm_runtime (chip)) { +pm_runtime_use_autosuspend (&pci->dev); +pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); + } out_free: if ((chip->driver_caps & AZX_DCAPS_I915_POWERWELL)
sound/soc/codecs/tas571x.c +15 -5
@@ -824,8 +824,10 @@ static int tas571x_i2c_probe(struct i2c_client *client, priv->regmap =devm_regmap_init (dev,NULL , client, priv->chip->regmap_config); -if (IS_ERR (priv->regmap)) -return PTR_ERR (priv->regmap); +if (IS_ERR (priv->regmap)) { + ret =PTR_ERR (priv->regmap); + goto disable_regs; + } priv->pdn_gpio =devm_gpiod_get_optional (dev,"pdn" ,GPIOD_OUT_LOW );if (IS_ERR (priv->pdn_gpio)) {
@@ -849,7 +851,7 @@ static int tas571x_i2c_probe(struct i2c_client *client, ret =regmap_write (priv->regmap,TAS571X_OSC_TRIM_REG ,0 );if (ret) -return ret; + goto disable_regs;usleep_range (50000 ,60000 );
@@ -865,12 +867,20 @@ static int tas571x_i2c_probe(struct i2c_client *client,*/ ret =regmap_update_bits (priv->regmap,TAS571X_MVOL_REG ,1 ,0 );if (ret) -return ret; + goto disable_regs; } -return devm_snd_soc_register_component (&client->dev, + ret =devm_snd_soc_register_component (&client->dev, &priv->component_driver, &tas571x_dai,1 ); +if (ret) + goto disable_regs; + +return ret; + +disable_regs: +regulator_bulk_disable (priv->chip->num_supply_names, priv->supplies); +return ret; }static int tas571x_i2c_remove (struct i2c_client *client)
sound/soc/codecs/wm8960.c +1 -2
@@ -863,8 +863,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream, wm8960->is_stream_in_use[tx] = true; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON && - !wm8960->is_stream_in_use[!tx]) +if (!wm8960->is_stream_in_use[!tx])return wm8960_configure_clocking (component);return 0 ;
sound/soc/qcom/qdsp6/q6afe-dai.c +16 -0
@@ -899,6 +899,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { SNDRV_PCM_RATE_16000, .formats =SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -914,6 +916,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { SNDRV_PCM_RATE_16000, .formats =SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -928,6 +932,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .formats = SNDRV_PCM_FMTBIT_S16_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -943,6 +949,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { SNDRV_PCM_RATE_16000, .formats =SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -957,6 +965,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .formats = SNDRV_PCM_FMTBIT_S16_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -972,6 +982,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { SNDRV_PCM_RATE_16000, .formats =SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -986,6 +998,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .formats = SNDRV_PCM_FMTBIT_S16_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
@@ -1001,6 +1015,8 @@ static struct snd_soc_dai_driver q6afe_dais[] = { SNDRV_PCM_RATE_16000, .formats =SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, + .channels_min = 1, + .channels_max = 8, .rate_min = 8000, .rate_max = 48000, },
tools/objtool/check.c +15 -2
@@ -2086,14 +2086,27 @@ static bool ignore_unreachable_insn(struct instruction *insn) !strcmp(insn->sec->name, ".altinstr_aux"))return true; +if (!insn->func) +return false; + +/* +* CONFIG_UBSAN_TRAP inserts a UD2 when it sees +* __builtin_unreachable(). The BUG() macro has an unreachable() after +* the UD2, which causes GCC's undefined trap logic to emit another UD2 +* (or occasionally a JMP to UD2). +*/ +if (list_prev_entry (insn, list)->dead_end && + (insn->type ==INSN_BUG || + (insn->type ==INSN_JUMP_UNCONDITIONAL && + insn->jump_dest && insn->jump_dest->type ==INSN_BUG ))) +return true; +/* * Check if this (or a subsequent) instruction is related to * CONFIG_UBSAN or CONFIG_KASAN. * * End the search at 5 instructions to avoid going into the weeds. */ -if (!insn->func) -return false;for (i =0 ; i <5 ; i++) {if (is_kasan_insn (insn) ||is_ubsan_insn (insn))
tools/objtool/orc_dump.c +27 -17
68 lines not on this page · raw message