RE: [PATCH v2 0/4] Quirks cleanup and hid-generic niceness

2017-10-25 Thread Jiri Kosina
On Wed, 25 Oct 2017, Niels Skou Olsen wrote: > > > Niels found an issue with v1 of the series, while compiling the usbhid > > > module as a separate .ko. > > > > > > Sending a v2 with the proper From: field fixed now. > > > > > > > I have built it on for-next and tested it with no apparent issues.

Re: Unicode characters in commit messages?

2017-10-25 Thread SF Markus Elfring
> These long email threads are a waste of time They occur for different topics. > when we already answered your questions completely There were some attempts for specific details. > and over and over. I hope that further useful adjustments can be achieved for involved information sources.

Re: 答复: [PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread Lee Jones
On Wed, 25 Oct 2017, 冯锐 wrote: > > On Wed, 25 Oct 2017, rui_f...@realsil.com.cn wrote: > > > > > From: rui_feng > > > > > > Because Realtek PCIE card reader driver is a pcie driver, and it > > > bridges mmc subsystem and memstick subsystem, it's not a mfd driver. > > > Greg and Lee Jones had a d

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Naveen N. Rao
On 2017/10/25 08:28AM, Jiri Olsa wrote: > On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > > Perf top is often crashing at very random locations on powerpc. > > After investigating, I found the crash only happens when sample > > is of zero length symbol. Powerpc kernel has many such

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Lorenzo Pieralisi
On Wed, Oct 25, 2017 at 11:43:22AM +0300, Meelis Roos wrote: > (Added linux-pci to CC) > > > > I run Gentoo Linux on my alphas, with latest git kernels for test. > > > 4.13.0 worked well on 3 alphas but 4.13.0-09217-g5969d1bb3082 hangs on > > > boot on all 3 of them. Tried bisecting on PC164, go

Re: [RFC 2/4] clk: Add Ingenic X1000 CGU driver

2017-10-25 Thread Stephen Boyd
On 09/27, PrasannaKumar Muralidharan wrote: > Add support for the clocks provided by CGU in Ingenic X1000 SoC. > > Signed-off-by: PrasannaKumar Muralidharan > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Proj

Re: spi-atmel.c: regression

2017-10-25 Thread Mark Brown
On Thu, Oct 05, 2017 at 10:05:57AM +0300, Igor Plyatov wrote: > > please help to manage issue with data corruption by PDC of SPI. > > > > > > I have compared operation of Linux-2.6.39 and linux4sam kernel 4.9.36+ > > on the AT91SAM9G20 (Stamp9G20 SOM from Taskit.de) and found regression > > in t

Re: [PATCH] usb: gadget: f_phonet: mark expected switch fall-throughs

2017-10-25 Thread Felipe Balbi
Hi, "Gustavo A. R. Silva" writes: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 115004 > Addresses-Coverity-ID: 115005 > Signed-off-by: Gustavo A. R. Silva Greg, I have already sent you my pull reques

[PATCH] thunderbolt: Drop sequence number check from tb_xdomain_match()

2017-10-25 Thread Mika Westerberg
Commit 9a03c3d398c1 ("thunderbolt: Fix a couple right shifting to zero bugs") revealed an issue that was previously hidden because we never actually compared received XDomain message sequence numbers properly. The idea with these sequence numbers is that the responding host uses the same sequence n

Re: [PATCHv3 1/2] proc: mm: export PTE sizes directly in smaps

2017-10-25 Thread Michal Hocko
On Wed 25-10-17 08:27:34, Fan Du wrote: > From: Dave Hansen > > /proc/$pid/smaps has a number of fields that are intended to imply the > kinds of PTEs used to map memory. "AnonHugePages" obviously tells you > how many PMDs are being used. "MMUPageSize" along with the "Hugetlb" > fields tells yo

[PATCH v2 2/3] iio: adc: stm32: remove const channel names definition

2017-10-25 Thread Fabrice Gasnier
Remove const array that defines channels. Build channels definition at probe time, when initializing channels (only for requested ones). This will ease adding differential channels support. Signed-off-by: Fabrice Gasnier --- Changes in v2: - Improve val variable names in stm32_adc_chan_init_one()

[PATCH v2 0/3] iio: adc: stm32: Add support for differential channels

2017-10-25 Thread Fabrice Gasnier
Add support for differential channels that can be found on STM32H7 ADC: - Introduce new DT property 'st,adc-diff-channels'. - Slightly rework single-ended channels definition in stm32-adc driver. - Add support for differential channels to stm32-adc driver. --- Changes in v2: - Add an example and a

[PATCH v2 1/3] dt-bindings: iio: adc: stm32: add support for diff channels

2017-10-25 Thread Fabrice Gasnier
STM32H7 ADC channels may be configured either as single-ended or differential. Add 'st,adc-diff-channels' property to support differential channels. Differential channels are defined as a pair of positive and negative inputs: vinp & vinn. Signed-off-by: Fabrice Gasnier --- Changes in v2: - Add di

[PATCH v2 3/3] iio: adc: stm32: add support for differential channels

2017-10-25 Thread Fabrice Gasnier
STM32H7 ADC channels can be configured either as single ended or differential with 'st,adc-channels' or 'st,adc-diff-channels' (positive and negative input pair: , ...). Differential channels have different offset and scale, from spec: raw value = (full_scale / 2) * (1 + (vinp - vinn) / vref). Add

Re: [PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-25 Thread Michal Hocko
On Wed 25-10-17 08:27:35, Fan Du wrote: > So user could check those interface for more detailed > information about how much DAX mappings are currently > created. > > Here we use vma_is_dax method to find specific page > struture with DAX {huge, normal}page mappings, > vm_normal_page routine works

Re: [PATCH] cgroup/cpuset: remove circular dependency deadlock

2017-10-25 Thread Peter Zijlstra
On Wed, Oct 25, 2017 at 02:09:54PM +0530, Prateek Sood wrote: > > void cpuset_update_active_cpus(void) > > { > > + mutex_lock(&cpuset_mutex); > > + rebuild_sched_domains_cpuslocked(); > > + mutex_unlock(&cpuset_mutex); > > } > > In the above patch rebuild_sched_domains_cpuslocked() has be

Re: [PATCH 4.4 11/41] KEYS: fix writing past end of user-supplied buffer in keyring_read()

2017-10-25 Thread Ben Hutchings
On Tue, 2017-10-24 at 16:19 -0700, Eric Biggers wrote: [...] > I'd like to fix this, but I still can't decide whether keyring_read() should > fill the buffer or not.  In keyutils, keyctl_read_alloc() doesn't care, but > keyctl_read() on a keyring is also called from dump_key_tree_aux().  And that >

Re: [PATCH] usb: gadget: f_phonet: mark expected switch fall-throughs

2017-10-25 Thread Greg Kroah-Hartman
On Wed, Oct 25, 2017 at 12:25:36PM +0300, Felipe Balbi wrote: > > Hi, > > "Gustavo A. R. Silva" writes: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > where we are expecting to fall through. > > > > Addresses-Coverity-ID: 115004 > > Addresses-Coverity-ID: 115005 > >

Re: [PATCH 02/13] x86/paravirt: Fix output constraint macro names

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Some of the paravirt '*_CLOBBERS' macros refer to output constraints > instead of clobbers, which makes the code extra confusing. Rename the > output constraint related macros to '*_OUTPUTS'. > > Signed-off-by: Josh Poimboeuf I'm fine with the changes,

Re: [PATCH] scsi: .gitignore: Add scsi_devinfo_tbl.c

2017-10-25 Thread Hannes Reinecke
On 10/25/2017 09:39 AM, Jeffy Chen wrote: > Add generated scsi_devinfo_tbl.c into .gitignore. > > Signed-off-by: Jeffy Chen > --- > > drivers/scsi/.gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/.gitignore b/drivers/scsi/.gitignore > index c89ae9a04399..e295674

RE: [PATCH 5/9] PCI: host: brcmstb: add dma-ranges for inbound traffic

2017-10-25 Thread David Laight
From: Jim Quinla > Sent: 24 October 2017 19:08 ... > Hi David, Christoph was also concerned about this: > > "For the block world take a look at __blk_segment_map_sg which does the > merging > of contiguous pages into a single SG segment. You'd have to override > BIOVEC_PHYS_MERGEABLE to prevent

Re: [PATCH v5 03/10] KVM: arm/arm64: vgic-its: Check CBASER/BASER validity before enabling the ITS

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:22 pm BST, Eric Auger wrote: > The spec says it is UNPREDICTABLE to enable the ITS > if any of the following conditions are true: > > - GITS_CBASER.Valid == 0. > - GITS_BASER.Valid == 0, for any GITS_BASER register > where the Type field indicates Device. > - GITS_B

Re: fuse readdirplus skip one entry when interrupted by signal

2017-10-25 Thread Miklos Szeredi
On Tue, Oct 24, 2017 at 08:10:49PM +0200, Jakob Unterwurzacher wrote: > A user running a Haskell program [1] noticed a problem with fuse's > readdirplus: when it is interrupted by a signal, it skips one > directory entry. > > The problem is most apparent with Haskell as it uses > SIGVTALRM to inte

Re: [PATCH] scsi: .gitignore: Add scsi_devinfo_tbl.c

2017-10-25 Thread Martin K. Petersen
Jeffy, > Add generated scsi_devinfo_tbl.c into .gitignore. Applied to 4.15/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v5 06/10] KVM: arm/arm64: vgic-its: Remove kvm_its_unmap_device

2017-10-25 Thread Christoffer Dall
On Mon, Oct 23, 2017 at 04:08:25PM +0200, Eric Auger wrote: > Let's remove kvm_its_unmap_device and use kvm_its_free_device > as both functions are identical. > > Signed-off-by: Eric Auger Acked-by: Christoffer Dall > > --- > > v5: creation > --- > virt/kvm/arm/vgic/vgic-its.c | 14 ++--

[RFC]vcpu scattering make impove VM performance, it worth to realize?

2017-10-25 Thread Zhuangyanying
recently, We tested the performance of VM(Guest) and CPU QoS, while the number of vCPUs are overcommit (More than the pCPU of hosts), we found that if we place the vCPUs of the same VM to different pCPUs(SCATTEREING), The performance of VM will be improved, and the effect of CPU QoS is also imp

Re: [PATCH 0/2] KVM: fixes for the kernel-hardening tree

2017-10-25 Thread David Hildenbrand
On 23.10.2017 16:15, Paolo Bonzini wrote: > On 23/10/2017 14:39, Cornelia Huck wrote: >> On Mon, 23 Oct 2017 11:52:51 +0200 >> David Hildenbrand wrote: >> >>> On 21.10.2017 01:25, Paolo Bonzini wrote: Two KVM ioctls (KVM_GET/SET_CPUID2) directly access the cpuid_entries field of struct k

Re: [PATCH v5 03/10] KVM: arm/arm64: vgic-its: Check CBASER/BASER validity before enabling the ITS

2017-10-25 Thread Marc Zyngier
On Wed, Oct 25 2017 at 10:38:13 am BST, Marc Zyngier wrote: > On Mon, Oct 23 2017 at 4:08:22 pm BST, Eric Auger > wrote: >> The spec says it is UNPREDICTABLE to enable the ITS >> if any of the following conditions are true: >> >> - GITS_CBASER.Valid == 0. >> - GITS_BASER.Valid == 0, for any GI

Re: [PATCH 03/13] x86/paravirt: Convert native patch assembly code strings to macros

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Convert the hard-coded native patch assembly code strings to macros to > facilitate sharing common code between 32-bit and 64-bit. > > These macros will also be used by a future patch which requires the GCC > extended asm syntax of two '%' characters inst

RE: [PATCH 4/8] PCI: host: brcmstb: add dma-ranges for inbound traffic

2017-10-25 Thread David Laight
From: Jim Quinlan > Sent: 24 October 2017 19:16 > The Broadcom STB PCIe host controller is intimately related to the > memory subsystem. This close relationship adds complexity to how cpu > system memory is mapped to PCIe memory. Ideally, this mapping is an > identity mapping, or an identity mapp

Re: [PATCH v5 04/10] KVM: arm/arm64: vgic-its: Check GITS_BASER Valid bit before saving tables

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:23 pm BST, Eric Auger wrote: > At the moment we don't properly check the GITS_BASER.Valid > bit before saving the collection and device tables. > > On vgic_its_save_collection_table() we use the GITS_BASER gpa > field whereas the Valid bit should be used. > > On vgic_

[PATCH] I2C-Octeon: Use common error handling code in octeon_i2c_probe()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 11:45:48 +0200 Add a jump target so that a specific error message is stored only once at the end of this function implementation. Replace two calls of the function "dev_err" by goto statements. This issue was detected by using the Coccinelle software.

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-25 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:45:04 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 02:25:07PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > > > > The Ka-Ro electroni

Re: [PATCH v5 05/10] KVM: arm/arm64: vgic-its: Save the collection table before device tables

2017-10-25 Thread Christoffer Dall
On Mon, Oct 23, 2017 at 04:08:24PM +0200, Eric Auger wrote: > Currently the ITS caches are not emptied on reset. > > After a reset, in case we attempt to save the state before > the bound devices have registered their MSIs and after the > 1st level table has been allocated by the ITS driver > (dev

[PATCH] iscsi-target: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Includes a fix for correcting an on-stack timer usage. Cc: "Nicholas A. Bellinger" Cc: Jiang Yi Cc: Varun

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Yunlong Song
ping... On 2017/8/18 23:09, Yunlong Song wrote: This patch adds cur_reserved_blocks to extend reserved_blocks sysfs interface to be soft threshold, which allows user configure it exceeding current available user space. To ensure there is enough space for supporting system's activation, this patc

Re: [PATCH 04/13] x86/paravirt: Convert DEF_NATIVE macro to GCC extended asm syntax

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > In a future patch, the NATIVE_* instruction string macros will be used > in GCC extended inline asm, which requires registers to have two '%' > instead of one in the asm template string. Convert the DEF_NATIVE macro > to the GCC extended asm syntax so the

[PATCH 2/2] efi/libstub: arm: don't randomize runtime regions when CONFIG_HIBERNATION=y

2017-10-25 Thread Ard Biesheuvel
Commit e69176d68d26 ef/libstub/arm/arm64: Randomize the base of the UEFI rt services region implemented randomization of the virtual mapping that the OS chooses for the UEFI runtime services. This was motivated by the fact that UEFI usually does not bother to specify any permission restriction

[GIT PULL 0/2] EFI fixes for v4.14

2017-10-25 Thread Ard Biesheuvel
The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: Linux 4.14-rc4 (2017-10-08 20:53:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-urgent for you to fetch changes up to 8509c79af61fc8066fc21c01a0

[PATCH 1/2] scsi: megaraid: Remove redundant code in megasas_alloc_cmds

2017-10-25 Thread Yisheng Xie
megasas_alloc_cmds is to alloc cmd_list of instance instead of fusion, and fusion is useless in this function. Just remove it. Signed-off-by: Yisheng Xie --- drivers/scsi/megaraid/megaraid_sas_base.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH] scsi: cxgbi: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Karen Xie Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@vger.kernel.org Signed-o

[PATCH 2/2] scsi: megaraid: Track the page allocations for struct fusion_context

2017-10-25 Thread Yisheng Xie
I have get many kmemleak reports just similar to commit 70c54e210ee9 (scsi: megaraid_sas: fix memleak in megasas_alloc_cmdlist_fusion) on v4.14-rc6, however it seems have a different stroy: unreferenced object 0x8b5139d9d2c0 (size 192): comm "kworker/0:0", pid 3, jiffies 4294689182 (age 1134

[PATCH] scsi: csiostor: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "Martin K. Petersen" Cc: "James E.J. Bottomley" Cc: Varun Prakash Cc: Johannes Thumshirn Cc: linux-s

[PATCH] scsi: ipr: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Brian King Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@vger.kernel.org Signed-

Re: [PATCH v7] printk: hash addresses printed with %p

2017-10-25 Thread Tobin C. Harding
On Wed, Oct 25, 2017 at 06:00:21AM +0200, Jason A. Donenfeld wrote: > On Wed, Oct 25, 2017 at 5:49 AM, Tobin C. Harding wrote: > > static_branch_disable(&no_ptr_secret) : Doesn't sleep, just atomic read > > and set and maybe a WARN_ONCE. > > Are you sure about that? I just looked myself, and thou

[PATCH] scsi: ibmvscsi: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "Martin K. Petersen" Cc: Tyrel Datwyler Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael El

Re: [PATCH v2] f2fs: introduce cur_reserved_blocks in sysfs

2017-10-25 Thread Yunlong Song
Hi, Chao, ping... Please see the review comment below. And the change is already in the v3 patch. On 2017/8/18 23:16, Yunlong Song wrote: I send a v3 patch, please review, and the main difference is shown below. On 2017/8/18 18:20, Chao Yu wrote: Hi Yunlong, IMO, we don't need additional

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-25 Thread Ganapatrao Kulkarni
Hi John, On Thu, Oct 19, 2017 at 3:59 PM, John Garry wrote: >>> >>> #Family-model,Version,Filename,EventType >>> 0x420f5160,v1,cavium,core >>> 0x420f5161,v1,cavium,core >> >> >> certainly, there is Part number(PartNum, bits [15:4] ) change from >> thunderx2 to thunderx3. >> thunde

Re: [PATCH] sound: oss: waveartist: Convert timers to use timer_setup()

2017-10-25 Thread Takashi Iwai
On Tue, 24 Oct 2017 22:07:34 +0200, Kees Cook wrote: > > On Tue, Oct 24, 2017 at 12:25 PM, Takashi Iwai wrote: > > On Tue, 24 Oct 2017 17:35:21 +0200, > > Kees Cook wrote: > >> > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch to usi

[PATCH] scsi: pmcraid: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@vger.kernel.org Signed-off-by: Kees Coo

[PATCH] scsi: megaraid: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Also consolidates the timer setup functions arguments, which are all identical, and corrects on-stack timer u

[PATCH] scsi: sas: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This requires adding a pointer to hold the timer's target task, as there isn't a link back from slow_task. C

[PATCH] scsi: qla4xxx: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: qlogic-storage-upstr...@qlogic.com Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@

[PATCH] scsi: qla2xxx: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: qla2xxx-upstr...@qlogic.com Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@vger.ke

[PATCH] scsi: lpfc: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-s...@vger

[PATCH] scsi: fcoe: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: qlogic-storage-upstr...@qlogic.com Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Johannes Th

[PATCH] scsi: aic7xxx: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
stat_timer only ever assigns the same function and data, so consolidate to using timer_setup(), adjust callback, drop everything else used to pass things around, and remove needless typedefs. reset_timer is unused; remove it. Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Peterse

[PATCH 1/2] efi/efi_test: Prevent an Oops in efi_runtime_query_capsulecaps()

2017-10-25 Thread Ard Biesheuvel
From: Dan Carpenter If "qcaps.capsule_count" is ULONG_MAX then "qcaps.capsule_count + 1" will overflow to zero and kcalloc() will return the ZERO_SIZE_PTR. We try to dereference it inside the loop and crash. Fixes: ff6301dabc3c ("efi: Add efi_test driver for exporting UEFI runtime service inte

[PATCH v7 1/1] pwm: mediatek: add MT2712/MT7622 support

2017-10-25 Thread Zhi Mao
Add support to MT2712 and MT7622. Due to register offset address of pwm7 for MT2712 is not fixed 0x40, add mtk_pwm_reg_offset array for pwm register offset. Reviewed-by: Claudiu Beznea Reviewed-by: Matthias Brugger Signed-off-by: Zhi Mao --- changee in v7: - adjust the commit message Changes i

Re: [PATCH v5 9/9] block: Assign a lock_class per gendisk used for wait_for_completion()

2017-10-25 Thread Ingo Molnar
* Byungchul Park wrote: > Darrick posted the following warning and Dave Chinner analyzed it: > > > == > > WARNING: possible circular locking dependency detected > > 4.14.0-rc1-fixes #1 Tainted: GW > Reported-by: Darrick J. Wong > Ana

[GIT PULL 0/2] EFI updates for v4.15

2017-10-25 Thread Ard Biesheuvel
The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: Linux 4.14-rc4 (2017-10-08 20:53:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git efi-next for you to fetch changes up to c19611def8fd3f524bc945f0e8f9becac

[PATCH 2/2] arm64: efi: ignore EFI_MEMORY_XP attribute if RP and/or WP are set

2017-10-25 Thread Ard Biesheuvel
The UEFI memory map is a bit vague about how to interpret the EFI_MEMORY_XP attribute when it is combined with EFI_MEMORY_RP and/or EFI_MEMORY_WP, which have retroactively been redefined as cacheability attributes rather than permission attributes. So let's ignore EFI_MEMORY_XP if _RP and/or _WP a

[PATCH 1/2] efi/capsule-loader: pr_err() strings should end with newlines

2017-10-25 Thread Ard Biesheuvel
From: Arvind Yadav pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav Cc: Ard Biesheuvel Cc: Jan Kiszka Cc: Kweh Hock Leong Signed-off-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/

Re: [PATCH] sound: oss: waveartist: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
On Wed, Oct 25, 2017 at 3:06 AM, Takashi Iwai wrote: > On Tue, 24 Oct 2017 22:07:34 +0200, > Kees Cook wrote: >> >> On Tue, Oct 24, 2017 at 12:25 PM, Takashi Iwai wrote: >> > On Tue, 24 Oct 2017 17:35:21 +0200, >> > Kees Cook wrote: >> >> >> >> In preparation for unconditionally passing the struc

[tip:locking/core] locking/qrwlock: Use 'struct qrwlock' instead of 'struct __qrwlock'

2017-10-25 Thread tip-bot for Will Deacon
Commit-ID: e0d02285f16e8d5810f3d5d5e8a5886ca0015d3b Gitweb: https://git.kernel.org/tip/e0d02285f16e8d5810f3d5d5e8a5886ca0015d3b Author: Will Deacon AuthorDate: Thu, 12 Oct 2017 13:20:47 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 10:57:24 +0200 locking/qrwlock: Use 'struc

[tip:locking/core] locking/qrwlock: Use atomic_cond_read_acquire() when spinning in qrwlock

2017-10-25 Thread tip-bot for Will Deacon
Commit-ID: b519b56e378ee82caf9b079b04f5db87dedc3251 Gitweb: https://git.kernel.org/tip/b519b56e378ee82caf9b079b04f5db87dedc3251 Author: Will Deacon AuthorDate: Thu, 12 Oct 2017 13:20:49 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 10:57:24 +0200 locking/qrwlock: Use atomic

[tip:locking/core] locking/atomic: Add atomic_cond_read_acquire()

2017-10-25 Thread tip-bot for Will Deacon
Commit-ID: 4df714be4dcf40bfb0d4af0f851a6e1977afa02e Gitweb: https://git.kernel.org/tip/4df714be4dcf40bfb0d4af0f851a6e1977afa02e Author: Will Deacon AuthorDate: Thu, 12 Oct 2017 13:20:48 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 10:57:24 +0200 locking/atomic: Add atomic_

[tip:locking/core] locking/qrwlock, arm64: Move rwlock implementation over to qrwlocks

2017-10-25 Thread tip-bot for Will Deacon
Commit-ID: 087133ac90763cd339b6b67f2998f87dcc136c52 Gitweb: https://git.kernel.org/tip/087133ac90763cd339b6b67f2998f87dcc136c52 Author: Will Deacon AuthorDate: Thu, 12 Oct 2017 13:20:50 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 10:57:25 +0200 locking/qrwlock, arm64: Mov

[tip:locking/core] locking/atomics, dm-integrity: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: d3e632f07b6e637d3643081873867ecb6433b2ce Gitweb: https://git.kernel.org/tip/d3e632f07b6e637d3643081873867ecb6433b2ce Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:11 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:55 +0200 locking/atomics, dm-integr

[PATCH] drivers/crypto: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Herbert Xu Cc: Jesper Nilsson Cc: Lars Persson Cc: Niklas Cassel Cc: "David S. Miller" Cc: Jamie Il

[tip:locking/core] locking/qrwlock: Prevent slowpath writers getting held up by fastpath

2017-10-25 Thread tip-bot for Will Deacon
Commit-ID: d133166146333e1f13fc81c0e6c43c8d99290a8a Gitweb: https://git.kernel.org/tip/d133166146333e1f13fc81c0e6c43c8d99290a8a Author: Will Deacon AuthorDate: Thu, 12 Oct 2017 13:20:51 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 10:57:25 +0200 locking/qrwlock: Prevent sl

[tip:locking/core] locking/atomics, EDAC/altera: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 332efa6374de75c622b782569b16bb50fd722cf5 Gitweb: https://git.kernel.org/tip/332efa6374de75c622b782569b16bb50fd722cf5 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:12 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:56 +0200 locking/atomics, EDAC/alte

[tip:locking/core] locking/atomics, fs/dcache: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 66702eb59064f1077e89cce8e7e3cd48ec4b486c Gitweb: https://git.kernel.org/tip/66702eb59064f1077e89cce8e7e3cd48ec4b486c Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:14 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:57 +0200 locking/atomics, fs/dcache

[PATCH] xtensa: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Kees Cook --- arch/xt

[tip:locking/core] locking/atomics, media/dvb_ringbuffer: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 24fbd6e04e4e4793ec9dd9c2e007b0b38d2ec3ab Gitweb: https://git.kernel.org/tip/24fbd6e04e4e4793ec9dd9c2e007b0b38d2ec3ab Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:16 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:58 +0200 locking/atomics, media/dvb

[tip:locking/core] locking/atomics, firmware/ivc: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: eeafcc5a5925d0819dad462eac1d42fda5fbe36f Gitweb: https://git.kernel.org/tip/eeafcc5a5925d0819dad462eac1d42fda5fbe36f Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:13 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:57 +0200 locking/atomics, firmware/

[tip:locking/core] locking/atomics, fs/ncpfs: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: fd7048adb7a5f3c44154675e0e128fe0f2e16bef Gitweb: https://git.kernel.org/tip/fd7048adb7a5f3c44154675e0e128fe0f2e16bef Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:15 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:58 +0200 locking/atomics, fs/ncpfs:

[PATCH] ARM: footbridge: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Kees Cook --- arch/arm/mach-foot

[tip:locking/core] locking/atomics, net/ipv4/tcp_input.c: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: a9da6f29baf6b61fc94f9768638ee54e9bff173c Gitweb: https://git.kernel.org/tip/a9da6f29baf6b61fc94f9768638ee54e9bff173c Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:18 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:00 +0200 locking/atomics, net/ipv4/

[PATCH] auxdisplay: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Paul Burton Cc: Miguel Ojeda Sandonis Signed-off-by: Kees Cook --- drivers/auxdisplay/img-ascii-lcd.

Re: [PATCH] sound: oss: waveartist: Convert timers to use timer_setup()

2017-10-25 Thread Takashi Iwai
On Wed, 25 Oct 2017 12:17:25 +0200, Kees Cook wrote: > > On Wed, Oct 25, 2017 at 3:06 AM, Takashi Iwai wrote: > > On Tue, 24 Oct 2017 22:07:34 +0200, > > Kees Cook wrote: > >> > >> On Tue, Oct 24, 2017 at 12:25 PM, Takashi Iwai wrote: > >> > On Tue, 24 Oct 2017 17:35:21 +0200, > >> > Kees Cook w

Re: [PATCH v5 08/10] KVM: arm/arm64: vgic-its: Free caches when GITS_BASER Valid bit is cleared

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:27 pm BST, Eric Auger wrote: > When the GITS_BASER.Valid gets cleared, the data structures in > guest RAM are not valid anymore. The device, collection > and LPI lists stored in the in-kernel ITS represent the same > information in some form of cache. So let's void th

[tip:locking/core] locking/atomics, net/average: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: ef4d9af62f47e3070b00c3307a4d8eb5092bb9a2 Gitweb: https://git.kernel.org/tip/ef4d9af62f47e3070b00c3307a4d8eb5092bb9a2 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:19 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:00 +0200 locking/atomics, net/avera

[tip:locking/core] locking/atomics, rcutorture/formal: Prepare for ACCESS_ONCE() removal

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 5cd38016d0c88e3f67528c1a7380a6d5c90859e9 Gitweb: https://git.kernel.org/tip/5cd38016d0c88e3f67528c1a7380a6d5c90859e9 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:23 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:04 +0200 locking/atomics, rcutortur

[tip:locking/core] locking/atomics, samples/mic/mpssd/mpssd.c: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 94bbc9c1a0b0967509f8ad91323245aad30572f7 Gitweb: https://git.kernel.org/tip/94bbc9c1a0b0967509f8ad91323245aad30572f7 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:20 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:01 +0200 locking/atomics, samples/m

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Chris Wilson
Quoting Chris Wilson (2017-10-24 17:17:09) > Quoting Kees Cook (2017-10-24 16:13:44) > > In preparation for unconditionally passing the struct timer_list pointer to > > all timer callbacks, switch to using the new timer_setup() and from_timer() > > to pass the timer pointer explicitly. > > > > Cc:

[tip:locking/core] locking/atomics, workqueue: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: c95491ed6d6a958743d82bea1d053819988da418 Gitweb: https://git.kernel.org/tip/c95491ed6d6a958743d82bea1d053819988da418 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:22 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:03 +0200 locking/atomics, workqueue

[tip:locking/core] locking/atomics, doc/filesystems: Convert ACCESS_ONCE() references

2017-10-25 Thread tip-bot for Paul E. McKenney
Commit-ID: 3587679d93d0b0e4c31e5a2ad1dffdfcb77e8526 Gitweb: https://git.kernel.org/tip/3587679d93d0b0e4c31e5a2ad1dffdfcb77e8526 Author: Paul E. McKenney AuthorDate: Mon, 23 Oct 2017 14:07:24 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:05 +0200 locking/atomics, doc/f

[PATCH] ia64: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. One less trivial change was removing the repeated casting for callers of bte_error_handler() by fixing its f

[tip:locking/core] locking/atomics, selftests/powerpc: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 564cbc87937d5de1b5b666b0ed68122d6c74fa07 Gitweb: https://git.kernel.org/tip/564cbc87937d5de1b5b666b0ed68122d6c74fa07 Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:21 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:02 +0200 locking/atomics, selftests

[tip:locking/core] locking/atomics, mm: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Paul E. McKenney
Commit-ID: b03a0fe0c5e4b46dcd400d27395b124499554a71 Gitweb: https://git.kernel.org/tip/b03a0fe0c5e4b46dcd400d27395b124499554a71 Author: Paul E. McKenney AuthorDate: Mon, 23 Oct 2017 14:07:25 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:01:06 +0200 locking/atomics, mm: C

[PATCH] s390/ap_bus: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Harald Freudenberger Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux-s...@vger.kernel.org Signed-

Re: [PATCH net-next 2/2] net: dsa: lan9303: Learn addresses on CPU port when bridged

2017-10-25 Thread Egil Hjelmeland
On 24. okt. 2017 18:33, Andrew Lunn wrote: On Tue, Oct 24, 2017 at 11:35:15AM +0200, Egil Hjelmeland wrote: + */ +static inline int lan9303_tx_use_arl(struct dsa_port *dp, u8 *dest_addr) Hi Egil There is no need for the inline. The compiler will do that anyway, for a function like this. > Wi

[tip:locking/core] locking/atomics, net/netlink/netfilter: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()

2017-10-25 Thread tip-bot for Mark Rutland
Commit-ID: 14cd5d4a0125f643350e7fa12f5384f1fc2d3e9d Gitweb: https://git.kernel.org/tip/14cd5d4a0125f643350e7fa12f5384f1fc2d3e9d Author: Mark Rutland AuthorDate: Mon, 23 Oct 2017 14:07:17 -0700 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 11:00:59 +0200 locking/atomics, net/netli

[PATCH] leds: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Richard Purdie Cc: Jacek Anaszewski Cc: Pavel Machek Cc: Willy Tarreau Cc: linux-l...@vger.kernel.or

Re: [PATCH] bitmap: Fix optimization of bitmap_set/clear for big-endian machines

2017-10-25 Thread Michael Ellerman
Paul Mackerras writes: > On Wed, Oct 25, 2017 at 07:39:48AM +, Matthew Wilcox wrote: >> Hang on, don't tell me you found this by inspection. Are you not >> running the bitmap testcase, enabled by CONFIG_TEST_BITMAP? Either >> that should be producing an error, or there's a missing test case,

Re: [PATCH v5 07/10] KVM: arm/arm64: vgic-its: New helper functions to free the caches

2017-10-25 Thread Christoffer Dall
On Mon, Oct 23, 2017 at 04:08:26PM +0200, Eric Auger wrote: > From: wanghaibin > > We create two new functions that free the device and > collection lists. They are currently called by vgic_its_destroy() > and other callers will be added in subsequent patches. > > We also remove the check on its

Re: [PATCH 0/2] KVM: fixes for the kernel-hardening tree

2017-10-25 Thread Christian Borntraeger
On 10/25/2017 11:45 AM, David Hildenbrand wrote: > On 23.10.2017 16:15, Paolo Bonzini wrote: >> On 23/10/2017 14:39, Cornelia Huck wrote: >>> On Mon, 23 Oct 2017 11:52:51 +0200 >>> David Hildenbrand wrote: >>> On 21.10.2017 01:25, Paolo Bonzini wrote: > Two KVM ioctls (KVM_GET/SET_CPUID

Re: [PATCH v5 07/10] KVM: arm/arm64: vgic-its: New helper functions to free the caches

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:26 pm BST, Eric Auger wrote: > From: wanghaibin > > We create two new functions that free the device and > collection lists. They are currently called by vgic_its_destroy() > and other callers will be added in subsequent patches. > > We also remove the check on its->

[PATCH] watchdog: cpwd: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Switches to using the global that is used everywhere else. Cc: Wim Van Sebroeck Cc: Guenter Roeck Cc: linu

<    1   2   3   4   5   6   7   8   >