Linux 4.13.4
Greg KH
maintainerI'm announcing the release of the 4.13.4 kernel.
All users of the 4.13 kernel series must upgrade.
The updated 4.13.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.13.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/dev-tools/gdb-kernel-debugging.rst | 6 Makefile | 2 arch/arc/kernel/entry.S | 6 arch/arc/mm/tlb.c | 3 arch/mips/math-emu/dp_fmax.c | 84 +++++-- arch/mips/math-emu/dp_fmin.c | 86 +++++-- arch/mips/math-emu/dp_maddf.c | 246 +++++++++++++-------- arch/mips/math-emu/ieee754int.h | 4 arch/mips/math-emu/ieee754sp.h | 4 arch/mips/math-emu/sp_fmax.c | 84 +++++-- arch/mips/math-emu/sp_fmin.c | 86 +++++-- arch/mips/math-emu/sp_maddf.c | 229 +++++++++---------- arch/powerpc/kernel/align.c | 119 ++++++---- arch/powerpc/platforms/powernv/npu-dma.c | 12 - arch/powerpc/platforms/pseries/hotplug-memory.c | 4 arch/s390/include/asm/mmu.h | 2 arch/s390/include/asm/mmu_context.h | 8 arch/s390/include/asm/tlbflush.h | 30 -- block/blk-core.c | 9 block/blk-mq.c | 16 + block/blk-mq.h | 1 crypto/algif_skcipher.c | 4 crypto/scompress.c | 4 drivers/block/skd_main.c | 21 + drivers/crypto/caam/caamalg_qi.c | 11 drivers/crypto/ccp/ccp-crypto-aes-xts.c | 4 drivers/crypto/ccp/ccp-dev-v5.c | 2 drivers/crypto/ccp/ccp-dev.h | 2 drivers/crypto/ccp/ccp-ops.c | 43 ++- drivers/devfreq/devfreq.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 drivers/infiniband/hw/hfi1/init.c | 1 drivers/infiniband/hw/hfi1/rc.c | 3 drivers/infiniband/hw/mlx5/mr.c | 18 + drivers/infiniband/hw/qib/qib_rc.c | 4 drivers/input/joystick/xpad.c | 10 drivers/input/serio/i8042-x86ia64io.h | 7 drivers/mailbox/bcm-flexrm-mailbox.c | 2 drivers/md/bcache/bcache.h | 1 drivers/md/bcache/request.c | 12 - drivers/md/bcache/super.c | 7 drivers/md/bcache/sysfs.c | 4 drivers/md/bcache/util.c | 50 ++-- drivers/md/bcache/writeback.c | 20 + drivers/md/bcache/writeback.h | 21 + drivers/md/bitmap.c | 9 drivers/media/i2c/adv7180.c | 2 drivers/media/platform/qcom/venus/helpers.c | 2 drivers/media/rc/lirc_dev.c | 4 drivers/media/usb/uvc/uvc_ctrl.c | 7 drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 3 drivers/misc/cxl/api.c | 4 drivers/misc/cxl/file.c | 8 drivers/net/wireless/ath/wcn36xx/main.c | 52 ++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 3 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 62 ++++- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h | 3 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 3 drivers/pci/hotplug/pciehp_hpc.c | 8 drivers/pci/hotplug/shpchp_hpc.c | 2 drivers/pinctrl/pinctrl-amd.c | 75 ++++++ drivers/pinctrl/pinctrl-amd.h | 1 drivers/pinctrl/samsung/pinctrl-exynos.c | 8 drivers/pinctrl/samsung/pinctrl-s3c24xx.c | 37 +-- drivers/pinctrl/samsung/pinctrl-s3c64xx.c | 40 +-- drivers/pinctrl/samsung/pinctrl-samsung.c | 6 drivers/pinctrl/samsung/pinctrl-samsung.h | 5 drivers/regulator/cpcap-regulator.c | 8 drivers/s390/scsi/zfcp_dbf.c | 33 ++ drivers/s390/scsi/zfcp_dbf.h | 17 + drivers/s390/scsi/zfcp_fc.h | 6 drivers/s390/scsi/zfcp_fsf.c | 7 drivers/s390/scsi/zfcp_scsi.c | 16 - drivers/scsi/aacraid/aachba.c | 54 +--- drivers/scsi/megaraid/megaraid_sas_base.c | 16 + drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 drivers/scsi/qedi/qedi_main.c | 2 drivers/scsi/qla2xxx/qla_attr.c | 8 drivers/scsi/qla2xxx/qla_gs.c | 2 drivers/scsi/qla2xxx/qla_init.c | 1 drivers/scsi/qla2xxx/qla_isr.c | 2 drivers/scsi/qla2xxx/qla_mbx.c | 3 drivers/scsi/qla2xxx/qla_mid.c | 2 drivers/scsi/qla2xxx/qla_target.c | 2 drivers/scsi/sg.c | 64 +++-- drivers/scsi/storvsc_drv.c | 2 drivers/tty/tty_buffer.c | 26 ++ fs/ext4/file.c | 4 fs/ext4/super.c | 38 ++- fs/orangefs/acl.c | 48 ++-- include/linux/ccp.h | 3 include/linux/cpuset.h | 6 include/linux/ftrace.h | 4 include/linux/tty_flip.h | 3 include/linux/uaccess.h | 2 kernel/cgroup/cpuset.c | 16 + kernel/cpu.c | 12 - kernel/power/process.c | 5 kernel/rcu/srcutree.c | 9 kernel/sched/core.c | 7 kernel/trace/ftrace.c | 10 kernel/trace/trace.c | 10 kernel/trace/trace_events.c | 2 kernel/trace/trace_selftest.c | 2 net/netfilter/nf_conntrack_core.c | 52 ++-- sound/core/seq_device.c | 3 107 files changed, 1462 insertions(+), 693 deletions(-)
Aleksandar Markovic (10):
MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix quiet NaN propagation
MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix cases of both inputs zero
MIPS: math-emu: <MAX|MIN>.<D|S>: Fix cases of both inputs negative
MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of input values with opposite signs
MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of both infinite inputs MIPS: math-emu: MINA.<D|S>: Fix some cases of infinity and zero inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of zero inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Clean up "maddf_flags" enumeration
Aleksandr Bezzubikov (1):
PCI: shpchp: Enable bridge bus mastering if MSI is enabled
Alex Estrin (1):
IB/hfi1: Revert egress pkey check enforcement
Alistair Popple (1):
powerpc/powernv/npu: Move tlb flush before launching ATSD
Anup Patel (1):
mailbox: bcm-flexrm-mailbox: Fix mask used in CMPL_START_ADDR_VALUE()
Ard Biesheuvel (1):
crypto: scompress - don't sleep with preemption disabled
Arnd Bergmann (3):
tty: improve tty_insert_flip_char() fast path
tty: improve tty_insert_flip_char() slow path
tty: fix __tty_insert_flip_char regression
Baohong Liu (1):
tracing: Apply trace_clock changes to instance max buffer
Bart Van Assche (4):
<linux/uaccess.h>: Fix copy_in_user() declaration
block: Relax a check in blk_start_queue()
skd: Avoid that module unloading triggers a use-after-free
skd: Submit requests to firmware before triggering the doorbell
Benjamin Block (1):
scsi: zfcp: add handling for FCP_RESID_OVER to the fcp ingress path
Bjorn Andersson (1):
wcn36xx: Introduce mutual exclusion of fw configuration
Brian King (1):
scsi: aacraid: Fix command send race condition
Cameron Gutman (1):
Input: xpad - validate USB endpoint type during probe
Chanwoo Choi (1):
PM / devfreq: Fix memory leak when fail to register device
Chunyu Hu (1):
tracing: Fix clear of RECORDED_TGID flag when disabling trace event
Dan Carpenter (2):
scsi: qedi: off by one in qedi_get_cmd_from_tid()
scsi: qla2xxx: Fix an integer overflow in sysfs code
Daniel Drake (1):
pinctrl/amd: save pin registers over suspend/resume
Daniel Mentz (1):
media: v4l2-compat-ioctl32: Fix timespec conversion
Darrick J. Wong (1):
ext4: in ext4_seek_{hole,data}, return -ENXIO for negative offsets
Douglas Leung (2):
MIPS: math-emu: <MADDF|MSUBF>.S: Fix accuracy (32-bit case)
MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case)
Ethan Barnes (1):
smp/hotplug: Handle removal correctly in cpuhp_store_callbacks()
Frederic Barrat (1):
cxl: Fix driver use count
Gary R Hook (1):
crypto: ccp - Fix XTS-AES-128 support on v5 CCPs
Greg Kroah-Hartman (1):
Linux 4.13.4
Guenter Roeck (1):
media: uvcvideo: Prevent heap overflow when accessing mapped controls
Gustavo A. R. Silva (1):
media: venus: fix copy/paste error in return_buf_error
Hannes Reinecke (2):
scsi: sg: factor out sg_fill_request_table()
scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE
Horia Geantă (2):
crypto: caam/qi - fix typo in authenc alg driver name
crypto: caam/qi - properly set IV after {en,de}crypt
Jan Kara (2):
orangefs: Don't clear SGID when inheriting ACLs
bcache: Fix leak of bdev reference
Jens Axboe (1):
block: directly insert blk-mq request from blk_insert_cloned_request()
Joe Carnuccio (1):
scsi: qla2xxx: Correction to vha->vref_count timeout
John Allen (1):
powerpc/pseries: Don't attempt to acquire drc during memory hot add for assigned lmbs
Jose Abreu (1):
ARC: Re-enable MMU upon Machine Check exception
Kai-Heng Feng (1):
Input: i8042 - add Gigabyte P57 to the keyboard reset table
Keith Busch (1):
PCI: pciehp: Report power fault only once until we clear it
Krzysztof Kozlowski (2):
pinctrl: samsung: Fix invalid register offset used for Exynos5433 external interrupts
pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx
Long Li (1):
scsi: storvsc: fix memory leak on ring buffer busy
Luca Coelho (1):
iwlwifi: add workaround to disable wide channels in 5GHz
Majd Dibbiny (1):
IB/mlx5: Fix cached MR allocation flow
Manfred Spraul (1):
net/netfilter/nf_conntrack_core: Fix net_conntrack_lock()
Martin Schwidefsky (2):
s390/mm: fix local TLB flushing vs. detach of an mm address space s390/mm: fix race on mm->context.flush_mm
Michael Ellerman (1):
powerpc: Fix DAR reporting when alignment handler faults
Michael Hernandez (1):
scsi: qla2xxx: Fix target multiqueue configuration
Michael Lyle (1):
bcache: fix bch_hprint crash and improve output
Mike Marciniszyn (1):
IB/{qib, hfi1}: Avoid flow control testing for RDMA write operation
NeilBrown (1):
md/bitmap: disable bitmap_resize for file-backed bitmaps.
Paul E. McKenney (1):
srcu: Provide ordering for CPU not involved in grace period
Peter Zijlstra (1):
sched/cpuset/pm: Fix cpuset vs. suspend-resume bugs
Quinn Tran (1):
scsi: qla2xxx: Use fabric name for Get Port Speed command
Sawan Chandak (1):
scsi: qla2xxx: Use BIT_6 to acquire FAWWPN from switch
Sean Young (1):
media: Revert "[media] lirc_dev: remove superfluous get/put_device() calls"
Sebastian Reichel (1):
regulator: cpcap: Fix standby mode
Shaohua Li (1):
md/bitmap: copy correct data for bitmap super
Shivasharan S (4):
scsi: megaraid_sas: mismatch of allocated MFI frame size and length exposed in MFI MPT pass through command
scsi: megaraid_sas: set minimum value of resetwaittime to be 1 secs
scsi: megaraid_sas: Check valid aen class range to avoid kernel panic
scsi: megaraid_sas: Return pended IOCTLs with cmd_status MFI_STAT_WRONG_STATE in case adapter is dead
Steffen Maier (7):
scsi: zfcp: fix queuecommand for scsi_eh commands when DIX enabled
scsi: zfcp: fix capping of unsuccessful GPN_FT SAN response trace records
scsi: zfcp: fix passing fsf_req to SCSI trace on TMF to correlate with HBA
scsi: zfcp: fix missing trace records for early returns in TMF eh handlers
scsi: zfcp: fix payload with full FCP_RSP IU in SCSI trace records
scsi: zfcp: trace HBA FSF response by default on dismiss or timedout late response
scsi: zfcp: trace high part of "new" 64 bit SCSI LUN
Stephan Mueller (1):
crypto: AF_ALG - remove SGL terminator indicator when chaining
Steven Rostedt (VMware) (3):
ftrace: Fix selftest goto location on error
ftrace: Fix memleak when unregistering dynamic ops when tracing disabled
tracing: Add barrier to trace_printk() buffer nesting modification
Takashi Iwai (1):
ALSA: seq: Cancel pending autoload work at unbinding device
Tang Junhui (5):
bcache: initialize dirty stripes in flash_dev_run()
bcache: do not subtract sectors_to_gc for bypassed IO
bcache: correct cache_dirty_target in __update_writeback_rate()
bcache: fix sequential large write IO bypass
bcache: fix for gc and write-back race
Tony Asleson (1):
bcache: Correct return value for sysfs attach errors
Ulrich Hecht (1):
media: adv7180: add missing adv7180cp, adv7180st i2c device IDs
Zev Weiss (1):
ftrace: Fix debug preempt config name in stack_tracer_{en,dis}able
Zhang, Jerry (1):
drm/amdgpu: read reg in each iterator of psp_wait_for loop
Zhouyi Zhou (1):
docs: disable KASLR when debugging kernel
[email protected] (1):
scsi: qla2xxx: Update fw_started flags at qpair creation.
zhangyi (F) (2):
ext4: fix incorrect quotaoff if the quota feature is enabled
ext4: fix quota inconsistency during orphan cleanup for read-only mounts
Greg KH
maintainerDocumentation/dev-tools/gdb-kernel-debugging.rst +4 -2
@@ -31,11 +31,13 @@ Setup CONFIG_DEBUG_INFO_REDUCED off. If your architecture supports CONFIG_FRAME_POINTER, keep it enabled. -- Install that kernel on the guest. +- Install that kernel on the guest, turn off KASLR if necessary by adding + "nokaslr" to the kernel command line. Alternatively, QEMU allows to boot the kernel directly using -kernel, -append, -initrd command line switches. This is generally only useful if you do not depend on modules. See QEMU documentation for more details on - this mode. + this mode. In this case, you should build the kernel with + CONFIG_RANDOMIZE_BASE disabled if the architecture supports KASLR. - Enable the gdb stub of QEMU/KVM, either
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 13 -SUBLEVEL = 3 +SUBLEVEL = 4 EXTRAVERSION = NAME = Fearless Coyote
arch/arc/kernel/entry.S +6 -0
@@ -92,6 +92,12 @@ ENTRY(EV_MachineCheck) lr r0, [efa] mov r1, sp + ; hardware auto-disables MMU, re-enable it to allow kernel vaddr + ; access for say stack unwinding of modules for crash dumps + lr r3, [ARC_REG_PID] + or r3, r3, MMU_ENABLE + sr r3, [ARC_REG_PID] + lsr r3, r2, 8 bmsk r3, r3, 7 brne r3, ECR_C_MCHK_DUP_TLB, 1f
arch/arc/mm/tlb.c +0 -3
@@ -908,9 +908,6 @@ void do_tlb_overlap_fault(unsigned long cause, unsigned long address,local_irq_save (flags); -/* re-enable the MMU */ -write_aux_reg (ARC_REG_PID ,MMU_ENABLE |read_aux_reg (ARC_REG_PID )); -/* loop thru all sets of TLB */ for (set =0 ; set < mmu->sets; set++) {
arch/mips/math-emu/dp_fmax.c +63 -21
145 lines not on this page · raw message
arch/mips/math-emu/dp_fmin.c +64 -22
149 lines not on this page · raw message
arch/mips/math-emu/dp_maddf.c +154 -92
369 lines not on this page · raw message
arch/mips/math-emu/ieee754int.h +4 -0
@@ -26,6 +26,10 @@#define CLPAIR (x, y) ((x)*6+(y)) +enum maddf_flags { +MADDF_NEGATE_PRODUCT =1 <<0 , +}; +static inline void ieee754_clearcx (void ) { ieee754_csr.cx =0 ;
arch/mips/math-emu/ieee754sp.h +4 -0
@@ -45,6 +45,10 @@ static inline int ieee754sp_finite(union ieee754sp x)return SPBEXP (x) !=SP_EMAX +1 +SP_EBIAS ; } +/* 64 bit right shift with rounding */ +#define XSPSRS64 (v, rs) \ + (((rs) >= 64) ? ((v) != 0) : ((v) >> (rs)) | ((v) << (64-(rs)) != 0)) +/* 3bit extended single precision sticky right shift */ #define XSPSRS (v, rs) \ ((rs > (SP_FBITS+3))?1:((v) >> (rs)) | ((v) << (32-(rs)) != 0))
arch/mips/math-emu/sp_fmax.c +63 -21
145 lines not on this page · raw message
arch/mips/math-emu/sp_fmin.c +64 -22
149 lines not on this page · raw message
arch/mips/math-emu/sp_maddf.c +107 -122
338 lines not on this page · raw message
arch/powerpc/kernel/align.c +74 -45
226 lines not on this page · raw message
arch/powerpc/platforms/powernv/npu-dma.c +6 -6
@@ -545,6 +545,12 @@ static void mmio_invalidate(struct npu_context *npu_context, int va,struct mmio_atsd_reg mmio_atsd_reg[NV_MAX_NPUS ];unsigned long pid = npu_context->mm->context.id; +/* +* Unfortunately the nest mmu does not support flushing specific +* addresses so we have to flush the whole mm. +*/ +flush_tlb_mm (npu_context->mm); +/* * Loop over all the NPUs this process is active on and launch * an invalidate.
@@ -576,12 +582,6 @@ static void mmio_invalidate(struct npu_context *npu_context, int va, } } -/* -* Unfortunately the nest mmu does not support flushing specific -* addresses so we have to flush the whole mm. -*/ -flush_tlb_mm (npu_context->mm); -mmio_invalidate_wait (mmio_atsd_reg, flush);if (flush)/* Wait for the flush to complete */
arch/powerpc/platforms/pseries/hotplug-memory.c +4 -0
@@ -817,6 +817,9 @@ static int dlpar_memory_add_by_count(u32 lmbs_to_add, struct property *prop)return -EINVAL ;for (i =0 ; i < num_lmbs && lmbs_to_add != lmbs_added; i++) { +if (lmbs[i].flags &DRCONF_MEM_ASSIGNED ) +continue ; + rc =dlpar_acquire_drc (lmbs[i].drc_index);if (rc)continue ;
@@ -859,6 +862,7 @@ static int dlpar_memory_add_by_count(u32 lmbs_to_add, struct property *prop) lmbs[i].base_addr, lmbs[i].drc_index); lmbs[i].reserved =0 ; } + rc =0 ; }return rc;
arch/s390/include/asm/mmu.h +2 -0
@@ -5,6 +5,7 @@#include <linux/errno.h> typedef struct { + spinlock_t lock; cpumask_t cpu_attach_mask; atomic_t flush_count; unsigned int flush_mm;
@@ -27,6 +28,7 @@ typedef struct { } mm_context_t;#define INIT_MM_CONTEXT (name) \ + .context.lock = __SPIN_LOCK_UNLOCKED(name.context.lock), \ .context.pgtable_lock = \ __SPIN_LOCK_UNLOCKED(name.context.pgtable_lock), \ .context.pgtable_list = LIST_HEAD_INIT(name.context.pgtable_list), \
arch/s390/include/asm/mmu_context.h +4 -4
@@ -16,6 +16,7 @@static inline int init_new_context (struct task_struct *tsk,struct mm_struct *mm) { +spin_lock_init (&mm->context.lock);spin_lock_init (&mm->context.pgtable_lock);INIT_LIST_HEAD (&mm->context.pgtable_list);spin_lock_init (&mm->context.gmap_lock);
@@ -102,7 +103,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,if (prev == next)return ;cpumask_set_cpu (cpu, &next->context.cpu_attach_mask); -cpumask_set_cpu (cpu,mm_cpumask (next));/* Clear old ASCE by loading the kernel ASCE. */ __ctl_load (S390_lowcore.kernel_asce,1 ,1 );__ctl_load (S390_lowcore.kernel_asce,7 ,7 );
@@ -120,9 +120,8 @@ static inline void finish_arch_post_lock_switch(void)preempt_disable ();while (atomic_read (&mm->context.flush_count))cpu_relax (); - -if (mm->context.flush_mm) -__tlb_flush_mm (mm); +cpumask_set_cpu (smp_processor_id (),mm_cpumask (mm)); +__tlb_flush_mm_lazy (mm);preempt_enable (); }set_fs (current->thread.mm_segment);
@@ -135,6 +134,7 @@ static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) {switch_mm (prev, next, current); +cpumask_set_cpu (smp_processor_id (),mm_cpumask (next));set_user_asce (next); }
arch/s390/include/asm/tlbflush.h +8 -22
@@ -43,23 +43,6 @@ static inline void __tlb_flush_global(void)* Flush TLB entries for a specific mm on all CPUs (in case gmap is used * this implicates multiple ASCEs!). */ -static inline void __tlb_flush_full (struct mm_struct *mm) -{ -preempt_disable (); -atomic_inc (&mm->context.flush_count); -if (cpumask_equal (mm_cpumask (mm),cpumask_of (smp_processor_id ()))) { -/* Local TLB flush */ -__tlb_flush_local (); - }else { -/* Global TLB flush */ -__tlb_flush_global (); -/* Reset TLB flush mask */ -cpumask_copy (mm_cpumask (mm), &mm->context.cpu_attach_mask); - } -atomic_dec (&mm->context.flush_count); -preempt_enable (); -} -static inline void __tlb_flush_mm (struct mm_struct *mm) {unsigned long gmap_asce;
@@ -71,16 +54,18 @@ static inline void __tlb_flush_mm(struct mm_struct *mm)*/ preempt_disable ();atomic_inc (&mm->context.flush_count); +/* Reset TLB flush mask */ +cpumask_copy (mm_cpumask (mm), &mm->context.cpu_attach_mask); +barrier (); gmap_asce =READ_ONCE (mm->context.gmap_asce);if (MACHINE_HAS_IDTE && gmap_asce !=-1UL ) {if (gmap_asce)__tlb_flush_idte (gmap_asce);__tlb_flush_idte (mm->context.asce); }else { -__tlb_flush_full (mm); +/* Global TLB flush */ +__tlb_flush_global (); } -/* Reset TLB flush mask */ -cpumask_copy (mm_cpumask (mm), &mm->context.cpu_attach_mask);atomic_dec (&mm->context.flush_count);preempt_enable (); }
@@ -94,7 +79,6 @@ static inline void __tlb_flush_kernel(void) }#else #define __tlb_flush_global () __tlb_flush_local() -#define __tlb_flush_full (mm) __tlb_flush_local()/* * Flush TLB entries for a specific ASCE on all CPUs.
@@ -112,10 +96,12 @@ static inline void __tlb_flush_kernel(void)static inline void __tlb_flush_mm_lazy (struct mm_struct * mm) { +spin_lock (&mm->context.lock);if (mm->context.flush_mm) { -__tlb_flush_mm (mm); mm->context.flush_mm =0 ; +__tlb_flush_mm (mm); } +spin_unlock (&mm->context.lock); }/*
block/blk-core.c +7 -2
@@ -280,7 +280,7 @@ EXPORT_SYMBOL(blk_start_queue_async);void blk_start_queue (struct request_queue *q) {lockdep_assert_held (q->queue_lock); -WARN_ON (!irqs_disabled ()); +WARN_ON (!in_interrupt () && !irqs_disabled ());WARN_ON_ONCE (q->mq_ops);queue_flag_clear (QUEUE_FLAG_STOPPED , q);
@@ -2330,7 +2330,12 @@ blk_status_t blk_insert_cloned_request(struct request_queue *q, struct request *if (q->mq_ops) {if (blk_queue_io_stat (q))blk_account_io_start (rq, true); -blk_mq_sched_insert_request (rq, false, true, false, false); +/* +* Since we have a scheduler attached on the top device, +* bypass a potential scheduler on the bottom device for +* insert. +*/ +blk_mq_request_bypass_insert (rq);return BLK_STS_OK ; }
block/blk-mq.c +16 -0
@@ -1357,6 +1357,22 @@ void __blk_mq_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq,blk_mq_hctx_mark_pending (hctx, ctx); } +/* +* Should only be used carefully, when the caller knows we want to +* bypass a potential IO scheduler on the target device. +*/ +void blk_mq_request_bypass_insert (struct request *rq) +{ +struct blk_mq_ctx *ctx = rq->mq_ctx; +struct blk_mq_hw_ctx *hctx =blk_mq_map_queue (rq->q, ctx->cpu); + +spin_lock (&hctx->lock); +list_add_tail (&rq->queuelist, &hctx->dispatch); +spin_unlock (&hctx->lock); + +blk_mq_run_hw_queue (hctx, false); +} +void blk_mq_insert_requests (struct blk_mq_hw_ctx *hctx,struct blk_mq_ctx *ctx,struct list_head *list)
block/blk-mq.h +1 -0
@@ -54,6 +54,7 @@ int blk_mq_alloc_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,*/ void __blk_mq_insert_request (struct blk_mq_hw_ctx *hctx,struct request *rq,bool at_head); +void blk_mq_request_bypass_insert (struct request *rq);void blk_mq_insert_requests (struct blk_mq_hw_ctx *hctx,struct blk_mq_ctx *ctx,struct list_head *list);
crypto/algif_skcipher.c +3 -1
@@ -144,8 +144,10 @@ static int skcipher_alloc_sgl(struct sock *sk)sg_init_table (sgl->sg,MAX_SGL_ENTS +1 ); sgl->cur =0 ; -if (sg) +if (sg) {sg_chain (sg,MAX_SGL_ENTS +1 , sgl->sg); +sg_unmark_end (sg + (MAX_SGL_ENTS -1 )); + }list_add_tail (&sgl->list, &ctx->tsgl); }
crypto/scompress.c +1 -3
@@ -211,9 +211,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) scratch_dst, &req->dlen, *ctx);if (!ret) {if (!req->dst) { - req->dst =crypto_scomp_sg_alloc (req->dlen, - req->base.flags &CRYPTO_TFM_REQ_MAY_SLEEP ? -GFP_KERNEL :GFP_ATOMIC ); + req->dst =crypto_scomp_sg_alloc (req->dlen,GFP_ATOMIC );if (!req->dst) goto out; }
drivers/block/skd_main.c +14 -7
@@ -2160,6 +2160,9 @@ static void skd_send_fitmsg(struct skd_device *skdev,*/ qcmd |=FIT_QCMD_MSGSIZE_64 ; +/* Make sure skd_msg_buf is written before the doorbell is triggered. */ +smp_wmb (); +SKD_WRITEQ (skdev, qcmd,FIT_Q_COMMAND ); }
@@ -2202,6 +2205,9 @@ static void skd_send_special_fitmsg(struct skd_device *skdev, qcmd = skspcl->mb_dma_address; qcmd |=FIT_QCMD_QID_NORMAL +FIT_QCMD_MSGSIZE_128 ; +/* Make sure skd_msg_buf is written before the doorbell is triggered. */ +smp_wmb (); +SKD_WRITEQ (skdev, qcmd,FIT_Q_COMMAND ); }
@@ -4539,15 +4545,16 @@ static void skd_free_disk(struct skd_device *skdev) {struct gendisk *disk = skdev->disk; -if (disk !=NULL ) { -struct request_queue *q = disk->queue; +if (disk && (disk->flags &GENHD_FL_UP )) +del_gendisk (disk); -if (disk->flags &GENHD_FL_UP ) -del_gendisk (disk); -if (q) -blk_cleanup_queue (q); -put_disk (disk); +if (skdev->queue) { +blk_cleanup_queue (skdev->queue); + skdev->queue =NULL ; + disk->queue =NULL ; } + +put_disk (disk); skdev->disk =NULL ; }
drivers/crypto/caam/caamalg_qi.c +9 -2
@@ -776,9 +776,9 @@ static void ablkcipher_done(struct caam_drv_req *drv_req, u32 status)struct crypto_ablkcipher *ablkcipher =crypto_ablkcipher_reqtfm (req);struct caam_ctx *caam_ctx =crypto_ablkcipher_ctx (ablkcipher);struct device *qidev = caam_ctx->qidev; -#ifdef DEBUG int ivsize =crypto_ablkcipher_ivsize (ablkcipher); +#ifdef DEBUG dev_err (qidev,"%s %d: status 0x%x\n" , __func__, __LINE__, status);#endif
@@ -799,6 +799,13 @@ static void ablkcipher_done(struct caam_drv_req *drv_req, u32 status)ablkcipher_unmap (qidev, edesc, req);qi_cache_free (edesc); +/* +* The crypto API expects us to set the IV (req->info) to the last +* ciphertext block. This is used e.g. by the CTS mode. +*/ +scatterwalk_map_and_copy (req->info, req->dst, req->nbytes - ivsize, + ivsize,0 ); +ablkcipher_request_complete (req, status); }
@@ -1968,7 +1975,7 @@ static struct caam_aead_alg driver_aeads[] = { .cra_name = "echainiv(authenc(hmac(sha256)," "cbc(des)))", .cra_driver_name ="echainiv-authenc-" -"hmac-sha256-cbc-desi-" +"hmac-sha256-cbc-des-" "caam-qi", .cra_blocksize = DES_BLOCK_SIZE, },
drivers/crypto/ccp/ccp-crypto-aes-xts.c +3 -1
@@ -1,8 +1,9 @@/* * AMD Cryptographic Coprocessor (CCP) AES XTS crypto API support * -* Copyright (C) 2013 Advanced Micro Devices, Inc. +* Copyright (C) 2013,2017 Advanced Micro Devices, Inc. * +* Author: Gary R Hook <[email protected]> * Author: Tom Lendacky <[email protected]> * * This program is free software; you can redistribute it and/or modify
@@ -164,6 +165,7 @@ static int ccp_aes_xts_crypt(struct ablkcipher_request *req,memset (&rctx->cmd,0 ,sizeof (rctx->cmd));INIT_LIST_HEAD (&rctx->cmd.entry); rctx->cmd.engine =CCP_ENGINE_XTS_AES_128 ; + rctx->cmd.u.xts.type =CCP_AES_TYPE_128 ; rctx->cmd.u.xts.action = (encrypt) ?CCP_AES_ACTION_ENCRYPT :CCP_AES_ACTION_DECRYPT ; rctx->cmd.u.xts.unit_size = unit_size;
drivers/crypto/ccp/ccp-dev-v5.c +2 -0
@@ -145,6 +145,7 @@ union ccp_function {#define CCP_AES_MODE (p) ((p)->aes.mode)#define CCP_AES_TYPE (p) ((p)->aes.type)#define CCP_XTS_SIZE (p) ((p)->aes_xts.size) +#define CCP_XTS_TYPE (p) ((p)->aes_xts.type)#define CCP_XTS_ENCRYPT (p) ((p)->aes_xts.encrypt)#define CCP_DES3_SIZE (p) ((p)->des3.size)#define CCP_DES3_ENCRYPT (p) ((p)->des3.encrypt)
@@ -344,6 +345,7 @@ static int ccp5_perform_xts_aes(struct ccp_op *op)CCP5_CMD_PROT (&desc) =0 ; function.raw =0 ; +CCP_XTS_TYPE (&function) = op->u.xts.type;CCP_XTS_ENCRYPT (&function) = op->u.xts.action;CCP_XTS_SIZE (&function) = op->u.xts.unit_size;CCP5_CMD_FUNCTION (&desc) = function.raw;
drivers/crypto/ccp/ccp-dev.h +2 -0
@@ -192,6 +192,7 @@#define CCP_AES_CTX_SB_COUNT 1#define CCP_XTS_AES_KEY_SB_COUNT 1 +#define CCP5_XTS_AES_KEY_SB_COUNT 2#define CCP_XTS_AES_CTX_SB_COUNT 1#define CCP_DES3_KEY_SB_COUNT 1
@@ -497,6 +498,7 @@ struct ccp_aes_op { };struct ccp_xts_aes_op { +enum ccp_aes_type type;enum ccp_aes_action action;enum ccp_xts_aes_unit_size unit_size; };
drivers/crypto/ccp/ccp-ops.c +34 -9
70 lines not on this page · raw message
drivers/devfreq/devfreq.c +4 -1
@@ -564,7 +564,7 @@ struct devfreq *devfreq_add_device(struct device *dev, err =device_register (&devfreq->dev);if (err) {mutex_unlock (&devfreq->lock); - goto err_out; + goto err_dev; } devfreq->trans_table = devm_kzalloc(&devfreq->dev,
@@ -610,6 +610,9 @@ struct devfreq *devfreq_add_device(struct device *dev,mutex_unlock (&devfreq_list_lock);device_unregister (&devfreq->dev); +err_dev: +if (devfreq) +kfree (devfreq); err_out:return ERR_PTR (err); }
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -2
@@ -95,9 +95,8 @@ int psp_wait_for(struct psp_context *psp, uint32_t reg_index,int i;struct amdgpu_device *adev = psp->adev; - val =RREG32 (reg_index); -for (i =0 ; i < adev->usec_timeout; i++) { + val =RREG32 (reg_index);if (check_changed) {if (val != reg_val)return 0 ;
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +0 -2
@@ -237,11 +237,9 @@ int psp_v3_1_bootloader_load_sos(struct psp_context *psp)/* there might be handshake issue with hardware which needs delay */ mdelay (20 ); -#if 0 ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_81),RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_81),0 , true); -#endif return ret; }
drivers/infiniband/hw/hfi1/init.c +0 -1
@@ -483,7 +483,6 @@ void hfi1_init_pportdata(struct pci_dev *pdev, struct hfi1_pportdata *ppd, ppd->pkeys[default_pkey_idx] =DEFAULT_P_KEY ; ppd->part_enforce |=HFI1_PART_ENFORCE_IN ; - ppd->part_enforce |=HFI1_PART_ENFORCE_OUT ;if (loopback) { hfi1_early_err(&pdev->dev,
drivers/infiniband/hw/hfi1/rc.c +2 -1
@@ -425,7 +425,7 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)case IB_WR_RDMA_WRITE :if (newreq && !(qp->s_flags &RVT_S_UNLIMITED_CREDIT )) qp->s_lsn++; -/* FALLTHROUGH */ + goto no_flow_control;case IB_WR_RDMA_WRITE_WITH_IMM :/* If no credit, return. */ if (!(qp->s_flags & RVT_S_UNLIMITED_CREDIT) &&
@@ -433,6 +433,7 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) qp->s_flags |=RVT_S_WAIT_SSN_CREDIT ; goto bail; } +no_flow_control:put_ib_reth_vaddr ( wqe->rdma_wr.remote_addr, &ohdr->u.rc.reth);
drivers/infiniband/hw/mlx5/mr.c +13 -5
@@ -48,6 +48,7 @@ enum {#define MLX5_UMR_ALIGN 2048static int clean_mr (struct mlx5_ib_mr *mr); +static int max_umr_order (struct mlx5_ib_dev *dev);static int use_umr (struct mlx5_ib_dev *dev,int order);static int unreg_umr (struct mlx5_ib_dev *dev,struct mlx5_ib_mr *mr);
@@ -491,16 +492,18 @@ static struct mlx5_ib_mr *alloc_cached_mr(struct mlx5_ib_dev *dev, int order)struct mlx5_mr_cache *cache = &dev->cache;struct mlx5_ib_mr *mr =NULL ;struct mlx5_cache_ent *ent; +int last_umr_cache_entry;int c;int i; c =order2idx (dev, order); -if (c <0 || c >MAX_UMR_CACHE_ENTRY ) { + last_umr_cache_entry =order2idx (dev,max_umr_order (dev)); +if (c <0 || c > last_umr_cache_entry) {mlx5_ib_warn (dev,"order %d, cache index %d\n" , order, c);return NULL ; } -for (i = c; i <MAX_UMR_CACHE_ENTRY ; i++) { +for (i = c; i <= last_umr_cache_entry; i++) { ent = &cache->ent[i];mlx5_ib_dbg (dev,"order %d, cache index %d\n" , ent->order, i);
@@ -816,11 +819,16 @@ static int get_octo_len(u64 addr, u64 len, int page_size)return (npages +1 ) /2 ; } -static int use_umr (struct mlx5_ib_dev *dev,int order) +static int max_umr_order (struct mlx5_ib_dev *dev) {if (MLX5_CAP_GEN (dev->mdev, umr_extended_translation_offset)) -return order <=MAX_UMR_CACHE_ENTRY +2 ; -return order <=MLX5_MAX_UMR_SHIFT ; +return MAX_UMR_CACHE_ENTRY +2 ; +return MLX5_MAX_UMR_SHIFT ; +} + +static int use_umr (struct mlx5_ib_dev *dev,int order) +{ +return order <=max_umr_order (dev); } static int mr_umem_get(struct ib_pd *pd, u64 start, u64 length,
drivers/infiniband/hw/qib/qib_rc.c +2 -2
@@ -348,7 +348,7 @@ int qib_make_rc_req(struct rvt_qp *qp, unsigned long *flags)case IB_WR_RDMA_WRITE :if (newreq && !(qp->s_flags &RVT_S_UNLIMITED_CREDIT )) qp->s_lsn++; -/* FALLTHROUGH */ + goto no_flow_control;case IB_WR_RDMA_WRITE_WITH_IMM :/* If no credit, return. */ if (!(qp->s_flags & RVT_S_UNLIMITED_CREDIT) &&
@@ -356,7 +356,7 @@ int qib_make_rc_req(struct rvt_qp *qp, unsigned long *flags) qp->s_flags |=RVT_S_WAIT_SSN_CREDIT ; goto bail; } - +no_flow_control: ohdr->u.rc.reth.vaddr =cpu_to_be64 (wqe->rdma_wr.remote_addr); ohdr->u.rc.reth.rkey =
drivers/input/joystick/xpad.c +6 -4
@@ -1764,10 +1764,12 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *idstruct usb_endpoint_descriptor *ep = &intf->cur_altsetting->endpoint[i].desc; -if (usb_endpoint_dir_in (ep)) - ep_irq_in = ep; -else - ep_irq_out = ep; +if (usb_endpoint_xfer_int (ep)) { +if (usb_endpoint_dir_in (ep)) + ep_irq_in = ep; +else + ep_irq_out = ep; + } }if (!ep_irq_in || !ep_irq_out) {
drivers/input/serio/i8042-x86ia64io.h +7 -0
@@ -839,6 +839,13 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "P34"), }, }, + { +/* Gigabyte P57 - Elantech touchpad */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"GIGABYTE" ), + DMI_MATCH(DMI_PRODUCT_NAME, "P57"), + }, + }, {/* Schenker XMG C504 - Elantech touchpad */ .matches = {
drivers/mailbox/bcm-flexrm-mailbox.c +1 -1
@@ -95,7 +95,7 @@/* Register RING_CMPL_START_ADDR fields */ #define CMPL_START_ADDR_VALUE (pa) \ - ((u32)((((u64)(pa)) >> RING_CMPL_ALIGN_ORDER) & 0x03ffffff)) + ((u32)((((u64)(pa)) >> RING_CMPL_ALIGN_ORDER) & 0x07ffffff))/* Register RING_CONTROL fields */ #define CONTROL_MASK_DISABLE_CONTROL 12
drivers/md/bcache/bcache.h +1 -0
@@ -333,6 +333,7 @@ struct cached_dev {/* Limit number of writeback bios in flight */ struct semaphore in_flight;struct task_struct *writeback_thread; +struct workqueue_struct *writeback_write_wq;struct keybuf writeback_keys;
drivers/md/bcache/request.c +3 -9
@@ -196,12 +196,12 @@ static void bch_data_insert_start(struct closure *cl) struct data_insert_op *op = container_of(cl, struct data_insert_op, cl);struct bio *bio = op->bio, *n; -if (atomic_sub_return (bio_sectors (bio), &op->c->sectors_to_gc) <0 ) -wake_up_gc (op->c); -if (op->bypass)return bch_data_invalidate (cl); +if (atomic_sub_return (bio_sectors (bio), &op->c->sectors_to_gc) <0 ) +wake_up_gc (op->c); +/* * Journal writes are marked REQ_PREFLUSH; if the original write was a * flush, it'll wait on the journal write.
@@ -400,12 +400,6 @@ static bool check_should_bypass(struct cached_dev *dc, struct bio *bio)if (!congested && !dc->sequential_cutoff) goto rescale; -if (!congested && - mode ==CACHE_MODE_WRITEBACK && -op_is_write (bio->bi_opf) && -op_is_sync (bio->bi_opf)) - goto rescale; -spin_lock (&dc->io_lock);hlist_for_each_entry (i,iohash (dc, bio->bi_iter.bi_sector), hash)
drivers/md/bcache/super.c +6 -1
@@ -1026,7 +1026,7 @@ int bch_cached_dev_attach(struct cached_dev *dc, struct cache_set *c) }if (BDEV_STATE (&dc->sb) ==BDEV_STATE_DIRTY ) { -bch_sectors_dirty_init (dc); +bch_sectors_dirty_init (&dc->disk);atomic_set (&dc->has_dirty,1 );atomic_inc (&dc->count);bch_writeback_queue (dc);
@@ -1059,6 +1059,8 @@ static void cached_dev_free(struct closure *cl)cancel_delayed_work_sync (&dc->writeback_rate_update);if (!IS_ERR_OR_NULL (dc->writeback_thread))kthread_stop (dc->writeback_thread); +if (dc->writeback_write_wq) +destroy_workqueue (dc->writeback_write_wq);mutex_lock (&bch_register_lock);
@@ -1228,6 +1230,7 @@ static int flash_dev_run(struct cache_set *c, struct uuid_entry *u) goto err;bcache_device_attach (d, c, u - c->uuids); +bch_sectors_dirty_init (d);bch_flash_dev_request_init (d);add_disk (d->disk);
@@ -1964,6 +1967,8 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,else err ="device busy" ;mutex_unlock (&bch_register_lock); +if (!IS_ERR (bdev)) +bdput (bdev);if (attr == &ksysfs_register_quiet) goto out; }
drivers/md/bcache/sysfs.c +2 -2
@@ -192,7 +192,7 @@ STORE(__cached_dev) { struct cached_dev *dc = container_of(kobj, struct cached_dev, disk.kobj); -unsigned v = size; +ssize_t v = size;struct cache_set *c;struct kobj_uevent_env *env;
@@ -227,7 +227,7 @@ STORE(__cached_dev)bch_cached_dev_run (dc);if (attr == &sysfs_cache_mode) { -ssize_t v =bch_read_string_list (buf, bch_cache_modes +1 ); + v =bch_read_string_list (buf, bch_cache_modes +1 );if (v <0 )return v;
drivers/md/bcache/util.c +35 -15
59 lines not on this page · raw message
drivers/md/bcache/writeback.c +13 -7
@@ -21,7 +21,8 @@static void __update_writeback_rate (struct cached_dev *dc) {struct cache_set *c = dc->disk.c; -uint64_t cache_sectors = c->nbuckets * c->sb.bucket_size; +uint64_t cache_sectors = c->nbuckets * c->sb.bucket_size - +bcache_flash_devs_sectors_dirty (c);uint64_t cache_dirty_target =div_u64 (cache_sectors * dc->writeback_percent,100 );
@@ -186,7 +187,7 @@ static void write_dirty(struct closure *cl)closure_bio_submit (&io->bio, cl); -continue_at (cl, write_dirty_finish, system_wq); +continue_at (cl, write_dirty_finish, io->dc->writeback_write_wq); }static void read_dirty_endio (struct bio *bio)
@@ -206,7 +207,7 @@ static void read_dirty_submit(struct closure *cl)closure_bio_submit (&io->bio, cl); -continue_at (cl, write_dirty, system_wq); +continue_at (cl, write_dirty, io->dc->writeback_write_wq); }static void read_dirty (struct cached_dev *dc)
@@ -482,17 +483,17 @@ static int sectors_dirty_init_fn(struct btree_op *_op, struct btree *b,return MAP_CONTINUE ; } -void bch_sectors_dirty_init (struct cached_dev *dc) +void bch_sectors_dirty_init (struct bcache_device *d) {struct sectors_dirty_init op;bch_btree_op_init (&op.op,-1 ); - op.inode = dc->disk.id; + op.inode = d->id; -bch_btree_map_keys (&op.op, dc->disk.c, &KEY (op.inode,0 ,0 ), +bch_btree_map_keys (&op.op, d->c, &KEY (op.inode,0 ,0 ), sectors_dirty_init_fn,0 ); - dc->disk.sectors_dirty_last =bcache_dev_sectors_dirty (&dc->disk); + d->sectors_dirty_last =bcache_dev_sectors_dirty (d); }void bch_cached_dev_writeback_init (struct cached_dev *dc)
@@ -516,6 +517,11 @@ void bch_cached_dev_writeback_init(struct cached_dev *dc)int bch_cached_dev_writeback_start (struct cached_dev *dc) { + dc->writeback_write_wq =alloc_workqueue ("bcache_writeback_wq" , +WQ_MEM_RECLAIM ,0 ); +if (!dc->writeback_write_wq) +return -ENOMEM ; + dc->writeback_thread =kthread_create (bch_writeback_thread, dc,"bcache_writeback" );if (IS_ERR (dc->writeback_thread))
drivers/md/bcache/writeback.h +20 -1
@@ -14,6 +14,25 @@ static inline uint64_t bcache_dev_sectors_dirty(struct bcache_device *d)return ret; } +static inline uint64_t bcache_flash_devs_sectors_dirty (struct cache_set *c) +{ +uint64_t i, ret =0 ; + +mutex_lock (&bch_register_lock); + +for (i =0 ; i < c->nr_uuids; i++) { +struct bcache_device *d = c->devices[i]; + +if (!d || !UUID_FLASH_ONLY (&c->uuids[i])) +continue ; + ret +=bcache_dev_sectors_dirty (d); + } + +mutex_unlock (&bch_register_lock); + +return ret; +} +static inline unsigned offset_to_stripe (struct bcache_device *d,uint64_t offset) {
@@ -84,7 +103,7 @@ static inline void bch_writeback_add(struct cached_dev *dc)void bcache_dev_sectors_dirty_add (struct cache_set *,unsigned ,uint64_t ,int ); -void bch_sectors_dirty_init (struct cached_dev *dc); +void bch_sectors_dirty_init (struct bcache_device *);void bch_cached_dev_writeback_init (struct cached_dev *);int bch_cached_dev_writeback_start (struct cached_dev *);
drivers/md/bitmap.c +7 -2
@@ -625,7 +625,7 @@ static int bitmap_read_sb(struct bitmap *bitmap) err =read_sb_page (bitmap->mddev, offset, sb_page, -0 ,sizeof (bitmap_super_t)); +0 ,PAGE_SIZE ); }if (err)return err;
@@ -2058,6 +2058,11 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,long pages;struct bitmap_page *new_bp; +if (bitmap->storage.file && !init) { +pr_info ("md: cannot resize file-based bitmap\n" ); +return -EINVAL ; + } +if (chunksize ==0 ) {/* If there is enough space, leave the chunk size unchanged, * else increase by factor of two until there is enough space.
@@ -2118,7 +2123,7 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,if (store.sb_page && bitmap->storage.sb_page)memcpy (page_address (store.sb_page),page_address (bitmap->storage.sb_page), -sizeof (bitmap_super_t)); +PAGE_SIZE );bitmap_file_unmap (&bitmap->storage); bitmap->storage = store;
drivers/media/i2c/adv7180.c +2 -0
@@ -1402,6 +1402,8 @@ static int adv7180_remove(struct i2c_client *client)static const struct i2c_device_id adv7180_id[] = { {"adv7180" , (kernel_ulong_t)&adv7180_info }, + {"adv7180cp" , (kernel_ulong_t)&adv7180_info }, + {"adv7180st" , (kernel_ulong_t)&adv7180_info }, {"adv7182" , (kernel_ulong_t)&adv7182_info }, {"adv7280" , (kernel_ulong_t)&adv7280_info }, {"adv7280-m" , (kernel_ulong_t)&adv7280_m_info },
drivers/media/platform/qcom/venus/helpers.c +1 -1
@@ -243,7 +243,7 @@ static void return_buf_error(struct venus_inst *inst,if (vbuf->vb2_buf.type ==V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE )v4l2_m2m_src_buf_remove_by_buf (m2m_ctx, vbuf);else -v4l2_m2m_src_buf_remove_by_buf (m2m_ctx, vbuf); +v4l2_m2m_dst_buf_remove_by_buf (m2m_ctx, vbuf);v4l2_m2m_buf_done (vbuf,VB2_BUF_STATE_ERROR ); }
drivers/media/rc/lirc_dev.c +4 -0
@@ -59,6 +59,8 @@ static void lirc_release(struct device *ld) { struct irctl *ir = container_of(ld, struct irctl, dev); +put_device (ir->dev.parent); +if (ir->buf_internal) {lirc_buffer_free (ir->buf);kfree (ir->buf);
@@ -218,6 +220,8 @@ int lirc_register_driver(struct lirc_driver *d)mutex_unlock (&lirc_dev_lock); +get_device (ir->dev.parent); +dev_info (ir->d.dev,"lirc_dev: driver %s registered at minor = %d\n" , ir->d.name, ir->d.minor);
drivers/media/usb/uvc/uvc_ctrl.c +7 -0
@@ -2002,6 +2002,13 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain, goto done; } +/* Validate the user-provided bit-size and offset */ +if (mapping->size >32 || + mapping->offset + mapping->size > ctrl->info.size *8 ) { + ret = -EINVAL ; + goto done; + } +list_for_each_entry (map, &ctrl->info.mappings, list) {if (mapping->id == map->id) { uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s', "
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +2 -1
@@ -796,7 +796,8 @@ static int put_v4l2_event32(struct v4l2_event *kp, struct v4l2_event32 __user *ucopy_to_user (&up->u, &kp->u,sizeof (kp->u)) ||put_user (kp->pending, &up->pending) ||put_user (kp->sequence, &up->sequence) || -compat_put_timespec (&kp->timestamp, &up->timestamp) || +put_user (kp->timestamp.tv_sec, &up->timestamp.tv_sec) || +put_user (kp->timestamp.tv_nsec, &up->timestamp.tv_nsec) ||put_user (kp->id, &up->id) || copy_to_user(up->reserved, kp->reserved, 8 * sizeof(__u32))) return -EFAULT;
drivers/misc/cxl/api.c +4 -0
@@ -336,6 +336,10 @@ int cxl_start_context(struct cxl_context *ctx, u64 wed,mmput (ctx->mm); } +/* +* Increment driver use count. Enables global TLBIs for hash +* and callbacks to handle the segment table +*/ cxl_ctx_get ();if ((rc = cxl_ops->attach_process (ctx, kernel, wed,0 ))) {
drivers/misc/cxl/file.c +7 -1
@@ -95,7 +95,6 @@ static int __afu_open(struct inode *inode, struct file *file, bool master)pr_devel ("afu_open pe: %i\n" , ctx->pe); file->private_data = ctx; -cxl_ctx_get ();/* indicate success */ rc =0 ;
@@ -225,6 +224,12 @@ static long afu_ioctl_start_work(struct cxl_context *ctx,if (ctx->mm)mmput (ctx->mm); +/* +* Increment driver use count. Enables global TLBIs for hash +* and callbacks to handle the segment table +*/ +cxl_ctx_get (); +trace_cxl_attach (ctx, work.work_element_descriptor, work.num_interrupts, amr); if ((rc = cxl_ops->attach_process(ctx, false, work.work_element_descriptor,
@@ -233,6 +238,7 @@ static long afu_ioctl_start_work(struct cxl_context *ctx,cxl_adapter_context_put (ctx->afu->adapter);put_pid (ctx->pid); ctx->pid =NULL ; +cxl_ctx_put ();cxl_context_mm_count_put (ctx); goto out; }
drivers/net/wireless/ath/wcn36xx/main.c +50 -2
174 lines not on this page · raw message
drivers/net/wireless/ath/wcn36xx/wcn36xx.h +3 -0
@@ -202,6 +202,9 @@ struct wcn36xx {struct qcom_smem_state *tx_rings_empty_state;unsigned tx_rings_empty_state_bit; +/* prevents concurrent FW reconfiguration */ +struct mutex conf_mutex; +/* * smd_buf must be protected with smd_mutex to garantee * that all messages are sent one after another
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +52 -10
131 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h +2 -1
@@ -93,7 +93,8 @@ void iwl_set_hw_address_from_csr(struct iwl_trans *trans,*/ void iwl_init_sbands (struct device *dev,const struct iwl_cfg *cfg,struct iwl_nvm_data *data,const __le16 *nvm_ch_flags, -u8 tx_chains,u8 rx_chains,bool lar_supported); +u8 tx_chains,u8 rx_chains,bool lar_supported, +bool no_wide_in_5ghz);/** * iwl_parse_mcc_info - parse MCC (mobile country code) info coming from FW
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c +2 -1
@@ -628,7 +628,8 @@ int iwl_mvm_nvm_get_from_fw(struct iwl_mvm *mvm) rsp->regulatory.channel_profile, mvm->nvm_data->valid_tx_ant & mvm->fw->valid_tx_ant, mvm->nvm_data->valid_rx_ant & mvm->fw->valid_rx_ant, - rsp->regulatory.lar_enabled && lar_fw_supported); + rsp->regulatory.lar_enabled && lar_fw_supported, + false);iwl_free_resp (&hcmd);return 0 ;
drivers/pci/hotplug/pciehp_hpc.c +8 -0
@@ -586,6 +586,14 @@ static irqreturn_t pciehp_isr(int irq, void *dev_id) events = status & (PCI_EXP_SLTSTA_ABP |PCI_EXP_SLTSTA_PFD |PCI_EXP_SLTSTA_PDC |PCI_EXP_SLTSTA_CC |PCI_EXP_SLTSTA_DLLSC ); + +/* +* If we've already reported a power fault, don't report it again +* until we've done something to handle it. +*/ +if (ctrl->power_fault_detected) + events &= ~PCI_EXP_SLTSTA_PFD ; +if (!events)return IRQ_NONE ;
drivers/pci/hotplug/shpchp_hpc.c +2 -0
@@ -1062,6 +1062,8 @@ int shpc_init(struct controller *ctrl, struct pci_dev *pdev)if (rc) {ctrl_info (ctrl,"Can't get msi for the hotplug controller\n" );ctrl_info (ctrl,"Use INTx for the hotplug controller\n" ); + }else { +pci_set_master (pdev); } rc = request_irq(ctrl->pci_dev->irq, shpc_isr, IRQF_SHARED,
drivers/pinctrl/pinctrl-amd.c +75 -0
99 lines not on this page · raw message
drivers/pinctrl/pinctrl-amd.h +1 -0
@@ -97,6 +97,7 @@ struct amd_gpio {unsigned int hwbank_num;struct resource *res;struct platform_device *pdev; +u32 *saved_regs; };/* KERNCZ configuration*/
drivers/pinctrl/samsung/pinctrl-exynos.c +4 -4
@@ -174,10 +174,10 @@ static int exynos_irq_request_resources(struct irq_data *irqd)spin_lock_irqsave (&bank->slock, flags); - con =readl (bank->eint_base + reg_con); + con =readl (bank->pctl_base + reg_con); con &= ~(mask << shift); con |=EXYNOS_EINT_FUNC << shift; -writel (con, bank->eint_base + reg_con); +writel (con, bank->pctl_base + reg_con);spin_unlock_irqrestore (&bank->slock, flags);
@@ -202,10 +202,10 @@ static void exynos_irq_release_resources(struct irq_data *irqd)spin_lock_irqsave (&bank->slock, flags); - con =readl (bank->eint_base + reg_con); + con =readl (bank->pctl_base + reg_con); con &= ~(mask << shift); con |=FUNC_INPUT << shift; -writel (con, bank->eint_base + reg_con); +writel (con, bank->pctl_base + reg_con);spin_unlock_irqrestore (&bank->slock, flags);
drivers/pinctrl/samsung/pinctrl-s3c24xx.c +21 -16
@@ -151,7 +151,7 @@ static void s3c24xx_eint_set_function(struct samsung_pinctrl_drv_data *d,u32 val;/* Make sure that pin is configured as interrupt */ - reg = bank->pctl_base + bank->pctl_offset; + reg = d->virt_base + bank->pctl_offset; shift = pin * bank_type->fld_width[PINCFG_TYPE_FUNC ]; mask = (1 << bank_type->fld_width[PINCFG_TYPE_FUNC ]) -1 ;
@@ -184,7 +184,7 @@ static int s3c24xx_eint_type(struct irq_data *data, unsigned int type)s3c24xx_eint_set_handler (data, type);/* Set up interrupt trigger */ - reg = bank->eint_base +EINT_REG (index); + reg = d->virt_base +EINT_REG (index); shift =EINT_OFFS (index); val =readl (reg);
@@ -259,29 +259,32 @@ static void s3c2410_demux_eint0_3(struct irq_desc *desc)static void s3c2412_eint0_3_ack (struct irq_data *data) {
Lines of this file are not shown. View the raw message.
drivers/pinctrl/samsung/pinctrl-s3c64xx.c +18 -22
Lines of this file are not shown. View the raw message.
drivers/pinctrl/samsung/pinctrl-samsung.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/samsung/pinctrl-samsung.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/scsi/aacraid/aachba.c +21 -33
54 lines not on this page · raw message
drivers/scsi/megaraid/megaraid_sas_base.c +14 -2
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/scsi/sg.c +36 -28
64 lines not on this page · raw message
fs/orangefs/acl.c +28 -20
48 lines not on this page · raw message
net/netfilter/nf_conntrack_core.c +29 -23
52 lines not on this page · 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.
Hi,
This build causes very annoying flickering on my display. I am using the in kernel amdgpu module to drive a RX480 with 4G via display port. When X is started (kde) I get flickers that are extrememly distracting. The linux install is arch stable and is up to date. Nothing interesting in dmesg.
Reverting the changes to:
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2
fixes the issue here.
Thanks
Ed Tomlinson
Quoted 380 lines · Greg KH
I'm announcing the release of the 4.13.4 kernel.
All users of the 4.13 kernel series must upgrade.
The updated 4.13.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
linux-4.13.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summarythanks,
greg k-h
------------
Documentation/dev-tools/gdb-kernel-debugging.rst | 6 Makefile | 2 arch/arc/kernel/entry.S | 6 arch/arc/mm/tlb.c | 3 arch/mips/math-emu/dp_fmax.c | 84 +++++-- arch/mips/math-emu/dp_fmin.c | 86 +++++-- arch/mips/math-emu/dp_maddf.c | 246 +++++++++++++-------- arch/mips/math-emu/ieee754int.h | 4 arch/mips/math-emu/ieee754sp.h | 4 arch/mips/math-emu/sp_fmax.c | 84 +++++-- arch/mips/math-emu/sp_fmin.c | 86 +++++-- arch/mips/math-emu/sp_maddf.c | 229 +++++++++---------- arch/powerpc/kernel/align.c | 119 ++++++---- arch/powerpc/platforms/powernv/npu-dma.c | 12 - arch/powerpc/platforms/pseries/hotplug-memory.c | 4 arch/s390/include/asm/mmu.h | 2 arch/s390/include/asm/mmu_context.h | 8 arch/s390/include/asm/tlbflush.h | 30 -- block/blk-core.c | 9 block/blk-mq.c | 16 + block/blk-mq.h | 1 crypto/algif_skcipher.c | 4 crypto/scompress.c | 4 drivers/block/skd_main.c | 21 + drivers/crypto/caam/caamalg_qi.c | 11 drivers/crypto/ccp/ccp-crypto-aes-xts.c | 4 drivers/crypto/ccp/ccp-dev-v5.c | 2 drivers/crypto/ccp/ccp-dev.h | 2 drivers/crypto/ccp/ccp-ops.c | 43 ++- drivers/devfreq/devfreq.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 drivers/infiniband/hw/hfi1/init.c | 1 drivers/infiniband/hw/hfi1/rc.c | 3 drivers/infiniband/hw/mlx5/mr.c | 18 + drivers/infiniband/hw/qib/qib_rc.c | 4 drivers/input/joystick/xpad.c | 10 drivers/input/serio/i8042-x86ia64io.h | 7 drivers/mailbox/bcm-flexrm-mailbox.c | 2 drivers/md/bcache/bcache.h | 1 drivers/md/bcache/request.c | 12 - drivers/md/bcache/super.c | 7 drivers/md/bcache/sysfs.c | 4 drivers/md/bcache/util.c | 50 ++-- drivers/md/bcache/writeback.c | 20 + drivers/md/bcache/writeback.h | 21 + drivers/md/bitmap.c | 9 drivers/media/i2c/adv7180.c | 2 drivers/media/platform/qcom/venus/helpers.c | 2 drivers/media/rc/lirc_dev.c | 4 drivers/media/usb/uvc/uvc_ctrl.c | 7 drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 3 drivers/misc/cxl/api.c | 4 drivers/misc/cxl/file.c | 8 drivers/net/wireless/ath/wcn36xx/main.c | 52 ++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 3 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 62 ++++- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h | 3 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 3 drivers/pci/hotplug/pciehp_hpc.c | 8 drivers/pci/hotplug/shpchp_hpc.c | 2 drivers/pinctrl/pinctrl-amd.c | 75 ++++++ drivers/pinctrl/pinctrl-amd.h | 1 drivers/pinctrl/samsung/pinctrl-exynos.c | 8 drivers/pinctrl/samsung/pinctrl-s3c24xx.c | 37 +-- drivers/pinctrl/samsung/pinctrl-s3c64xx.c | 40 +-- drivers/pinctrl/samsung/pinctrl-samsung.c | 6 drivers/pinctrl/samsung/pinctrl-samsung.h | 5 drivers/regulator/cpcap-regulator.c | 8 drivers/s390/scsi/zfcp_dbf.c | 33 ++ drivers/s390/scsi/zfcp_dbf.h | 17 + drivers/s390/scsi/zfcp_fc.h | 6 drivers/s390/scsi/zfcp_fsf.c | 7 drivers/s390/scsi/zfcp_scsi.c | 16 - drivers/scsi/aacraid/aachba.c | 54 +--- drivers/scsi/megaraid/megaraid_sas_base.c | 16 + drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 drivers/scsi/qedi/qedi_main.c | 2 drivers/scsi/qla2xxx/qla_attr.c | 8 drivers/scsi/qla2xxx/qla_gs.c | 2 drivers/scsi/qla2xxx/qla_init.c | 1 drivers/scsi/qla2xxx/qla_isr.c | 2 drivers/scsi/qla2xxx/qla_mbx.c | 3 drivers/scsi/qla2xxx/qla_mid.c | 2 drivers/scsi/qla2xxx/qla_target.c | 2 drivers/scsi/sg.c | 64 +++-- drivers/scsi/storvsc_drv.c | 2 drivers/tty/tty_buffer.c | 26 ++ fs/ext4/file.c | 4 fs/ext4/super.c | 38 ++- fs/orangefs/acl.c | 48 ++-- include/linux/ccp.h | 3 include/linux/cpuset.h | 6 include/linux/ftrace.h | 4 include/linux/tty_flip.h | 3 include/linux/uaccess.h | 2 kernel/cgroup/cpuset.c | 16 + kernel/cpu.c | 12 - kernel/power/process.c | 5 kernel/rcu/srcutree.c | 9 kernel/sched/core.c | 7 kernel/trace/ftrace.c | 10 kernel/trace/trace.c | 10 kernel/trace/trace_events.c | 2 kernel/trace/trace_selftest.c | 2 net/netfilter/nf_conntrack_core.c | 52 ++-- sound/core/seq_device.c | 3 107 files changed, 1462 insertions(+), 693 deletions(-)Aleksandar Markovic (10):
MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix quiet NaN propagation MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix cases ofboth inputs zero
MIPS: math-emu: <MAX|MIN>.<D|S>: Fix cases of both inputs negative
MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of input
values with opposite signs
MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of both infinite inputs
MIPS: math-emu: MINA.<D|S>: Fix some cases of infinity and zero inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of zero inputs
MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Clean up
"maddf_flags" enumerationAleksandr Bezzubikov (1):
PCI: shpchp: Enable bridge bus mastering if MSI is enabledAlex Estrin (1):
IB/hfi1: Revert egress pkey check enforcementAlistair Popple (1):
powerpc/powernv/npu: Move tlb flush before launching ATSDAnup Patel (1):
mailbox: bcm-flexrm-mailbox: Fix mask used inCMPL_START_ADDR_VALUE()Ard Biesheuvel (1):
crypto: scompress - don't sleep with preemption disabledArnd Bergmann (3):
tty: improvetty_insert_flip_char()fast path
tty: improvetty_insert_flip_char()slow path
tty: fix__tty_insert_flip_charregressionBaohong Liu (1):
tracing: Applytrace_clockchanges to instance max bufferBart Van Assche (4):
<linux/uaccess.h>: Fixcopy_in_user()declaration
block: Relax a check inblk_start_queue()
skd: Avoid that module unloading triggers a use-after-free
skd: Submit requests to firmware before triggering the doorbellBenjamin Block (1):
scsi: zfcp: add handling forFCP_RESID_OVERto the fcp ingress pathBjorn Andersson (1):
wcn36xx: Introduce mutual exclusion of fw configurationBrian King (1):
scsi: aacraid: Fix command send race conditionCameron Gutman (1):
Input: xpad - validate USB endpoint type during probeChanwoo Choi (1):
PM / devfreq: Fix memory leak when fail to register deviceChunyu Hu (1):
tracing: Fix clear ofRECORDED_TGIDflag when disabling trace eventDan Carpenter (2):
scsi: qedi: off by one inqedi_get_cmd_from_tid()
scsi: qla2xxx: Fix an integer overflow in sysfs codeDaniel Drake (1):
pinctrl/amd: save pin registers over suspend/resumeDaniel Mentz (1):
media: v4l2-compat-ioctl32: Fix timespec conversionDarrick J. Wong (1):
ext4: in ext4_seek_{hole,data}, return-ENXIOfor negative offsetsDouglas Leung (2):
MIPS: math-emu: <MADDF|MSUBF>.S: Fix accuracy (32-bit case)
MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case)Ethan Barnes (1):
smp/hotplug: Handle removal correctly incpuhp_store_callbacks()Frederic Barrat (1):
cxl: Fix driver use countGary R Hook (1):
crypto: ccp - Fix XTS-AES-128 support on v5 CCPsGreg Kroah-Hartman (1):
Linux 4.13.4Guenter Roeck (1):
media: uvcvideo: Prevent heap overflow when accessing mapped controlsGustavo A. R. Silva (1):
media: venus: fix copy/paste error inreturn_buf_errorHannes Reinecke (2):
scsi: sg: factor outsg_fill_request_table()
scsi: sg: fixup infoleak when usingSG_GET_REQUEST_TABLEHoria Geantă (2):
crypto: caam/qi - fix typo in authenc alg driver name
crypto: caam/qi - properly set IV after {en,de}cryptJan Kara (2):
orangefs: Don't clear SGID when inheriting ACLs
bcache: Fix leak of bdev referenceJens Axboe (1):
block: directly insert blk-mq request fromblk_insert_cloned_request()Joe Carnuccio (1):
scsi: qla2xxx: Correction to vha->vref_count timeoutJohn Allen (1):
powerpc/pseries: Don't attempt to acquire drc during
memory hot add for assigned lmbsJose Abreu (1):
ARC: Re-enable MMU upon Machine Check exceptionKai-Heng Feng (1):
Input: i8042 - add Gigabyte P57 to the keyboard reset tableKeith Busch (1):
PCI: pciehp: Report power fault only once until we clear itKrzysztof Kozlowski (2):
pinctrl: samsung: Fix invalid register offset used for
Exynos5433 external interrupts
pinctrl: samsung: Fix NULL pointer exception on external
interrupts on S3C24xxLong Li (1):
scsi: storvsc: fix memory leak on ring buffer busyLuca Coelho (1):
iwlwifi: add workaround to disable wide channels in 5GHzMajd Dibbiny (1):
IB/mlx5: Fix cached MR allocation flowManfred Spraul (1):
net/netfilter/nf_conntrack_core: Fixnet_conntrack_lock()Martin Schwidefsky (2):
s390/mm: fix local TLB flushing vs. detach of an mm address space s390/mm: fix race onmm->context.flush_mmMichael Ellerman (1):
powerpc: Fix DAR reporting when alignment handler faultsMichael Hernandez (1):
scsi: qla2xxx: Fix target multiqueue configurationMichael Lyle (1):
bcache: fixbch_hprintcrash and improve outputMike Marciniszyn (1):
IB/{qib, hfi1}: Avoid flow control testing for RDMA write operationNeilBrown (1):
md/bitmap: disablebitmap_resizefor file-backed bitmaps.Paul E. McKenney (1):
srcu: Provide ordering for CPU not involved in grace periodPeter Zijlstra (1):
sched/cpuset/pm: Fix cpuset vs. suspend-resume bugsQuinn Tran (1):
scsi: qla2xxx: Use fabric name for Get Port Speed commandSawan Chandak (1):
scsi: qla2xxx: UseBIT_6to acquire FAWWPN from switchSean Young (1):
media: Revert "[media]lirc_dev: remove superfluous
get/put_device() calls"Sebastian Reichel (1):
regulator: cpcap: Fix standby modeShaohua Li (1):
md/bitmap: copy correct data for bitmap superShivasharan S (4):
scsi:megaraid_sas: mismatch of allocated MFI frame size
and length exposed in MFI MPT pass through command
scsi:megaraid_sas: set minimum value of resetwaittime to be 1 secs
scsi:megaraid_sas: Check valid aen class range to avoid kernel panic
scsi:megaraid_sas: Return pended IOCTLs withcmd_statusMFI_STAT_WRONG_STATEin case adapter is deadSteffen Maier (7):
scsi: zfcp: fix queuecommand forscsi_ehcommands when DIX enabled
scsi: zfcp: fix capping of unsuccessfulGPN_FTSAN
response trace records
scsi: zfcp: fix passingfsf_reqto SCSI trace on TMF to
correlate with HBA
scsi: zfcp: fix missing trace records for early returns
in TMF eh handlers
scsi: zfcp: fix payload with fullFCP_RSPIU in SCSI trace records
scsi: zfcp: trace HBA FSF response by default on dismiss
or timedout late response
scsi: zfcp: trace high part of "new" 64 bit SCSI LUNStephan Mueller (1):
crypto:AF_ALG- remove SGL terminator indicator when chainingSteven Rostedt (VMware) (3):
ftrace: Fix selftest goto location on error
ftrace: Fix memleak when unregistering dynamic ops when
tracing disabled
tracing: Add barrier totrace_printk()buffer nesting modificationTakashi Iwai (1):
ALSA: seq: Cancel pending autoload work at unbinding deviceTang Junhui (5):
bcache: initialize dirty stripes inflash_dev_run()
bcache: do not subtractsectors_to_gcfor bypassed IO
bcache: correctcache_dirty_targetin__update_writeback_rate()
bcache: fix sequential large write IO bypass
bcache: fix for gc and write-back raceTony Asleson (1):
bcache: Correct return value for sysfs attach errorsUlrich Hecht (1):
media: adv7180: add missing adv7180cp, adv7180st i2c device IDsZev Weiss (1):
ftrace: Fix debug preempt config name in stack_tracer_{en,dis}ableZhang, Jerry (1):
drm/amdgpu: read reg in each iterator ofpsp_wait_forloopZhouyi Zhou (1):
docs: disable KASLR when debugging kernel[email protected] (1):
scsi: qla2xxx: Updatefw_startedflags at qpair creation.zhangyi (F) (2):
ext4: fix incorrect quotaoff if the quota feature is enabled
ext4: fix quota inconsistency during orphan cleanup for
read-only mounts
Greg KH
maintainerQuoted 11 lines · Ed Tomlinson
Hi,
This build causes very annoying flickering on my display. I am using the in kernel amdgpu module to drive a RX480 with 4G via display port. When X is started (kde) I get flickers that are extrememly distracting. The linux install is arch stable and is up to date. Nothing interesting in dmesg.
Reverting the changes to:
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2
What was the git commit id that you reverted to fix the issue? Is the issue in 4.14-rc2?
thanks,
greg k-h
Hi
I did things old school via patch -R. This is what I reverted:
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -2
@@ -95,9 +95,8 @@ int psp_wait_for(struct psp_context *psp, uint32_t reg_index,int i;struct amdgpu_device *adev = psp->adev; - val =RREG32 (reg_index); -for (i =0 ; i < adev->usec_timeout; i++) { + val =RREG32 (reg_index);if (check_changed) {if (val != reg_val)return 0 ;
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +0 -0
@@ -237,11 +237,9 @@ int psp_v3_1_bootloader_load_sos(struct psp_context *psp)/* there might be handshake issue with hardware which needs delay
*/
mdelay(20);
-#if 0
ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0,
mmMP0_SMN_C2PMSG_81),
RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_81),
0, true);-#endif
return ret; }
---
Thanks
Ed
Quoted 16 lines · Greg KH
Quoted 6 lines · Ed Tomlinson
Hi,
This build causes very annoying flickering on my display. I am using the in kernel amdgpu module to drive a RX480 with 4G via display port. When X is started (kde) I get flickers that are extrememly distracting. The linux install is arch stable and is up to date. Nothing interesting in dmesg. ...
What was the git commit id that you reverted to fix the issue? Is the issue in 4.14-rc2?
thanks,
greg k-h
Greg KH
maintainerQuoted 41 lines · Ed Tomlinson
Hi
I did things old school via patch -R. This is what I reverted:
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1
-2@@ -95,9 +95,8 @@ int psp_wait_for(struct psp_context *psp, uint32_t reg_index, int i;struct amdgpu_device *adev = psp->adev; - val =RREG32 (reg_index); -for (i =0 ; i < adev->usec_timeout; i++) { + val =RREG32 (reg_index);if (check_changed) {if (val != reg_val)return 0;drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +0
-2@@ -237,11 +237,9 @@ int psp_v3_1_bootloader_load_sos(struct psp_context *psp)/* there might be handshake issue with hardware which needs delay */ mdelay (20 ); -#if 0 ret =psp_wait_for (psp,SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_81),RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_81),0 , true); -#endif return ret; }
Quoted 1 line
---
Any chance to dig out _which_ patch this was? I don't have access to my tree at the moment...
And what about 4.14-rc2?
thanks,
greg k-h
Hi
It looks to be this commit. 4.14-rc2 is building
Thanks
Ed
commit 2890decfd9969cac21067ca0c734fbccaf74d634
Author: Zhang, Jerry <[email protected]> Date: Fri Jul 14 18:20:17 2017 +0800
drm/amdgpu: read reg in each iterator of psp_wait_for loop
v2: fix the SOS loading failure for PSP v3.1
Quoted 19 lines · Greg KH
Quoted 7 lines · Ed Tomlinson
Hi
I did things old school via patch -R. This is what I reverted:
---
(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c...Any chance to dig out _which_ patch this was? I don't have access to my tree at the moment...
And what about 4.14-rc2?
thanks,
greg k-h
Hi,
It works with 14-rc2, so I rebuilt 13.4 with the commit included again and its behaving too :-/
Something strange must have happened in the original 13.4 build or my hw was in a strange state (for two boots...)
Sorry for the noise.
Thanks
Ed Tomlinson
Quoted 26 lines · Ed Tomlinson
Hi
It looks to be this commit. 4.14-rc2 is building
Thanks
Edcommit
2890decfd9969cac21067ca0c734fbccaf74d634Author: Zhang, Jerry <[email protected]> Date: Fri Jul 14 18:20:17 2017 +0800drm/amdgpu: read reg in each iterator of
psp_wait_forloop
v2: fix the SOS loading failure for PSP v3.1Signed-off-by Junwei Zhang <[email protected]>Acked-by Huang Rui <[email protected]> (v1)Reviewed-by Alex Deucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>Quoted 1 line · Greg KH
On Sat, Sep 30, 2017 at 11:14:42AM -0400, Ed Tomlinson wrote: ...