Re: [PATCH 6/6] intel_sgx: TODO file for the staging area

2016-04-27 Thread Jethro Beekman
On 26-04-16 04:23, Jarkko Sakkinen wrote: > In order to write test code I would need to use the SDK at minimum to > generate EINITTOKEN for the test enclave. You could do this right now with the Rust tools for SGX [1] [1] https://github.com/jethrogb/sgx-utils/ > /Jarkko Jethro

linux-next: Tree for Apr 27

2016-04-27 Thread Stephen Rothwell
Hi all, WARNING: I stuffed up when pushing this release out but have reuploaded it ... sorry about that. Changes since 20160426: Removed tree: kbuild-pitre (commits were picked up in the kbuild tree) The arm-soc tree lost its build failure. The net-next tree gained conflicts against the net tr

[PATCH v7 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

2016-04-27 Thread Kedareswara rao Appana
Added the driver for zynqmp dma engine used in Zynq UltraScale+ MPSoC. This dma controller supports memory to memory and memory to I/O buffer transfers. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changes for v7: - Fixed kbuild compilation warnings. - Fixed

[PATCH] ARM: BCM5301X: Enable SPI-NOR on dual flash devices

2016-04-27 Thread Rafał Miłecki
Commit 1b47b98acce2 ("ARM: BCM5301X: Add DT entry for SPI controller and NOR flash") enabled SPI-NOR device on routers using serial flash only. However there are also devices with two flash memories: 1) Small SPI attached flash used mostly for booting 2) Bigger NAND used mostly for storing firmware

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

2016-04-27 Thread Kedareswara rao Appana
Device-tree binding documentation for Xilinx zynqmp dma engine used in Zynq UltraScale+ MPSoC. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changes in v7: - None. Changes in v6: - Removed desc-axi-cache/dst-axi-cache/src-axi-cache properties from the bindi

[PATCH] ASoC: atmel_ssc_dai: read DSP mode A data on rising edges of bclk

2016-04-27 Thread Peter Rosin
Signed-off-by: Peter Rosin --- sound/soc/atmel/atmel_ssc_dai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 6dca95aa8a82..4ab1e2013238 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/at

[PATCH] media: tuner: mt2063: use lib gcd

2016-04-27 Thread zengzhaoxiu
From: Zhaoxiu Zeng This patch removes the local MT2063_gcd function, uses lib gcd instead Signed-off-by: Zhaoxiu Zeng --- drivers/media/tuners/mt2063.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/media/tuners/mt2063.c b/drivers/me

[patch] sched: Fix smp nice induced group scheduling load distribution woes

2016-04-27 Thread Mike Galbraith
On Mon, 2016-04-25 at 11:18 +0200, Mike Galbraith wrote: > On Sun, 2016-04-24 at 09:05 +0200, Mike Galbraith wrote: > > On Sat, 2016-04-23 at 18:38 -0700, Brendan Gregg wrote: > > > > > The bugs they found seem real, and their analysis is great > > > (although > > > using visualizations to find an

Re: linux-next: Tree for Apr 27

2016-04-27 Thread Stephen Rothwell
Hi all, On Wed, 27 Apr 2016 17:03:54 +1000 Stephen Rothwell wrote: > > WARNING: I stuffed up when pushing this release out but have reuploaded > it ... sorry about that. Just to be clear the correct SHA1s for the master branch and the next-20160427 tag are 29fab3a5a2a1 and 7a1

Re: [PATCH] fs: fix over-zealous use of "const"

2016-04-27 Thread James Morris
On Thu, 21 Apr 2016, Kees Cook wrote: > When I was fixing up const recommendations from checkpatch.pl, I went > overboard. This fixes the warning (during a W=1 build): > > include/linux/fs.h:2627:74: warning: type qualifiers ignored on function > return type [-Wignored-qualifiers] > static inlin

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:05 AM, Kedareswara rao Appana wrote: [...] > +- xlnx,include-sg: Indicates the controller to operate in simple or > + scatter gather dma mode > +- xlnx,ratectrl : Scheduling interval in terms of clock cycles > for > + so

Re: [PATCH] ARM: dts: at91: VInCo: fix phy reset gpio flag

2016-04-27 Thread Nicolas Ferre
Le 26/04/2016 20:27, Sergei Shtylyov a écrit : > On 04/26/2016 08:17 PM, David Miller wrote: > >>> I plan to queue this patch through arm-soc for 4.7. >> >> Ok. > > How about this patch going thru your net-next repo instead? > I'd like to keep the kernel bisectable... if my phylib/macb patche

Re: [RESEND PATCH v2 5/7] usb: xhci: plat: Remove checks for optional clock in error/remove path

2016-04-27 Thread Felipe Balbi
Hi, Jisheng Zhang writes: > Dear Felipe, > > On Wed, 27 Apr 2016 08:33:52 +0300 Felipe Balbi wrote: > >> Jisheng Zhang writes: >> > Commit 63589e92c2d9 ("clk: Ignore error and NULL pointers passed to >> > clk_{unprepare, disable}()") allows NULL or error pointer to be passed >> > unconditionall

Re: [PATCH v4 17/21] capabilities: Allow privileged user in s_user_ns to set security.* xattrs

2016-04-27 Thread James Morris
On Tue, 26 Apr 2016, Seth Forshee wrote: > A privileged user in s_user_ns will generally have the ability to > manipulate the backing store and insert security.* xattrs into > the filesystem directly. Therefore the kernel must be prepared to > handle these xattrs from unprivileged mounts, and it m

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

2016-04-27 Thread Felipe Balbi
Hi, Jisheng Zhang writes: >> > +static void xhci_plat_phy_exit(struct usb_hcd *hcd) >> > +{ >> > + if (hcd->phy) { >> > + phy_power_off(hcd->phy); >> > + phy_exit(hcd->phy); >> > + } else { >> > + usb_phy_shutdown(hcd->usb_phy); >> > + } >> > +} >> > + >> > static

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

2016-04-27 Thread Shawn Guo
On Wed, Apr 27, 2016 at 10:57:21AM +0800, 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

Re: zram: per-cpu compression streams

2016-04-27 Thread Minchan Kim
Hello Sergey, On Tue, Apr 26, 2016 at 08:23:05PM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (04/19/16 17:00), Minchan Kim wrote: > [..] > > I'm convinced now with your data. Super thanks! > > However, as you know, we need data how bad it is in heavy memory pressure. > > Maybe, you c

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

2016-04-27 Thread Nicolas Dichtel
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 after the patch, >> because the padattr (TASKSTATS_

Re: linux-next: Tree for Apr 27

2016-04-27 Thread Sergey Senozhatsky
Hello, commit 2f7600bc981cb0fd7ea0b92618bae32dcc778317 Author: Thierry Reding Date: Tue Apr 5 17:17:34 2016 +0200 phy: core: Allow children node to be overridden In order to more flexibly support device tree bindings, allow drivers to override the container of the child nodes.

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 - LTP results

2016-04-27 Thread Andrew Pinski
On Fri, Apr 22, 2016 at 8:37 PM, Zhangjian (Bamvor) wrote: > Hi, Yury > > > On 2016/4/6 6:44, Yury Norov wrote: >> >> There are about 20 failing tests of 782 in lite scenario. >> float_bessel >> float_exp_log >> float_iperb >> float_power >> float_trigo >> pipeio_1 >> pipeio_3 >> pipeio_5 >> pipei

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

2016-04-27 Thread Stefan Agner
On 2016-04-27 00:24, Shawn Guo wrote: > On Wed, Apr 27, 2016 at 10:57:21AM +0800, 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

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

2016-04-27 Thread Stefan Agner
On 2016-04-26 19:56, Fabio Estevam wrote: > On Tue, Apr 26, 2016 at 11:45 PM, Dong Aisheng wrote: > >>> We need to firstly understand why this is happening. The .prepare hook >>> is defined to be non-atomic context, and so that we call sleep function >>> in there. We did everything right. Why

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-04-27 Thread Pavel Machek
Hi! > > > Preventing cold boot attacks is really just icing on the cake. The > > > real point of this is to allow you to run an "enclave". An SGX > > > enclave has unencrypted code but gets access to a key that only it can > > > access. It could use that key to unwrap your ssh private key and s

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

2016-04-27 Thread Appana Durga Kedareswara Rao
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.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; Michal Si

Re: [lkp] [mm, oom] faad2185f4: vm-scalability.throughput -11.8% regression

2016-04-27 Thread Michal Hocko
On Wed 27-04-16 11:15:56, kernel test robot wrote: > FYI, we noticed vm-scalability.throughput -11.8% regression with the > following commit: Could you be more specific what the test does please? -- Michal Hocko SUSE Labs

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

2016-04-27 Thread Stefan Agner
On 2016-04-26 19:57, 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. >> >> We

Re: zram: per-cpu compression streams

2016-04-27 Thread Sergey Senozhatsky
Hello, On (04/27/16 16:29), Minchan Kim wrote: [..] > > the test: > > > > -- 4 GB x86_64 box > > -- zram 3GB, lzo > > -- mem-hogger pre-faults 3GB of pages before the fio test > > -- fio test has been modified to have 11% compression ratio (to increase the > >

[PATCH v4 05/12] zsmalloc: use bit_spin_lock

2016-04-27 Thread Minchan Kim
Use kernel standard bit spin-lock instead of custom mess. Even, it has a bug which doesn't disable preemption. The reason we don't have any problem is that we have used it during preemption disable section by class->lock spinlock. So no need to go to stable. Cc: Sergey Senozhatsky Signed-off-by:

[PATCH v4 01/12] mm: use put_page to free page instead of putback_lru_page

2016-04-27 Thread Minchan Kim
Procedure of page migration is as follows: First of all, it should isolate a page from LRU and try to migrate the page. If it is successful, it releases the page for freeing. Otherwise, it should put the page back to LRU list. For LRU pages, we have used putback_lru_page for both freeing and putb

[PATCH v4 02/12] mm: migrate: support non-lru movable page migration

2016-04-27 Thread Minchan Kim
We have allowed migration for only LRU pages until now and it was enough to make high-order pages. But recently, embedded system(e.g., webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory) so we have seen several reports about troubles of small high-order allocation. For fixing the

Re: [PATCH] i2c: designware: do not disable adapter after transfer

2016-04-27 Thread Jarkko Nikula
On 04/25/2016 06:04 PM, Lucas De Marchi wrote: On 04/25/2016 08:51 AM, Jarkko Nikula wrote: [ ... ] @@ -413,8 +416,16 @@ static void i2c_dw_xfer_init(struct dw_i2c_dev *dev) struct i2c_msg *msgs = dev->msgs; u32 ic_con, ic_tar = 0; -/* Disable the adapter */ -__i2c_dw_en

[PATCH v4 09/12] zsmalloc: separate free_zspage from putback_zspage

2016-04-27 Thread Minchan Kim
Currently, putback_zspage does free zspage under class->lock if fullness become ZS_EMPTY but it makes trouble to implement locking scheme for new zspage migration. So, this patch is to separate free_zspage from putback_zspage and free zspage out of class->lock which is preparation for zspage migrat

[PATCH v4 12/12] zram: use __GFP_MOVABLE for memory allocation

2016-04-27 Thread Minchan Kim
Zsmalloc is ready for page migration so zram can use __GFP_MOVABLE from now on. I did test to see how it helps to make higher order pages. Test scenario is as follows. KVM guest, 1G memory, ext4 formated zram block device, for i in `seq 1 8`; do dd if=/dev/vda1 of=mnt/test$i.txt bs=128M

[PATCH v4 07/12] zsmalloc: factor page chain functionality out

2016-04-27 Thread Minchan Kim
For page migration, we need to create page chain of zspage dynamically so this patch factors it out from alloc_zspage. Cc: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 59 +++ 1 file changed, 35 insertions(+), 24 delet

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

2016-04-27 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Apr 26, 2016 at 11:52 PM, Arnd Bergmann wrote: > The rtc-generic driver provides an architecture specific > wrapper on top of the generic rtc_class_ops abstraction, > and m68k has another abstraction on top, which is a bit > silly. > > This changes the m68k rtc-generic device to

[PATCH v4 11/12] zsmalloc: page migration support

2016-04-27 Thread Minchan Kim
This patch introduces run-time migration feature for zspage. For migration, VM uses page.lru field so it would be better to not use page.next field for own purpose. For that, firstly, we can get first object offset of the page via runtime calculation instead of page->index so we can use page->inde

[PATCH v4 10/12] zsmalloc: use freeobj for index

2016-04-27 Thread Minchan Kim
Zsmalloc stores first free object's position into freeobj in each zspage. If we change it with index from first_page instead of position, it makes page migration simple because we don't need to correct other entries for linked list if a page is migrated out. Cc: Sergey Senozhatsky Signed-off-by:

[PATCH v4 04/12] zsmalloc: keep max_object in size_class

2016-04-27 Thread Minchan Kim
Every zspage in a size_class has same number of max objects so we could move it to a size_class. Reviewed-by: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/mm/zsmalloc.c b/mm

[PATCH v4 03/12] mm: balloon: use general non-lru movable page feature

2016-04-27 Thread Minchan Kim
Now, VM has a feature to migrate non-lru movable pages so balloon doesn't need custom migration hooks in migrate.c and compaction.c. Instead, this patch implements page->mapping->a_ops->{isolate|migrate|putback} functions. With that, we could remove hooks for ballooning in general migration functi

[PATCH v4 06/12] zsmalloc: use accessor

2016-04-27 Thread Minchan Kim
Upcoming patch will change how to encode zspage meta so for easy review, this patch wraps code to access metadata as accessor. Cc: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 82 +++ 1 file changed, 60 insertions(+),

[PATCH v4 08/12] zsmalloc: introduce zspage structure

2016-04-27 Thread Minchan Kim
We have squeezed meta data of zspage into first page's descriptor. So, to get meta data from subpage, we should get first page first of all. But it makes trouble to implment page migration feature of zsmalloc because any place where to get first page from subpage can be raced with first page migrat

[PATCH v4 00/13] Support non-lru page migration

2016-04-27 Thread Minchan Kim
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and easy fork fail. The problem was fragmentation caused by zram and GPU driver mainly. With memory pressure, their pages were spread out all of pageblock and it cannot be migrat

Re: [PATCH v2 0/6] simplify rtc-generic driver

2016-04-27 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Apr 26, 2016 at 11:52 PM, Arnd Bergmann wrote: > This is a resend of an earlier series, to clean up the rtc-generic > driver by avoiding the dependency on the architecture specific > include/asm/rtc.h header that after this series is only used > for the deprecated "genrtc" driver

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

2016-04-27 Thread Michal Hocko
On Wed 27-04-16 09:07:02, Dave Chinner wrote: > On Tue, Apr 26, 2016 at 01:56:11PM +0200, Michal Hocko wrote: > > 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 wo

Re: [PATCH 3/3] mtd: brcmnand: respect ECC algorithm set by NAND subsystem

2016-04-27 Thread Boris Brezillon
On Mon, 25 Apr 2016 22:53:55 -0700 Brian Norris wrote: > From: Brian Norris > Date: Mon, 25 Apr 2016 20:48:02 -0700 > Subject: [PATCH] mtd: brcmnand: respect ECC algorithm set by the NAND > subsystem > > This is more obvious than guessing based on ECC strength. It allows > using NAND on device

Re: char: legacy RTC cleanups

2016-04-27 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Apr 26, 2016 at 11:44 PM, Arnd Bergmann wrote: > For the genrtc driver, rearranging the headers makes it simpler > to use and reduces duplication. In case of alpha and mn10300, > I've shown that the genrtc and rtc drivers are doing the same > thing, so we don't need them both. Th

Re: [PATCH V2] mtd: nand: fix NULL pointer dereference in of_get_nand_ecc_algo

2016-04-27 Thread Boris Brezillon
On Tue, 26 Apr 2016 23:16:47 +0200 Rafał Miłecki wrote: > Our array nand_ecc_algos doesn't specify mappings for all available > enum nand_ecc_algo values. The one missing there is NAND_ECC_UNKNOWN > as this value is reserved for algorithm not being specified at all. > It means we have to be caref

Re: zram: per-cpu compression streams

2016-04-27 Thread Minchan Kim
On Wed, Apr 27, 2016 at 04:43:35PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (04/27/16 16:29), Minchan Kim wrote: > [..] > > > the test: > > > > > > -- 4 GB x86_64 box > > > -- zram 3GB, lzo > > > -- mem-hogger pre-faults 3GB of pages before the fio test > > > -- fio test has been modified

[PATCH v4 4/4] ARM64: dts: rockchip: add dts file for RK3399 evaluation board

2016-04-27 Thread Jianqun Xu
This patch add rk3399-evb.dts for RK3399 evaluation board. Tested on RK3399 evb. Signed-off-by: Jianqun Xu --- changes in v4: - add google,rk3399evb-rev2 compatible (Doug, Heiko) changes in v3: - add more compatible (Doug) - add modle arch/arm64/boot/dts/rockchip/Makefile | 1 + arch/a

[PATCH v4 1/4] Documentation: rockchip-dw-mshc: add description for rk3399

2016-04-27 Thread Jianqun Xu
From: Shawn Lin Add "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc" for dwmmc on rk3399 platform. Acked-by: Rob Herring Signed-off-by: Shawn Lin Signed-off-by: Jianqun Xu --- Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/D

[PATCH v4 2/4] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs

2016-04-27 Thread Jianqun Xu
This patch adds core dtsi file for Rockchip RK3399 SoCs. The RK3399 has big/little architecture, which needs a separate node for the PMU of each microarchitecture, for now it missing the pmu node since the old one could not work well. Marc is working on it with: https://lkml.org/lkml/2016/4/11/18

[PATCH v4 3/4] Documentation: devicetree: rockchip: Document rk3399-evb

2016-04-27 Thread Jianqun Xu
Use "rockchip,rk3399-evb" compatible string for Rockchip RK3399 evaluation board. Acked-by: Rob Herring Signed-off-by: Jianqun Xu --- changes in v4: - none changes in v3: - modify title (Rob) Documentation/devicetree/bindings/arm/rockchip.txt | 6 +- 1 file changed, 5 insertions(+), 1 del

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

2016-04-27 Thread Heikki Krogerus
Hi, 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; > > + hcd->phy = devm_phy_get(&pdev->dev,

[PATCH v4 0/4] ARM64: dts: rockchip: add support for RK3399

2016-04-27 Thread Jianqun Xu
Add dtsi file for RK3399 SoCs, and evb dts file for RK3399 evb. To make patch more easily to be reviewed, some nodes have been removed temporarily, after this base file been applied, more patches will be upstreamed independently. Jianqun Xu (3): ARM64: dts: rockchip: add core dtsi file for RK33

Re: [PATCH V2 1/2] devicetree/bindings: Add binding for operator panel on FSP machines

2016-04-27 Thread Suraj Jitindar Singh
On 27/04/16 15:03, Stewart Smith wrote: > Suraj Jitindar Singh writes: >> Add a binding to Documentation/devicetree/bindings/powerpc/opal >> (oppanel-opal.txt) for the operator panel which is present on IBM >> pseries machines with FSPs. > It's not pseries (as that implies PowerVM / PAPR) - while

Re: [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared

2016-04-27 Thread Ingo Molnar
* Andrew Morton wrote: > On Tue, 26 Apr 2016 23:14:35 +0900 Sergey Senozhatsky > wrote: > > > Hello, > > > > v4.6-rc5-mmots-2016-04-25-17-33 > > > > > > In file included from include/linux/hugetlb.h:418:0, > > from fs/hugetlbfs/inode.c:28: > > fs/hugetlbfs/inode.c: In func

Re: [PATCH 2/2] mm, debug: report when GFP_NO{FS,IO} is used explicitly from memalloc_no{fs,io}_{save,restore} context

2016-04-27 Thread Michal Hocko
On Wed 27-04-16 08:58:45, Dave Chinner wrote: > On Tue, Apr 26, 2016 at 01:56:12PM +0200, Michal Hocko wrote: > > From: Michal Hocko > > > > THIS PATCH IS FOR TESTING ONLY AND NOT MEANT TO HIT LINUS TREE > > > > It is desirable to reduce the direct GFP_NO{FS,IO} usage at minimum and > > prefer s

Re: Double-Fetch bug in Linux-4.5/drivers/scsi/aacraid/commctrl.c

2016-04-27 Thread Dan Carpenter
On Wed, Apr 27, 2016 at 07:42:04AM +0200, Julia Lawall wrote: > > > On Tue, 26 Apr 2016, Kees Cook wrote: > > > On Mon, Apr 25, 2016 at 7:50 AM, Pengfei Wang > > wrote: > > > Hello, > > > > > > I found this Double-Fetch bug in Linux-4.5/drivers/scsi/aacraid/commctrl.c > > > when I was examinin

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

2016-04-27 Thread Ingo Molnar
* Adam Borowski wrote: > filter_events() relies on the value of 0 to remove events that are not > applicable, like this one. > > 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/events/amd/core.

Re: [PATCH] ARM: dts: at91: sama5d2: add slow clock to watchdog node

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 15:11:47 +0200, Nicolas Ferre wrote : > As the watchdog timer needs the slow clock, add it to the currently defined > wdt node. > > Reported-by: Alexandre Belloni > Signed-off-by: Nicolas Ferre Acked-by: Alexandre Belloni > --- > arch/arm/boot/dts/sama5d2.dtsi | 1 + > 1 file

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

2016-04-27 Thread Vinod Koul
On Wed, Apr 27, 2016 at 12:13:17PM +0530, Viresh Kumar wrote: > On 25-04-16, 15:35, Andy Shevchenko wrote: > > There are several changes are done here: > > > > - Convert the property to be in bytes > > > > Besides this is common practice for such property the use of a value in > > bytes > > much

Re: Double-Fetch bug in Linux-4.5/drivers/scsi/aacraid/commctrl.c

2016-04-27 Thread Julia Lawall
On Wed, 27 Apr 2016, Dan Carpenter wrote: > On Wed, Apr 27, 2016 at 07:42:04AM +0200, Julia Lawall wrote: > > > > > > On Tue, 26 Apr 2016, Kees Cook wrote: > > > > > On Mon, Apr 25, 2016 at 7:50 AM, Pengfei Wang > > > wrote: > > > > Hello, > > > > > > > > I found this Double-Fetch bug in > >

Re: [PATCH] ARM: at91/defconfig: add the HDMA controller to sama5_defconfig

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 15:47:11 +0200, Nicolas Ferre wrote : > Selection of the HDMAC option is now needed to allow some sama5 devices > to have the DMA driver compiled. > > Signed-off-by: Nicolas Ferre Acked-by: Alexandre Belloni > --- > arch/arm/configs/sama5_defconfig | 1 + > 1 file changed, 1 i

[patch V2] lib: GCD: add binary GCD algorithm

2016-04-27 Thread zengzhaoxiu
From: Zhaoxiu Zeng Because some architectures (alpha, armv6, etc.) don't provide hardware division, the mod operation is slow! Binary GCD algorithm uses simple arithmetic operations, it replaces division with arithmetic shifts, comparisons, and subtraction. I have compiled successfully with x86

Re: [PATCH] ARM: at91/defconfig: add HLCDC driver to sama5_defconfig

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 17:01:27 +0200, Nicolas Ferre wrote : > Add the LCD DRM driver with all its dependencies: > - the MFD driver > - the backlight PWM > - the simple panel driver > > Remove the CONFIG_FB as it is not needed on any sama5 device. > > Signed-off-by: Nicolas Ferre Acked-by: Alexandre B

[patch] pinctrl: baytrail: fix some error handling in debugfs

2016-04-27 Thread Dan Carpenter
We need to unlock before continuing. Also the continue was accidentally left out on one error path which would lead to a NULL dereference. Fixes: 86e3ef812fe3 ('pinctrl: baytrail: Update gpio chip operations') Signed-off-by: Dan Carpenter diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b

Re: zram: per-cpu compression streams

2016-04-27 Thread Sergey Senozhatsky
On (04/27/16 16:55), Minchan Kim wrote: [..] > > > Could you test concurrent mem hogger with fio rather than pre-fault > > > before fio test > > > in next submit? > > > > this test will not prove anything, unfortunately. I performed it; > > and it's impossible to guarantee even remotely stable re

Re: [PATCH 1/1] simplified security.nscapability xattr

2016-04-27 Thread Jann Horn
On Tue, Apr 26, 2016 at 03:39:54PM -0700, Kees Cook wrote: > On Tue, Apr 26, 2016 at 3:26 PM, Serge E. Hallyn wrote: > > Quoting Kees Cook (keesc...@chromium.org): > >> On Fri, Apr 22, 2016 at 10:26 AM, wrote: > >> > From: Serge Hallyn > >> > > >> > This can only be set by root in his own names

Re: [PATCH V17 2/3] dmaengine: qcom_hidma: add debugfs hooks

2016-04-27 Thread Vinod Koul
On Tue, Apr 26, 2016 at 12:55:18PM -0400, Sinan Kaya wrote: > On 4/26/2016 12:25 PM, Vinod Koul wrote: > > On Tue, Apr 26, 2016 at 08:08:16AM -0400, ok...@codeaurora.org wrote: > >> On 2016-04-25 23:30, Vinod Koul wrote: > >>> On Mon, Apr 11, 2016 at 10:21:12AM -0400, Sinan Kaya wrote: > >>> >

Re: [PATCH] ARM: at91/defconfig: add PDMIC driver to sama5_defconfig

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 17:38:08 +0200, Nicolas Ferre wrote : > Add Pulse Density Modulation Interface Controller (PDMIC) driver compilation > for sama5 default configuration. Is used by sama5d2 SoC for instance. > > Signed-off-by: Nicolas Ferre Acked-by: Alexandre Belloni > --- > arch/arm/configs/sa

Re: [BUG linux-next] Kernel panic found with linux-next-20160414

2016-04-27 Thread Hugh Dickins
On Wed, 20 Apr 2016, Shi, Yang wrote: > On 4/20/2016 1:01 AM, Hugh Dickins wrote: > > On Tue, 19 Apr 2016, Shi, Yang wrote: > > > Hi folks, > > > > > > When I ran ltp on linux-next-20160414 on my ARM64 machine, I got the > > > below > > > kernel panic: > > > > > > Unable to handle kernel paging r

Re: + mm-zswap-use-workqueue-to-destroy-pool.patch added to -mm tree

2016-04-27 Thread Dan Streetman
On Wed, Apr 27, 2016 at 1:40 AM, Sergey Senozhatsky wrote: > Hello, > > On (04/26/16 16:52), a...@linux-foundation.org wrote: > [..] >> -static void __zswap_pool_release(struct rcu_head *head) >> +static void __zswap_pool_release(struct work_struct *work) >> { >> - struct zswap_pool *pool = c

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-04-27 Thread Ingo Molnar
* Andy Lutomirski wrote: > > What new syscalls would be needed for ssh to get all this support? > > This patchset or similar, plus some user code and an enclave to use. > > Sadly, on current CPUs, you also need Intel to bless the enclave. It looks > like > new CPUs might relax that requirem

Re: [PATCH] serial: mctrl_gpio: Drop support for out1-gpios and out2-gpios

2016-04-27 Thread Richard Genoud
2016-04-22 17:10 GMT+02:00 Geert Uytterhoeven : > The OUT1 and OUT2 pins present on some legacy UARTs are basically GPIOs. > It doesn't make much sense to emulate GPIOs using other GPIOs, hence > drop support for that. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/tty/serial/serial_mctrl_

Re: [LKP] [lkp] [mm, oom] faad2185f4: vm-scalability.throughput -11.8% regression

2016-04-27 Thread Huang, Ying
Michal Hocko writes: > On Wed 27-04-16 11:15:56, kernel test robot wrote: >> FYI, we noticed vm-scalability.throughput -11.8% regression with the >> following commit: > > Could you be more specific what the test does please? The sub-testcase of vm-scalability is swap-w-rand. An RAM emulated pm

Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc

2016-04-27 Thread Daniel Stone
Hi, On 26 April 2016 at 00:33, Gustavo Padovan wrote: > +static inline struct drm_crtc *fence_to_crtc(struct fence *fence) > +{ > + if (fence->ops != &drm_crtc_fence_ops) > + return NULL; Since this is (currently) only used before unconditional dereferences, maybe turn this i

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

2016-04-27 Thread Andy Shevchenko
On Wed, Apr 27, 2016 at 9:43 AM, Viresh Kumar wrote: > On 25-04-16, 15:35, Andy Shevchenko wrote: >> There are several changes are done here: >> >> - Convert the property to be in bytes >> >> Besides this is common practice for such property the use of a value in bytes >> much more convenient than

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

2016-04-27 Thread Viresh Kumar
On 27-04-16, 11:25, Andy Shevchenko wrote: > On Wed, Apr 27, 2016 at 9:43 AM, Viresh Kumar wrote: > > On 25-04-16, 15:35, Andy Shevchenko wrote: > >> There are several changes are done here: > >> > >> - Convert the property to be in bytes > >> > >> Besides this is common practice for such property

Re: [PATCH 1/8] char/rtc: replace blacklist with whitelist

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 23:44:05 +0200, Arnd Bergmann wrote : > Every new architecture has to add itself to the growing list of those > that do not support the legacy PC RTC driver. > > This replaces the long list of architectures that don't support it > with a shorter list of those that do. > > The lis

Re: char: legacy RTC cleanups

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 09:54:41 Geert Uytterhoeven wrote: > Hi Arnd, > > On Tue, Apr 26, 2016 at 11:44 PM, Arnd Bergmann wrote: > > For the genrtc driver, rearranging the headers makes it simpler > > to use and reduces duplication. In case of alpha and mn10300, > > I've shown that the genrtc

Re: [RESEND PATCH v2 0/1] mmc: dw_mmc: Fix UHS tuning on some brand of cards.

2016-04-27 Thread Jaehoon Chung
On 04/26/2016 05:03 PM, Enric Balletbo i Serra wrote: > Hi, > > I introduced the cover letter to give some background about this. > > I have been investigating a problem related to at least one specific sdcard > when > UHS-I is set. The card is not detected due the tuning phase reports a > failu

[PATCH v4 1/1] powerpc/86xx: Add support for Emerson/Artesyn MVME7100

2016-04-27 Thread Alessio Igor Bogani
Add support for the Artesyn MVME7100 Single Board Computer. The MVME7100 is a 6U form factor VME64 computer with: - A two e600 cores Freescale MPC8641D CPU - 2 GB of DDR2 onboard memory - Four Gigabit Ethernets - Five 16550 compatible UARTs - One USB 2.0 port - Two PCI/PCI

Re: [PATCH 17/19] dm: get rid of superfluous gfp flags

2016-04-27 Thread Michal Hocko
[Adding dm-de...@redhat.com to CC] On Tue 26-04-16 13:20:04, Mikulas Patocka wrote: > On Fri, 22 Apr 2016, Michal Hocko wrote: [...] > > copy_params seems to be called only from the ioctl context which doesn't > > hold any locks which would lockup during the direct reclaim AFAICS. The > > git log

Re: [PATCH] mmc: dw_mmc-rockchip: add MMC_CAP_CMD23 capabilities

2016-04-27 Thread Jaehoon Chung
Hi Shawn, I will apply this. Thanks! Best Regards, Jaehoon Chung On 04/26/2016 03:53 PM, Shawn Lin wrote: > Add MMC_CAP_CMD23 for dw_mmc-rockchip, otherwise > failing to create rpmb partition. With it, we can > get rpmb successfully: > > mmc1: new HS200 MMC card at address 0001 > mmcblk0: mmc1:

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

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 23:44:06 +0200, 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

Re: [LKP] [lkp] [mm, oom] faad2185f4: vm-scalability.throughput -11.8% regression

2016-04-27 Thread Michal Hocko
On Wed 27-04-16 16:20:43, Huang, Ying wrote: > Michal Hocko writes: > > > On Wed 27-04-16 11:15:56, kernel test robot wrote: > >> FYI, we noticed vm-scalability.throughput -11.8% regression with the > >> following commit: > > > > Could you be more specific what the test does please? > > The sub

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

2016-04-27 Thread Andy Shevchenko
On Wed, 2016-04-27 at 14:00 +0530, Viresh Kumar wrote: > On 27-04-16, 11:25, Andy Shevchenko wrote: > > > > -- data_width: Maximum data width supported by hardware per AHB > > > > master > > > > -  (0 - 8bits, 1 - 16bits, ..., 5 - 256bits) > > > > +- data-width: Maximum data width supported by har

Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

2016-04-27 Thread Peter Rosin
Hi! On 2016-04-23 23:32, Jonathan Cameron wrote: > On 20/04/16 18:17, Crestez Dan Leonard wrote: >> The MPU has an auxiliary I2C bus for connecting external >> sensors. This bus has two operating modes: >> * pass-through, which connects the primary and auxiliary busses >> together. This is already

Re: char: legacy RTC cleanups

2016-04-27 Thread Geert Uytterhoeven
Hi Arnd, On Wed, Apr 27, 2016 at 10:33 AM, Arnd Bergmann wrote: > On Wednesday 27 April 2016 09:54:41 Geert Uytterhoeven wrote: >> On Tue, Apr 26, 2016 at 11:44 PM, Arnd Bergmann wrote: >> > For the genrtc driver, rearranging the headers makes it simpler >> > to use and reduces duplication. In c

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

2016-04-27 Thread changbin . du
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. Note, most time we still see disconnect be called that because it is invoked b

Re: [PATCH 3/8] char/rtc: remove empty asm/mc146818rtc.h files

2016-04-27 Thread Alexandre Belloni
On 26/04/2016 at 23:44:07 +0200, Arnd Bergmann wrote : > Nothing on these architectures ever includes the asm/mc146818rtc.h > file, the drivers that used to do this have been fixed long ago, > and the remaining users are all PC-specific. > > This removes the files for good. > > Signed-off-by: Arn

[PATCH] mm/memory_failure: unify the output-prefix for printk()

2016-04-27 Thread Chen Yucong
This patch aims to replace 'MCE' that was introduced by 'commit c2200538d89d ("mm/memory-failure: fix race with compound page split/merge")' with 'Memory failure'.[1] [1] https://lkml.org/lkml/2016/4/18/894 Signed-off-by: Chen Yucong --- mm/memory-failure.c | 3 ++- 1 file changed, 2 insertions

Re: [LKP] [lkp] [mm, oom] faad2185f4: vm-scalability.throughput -11.8% regression

2016-04-27 Thread Huang, Ying
Michal Hocko writes: > On Wed 27-04-16 16:20:43, Huang, Ying wrote: >> Michal Hocko writes: >> >> > On Wed 27-04-16 11:15:56, kernel test robot wrote: >> >> FYI, we noticed vm-scalability.throughput -11.8% regression with the >> >> following commit: >> > >> > Could you be more specific what th

Re: [PATCH V17 2/3] dmaengine: qcom_hidma: add debugfs hooks

2016-04-27 Thread Marc Zyngier
On 27/04/16 09:15, Vinod Koul wrote: > On Tue, Apr 26, 2016 at 12:55:18PM -0400, Sinan Kaya wrote: >> On 4/26/2016 12:25 PM, Vinod Koul wrote: >>> On Tue, Apr 26, 2016 at 08:08:16AM -0400, ok...@codeaurora.org wrote: On 2016-04-25 23:30, Vinod Koul wrote: > On Mon, Apr 11, 2016 at 10:21:12

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

2016-04-27 Thread Dong Aisheng
On Wed, Apr 27, 2016 at 3:24 PM, Shawn Guo wrote: > On Wed, Apr 27, 2016 at 10:57:21AM +0800, 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 th

Re: [BUG linux-next] Kernel panic found with linux-next-20160414

2016-04-27 Thread Vlastimil Babka
On 04/27/2016 10:14 AM, Hugh Dickins wrote: It's rather horrible that compaction.c uses functions in page_alloc.c which skip doing some of the things we expect to be done: the non-debug preparation tends to get noticed, but the debug options overlooked. We can expect more problems of this kind in

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

2016-04-27 Thread Dong Aisheng
On Wed, Apr 27, 2016 at 3:28 PM, Stefan Agner wrote: > On 2016-04-26 19:56, Fabio Estevam wrote: >> On Tue, Apr 26, 2016 at 11:45 PM, Dong Aisheng wrote: >> We need to firstly understand why this is happening. The .prepare hook is defined to be non-atomic context, and so that we call s

Re: zram: per-cpu compression streams

2016-04-27 Thread Sergey Senozhatsky
Hello, more tests. I did only 8streams vs per-cpu this time. the changes to the test are: -- mem-hogger now per-faults pages in parallel with fio -- mem-hogger alloc size increased from 3GB to 4GB. the system couldn't survive 4GB/4GB zram(buffer_compress_percentage=11)/mem-hogger split (OOM), s

Re: [RESEND PATCH v2 0/1] mmc: dw_mmc: Fix UHS tuning on some brand of cards.

2016-04-27 Thread Enric Balletbo i Serra
On 27/04/16 10:35, Jaehoon Chung wrote: > On 04/26/2016 05:03 PM, Enric Balletbo i Serra wrote: >> Hi, >> >> I introduced the cover letter to give some background about this. >> >> I have been investigating a problem related to at least one specific sdcard >> when >> UHS-I is set. The card is no

Re: [PATCH V4 10/18] coresight: tmc: getting rid of multiple read access

2016-04-27 Thread Suzuki K Poulose
On 26/04/16 23:10, Mathieu Poirier wrote: Allowing multiple readers to access the trace data simultaniously via sysFS provides no shortage of opportunity for race condition, mandates two variable to be maintained (drvdata::read_count and drvdata::reading), makes the code complex and provide littl

  1   2   3   4   5   6   7   8   9   10   >