Re: [RFC 0/5] x86/intel_rdt: Better diagnostics

2017-09-21 Thread Borislav Petkov
On Mon, Sep 18, 2017 at 03:18:38PM -0700, Luck, Tony wrote: > From: Tony Luck > > Chatting online with Boris to diagnose why his test cases for RDT > weren't working, we came up with either a good idea (in which case > I credit Boris) or a dumb one (in which case this is all my fault). Ha! I can

Re: [PATCH] pinctrl: single: make two arrays static const, reduces object code size

2017-09-21 Thread Linus Walleij
On Tue, Sep 19, 2017 at 4:42 PM, Colin King wrote: > From: Colin Ian King > > Don't populate the read-only arrays prop2 and prop4 on the stack, instead > make them static const. Makes the object code smaller by over 230 bytes: > > Before: >textdata bss dec hex filename > 2

Re: [PATCH] pinctrl: bcm2835: fix build warning in bcm2835_gpio_irq_handle_bank

2017-09-21 Thread Linus Walleij
On Tue, Sep 19, 2017 at 9:04 PM, Corentin Labbe wrote: > This patch fix the following build warning: > drivers/pinctrl/bcm/pinctrl-bcm2835.c:376:15: warning: variable 'type' set > but not used [-Wunused-but-set-variable] > > Furthermore, it is unused for a long time, at least since commit 85ae9e

Re: [PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-21 Thread Linus Walleij
On Thu, Sep 21, 2017 at 7:14 AM, Arvind Yadav wrote: > devm_kasprintf() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav > --- > changes in v2 : > Set return 'err' to -ENOMEM. Patch applied. Yours, Linus Walleij

Re: [RFC PATCH v2 1/2] membarrier: Provide register expedited private command

2017-09-21 Thread Peter Zijlstra
On Mon, Sep 18, 2017 at 06:36:47PM -0400, Mathieu Desnoyers wrote: > @@ -3373,6 +3362,7 @@ static void __sched notrace __schedule(bool preempt) > > /* Also unlocks the rq: */ > rq = context_switch(rq, prev, next, &rf); > + membarrier_arch_sched_in(prev, nex

Re: [PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf

2017-09-21 Thread Linus Walleij
On Wed, Sep 20, 2017 at 9:13 AM, Arvind Yadav wrote: > devm_kasprintf() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Patch applied. Yours, Linus Walleij

Re: [RFC] [Resend] Another Para-Virtualization page recycler -- Code details, Trap-less way to return free pages to kernel

2017-09-21 Thread Jonathan Corbet
On Thu, 21 Sep 2017 16:25:39 +0800 "XaviLi" wrote: > We raised a topic about PPR (Per Page Recycler) and thank to Jan Kiszka > for advises. We are here to break up patch codes and explain the code > in detail. There are too many things to explain in one topic. We would > like to do it part by par

Re: [PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-09-21 Thread Linus Walleij
On Thu, Sep 21, 2017 at 10:13 AM, Zhiyong Tao wrote: > On Tue, 2017-08-22 at 15:04 +0200, Linus Walleij wrote: >> On Mon, Aug 14, 2017 at 5:23 PM, Matthias Brugger >> wrote: >> > On 07/31/2017 10:22 AM, Zhiyong Tao wrote: >> >> >> >> The commit includes two change: >> >> 1)add pintcrl device node

[PATCH v2] staging: ccree: Convert to platform_{get,set}_drvdata()

2017-09-21 Thread sunil . m
struct platform_device. dev_set_drvdata() is redundant and therefore removed. The driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Suniel Mahesh --- Changes for v2: - Rebased on top of staging-testing. --- Note: - Patch was tested and built(ARCH=arm) on next-2

[PATCH] debugfs: Add check for module parameter name

2017-09-21 Thread Arvind Yadav
Here, start_creating() is calling by debugfs_create_dir() and debugfs_create_automount(). driver can pass name as NULL in debugfs_create_dir and debugfs_create_automount. So we need to add check for 'name'. Signed-off-by: Arvind Yadav --- fs/debugfs/inode.c | 3 +++ 1 file changed, 3 insertions(

Re: [PATCH 2/2] x86/asm: Fix inline asm call constraints for clang

2017-09-21 Thread Dmitry Vyukov
On Thu, Sep 21, 2017 at 1:52 PM, Brian Gerst wrote: >>> I think we need just the frame itself and RSP pointing below this >>> frame. If we don't have a frame, CALL instruction will smash whatever >>> RSP happens to point to. Compiler doesn't have to setup RSP to point >>> below use

Re: [PATCH] pinctrl: meson: fix incorrect usage of ENOSYS

2017-09-21 Thread Linus Walleij
On Wed, Sep 20, 2017 at 4:08 PM, Jerome Brunet wrote: > ENOSYS is special and should only be used for incorrect syscall number. > It is not the case here. let's use ENOTSUPP instead. > > Signed-off-by: Jerome Brunet Patch applied. Yours, Linus Walleij

Re: [PATCH] gpio: Wakeup gpio controller when it is used as IRQ controller

2017-09-21 Thread Linus Walleij
On Wed, Sep 20, 2017 at 10:07 PM, Grygorii Strashko wrote: > On 09/20/2017 02:14 AM, Michal Simek wrote: >> From: Borsodi Petr >> >> There is a problem with GPIO driver when used as IRQ controller. >> It is not working because the module is sleeping (clock is disabled). >> The patch enables clock

[PATCH 1/1] drivers:s390: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/s390/net/fsm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/s390/net/fsm.c b/drivers/s390/net/fsm.c index e5dea67..8c14c6

Re: [PATCH 0/8] pinctrl: meson: clean pin offsets

2017-09-21 Thread Linus Walleij
On Wed, Sep 20, 2017 at 3:39 PM, Jerome Brunet wrote: > The initial goal of this series was move to TEST_N pin from the EE > controller to AO controller, where it belongs. This meant modify the > EE_OFF value. > > This offset is a quirk we brought from the vendor driver when it was > initially me

Re: [PATCH v3] membarrier: Document scheduler barrier requirements

2017-09-21 Thread Peter Zijlstra
On Tue, Sep 19, 2017 at 06:02:05PM -0400, Mathieu Desnoyers wrote: > diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c > index 1ab3821f9e26..74f94fe4aded 100644 > --- a/arch/x86/mm/tlb.c > +++ b/arch/x86/mm/tlb.c > @@ -144,6 +144,11 @@ void switch_mm_irqs_off(struct mm_struct *prev, struct > mm_s

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-21 Thread Kunihiko Hayashi
On Mon, 11 Sep 2017 15:55:56 +0900 wrote: > > > +static int ave_set_rxdesc(struct net_device *ndev, int entry) > > > +{ > > > + struct ave_private *priv = netdev_priv(ndev); > > > + struct sk_buff *skb; > > > + unsigned long align; > > > + dma_addr_t paddr; > > > + void *buffptr; > > > + int ret

Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE)

2017-09-21 Thread Peter Zijlstra
On Thu, Sep 21, 2017 at 01:08:42PM +0200, Markus Trippelsdorf wrote: > On 2017.09.11 at 16:21 +0200, Markus Trippelsdorf wrote: > > On 2017.09.11 at 06:11 -0700, Tejun Heo wrote: > > > Hello, > > > > > > On Sun, Sep 10, 2017 at 09:36:53AM +0200, Markus Trippelsdorf wrote: > > > > Since: > > > > > >

[PATCH v2 1/1] usb: gadget: udc: omap: use setup_timer() helper

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. V2: fixed the subject line and spaces. Signed-off-by: Allen Pais --- drivers/usb/gadget/udc/omap_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/

Re: [PATCH 1/1] drivers:usb: use setup_timer

2017-09-21 Thread Allen
> > subject should've been something like: > > usb: gadget: udc: omap: use setup_timer() helper > > Also, you should've Cced linux-...@vger.kernel.org and > linux-o...@vger.kernel.org > > On Thu, Sep 21, 2017 at 2:28 PM Allen Pais wrote: >> >> Use setup_timer function instead of initializing t

Re: native_smp_send_reschedule() splat from rt_mutex_lock()?

2017-09-21 Thread Peter Zijlstra
On Wed, Sep 20, 2017 at 06:24:47PM +0200, Sebastian Andrzej Siewior wrote: > On 2017-09-18 09:51:10 [-0700], Paul E. McKenney wrote: > > Hello! > Hi, > > > [11072.586518] sched: Unexpected reschedule of offline CPU#6! > > [11072.587578] [ cut here ] > > [11072.588563] WARNI

[PATCH 1/1] wireless: broadcom: brcm80211: use setup_timer() helper

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm8021

[PATCH v2] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-09-21 Thread Yisheng Xie
According to Spec, it is ILLEGAL to set STE.S1STALLD if STALL_MODEL is not 0b00, which means we should not disable stall mode if stall or terminate mode is not configuable. Meanwhile, it is also ILLEGAL when STALL_MODEL==0b10 && CD.S==0 which means if stall mode is force we should always set CD.S.

Re: [PATCH] debugfs: Add check for module parameter name

2017-09-21 Thread Al Viro
On Thu, Sep 21, 2017 at 05:46:54PM +0530, Arvind Yadav wrote: > Here, start_creating() is calling by debugfs_create_dir() > and debugfs_create_automount(). driver can pass name as NULL in > debugfs_create_dir and debugfs_create_automount. So we need to > add check for 'name'. Huh? "Driver can pas

Re: [PATCH 03/10] coda: honor AT_STATX_DONT_SYNC

2017-09-21 Thread Miklos Szeredi
On Wed, Sep 20, 2017 at 10:04 PM, Jan Harkes wrote: > On Wed, Sep 20, 2017 at 10:39:58AM +0200, Miklos Szeredi wrote: >> The description of this flag says "Don't sync attributes with the server". >> In other words: always use the attributes cached in the kernel and don't >> send network or local m

Re: Memory-ordering recipes

2017-09-21 Thread Peter Zijlstra
On Sun, Sep 17, 2017 at 04:05:09PM -0700, Paul E. McKenney wrote: > So what litmus tests are needed? Here is my initial set: > > 1.Release-acquire chains, AKA ISA2, Z6.2, LB, and 3.LB > > Lots of variety here, can in some cases substitute: > > a. READ_ONCE() for smp_

[PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-09-21 Thread Guochun Mao
Abstract functions of clock setting, to avoid duplicated code, these functions been used in new feature. Implement suspend/resume functions. Signed-off-by: Guochun Mao --- drivers/mtd/spi-nor/mtk-quadspi.c | 70 ++--- 1 file changed, 58 insertions(+), 12 deletio

[PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-09-21 Thread Guochun Mao
Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Explicate the fallback compatible. Acked-by: Rob Herring Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 15 +-- 1 file changed, 9 insertions(+), 6 dele

[PATCH v1] mtk-nor: update dt bindings and add suspend/resume support

2017-09-21 Thread Guochun Mao
These patches affect mtk-quadspi module in mtk/spi-nor. Add new compatible strings in dt bindings, add suspend/resume support in mtk-quadspi driver. Guochun Mao (2): dt-bindings: mtd: add new compatible strings and improve description mtd: mtk-nor: add suspend/resume support .../devicetree/b

Re: [PATCH] nvme: make controller 'state' sysfs attribute pollable

2017-09-21 Thread Guan Junxiong
On 2017/9/20 22:59, Christoph Hellwig wrote: > On Wed, Sep 20, 2017 at 12:40:32PM +0200, Johannes Thumshirn wrote: >> Notify sysfs about changes of a nvme controller so user-space can watch the >> file via poll() or select() in order to react to a state change. > > Userspace has no business poll

[PATCH 1/1] net: wan : hdlc: use setup_timer() helper

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/net/wan/hdlc_fr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 78596e4..

Re: [PATCH v4 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-21 Thread Pierre Yves MORDRET
On 09/21/2017 01:25 PM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > > Great that you got it working w/o a custom API! > I have one comment, which actually valid for the ti-dma-cr

Re: [RFC PATCH 3/7] sound: core: Avoid using timespec for struct snd_pcm_sync_ptr

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > The struct snd_pcm_sync_ptr will use 'timespec' type variables to record > timestamp, which is not year 2038 safe on 32bits system. > > Thus we introduced 'struct snd_pcm_sync_ptr32' and 'struct snd_pcm_sync_ptr64' > to handle 32bit time_t and

[PATCH] [trivial] dt-bindings: i2c: i2c-mux: Spelling s/required is/required if/

2017-09-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/i2c/i2c-mux.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux.txt b/Documentation/devicetree/bindings/i2c/i2c-mux.txt index 212e6779dc5c0caf..b38f58a1c8

[PATCH 1/1] net: usb: catc: use setup_timer() helper

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/net/usb/catc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index dbc9031..aeb62e1 100

Re: [RFC PATCH 4/7] sound: core: Avoid using timespec for struct snd_rawmidi_status

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > - case SNDRV_RAWMIDI_IOCTL_STATUS: > +#if __BITS_PER_LONG == 32 > + case SNDRV_RAWMIDI_IOCTL_STATUS32: > + { > + int err = 0; > + struct snd_rawmidi_status32 __user *status = argp; > +

Re: [RFC PATCH 6/7] uapi: sound: Avoid using timespec for struct snd_ctl_elem_value

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > The struct snd_ctl_elem_value will use 'timespec' type variables to record > timestamp, which is not year 2038 safe on 32bits system. > > Since there are no drivers will implemented the tstamp member of the > struct snd_ctl_elem_value, and also

Re: [PATCH] media: staging: greybus: Release memory obtained by kasprintf

2017-09-21 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 05:05:27PM +0530, Arvind Yadav wrote: > Free memory region, if gb_lights_channel_config is not successful. > The question I have is do we free this on module unload? I don't see that we do. I feel like we should do a free after calling __gb_lights_led_unregister(). But

[PATCH 1/1] net: ti: netcp: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/net/ethernet/ti/netcp_ethss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethe

Re: [patch] memfd_create.2: Add description of MFD_HUGETLB (hugetlbfs) support

2017-09-21 Thread Michael Kerrisk (man-pages)
Hi Mike, On 09/15/2017 11:43 PM, Mike Kravetz wrote: > hugetlbfs support for memfd_create was recently merged by Linus and > should be in the Linux 4.14 release. To request hugetlbfs support > a new memfd_create flag (MFD_HUGETLB) was added. > > This patch documents the following commit: > > co

Re: [RFC PATCH 7/7] sound: core: Avoid using timespec for struct snd_timer_tread

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > +static int snd_timer_user_tread(void __user *argp, struct snd_timer_user *tu, > + unsigned int cmd) > +{ > + int __user *p = argp; > + int xarg, old_tread; > + > + if (tu->timeri) /* too late */

Re: Rough notes from sys_membarrier() lightning BoF

2017-09-21 Thread Peter Zijlstra
On Wed, Sep 20, 2017 at 06:13:50PM +, Mathieu Desnoyers wrote: > > Also, can you elaborate on the PPC issue? PPC appears to track > > mm_cpumask more or less just like x86. Is the issue just that this > > tracking has no implied barriers? If so, how does TLB flush on ppc > > work? It reall

[PATCH 1/1] time: clocksource: use setup_timer() helper.

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- kernel/time/clocksource.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 03918a1..5b5

Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, > unsigned long arg) > @@ -158,12 +151,10 @@ static long snd_timer_user_ioctl_compat(struct file > *file, unsigned int cmd, uns > return snd_timer_

Re: Rough notes from sys_membarrier() lightning BoF

2017-09-21 Thread Peter Zijlstra
On Wed, Sep 20, 2017 at 06:13:50PM +, Mathieu Desnoyers wrote: > My proposed RFC for private expedited membarrier enforces that all > architectures perform the registration step. Using the "PRIVATE_EXPEDITED" > command without prior process registration returns an error on all > architectures.

Re: [PATCH] ov9655: fix potential integer overflow

2017-09-21 Thread kbuild test robot
Hi Gustavo, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170921] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gustavo-A-R-Silva/ov9655-fix

Re: [PATCH 1/1] drivers:s390: use setup_timer

2017-09-21 Thread Julian Wiedmann
On 09/21/2017 02:20 PM, Allen Pais wrote: > Use setup_timer function instead of initializing timer with the > function and data fields. > > Signed-off-by: Allen Pais Thanks Allen, queued up for our next upstream submission.

Re: gcc-8 objtool warnings

2017-09-21 Thread Arnd Bergmann
On Tue, Sep 19, 2017 at 11:39 PM, Josh Poimboeuf wrote: > On Tue, Sep 19, 2017 at 10:43:31PM +0200, Arnd Bergmann wrote: > - > From: Josh Poimboeuf > Subject: [PATCH] objtool: Support unoptimized frame pointer setup > > Arnd Bergmann reported a bunch of warnings like: > > crypto/jitterentr

Re: native_smp_send_reschedule() splat from rt_mutex_lock()?

2017-09-21 Thread Sebastian Andrzej Siewior
On 2017-09-21 14:41:05 [+0200], Peter Zijlstra wrote: > On Wed, Sep 20, 2017 at 06:24:47PM +0200, Sebastian Andrzej Siewior wrote: > > On 2017-09-18 09:51:10 [-0700], Paul E. McKenney wrote: > > > Hello! > > Hi, > > > > > [11072.586518] sched: Unexpected reschedule of offline CPU#6! > > > [11072.5

[PATCH] Input: add support for the Samsung S6SY761 touchscreen

2017-09-21 Thread Andi Shyti
The S6SY761 touchscreen is a capicitive multi-touch controller for mobile use. It's connected with i2c at the address 0x48. This commit provides a basic version of the driver which can handle only initialization, touch events and power states. The controller is controlled by a firmware which, in

[PATCH v1] i2c:i2c-stm32f7: fix setup structure

2017-09-21 Thread Pierre-Yves MORDRET
I2C drive setup structure is not properly allocated. Make it static instead of pointer to store driver data. Signed-off-by: Pierre-Yves MORDRET --- drivers/i2c/busses/i2c-stm32f7.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.

Re: [patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-21 Thread Konrad Rzeszutek Wilk
On Thu, Sep 21, 2017 at 08:38:37AM -0300, Marcelo Tosatti wrote: > When executing guest vcpu-0 with FIFO:1 priority, which is necessary to > deal with the following situation: > > VCPU-0 (housekeeping VCPU)VCPU-1 (realtime VCPU) > > raw_spin_lock(A) > interrupted, schedule task T-1

the most competitive price of solar water heaters for the international market

2017-09-21 Thread Mr.David
Hi, How are you, In the attachment, it is the new catalogue/price list in 2017. It includes many new products, such as 1). model SHC: CPC heat pipe collectors--highest power output: 2). model A9: CPC Integrated pressure solar system--overheating solution; 3). model SPH: the heat pipe flat type

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-21 Thread Konrad Rzeszutek Wilk
On Thu, Sep 21, 2017 at 08:38:38AM -0300, Marcelo Tosatti wrote: > Add hypercalls to spinlock/unlock to set/unset FIFO priority > for the vcpu, protected by a static branch to avoid performance > increase in the normal kernels. > > Enable option by "kvmfifohc" kernel command line parameter (disabl

[PATCH v3] drivers: cpufreq: Fix sysfs duplicate filename creation for platform-device

2017-09-21 Thread sunil . m
From: Suniel Mahesh ti-cpufreq and cpufreq-dt-platdev drivers are registering platform-device with same name "cpufreq-dt" using platform_device_register_*() routines. This is leading to build warnings appended below. Providing hardware information to OPP framework along with the platform- device

Re: [PATCH 6/6] lightnvm: include NVM Express driver if OCSSD is selected for build

2017-09-21 Thread Rakesh Pandit
On Thu, Sep 21, 2017 at 01:32:40PM +0200, Matias Bjørling wrote: > On 09/21/2017 01:28 PM, Rakesh Pandit wrote: > > Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM > > in config file before building kernel. > > > > Signed-off-by: Rakesh Pandit > > --- > > drivers/lightnvm

[PATCH V2] lightnvm: include NVM Express driver if OCSSD is selected for build

2017-09-21 Thread Rakesh Pandit
Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM in config file before building kernel. Also append PCI to depends as select doesn't automatically add dependencies. Signed-off-by: Rakesh Pandit --- V2: appends 'depends' with PCI drivers/lightnvm/Kconfig | 3 ++- 1 file c

Re: [PATCH V2] lightnvm: include NVM Express driver if OCSSD is selected for build

2017-09-21 Thread Matias Bjørling
On 09/21/2017 03:41 PM, Rakesh Pandit wrote: Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM in config file before building kernel. Also append PCI to depends as select doesn't automatically add dependencies. Signed-off-by: Rakesh Pandit --- V2: appends 'depends' with

[PATCH net-next] net: mvpp2: phylink support

2017-09-21 Thread Antoine Tenart
Convert the PPv2 driver to use phylink, which models the MAC to PHY link. The phylink support is made such a way the GoP link IRQ can still be used: the two modes are incompatible and the GoP link IRQ will be used if no PHY is described in the device tree. This is the same behaviour as before. Sig

Re: [patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-21 Thread Paolo Bonzini
On 21/09/2017 15:32, Konrad Rzeszutek Wilk wrote: > So the guest can change the scheduling decisions at the host level? > And the host HAS to follow it? There is no policy override for the > host to say - nah, not going to do it? > > Also wouldn't the guest want to always be at SCHED_FIFO? [I am t

[PATCH] Bluetooth: avoid recursive locking in hci_send_to_channel()

2017-09-21 Thread Sebastian Andrzej Siewior
Mart reported a deadlock in -RT in the call path: hci_send_monitor_ctrl_event() -> hci_send_to_channel() because both functions acquire the same read lock hci_sk_list.lock. This is also a mainline issue because the qrwlock implementation is writer fair (the traditional rwlock implementation is r

Re: usb/core: slab-out-of-bounds read in cdc_parse_cdc_header

2017-09-21 Thread Andrey Konovalov
On Thu, Sep 21, 2017 at 10:04 AM, Greg Kroah-Hartman wrote: > On Thu, Sep 21, 2017 at 09:31:54AM +0200, Greg Kroah-Hartman wrote: >> On Wed, Sep 20, 2017 at 04:45:08PM +0200, Andrey Konovalov wrote: >> > Hi! >> > >> > I've got the following crash while fuzzing the kernel with syzkaller. >> > >> >

Re: [linux-sunxi] [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-09-21 Thread Ondřej Jirman
Hello Yong, I noticed one issue in the register macros. See below. Yong Deng píše v Čt 27. 07. 2017 v 13:01 +0800: > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > and CSI1 is used for parallel interface. This is not documented in > datasheet but by testing and guess. >

Re: [PATCH] media: staging: greybus: Release memory obtained by kasprintf

2017-09-21 Thread Rui Miguel Silva
Hi, On Thu, Sep 21, 2017 at 03:59:18PM +0300, Dan Carpenter wrote: > On Thu, Sep 21, 2017 at 05:05:27PM +0530, Arvind Yadav wrote: > > Free memory region, if gb_lights_channel_config is not successful. Arvind, thanks for patch and good catch. But please look at the subject of other patches applied

[PATCH] cgroup: Reinit cgroup_taskset structure before cgroup_migrate_execute() returns

2017-09-21 Thread Waiman Long
The cgroup_taskset structure within the larger cgroup_mgctx structure is supposed to be used once and then discarded. That is not really the case in the hotplug code path: cpuset_hotplug_workfn() - cgroup_transfer_tasks() - cgroup_migrate() - cgroup_migrate_add_task() - cgroup_migrat

Re: [PATCH v2 1/2] include: linux: sysfs: Add __ATTR_NAMED macro

2017-09-21 Thread Jonathan Cameron
On Mon, 18 Sep 2017 16:19:07 +0530 Himanshi Jain wrote: > On Thu, Sep 14, 2017 at 2:20 AM, Jonathan Cameron > wrote: > > > > > > On 13 September 2017 12:23:31 GMT-07:00, Lars-Peter Clausen > > wrote: > >>On 09/13/2017 08:58 PM, Greg KH wrote: > >>> On Wed, Sep 13, 2017 at 06:03:10PM +0100,

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-21 Thread Peter Zijlstra
On Mon, Sep 18, 2017 at 11:11:05AM -0400, Steven Rostedt wrote: > On Sun, 17 Sep 2017 11:37:06 +0530 > Neeraj Upadhyay wrote: > > > Hi Paul, how about replacing raw_spin_trylock_irqsave with > > raw_spin_lock_irqsave in resched_cpu()? Are there any paths > > in RCU code, which depend on trylock c

[PATCH 12/12] platform/x86: Kconfig: Change the default settings for dell-wmi-smbios

2017-09-21 Thread Mario Limonciello
The dell-wmi-smbios driver should be enabled by default when ACPI_WMI is enabled (like many other WMI drivers). Signed-off-by: Mario Limonciello --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index

[PATCH 01/12] platform/x86: dell-wmi: label driver as handling notifications

2017-09-21 Thread Mario Limonciello
This driver serves the purpose of responding to WMI based notifications from the DELL_EVENT_GUID (9DBB5994-A997-11DA-B012-B622A1EF5492). Other GUIDs will be handled by separate drivers. Update the language used by this driver to avoid future confusion. Signed-off-by: Mario Limonciello --- MAINT

[PATCH 02/12] platform/x86: dell-wmi: Don't match on descriptor GUID modalias

2017-09-21 Thread Mario Limonciello
The descriptor GUID is not used to indicate that WMI notifications in the dell-wmi driver work properly. As such a modalias should not be present that causes this driver to load on systems with this GUID. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 1 - 1 file changed

[PATCH 08/12] platform/x86: wmi: Cleanup exit routine in reverse order of init

2017-09-21 Thread Mario Limonciello
The initialize routine is: * class -> bus -> platform The exit routine is: * platform -> class -> bus Fix the exit routine to be: * platform -> bus -> class Signed-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH 10/12] platform/x86: wmi: destroy on cleanup rather than unregister

2017-09-21 Thread Mario Limonciello
device_create documentation says to cleanup using device_destroy Signed-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index d1e128864d24..84314c0ef9c2 100644

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-21 Thread Peter Zijlstra
On Mon, Sep 18, 2017 at 09:55:27AM -0700, Paul E. McKenney wrote: > On Mon, Sep 18, 2017 at 12:29:31PM -0400, Steven Rostedt wrote: > > On Mon, 18 Sep 2017 09:24:12 -0700 > > "Paul E. McKenney" wrote: > > > > > > > As soon as I work through the backlog of lockdep complaints that > > > appeared i

[PATCH 00/12] Introduce support for Dell SMBIOS over WMI

2017-09-21 Thread Mario Limonciello
The existing way that the dell-smbios helper module and associated other drivers (dell-laptop, dell-wmi) communicate with the platform really isn't secure. It requires creating a buffer in physical DMA32 memory space and passing that to the platform via SMM. Since the platform got a physical memo

[PATCH 07/12] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check

2017-09-21 Thread Mario Limonciello
The Dell WMI descriptor check is used as an indication that WMI calls are safe to run both when used with the notification ASL/GUID pair as well as the SMBIOS calling ASL/GUID pair. As some code in dell-wmi-smbios is already a prerequisite for dell-wmi, move the code for performing the descriptor

[PATCH 09/12] platform/x86: wmi: create character devices when requested by drivers

2017-09-21 Thread Mario Limonciello
For WMI operations that are only Set or Query read or write sysfs attributes created by WMI vendor drivers make sense. For other WMI operations that are run on Method, there needs to be a way to guarantee to userspace that the results from the method call belong to the data request to the method c

[PATCH 06/12] platform/x86: dell-wmi-smbios: Add a sysfs interface for SMBIOS tokens

2017-09-21 Thread Mario Limonciello
Currently userspace tools can access system tokens via the dcdbas kernel module and a SMI call that will cause the platform to execute SMM code. With a goal in mind of deprecating the dcdbas kernel module a different method for accessing these tokens from userspace needs to be created. This is in

[PATCH 11/12] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-21 Thread Mario Limonciello
This userspace character device will be used to perform SMBIOS calls from any applications sending a properly formatted 4k calling interface buffer. This character device is intended to deprecate the dcdbas kernel module and the interface that it provides to userspace. It's important for the driv

[PATCH 04/12] platform/x86: dell-smbios: Switch to a WMI-ACPI interface

2017-09-21 Thread Mario Limonciello
The driver currently uses an SMI interface which grants direct access to physical memory to the platform via a pointer. Changing this to operate over WMI-ACPI will use an ACPI OperationRegion for a buffer of data storage when platform calls are performed. This is a safer approach to use in kernel

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-21 Thread Peter Zijlstra
On Tue, Sep 19, 2017 at 08:31:26AM -0700, Paul E. McKenney wrote: > So I have this one queued. Objections? Changelog reads like its whitespace damaged. > commit bc43e2e7e08134e6f403ac845edcf4f85668d803 > Author: Paul E. McKenney > Date: Mon Sep 18 08:54:40 2017 -0700 > > sched: Make resc

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-21 Thread Jonathan Cameron
On Wed, 20 Sep 2017 20:59:52 +0200 Wolfram Sang wrote: > One helper checks if DMA is suitable and optionally creates a bounce > buffer, if not. The other function returns the bounce buffer and makes > sure the data is properly copied back to the message. > > Signed-off-by: Wolfram Sang One min

Re: [PATCH] [media] cx231xx-cards: fix NULL-deref on missing association descriptor

2017-09-21 Thread Andrey Konovalov
On Thu, Sep 21, 2017 at 10:40 AM, Johan Hovold wrote: > Make sure to check that we actually have an Interface Association > Descriptor before dereferencing it during probe to avoid dereferencing a > NULL-pointer. > > Fixes: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx USB driver") > Cc: stable

[PATCH 05/12] platform/x86: dell-smbios: rename to dell-wmi-smbios

2017-09-21 Thread Mario Limonciello
This follows the style of the rest of the platform x86 WMI drivers. Renaming the driver requires adjusting the other drivers using dell-smbios to pick up the newly named includes. While renaming, I noticed that this driver was missing from MAINTAINERs. Add it to that and myself to the list of peo

[PATCH 03/12] platform/x86: dell-smbios: Add pr_fmt definition to driver

2017-09-21 Thread Mario Limonciello
Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c index 0a5723468bff..e9b1ca07c872 100644 --- a/drivers/platform/x86/dell-smbios.c +++ b/drivers/platf

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-21 Thread Jonathan Cameron
On Thu, 21 Sep 2017 14:59:22 +0100 Jonathan Cameron wrote: > On Wed, 20 Sep 2017 20:59:52 +0200 > Wolfram Sang wrote: > > > One helper checks if DMA is suitable and optionally creates a bounce > > buffer, if not. The other function returns the bounce buffer and makes > > sure the data is proper

Re: [PATCH v2 27/31] usb/gadget/snps_udc_core: Remove struct timer_list.data use

2017-09-21 Thread Michal Nazarewicz
On Wed, Sep 20 2017, Kees Cook wrote: > If the probe fails, udc_remove() will not be called, so there is no > reason to make del_timer_sync() calls conditional. As a result, use of > the .data field can be dropped, in support of making removing this field > entirely from struct timer_list. > > Cc:

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-21 Thread Peter Zijlstra
On Thu, Sep 21, 2017 at 09:36:53AM -0400, Konrad Rzeszutek Wilk wrote: > On Thu, Sep 21, 2017 at 08:38:38AM -0300, Marcelo Tosatti wrote: > > Add hypercalls to spinlock/unlock to set/unset FIFO priority > > for the vcpu, protected by a static branch to avoid performance > > increase in the normal k

Re: usb/core: slab-out-of-bounds read in cdc_parse_cdc_header

2017-09-21 Thread Greg Kroah-Hartman
On Thu, Sep 21, 2017 at 03:51:44PM +0200, Andrey Konovalov wrote: > On Thu, Sep 21, 2017 at 10:04 AM, Greg Kroah-Hartman > wrote: > > On Thu, Sep 21, 2017 at 09:31:54AM +0200, Greg Kroah-Hartman wrote: > >> On Wed, Sep 20, 2017 at 04:45:08PM +0200, Andrey Konovalov wrote: > >> > Hi! > >> > > >> >

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-09-21 Thread Christoph Hellwig
On Wed, Sep 13, 2017 at 02:40:00PM +0300, Adrian Hunter wrote: > Non-CQE blk-mq showed a 3% decrease in sequential read performance. This > seemed to be coming from the inferior latency of running work items compared > with a dedicated thread. Hacking blk-mq workqueue to be unbound reduced the >

Re: [Outreachy kernel] Re: [PATCH v2 1/2] include: linux: sysfs: Add __ATTR_NAMED macro

2017-09-21 Thread Julia Lawall
On Thu, 21 Sep 2017, Jonathan Cameron wrote: > On Mon, 18 Sep 2017 16:19:07 +0530 > Himanshi Jain wrote: > > > On Thu, Sep 14, 2017 at 2:20 AM, Jonathan Cameron > > wrote: > > > > > > > > > On 13 September 2017 12:23:31 GMT-07:00, Lars-Peter Clausen > > > wrote: > > >>On 09/13/2017 08:58 PM,

Re: [RFC PATCH v5 3/6] i2c: add docs to clarify DMA handling

2017-09-21 Thread Jonathan Cameron
On Wed, 20 Sep 2017 16:56:48 -0300 Mauro Carvalho Chehab wrote: > Em Wed, 20 Sep 2017 20:59:53 +0200 > Wolfram Sang escreveu: > > > Signed-off-by: Wolfram Sang > > Documentation looks OK on my eyes. So: > > Reviewed-by: Mauro Carvalho Chehab Really minor suggestion inline. I don't really

Re: [v2,1/3] can: m_can: Make hclk optional

2017-09-21 Thread Sekhar Nori
On Thursday 21 September 2017 06:01 AM, Franklin S Cooper Jr wrote: > > > On 08/24/2017 03:00 AM, Sekhar Nori wrote: >> + some OMAP folks and Linux OMAP list >> >> On Tuesday 25 July 2017 04:21 AM, Franklin Cooper wrote: >>> Hclk is the MCAN's interface clock. However, for OMAP based devices such

Re: [PATCH] nvme: make controller 'state' sysfs attribute pollable

2017-09-21 Thread Christoph Hellwig
On Thu, Sep 21, 2017 at 07:19:15AM +0200, Johannes Thumshirn wrote: > So why exposing it then in the first time? It is a really nice debug aid, but the states really are an internal detail of the implementation, and can (and probably will soon, see the fc states discussion) change. Maybe we need

Re: usb/core: slab-out-of-bounds read in cdc_parse_cdc_header

2017-09-21 Thread Andrey Konovalov
On Thu, Sep 21, 2017 at 4:07 PM, Greg Kroah-Hartman wrote: > On Thu, Sep 21, 2017 at 03:51:44PM +0200, Andrey Konovalov wrote: >> On Thu, Sep 21, 2017 at 10:04 AM, Greg Kroah-Hartman >> wrote: >> > On Thu, Sep 21, 2017 at 09:31:54AM +0200, Greg Kroah-Hartman wrote: >> >> On Wed, Sep 20, 2017 at 0

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-21 Thread Wolfram Sang
> > > +/** > > > + * i2c_release_dma_safe_msg_buf - release DMA safe buffer and sync with > > > i2c_msg > > > + * @msg: the message to be synced with > > > + * @buf: the buffer obtained from i2c_get_dma_safe_msg_buf(). May be > > > NULL. > > > + */ > > > +void i2c_release_dma_safe_msg_buf(struct

Re: [PATCH] xen: support 52 bit physical addresses in pv guests

2017-09-21 Thread Boris Ostrovsky
On 09/21/2017 04:01 AM, Juergen Gross wrote: Physical addresses on processors supporting 5 level paging can be up to 52 bits wide. For a Xen pv guest running on such a machine those physical addresses have to be supported in order to be able to use any memory on the machine even if the guest it

Re: [RFC PATCH v5 6/6] i2c: dev: mark RDWR buffers as DMA_SAFE

2017-09-21 Thread Jonathan Cameron
On Wed, 20 Sep 2017 20:59:56 +0200 Wolfram Sang wrote: > Signed-off-by: Wolfram Sang Makes sense as do the other drivers. Feel free to add Reviewed-by: Jonathan Cameron to all of them (though they hardly took a lot of reviewing given how simple the patches were :) > --- > drivers/i2c/i2c-

Re: [PATCH 2/2] mfd: intel-lpss: switch to suspend_late()/resume_early()

2017-09-21 Thread Rafael J. Wysocki
On Thursday, September 21, 2017 10:41:33 AM CEST Lee Jones wrote: > On Thu, 21 Sep 2017, Rafael J. Wysocki wrote: > > > On Thu, Sep 21, 2017 at 12:31 AM, Rajat Jain wrote: > > > Ref: https://lkml.org/lkml/2017/9/19/649 > > > > > > The intel-lpss hosts the designware i2c controller device, which >

Re: [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early

2017-09-21 Thread Rafael J. Wysocki
On Thursday, September 21, 2017 3:13:56 AM CEST Rajat Jain wrote: > On Wed, Sep 20, 2017 at 5:24 PM, Rafael J. Wysocki wrote: > > On Thu, Sep 21, 2017 at 12:31 AM, Rajat Jain wrote: > >> Ref: https://lkml.org/lkml/2017/9/19/649 > >> > >> The bus controllers should suspend the bus operations only

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-21 Thread Johannes Weiner
On Mon, Sep 11, 2017 at 01:44:39PM -0700, David Rientjes wrote: > On Mon, 11 Sep 2017, Roman Gushchin wrote: > > > This patchset makes the OOM killer cgroup-aware. > > > > v8: > > - Do not kill tasks with OOM_SCORE_ADJ -1000 > > - Make the whole thing opt-in with cgroup mount option control >

<    1   2   3   4   5   6   7   8   9   >