Re: [PATCH v4 4/8] drm/mediatek: add support for Mediatek SoC MT2701

2016-07-17 Thread CK Hu
Hi, YT: One comment inline. On Fri, 2016-07-15 at 18:07 +0800, YT Shen wrote: > This patch add support for the Mediatek MT2701 DISP subsystem. > There is only one OVL engine in MT2701. > > Signed-off-by: YT Shen > --- > drivers/gpu/drm/mediatek/mtk_disp_ovl.c |6 > drivers/gpu/drm

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Rafał Miłecki
On 18 July 2016 at 07:53, Peter Chen wrote: > On Mon, Jul 18, 2016 at 07:57:34AM +0200, Rafał Miłecki wrote: >> On 18 July 2016 at 07:40, Peter Chen wrote: >> > On Mon, Jul 18, 2016 at 06:44:49AM +0200, Rafał Miłecki wrote: >> >> On 18 July 2016 at 04:31, Peter Chen wrote: >> >> > On Fri, Jul 15

Re: [PATCH] drm/ast: Delete an unnecessary check before drm_gem_object_unreference_unlocked()

2016-07-17 Thread Daniel Vetter
On Sat, Jul 16, 2016 at 10:04:34AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 09:54:22 +0200 > > The drm_gem_object_unreference_unlocked() function tests whether > its argument is NULL and then returns immediately. > Thus the test around the call is not needed

Re: 4.1.28: memory leak introduced by "mm/swap.c: flush lru pvecs on compound page arrival"

2016-07-17 Thread Michal Hocko
On Sat 16-07-16 23:47:40, Minchan Kim wrote: > On Fri, Jul 15, 2016 at 09:27:55PM +0200, Jens Rottmann wrote: > > Hi, > > > > 4.1.y stable commit c5ad33184354260be6d05de57e46a5498692f6d6 (Upstream > > commit 8f182270dfec432e93fae14f9208a6b9af01009f) "mm/swap.c: flush lru > > pvecs on compound page

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-17 Thread Vlastimil Babka
On 07/18/2016 07:07 AM, Joonsoo Kim wrote: On Thu, Jul 14, 2016 at 10:32:09AM +0200, Vlastimil Babka wrote: On 07/14/2016 07:23 AM, Joonsoo Kim wrote: I don't think there's a problem in the scenario? Kswapd will keep being woken up and reclaim from the node lru. It will hit and free any low zon

Re: "coupled" regulator support

2016-07-17 Thread Jisheng Zhang
Dear Mark, On Fri, 15 Jul 2016 13:50:39 +0100 Mark Brown wrote: > On Fri, Jul 15, 2016 at 08:01:13PM +0800, Jisheng Zhang wrote: > > > regR can only be set to v1 if devA and devB all call for set voltage to v1 > > regR can set to v2 if devA or devB call for set voltage to v2 > > > To support

man-pages-4.07 is released

2016-07-17 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-4.07 - man pages for Linux This release includes input and contributions from around 50 people. Over 140 pages saw changes, ranging from typo fixes through to page rewrites and 4 newly created pages. Tarball download:

Re: [RFC][PATCH 4/7] k3dma: Add cyclic mode for audio

2016-07-17 Thread zhangfei
On 07/16/2016 10:13 AM, John Stultz wrote: From: Andy Green Currently the k3dma driver doesn't offer the cyclic mode necessary for handling audio. This patch adds it. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Gir

Re: [PATCH V2 03/10] Documentation: dt-bindings: firmware: tegra: add bindings of the BPMP

2016-07-17 Thread Joseph Lo
On 07/14/2016 03:41 AM, Stephen Warren wrote: On 07/05/2016 03:04 AM, Joseph Lo wrote: The BPMP is a specific processor in Tegra chip, which is designed for booting process handling and offloading the power management, clock management, and reset control tasks from the CPU. The binding document

Re: [RFC][PATCH 3/7] k3dma: Fix "nobody cared" message seen on any error

2016-07-17 Thread zhangfei
On 07/16/2016 10:13 AM, John Stultz wrote: From: Andy Green As it was before, as soon as the DMAC IP felt there was an error he would return IRQ_NONE since no actual transfer had completed. After spinning on that for 100K interrupts, Linux yanks the IRQ with a "nobody cared" error. This pat

Re: [RFC][PATCH 2/7] k3dma: Fix dma err offsets

2016-07-17 Thread zhangfei
On 07/16/2016 10:13 AM, John Stultz wrote: From: Andy Green The offsets for ERR1 and ERR2 are wrong actually. That's why you can never clear an error. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark B

Re: [RFC][PATCH 1/7] k3dma: Fix hisi burst clipping

2016-07-17 Thread zhangfei
On 07/16/2016 10:13 AM, John Stultz wrote: From: Andy Green Max burst len is a 4-bit field, but at the moment it's clipped with a 5-bit constant... reduce it to that which can be expressed Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan W

Re: [STABLE] kernel oops which can be fixed by peterz's patches

2016-07-17 Thread Byungchul Park
On Tue, Mar 01, 2016 at 08:15:55AM +, Greg KH wrote: > On Tue, Jan 05, 2016 at 05:52:11PM +0900, Byungchul Park wrote: > > > > Upstream commits to be applied > > == > > > > e3fca9e: sched: Replace post_schedule with a balance callback list > > 4c9a4bc: sched: Allow

Re: [PATCH v4 3/8] drm/mediatek: add shadow register support

2016-07-17 Thread CK Hu
Hi, YT: One comment inline. On Fri, 2016-07-15 at 18:07 +0800, YT Shen wrote: > We need to acquire mutex before using the resources, > and need to release it after finished. > So we don't need to write registers in the blanking period. > > Signed-off-by: YT Shen > --- > drivers/gpu/drm/mediat

Re: [PATCH] PCI: dra7xx: Fix return value in case of error

2016-07-17 Thread Kishon Vijay Abraham I
On Friday 15 July 2016 02:48 AM, Christophe JAILLET wrote: > In function 'dra7xx_pcie_init_irq_domain', the pattern used to check and > return error is: > >if (!var) { > dev_err(...); > return PTR_ERR(var); >} > > So the returned value in case of error is always 0, which mea

Re: [PATCH 1/2] net: ethernet: marvell: pxa168_eth: use phydev from struct net_device

2016-07-17 Thread David Miller
From: Philippe Reynes Date: Sun, 17 Jul 2016 23:30:45 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phydev in the private structure, and update the driver to use the > one contained in struct

Re: [PATCH 2/2] net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings

2016-07-17 Thread David Miller
From: Philippe Reynes Date: Sun, 17 Jul 2016 01:10:15 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > There was a check on CAP_NET_ADMIN in bfin_mac_ethtool_setsettings, > but this check is a

Re: [PATCH 1/2] net: ethernet: adi: bfin_mac: use phydev from struct net_device

2016-07-17 Thread David Miller
From: Philippe Reynes Date: Sun, 17 Jul 2016 01:10:14 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phydev in the private structure, and update the driver to use the > one contained in struct

Re: [PATCH 2/2] net: ethernet: marvell: pxa168_eth: use phy_ethtool_{get|set}_link_ksettings

2016-07-17 Thread David Miller
From: Philippe Reynes Date: Sun, 17 Jul 2016 23:30:46 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

linux-next: manual merge of the xen-tip tree with the tip tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: arch/arm/xen/enlighten.c between commit: 4761adb6f490 ("arm/xen: Convert to hotplug state machine") from the tip tree and commit: ecb23dc6f2ef ("xen: add steal_clock support on x86") from the xen-tip tree. I fixed

linux-next: manual merge of the kvm-arm tree with the tip tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: virt/kvm/arm/vgic.c between commit: 42ec50b5f257 ("arm/kvm/vgic: Convert to hotplug state machine") from the tip tree and commit: 50926d82fa27 ("KVM: arm/arm64: The GIC is dead, long live the GIC") from the kvm-arm

[PATCH] tools lib bpf: Use official ELF e_machine value

2016-07-17 Thread Wang Nan
New LLVM will issue newly assigned EM_BPF machine code. The new code will be propogated to glibc and libelf. This patch introduces the new machine code to libbpf. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Zefan Li Cc: pi3or...@163.com --- tools/lib/bpf/l

Re: [BUG] Slab corruption during XFS writeback under memory pressure

2016-07-17 Thread Dave Chinner
On Sun, Jul 17, 2016 at 10:00:03AM +1000, Dave Chinner wrote: > On Fri, Jul 15, 2016 at 05:18:02PM -0700, Calvin Owens wrote: > > Hello all, > > > > I've found a nasty source of slab corruption. Based on seeing similar > > symptoms > > on boxes at Facebook, I suspect it's been around since at lea

Re: [PATCH] ARM: tegra: fix erroneous address in dts

2016-07-17 Thread Thierry Reding
On Fri, Jul 15, 2016 at 06:18:03PM +0200, Ralf Ramsauer wrote: > On 07/15/2016 06:01 PM, Stephen Warren wrote: > > On 07/15/2016 03:37 AM, Ralf Ramsauer wrote: > >> On 07/15/2016 12:02 AM, Thierry Reding wrote: > >>> On Thu, Jul 14, 2016 at 06:48:57PM +0200, Ralf Ramsauer wrote: > c90bb7b enab

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Peter Chen
On Mon, Jul 18, 2016 at 07:57:34AM +0200, Rafał Miłecki wrote: > On 18 July 2016 at 07:40, Peter Chen wrote: > > On Mon, Jul 18, 2016 at 06:44:49AM +0200, Rafał Miłecki wrote: > >> On 18 July 2016 at 04:31, Peter Chen wrote: > >> > On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: >

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Rafał Miłecki
On 18 July 2016 at 07:40, Peter Chen wrote: > On Mon, Jul 18, 2016 at 06:44:49AM +0200, Rafał Miłecki wrote: >> On 18 July 2016 at 04:31, Peter Chen wrote: >> > On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: >> >> + >> >> +usbport trigger: >> >> +- usb-ports : List of USB ports th

linux-next: manual merge of the kvm tree with the powerpc tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/powerpc/kernel/idle_book3s.S between commit: 69c592ed40d3 ("powerpc/opal: Add real mode call wrappers") from the powerpc tree and commit: fd7bacbca47a ("KVM: PPC: Book3S HV: Fix TB corruption in guest exit path on

linux-next: manual merge of the kvm tree with the powerpc tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/powerpc/kernel/exceptions-64s.S between commit: 9baaef0a22c8 ("powerpc/irq: Add support for HV virtualization interrupts") from the powerpc tree and commit: fd7bacbca47a ("KVM: PPC: Book3S HV: Fix TB corruption in

Re: [patch] phy: phy-brcm-sata: fix a loop timeout

2016-07-17 Thread Yendapally Reddy Dhananjaya Reddy
On Tue, Jun 21, 2016 at 2:07 PM, Dan Carpenter wrote: > Since this loop is a post op then it means we end with "try == -1" but > afterward we test for if it's zero. Fix this by changing to a pre-op so > we end on zero. Thanks Dan. That should be pre-op. Thnaks Dhananjay > > Fixes: 024812889ad1

Re: [PATCH 04/10] phy: da8xx-usb: new driver for DA8xx SoC USB PHY

2016-07-17 Thread Kishon Vijay Abraham I
Hi Arnd, On Saturday 16 July 2016 02:44 AM, Arnd Bergmann wrote: > On Tuesday, July 5, 2016 10:53:51 AM CEST Kishon Vijay Abraham I wrote: >> From: David Lechner >> >> This is a new phy driver for the SoC USB controllers on the TI DA8xx >> family of microcontrollers. The USB 1.1 PHY is just a sim

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-17 Thread Namhyung Kim
Hello, On Sun, Jul 17, 2016 at 10:12:26PM -0700, Kees Cook wrote: > On Sun, Jul 17, 2016 at 9:37 PM, Namhyung Kim wrote: > > The virtio pstore driver provides interface to the pstore subsystem so > > that the guest kernel's log/dump message can be saved on the host > > machine. Users can access

RE: [PATCH v6 1/3] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-07-17 Thread Tan, Jui Nee
> -Original Message- > From: Tan, Jui Nee > Sent: Monday, July 18, 2016 11:35 AM > To: 'Paul Gortmaker' ; > andriy.shevche...@linux.intel.com > Cc: mika.westerb...@linux.intel.com; heikki.kroge...@linux.intel.com; > t...@linutronix.de; mi...@redhat.com; H. Peter Anvin ; > X86 ML ; pty...@

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Peter Chen
On Mon, Jul 18, 2016 at 06:44:49AM +0200, Rafał Miłecki wrote: > On 18 July 2016 at 04:31, Peter Chen wrote: > > On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: > >> + > >> +usbport trigger: > >> +- usb-ports : List of USB ports that usbport should observed for turning > >> on a >

Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-17 Thread Joonsoo Kim
On Fri, Jul 15, 2016 at 10:47:06AM +0800, Xishi Qiu wrote: > alloc_migrate_target() is called from migrate_pages(), and the page > is always from user space, so we can add __GFP_HIGHMEM directly. No, all migratable pages are not from user space. For example, blockdev file cache has __GFP_MOVABLE a

Re: [patch] mm, compaction: make sure freeing scanner isn't persistently expensive

2016-07-17 Thread Joonsoo Kim
On Mon, Jul 11, 2016 at 04:01:52PM -0700, David Rientjes wrote: > On Thu, 30 Jun 2016, Joonsoo Kim wrote: > > > We need to find a root cause of this problem, first. > > > > I guess that this problem would happen when isolate_freepages_block() > > early stop due to watermark check (if your patch i

Re: [PATCH] dwc_eth_qos: Remove deprecated create_singlethread_workqueue

2016-07-17 Thread David Miller
From: Bhaktipriya Shridhar Date: Sat, 16 Jul 2016 13:53:28 +0530 > alloc_workqueue replaces deprecated create_singlethread_workqueue(). > > A dedicated workqueue has been used since the workitem viz > lp->txtimeout_reinit is involved in reinitialization if a TX timeout > occurs, which is necessa

linux-next: manual merge of the rcu tree with the tip tree

2016-07-17 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the rcu tree got a conflict in: kernel/rcu/tree.c between commit: 4df8374254ea ("rcu: Convert rcutree to hotplug state machine") from the tip tree and commit: 2a84cde733b0 ("rcu: Exact CPU-online tracking for RCU") from the rcu tree. I fixed it up

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-17 Thread Dave Young
On 07/18/16 at 06:44am, Borislav Petkov wrote: > On Mon, Jul 18, 2016 at 10:18:09AM +0800, Dave Young wrote: > > I would say avoiding ratelimit during boot make no much sense. Userspace > > can not > > write to /dev/kmsg when system_state == SYSTEM_BOOTING because init process > > has not run yet.

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-17 Thread Stephen Rothwell
Hi Arnaldo, On Fri, 15 Jul 2016 12:43:26 -0300 Arnaldo Carvalho de Melo wrote: > > Ok, same results, it works, queuing this one, ack? Stephen, does it work > for you? Sorry, no. See my other email. I am cross building (if that makes a difference). -- Cheers, Stephen Rothwell

linux-next: build failure after merge of the tip tree

2016-07-17 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from tools/arch/x86/include/uapi/asm/bitsperlong.h:10:0, from /usr/include/asm-generic/int-ll64.h:11, from /usr/include/powerpc64le-linux-gnu/asm

Re: linux-next: manual merge of the kspp tree with the arm64 tree

2016-07-17 Thread Kees Cook
On Sun, Jul 17, 2016 at 10:06 PM, Stephen Rothwell wrote: > Hi Kees, > > On Sun, 17 Jul 2016 21:49:40 -0700 Kees Cook wrote: >> >> If I'm reading correctly, this second fixup is wrong. It should read; >> >> kasan_check_read(from, n); >> check_object_size(from, n, true); >> return __a

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-17 Thread Kees Cook
On Sun, Jul 17, 2016 at 9:37 PM, Namhyung Kim wrote: > The virtio pstore driver provides interface to the pstore subsystem so > that the guest kernel's log/dump message can be saved on the host > machine. Users can access the log file directly on the host, or on the > guest at the next boot using

Re: [PATCH 2/3] xen-scsiback: One function call less in scsiback_device_action() after error detection

2016-07-17 Thread Juergen Gross
On 16/07/16 22:23, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 21:42:42 +0200 > > The kfree() function was called in one case by the > scsiback_device_action() function during error handling > even if the passed variable "tmr" contained a null pointer. > > Adjust jum

Re: linux-next: manual merge of the kspp tree with the arm64 tree

2016-07-17 Thread Stephen Rothwell
Hi Kees, On Sun, 17 Jul 2016 21:49:40 -0700 Kees Cook wrote: > > If I'm reading correctly, this second fixup is wrong. It should read; > > kasan_check_read(from, n); > check_object_size(from, n, true); > return __arch_copy_to_user(to, from, n); > > (i.e. fix double space between "re

Re: [PATCH 3/3] xen-scsiback: Pass a failure indication as a constant

2016-07-17 Thread Juergen Gross
On 16/07/16 22:24, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 21:55:01 +0200 > > Pass the constant "FAILED" in a function call directly instead of > using an intialisation for a local variable. > > Signed-off-by: Markus Elfring Reviewed-by: Juergen Gross Juerge

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-17 Thread Joonsoo Kim
On Thu, Jul 14, 2016 at 10:32:09AM +0200, Vlastimil Babka wrote: > On 07/14/2016 07:23 AM, Joonsoo Kim wrote: > >On Fri, Jul 08, 2016 at 11:11:47AM +0100, Mel Gorman wrote: > >>On Fri, Jul 08, 2016 at 11:44:47AM +0900, Joonsoo Kim wrote: > >> > >>It doesn't stop reclaiming for the lower zones. It's

Re: [PATCH 1/3] xen-scsiback: Delete an unnecessary check before the function call "kfree"

2016-07-17 Thread Juergen Gross
On 16/07/16 22:22, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 21:21:05 +0200 > > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-17 Thread Joonsoo Kim
On Thu, Jul 14, 2016 at 10:05:00AM +0100, Mel Gorman wrote: > On Thu, Jul 14, 2016 at 02:23:32PM +0900, Joonsoo Kim wrote: > > > > > > > > > And, I'd like to know why max() is used for classzone_idx rather > > > > > > than > > > > > > min()? I think that kswapd should balance the lowest zone requ

[BUG] kernel BUG at arch/x86/mm/pageattr.c:216!

2016-07-17 Thread Xie XiuQi
Hi all, I'm getting BUG_ON occurred in a panic at arch/x86/mm/pageattr.c:216! on 3.10.0-327.el7 (RHEL 7.2) I want to do a test, to expect system will reboot immediately after panic. But, in drm_fb_helper_panic, may trigger a BUG_ON at arch/x86/mm/pageattr.c:216! Does anyone has good idea to fix

Re: linux-next: manual merge of the kspp tree with the arm64 tree

2016-07-17 Thread Kees Cook
On Sun, Jul 17, 2016 at 7:59 PM, Stephen Rothwell wrote: > Hi Kees, > > Today's linux-next merge of the kspp tree got a conflict in: > > arch/arm64/include/asm/uaccess.h > > between commit: > > bffe1baff5d5 ("arm64: kasan: instrument user memory access API") > > from the arm64 tree and commit:

Re: [PATCH 04/31] mm, vmscan: begin reclaiming pages on a per-node basis

2016-07-17 Thread Joonsoo Kim
On Thu, Jul 14, 2016 at 09:48:41AM +0200, Vlastimil Babka wrote: > On 07/14/2016 08:28 AM, Joonsoo Kim wrote: > >On Fri, Jul 08, 2016 at 11:05:32AM +0100, Mel Gorman wrote: > >>On Fri, Jul 08, 2016 at 11:28:52AM +0900, Joonsoo Kim wrote: > >>>On Thu, Jul 07, 2016 at 10:48:08AM +0100, Mel Gorman wro

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Rafał Miłecki
On 18 July 2016 at 04:31, Peter Chen wrote: > On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: >> + >> +usbport trigger: >> +- usb-ports : List of USB ports that usbport should observed for turning on >> a >> + given LED. >> + > > %s/should/should be Thanks. >> diff --g

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-17 Thread Borislav Petkov
On Mon, Jul 18, 2016 at 10:18:09AM +0800, Dave Young wrote: > I would say avoiding ratelimit during boot make no much sense. Userspace can > not > write to /dev/kmsg when system_state == SYSTEM_BOOTING because init process > has not run yet. You're right - kernel_init() sets SYSTEM_RUNNING before

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-17 Thread Andy Lutomirski
On Thu, Jul 14, 2016 at 1:07 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> On Wed, Jul 13, 2016 at 12:56 AM, Ingo Molnar wrote: >> > >> > * Andy Lutomirski wrote: >> > >> >> > If we push a PKRU value into a thread between the rdpkru() and >> >> > wrpkru(), we'll >> >> > lose the con

[PATCH 2/3] qemu: Implement virtio-pstore device

2016-07-17 Thread Namhyung Kim
From: Namhyung Kim Add virtio pstore device to allow kernel log files saved on the host. It will save the log files on the directory given by pstore device option. $ qemu-system-x86_64 -device virtio-pstore,directory=dir-xx ... (guest) # echo c > /proc/sysrq-trigger $ ls dir-xx dmesg-0

[RFC/PATCHSET 0/3] virtio-pstore: Implement virtio pstore device

2016-07-17 Thread Namhyung Kim
Hello, This patchset is a proof of concept of virtio-pstore idea [1]. It has some rough edges and I'm not familiar with this area, so please give me feedbacks and advices if I'm going to a wrong direction. It started from the fact that dumping ftrace buffer at kernel oops/panic takes too much ti

[PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-17 Thread Namhyung Kim
The virtio pstore driver provides interface to the pstore subsystem so that the guest kernel's log/dump message can be saved on the host machine. Users can access the log file directly on the host, or on the guest at the next boot using pstore filesystem. It currently deals with kernel log (print

[PATCH 3/3] kvmtool: Implement virtio-pstore device

2016-07-17 Thread Namhyung Kim
Add virtio pstore device to allow kernel log messages saved on the host. With this patch, it will save the log files under directory given by --pstore option. $ lkvm run --pstore=dir-xx (guest) # echo c > /proc/sysrq-trigger $ ls dir-xx dmesg-0.enc.z dmesg-1.enc.z The log files are us

Re: [PATCH v3 12/17] mm, compaction: more reliably increase direct compaction priority

2016-07-17 Thread Joonsoo Kim
On Fri, Jul 15, 2016 at 03:37:52PM +0200, Vlastimil Babka wrote: > On 07/06/2016 07:39 AM, Joonsoo Kim wrote: > > On Fri, Jun 24, 2016 at 11:54:32AM +0200, Vlastimil Babka wrote: > >> During reclaim/compaction loop, compaction priority can be increased by the > >> should_compact_retry() function, b

[PATCH] Staging: ks7010: michael_mic: fixed macros coding style issue

2016-07-17 Thread Sunbing
Fixed coding style issue: Enclose multiple statements macros definition in a do while loop. Use one space around binary operators. Signed-off-by: Sunbing --- drivers/staging/ks7010/michael_mic.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/sta

Re: [PATCH 1/1] tracing, bpf: Implement function bpf_probe_write

2016-07-17 Thread Alexei Starovoitov
On Sun, Jul 17, 2016 at 03:19:13AM -0700, Sargun Dhillon wrote: > > +static u64 bpf_copy_to_user(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5) > +{ > + void *to = (void *) (long) r1; > + void *from = (void *) (long) r2; > + int size = (int) r3; > + > + /* check if we're in a user contex

linux-next: manual merge of the device-mapper tree with the block tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the device-mapper tree got a conflict in: include/linux/blkdev.h between commit: 288dab8a35a0 ("block: add a separate operation type for secure erase") from the block tree and commit: ff6bbdd8ef75 ("block: add QUEUE_FLAG_DAX for devices to advertise t

[PATCH v2 04/10] binfmt_flat: clean up create_flat_tables() and stack accesses

2016-07-17 Thread Nicolas Pitre
In addition to better code clarity, this brings proper usage of user memory accessors everywhere the stack is touched. This is essential for making this work on MMU systems. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 117 ++- 1 file ch

[PATCH v2 08/10] binfmt_flat: update libraries' data segment pointer with userspace accessors

2016-07-17 Thread Nicolas Pitre
This is needed on systems with a MMU. This also gets rid of the strangest C code I've seen lateli i.e. an integer indexed with a pointer value within square brackets. That really looked backwards. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 19 +-- 1 file changed, 13 ins

[PATCH v2 09/10] binfmt_flat: add MMU-specific support

2016-07-17 Thread Nicolas Pitre
Not much else to do at this point except for the different stack setups. SuperH and Xtensa could be added to the allowed list if they implement __put_user_unaligned() and __get_user_unaligned(). Signed-off-by: Nicolas Pitre --- fs/Kconfig.binfmt | 3 ++- fs/binfmt_flat.c | 16 +---

[PATCH 1/1] netfilter: Add helper array register/unregister functions

2016-07-17 Thread fgao
From: Gao Feng Add nf_ct_helper_init, nf_conntrack_helpers_register/unregister functions to enhance the conntrack helper codes. Signed-off-by: Gao Feng --- include/net/netfilter/nf_conntrack_helper.h | 16 ++ net/netfilter/nf_conntrack_ftp.c| 58 +++--- net/netf

RE: [PATCH v6 1/3] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-07-17 Thread Tan, Jui Nee
> -Original Message- > From: paul.gortma...@gmail.com [mailto:paul.gortma...@gmail.com] On > Behalf Of Paul Gortmaker > Sent: Friday, July 15, 2016 8:01 AM > To: Tan, Jui Nee > Cc: mika.westerb...@linux.intel.com; heikki.kroge...@linux.intel.com; > andriy.shevche...@linux.intel.com; t...

[PATCH v2 07/10] binfmt_flat: use clear_user() rather than memset() to clear .bss

2016-07-17 Thread Nicolas Pitre
This is needed on systems with a MMU. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index c85f8f1239..e981e66bb5 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -803,10 +803,1

[PATCH v2 06/10] binfmt_flat: use proper user space accessors with old relocs code

2016-07-17 Thread Nicolas Pitre
Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index fc0ee3ed5d..c85f8f1239 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -394,38 +394,41 @@ static v

[PATCH v2 10/10] binfmt_flat: allow compressed flat binary format to work on MMU systems

2016-07-17 Thread Nicolas Pitre
Let's take the simple and obvious approach by decompressing the binary into a kernel buffer and then copying it to user space. Those who are looking for more performance on a MMU system are unlikely to choose this executable format anyway. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 44

[PULL REQUEST] [PATCH v2 00/10] allow BFLT executables on systems with a MMU

2016-07-17 Thread Nicolas Pitre
This series provides the necessary changes to allow "flat" executable binaries meant for no-MMU systems to actually run on systems with a MMU. This can also be found in the following git repo: git://git.linaro.org/people/nicolas.pitre/linux binfmt_flat_with_mmu *Why?* Because developing

[PATCH v2 05/10] binfmt_flat: use proper user space accessors with relocs processing code

2016-07-17 Thread Nicolas Pitre
Relocs are fixed up in place in user space memory. The appropriate accessors are required for this code to work with an active MMU. The architecture specific handlers for ARM and M68K are also covered. SuperH and Xtensa are left out as they doesn't implement __get_user_unaligned() and __put_user_

[PATCH v2 03/10] binfmt_flat: use generic transfer_args_to_stack()

2016-07-17 Thread Nicolas Pitre
This gets rid of the rather ugly, open coded and suboptimal copy code. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index 085059d879..64feb873f0 100644 --- a/fs/b

[PATCH v2 01/10] binfmt_flat: assorted cleanups

2016-07-17 Thread Nicolas Pitre
Remove excessive casts, do some code grouping, etc. No functional changes. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 118 ++- 1 file changed, 56 insertions(+), 62 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index ca

[PATCH v2 02/10] elf_fdpic_transfer_args_to_stack(): make it generic

2016-07-17 Thread Nicolas Pitre
This copying of arguments and environment is common to both NOMMU binary formats we support. Let's make the elf_fdpic version available to the flat format as well. While at it, improve the code a bit not to copy below the actual data area. Signed-off-by: Nicolas Pitre --- fs/binfmt_elf_fdpic.c

Re: [PATCH 1/2] x86/dumpstack: Optimize save_stack_trace

2016-07-17 Thread Byungchul Park
On Fri, Jul 08, 2016 at 04:44:04PM +0200, Frederic Weisbecker wrote: > Nice improvement but how about doing that with the return value of > stacktrace_ops::address() instead? > > print_context_stack_bp() uses that for example. This behaviour could > be extended. Yes. I will leave the change in pr

Re: [PATCH] module: Do a WARN_ON_ONCE() for assert module mutex not held

2016-07-17 Thread Rusty Russell
Steven Rostedt writes: > When running with lockdep enabled, I triggered the WARN_ON() in the > module code that asserts when module_mutex or rcu_read_lock_sched are > not held. The issue I have is that this can also be called from the > dump_stack() code, causing us to enter an infinite loop... T

Re: [PATCH 7/8] uio: bind uio_dmem_genirq via OF

2016-07-17 Thread Anup Patel
On Fri, Jul 15, 2016 at 10:22 PM, Mark Rutland wrote: > On Fri, Jul 15, 2016 at 09:57:28PM +0530, Anup Patel wrote: >> On Fri, Jul 15, 2016 at 6:58 PM, Mark Rutland wrote: >> > On Fri, Jul 15, 2016 at 02:34:02PM +0530, Anup Patel wrote: >> >> +static char uio_of_dma_bits_prop[128] = "uio,dma-bits

Re: [PATCH 1/2] x86/dumpstack: Optimize save_stack_trace

2016-07-17 Thread Byungchul Park
On Fri, Jul 08, 2016 at 10:22:46AM -0500, Josh Poimboeuf wrote: > > > > Also, could you please rename the _norm names to _fast or so, to signal > > > > that this > > > > is a faster but less reliable method to get a stack dump? Nobody knows > > > > what > > > > '_norm' means, but '_fast' is pre

Re: [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle

2016-07-17 Thread santosh.shilim...@oracle.com
On 7/17/16 7:00 PM, Peter Chen wrote: of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Peter Chen --- Changes for v2: - %s/of_put_node/of_node_put drivers/memory/emif.c | 2 ++ 1 file changed, 2 insertions(+) I will p

linux-next: manual merge of the kspp tree with the powerpc tree

2016-07-17 Thread Stephen Rothwell
Hi Kees, Today's linux-next merge of the kspp tree got a conflict in: arch/powerpc/Kconfig between commit: c223c90386bc ("powerpc32: provide VIRT_CPU_ACCOUNTING") from the powerpc tree and commit: 006d998dda94 ("powerpc/uaccess: Enable hardened usercopy") from the kspp tree. I fixed i

linux-next: manual merge of the kspp tree with the arm64 tree

2016-07-17 Thread Stephen Rothwell
Hi Kees, Today's linux-next merge of the kspp tree got a conflict in: arch/arm64/include/asm/uaccess.h between commit: bffe1baff5d5 ("arm64: kasan: instrument user memory access API") from the arm64 tree and commit: b19e7f50f056 ("arm64/uaccess: Enable hardened usercopy") from the kspp

Re: [PATCH 1/2] x86/dumpstack: Optimize save_stack_trace

2016-07-17 Thread Byungchul Park
On Fri, Jul 08, 2016 at 05:02:33PM +0200, Frederic Weisbecker wrote: > On Fri, Jul 08, 2016 at 09:29:29AM -0500, Josh Poimboeuf wrote: > > On Fri, Jul 08, 2016 at 12:08:19PM +0200, Ingo Molnar wrote: > > > > > > * Byungchul Park wrote: > > > > > > > On Mon, Jul 04, 2016 at 07:27:54PM +0900, Byun

Re: [PATCH 2/2] PCI: designware: let dw_pcie_link_up() beware of LTSSM training bit

2016-07-17 Thread Jisheng Zhang
Dear Joao, On Fri, 15 Jul 2016 16:10:24 +0100 Joao Pinto wrote: > Hi, > > On 7/6/2016 11:59 AM, Jisheng Zhang wrote: > > The link may be UP but still in link training. In this case, we can't > > think the link is up and operating correctly. So we need to teach > > dw_pcie_link_up() beware of the

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-17 Thread Peter Chen
On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: > + > +usbport trigger: > +- usb-ports : List of USB ports that usbport should observed for turning on a > + given LED. > + %s/should/should be > Examples: > > system-status { > @@ -58,6 +64,11 @@ system-status { >

Re: [PATCH 1/2] x86/dumpstack: Optimize save_stack_trace

2016-07-17 Thread Byungchul Park
On Fri, Jul 08, 2016 at 12:08:19PM +0200, Ingo Molnar wrote: > > * Byungchul Park wrote: > > > On Mon, Jul 04, 2016 at 07:27:54PM +0900, Byungchul Park wrote: > > > I suggested this patch on https://lkml.org/lkml/2016/6/20/22. However, > > > I want to proceed saperately since it's somewhat indep

Re: [PATCH] kernel-doc: Fix up warning output

2016-07-17 Thread Jonathan Corbet
On Fri, 15 Jul 2016 10:19:30 +0200 Daniel Vetter wrote: > While trying to make gpu docs warning free I stumbled over one output > which wasn't following proper compiler error output standards. Fix it > up for more quickfix awesomeness. Applied to the docs tree - awesomeness achieved. Thanks, j

Re: [PATCH v3 2/2] drm/mediatek: set mt8173 dithering function

2016-07-17 Thread CK Hu
Hi, Bibby: Some comments inline. On Thu, 2016-07-07 at 15:37 +0800, Bibby Hsieh wrote: > Some panels only accept bpc (bit per color) 6-bit. > But, the default bpc in mt8173 display data path is 8-bit. > If we didn't enable dithering function to convert bpc, > display cannot show the smooth graysc

Re: [RFC 3/3] kexec: extend kexec_file_load system call

2016-07-17 Thread Dave Young
On 07/15/16 at 09:09am, Vivek Goyal wrote: > On Tue, Jul 12, 2016 at 10:42:01AM +0900, AKASHI Takahiro wrote: > > [..] > > -SYSCALL_DEFINE5(kexec_file_load, int, kernel_fd, int, initrd_fd, > > +SYSCALL_DEFINE6(kexec_file_load, int, kernel_fd, int, initrd_fd, > > unsigned long, cmdline_

Re: [RFC 3/3] kexec: extend kexec_file_load system call

2016-07-17 Thread Dave Young
On 07/15/16 at 02:19pm, Mark Rutland wrote: > On Fri, Jul 15, 2016 at 09:09:55AM -0400, Vivek Goyal wrote: > > On Tue, Jul 12, 2016 at 10:42:01AM +0900, AKASHI Takahiro wrote: > > > > [..] > > > -SYSCALL_DEFINE5(kexec_file_load, int, kernel_fd, int, initrd_fd, > > > +SYSCALL_DEFINE6(kexec_file_loa

Re: [PATCH v2 21/22] phy: Add support for Qualcomm's USB HSIC phy

2016-07-17 Thread Rob Herring
On Thu, Jul 07, 2016 at 03:21:12PM -0700, Stephen Boyd wrote: > The HSIC USB controller on qcom SoCs has an integrated all > digital phy controlled via the ULPI viewport. > > Cc: Kishon Vijay Abraham I > Cc: > Signed-off-by: Stephen Boyd > --- > .../devicetree/bindings/phy/qcom,usb-hsic-phy.tx

Re: [PATCH v2 22/22] phy: Add support for Qualcomm's USB HS phy

2016-07-17 Thread Rob Herring
On Thu, Jul 07, 2016 at 03:21:13PM -0700, Stephen Boyd wrote: > The high-speed phy on qcom SoCs is controlled via the ULPI > viewport. > > Cc: Kishon Vijay Abraham I > Cc: > Signed-off-by: Stephen Boyd > --- > .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ > drivers/phy/Kconf

MY DAER CAN I TRUST YOU

2016-07-17 Thread osasum wennghogho
MY DAER CAN I TRUST YOU I am (Mr OSASUM WENNGHOGHO )Auditing And Accounting Section,I got your mail address through the international network business media directorates when I was looking for a sure contact of someone who can assist me as foreign partner I assured of your capability and relia

Re: [PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-07-17 Thread Rob Herring
On Thu, Jul 07, 2016 at 03:20:54PM -0700, Stephen Boyd wrote: > The qcom HSIC ULPI phy doesn't have any bits set in the vendor or > product ID registers. This makes it impossible to make a ULPI > driver match against the ID registers. Add support to discover > the ULPI phys via DT/device properties

Re: [PATCH] iscsi-target: fix panic when add the second TCP connection to iSCSI session

2016-07-17 Thread Feng Li
Hi Sumit, I have tested and the oops is disappeared. Could you double check if you have patched successfully? This stack is still the same. The place is 0x01f8. gdb> p (int)&((struct iscsi_session*)0)->se_sess $3 = 0x1f8 2016-07-14 17:59 GMT+08:00 Sumit Rai : > Thanks for the patc

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-17 Thread Dave Young
On 07/17/16 at 07:40am, Borislav Petkov wrote: > On Sat, Jul 16, 2016 at 06:44:25PM +0800, Dave Young wrote: > > ... > > > Mis-ratelimit cause critical userspace messages being lost, that is worse > > The current setting is quite generous so that all critical messages > should land in dmesg. Bes

[PATCH] Staging: fbtft: fixed unsigned type warnings

2016-07-17 Thread Ming Yang
Replace unsigned by unsigned int in fbtft driver. Issue found by checkpatch. Signed-off-by: Ming Yang --- drivers/staging/fbtft/fb_ili9320.c | 4 ++-- drivers/staging/fbtft/fb_ili9325.c | 10 +- drivers/staging/fbtft/fb_pcd8544.c | 4 ++-- drivers/staging/fbtft/fb_ssd1289.c |

[PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle

2016-07-17 Thread Peter Chen
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Peter Chen --- Changes for v2: - %s/of_put_node/of_node_put drivers/memory/emif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/emif.c b/drivers/memo

[GIT PULL] KEYS fixes

2016-07-17 Thread James Morris
Please pull these fixes for the keys code. >From David Howells: " Here are three miscellaneous fixes: (1) Fix a panic in some debugging code in PKCS#7. This can only happen by explicitly inserting a #define DEBUG into the code. (2) Fix the calculation of the digest length in the PE fil

linux-next: manual merge of the net-next tree with the net tree

2016-07-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/intel/i40e/i40e_main.c between commit: f6bd09625ba6 ("i40e: enable VSI broadcast promiscuous mode instead of adding broadcast filter") from the net tree and commit: 3e25a8f31af1 ("i40e: add hw

  1   2   3   >