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

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 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 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

[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 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 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

[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

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

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 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: 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 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_

[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 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

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: 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] 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: [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: [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: 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: [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: [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 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

[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 2/3] ARM: DRA7x: dts: Fix the 32kHz clock calculation

2016-04-27 Thread Tero Kristo
On 26/04/16 20:54, J.D. Schroeder wrote: From: "J.D. Schroeder" This commit fixes the 32kHz clock (sys_32k_ck) calculation to be correctly based on the SYS_CLK1 (sys_clkin1) frequency. Based on the TRM CTRL_CORE_BOOTSTRAP[9:8] SPEEDSELECT, set by the SYSBOOT[9:8] board jumpers according to the

[PATCH] Coccinelle: noderef: Add a rule and correct the old rule

2016-04-27 Thread Vaishali Thakkar
Add a new rule to detect the cases where sizeof is used as a subexpression rather than a top level argument. Also, for the patch mode third rule should behave same as second rule with arguments reversed. So, change that as well. Signed-off-by: Vaishali Thakkar --- scripts/coccinelle/misc/nodere

Re: [RFC PATCH V2 2/2] vhost: device IOTLB API

2016-04-27 Thread Michael S. Tsirkin
On Fri, Mar 25, 2016 at 10:34:34AM +0800, Jason Wang wrote: > This patch tries to implement an device IOTLB for vhost. This could be > used with for co-operation with userspace(qemu) implementation of DMA > remapping. > > The idea is simple. When vhost meets an IOTLB miss, it will request > the as

Re: [PATCH V6 06/13] arm64, pci, acpi: ACPI support for legacy IRQs parsing and consolidation with DT code.

2016-04-27 Thread Lorenzo Pieralisi
On Tue, Apr 26, 2016 at 09:44:30PM -0500, Bjorn Helgaas wrote: > On Fri, Apr 15, 2016 at 07:06:41PM +0200, Tomasz Nowicki wrote: > > To enable PCI legacy IRQs on platforms booting with ACPI, arch code > > should include ACPI specific callbacks that parse and set-up the > > device IRQ number, equiva

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

2016-04-27 Thread Viresh Kumar
On 27-04-16, 12:40, Sudeep Holla wrote: > 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

Re: [PATCH 3/3] ARM: DRA7x: dts: Update the OSC_32K_CLK frequency

2016-04-27 Thread Tero Kristo
On 26/04/16 20:54, J.D. Schroeder wrote: From: "J.D. Schroeder" This commit updates the OSC_32K_CLK (secure_32k_clk_src_ck) frequency from the precise 32kHz frequency (i.e., 32.768 kHz) to the more accurate frequency of ~34.6 kHz. Actual measured frequencies of the clock vary from board to boar

[PATCH 1/2] lightnvm: move responsibility for bad blk mgmt to target

2016-04-27 Thread Matias Bjørling
We move the responsibility of managing the persistent bad block table to the target. The target may choose to mark a block bad or retry writing to it. Never the less, it should be the target that makes the decision and not the media manager. Signed-off-by: Matias Bjørling --- drivers/lightnvm/ge

[PATCH 2/2] lightnvm: refactor set_bb_tbl for accepting ppa list

2016-04-27 Thread Matias Bjørling
The set_bb_tbl takes struct nvm_rq and only uses its ppa_list and nr_pages internally. Instead, make these two variables explicit. This allows a user to call it without initializing a struct nvm_rq first. Signed-off-by: Matias Bjørling --- drivers/lightnvm/sysblk.c| 2 +- drivers/nvme/host/l

[PATCH v4] mmc: sdhci-pci: add Support of Synopsys DWC_MSHC IP

2016-04-27 Thread Prabu Thangamuthu
Patch for Standard SD Host Controller Interface compliant Synopsys sdhci-dwc controller driver. This code supports PCI based interface. Signed-off-by: Prabu Thangamuthu --- Change log v4: -Updated review comments to optimize the code. Change log v3: -Removed unused code.

Re: [PATCH] ARM: orion5x: 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 > Signed-off-by: Stephen Boyd Applied on mvebu/soc Thanks, Gregory > --- > arch/arm/mach-orion5x/commo

[PATCH 1.2/2] mm: introduce memalloc_nofs_{save,restore} API

2016-04-27 Thread Michal Hocko
From: Michal Hocko GFP_NOFS context is used for the following 4 reasons currently - to prevent from deadlocks when the lock held by the allocation context would be needed during the memory reclaim - to prevent from stack overflows during the reclaim because the

[PATCH] net: phy: at803x: Register 'link_change_notify' only for AT8030

2016-04-27 Thread Sebastian Frias
There is no need to register the callback introduced by commit 13a56b449325 ("net: phy: at803x: Add support for hardware reset") for non faulty PHYs. The check on the PHY ID is not necessary anymore and thus has been removed from the callback implementation as well. Fixes: 13a56b449325 ("net: phy

Re: [PATCH] ARM: dove: 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 > Signed-off-by: Stephen Boyd Applied on mvebu/soc Thanks, Gregory > --- > arch/arm/mach-dove/common.c

Re: [PATCH v10] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-04-27 Thread Cyrille Pitchen
Hi Jiancheng, Le 19/04/2016 09:27, Jiancheng Xue a écrit : > From: Jiancheng Xue > > Add hisilicon spi-nor flash controller driver [...] > +enum hifmc_iftype { > + IF_TYPE_STD, > + IF_TYPE_DUAL, > + IF_TYPE_DIO, > + IF_TYPE_QUAD, > + IF_TYPE_QIO, > +}; Just for my own infor

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

2016-04-27 Thread Geert Uytterhoeven
On Wed, Apr 27, 2016 at 1:35 PM, Arnd Bergmann wrote: > 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

[PATCH 1.1/2] xfs: abstract PF_FSTRANS to PF_MEMALLOC_NOFS

2016-04-27 Thread Michal Hocko
From: Michal Hocko xfs has defined PF_FSTRANS to declare a scope GFP_NOFS semantic quite some time ago. We would like to make this concept more generic and use it for other filesystems as well. Let's start by giving the flag a more genric name PF_MEMALLOC_NOFS which is in line with an exiting PF_

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-04-27 Thread Grygorii Strashko
On 04/27/2016 08:41 AM, Felipe Balbi wrote: > > Hi, > > Grygorii Strashko writes: >> On 04/26/2016 09:17 AM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Grygorii Strashko writes: Now not all DMA paremters configured properly for "xhci-hcd" platform device which is created manually. For ex

Re: [PATCH 27/28] mm, page_alloc: Defer debugging checks of freed pages until a PCP drain

2016-04-27 Thread Vlastimil Babka
On 04/15/2016 11:07 AM, Mel Gorman wrote: Every page free checks a number of page fields for validity. This catches premature frees and corruptions but it is also expensive. This patch weakens the debugging check by checking PCP pages at the time they are drained from the PCP list. This will trig

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

2016-04-27 Thread Tomasz Nowicki
On 27.04.2016 04:26, 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 that _SEG method is optional, therefore

[PATCH 1/3] mm, page_alloc: un-inline the bad part of free_pages_check

2016-04-27 Thread Vlastimil Babka
!DEBUG_VM bloat-o-meter: add/remove: 1/0 grow/shrink: 0/2 up/down: 124/-383 (-259) function old new delta free_pages_check_bad - 124+124 free_pcppages_bulk 15091403-106 __free_pages_ok

[PATCH 2/3] mm, page_alloc: pull out side effects from free_pages_check

2016-04-27 Thread Vlastimil Babka
Check without side-effects should be easier to maintain. It also removes the duplicated cpupid and flags reset done in !DEBUG_VM variant of both free_pcp_prepare() and then bulkfree_pcp_prepare(). Finally, it enables the next patch. It shouldn't result in new branches, thanks to inlining of the ch

[PATCH 3/3] mm, page_alloc: don't duplicate code in free_pcp_prepare

2016-04-27 Thread Vlastimil Babka
The new free_pcp_prepare() function shares a lot of code with free_pages_prepare(), which makes this a maintenance risk when some future patch modifies only one of them. We should be able to achieve the same effect (skipping free_pages_check() from !DEBUG_VM configs) by adding a parameter to free_p

[PATCH] x86/locking/rwsem: Cleanup ____down_write()

2016-04-27 Thread Borislav Petkov
On Wed, Apr 20, 2016 at 03:29:30PM -0700, H. Peter Anvin wrote: > Since it is a fixed register we could just mark edx clobbered, but > with more flexible register constraints it can permit gcc to allocate > a temp resister for us. How about the following? It boots fine in kvm and the asm changes

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

2016-04-27 Thread Sergei Shtylyov
Hello. On 4/27/2016 11:29 AM, changbin...@intel.com wrote: 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 soft dissconnect. Call dissconnect here to workaround this issue. "Disconnect

[PATCH 1/1] mm: thp: kvm: fix memory corruption in KVM with THP enabled

2016-04-27 Thread Andrea Arcangeli
After the THP refcounting change, obtaining a compound pages from get_user_pages() no longer allows us to assume the entire compound page is immediately mappable from a secondary MMU. A secondary MMU doesn't want to call get_user_pages() more than once for each compound page, in order to know if i

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

2016-04-27 Thread Chaotian Jing
Hi, On Wed, 2016-04-27 at 12:02 +0200, Ulf Hansson wrote: > 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_

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-04-27 Thread xiakaixu
> + return rwb && rwb->wb_normal != 0; > +} > + > +/* > + * Increment 'v', if 'v' is below 'below'. Returns true if we succeeded, > + * false if 'v' + 1 would be bigger than 'below'. > + */ > +static bool atomic_inc_below(atomic_t *v, int below) > +{ > + int cur = atomic_read(v); > + > +

Re: [PATCH] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-04-27 Thread Marek Szyprowski
Hello, On 2016-04-23 11:33, Kefeng Wang wrote: The of_iommu_init() is called multiple times by arch code, make it postcore_initcall_sync, then we can drop relevant calls fully. Note, the IOMMUs should have a chance to perform some basic initialisation before we start adding masters to them. So

[PATCH] nvmem/mxs-ocotp: fix buffer overflow in read

2016-04-27 Thread Stanislav Meduna
This patch fixes the issue where the mxs_ocotp_read is reading the ocotp in reg_size steps but decrements the remaining size by 1. The number of iterations is thus four times higher, overwriting the area behind the output buffer. Fixes: c01e9a11ab6f ("nvmem: add driver for ocotp in i.MX23 and i.MX

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread David Woodhouse
> > On some systems, including Xen and any system with a physical device > > that speaks virtio behind a physical IOMMU, we must use the DMA API > > for virtio DMA to work at all. > >  > > Add a feature bit to detect that: VIRTIO_F_IOMMU_PLATFORM. > >  > > If not there, we preserve historic behavi

[PATCH 1/4] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set

2016-04-27 Thread Yongji Xie
The resource_alignment will releases memory resources allocated by firmware so that kernel can reassign new resources later on. But this will cause the problem that no resources can be allocated by kernel if PCI_PROBE_ONLY was set, e.g. on pSeries platform because PCI_PROBE_ONLY force kernel to use

[PATCH 3/4] PCI: Add a new option for resource_alignment to reassign alignment

2016-04-27 Thread Yongji Xie
When using resource_alignment kernel parameter, the current implement reassigns the alignment by changing resources' size which can potentially break some drivers. For example, the driver uses the size to locate some register whose length is related to the size. This patch adds a new option "nores

[PATCH 4/4] PCI: Add support for enforcing all MMIO BARs to be page aligned

2016-04-27 Thread Yongji Xie
When vfio passthrough a PCI device of which MMIO BARs are smaller than PAGE_SIZE, guest will not handle the mmio accesses to the BARs which leads to mmio emulations in host. This is because vfio will not allow to passthrough one BAR's mmio page which may be shared with other BARs. Otherwise, there

[PATCH 1/3] ARM: dts: exynos: Define vqmmc for SD card and allow disabling regulators on Odroid X/X2/U3

2016-04-27 Thread Krzysztof Kozlowski
The SD-card vmmc-supply contained incorrectly two regulators. The second one is ignored. Fix this by defining proper vmmc and vqmmc supplies. Additionally these regulators do not have to be always on, so allow disabling them to reduce energy consumption. Signed-off-by: Krzysztof Kozlowski --- ar

[PATCH 0/4] PCI: Add support for enforcing all MMIO BARs not to share PAGE_SIZE

2016-04-27 Thread Yongji Xie
This series aims to add an option for PCI resource allocator to force BARs not to share PAGE_SIZE. This would make sense to VFIO driver. Because current VFIO implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs which may share the same page with other BARs for security reasons.

[PATCH 2/3] ARM: dts: exynos: Define vqmmc for eMMC card on Odroid X/X2/U3

2016-04-27 Thread Krzysztof Kozlowski
The eMMC card vmmc-supply contained incorrectly two regulators: LDO20 and buck8. The second one is ignored. Additionally the buck8 is not supplying the eMMC host but LAN (SMSC95xx). Instead the LDO22 should be used. Fix this by defining proper vmmc and vqmmc supplies. Signed-off-by: Krzysztof Ko

[PATCH 2/4] PCI: Do not Use IORESOURCE_STARTALIGN to identify bridge resources

2016-04-27 Thread Yongji Xie
Now we use the IORESOURCE_STARTALIGN to identify bridge resources in __assign_resources_sorted(). That's quite fragile. We can't make sure that the PCI devices' resources will not use IORESOURCE_STARTALIGN any more. In this patch, we try to use a more robust way to identify bridge resources. Sign

[PATCH 3/3] ARM: dts: exynos: Lower SD card interface voltage to 2.8v on Odroid X/X2/U3

2016-04-27 Thread Krzysztof Kozlowski
Odroid X/X2/U3 schematics say that SD card vmmc regulator (LDO21/TFLASH) operates on 2.8 V. Mainline U-Boot uses that value as well. 2.8 V is common on Exynos-based boards. Additionally use some descriptive name for this regulator. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4

Re: [PATCH] kdump: Fix gdb macros work work with newer and 64-bit kernels

2016-04-27 Thread Corey Minyard
Any comments on this? If no one else cares I'd be willing to take over maintenance of this. -corey On 02/25/2016 07:51 AM, miny...@acm.org wrote: From: Corey Minyard Lots of little changes needed to be made to clean these up, remove the four byte pointer assumption and traverse the pid queue

[PATCH] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-04-27 Thread Yongji Xie
Current vfio-pci implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs because these BARs' mmio page may be shared with other BARs. This will cause some performance issues when we passthrough a PCI device with this kind of BARs. Guest will be not able to handle the mmio accesses to

[PATCH] f2fs: fix to return 0 if err == -ENOENT in f2fs_readdir

2016-04-27 Thread Yunlong Song
Commit 57b62d29ad5b384775974973087d47755a8c6fcc ("f2fs: fix to report error in f2fs_readdir") causes f2fs_readdir to return -ENOENT when get_lock_data_page returns -ENOENT. However, the original logic is to continue when get_lock_data_page returns -ENOENT, but it forgets to reset err to 0. This wi

[PATCH 3/4] mm, page_alloc: move might_sleep_if check to the allocator slowpath -revert

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that a patch weakens a zone_reclaim test which while "safe" defeats the purposes of the debugging check. As most configurations eliminate this check anyway, I thought it was better to simply revert the patch instead of adding a second check in zone_reclaim. This is a re

STRICTLY CONFIDENTIAL

2016-04-27 Thread Acct. Dept. Bank Of China
I have important transaction for you as next of kin to claim US$8.37m email me at zhu.shu...@yahoo.com.hk so i can send you more details Thanks Mr.Zhu Shumin (Code xxxdi)

[PATCH 1/4] mm, page_alloc: Only check PageCompound for high-order pages -fix

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that an unlikely annotation in free_pages_prepare shrinks stack usage by moving compound handling to the end of the function. add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-30 (-30) function old new delta free_pages_prepare

Re: [PATCH] nvmem/mxs-ocotp: fix buffer overflow in read

2016-04-27 Thread Stefan Wahren
Hi Stano, [add Srinivas and Maxime to CC] Am 27.04.2016 um 13:53 schrieb Stanislav Meduna: > This patch fixes the issue where the mxs_ocotp_read is reading > the ocotp in reg_size steps but decrements the remaining size > by 1. The number of iterations is thus four times higher, > overwriting the

4.6.0-rc3+: WARNING: CPU: 16 PID: 17257 at fs/btrfs/inode.c:9261 btrfs_destroy_inode

2016-04-27 Thread Christian Borntraeger
Folks, I can sometimes trigger the following bug [ 244.493534] [ cut here ] [ 244.493624] WARNING: CPU: 16 PID: 17257 at fs/btrfs/inode.c:9261 btrfs_destroy_inode+0x288/0x2b0 [btrfs] [ 244.493626] Kernel panic - not syncing: panic_on_warn set ... [ 244.493629] CPU: 1

[PATCH 2/4] mm, page_alloc: inline the fast path of the zonelist iterator -fix

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that the nodes allowed by a cpuset are not reread if the nodemask changes during an allocation. This potentially allows an unnecessary page allocation failure. Moving the retry_cpuset label is insufficient but rereading the nodemask before retrying addresses the problem.

[PATCH 4/4] mm, page_alloc: Check once if a zone has isolated pageblocks -fix

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that the original code was protected by the zone lock and provided a fix. This is a fix to the mmotm patch mm-page_alloc-check-once-if-a-zone-has-isolated-pageblocks.patch . Once applied the following line should be removed from the changelog "Technically this is race-p

[PATCH 0/4] Optimise page alloc/free fast paths followup v1

2016-04-27 Thread Mel Gorman
This is a follow-up series based on Vlastimil Babka's review feedback. It should be taking into account the changes in mmotm already made although that did involve some guesswork. It should be relatively easy to merge into the correct places. However, if there are major conflicts then let me know a

[PATCH] ACPI: fix Thunderbolt hotplug

2016-04-27 Thread Prarit Bhargava
Rafael, this patch is in the acpica.git tree as 7a3bd2d ("Dispatcher: Update thread ID for recursive method calls"). I've had many positive testing results from hardware vendors and users with this patch and this resolves many of the problems seen here: https://bugzilla.kernel.org/show_bug.cgi?id

Re: [PATCH net-next 9/9] taskstats: use the libnl API to align nlattr on 64-bit

2016-04-27 Thread Balbir Singh
On 27/04/16 17:29, Nicolas Dichtel wrote: > Le 27/04/2016 03:14, Balbir Singh a écrit : >> >> >> On 23/04/16 01:31, Nicolas Dichtel wrote: >>> Goal of this patch is to use the new libnl API to align netlink attribute >>> when needed. >>> The layout of the netlink message will be a bit different a

Re: [PATCH 2/4] mm, page_alloc: inline the fast path of the zonelist iterator -fix

2016-04-27 Thread Mel Gorman
On Wed, Apr 27, 2016 at 01:24:43PM +0100, Mel Gorman wrote: > Vlastimil Babka pointed out that the nodes allowed by a cpuset are not > reread if the nodemask changes during an allocation. This potentially > allows an unnecessary page allocation failure. Moving the retry_cpuset > label is insufficie

Re: Confusing olddefault prompt for Z3FOLD

2016-04-27 Thread Michal Hocko
On Tue 26-04-16 12:08:30, Valdis Kletnieks wrote: > Saw this duplicate prompt text in today's linux-next in a 'make oldconfig': > > Low density storage for compressed pages (ZBUD) [Y/n/m/?] y > Low density storage for compressed pages (Z3FOLD) [N/m/y/?] (NEW) ? > > I had to read the help texts fo

Re: [PATCH v2 4/5] ARM: dts: omap5: describe control for ckobuffer

2016-04-27 Thread Tero Kristo
On 27/04/16 09:04, H. Nikolaus Schaller wrote: Am 26.04.2016 um 19:27 schrieb Tony Lindgren : Tero, * H. Nikolaus Schaller [160418 11:23]: OMAP5 has a register to control if the ckobuffer is enabled and defines the polarity. ckobuffer is required to drive a twl6040 with the system clock. He

Re: [RFC 1/4] perf kvm: Enable 'record' on powerpc

2016-04-27 Thread Ravi Bangoria
Hi Arnaldo, I've worked on your patch. I'm sending this patch(diff) to check if this is the same idea you want to progress with. I cleanup your patch, removed arch specific compile time directives and changed code to enable cross arch reporting. I tested record on powerpc and report on x86 and it

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

2016-04-27 Thread Ulf Hansson
[...] >> > Actually, this is a Bug of __mmc_switch(), Per JEDEC Spec, while switch >> > speed mode, should not use CMD13 to get card status, as it's response >> > cannot reflect that if card was busy now, for this CMD6 switch HS200 >> >> There is a statement applicable to all HS modes, which says

Re: [PATCH v6 04/10] regulator: fixed: add support for ACPI interface

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 09:54:10AM +0800, Lu Baolu wrote: > Please refer to Documentation/acpi/gpio-properties.txt. That's not visibly what your driver is doing, that is also recommending using a static name which is what I'm asking for. > > Why does the device care?It's requesting the GPIO in >

Re: [PATCH] ACPI: fix Thunderbolt hotplug

2016-04-27 Thread Rafael J. Wysocki
On Wed, Apr 27, 2016 at 2:26 PM, Prarit Bhargava wrote: > Rafael, this patch is in the acpica.git tree as 7a3bd2d ("Dispatcher: Update > thread ID for recursive method calls"). I've had many positive testing > results from hardware vendors and users with this patch and this resolves > many of the

Re: [PATCH 1/3] mm, page_alloc: un-inline the bad part of free_pages_check

2016-04-27 Thread Mel Gorman
On Wed, Apr 27, 2016 at 02:01:14PM +0200, Vlastimil Babka wrote: > !DEBUG_VM bloat-o-meter: > > add/remove: 1/0 grow/shrink: 0/2 up/down: 124/-383 (-259) > function old new delta > free_pages_check_bad - 124+124 > free_pcp

[PATCH] mcb: Implement bus->dev.release callback

2016-04-27 Thread Johannes Thumshirn
The mcb_bus structure previously was released in mcb_release_bus. This lead to the following warning on module unload: [ cut here ] WARNING: CPU: 1 PID: 2032 at drivers/base/core.c:251 device_release+0x73/0x90 Device 'mcb:0' does not have a release() function, it is broken

Re: linux-next: manual merge of the staging tree with the staging.current tree

2016-04-27 Thread Jonathan Cameron
On 27 April 2016 05:54:00 BST, Stephen Rothwell wrote: >Hi Greg, > >Today's linux-next merge of the staging tree got a conflict in: > > drivers/iio/magnetometer/ak8975.c > >between commit: > > 05be8d4101d9 ("iio: ak8975: fix maybe-uninitialized warning") > >from the staging.current tree and co

[PATCH v2] nvmem/mxs-ocotp: fix buffer overflow in read

2016-04-27 Thread Stanislav Meduna
This patch fixes the issue where the mxs_ocotp_read is reading the ocotp in reg_size steps but decrements the remaining size by 1. The number of iterations is thus four times higher, overwriting the area behind the output buffer. Fixes: c01e9a11ab6f ("nvmem: add driver for ocotp in i.MX23 and i.MX

Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-04-27 Thread Lars-Peter Clausen
On 04/27/2016 09:33 AM, Appana Durga Kedareswara Rao wrote: > Hi Lars, > >> -Original Message- >> From: Lars-Peter Clausen [mailto:l...@metafoo.de] >> Sent: Wednesday, April 27, 2016 12:42 PM >> To: Appana Durga Kedareswara Rao ; >> robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.

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

2016-04-27 Thread Florian Zumbiehl
Hi, > 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 Gee ... is there any way without "creating an account"? Having to create accounts

Re: [PATCH 2/3] mm, page_alloc: pull out side effects from free_pages_check

2016-04-27 Thread Mel Gorman
On Wed, Apr 27, 2016 at 02:01:15PM +0200, Vlastimil Babka wrote: > Check without side-effects should be easier to maintain. It also removes the > duplicated cpupid and flags reset done in !DEBUG_VM variant of both > free_pcp_prepare() and then bulkfree_pcp_prepare(). Finally, it enables > the next

Re: [PATCH 3/6] intel_sgx: driver for Intel Secure Guard eXtensions

2016-04-27 Thread Jarkko Sakkinen
On Tue, Apr 26, 2016 at 11:49:38PM -0700, Jethro Beekman wrote: > On 25-04-16 10:34, Jarkko Sakkinen wrote: > > diff --git a/drivers/staging/intel_sgx/isgx_ioctl.c > b/drivers/staging/intel_sgx/isgx_ioctl.c > > new file mode 100644 > > index 000..9d8b36b > > --- /dev/null > > +++ b/drivers/stag

Re: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-27 Thread Pavel Machek
Hi! > This RFC patch series provides support for AMD's new Secure Memory > Encryption (SME) feature. > > SME can be used to mark individual pages of memory as encrypted through the > page tables. A page of memory that is marked encrypted will be automatically > decrypted when read from DRAM and w

Re: [RFC PATCH v1 02/18] x86: Secure Memory Encryption (SME) build enablement

2016-04-27 Thread Pavel Machek
On Tue 2016-04-26 17:56:14, Tom Lendacky wrote: > Provide the Kconfig support to build the SME support in the kernel. Probably should go last in the series? > Signed-off-by: Tom Lendacky > --- > arch/x86/Kconfig |9 + > 1 file changed, 9 insertions(+) > > diff --git a/arch/x86/Kco

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

2016-04-27 Thread Sudeep Holla
On 27/04/16 12:47, Viresh Kumar wrote: On 27-04-16, 12:40, Sudeep Holla wrote: 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 no

Re: [RFC PATCH v1 03/18] x86: Secure Memory Encryption (SME) support

2016-04-27 Thread Pavel Machek
On Tue 2016-04-26 17:56:26, Tom Lendacky wrote: > Provide support for Secure Memory Encryption (SME). This initial support > defines the memory encryption mask as a variable for quick access and an > accessor for retrieving the number of physical addressing bits lost if > SME is enabled. > > Signe

Re: [4.4, 4.5, 4.6] Regression: encrypted swap (dm-crypt) freezes system while under memory pressure and swapping

2016-04-27 Thread Matthias Dahl
Hello @all, since I haven't seen any replies to this so far, is there anything else I can do to help track this bug down? I have posted the original message to both the lkml as well as dm-devel lists, by the way, without much luck. ;-) Thanks in advance -- and sorry for kind of re-posting the is

<    1   2   3   4   5   6   7   8   9   10   >