[PATCH][mtd-next] mtd: sharpslpart: fix overflow on block_adr calculation

2017-11-08 Thread Colin King
From: Colin Ian King Multiplying block_num and mtd->erasesize may potentially overflow as they are both unsigned ints and so the multiplication is evaluated in unsigned int arithmetic . Cast block_adr to off_t to ensure multiplication is off_t sized to avoid any potential overflow. Detected by

Re: [PATCH 1/2] perf, tools: Enable type checking for perf_evsel_config_term types

2017-11-08 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 09:38:49AM +0200, Jiri Olsa escreveu: > On Fri, Oct 20, 2017 at 01:27:54PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Use a typed enum for the perf_evsel_config_term type enum. > > This allows gcc to do much stronger type checks, and also > > check for missing c

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Govinda Tatti
Thanks Jan for your review comments. Please see below for my comments. On 11/7/2017 8:40 AM, Jan Beulich wrote: On 06.11.17 at 18:48, wrote: --- a/Documentation/ABI/testing/sysfs-driver-pciback +++ b/Documentation/ABI/testing/sysfs-driver-pciback @@ -11,3 +11,15 @@ Description:

Re: [PATCH v4 20/20] cpufreq: scmi: add support for fast frequency switching

2017-11-08 Thread Sudeep Holla
On 08/11/17 11:05, Arnd Bergmann wrote: > On Wed, Nov 8, 2017 at 11:42 AM, Sudeep Holla wrote: >> >> >> On 08/11/17 00:24, Rafael J. Wysocki wrote: >>> On Friday, November 3, 2017 3:47:57 PM CET Sudeep Holla wrote: The cpufreq core provides option for drivers to implement fast_switch c

Re: Suspend to disk with usb connected fails to detect usb(reset) during resume

2017-11-08 Thread Alan Stern
On Wed, 8 Nov 2017, Ivid Suvarna wrote: > On Tue, Nov 7, 2017 at 9:19 PM, Alan Stern wrote: > > On Tue, 7 Nov 2017, Ivid Suvarna wrote: > > > >> Hi, > >> > >> I am trying to support suspend to disk(hibernate) on Hikey with 4.4 > >> kernel. During suspend, I could see the usb devices getting reset

Re: [PATCH RFC] mm/memory_hotplug: make it possible to offline blocks with reserved pages

2017-11-08 Thread Vitaly Kuznetsov
Michal Hocko writes: > On Wed 08-11-17 14:01:55, Vitaly Kuznetsov wrote: >> Hyper-V balloon driver needs to hotplug memory in smaller chunks and to >> workaround Linux's 128Mb allignment requirement so it does a trick: partly >> populated 128Mb blocks are added and then a custom online_page_callb

Re: [PATCH v2 1/3] Input: ad7897 - use managed allocated resources

2017-11-08 Thread Andi Shyti
> > - ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL); > > - input_dev = input_allocate_device(); > > - if (!ts || !input_dev) { > > - err = -ENOMEM; > > - goto err_free_mem; > > - } > > + ts = devm_kzalloc(&spi->dev, sizeof(struct ad7877), GFP_KERNEL); > > + input_d

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Govinda Tatti
On 11/8/2017 9:09 AM, Juergen Gross wrote: On 08/11/17 16:00, Govinda Tatti wrote: Thanks Roger for your review comments. Please see below for my comments. On 11/7/2017 5:21 AM, Roger Pau Monné wrote: On Mon, Nov 06, 2017 at 12:48:42PM -0500, Govinda Tatti wrote: +out: +    if (!err) + 

Re: [PATCH v2 1/3] Input: ad7897 - use managed allocated resources

2017-11-08 Thread Lars-Peter Clausen
On 11/08/2017 03:04 PM, Andi Shyti wrote: > Use managed allocated resources to simplify error handling during > probing failure and module exiting. > > With this all the goto labels in the probe function together with > the cleanups in the remove function are unnecessary, therefore > removed. > >

Re: [PATCH] selftests: futex: fix compilation error

2017-11-08 Thread Shuah Khan
On 11/08/2017 12:55 AM, lei yang wrote: > > > On 2017年11月08日 06:57, Shuah Khan wrote: >> On 11/06/2017 06:18 PM, lei yang wrote: >>> >>> On 2017年11月07日 07:48, Shuah Khan wrote: On 11/06/2017 04:45 PM, Shuah Khan wrote: > On 11/05/2017 09:03 PM, Lei Yang wrote: >> I run into below err

[PATCH v4] printk: Add console owner and waiter logic to load balance console writes

2017-11-08 Thread Steven Rostedt
[ claws-mail is really pissing me off. It did it again, after I manually fixed all the addresses. This time, I'm going to do things slightly different. Sorry for all the spam :-( ] From: Steven Rostedt (VMware) This patch implements what I discussed in Kernel Summit. I added lockdep annotati

Re: [PATCH] selftests: kselftest.h: fix compilation errors

2017-11-08 Thread Shuah Khan
On 11/07/2017 10:24 PM, Lei Yang wrote: > In next branch, Various build failed with: > > In file included from membarrier_test.c:8:0: > ../kselftest.h: In function ‘ksft_print_header’: > ../kselftest.h:61:3: error: expected ‘)’ before ‘printf’ >printf("TAP version 13\n"); >^ > ../kselftest

Re: [PATCH] virtio_balloon: fix build regression

2017-11-08 Thread Michael S. Tsirkin
On Wed, Nov 08, 2017 at 01:07:10PM +0100, Arnd Bergmann wrote: > The new balloon_page_push/balloon_page_pop helpers got added > inside of an #ifdef, causing a build failure when CONFIG_BALLOON_COMPACTION > is disabled: > > drivers/virtio/virtio_balloon.c: In function 'fill_balloon': > drivers/virt

[PATCH v2 3/3] Input: ad7897 - use separate error handling for different allocators

2017-11-08 Thread Andi Shyti
Split the error between devm_kzalloc and devm_input_allocate_device, there is no need to call the second allocator if the first has failed. Besides this doesn't provide practical advantages. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 3 +++ 1 file c

[PATCH] isa: Prevent NULL dereference in isa_bus driver callbacks

2017-11-08 Thread William Breathitt Gray
The isa_driver structure for an isa_bus device is stored in the device platform_data member of the respective device structure. This platform_data member may be reset to NULL if isa_driver match callback for the device fails, indicating a device unsupported by the ISA driver. This patch fixes a po

[PATCH v2 2/3] Input: ad7897 - use devm_add_action_or_reset to disable the device

2017-11-08 Thread Andi Shyti
Use the ad7877_disable() as a custom action when the driver gets removed instead of calling it from the remove function. Because ad7877_remove() was just calling the disable function, get rid of it. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 20 +++

Re: [PATCH] mm, vmstat: Make sure mutex is a global static

2017-11-08 Thread Kees Cook
On Tue, Nov 7, 2017 at 11:43 PM, Vlastimil Babka wrote: > On 11/07/2017 10:38 PM, Kees Cook wrote: >> The mutex in sysctl_vm_numa_stat_handler() needs to be a global static, not >> a stack variable, otherwise it doesn't serve any purpose. Also, reading the >> file with CONFIG_LOCKDEP=y will compla

Re: [PATCH v5 26/26] KVM: arm/arm64: GICv4: Theory of operations

2017-11-08 Thread Marc Zyngier
On 08/11/17 09:13, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> Yet another braindump so I can free some cells... >> >> Acked-by: Christoffer Dall >> Signed-off-by: Marc Zyngier >> --- >> virt/kvm/arm/vgic/vgic-v4.c | 67 >> ++

Re: [PATCH 3.16 000/294] 3.16.50-rc1 review

2017-11-08 Thread Ben Hutchings
On Tue, 2017-11-07 at 06:17 -0800, Guenter Roeck wrote: > On 11/06/2017 03:02 PM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.50 release. > > There are 294 patches in this series, which will be posted as responses > > to this one. If anyone has any issues wit

Re: [PATCH] media: coda: Fix definition of CODA_STD_MJPG

2017-11-08 Thread Philipp Zabel
Hi Martin, thank you for the patch. I'd prefer to just drop CODA_STD_MJPG altogether, to avoid confusion. Explanation below: On Wed, 2017-11-08 at 15:12 +0100, Martin Kepplinger wrote: > According to i.MX 6 VPU API Reference Manual Rev. L3.0.35_1.1.0, 01/2013 > chapter 3.2.1.5, the MJPG video cod

[PATCH v3] virtio_balloon: fix deadlock on OOM

2017-11-08 Thread Michael S. Tsirkin
fill_balloon doing memory allocations under balloon_lock can cause a deadlock when leak_balloon is called from virtballoon_oom_notify and tries to take same lock. To fix, split page allocation and enqueue and do allocations outside the lock. Here's a detailed analysis of the deadlock by Tetsuo Ha

Re: [PATCH v5 25/26] KVM: arm/arm64: GICv4: Enable VLPI support

2017-11-08 Thread Marc Zyngier
On 08/11/17 08:44, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> All it takes is the has_v4 flag to be set in gic_kvm_info >> as well as "kvm-arm.vgic_v4_enable=1" being passed on the >> command line for GICv4 to be enabled in KVM. > > What did you motivate your cho

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-08 Thread Jiri Olsa
On Wed, Nov 08, 2017 at 07:02:22AM -0800, Milind Chabbi wrote: > On Wed, Nov 8, 2017 at 6:15 AM, Jiri Olsa wrote: > > On Mon, Nov 06, 2017 at 07:04:40AM -0800, Milind Chabbi wrote: > >> Hi Jirka, > >> > >> I see the tabs in my sent email, do you have suggestions on how best to > >> send this patch

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-08 Thread Christoph Hellwig
On Wed, Nov 08, 2017 at 01:35:46PM +0100, Philippe Ombredanne wrote: > The benefits now and later: > - no distraction with licensing boilerplate cr*p in patches and files > - no guessing licensing needed when sending a patch > - anyone can grep the kernel tree for licensing, no extra tool needed >

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Juergen Gross
On 08/11/17 16:00, Govinda Tatti wrote: > Thanks Roger for your review comments. Please see below for my comments. > > On 11/7/2017 5:21 AM, Roger Pau Monné wrote: >> On Mon, Nov 06, 2017 at 12:48:42PM -0500, Govinda Tatti wrote: >>> +out: >>> +    if (!err) >>> +    err = count; >>> + >>> +  

Re: [PATCH v5 16/26] KVM: arm/arm64: GICv4: Propagate property updates to VLPIs

2017-11-08 Thread Marc Zyngier
On 07/11/17 21:28, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> Upon updating a property, we propagate it all the way to the physical >> ITS, and ask for an INV command to be executed there. >> >> Acked-by: Christoffer Dall >> Signed-off-by: Marc Zyngier >> --- >>

Re: [PATCH] slub: Fix sysfs duplicate filename creation when slub_debug=O

2017-11-08 Thread Christopher Lameter
On Wed, 8 Nov 2017, Miles Chen wrote: > > Ok then the aliasing failed for some reason. The creation of the unique id > > and the alias detection needs to be in sync otherwise duplicate filenames > > are created. What is the difference there? > > The aliasing failed because find_mergeable() returns

[PATCH v2 2/2] alpha: osf_sys.c: use timespec64 where appropriate

2017-11-08 Thread Arnd Bergmann
Some of the syscall helper functions (do_utimes, poll_select_set_timeout, core_sys_select) have changed over the past year or two to use 'timespec64' pointers rather than 'timespec'. This was fine on alpha, since 64-bit architectures treat the two as the same type. However, I'd like to change that

[PATCH v2 1/2] alpha: osf_sys.c: fix put_tv32 regression

2017-11-08 Thread Arnd Bergmann
There was a typo in the new version of put_tv32() that caused an unguarded access of a user space pointer, and failed to return the correct result in gettimeofday(), wait4(), usleep_thread() and old_adjtimex(). This fixes it to give the correct behavior again. Cc: sta...@vger.kernel.org Fixes: 1c

Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-08 Thread Christopher Lameter
On Wed, 8 Nov 2017, Yisheng Xie wrote: > Another case is current process is *not* the same as target process, and > when current process try to migrate pages of target process from old_nodes > to new_nodes, the new_nodes should be a subset of target process cpuset. The caller of migrate_pages sho

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-08 Thread Milind Chabbi
On Wed, Nov 8, 2017 at 6:15 AM, Jiri Olsa wrote: > On Mon, Nov 06, 2017 at 07:04:40AM -0800, Milind Chabbi wrote: >> Hi Jirka, >> >> I see the tabs in my sent email, do you have suggestions on how best to >> send this patch so that the tabs are preserved by the email client? >> Can anybody else al

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Govinda Tatti
Thanks Roger for your review comments. Please see below for my comments. On 11/7/2017 5:21 AM, Roger Pau Monné wrote: On Mon, Nov 06, 2017 at 12:48:42PM -0500, Govinda Tatti wrote: The life-cycle of a PCI device in Xen pciback is complex and is constrained by the generic PCI locking mechanism.

Re: [PATCH] staging: fsl-dpaa2: Fix multiple assignments should be avoided

2017-11-08 Thread Josh Abraham
On Wed, Nov 08, 2017 at 10:20:48AM +0100, Greg KH wrote: > On Tue, Nov 07, 2017 at 07:45:03PM -0500, Joshua Abraham wrote: > > This patch fixes the checkpatch.pl warning: > > "CHECK: multiple assignments should be avoided" > > > > Signed-off-by: Joshua Abraham > > --- > > drivers/staging/fsl-dpa

Re: [Y2038] [PATCH 2/2] alpha: osf_sys.c: use timespec64 where appropriate

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 1:22 AM, Ben Hutchings wrote: > On Tue, 2017-11-07 at 15:09 +0100, Arnd Bergmann wrote: >> Some of the syscall helper functions (do_utimes, poll_select_set_timeout, >> core_sys_select) have changed over the past year or two to use >> 'timespec64' pointers rather than 'timesp

[PATCH] schedutil: Reset cached freq if it is not in sync with next_freq

2017-11-08 Thread Viresh Kumar
'cached_raw_freq' is used to get the next frequency quickly but should always be in sync with sg_policy->next_freq. There is a case where it is not and in such cases it should be reset to avoid switching to incorrect frequencies. Consider this case for example: - policy->cur is 1.2 GHz (Max) - New

Re: [PATCH] locktorture: Fix Oops when reader/writer count is 0

2017-11-08 Thread Davidlohr Bueso
On Tue, 07 Nov 2017, Paul E. McKenney wrote: On Tue, Nov 07, 2017 at 10:07:48PM +0100, Peter Zijlstra wrote: On Tue, Nov 07, 2017 at 02:01:58PM -0600, Jeremy Linton wrote: > Hi, > > On 10/10/2017 10:52 AM, Jeremy Linton wrote: > >If nwriters_stress=0 is passed to the lock torture test > >it wil

Re: [PATCH] staging: pi433: #define shift constants in rf69.c

2017-11-08 Thread Josh Abraham
On Wed, Nov 08, 2017 at 02:52:30PM +0300, Dan Carpenter wrote: > On Wed, Nov 08, 2017 at 06:25:06AM -0500, Joshua Abraham wrote: > > This patch completes TODO improvements in rf69.c to change shift > > constants to a define. > > > > Signed-off-by: Joshua Abraham > > --- > > drivers/staging/pi433

Re: [isa_bus_shutdown] ALSA es1688_lib.c:113 ess_reset at 0x220: failed!!!

2017-11-08 Thread William Breathitt Gray
On Tue, Nov 07, 2017 at 09:03:48AM -0800, Linus Torvalds wrote: >On Tue, Nov 7, 2017 at 2:25 AM, Fengguang Wu wrote: >> >> FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. > >Yeah, no it is not new. > >It also likely doesn't matter (I suspect it happens if you try to >force-load cr

RE: [PATCH net-next 1/2] net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-08 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, November 08, 2017 2:31 PM > To: lipeng (Y) > Cc: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm; Zhuangyuzeng (Yisen); Salil Mehta > Subject: Re: [PATCH ne

[PATCH v2] watchdog: mpc8xxx: use the core worker function

2017-11-08 Thread Christophe Leroy
The watchdog core includes a worker function which pings the watchdog until user app starts pinging it and which also pings it if the HW require more frequent pings. Use that function instead of the dedicated timer. In the mean time, we can allow the user to change the timeout. Then change the tim

Re: [PATCH 1/1] ALSA: usb: initial USB Audio Device Class 3.0 support

2017-11-08 Thread Takashi Iwai
On Tue, 07 Nov 2017 03:01:20 +0100, Ruslan Bilovol wrote: > > Recently released USB Audio Class 3.0 specification > introduces many significant changes comparing to > previous versions, like > - new Power Domains, support for LPM/L1 > - new Cluster descriptor > - changed layout of all class-spe

Re: [PATCH 2/2] Subject: printk: Don't trap random context in infinite log_buf flush

2017-11-08 Thread Tejun Heo
Hello, On Wed, Nov 08, 2017 at 02:29:35PM +0900, Sergey Senozhatsky wrote: > > The following is a completely untested patch to show how we can put > > the console in full sync mode, just the general idea. I'm a bit > > skeptical we really wanna do this given that we already (with or > > without t

Re: [PATCH net-next 1/2] net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-08 Thread Andrew Lunn
On Wed, Nov 08, 2017 at 03:52:22PM +0800, Lipeng wrote: > From: Fuyun Liang > > Driver gets phy address from NCL_config file and uses the phy address > to initialize phydev. There are 5 bits for phy address. And C22 phy > address has 5 bits. So 0-31 are all valid address for phy. If there > is no

Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

2017-11-08 Thread Steven Rostedt
On Wed, 8 Nov 2017 14:19:55 +0900 Sergey Senozhatsky wrote: > the change goes further. I did express some of my concerns during the KS, > I'll just bring them to the list. > > > we now always shift printing from a save - scheduleable - context to > a potentially unsafe one - atomic. by example:

Re: [PATCH] staging: pi433: #define shift constants in rf69.c

2017-11-08 Thread Marcus Wolf
Hello everybody! Concerning the naming: == When writing the rf69.c it wasn't intended to write a driver for Linux. This file was written at a time, where the complete controlling of Pi433 was implemented in the application. Therefore it is written in a completely different

Re: [PATCH RFC] mm/memory_hotplug: make it possible to offline blocks with reserved pages

2017-11-08 Thread Michal Hocko
On Wed 08-11-17 14:01:55, Vitaly Kuznetsov wrote: > Hyper-V balloon driver needs to hotplug memory in smaller chunks and to > workaround Linux's 128Mb allignment requirement so it does a trick: partly > populated 128Mb blocks are added and then a custom online_page_callback > hook checks if the par

[PATCH v2 1/3] Input: ad7897 - use managed allocated resources

2017-11-08 Thread Andi Shyti
Use managed allocated resources to simplify error handling during probing failure and module exiting. With this all the goto labels in the probe function together with the cleanups in the remove function are unnecessary, therefore removed. CC: Michael Hennerich Signed-off-by: Andi Shyti --- dr

Re: [PATCH 28/31] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-11-08 Thread Marc Zyngier
On 08/11/17 05:55, Greentime Hu wrote: > From: Greentime Hu > Please add a commit message, indicating what this does, and potentially a pointer to some documentation (if publicly available). > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu > --- > drivers/irqchip/Makefile |

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Boris Ostrovsky
On 11/08/2017 09:17 AM, Juergen Gross wrote: > On 08/11/17 15:10, Boris Ostrovsky wrote: >> On 11/08/2017 08:36 AM, Juergen Gross wrote: >>> Regarding ACPI tables: current PVH implementation in Linux kernel >>> seems not to make use of the special information presented in the boot >>> information b

[PATCH v2 0/3] use managed functions for ad7897 driver

2017-11-08 Thread Andi Shyti
Hi Dmitry, after our discussion[*], I decided to do it a more properly by replacing in the touchscreen drivers the initialization functions with their related managed functions. I will slowly send patches for other drivers. The last patch is trivial, but somehow it bothers me, please feel free t

RE: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-11-08 Thread Haiyang Zhang
> -Original Message- > From: Long Li [mailto:lon...@exchange.microsoft.com] > Sent: Wednesday, November 1, 2017 2:45 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org > Cc: Paul Meyer ; Long Li > > Subject: [Rev

Re: [PATCH 1/2] ASoC: Intel: improve DMADEVICES dependency

2017-11-08 Thread Vinod Koul
On Wed, Nov 08, 2017 at 03:10:18PM +0100, Arnd Bergmann wrote: > On Wed, Nov 8, 2017 at 3:09 PM, Vinod Koul wrote: > > On Wed, Nov 08, 2017 at 02:03:19PM +0100, Arnd Bergmann wrote: > >> As pointed out by Pierre-Louis Bossart, the depndency I added > > > > /s/depndency/dependency > > Mark, can yo

Re: [PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-08 Thread Michal Hocko
On Wed 08-11-17 16:59:56, Joonsoo Kim wrote: > On Tue, Nov 07, 2017 at 10:47:30AM +0100, Michal Hocko wrote: > > [CC Joonsoo] > > > > On Tue 07-11-17 18:41:31, Jaewon Kim wrote: > > > online_page_ext and page_ext_init allocate page_ext for each section, but > > > they do not allocate if the first

Re: [PATCH] mm, vmstat: Make sure mutex is a global static

2017-11-08 Thread Michal Hocko
On Wed 08-11-17 08:43:44, Vlastimil Babka wrote: > On 11/07/2017 10:38 PM, Kees Cook wrote: [...] > > +static DEFINE_MUTEX(vm_numa_stat_lock); > > + > > int sysctl_vm_numa_stat_handler(struct ctl_table *table, int write, > > void __user *buffer, size_t *length, loff_t *ppos) > > { > >

Re: linux-next: Tree for Nov 7

2017-11-08 Thread Michal Hocko
Hi, On Wed 08-11-17 08:52:24, Joel Stanley wrote: > Hello Michal, > > On Tue, Nov 7, 2017 at 3:52 PM, Stephen Rothwell > wrote: > > Hi all, > > > > Changes since 20171106: > > > > The powerpc tree still had its build failure for which I applied a patch. > > > > The crypto tree lost its build fa

Re: [PATCH RESEND] dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

2017-11-08 Thread Vinod Koul
On Wed, Nov 08, 2017 at 12:02:25PM +0200, Peter Ujfalusi wrote: > The used 0x1f mask is only valid for am335x family of SoC, different family > using this type of crossbar might have different number of electable > events. In case of am43xx family 0x3f mask should have been used for > example. > In

[PATCH 1/3] zfcp: convert timers to use timer_setup()

2017-11-08 Thread Steffen Maier
From: 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: Steffen Maier Cc: Benjamin Block Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: lin

[PATCH 2/3] zfcp: purely mechanical update using timer API, plus blank lines

2017-11-08 Thread Steffen Maier
erp_memwait only occurs in seldom memory pressure situations. The typical case never uses the associated timer and thus also does not need to initialize the timer. Also, we don't want to re-initialize the timer each time we re-use an erp_action in zfcp_erp_setup_act() [see also v4.14-rc7 commit ab3

[PATCH 3/3] zfcp: drop open coded assignments of timer_list.function

2017-11-08 Thread Steffen Maier
The majority of requests is regular SCSI I/O on the hot path. Since these use a timeout owned by the block layer, zfcp does not use zfcp_fsf_req.timer. Hence, the very early unconditional and even incomplete (handler function yet unknown) timer initialization in zfcp_fsf_req_create() is not necessa

[PATCH 0/3] zfcp: timer_setup() refactoring feature for v4.15-rc1

2017-11-08 Thread Steffen Maier
Hi all, here is a small series for the timer_setup() refactoring of zfcp. We target it for the merge window to land in v4.15-rc1. Unfortunately, they don't seem to apply to the current state of neither James' misc branch nor Martin's 4.15/scsi-queue branch, because they depend on: v4.14-rc3 686fe

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 15:10, Boris Ostrovsky wrote: > On 11/08/2017 08:36 AM, Juergen Gross wrote: >> >> Regarding ACPI tables: current PVH implementation in Linux kernel >> seems not to make use of the special information presented in the boot >> information block. > > It will need to do so for dom0 (and,

Re: [PATCH] locktorture: Fix Oops when reader/writer count is 0

2017-11-08 Thread Paul E. McKenney
On Wed, Nov 08, 2017 at 09:27:50AM +0100, Peter Zijlstra wrote: > On Tue, Nov 07, 2017 at 02:15:55PM -0800, Paul E. McKenney wrote: > > But Jeremy's list of email addresses is what you would expect from > > looking at MAINTAINERS, so how about the following patch? > > True; I tend to also look at

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-08 Thread Jiri Olsa
On Mon, Nov 06, 2017 at 07:04:40AM -0800, Milind Chabbi wrote: > Hi Jirka, > > I see the tabs in my sent email, do you have suggestions on how best to > send this patch so that the tabs are preserved by the email client? > Can anybody else also check if they received with/without tabs? > > releas

Re: [PATCH V13 05/10] mmc: cqhci: support for command queue enabled host

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:22, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> From: Venkat Gopalakrishnan >> >> This patch adds CMDQ support for command-queue compatible >> hosts. >> >> Command queue is added in eMMC-5.1 specification. This >> enables the controller to proc

Re: [PATCH v5 11/26] KVM: arm/arm64: GICv4: Handle INT command applied to a VLPI

2017-11-08 Thread Auger Eric
Hi Marc, On 08/11/2017 12:40, Marc Zyngier wrote: > On 07/11/17 20:15, Auger Eric wrote: >> Hi Marc, >> >> On 27/10/2017 16:28, Marc Zyngier wrote: >>> If the guest issues an INT command targetting a VLPI, let's >>> call into the irq_set_irqchip_state() helper to make it pending >>> on the physica

Re: [PATCH v5 12/26] KVM: arm/arm64: GICv4: Unmap VLPI when freeing an LPI

2017-11-08 Thread Auger Eric
Hi, On 08/11/2017 12:52, Marc Zyngier wrote: > On 07/11/17 20:28, Auger Eric wrote: >> Hi Marc, >> >> On 27/10/2017 16:28, Marc Zyngier wrote: >>> When freeing an LPI (on a DISCARD command, for example), we need >>> to unmap the VLPI down to the physical ITS level. >>> >>> Acked-by: Christoffer Da

[PATCH] media: coda: Fix definition of CODA_STD_MJPG

2017-11-08 Thread Martin Kepplinger
According to i.MX 6 VPU API Reference Manual Rev. L3.0.35_1.1.0, 01/2013 chapter 3.2.1.5, the MJPG video codec is refernced to by number 7, not 3. So change this accordingly. This isn't yet being used right now and therefore probably hasn't been noticed. Fixing this avoids causing trouble in the f

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Boris Ostrovsky
On 11/08/2017 08:36 AM, Juergen Gross wrote: > > Regarding ACPI tables: current PVH implementation in Linux kernel > seems not to make use of the special information presented in the boot > information block. It will need to do so for dom0 (and, then, for simplicity, for all PVH guests). -boris

Re: [PATCH 1/2] ASoC: Intel: improve DMADEVICES dependency

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 3:09 PM, Vinod Koul wrote: > On Wed, Nov 08, 2017 at 02:03:19PM +0100, Arnd Bergmann wrote: >> As pointed out by Pierre-Louis Bossart, the depndency I added > > /s/depndency/dependency Mark, can you fix that up when applying, or should I resend? >> diff --git a/sound/soc/i

Re: [PATCH net-next] net: dsa: lan9303: Fix lan9303_alr_del_port()

2017-11-08 Thread Vivien Didelot
Egil Hjelmeland writes: > Fix embarrassing bug in lan9303_alr_del_port(): Instead of zeroing > entr->mac_addr, I destroyed the next cache entry. Affected .port_fdb_del and > .port_mdb_del. > > Fixes: 0620427ea0d6 ("net: dsa: lan9303: Add fdb/mdb manipulation") > Signed-off-by: Egil Hjelmeland R

Re: [PATCH 2/2] ASoC: Intel: improve SND_SOC_INTEL_MACH dependencies

2017-11-08 Thread Vinod Koul
On Wed, Nov 08, 2017 at 02:03:20PM +0100, Arnd Bergmann wrote: > I ran into a build error with CONFIG_SND_SOC_INTEL_COMMON=m > and SND_SOC_INTEL_MACH=y: > > ERROR: "snd_soc_acpi_intel_broadwell_machines" > [sound/soc/intel/common/snd-soc-sst-acpi.ko] undefined! > ERROR: "snd_soc_acpi_intel_haswel

Re: [PATCH 1/2] ASoC: Intel: improve DMADEVICES dependency

2017-11-08 Thread Vinod Koul
On Wed, Nov 08, 2017 at 02:03:19PM +0100, Arnd Bergmann wrote: > As pointed out by Pierre-Louis Bossart, the depndency I added /s/depndency/dependency > was broader than necessary, only Baytrail and Haswell/Broadwell > actually need it, the others don't. > > At the same time, we have individual

Re: [PATCH] s390/dasd: avoid calling do_gettimeofday()

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 2:27 PM, Stefan Haberland wrote: > On 06.11.2017 15:02, Arnd Bergmann wrote: >> diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c >> index 4630782b5456..5169c717c9d6 100644 >> --- a/drivers/s390/block/dasd_eer.c >> +++ b/drivers/s390/block/dasd_eer.

Re: regression in irq sharing caused by genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2017-11-08 Thread Marc Zyngier
On 08/11/17 13:35, Petr Cvek wrote: > > > Dne 8.11.2017 v 14:11 Marc Zyngier napsal(a): >> On 08/11/17 13:09, Marc Zyngier wrote: >>> On 07/11/17 23:41, Petr Cvek wrote: Hello, Commit 382bd4de61827 ("genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

[GIT PULL] keys: fix NULL pointer dereference during ASN.1 parsing

2017-11-08 Thread James Morris
Hi Linus, Please pull this fix by Eric Biggers for the keys subsystem. --- The following changes since commit fbc3edf7d7731d7a22c483c679700589bab936a3: drivers/ide-cd: Handle missing driver data during status check gracefully (2017-11-07 09:12:04 -0800) are available in the git repository a

Re: [PATCH] drm: sti: remove vtg_remove

2017-11-08 Thread Benjamin Gaignard
2017-11-08 14:06 GMT+01:00 Benjamin Gaignard : > vtg_remove does nothing just remove it > > Signed-off-by: Benjamin Gaignard Merge in drm-misc-next with Daniel's irc ack > --- > drivers/gpu/drm/sti/sti_vtg.c | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/drivers/gpu/drm/sti/sti_v

Re: [PATCH] drm: sti: remove useless fields from vtg structure

2017-11-08 Thread Benjamin Gaignard
2017-11-08 14:04 GMT+01:00 Benjamin Gaignard : > Drivers are registered on platform bus so the private list > could be replace by a call to of_find_device_by_node(). > Changing this also makes dev, np and link fields useless > in vtg structure. > > Signed-off-by: Benjamin Gaignard Merge in drm-mi

[PATCH v2 2/6] PCI / PM: Support for LEAVE_SUSPENDED driver flag

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add support for DPM_FLAG_LEAVE_SUSPENDED to the PCI bus type by making it (a) set the power.may_skip_resume status bit for devices that, from its perspective, may be left in suspend after system wakeup from sleep and (b) return early from pci_pm_resume_noirq() for devices

[PATCH v2 3/6] ACPI / PM: Support for LEAVE_SUSPENDED driver flag in ACPI PM domain

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add support for DPM_FLAG_LEAVE_SUSPENDED to the ACPI PM domain by making it (a) set the power.may_skip_resume status bit for devices that, from its perspective, may be left in suspend after system wakeup from sleep and (b) return early from acpi_subsys_resume_noirq() for d

[PATCH v2 6/6] PM / core: DPM_FLAG_SMART_SUSPEND optimization

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PM core avoid invoking the "late" and "noirq" system-wide suspend (or analogous) callbacks for devices that are in runtime suspend during the corresponding phases of system-wide suspend (or analogous) transitions. The underlying observation is that runtime PM is

[PATCH v2 0/6] PM / sleep: Driver flags for system suspend/resume (part 2)

2017-11-08 Thread Rafael J. Wysocki
Hi All, This is a follow-up for the first part of the PM driver flags series sent previously some time ago with an intro as follows: On Saturday, October 28, 2017 12:11:55 AM CET Rafael J. Wysocki wrote: > The following part of the original cover letter still applies: > > On Monday, October 16,

[PATCH v2 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to instruct the PM core and middle-layer (bus type, PM domain, etc.) code that it is desirable to leave the device in runtime suspend after system-wide transitions to the working state (for example, the devic

[PATCH v2 5/6] PM / core: Direct handling of DPM_FLAG_LEAVE_SUSPENDED

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PM core handle DPM_FLAG_LEAVE_SUSPENDED directly for devices whose "noirq", "late" and "early" driver callbacks are invoked directly by it. Namely, make it skip all of the system-wide resume callbacks for such devices with DPM_FLAG_LEAVE_SUSPENDED set if they are

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT.

2017-11-08 Thread kbuild test robot
Hi Milind, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.14-rc8 next-20171108] [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

[PATCH v2 4/6] PM / core: Add helpers for subsystem callback selection

2017-11-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add helper routines to find and return a suitable subsystem callback during the "noirq" phases of system suspend/resume (or analogous) transitions as well as during the "late" phase of system suspend and the "early" phase of system resume (or analogous) transitions. The h

[PATCH] USB: host: whci: remove redundant variable t

2017-11-08 Thread Colin King
From: Colin Ian King Variable t is assigned but never read, it is redundant and therefore can be removed. Cleans up clang warning: drivers/usb/host/whci/asl.c:106:3: warning: Value stored to 't' is never read Signed-off-by: Colin Ian King --- drivers/usb/host/whci/asl.c | 2 -- 1 file changed

Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path

2017-11-08 Thread Boris Ostrovsky
On 11/08/2017 08:40 AM, Juergen Gross wrote: > On 08/11/17 14:37, Boris Ostrovsky wrote: >> On 11/08/2017 04:07 AM, Juergen Gross wrote: >>> Booting a Xen PVH guest requires a special boot entry as it is >>> mandatory to setup some Xen-specific interfaces rather early. When grub >>> or OVMF are use

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

2017-11-08 Thread Takashi Sakamoto
Hi, On Nov 2 2017 20:06, 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 the stucture s

Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path

2017-11-08 Thread Juergen Gross
On 08/11/17 14:37, Boris Ostrovsky wrote: > On 11/08/2017 04:07 AM, Juergen Gross wrote: >> Booting a Xen PVH guest requires a special boot entry as it is >> mandatory to setup some Xen-specific interfaces rather early. When grub >> or OVMF are used as boot loaders, however, those will fill the boo

Re: [PATCH 02/31] nds32: Kernel booting and initialization

2017-11-08 Thread Rob Herring
On Tue, Nov 7, 2017 at 11:54 PM, Greentime Hu wrote: > From: Greentime Hu > Commit message needed. > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > --- > + /* it could update max_pfn */ > + if (max_pfn - ram_start_pfn <= MAXMEM_PFN) > + max_low_pfn = ma

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 13:58, Jan Beulich wrote: On 08.11.17 at 13:45, wrote: >> On 08/11/17 13:31, Jan Beulich wrote: >> On 08.11.17 at 12:55, wrote: On 08/11/17 12:18, Jan Beulich wrote: On 08.11.17 at 10:07, wrote: >> In case we are booted via the default boot entry by a gener

Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path

2017-11-08 Thread Boris Ostrovsky
On 11/08/2017 04:07 AM, Juergen Gross wrote: > Booting a Xen PVH guest requires a special boot entry as it is > mandatory to setup some Xen-specific interfaces rather early. When grub > or OVMF are used as boot loaders, however, those will fill the boot > parameters in zeropage and there is no long

oops with 4.14-rc8 when opening and closing /dev/watchdog0

2017-11-08 Thread Rasmus Villemoes
Running current master (4.14.0-rc8-9-gfbc3edf) I can reproduce the below quite consistently, though there are some variations in the stack trace. It happens when I start and stop busybox watchdog on /dev/watchdog0 a few times (sometimes on start, sometimes on stop, almost always after at most 3

Re: [linux-next][0692229e] next-20171106 fails to boot on Power 7

2017-11-08 Thread Michael Ellerman
Abdul Haleem writes: > Hi, > > Today's next kernel fails to boot on Power 7 Machine with below errors > in boot log messages. I am *not* seeing this on my Power7 machine (or any machine). So this might be distro/toolchain specific? cheers

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT.

2017-11-08 Thread kbuild test robot
Hi Milind, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.14-rc8 next-20171108] [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

Re: regression in irq sharing caused by genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2017-11-08 Thread Petr Cvek
Dne 8.11.2017 v 14:11 Marc Zyngier napsal(a): On 08/11/17 13:09, Marc Zyngier wrote: On 07/11/17 23:41, Petr Cvek wrote: Hello, Commit 382bd4de61827 ("genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs") causes a regression for pda-power driver and Magician machine

Re: [PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-08 Thread Jaewon Kim
2017-11-08 16:52 GMT+09:00 Joonsoo Kim : > On Tue, Nov 07, 2017 at 06:44:47PM +0900, Jaewon Kim wrote: >> online_page_ext and page_ext_init allocate page_ext for each section, but >> they do not allocate if the first PFN is !pfn_present(pfn) or >> !pfn_valid(pfn). >> >> Though the first page is not

Re: [PATCH 1/2] perf/trace: call machine__exit() at exiting

2017-11-08 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 08, 2017 at 11:39:27AM +0100, Jiri Olsa escreveu: > On Tue, Nov 07, 2017 at 04:22:45PM -0800, Andrei Vagin wrote: > > Otherwise perf trace leaves a temprary file /tmp/perf-vdso.so-XX. > > > > $ perf trace -o log true > > $ ls -l /tmp/perf-vdso.* > > -rw--- 1 root root 8192 Nov

Re: [PATCH v2] checkpatch: do not check missing blank line before builtin_*_driver

2017-11-08 Thread Masahiro Yamada
Hi Joe, Andrew, (sorry, Andrew was missing from the list...) 2017-09-18 11:01 GMT+09:00 Masahiro Yamada : > checkpatch.pl does not check missing blank line before module_*_driver. > I want it to behave likewise for builtin_*_driver. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: >

Re: [PATCH 29/31] MAINTAINERS: Add nds32

2017-11-08 Thread Rob Herring
On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu wrote: > From: Greentime Hu > > Signed-off-by: Greentime Hu > --- > MAINTAINERS |9 + > 1 file changed, 9 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 2f4e462..bce1181 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS >

<    4   5   6   7   8   9   10   11   12   13   >