[PATCH] cpufreq: st: enable selective initialization based on the platform

2016-04-27 Thread Sudeep Holla
The sti-cpufreq does unconditional registration of the cpufreq-dt driver which causes issue on an multi-platform build. For example, on Vexpress TC2 platform, we get the following error on boot: cpu cpu0: OPP-v2 not supported cpu cpu0: Not doing voltage scaling cpu: dev_pm_opp_of_cpumask_add_table

Re: [PATCH v5 12/14] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-04-27 Thread Dennis Chen
Hi Hanjun, Thanks for the clarification and some little comments ;-) On 27 April 2016 at 12:04, Hanjun Guo wrote: > Hi Dennis, David, > > Sorry for the late reply, please see my comments below. > > > On 2016/4/27 9:14, David Daney wrote: >> >> On 04/21/2016 03:06 AM, Dennis Chen wrote: >>> >>> O

Re: [PATCH 6/8] char/genrtc: parisc: use asm-generic/rtc.h

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 13:21:16 Arnd Bergmann wrote: > On Wednesday 27 April 2016 00:07:47 Rolf Eike Beer wrote: > > Arnd Bergmann wrote: > > > The asm-generic/rtc.h header can now be included by > > > architectures that provide their own set_rtc_time/get_rtc_time > > > macros, letting us remov

Re: [PATCH] usb: dwc3: omap: get rid of dma_status

2016-04-27 Thread Roger Quadros
Felipe, On 11/04/16 17:18, Roger Quadros wrote: > dma_status bit flag is set but never really used > so get rid of it. > > Reported-by: Felipe Balbi > Signed-off-by: Roger Quadros Gentle ping on this one for -next. Thanks. cheers, -roger > --- > drivers/usb/dwc3/dwc3-omap.c | 6 -- > 1

Re: char: legacy RTC cleanups

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 12:19:59 Geert Uytterhoeven wrote: > > > > Right, so we could skip patches 5 and 6, and instead remove the two > > headers as we remove the driver. Let's see what the architecture > > maintainers think about it, at least powerpc actually enables gen_rtc > > in its defconf

Re: [RFC PATCH V2 1/2] vhost: convert pre sorted vhost memory array to interval tree

2016-04-27 Thread Michael S. Tsirkin
On Fri, Mar 25, 2016 at 10:34:33AM +0800, Jason Wang wrote: > Current pre-sorted memory region array has some limitations for future > device IOTLB conversion: > > 1) need extra work for adding and removing a single region, and it's >expected to be slow because of sorting or memory re-allocati

Re: [PATCH] vhost_net: stop polling socket during rx processing

2016-04-27 Thread Michael S. Tsirkin
On Tue, Apr 26, 2016 at 03:35:53AM -0400, Jason Wang wrote: > We don't stop polling socket during rx processing, this will lead > unnecessary wakeups from under layer net devices (E.g > sock_def_readable() form tun). Rx will be slowed down in this > way. This patch avoids this by stop polling socke

RE: [PATCH] usb: dwc3: usb/dwc3: fake dissconnect event when turn off pullup

2016-04-27 Thread Du, Changbin
Hi, Balbi, The step to reproduce this issue is: 1) connect device to a host and wait its enumeration. 2) trigger software disconnect by calling function usb_gadget_disconnect(), which finally call dwc3_gadget_pullup(false). Do not reconnect device (I mean no enumeration go on, keep bit Ru

Re: printk: Add kernel parameter to disable writes to /dev/kmsg

2016-04-27 Thread Austin S. Hemmelgarn
On 2016-04-26 15:47, Steven Rostedt wrote: On Tue, 26 Apr 2016 20:44:58 +0200 Pavel Machek wrote: I simply propose a way to let us kernel developers keep user space from interfering, by adding a new kernel command line parameter that will disable writing to /dev/kmsg. Any attempt to open the f

Re: [PATCH 6/8] char/genrtc: parisc: use asm-generic/rtc.h

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 00:07:47 Rolf Eike Beer wrote: > Arnd Bergmann wrote: > > The asm-generic/rtc.h header can now be included by > > architectures that provide their own set_rtc_time/get_rtc_time > > macros, letting us remove most of the common contents in > > the powerpc implementation. >

Re: [PATCH v6 09/12] usb: gadget: udc: adapt to OTG core

2016-04-27 Thread Roger Quadros
On 26/04/16 03:07, Jun Li wrote: > Hi > >> -Original Message- >> From: Roger Quadros [mailto:rog...@ti.com] >> Sent: Monday, April 25, 2016 10:04 PM >> To: Jun Li ; st...@rowland.harvard.edu; ba...@kernel.org; >> gre...@linuxfoundation.org; peter.c...@freescale.com >> Cc: dan.j.willi...@in

[PATCH] drm/msm: Move call to PTR_ERR_OR_ZERO after reassignment

2016-04-27 Thread Vaishali Thakkar
Here, a location is reset to NULL before being passed to PTR_ERR. So, PTR_ERR should be called before its argument is reassigned to NULL. Further to simplify things use PTR_ERR_OR_ZERO instead of PTR_ERR and IS_ERR. Problem found using Coccinelle. Signed-off-by: Vaishali Thakkar --- drivers/gpu

Re: [PATCH 1/3] DRA7: Fix clock data for gmac_gmii_ref_clk_div

2016-04-27 Thread Tero Kristo
On 26/04/16 20:54, J.D. Schroeder wrote: From: "J.D. Schroeder" This commit fixes the clock data inside the DRA7xx clocks device tree structure for the gmac_gmii_ref_clk_div clock. This clock is actually the GMAC_MAIN_CLK and has nothing to do with the register at address 0x4a0093d0. If CLKSEL_

Re: [PATCH] w1: add ability to set (SRAM) and store (EEPROM) configuration for temp sensors like DS18B20

2016-04-27 Thread Evgeniy Polyakov
Hi 17.04.2016, 02:08, "x29a" <0.x29...@googlemail.com>: > based on the PR (https://github.com/raspberrypi/linux/pull/1412) for the > raspberry pi kernel, i would like to propose my changes upstream as well. > > The changes entitle basic write operations for the 1Wire driver which are > needed to

Re: [PATCH V4 16/18] coresight: tmc: implementing TMC-ETF AUX space API

2016-04-27 Thread Suzuki K Poulose
On 26/04/16 23:10, Mathieu Poirier wrote: This patch implement the AUX area interfaces required to use the TMC (configured as an ETF) from the Perf sub-system. The heuristic is heavily borrowed from the ETB10 implementation. Signed-off-by: Mathieu Poirier + + /* +

Re: [patch] w1: silence an uninitialized variable warning

2016-04-27 Thread Evgeniy Polyakov
Hi Dan 14.04.2016, 12:36, "Dan Carpenter" : > If kstrtoint() returns -ERANGE then "tmp" is uninitialized. Looks good to me, please pull it into janitors tree > Signed-off-by: Dan Carpenter Acked-by: Evgeniy Polaykov > diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c > index 89a7847..bb34362 10

Re: [PATCH v2 0/5] Cavium ThunderX uncore PMU support

2016-04-27 Thread Mark Rutland
On Wed, Apr 27, 2016 at 12:51:56PM +0200, Jan Glauber wrote: > On Tue, Apr 26, 2016 at 02:53:54PM +0100, Will Deacon wrote: > > [...] > > > > > > > That sounds like a good compromise. > > > > > > So I could do the following: > > > > > > 1) In the uncore setup check for CONFIG_NUMA, if set use

[PATCH v7 3/4] dmaengine: dw: keep entire platform data in struct dw_dma

2016-04-27 Thread Andy Shevchenko
Keep the entire platform data in the struct dw_dma. It makes the driver a bit cleaner. Acked-by: Viresh Kumar Signed-off-by: Andy Shevchenko --- drivers/dma/dw/core.c| 30 +++--- drivers/dma/dw/platform.c| 4 ++-- drivers/dma/dw/regs.h

Re: [PATCH v7 0/4] Fixes / cleanups in dw_dmac (affects on few subsystems)

2016-04-27 Thread Viresh Kumar
On 27-04-16, 14:15, Andy Shevchenko wrote: > This patch series (v3: http://www.spinics.net/lists/kernel/msg2215303.html) > contains a number of mostly minor fixes and cleanups for the DW DMA driver. A > couple of them affect the DT binding so these may need to be updated to > maintain compatibility

Re: [PATCH V6 02/13] pci, acpi: Provide generic way to assign bus domain number.

2016-04-27 Thread Lorenzo Pieralisi
On Tue, Apr 26, 2016 at 09:26:49PM -0500, Bjorn Helgaas wrote: > On Fri, Apr 15, 2016 at 07:06:37PM +0200, Tomasz Nowicki wrote: > > As we now have valid PCI host bridge device reference we can > > introduce code that is going to find its bus domain number using > > ACPI _SEG method. > > > > Note

[PATCH v7 4/4] dmaengine: dw: pass platform data via struct dw_dma_chip

2016-04-27 Thread Andy Shevchenko
We pass struct dw_dma_chip to dw_dma_probe() anyway, thus we may use it to pass a platform data as well. While here, constify the source of the platform data. Acked-by: Viresh Kumar Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 2 +- drivers/dma/dw/core.c

Re: [PATCH v6 07/12] usb: otg: add OTG/dual-role core

2016-04-27 Thread Roger Quadros
Hi Jun, On 26/04/16 05:07, Jun Li wrote: > Hi Roger > >> -Original Message- >> From: Roger Quadros [mailto:rog...@ti.com] >> Sent: Tuesday, April 05, 2016 10:05 PM >> To: st...@rowland.harvard.edu; ba...@kernel.org; >> gre...@linuxfoundation.org; peter.c...@freescale.com >> Cc: dan.j.will

[PATCH v7 2/4] dmaengine: dw: revisit data_width property

2016-04-27 Thread Andy Shevchenko
There several changes are done here: - Convert the property to be in bytes Besides that this is a common practice for such property, the use of a value in bytes much more convenient than handling the encoded one. - Rename data_width to data-width in the device tree bindings The change lea

Re: [PATCH 1/2] mm: add PF_MEMALLOC_NOFS

2016-04-27 Thread Michal Hocko
On Wed 27-04-16 19:53:21, Tetsuo Handa wrote: [...] > > Let's hope that filesystems will drop direct GFP_NOFS (resp. ~__GFP_FS) > > usage as much and possible and only use a properly documented > > memalloc_nofs_{save,restore} checkpoints where they are appropriate. > > Is the story simple enough

[PATCH v7 0/4] Fixes / cleanups in dw_dmac (affects on few subsystems)

2016-04-27 Thread Andy Shevchenko
This patch series (v3: http://www.spinics.net/lists/kernel/msg2215303.html) contains a number of mostly minor fixes and cleanups for the DW DMA driver. A couple of them affect the DT binding so these may need to be updated to maintain compatibility (old format is still supported though). The rest s

[PATCH v7 1/4] dmaengine: dw: platform: check nr_masters to be non-zero

2016-04-27 Thread Andy Shevchenko
The value of nr_masters equal to 0 is invalid since this DMA controller has to have at least one master. Check this before we proceed with the rest of properties. Acked-by: Viresh Kumar Signed-off-by: Andy Shevchenko --- drivers/dma/dw/platform.c | 20 ++-- 1 file changed, 10 i

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Daniel Vetter
On Wed, Apr 27, 2016 at 11:45:31AM +0200, Noralf Trønnes wrote: > > Den 26.04.2016 19:19, skrev Daniel Vetter: > >On Tue, Apr 26, 2016 at 06:24:54PM +0200, Noralf Trønnes wrote: > >>Den 25.04.2016 11:09, skrev Daniel Vetter: > >>>On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: > >>

Re: [PATCH] of: Add stub for of_get_next_parent()

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 14:11:40 Heikki Krogerus wrote: > Fixes a compiler error: > > drivers/phy/phy-core.c: In function ‘__of_phy_provider_register’: > drivers/phy/phy-core.c:848:13: error: implicit declaration of function > ‘of_get_next_parent’ [-Werror=implicit-function-declaration] > p

Re: [PATCH v6 08/12] usb: hcd: Adapt to OTG core

2016-04-27 Thread Roger Quadros
On 27/04/16 14:00, Roger Quadros wrote: > On 27/04/16 13:16, Jun Li wrote: >> Hi >> >>> >>> + >>> +static struct otg_hcd_ops otg_hcd_intf = { >>> + .add = usb_add_hcd, >>> + .remove = usb_remove_hcd, >>> + .usb_bus_start_enum = usb_bus_start_enum, >> >> Build break if CONFIG_USB_OTG is not en

[PATCH] of: Add stub for of_get_next_parent()

2016-04-27 Thread Heikki Krogerus
Fixes a compiler error: drivers/phy/phy-core.c: In function ‘__of_phy_provider_register’: drivers/phy/phy-core.c:848:13: error: implicit declaration of function ‘of_get_next_parent’ [-Werror=implicit-function-declaration] parent = of_get_next_parent(parent); ^ Fixes: 2f7600bc

Re: [PATCH] ARM: mv78xx0: Remove CLK_IS_ROOT

2016-04-27 Thread Gregory CLEMENT
Hi Stephen, On mer., avril 20 2016, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Andrew Lunn > Cc: Jason Cooper Signed-off-by: Stephen Boyd Applied on mvebu/soc (I fixed the email format for Jason

Re: [PATCH] scsi: fc: force inlining of wwn conversion functions

2016-04-27 Thread Martin Jambor
Hi, On Tue, Apr 26, 2016 at 05:58:20PM +0200, Arnd Bergmann wrote: > On Tuesday 26 April 2016 09:06:54 Martin K. Petersen wrote: > > > "Arnd" == Arnd Bergmann writes: > > > > Arnd> I don't think we can realistically blacklist gcc-4.9.{0,1,2,3}, > > Arnd> gcc-5.{0,1,2,3}.* and gcc-6.0 and req

[PATCH] device property: fix a potential oops

2016-04-27 Thread Heikki Krogerus
Since fwnode may hold ERR_PTR(-ENODEV) or it may point to NULL, the fwnode type checks is_of_node(), is_acpi_node() and is is_pset_node() need to consider it. Using IS_ERR_OR_NULL() to check it. Fixes: 0d67e0fa1664 ("device property: fix for a case of use-after-free") Reported-by: Dan Carpenter S

Re: [PATCH v6 08/12] usb: hcd: Adapt to OTG core

2016-04-27 Thread Roger Quadros
On 27/04/16 13:16, Jun Li wrote: > Hi > >> >> + >> +static struct otg_hcd_ops otg_hcd_intf = { >> +.add = usb_add_hcd, >> +.remove = usb_remove_hcd, >> +.usb_bus_start_enum = usb_bus_start_enum, > > Build break if CONFIG_USB_OTG is not enabled: > > drivers/built-in.o:(.data+0x1db30):

Re: [PATCH v6 07/12] usb: otg: add OTG/dual-role core

2016-04-27 Thread Roger Quadros
Hi, On 27/04/16 06:15, Peter Chen wrote: > On Tue, Apr 26, 2016 at 04:21:07PM +0800, Peter Chen wrote: >> On Tue, Apr 26, 2016 at 07:00:22AM +, Jun Li wrote: >>> Hi >>> -Original Message- From: Peter Chen [mailto:hzpeterc...@gmail.com] Sent: Tuesday, April 26, 2016 2:28

Re: [PATCH] veth: Fix potential memory leak in veth_newlink

2016-04-27 Thread Nikolay Aleksandrov
On 04/27/2016 12:42 PM, Haishuang Yan wrote: > Free peer netdev when failed to configure peer link or register dev. > > Signed-off-by: Haishuang Yan > --- > drivers/net/veth.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/veth.c b/drivers/net/veth.c > index f37a6e6..8bb9fb

wake_up on wait-queue called from hard-irq context in 3.10.63-rt65

2016-04-27 Thread Andreas Starzer
This Bug was already fixed in rcutiny_plugin.h with changing the wait-queue to simple-waiter. Found this bug with 3.10.63-rt65 in rcutree_plugin.h too. (It is not fixed in current 3.10-release) SVC (hard-irq-context) for scheduling tries to wake-up wait-queue waiters and therefore simple-waiter i

Re: [PATCH 1/2] mm: add PF_MEMALLOC_NOFS

2016-04-27 Thread Tetsuo Handa
On 2016/04/26 20:56, Michal Hocko wrote: > Not only this is easier to understand and maintain because there are > much less problematic contexts than specific allocation requests, this > also helps code paths where FS layer interacts with other layers (e.g. > crypto, security modules, MM etc...) an

Re: [PATCH v2 0/5] Cavium ThunderX uncore PMU support

2016-04-27 Thread Jan Glauber
On Tue, Apr 26, 2016 at 02:53:54PM +0100, Will Deacon wrote: [...] > > > > That sounds like a good compromise. > > > > So I could do the following: > > > > 1) In the uncore setup check for CONFIG_NUMA, if set use the NUMA > >information to determine the device node > > > > 2) If CONFIG_NU

[PATCH] veth: Fix potential memory leak in veth_newlink

2016-04-27 Thread Haishuang Yan
Free peer netdev when failed to configure peer link or register dev. Signed-off-by: Haishuang Yan --- drivers/net/veth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index f37a6e6..8bb9fb8 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -

Re: [PATCH v1] ARM: clocksource: make ARM_GLOBAL_TIMER selectable

2016-04-27 Thread Russell King - ARM Linux
On Tue, Apr 26, 2016 at 10:35:08PM +0300, Grygorii Strashko wrote: > On 04/26/2016 07:02 PM, Liviu Dudau wrote: > > Well, SoC-B has the GT *and* the DT node, so what is the problem with > > enabling it for SoC-B? If there are reasons not to use the Global Timer > > on SoC-B, surely a better option

Re: [RESEND PATCH v2 7/7] usb: xhci: plat: add vbus regulator control

2016-04-27 Thread Felipe Balbi
Hi, Mark Brown writes: > On Wed, Apr 27, 2016 at 01:25:27PM +0300, Felipe Balbi wrote: >> Mark Brown writes: > >> > this to be just a normal regulator_get(). > >> jokes aside, this regulator is optional because not all platforms >> require a SW controlled regulator, no ? Will normal regulator_g

Re: [RESEND PATCH v2 7/7] usb: xhci: plat: add vbus regulator control

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 01:25:27PM +0300, Felipe Balbi wrote: > Mark Brown writes: > > this to be just a normal regulator_get(). > jokes aside, this regulator is optional because not all platforms > require a SW controlled regulator, no ? Will normal regulator_get() give > us a dummy regulator i

Re: [PATCH v2 1/6] rtc: m68k: provide rtc_class_ops directly

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 09:47:56 Geert Uytterhoeven wrote: > > --- a/arch/m68k/kernel/time.c > > +++ b/arch/m68k/kernel/time.c > > @@ -86,7 +86,24 @@ void read_persistent_clock(struct timespec *ts) > > } > > } > > > > -#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET > > +#if defined(CONFIG_ARCH_U

Re: [PATCH] regulator: axp20x: Fix LDO4 linear voltage range

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 11:46:29AM +0200, Hans de Goede wrote: > On 26-04-16 16:57, Mark Brown wrote: > >I have no record of any such patch, I don't know where it might've been > >sent. > It is here: Please follow the normal submission workflow, don't pick random new places to send things. It's

Re: [RESEND PATCH v2 7/7] usb: xhci: plat: add vbus regulator control

2016-04-27 Thread Jisheng Zhang
Dear Mark, On Wed, 27 Apr 2016 10:57:39 +0100 Mark Brown wrote: > On Wed, Apr 27, 2016 at 08:37:20AM +0300, Felipe Balbi wrote: > > Jisheng Zhang writes: > > > > + vbus = devm_regulator_get(&pdev->dev, "vbus"); > > > devm_regulator_get_optional() ?? > > Does USB work without a VBUS? Un

Re: [RESEND PATCH v2 7/7] usb: xhci: plat: add vbus regulator control

2016-04-27 Thread Felipe Balbi
Hi, Mark Brown writes: > On Wed, Apr 27, 2016 at 08:37:20AM +0300, Felipe Balbi wrote: >> Jisheng Zhang writes: > >> > + vbus = devm_regulator_get(&pdev->dev, "vbus"); > >> devm_regulator_get_optional() ?? > > Does USB work without a VBUS? Unless the answer is yes then I'd expect it can, ju

Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-27 Thread Catalin Marinas
On Wed, Apr 27, 2016 at 02:13:01AM +, Zengtao (B) wrote: > Suzuki K Poulose wrote: > > On 26/04/16 03:21, Zengtao (B) wrote: > > > So you mean the 64-bit grep should see the same cpuinfo as its father > > > process > > > which is 32-bit? > > > > > > For 32-bit process running on 64-bit kernel,

Re: char: legacy RTC cleanups

2016-04-27 Thread Geert Uytterhoeven
Hi Arnd, On Wed, Apr 27, 2016 at 12:07 PM, Arnd Bergmann wrote: > On Wednesday 27 April 2016 11:44:10 Alexandre Belloni wrote: >> On 26/04/2016 at 23:44:04 +0200, Arnd Bergmann wrote : >> > I've had these patches in my tree for a while, after the first one >> > had a few issues that are fixed in

Re: [PATCH] cpu/hotplug: handle unbalanced hotplug enable/disable

2016-04-27 Thread Thomas Gleixner
On Mon, 25 Apr 2016, Lianwei Wang wrote: > On Mon, Apr 25, 2016 at 1:22 AM, Thomas Gleixner wrote: > >> Anyway, from a product perspective way, if we don't want to restore > >> the unbalanced counter to 0, then maybe a BUG_ON is more reasonable > >> than WARN_ON. > > > > Not at all. BUG_ON is the

RE: [PATCH v6 08/12] usb: hcd: Adapt to OTG core

2016-04-27 Thread Jun Li
Hi > > + > +static struct otg_hcd_ops otg_hcd_intf = { > + .add = usb_add_hcd, > + .remove = usb_remove_hcd, > + .usb_bus_start_enum = usb_bus_start_enum, Build break if CONFIG_USB_OTG is not enabled: drivers/built-in.o:(.data+0x1db30): undefined reference to `usb_bus_start_enum' Ma

Re: [PATCH 1/2] clk: imx: do not sleep if IRQ's are still disabled

2016-04-27 Thread Thomas Gleixner
On Wed, 27 Apr 2016, Dong Aisheng wrote: > On Wed, Apr 27, 2016 at 9:58 AM, Shawn Guo wrote: > > On Tue, Apr 26, 2016 at 07:27:03PM +0800, Dong Aisheng wrote: > >> Shawn, > >> What's your suggestion? > > > > I think this needs more discussion, and I just dropped Stefan's patch > > from my tree. >

Re: [PATCH v1] ARM: clocksource: make ARM_GLOBAL_TIMER selectable

2016-04-27 Thread Robin Murphy
On 26/04/16 20:35, Grygorii Strashko wrote: On 04/26/2016 07:02 PM, Liviu Dudau wrote: On Tue, Apr 26, 2016 at 06:28:52PM +0300, Grygorii Strashko wrote: Hi Grygorii, First time I'm seeing this patch, so I have a few questions, mostly related to the commit message: Hm. You are in cc for RFC.

Re: [PATCH V6 01/13] pci, acpi, x86, ia64: Move ACPI host bridge device companion assignment to core code.

2016-04-27 Thread Tomasz Nowicki
On 27.04.2016 00:36, Bjorn Helgaas wrote: On Sat, Apr 16, 2016 at 04:41:45AM +0800, kbuild test robot wrote: Hi Tomasz, [auto build test ERROR on pci/next] [also build test ERROR on v4.6-rc3 next-20160415] [if your patch is applied to the wrong git tree, please drop us a note to help improving

Re: [PATCH v1] ARM: clocksource: make ARM_GLOBAL_TIMER selectable

2016-04-27 Thread Liviu Dudau
On Tue, Apr 26, 2016 at 10:35:08PM +0300, Grygorii Strashko wrote: > On 04/26/2016 07:02 PM, Liviu Dudau wrote: > > On Tue, Apr 26, 2016 at 06:28:52PM +0300, Grygorii Strashko wrote: > > > > Hi Grygorii, > > > > First time I'm seeing this patch, so I have a few questions, mostly > > related to th

Re: [PATCH v2] fs: add file_dentry()

2016-04-27 Thread Miklos Szeredi
On Wed, Apr 20, 2016 at 01:07:16AM -0400, Sasha Levin wrote: > Hey Miklos, > > On 03/23/2016 09:36 AM, Miklos Szeredi wrote: > > This series fixes bugs in nfs and ext4 due to 4bacc9c9234c ("overlayfs: > > Make f_path always point to the overlay and f_inode to the underlay"). > > Since that commit

Re: [PATCH v2 4/6] rtc: parisc: provide rtc_class_ops directly

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 08:22:24 kbuild test robot wrote: > >256 >257 memset(tm, 0, sizeof(*tm)); >258 if (pdc_tod_read(&tod_data) < 0) >259 return -EOPNOTSUPP; >260 >261 /* we treat tod_sec as unsigned, so this can work un

Re: char: legacy RTC cleanups

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 11:44:10 Alexandre Belloni wrote: > On 26/04/2016 at 23:44:04 +0200, Arnd Bergmann wrote : > > I've had these patches in my tree for a while, after the first one > > had a few issues that are fixed in this new version. The old-style > > PC RTC driver is now also disabled

Re: [PATCH 23/28] mm, page_alloc: Check multiple page fields with a single branch

2016-04-27 Thread Mel Gorman
On Tue, Apr 26, 2016 at 08:41:50PM +0200, Vlastimil Babka wrote: > On 04/15/2016 11:07 AM, Mel Gorman wrote: > >Signed-off-by: Mel Gorman > > Acked-by: Vlastimil Babka > > I wonder, would it be just too ugly to add +1 to > atomic_read(&page->_mapcount) and OR it with the rest for a truly single

Re: [PATCH 2/8] char/rtc: legacy RTC is no longer supported on x86

2016-04-27 Thread Thomas Gleixner
On Tue, 26 Apr 2016, Arnd Bergmann wrote: > Commit 3195ef59cb42 ("x86: Do full rtc synchronization with ntp") had > the side-effect of unconditionally enabling the RTC_LIB symbol on x86, > which in turn disables the selection of the CONFIG_RTC and > CONFIG_GEN_RTC drivers that contain a two older

[PATCH 2/2 v6] ASoC: dwc: Update DOCUMENTATION for I2S Driver

2016-04-27 Thread Jose Abreu
This patch updates documentation for the Designware I2S driver. Signed-off-by: Jose Abreu Acked-by: Rob Herring Cc: Rob Herring Cc: Carlos Palminha Cc: Alexey Brodkin Cc: devicet...@vger.kernel.org Cc: linux-snps-...@lists.infradead.org Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.ke

[PATCH 1/2 v6] ASoC: dwc: Add custom PCM driver

2016-04-27 Thread Jose Abreu
HDMI audio support was added to the AXS board using an I2S cpu driver and a custom platform driver. The platform driver supports two channels @ 16 bits with rates 32k, 44.1k and 48k. Although the mainline I2S driver uses ALSA DMA engine, this controller can be built without DMA support so it was

[PATCH 0/2 v6] Add I2S audio support for ARC AXS10x boards

2016-04-27 Thread Jose Abreu
ARC AXS10x platforms consist of a mainboard with several peripherals. One of those peripherals is an HDMI output port controlled by the ADV7511 transmitter. This patch set adds I2S audio for the AXS10x platform. Changes v5 -> v6 * Use SNDRV_DMA_TYPE_CONTINUOUS Changes v4 -> v5 * Resolve undefine

Re: [PATCH] pinctrl: ish-pfc: avoid unused variable warning

2016-04-27 Thread Laxman Dewangan
On Wednesday 27 April 2016 03:26 PM, Arnd Bergmann wrote: After the conversion to devm_pinctrl_register, we get a warning in sh_pfc_remove when CONFIG_PINCTRL_SH_PFC_GPIO is disabled: drivers/pinctrl/sh-pfc/core.c: In function 'sh_pfc_remove': drivers/pinctrl/sh-pfc/core.c:603:17: unused variab

Re: [PATCH] mmc: mediatek: fix request blocked by cancel_delayed_work

2016-04-27 Thread Ulf Hansson
On 23 April 2016 at 11:43, Chaotian Jing wrote: > Hi, > On Fri, 2016-04-22 at 14:24 +0200, Ulf Hansson wrote: >> On 18 April 2016 at 09:13, Chaotian Jing wrote: >> > there are 2 points will cause could not call mmc_request_done() >> > and eventually cause the caller thread blocked. >> > >> > A. i

Re: [PATCH 4/8] char/rtc: move mc146818rtc code out of asm-generic/rtc.h

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 11:29:12 Alexandre Belloni wrote: > The subject should be: > rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h Good point, the functions are only used by rtc-cmos, not the old drivers/char/rtc.c. > Else, you can add: > Acked-by: Alexandre Belloni Thanks.

Re: [Intel-gfx] i951 ERRORs and WARN_ON()s (was: blank screen on boot with i915/DRM_FBDEV_EMULATION)

2016-04-27 Thread Marius Vlad
Florian, if you're using drm-intel-nigthly submit a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=DRI, with DRM/intel as component. This way we can track some kind of progress/regress. The FIFO underruns should've have been fixed, but maybe there's something related to your platform. O

[PATCH] pinctrl: ish-pfc: avoid unused variable warning

2016-04-27 Thread Arnd Bergmann
After the conversion to devm_pinctrl_register, we get a warning in sh_pfc_remove when CONFIG_PINCTRL_SH_PFC_GPIO is disabled: drivers/pinctrl/sh-pfc/core.c: In function 'sh_pfc_remove': drivers/pinctrl/sh-pfc/core.c:603:17: unused variable 'pfc' [-Werror=unused-variable] struct sh_pfc *pfc = pl

Re: [PATCH RESEND] ASoC: arizona: Do not create OUT4R widget for CS47L24/WM1831

2016-04-27 Thread Richard Fitzgerald
On Wed, 2016-04-27 at 10:37 +0100, Richard Fitzgerald wrote: > The CS47L24 and WM1831 codecs only use the OUT4L widget so we can > skip creation of the OUT4R widget. > > Signed-off-by: Richard Fitzgerald > --- > sound/soc/codecs/arizona.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [RESEND PATCH v2 7/7] usb: xhci: plat: add vbus regulator control

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 08:37:20AM +0300, Felipe Balbi wrote: > Jisheng Zhang writes: > > + vbus = devm_regulator_get(&pdev->dev, "vbus"); > devm_regulator_get_optional() ?? Does USB work without a VBUS? Unless the answer is yes then I'd expect this to be just a normal regulator_get(). > >

[PATCH] tty: provide tty_name() even without CONFIG_TTY

2016-04-27 Thread Arnd Bergmann
The audit subsystem just started printing the name of the tty, but that causes a build failure when CONFIG_TTY is disabled: kernel/built-in.o: In function `audit_log_task_info': memremap.c:(.text+0x5e34c): undefined reference to `tty_name' kernel/built-in.o: In function `audit_set_loginuid': memre

[PATCH] phy: leave out DT based interfaces without CONFIG_OF

2016-04-27 Thread Arnd Bergmann
After a recent change in the PHY core, we get a build error when CONFIG_OF is disabled: drivers/phy/phy-core.c: In function '__of_phy_provider_register': drivers/phy/phy-core.c:848:13: error: implicit declaration of function 'of_get_next_parent' [-Werror=implicit-function-declaration] It would n

[PATCH]sched: cpuidle: Do not fetch current cpu in loop in idle thread

2016-04-27 Thread Gaurav Jindal (Gaurav Jindal)
Currently in idle thread loop, smp_processor_id() fetches the cpu id every time it runs thus taking more cpu cycles. Instead, save the cpu id as local varaible while entering the idle thread and use it in the loop. Since it is local variable, it will be correct for each core. It will also save cyc

Re: [PATCH] media: fix media_ioctl use-after-free when driver unbinds

2016-04-27 Thread Mauro Carvalho Chehab
Hi Shuah, Good work! I have a few notes below. Em Tue, 26 Apr 2016 21:08:32 -0600 Shuah Khan escreveu: > When driver unbind is run while media_ioctl is in progress, media_ioctl() > fails with use-after-free. This first use-after-free is followed by more > user-after-free errors in media_release

Re: [PATCH] regulator: axp20x: Fix LDO4 linear voltage range

2016-04-27 Thread Hans de Goede
Hi, On 26-04-16 16:57, Mark Brown wrote: On Tue, Apr 26, 2016 at 10:18:04PM +0800, Chen-Yu Tsai wrote: Hans sent an identical patch (plus another fix) a month ago though. I have no record of any such patch, I don't know where it might've been sent. It is here: https://groups.google.com/fo

RE: [PATCH v2 4/6] ACPI / osi: Fix default _OSI(Darwin) support

2016-04-27 Thread Chen, Yu C
Hi Lv, > -Original Message- > From: Zheng, Lv > Sent: Wednesday, April 27, 2016 4:55 PM > To: Wysocki, Rafael J; Rafael J. Wysocki; Brown, Len > Cc: Zheng, Lv; Lv Zheng; linux-kernel@vger.kernel.org; linux- > a...@vger.kernel.org; Chen, Yu C > Subject: [PATCH v2 4/6] ACPI / osi: Fix defaul

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
Den 26.04.2016 19:19, skrev Daniel Vetter: On Tue, Apr 26, 2016 at 06:24:54PM +0200, Noralf Trønnes wrote: Den 25.04.2016 11:09, skrev Daniel Vetter: On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev fr

[PATCH] i2c: octeon: Add workaround for broken irqs on CN3860

2016-04-27 Thread Jan Glauber
From: David Daney CN3860 does not interrupt the CPU when the i2c status changes. If we get a timeout, and see the status has in fact changed, we know we have this problem, and drop back to polling. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 53

Re: char: legacy RTC cleanups

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 23:44:04 +0200, Arnd Bergmann wrote : > I've had these patches in my tree for a while, after the first one > had a few issues that are fixed in this new version. The old-style > PC RTC driver is now also disabled on m68k (as pointed out by > Geert), ppc (it was also blacklisted), a

Re: [PATCH v4 1/2] KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS

2016-04-27 Thread Gerg Kurz
Quoting Greg Kurz : Commit c896939f7cff ("KVM: use heuristic for fast VCPU lookup by id") added a return path that prevents vcpu ids to exceed KVM_MAX_VCPUS. This is a problem for powerpc where vcpu ids can grow up to 8*KVM_MAX_VCPUS. This patch simply reverses the logic so that we only try fa

Re: kmemleak - percpu reliability?

2016-04-27 Thread Johannes Berg
On Wed, 2016-04-27 at 10:38 +0100, Catalin Marinas wrote: >  > Kmemleak tries to reduce the false positives to the detriment of more > false negatives. :) > One way it does this is by having to scan the memory > twice and no changes to the leaked object (crc32) should have > happened. It also sc

Re: [PATCH 0/3] MAINTAINERS: add new maintainers of NXP LPC32xx SoC

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 02:55:16 Vladimir Zapolskiy wrote: > Roland Stigge added initial support of NXP LPC32xx SoC series and > first boards powered by it, but for a while since v3.18-rc1 the > SoC support is unmaintained and became stale. > > Vladimir Zapolskiy and Sylvain Lemieux expressed i

Re: kmemleak - percpu reliability?

2016-04-27 Thread Catalin Marinas
Hi, On 27 April 2016 at 10:00, Johannes Berg wrote: > Yesterday I found the bug fixed by this commit: > https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git/commit/?id=e6436be21e77e3659b4ff7e357ab5a8342d132d2 > > The first case can easily be reproduced by running: > > # iw wlan0 interf

[GIT PULL] arch/nios2 fix for v4.6

2016-04-27 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for v4.6. Please consider pulling. Regards Ley Foon The following changes since commit 02da2d72174c61988eb4456b53f405e3ebdebce4: Linux 4.6-rc5 (2016-04-24 16:17:05 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel

[PATCH RESEND] ASoC: arizona: Do not create OUT4R widget for CS47L24/WM1831

2016-04-27 Thread Richard Fitzgerald
The CS47L24 and WM1831 codecs only use the OUT4L widget so we can skip creation of the OUT4R widget. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/arizona.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index da61c62..0cd27

Re: [PATCH v7 09/15] i2c: octeon: Add workaround for broken irqs on CN3860

2016-04-27 Thread Jan Glauber
On Tue, Apr 26, 2016 at 11:17:59PM +0200, Wolfram Sang wrote: > On Mon, Apr 25, 2016 at 04:33:38PM +0200, Jan Glauber wrote: > > From: David Daney > > > > CN3860 does not interrupt the CPU when the i2c status changes. If > > we get a timeout, and see the status has in fact changed, we know we > >

Re: [PATCH v2] livepatch: Add some basic LivePatch documentation

2016-04-27 Thread Miroslav Benes
On Tue, 26 Apr 2016, Balbir Singh wrote: > > + + Anything inlined into __schedule() can not be patched. > > + > > +The switch_to macro is inlined into __schedule(). It switches the > > +context between two processes in the middle of the macro. It does > > +not save RIP in x86_64 versi

[PATCH] perf/x86/amd: Set the size of event map array to PERF_COUNT_HW_MAX.

2016-04-27 Thread Adam Borowski
The entry for PERF_COUNT_HW_REF_CPU_CYCLES is not used on AMD, but is referenced by filter_events() which expects undefined events to have a value of 0. UBSAN: Undefined behaviour in arch/x86/events/amd/core.c:132:30 index 9 is out of range for type 'u64 [9]' UBSAN: Undefined behaviour in arch/x86

Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-27 Thread Felipe Balbi
Hi, Heikki Krogerus writes: > On Tue, Apr 26, 2016 at 08:57:39PM +0800, Jisheng Zhang wrote: >> @@ -232,22 +265,44 @@ static int xhci_plat_probe(struct platform_device >> *pdev) >> if (HCC_MAX_PSA(xhci->hcc_params) >= 4) >> xhci->shared_hcd->can_do_streams = 1; >> >> +hc

Re: [Xen-devel] [PATCH] xen/x86: actually allocate legacy interrupts on PV guests

2016-04-27 Thread David Vrabel
On 27/04/16 06:02, Juergen Gross wrote: > On 21/04/16 11:30, Stefano Stabellini wrote: >> On Thu, 21 Apr 2016, Juergen Gross wrote: >>> On 20/04/16 15:15, Stefano Stabellini wrote: b4ff8389ed14 is incomplete: relies on nr_legacy_irqs() to get the number of legacy interrupts when actually

Re: [PATCH v5 2/4] printk/nmi: warn when some message has been lost in NMI context

2016-04-27 Thread Russell King - ARM Linux
On Thu, Apr 21, 2016 at 01:48:43PM +0200, Petr Mladek wrote: > @@ -64,8 +65,10 @@ static int vprintk_nmi(const char *fmt, va_list args) > again: > len = atomic_read(&s->len); > > - if (len >= sizeof(s->buffer)) > + if (len >= sizeof(s->buffer)) { > + atomic_inc(&nmi_mes

Re: [PATCH] usb: dwc3: usb/dwc3: fake dissconnect event when turn off pullup

2016-04-27 Thread Felipe Balbi
Hi, changbin...@intel.com writes: > From: "Du, Changbin" > > The dwc3 controller can't generate a disconnect event after it is > stopped. Thus gadget dissconnect callback is not invoked when do not generating disconnect IRQ after you drop Run/Stop is expected. > soft dissconnect. Call dissconn

[PATCH] virtio: silence compiler warning

2016-04-27 Thread Jiri Benc
gcc 4.8.5 emits the following false positive: drivers/virtio/virtio_ring.c: In function 'vring_create_virtqueue': drivers/virtio/virtio_ring.c:1032:5: warning: 'queue' may be used uninitialized in this function [-Wmaybe-uninitialized] Silence it. Signed-off-by: Jiri Benc --- drivers/virtio/vi

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2016-04-27 Thread Russell King - ARM Linux
On Thu, Apr 21, 2016 at 01:48:42PM +0200, Petr Mladek wrote: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index cdfa6c2b7626..259543ec6dc9 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -66,6 +66,7 @@ config ARM > select HAVE_KRETPROBES if (HAVE_KPROBES) > select

Re: [RFC] a corner case of open(2)

2016-04-27 Thread Miklos Szeredi
On Wed, Apr 27, 2016 at 7:34 AM, Al Viro wrote: > Fun bugs caught while trying to massage atomic_open()... Patch below is > in vfs.git#for-linus (along with two more fixes); I would like to get > an ACK from Miklos on that one - it's his code and this thing had been > present in there since the o

Re: [PATCH] perf/x86/amd: Explicitly define PERF_COUNT_HW_REF_CPU_CYCLES as undefined.

2016-04-27 Thread Adam Borowski
On Wed, Apr 27, 2016 at 10:03:45AM +0200, Ingo Molnar wrote: > * Adam Borowski wrote: > > diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c > > index 86a9bec..5fa1b8e 100644 > > --- a/arch/x86/events/amd/core.c > > +++ b/arch/x86/events/amd/core.c > > @@ -125,6 +125,7 @@ static

[RFC v2] mmc: Change the max discard sectors and erase response if mmc host supports busy signalling

2016-04-27 Thread Baolin
From: Baolin Wang When mmc host HW supports busy signalling (using R1B as response), We shouldn't use 'host->max_busy_timeout' as the limitation when deciding the max discard sectors that we tell the generic BLOCK layer about. Instead, we should pick one preferred erase size as the max discard se

Re: [PATCH 4/8] char/rtc: move mc146818rtc code out of asm-generic/rtc.h

2016-04-27 Thread Alexandre Belloni
The subject should be: rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h Else, you can add: Acked-by: Alexandre Belloni On 26/04/2016 at 23:44:08 +0200, Arnd Bergmann wrote : > Drivers should not really include stuff from asm-generic directly, > and the PC-style cmos rtc driver does thi

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 10:16:40 Anup Patel wrote: > It is really interesting to see the evolution of MDIO bus: > > 1. Traditionally, MDIO controller used to be part of each ethernet controller > itself so each ethernet controller used to have it's own 2 wire MDIO bus > > 2. Next, we saw SoC

Re: [PATCH v2] ARM: reboot: remove duplicated local_irq_disable()

2016-04-27 Thread Jisheng Zhang
Dear Russell, On Wed, 30 Mar 2016 14:45:08 +0800 Jisheng Zhang wrote: > Once entering machine_halt() and machine_restart(), local_irq_disable() > is called, and local irq is kept disabled, so the local_irq_disable() > at the end of these two functions are not necessary, remove it. Could I put th

<    5   6   7   8   9   10   11   12   >