[PATCH] ARM: decompressor: reset ttbcr fields to use TTBR0 on ARMv7

2016-09-11 Thread Srinivas Ramana
If the bootloader uses the long descriptor format and jumps to kernel decompressor code, TTBCR may not be in a right state. Before enabling the MMU, it is required to clear the TTBCR.PD0 field to use TTBR0 for translation table walks. The 'commit dbece45894d3a ("ARM: 7501/1: decompressor: reset tt

Re: drm/i915: undefined symbol I915_SW_FENCE_CHECK_DAG

2016-09-11 Thread Chris Wilson
On Mon, Sep 12, 2016 at 08:46:39AM +0200, Valentin Rothberg wrote: > Hi Chris, > > your commit e68a139f6bf3 ("drm/i915: Add a sw fence for collecting up > dma fences") has shown up in today's linux-next (i.e., 20160912) > adding the following the lines (184++): > > + if (!IS_ENABLED(CONFIG_

Re: [PATCH] pinctrl: cherryview: Do not mask all interrupts on probe

2016-09-11 Thread Phidias Chiang
On Sun, Sep 11, 2016 at 11:05:06AM +0300, Mika Westerberg wrote: > On Fri, Sep 09, 2016 at 11:58:32AM +0300, Mika Westerberg wrote: > > On Fri, Sep 09, 2016 at 04:23:58PM +0800, Phidias Chiang wrote: > > > > Only other place where we touch INTMASK register is > > chv_gpio_irq_mask_unmask(). Can yo

RE: [v11, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-11 Thread Y.B. Lu
Hi Scott, Thanks for your review :) See my comment inline. > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Friday, September 09, 2016 11:47 AM > To: Y.B. Lu; linux-...@vger.kernel.org; ulf.hans...@linaro.org; Arnd > Bergmann > Cc: linuxppc-...@lists.ozlabs.org;

Re: [PATCH] logfs: remove from tree

2016-09-11 Thread Artem Bityutskiy
On Sun, 2016-09-11 at 15:04 +0200, Christoph Hellwig wrote: > Logfs was introduced to the kernel in 2009, and hasn't seen any non > drive-by changes since 2012, while having lots of unsolved issues > including the complete lack of error handling, with more and more > issues popping up without any f

drm/i915: undefined symbol I915_SW_FENCE_CHECK_DAG

2016-09-11 Thread Valentin Rothberg
Hi Chris, your commit e68a139f6bf3 ("drm/i915: Add a sw fence for collecting up dma fences") has shown up in today's linux-next (i.e., 20160912) adding the following the lines (184++): + if (!IS_ENABLED(CONFIG_I915_SW_FENCE_CHECK_DAG)) + return false; The Kconfig symbol isn't

[PATCH] blk-throttle: fix infinite throttling caused by non-cascading timer wheel

2016-09-11 Thread Hou Tao
Due to commit 500462a9de65 ("timers: Switch to a non-cascading wheel"), the slack of timer increases when the timeout increases: So for HZ=250 we end up with the following granularity levels: Level Offset Granularity Range 0 0 4 ms 0 ms -

Re: [PATCH 19/26] intel_pstate: constify local structures

2016-09-11 Thread Viresh Kumar
On 11-09-16, 15:06, Julia Lawall wrote: > For structure types defined in the same file or local header files, find > top-level static structure declarations that have the following > properties: > 1. Never reassigned. > 2. Address never taken > 3. Not passed to a top-level macro call > 4. No pointe

[PATCH V2] cpufreq: create link to policy only for registered CPUs

2016-09-11 Thread Viresh Kumar
If a cpufreq driver is registered very early in the boot stage (e.g. registered from postcore_initcall()), then cpufreq core may generate kernel warnings for it. In this case, the CPUs are brought online, then the cpufreq driver is registered, and then the CPU topology devices are registered. Howe

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-11 Thread Xiao Guangrong
On 09/12/2016 11:44 AM, Rudoff, Andy wrote: Whether msync/fsync can make data persistent depends on ADR feature on memory controller, if it exists everything works well, otherwise, we need to have another interface that is why 'Flush hint table' in ACPI comes in. 'Flush hint table' is particula

Re: linux-next: build failure after merge of the v4l-dvb tree

2016-09-11 Thread Hans Verkuil
On 09/12/2016 07:10 AM, Stephen Rothwell wrote: Hi all, After merging the dax-misc tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/media/platform/soc_camera/built-in.o:(.opd+0x678): multiple definition of `soc_mbus_config_compatible' drivers/media/platform/soc_c

Re: [RFC PATCH 1/2] mm, mincore2(): retrieve dax and tlb-size attributes of an address range

2016-09-11 Thread Oliver O'Halloran
On Mon, Sep 12, 2016 at 3:31 AM, Dan Williams wrote: > As evidenced by this bug report [1], userspace libraries are interested > in whether a mapping is DAX mapped, i.e. no intervening page cache. > Rather than using the ambiguous VM_MIXEDMAP flag in smaps, provide an > explicit "is dax" indicatio

[PATCH 5/7] perf ui/stdio: Reset output width for hierarchy

2016-09-11 Thread Namhyung Kim
When --hierarchy option is used, each entry has its own hpp_list to show the result. But it missed to update width of each column. Signed-off-by: Namhyung Kim --- tools/perf/ui/stdio/hist.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdi

[PATCH 3/7] perf hist: Introduce hists__link_hierarchy()

2016-09-11 Thread Namhyung Kim
The hists__link_hierarchy() is to support hierarchy report with event group. When it matches leader event and other members (with the hists__match_hierarchy), it also needs to link unmatched member entries with a dummy leader event so that it can show up in the output. Signed-off-by: Namhyung Kim

[PATCH 1/7] perf hists browser: Fix event group display

2016-09-11 Thread Namhyung Kim
Milian reported that the event group on TUI shows duplicated overhead. This was due to a bug on calculating hpp->buf position. The hpp_advance() was called from __hpp__slsmg_color_printf() on TUI but it's already called from the hpp__call_print_fn macro in __hpp__fmt(). The end result is that the

[PATCH 7/7] perf report: Enable group view with hierarchy

2016-09-11 Thread Namhyung Kim
Now all missing pieces are implemented, let's enable it. An example output below: $ perf report --hierarchy --stdio ... # Overhead Command / Shared Object / Symbol # .. .. # 25.74% 27.18%sh 19.96

[PATCH 4/7] perf hist: Initialize hierachy tree explicitly

2016-09-11 Thread Namhyung Kim
The hroot_in and hroot_out are root of hiearchy tree of hist entry. But as hist entry is initialized by copying existing template entry, it sometimes has non-empty tree and copied it incorrectly. This is a problem especially when event group is used since it creates dummy entries from already-pro

[PATCHSET 0/7] perf tools: Support hierarchy report with event group (v1)

2016-09-11 Thread Namhyung Kim
Hello, This patchset implements hierarchy mode with event group. It was disabled due to complexity when I wrote the hierarchy code, but there's no fundamental reason to do it. It's also available on 'perf/hierarchy-group-v1' branch in my tree: git://git.kernel.org/pub/scm/linux/kernel/git/nam

[PATCH 6/7] perf ui/tui: Reset output width for hierarchy

2016-09-11 Thread Namhyung Kim
When --hierarchy option is used, each entry has its own hpp_list to show the result. But it missed to update width of each column. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf

[PATCH 2/7] perf hist: Introduce hists__match_hierarchy()

2016-09-11 Thread Namhyung Kim
The hists__match_hierarchy() is to find matching hist entries in a group. It needs to search all matching children in the hierarchy. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/too

Re: [PATCH 01/26] ALSA: pci: constify local structures

2016-09-11 Thread Takashi Iwai
On Sun, 11 Sep 2016 15:05:43 +0200, Julia Lawall wrote: > > For structure types defined in the same file or local header files, find > top-level static structure declarations that have the following > properties: > 1. Never reassigned. > 2. Address never taken > 3. Not passed to a top-level macro

Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread Greg KH
On Mon, Sep 12, 2016 at 06:29:58AM +, vad...@mellanox.com wrote: > From: Vadim Pasternak > > Enable system support for the Mellanox Technologies platform, which > provides support for the next Mellanox basic systems: "msx6710", > "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800

RE: Memory fragmentation issue related suggestion request

2016-09-11 Thread PINTU KUMAR
Dear Ankur, I would suggest you register to linux...@kvack.org and explain your issues in details. There are other experts here, who can guide you. Few comments are inline below. > From: Ankur Tank [mailto:ankur.t...@lnttechservices.com] > Sent: Saturday, September 10, 2016 5:26 PM > To: pint..

Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread Greg KH
On Sun, Sep 11, 2016 at 10:34:27PM -0700, Guenter Roeck wrote: > > +static int mlxplat_lpc_config(struct mlxplat_priv *priv) > > +{ > > + struct pci_dev *pdev = NULL; > > + u16 dev_id; > > + int err; > > + > > + pdev = pci_get_bus_and_slot(MLXPLAT_CPLD_LPC_CTRL_IFC_BUS_ID, > > +

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-11 Thread Xiao Guangrong
On 09/09/2016 11:40 PM, Dan Williams wrote: On Fri, Sep 9, 2016 at 1:55 AM, Xiao Guangrong wrote: [..] Whether a persistent memory mapping requires an msync/fsync is a filesystem specific question. This mincore proposal is separate from that. Consider device-DAX for volatile memory or minc

[PATCH] net: inet: diag: Fix an error handling

2016-09-11 Thread Christophe JAILLET
If 'inet_diag_lock_handler()' returns an error, we should not call 'inet_diag_unlock_handler()' on it. 'handler' is not a valid mutexc in this case. This has been spotted with the folowing coccinelle script: @@ expression x; identifier f; @@ * if (IS_ERR(x)) {

RE: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-11 Thread Jun Li
Hi Guenter > -Original Message- > From: Guenter Roeck [mailto:gro...@google.com] > Sent: Saturday, September 10, 2016 10:23 AM > To: Jun Li > Cc: Guenter Roeck ; Felipe Balbi > ; Chandra Sekhar Anagani > ; Bruce Ashfield > ; Bin Gao ; Pranav Tipnis > ; Heikki Krogerus > ; linux-kernel@vge

ACPI/APD Making Module

2016-09-11 Thread Shah, Nehal-bakulchandra
Hi, Current implementation of acpi_apd.c makes AMD I2C,GPIO and UART from acpi devices to platform devices. This is done as part of boot sequence. For some reason i would like to make it kernel module. The current implementation calls acpi_apd_create_device as part of attach callback. Now this

linux-next: Tree for Sep 12

2016-09-11 Thread Stephen Rothwell
Hi all, Changes since 20160909: The arm64 tree gained a conflict against Linus' tree. The btrfs-kdave tree lost its build failure. The v4l-dvb tree gained a build failure for which I reverted a commit. The net-next tree gained a conflict against the net tree. The kbuild tree still had its bui

Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread Guenter Roeck
On 09/11/2016 11:29 PM, vad...@mellanox.com wrote: From: Vadim Pasternak Enable system support for the Mellanox Technologies platform, which provides support for the next Mellanox basic systems: "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740", "msn2100" an

Re: [PATCH V4] mm: Add sysfs interface to dump each node's zonelist information

2016-09-11 Thread Anshuman Khandual
On 09/09/2016 01:54 AM, Dave Hansen wrote: > On 09/07/2016 07:46 PM, Anshuman Khandual wrote: >> > after memory or node hot[un]plug is desirable. This change adds one >> > new sysfs interface (/sys/devices/system/memory/system_zone_details) >> > which will fetch and dump this information. > Doesn't

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-11 Thread Christoph Hellwig
On Thu, Sep 08, 2016 at 04:56:36PM -0600, Ross Zwisler wrote: > I think this goes back to our previous discussion about support for the PMEM > programming model. Really I think what NVML needs isn't a way to tell if it > is getting a DAX mapping, but whether it is getting a DAX mapping on a > file

RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread Vadim Pasternak
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Monday, September 12, 2016 7:42 AM > To: Vadim Pasternak ; t...@linutronix.de > Cc: mi...@redhat.com; da...@davemloft.net; ge...@linux-m68k.org; > a...@linux-foundation.org; gre...@linuxfoundation.org; > kv...@cod

Re: [PATCH V4] mm: Add sysfs interface to dump each node's zonelist information

2016-09-11 Thread Anshuman Khandual
On 09/09/2016 07:06 PM, Michal Hocko wrote: > On Thu 08-09-16 08:16:58, Anshuman Khandual wrote: >> > Each individual node in the system has a ZONELIST_FALLBACK zonelist >> > and a ZONELIST_NOFALLBACK zonelist. These zonelists decide fallback >> > order of zones during memory allocations. Sometimes

Use of schedule() function while holding a lock in ql4_nx.c

2016-09-11 Thread Vaishali Thakkar
Hello, I was wondering about the call to schedule in function qla4_82xx_crb_win_lock for driver drivers/scsi/qla4xxx/ql4_nx.c. It is called in 2 functions [qla4_82xx_rd_32 and qla4_82xx_wr_32] while holding a write_lock_irqsave. Normally we avoid using sleeping functions while holding a lock. I

Re: [PATCH] logfs: remove from tree

2016-09-11 Thread Christoph Hellwig
On Mon, Sep 12, 2016 at 11:53:19AM +1000, Dave Chinner wrote: > Wasn't the lib/btree.c implementation introduced with and only used > by logfs? Should that go as well? The qla2xxx SCSI target driver also uses the btree library.

linux-next: build failure after merge of the v4l-dvb tree

2016-09-11 Thread Stephen Rothwell
Hi all, After merging the dax-misc tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/media/platform/soc_camera/built-in.o:(.opd+0x678): multiple definition of `soc_mbus_config_compatible' drivers/media/platform/soc_camera/soc_mediabus.o:(.opd+0x78): first defined he

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Leon Romanovsky
On Sun, Sep 11, 2016 at 11:52:35AM -0600, Jason Gunthorpe wrote: > On Sun, Sep 11, 2016 at 07:24:45PM +0200, Christoph Hellwig wrote: > > > > > I've posted some initial work toward a) a while ago, and once we > > > > > > Did it get merged? Do you have a pointer? > > > > http://www.spinics.net/lists

Re: [PATCH 07/26] net/mlx4_core: constify local structures

2016-09-11 Thread Leon Romanovsky
On Sun, Sep 11, 2016 at 03:05:49PM +0200, Julia Lawall wrote: > For structure types defined in the same file or local header files, find > top-level static structure declarations that have the following > properties: > 1. Never reassigned. > 2. Address never taken > 3. Not passed to a top-level mac

Re: [PATCH] IB/rdmavt: free the userspace memory region with kfree instead of vfree

2016-09-11 Thread Leon Romanovsky
On Fri, Sep 09, 2016 at 08:15:37AM +0100, Colin King wrote: > From: Colin Ian King > > The userspace memory region 'mr' is allocated with kzalloc in > __rvt_alloc_mr however it is incorrectly being freed with vfree in > __rvt_free_mr. Fix this by using kfree to free it. > > Signed-off-by: Colin I

Re: [PATCH] drivers/edac: NO_IRQ removal from powerpc-only drivers

2016-09-11 Thread Michael Ellerman
Borislav Petkov writes: > On Sat, Sep 10, 2016 at 07:57:08PM +1000, Michael Ellerman wrote: >> We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it >> from powerpc-only drivers. >> >> Signed-off-by: Michael Ellerman >> --- >> drivers/edac/mpc85xx_edac.c | 6 +++--- >> drive

Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread H. Peter Anvin
On September 11, 2016 11:29:58 PM PDT, vad...@mellanox.com wrote: >From: Vadim Pasternak > >Enable system support for the Mellanox Technologies platform, which >provides support for the next Mellanox basic systems: "msx6710", >"msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", >"msn

[patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-11 Thread vadimp
From: Vadim Pasternak Enable system support for the Mellanox Technologies platform, which provides support for the next Mellanox basic systems: "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740", "msn2100" and also various number of derivative systems from the

Re: [PATCH v2 06/33] Documentation, x86: Documentation for Intel resource allocation user interface

2016-09-11 Thread Shaohua Li
On Sat, Sep 10, 2016 at 12:36:57AM +, Yu, Fenghua wrote: > > > Hmm, I don't know how applications are going to use the interface. > > > Nobody knows it right now. But we do have some candicate workloads > > > which want to configure the cache partition at runtime, so it's not > > > just a boot

[PATCH v2] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-11 Thread Joonwoo Park
A discrepancy between cpu_online_mask and cpuset's effective_cpus mask is inevitable during hotplug since cpuset defers updating of effective_cpus mask using a workqueue, during which time nothing prevents the system from more hotplug operations. For that reason guarantee_online_cpus() walks up th

Re: [PATCH] tpm: fix buffer overflow in /dev/tpm0

2016-09-11 Thread Jason Gunthorpe
On Sun, Sep 11, 2016 at 03:19:00PM +0300, Jarkko Sakkinen wrote: > tpm_write() does not check whether the buffer has at least enough space > for the header before passing it to tpm_transmit() so an overflow can > happen. Eh? tpm_write uses a hard wired buffer size of TPM_BUFSIZE when working with

Re: [PATCH] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-11 Thread Joonwoo Park
On Mon, Sep 12, 2016 at 10:48:31AM +0800, Zefan Li wrote: > Cc: Tejun > > On 2016/9/9 8:41, Joonwoo Park wrote: > > Discrepancy between cpu_online_mask and cpuset's effective CPU masks on > > cpuset hierarchy is inevitable since cpuset defers updating of > > effective CPU masks with workqueue whil

mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-09-11 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9395452b4aab7bc2475ef8935b4a4fb99d778d70 commit: c1a0e9bc885d46e519fd87d35af6a7937abfb986 MIPS: Allow compact branch policy to be changed date: 11 months ag

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-11 Thread Rudoff, Andy
>Whether msync/fsync can make data persistent depends on ADR feature on >memory controller, if it exists everything works well, otherwise, we need >to have another interface that is why 'Flush hint table' in ACPI comes >in. 'Flush hint table' is particularly useful for nvdimm virtualization if >we

Re: [RFC PATCH 1/2] mm, mincore2(): retrieve dax and tlb-size attributes of an address range

2016-09-11 Thread Nicholas Piggin
On Sun, 11 Sep 2016 10:31:35 -0700 Dan Williams wrote: > As evidenced by this bug report [1], userspace libraries are interested > in whether a mapping is DAX mapped, i.e. no intervening page cache. > Rather than using the ambiguous VM_MIXEDMAP flag in smaps, provide an > explicit "is dax" indica

[PATCH v2] mm, proc: Fix region lost in /proc/self/smaps

2016-09-11 Thread Xiao Guangrong
Recently, Redhat reported that nvml test suite failed on QEMU/KVM, more detailed info please refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1365721 Actually, this bug is not only for NVDIMM/DAX but also for any other file systems. This simple test case abstracted from nvml can easily rep

Re: [PATCH] powerpc: set used_vsr/used_vr/used_spe in sigreturn path when MSR bits are active

2016-09-11 Thread Simon Guo
On Tue, Jul 26, 2016 at 04:06:01PM +0800, wei.guo.si...@gmail.com wrote: > From: Simon Guo > > Normally, when MSR[VSX/VR/SPE] bits = 1, the used_vsr/used_vr/used_spe > bit have already been set. However signal frame locates at user space > and it is controlled by user application. It is up to ker

Linux 4.8-rc6

2016-09-11 Thread Linus Torvalds
Things calmed down, and look very normal. About two thirds driver updates, with half of the remainder being misc architecture updates, and the rest being random stuff (some fs/crypto fixes etc). Of course, just minutes after I pushed it out, David sent me the networking pull request, so there's pe

Re: [PATCH v4 3/3] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-09-11 Thread CK Hu
Hi, Bibby: Sorry for the late reply. On Wed, 2016-08-17 at 14:58 +0800, Bibby Hsieh wrote: > From: Junzhi Zhao > > Pixel clock should be 297MHz when resolution is 4K. > >From the code you modified, I think title should be: "Enlarge pll_rate range from (, ) to (, )" In description, you can ex

RE: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-11 Thread Jun Li
> -Original Message- > From: Guenter Roeck [mailto:gro...@google.com] > Sent: Monday, September 12, 2016 10:24 AM > To: Jun Li > Cc: Guenter Roeck ; Felipe Balbi > ; Chandra Sekhar Anagani > ; Bruce Ashfield > ; Bin Gao ; Pranav Tipnis > ; Heikki Krogerus > ; linux-kernel@vger.kernel.org

[GIT] Networking

2016-09-11 Thread David Miller
Mostly small sets of driver fixes scattered all over the place. 1) Mediatek driver fixes from Sean Wang. Forward port not written correctly during TX map, missed handling of EPROBE_DEFER, and mistaken use of put_page() instead of skb_free_frag(). 2) Fix socket double-free in KCM code, fro

Re: [PATCH 0/9] tty: tty_struct dependency clean-ups

2016-09-11 Thread Rob Herring
On Sun, Sep 11, 2016 at 4:14 PM, One Thousand Gnomes wrote: > On Fri, 9 Sep 2016 17:37:01 -0500 > Rob Herring wrote: > >> This patch series removes or prepares to remove some of the dependencies >> on tty_struct within tty_port drivers. This will allow using tty_ports >> directly for so called U

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

2016-09-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: include/linux/jump_label.h between commit: ef0da55a84a3 ("jump_labels: Allow array initialisers") from the arm64 tree and commit: b8fb03785d4d ("locking/static_keys: Provide DECLARE and well as DEFINE macros") from th

Re: linux-next: manual merge of the kbuild tree with Linus' tree

2016-09-11 Thread Nicholas Piggin
On Mon, 12 Sep 2016 11:32:24 +1000 Stephen Rothwell wrote: > Hi Michal, > > Today's linux-next merge of the kbuild tree got a conflict in: > > arch/Kconfig > > between commit: > > 0f60a8efe400 ("mm: Implement stack frame object validation") > > from Linus' tree and commits: > > a5967d

[PATCH] iommu/vt-d: Fix the size calculation of pasid table

2016-09-11 Thread Xunlei Pang
According to the vt-d spec, the size of pasid (state) entry is 8B which equals 3 in power of 2, the number of pasid (state) entries is (ecap_pss + 1) in power of 2. Thus the right size of pasid (state) table in power of 2 should be ecap_pss(iommu->ecap) plus "1+3=4" other than 7. Signed-off-by: X

Re: [PATCH] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-11 Thread Zefan Li
Cc: Tejun On 2016/9/9 8:41, Joonwoo Park wrote: > Discrepancy between cpu_online_mask and cpuset's effective CPU masks on > cpuset hierarchy is inevitable since cpuset defers updating of > effective CPU masks with workqueue while nothing prevents system from > doing CPU hotplug. For that reason g

Re: [PATCH 25/26] pch_gbe: constify local structures

2016-09-11 Thread David Miller
Julia, I went over the networking driver patches in this series and I have to say that I'd rather see these changes be more durable and self-checking. By this I mean that I want you to also make the driver private pointer that holds these structures be const too. Then if there are really any ass

Re: crash by cdc_acm driver in kernels 4.8-rc1/5

2016-09-11 Thread Wim Osterholt
On Thu, Sep 08, 2016 at 03:05:15PM +0200, Oliver Neukum wrote: > > your stack trace is broken. Did you fail to install the System.map file? > > Regards > Oliver A laptop, more broken than the rest, does not output anything after inserting. Later on it crashes. No system.map f

Re: [PATCH] extcon: Introduce EXTCON_PROP_DISP_HPD property

2016-09-11 Thread Chanwoo Choi
Hi Guenter, On 2016년 09월 12일 11:29, Guenter Roeck wrote: > On Sun, Sep 11, 2016 at 7:23 PM, Chanwoo Choi wrote: >> Hi Chris, >> >> On 2016년 09월 12일 10:03, Chanwoo Choi wrote: >>> Hi Chris, >>> >>> On 2016년 09월 10일 09:33, Chris Zhong wrote: EXTCON_PROP_DISP_HPD is need by display port, if the

Re: [PATCH] MAINTAINERS: Add MFD's DT bindings directory to MFD entry

2016-09-11 Thread Andrew Jeffery
On Thu, 2016-09-08 at 09:07 +0100, Lee Jones wrote: > Signed-off-by: Lee Jones Reviewed-by: Andrew Jeffery > --- >  MAINTAINERS | 1 + >  1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index a306795..022da8c 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -7945,

Re: Question on smp_mb__before_spinlock

2016-09-11 Thread Nicholas Piggin
On Wed, 7 Sep 2016 14:51:47 +0100 Will Deacon wrote: > On Wed, Sep 07, 2016 at 03:23:54PM +0200, Peter Zijlstra wrote: > > On Wed, Sep 07, 2016 at 10:17:26PM +1000, Nicholas Piggin wrote: > > > It seems okay, but why not make it a special sched-only function name > > > to prevent it being used

Re: [PATCH] extcon: Introduce EXTCON_PROP_DISP_HPD property

2016-09-11 Thread Guenter Roeck
On Sun, Sep 11, 2016 at 7:23 PM, Chanwoo Choi wrote: > Hi Chris, > > On 2016년 09월 12일 10:03, Chanwoo Choi wrote: >> Hi Chris, >> >> On 2016년 09월 10일 09:33, Chris Zhong wrote: >>> EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd >>> interrupt, this property can be used. >> >>

Re: Question on smp_mb__before_spinlock

2016-09-11 Thread Nicholas Piggin
On Wed, 7 Sep 2016 15:23:54 +0200 Peter Zijlstra wrote: > On Wed, Sep 07, 2016 at 10:17:26PM +1000, Nicholas Piggin wrote: > > > /* > > > + * This barrier must provide two things: > > > + * > > > + * - it must guarantee a STORE before the spin_lock() is ordered > > > against a > > > + * L

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-11 Thread Guenter Roeck
On Sun, Sep 11, 2016 at 7:16 PM, Jun Li wrote: > Hi Guenter > >> -Original Message- >> From: Guenter Roeck [mailto:gro...@google.com] >> Sent: Saturday, September 10, 2016 10:23 AM >> To: Jun Li >> Cc: Guenter Roeck ; Felipe Balbi >> ; Chandra Sekhar Anagani >> ; Bruce Ashfield >> ; Bin G

Re: [PATCH] extcon: Introduce EXTCON_PROP_DISP_HPD property

2016-09-11 Thread Chanwoo Choi
Hi Chris, On 2016년 09월 12일 10:03, Chanwoo Choi wrote: > Hi Chris, > > On 2016년 09월 10일 09:33, Chris Zhong wrote: >> EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd >> interrupt, this property can be used. > > What is meaning of HPD? So, you need to add the > description an

RE: Kernel panic - encryption/decryption failed when open file on Arm64

2016-09-11 Thread liushuoran
Hi Ard, Thanks for the prompt reply. With the patch, there is no panic anymore. But it seems that the encryption/decryption is not successful anyway. As Herbert points out, "If the page allocation fails in blkcipher_walk_next it'll simply switch over to processing it block by block". So does th

Re: [PATCH 4/4] clk: mediatek: Add MT6797 clock support

2016-09-11 Thread Mars Cheng
Hi Stephen Thanks for your review. Response inlined. On Thu, 2016-09-08 at 12:50 -0700, Stephen Boyd wrote: > On 09/08/2016 03:49 AM, Mars Cheng wrote: > > Add MT6797 clock support, include topckgen, apmixedsys, > > infracfg and subsystem clocks. > > > > Signed-off-by: Mars Cheng > > --- > > ar

Re: [PATCH v2] extcon: Add support for qcom SPMI PMIC USB id detection hardware

2016-09-11 Thread Chanwoo Choi
Hi Stephen, Looks good to me. But, there are something that need to be modified. - add the author information - add the description of driver - use the extcon_set_state() instead of extcon_set_cable_state_() I modified this patch and applied it because I should send the pull request within this w

Re: [PATCH] pinctrl: ret needs to be an int for -ve return value from regmap_update_bits

2016-09-11 Thread Andrew Jeffery
On Sun, 2016-09-11 at 09:36 +0100, Colin King wrote: > From: Colin Ian King > > Macro regmap_update_bits can return a -ve on an error value so ret > needs to be an integer rather than a bool type. > > Fixes warning found by static analysis with cppcheck: > [drivers/pinctrl/aspeed/pinctrl-aspeed.

Re: [PATCH] logfs: remove from tree

2016-09-11 Thread Dave Chinner
On Sun, Sep 11, 2016 at 03:04:22PM +0200, Christoph Hellwig wrote: > Logfs was introduced to the kernel in 2009, and hasn't seen any non > drive-by changes since 2012, while having lots of unsolved issues > including the complete lack of error handling, with more and more > issues popping up withou

Re: [PATCH] pinctrl: aspeed: fix regmap error handling

2016-09-11 Thread Andrew Jeffery
On Mon, 2016-09-12 at 10:52 +0930, Joel Stanley wrote: > On Fri, Sep 9, 2016 at 6:56 PM, Arnd Bergmann wrote: > > > > The newly added aspeed driver tries to check for a negative return > > value from a pinctrl function, but stores the intermediate value in > > a 'bool' variable, which cannot work

Re: [PATCH v3] arm64: Improve kprobes test for atomic sequence

2016-09-11 Thread David Long
On 09/10/2016 01:48 AM, Masami Hiramatsu wrote: On Fri, 9 Sep 2016 15:26:09 -0400 David Long wrote: From: "David A. Long" Kprobes searches backwards a finite number of instructions to determine if there is an attempt to probe a load/store exclusive sequence. It stops when it hits the maximu

Re: [PATCH 1/4] Document: DT: Add bindings for mediatek MT6797 SoC Platform

2016-09-11 Thread Mars Cheng
On Thu, 2016-09-08 at 15:32 +0100, Marc Zyngier wrote: > On 08/09/16 15:08, Mars Cheng wrote: > > Hi Marc > > > > Thanks for your review. the response inlined. > > > > On Thu, 2016-09-08 at 13:37 +0100, Marc Zyngier wrote: > >> On 08/09/16 11:49, Mars Cheng wrote: > >>> This adds DT binding docum

[PATCH v3] pwm: add pwm driver for HiSilicon BVT SOCs

2016-09-11 Thread Jian Yuan
From: yuanjian Add PWM driver for the PWM controller found on HiSilicon BVT SOCs, like Hi3519V100, Hi3516CV300, etc. The PWM controller is primarily in charge of controlling P-Iris lens. Reviewed-by: Jiancheng Xue Signed-off-by: Jian Yuan --- Change Log: v3: Add PWM compatible string for Hi35

Re: [PATCH 2/2] clocksource/drivers/moxart: Replace panic by pr_err

2016-09-11 Thread Joel Stanley
On Thu, Sep 8, 2016 at 11:28 PM, Daniel Lezcano wrote: > The clksrc-of code is supposed to catch the return code and fail gracefully. > > Don't panic on error, but print the error and exit with a relevant error > code. > > Signed-off-by: Daniel Lezcano Acked-by: Joel Stanley > --- > drivers/c

Re: [PATCH 1/2] clocksource/drivers/moxart: Replace setup_irq by request_irq

2016-09-11 Thread Joel Stanley
On Thu, Sep 8, 2016 at 11:28 PM, Daniel Lezcano wrote: > Save memory space and line of code by replacing setup_irq by request_irq. Thanks. I also gave it a spin on our hardware to be sure. > Signed-off-by: Daniel Lezcano Acked-by: Joel Stanley > --- > drivers/clocksource/moxart_timer.c | 8

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-11 Thread Dave Chinner
On Thu, Sep 08, 2016 at 04:56:36PM -0600, Ross Zwisler wrote: > On Wed, Sep 07, 2016 at 09:32:36PM -0700, Dan Williams wrote: > > My understanding is that it is looking for the VM_MIXEDMAP flag which > > is already ambiguous for determining if DAX is enabled even if this > > dynamic listing issue i

[PATCH] autofs - use dentry flags to block walks during expire

2016-09-11 Thread Ian Kent
Somewhere along the way the autofs expire operation has changed to hold a spin lock over expired dentry selection. The autofs indirect mount expired dentry selection is complicated and quite lengthy so it isn't appropriate to hold a spin lock over the operation. Commit 47be6184 added a might_sleep

Re: [PATCH] dm: Return correct value in retry loop

2016-09-11 Thread Minfei Huang
Ping. Any comment is appreciate. Thanks Minfei On 09/06/16 at 04:00P, Minfei Huang wrote: > dm_resume will return sliently in retry loop's failure. Assign a correct > return value in the failed loop. > > Remove a useless assignment as well. > > Signed-off-by: Minfei Huang > --- > drivers/md/

linux-next: manual merge of the kbuild tree with Linus' tree

2016-09-11 Thread Stephen Rothwell
Hi Michal, Today's linux-next merge of the kbuild tree got a conflict in: arch/Kconfig between commit: 0f60a8efe400 ("mm: Implement stack frame object validation") from Linus' tree and commits: a5967db9af51 ("kbuild: allow architectures to use thin archives instead of ld -r") b67067f

Re: [PATCH] pinctrl: aspeed: fix regmap error handling

2016-09-11 Thread Joel Stanley
On Fri, Sep 9, 2016 at 6:56 PM, Arnd Bergmann wrote: > The newly added aspeed driver tries to check for a negative return > value from a pinctrl function, but stores the intermediate value in > a 'bool' variable, which cannot work: > > drivers/pinctrl/aspeed/pinctrl-aspeed.c: In function 'aspeed_s

Re: [PATCH] extcon: Introduce EXTCON_PROP_DISP_HPD property

2016-09-11 Thread Chanwoo Choi
Hi Chris, On 2016년 09월 10일 09:33, Chris Zhong wrote: > EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd > interrupt, this property can be used. What is meaning of HPD? So, you need to add the description and reference for HPD in commit message. For example, When adding EXTC

Re: [PATCH 0/6] KVM: PPC: e500: Fine-tuning for two function implementations

2016-09-11 Thread Paul Mackerras
On Sun, Aug 28, 2016 at 07:09:57PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 28 Aug 2016 19:01:02 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (6): > Use kmalloc_array() in kvm_vcpu_ioctl_config_tl

Re: [PATCH v2] powerpc: move hmi.c to arch/powerpc/kvm/

2016-09-11 Thread Paul Mackerras
On Thu, Aug 11, 2016 at 03:07:43PM +0200, Paolo Bonzini wrote: > hmi.c functions are unused unless sibling_subcore_state is nonzero, and > that in turn happens only if KVM is in use. So move the code to > arch/powerpc/kvm/, putting it under CONFIG_KVM_BOOK3S_HV_POSSIBLE > rather than CONFIG_PPC_BO

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

2016-09-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/phy/Kconfig between commit: c2f57fb97da5 ("drivers: net: phy: mdio-xgene: Add hardware dependency") from the net tree and commit: d75b4a22b255 ("net: phy: Sort Makefile and Kconfig") from the net-next

drivers/iio/pressure/bmp280-core.c:985: undefined reference to `devm_gpiod_get'

2016-09-11 Thread kbuild test robot
Hi Linus, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bd0b841fee49de421f615cc173ccff063303672f commit: 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 gpio: Fix OF build problem on UM date: 3 weeks ag

[PATCH] prctl,x86 Add PR_[GET|SET]_CPUID for controlling the CPUID instruction.

2016-09-11 Thread Kyle Huey
rr (http://rr-project.org/), a userspace record-and-replay reverse- execution debugger, would like to trap and emulate the CPUID instruction. This would allow us to a) mask away certain hardware features that rr does not support (e.g. RDRAND) and b) enable trace portability across machines by provi

Re: [PATCH 6/6] KVM: PPC: e500: Rename jump labels in kvmppc_e500_tlb_init()

2016-09-11 Thread Paul Mackerras
On Sun, Aug 28, 2016 at 07:19:22PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 28 Aug 2016 18:45:26 +0200 > > Adjust jump labels according to the current Linux coding style convention. > > Signed-off-by: Markus Elfring With this I get a compile error: CC arch/po

linux-next: manual merge of the arm64 tree with Linus' tree

2016-09-11 Thread Stephen Rothwell
Hi Catalin, Today's linux-next merge of the arm64 tree got a conflict in: drivers/perf/arm_pmu.c between commit: 63fb0a9516b2 ("drivers/perf: arm_pmu: Fix NULL pointer dereference during probe") from Linus' tree and commit: 282b87963556 ("drivers/perf: arm_pmu: Always consider IRQ0 as

Re: [PATCH] mm: check VMA flags to avoid invalid PROT_NONE NUMA balancing

2016-09-11 Thread Lorenzo Stoakes
[adding lkml, accidentally excluded!] On 11 September 2016 at 23:54, Lorenzo Stoakes wrote: > The NUMA balancing logic uses an arch-specific PROT_NONE page table flag > defined > by pte_protnone() or pmd_protnone() to mark PTEs or huge page PMDs > respectively > as requiring balancing upon a su

Re: [PATCH v2 2/9] ext2: tell DAX the size of allocation holes

2016-09-11 Thread Ross Zwisler
On Sun, Sep 11, 2016 at 05:47:41AM -0700, Christoph Hellwig wrote: > On Sat, Sep 10, 2016 at 07:52:53AM +, Matthew Wilcox wrote: > > DAX code over to using iomap requires converting all of ext2 away from > > buffer_head; are you saying he's wrong? > > Not sure if he's really saying that, but i

[RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-11 Thread Janani Ravichandran
The objective of this patch is to help users observe latencies in memory allocation. The function graph tracer is great for seeing how long functions took to execute. And often, tracepoints, along with the tracer help understand situations better. However, while it is possible to set a threshold fo

Re: [BISECTED REGRESSION] v4.8-rc: gpio-leds broken on OCTEON

2016-09-11 Thread Aaro Koskinen
Hi, On Sun, Sep 11, 2016 at 02:41:39PM +0200, Thorsten Leemhuis wrote: > Hi! On 25.08.2016 20:24, Aaro Koskinen wrote: > > On Wed, Aug 24, 2016 at 11:42:00AM -0500, Steven J. Hill wrote: > >> It is actually two patches that cause the breakage. The other is: > >>commit e55aeb6ba4e8cc3549bff1e75

Re: [PATCH 1/8] ARM: dts: bcm283x: Define standard pinctrl groups in the gpio node.

2016-09-11 Thread Dave Stevenson
On 09/09/16 22:20, Eric Anholt wrote: e<#secure method=pgpmime mode=sign> Gerd Hoffmann writes: Hi, According to this page [1] the pinctrl group for parallel display interface is missing. Is it intended? [1] - http://elinux.org/RPi_BCM2835_GPIOs Just an oversight I guess. Eric? Does t

ERROR: "__ucmpdi2" [drivers/scsi/sd_mod.ko] undefined!

2016-09-11 Thread kbuild test robot
Hi Mike, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 98ac9a608dc79ba8a20cee77fe959a6dfccdaa63 commit: 4e1b2d52a80d79296a5d899d73249748dea71a53 block, fs, drivers: remove REQ_OP compat defs and related code date:

  1   2   3   >