Re: [PATCH] perf, tools: Fix adding multiple event groups

2017-09-17 Thread Jiri Olsa
On Thu, Sep 14, 2017 at 01:57:35PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The -M metric group parser threw away the events of earlier > groups when multiple groups were specified. Fix this here > by not overwriting the string incorrectly. > > Now this works correctly: > > % perf stat -

Re: [PATCH V5 2/3] mm: dmapool: Align to ARCH_DMA_MINALIGN innon-coherent DMA mode

2017-09-17 Thread 陈华才
Hi, Christoph, Maybe you missed something. 1, pool_alloc_page() use dma_alloc_coherent() to allocate pool pages, and of course these pages are aligned to ARCH_DMA_MINALIGN. 2, dma_pool_alloc() is the element allocator, but it doesn't use dma_alloc_coherent(). Elements only align to pool->size,

[GIT PULL] MMC fixes for v.4.14-rc2

2017-09-17 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple of MMC fixes intended for v4.14-rc2. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit c16a854e4463078aedad601fac76341760a66dd1: mmc: renesas_sdhi: Add r8a77

BUSINESS PROPOSAL

2017-09-17 Thread LING LUNG
Please I like you to keep this proposal as a top secret and delete it if you are not interested and get back to me if you are interested for details as regards to the transfer of $24,500,000 to you. This money initially belongs to a Libyan client who died in the libya crisis and had no next

[PATCH v4 3/3] media: ov7670: Add the s_power operation

2017-09-17 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: - Add the patch to support the get_fmt ops. - Remove the

[PATCH v4 1/3] media: ov7670: Add entity pads initialization

2017-09-17 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v4: - Fix the build error when not enabling Media Controller API option. Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 21 - 1 file changed, 20 insertions(+), 1 dele

[PATCH v4 2/3] media: ov7670: Add the get_fmt callback

2017-09-17 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v4: - Fix the build error when not enabling V4L2 sub-device userspace API option. Changes in v3: - Keep tried format info in the try_fmt member

[PATCH v4 0/3] media: ov7670: Add entity init and power operation

2017-09-17 Thread Wenyou Yang
This patch set is to add the media entity pads initialization, the s_power operation and get_fmt callback support. Changes in v4: - Fix the build error when not enabling Media Controller API option. - Fix the build error when not enabling V4L2 sub-device userspace API option. Changes in v3: -

Re: [PATCH] Revert "KVM: Don't accept obviously wrong gsi values via KVM_IRQFD"

2017-09-17 Thread Michael Ellerman
"Jan H. Schönherr" writes: > This reverts commit 36ae3c0a36b7456432fedce38ae2f7bd3e01a563. > > The commit broke compilation on !CONFIG_HAVE_KVM_IRQ_ROUTING. Also, > there may be cases with CONFIG_HAVE_KVM_IRQ_ROUTING, where larger > gsi values make sense. > > As the commit was meant as an early i

Re: rcu kernel-doc issues (4.14-rc1)

2017-09-17 Thread Markus Heiser
> Am 17.09.2017 um 03:26 schrieb Randy Dunlap : > > On 4.14-rc1, I am seeing lots of warnings on rcu kernel-doc: > > .. kernel-doc:: include/linux/rcupdate.h > :external: > ./Documentation/core-api/kernel-api.rst:357: ERROR: Error in "kernel-doc" > directive: > unknown option: "external". FYI

[PATCH v2 5/5] media: atmel-isc: Rework the format list

2017-09-17 Thread Wenyou Yang
To improve the readability of code, split the format array into two, one for the format description, other for the register configuration. Meanwhile, add the flag member to indicate the format can be achieved from the sensor or be produced by the controller, and rename members related to the regist

[PATCH v2 4/5] media: atmel-isc: Remove unnecessary member

2017-09-17 Thread Wenyou Yang
Remove the memeber *config from the isc_subdev_entity struct, the member is useless afterward. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/atmel

[PATCH v2 3/5] media: atmel-isc: Enable the clocks during probe

2017-09-17 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- Changes in v2: None

[PATCH v2 2/5] media: atmel-isc: Add prepare and unprepare ops

2017-09-17 Thread Wenyou Yang
A software write operation to the ISC_CLKEN or ISC_CLKDIS register requires double clock domain synchronization and is not permitted when the ISC_SR.SIP is asserted. So add the .prepare and .unprepare ops to make sure the ISC_CLKSR.SIP is unasserted before the write operation to the ISC_CLKEN or IS

[PATCH v2 1/5] media: atmel_isc: Add spin lock for clock enable ops

2017-09-17 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/medi

[PATCH v2 0/5] media: atmel-isc: Rework the format list and the clock

2017-09-17 Thread Wenyou Yang
To improve the readability of code, rework the format list table, split the format array into two. Meanwhile, fix the clock operation issue. Changes in v2: - Add the new patch to remove the unnecessary member from isc_subdev_entity struct. - Rebase on the patch set, [PATCH 0/6] [media

Re: [PATCH for 4.9 01/39] net: core: Prevent from dereferencing null pointer when releasing SKB

2017-09-17 Thread Greg KH
On Mon, Sep 18, 2017 at 12:19:36AM +, Levin, Alexander (Sasha Levin) wrote: > From: Myungho Jung > > [ Upstream commit 9899886d5e8ec5b343b1efe44f185a0e68dc6454 ] > > Added NULL check to make __dev_kfree_skb_irq consistent with kfree > family of functions. > > Link: https://bugzilla.kernel.o

Re: [PATCH 2/2] mm/memory_hotplug: define find_{smallest|biggest}_section_pfn as unsigned long

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 22:53:49, YASUAKI ISHIMATSU wrote: > find_{smallest|biggest}_section_pfn()s find the smallest/biggest section > and return the pfn of the section. But the functions are defined as int. > So the functions always return 0x - 0x. It means > if memory address is over 16T

Re: [PATCH 1/2] mm/memory_hotplug: Change pfn_to_section_nr/section_nr_to_pfn macro to inline function

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 22:52:20, YASUAKI ISHIMATSU wrote: > pfn_to_section_nr() and section_nr_to_pfn() are defined as macro. > pfn_to_section_nr() has no issue even if it is defined as macro. > But section_nr_to_pfn() has overflow issue if sec is defined as int. > > section_nr_to_pfn() just shifts sec b

Re: [PATCH] mm/memcg: avoid page count check for zone device

2017-09-17 Thread Michal Hocko
On Sun 17-09-17 10:45:34, Jerome Glisse wrote: > On Fri, Sep 15, 2017 at 09:01:00AM +0200, Michal Hocko wrote: > > On Thu 14-09-17 15:00:11, jgli...@redhat.com wrote: > > > From: Jérôme Glisse > > > > > > Fix for 4.14, zone device page always have an elevated refcount > > > of one and thus page c

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 14:08:07, Roman Gushchin wrote: > On Fri, Sep 15, 2017 at 12:55:55PM -0700, David Rientjes wrote: > > On Fri, 15 Sep 2017, Roman Gushchin wrote: > > > > > > But then you just enforce a structural restriction on your configuration > > > > because > > > > root > > > >

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 12:55:55, David Rientjes wrote: > On Fri, 15 Sep 2017, Roman Gushchin wrote: > > > > But then you just enforce a structural restriction on your configuration > > > because > > > root > > > / \ > > >AD > > > /\ > > > B C > > > > > > is a differ

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 08:23:01, Roman Gushchin wrote: > On Fri, Sep 15, 2017 at 12:58:26PM +0200, Michal Hocko wrote: > > On Thu 14-09-17 09:05:48, Roman Gushchin wrote: > > > On Thu, Sep 14, 2017 at 03:40:14PM +0200, Michal Hocko wrote: > > > > On Wed 13-09-17 14:56:07, Roman Gushchin wrote: > > > > > O

Re: scheduling while atomic from vmci_transport_recv_stream_cb in 3.16 kernels

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 18:12:15, Ben Hutchings wrote: > On Thu, 2017-09-14 at 10:59 +0200, Michal Hocko wrote: > > On Wed 13-09-17 18:58:13, Jorgen S. Hansen wrote: > > [...] > > > The patch series look good to me. > > > > Thanks for double checking. Ben, could you merge this to 3.16 stable > > branch, p

Re: + include-linux-sched-mmh-uninline-mmdrop_async-etc.patch added to -mm tree

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 11:05:20, Andrew Morton wrote: > On Fri, 15 Sep 2017 09:12:28 +0200 Michal Hocko wrote: > > > On Fri 15-09-17 09:07:31, Michal Hocko wrote: > > > On Thu 14-09-17 13:19:38, Andrew Morton wrote: > > > > From: Andrew Morton > > > > Subject: include/linux/sched/mm.h: uninline mmdrop_

[PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index f709f6f..89bab68 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builti

[PATCH 2/4] Makes all those related functions receive the FILE pointer

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 247 1 file changed, 136 insertions(+), 111 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 91b5225..f709f6f 100644 --- a/tools/perf/builtin-script.c

[PATCH 4/4] Replace printf with fprintf for all the output functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 187 +++- 1 file changed, 99 insertions(+), 88 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 89bab68..0d206b2 100644 --- a/tools/perf/builtin-script.c +

[PATCH 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 11 ++- tools/perf/util/tool.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 378f76c..91b5225 100644 --- a/tools/perf/builtin-script.c

[PATCH 0/4] perf script: Add script per-event-dump support

2017-09-17 Thread yuzhoujian
Introduce a new option to print trace output to files named by the monitored events and update perf-script documentation accordingly. Shown below is output of perf script command with the newly introduced option. $perf record -e cycles -e context-switches -ag -- sleep 10 $perf scr

Re: Detecting page cache trashing state

2017-09-17 Thread Michal Hocko
On Fri 15-09-17 14:20:28, vcap...@pengaru.com wrote: > On Fri, Sep 15, 2017 at 04:36:19PM +0200, Michal Hocko wrote: > > On Thu 14-09-17 17:16:27, Taras Kondratiuk wrote: > > > Hi > > > > > > In our devices under low memory conditions we often get into a trashing > > > state when system spends mos

Re: [PATCH 0/4] watchdog: aspeed: Retain enabled state and move to

2017-09-17 Thread Andrew Jeffery
On Mon, 2017-09-18 at 15:19 +0930, Andrew Jeffery wrote: > Hello, > *snip* Ah, my subject got truncated. It should read: watchdog: aspeed: Retain enabled state and move to arch_initcall signature.asc Description: This is a digitally signed message part

[PATCH 1/4] watchdog: aspeed: Retain watchdog enabled state

2017-09-17 Thread Andrew Jeffery
An unintended post-condition of probe() is that the watchdog is disabled. Rework probe() such that we retain the value of the "enabled" bit from the control register, and take the appropriate actions with respect to the watchdog core if so. Otherwise, just configure the watchdog as directed. Signe

Re: [PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 10:44:52, kemi wrote: > > > On 2017年09月15日 22:28, Michal Hocko wrote: > > On Fri 15-09-17 07:16:23, Dave Hansen wrote: > >> On 09/15/2017 04:49 AM, Michal Hocko wrote: > >>> Why do we need an auto-mode? Is it safe to enforce by default. > >> > >> Do we *need* it? Not really. > >>

[PATCH 4/4] watchdog: aspeed: Move init to arch_initcall

2017-09-17 Thread Andrew Jeffery
Probing at device_initcall time lead to perverse cases where the watchdog was probed after, say, I2C, which then leaves a potentially running watchdog at the mercy of I2C device behaviour and bus conditions. Load the watchdog driver early to ensure that the kernel is patting it well before initial

[PATCH 3/4] watchdog: aspeed: Remove specific reference to AST2400 in Kconfig

2017-09-17 Thread Andrew Jeffery
The driver also supports the watchdog in the AST25xx series, and may work on earlier SoCs as well. Signed-off-by: Andrew Jeffery --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index b562d2e03eb9

[PATCH 2/4] watchdog: aspeed: Fix 'Apseed' typo in Kconfig

2017-09-17 Thread Andrew Jeffery
Apseed sounds like a good name for a web/mobile start-up incubator, but isn't a reflection of Aspeed themselves. Signed-off-by: Andrew Jeffery --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig inde

Re: [PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 11:22:37, kemi wrote: > > > On 2017年09月15日 19:49, Michal Hocko wrote: > > On Fri 15-09-17 17:23:24, Kemi Wang wrote: > >> This patch adds a tunable interface that allows VM stats configurable, as > >> suggested by Dave Hansen and Ying Huang. > >> > >> When performance becomes a bo

[PATCH 0/4] watchdog: aspeed: Retain enabled state and move to

2017-09-17 Thread Andrew Jeffery
Hello, We had reports of Aspeed BMC systems entering a reboot loop, each time attempting and failing to probe some PMBus devices. For whatever reason the PMBus devices weren't appearing on the I2C bus, and several factors came into play: 1. i2c-aspeed's transfer timeout is set to 5 seconds 2. The

Re: [PATCH] IB/mlx5: fix debugfs cleanup

2017-09-17 Thread Leon Romanovsky
On Sun, Sep 17, 2017 at 01:28:08PM +0100, Sudip Mukherjee wrote: > If delay_drop_debugfs_init() fails in any of the operations to create > debugfs, it is calling delay_drop_debugfs_cleanup() as part of its > cleanup. But delay_drop_debugfs_cleanup() checks for 'dbg' and since > we have not yet poin

Re: [lkp-robot] [sched/fair] 6d46bd3d97: netperf.Throughput_tps -11.3% regression

2017-09-17 Thread Mike Galbraith
On Sun, 2017-09-17 at 14:41 -0700, Joel Fernandes wrote: > Hi Mike, > > On Sun, Sep 17, 2017 at 9:47 AM, Mike Galbraith wrote: > > On Sat, 2017-09-16 at 23:42 -0700, Joel Fernandes wrote: > >> > >> Yes I understand. However with my 'strong sync' patch, such a > >> balancing check could be useful

Re: [PATCH V5 3/3] scsi: Align queue to ARCH_DMA_MINALIGN in non-coherent DMA mode

2017-09-17 Thread kbuild test robot
Hi Huacai, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc1 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Huacai-Chen/dma-mapping-Introduce-device_is_c

Re: [PATCH V5 1/3] dma-mapping: Introduce device_is_coherent() as a helper

2017-09-17 Thread Christoph Hellwig
On Mon, Sep 18, 2017 at 12:21:40PM +0800, Huacai Chen wrote: > We will use device_is_coherent() as a helper function, in order to set > an appropriate dma alignment in dmapool and block queue (other patches > in this series). > > There is a MIPS-specific plat_device_is_coherent(), but we need a mo

Re: [PATCH V5 2/3] mm: dmapool: Align to ARCH_DMA_MINALIGN in non-coherent DMA mode

2017-09-17 Thread Christoph Hellwig
The dmapool code uses dma_alloc_coherent to allocate each element, and dma_alloc_coherent must align to ARCH_DMA_MINALIGN already. If you implementation doesn't do that it needs to be fixed.

Re: [PATCH V5 3/3] scsi: Align queue to ARCH_DMA_MINALIGN in non-coherent DMA mode

2017-09-17 Thread Christoph Hellwig
Please send all patches in the series to the same to and cc lists. On Mon, Sep 18, 2017 at 12:22:54PM +0800, Huacai Chen wrote: > In non-coherent DMA mode, kernel uses cache flushing operations to > maintain I/O coherency, so scsi's block queue should be aligned to > ARCH_DMA_MINALIGN. Otherwise,

Re: [PATCH 2/3] mm: Handle numa statistics distinctively based-on different VM stats modes

2017-09-17 Thread kemi
On 2017年09月18日 12:13, Dave Hansen wrote: > On 09/17/2017 08:07 PM, kemi wrote: + if (vmstat_mode) { + if (vmstat_mode == VMSTAT_COARSE_MODE) + return; + } else if (disable_zone_statistics) + return; + if (z->node != numa_n

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Sergey Senozhatsky
On (09/17/17 20:07), Joe Perches wrote: > On Mon, 2017-09-18 at 11:55 +0900, Sergey Senozhatsky wrote: > > Try git grep KERN_SOH. > > > > what for? > > Did you read your own email? > > > printk(KERN_SOH_ASCII %d " foo bar / %s %s\n", "foo", "bar"); > > _nothing_ looks like that. OK... got

[PATCH V5 3/3] scsi: Align queue to ARCH_DMA_MINALIGN in non-coherent DMA mode

2017-09-17 Thread Huacai Chen
In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so scsi's block queue should be aligned to ARCH_DMA_MINALIGN. Otherwise, it will cause data corruption, at least on MIPS: Step 1, dma_map_single Step 2, cache_invalidate (no writeback)

[PATCH V5 1/3] dma-mapping: Introduce device_is_coherent() as a helper

2017-09-17 Thread Huacai Chen
We will use device_is_coherent() as a helper function, in order to set an appropriate dma alignment in dmapool and block queue (other patches in this series). There is a MIPS-specific plat_device_is_coherent(), but we need a more generic solution, so add and use a new function pointer in dma_map_o

[PATCH V5 2/3] mm: dmapool: Align to ARCH_DMA_MINALIGN in non-coherent DMA mode

2017-09-17 Thread Huacai Chen
In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so the dmapool objects should be aligned to ARCH_DMA_MINALIGN. Otherwise, it will cause data corruption, at least on MIPS: Step 1, dma_map_single Step 2, cache_invalidate (no writeback)

Re: [PATCH 2/3] mm: Handle numa statistics distinctively based-on different VM stats modes

2017-09-17 Thread Dave Hansen
On 09/17/2017 08:07 PM, kemi wrote: >>> + if (vmstat_mode) { >>> + if (vmstat_mode == VMSTAT_COARSE_MODE) >>> + return; >>> + } else if (disable_zone_statistics) >>> + return; >>> + >>> if (z->node != numa_node_id()) >>> local_stat = NUMA_OT

[PATCH] media: i2c: tc358743: fix spelling mistake

2017-09-17 Thread Jacob Chen
It should be "LP-11". Signed-off-by: Jacob Chen --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index e6f5c36..c208c30 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2

Re: [PATCH v3 2/3] media: ov7670: Add the get_fmt callback

2017-09-17 Thread kbuild test robot
Hi Wenyou, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-ov7670-Add-entity-i

[PATCH V2 4/4] Drivers: hv: vmbus: Expose per-channel event counters events counters

2017-09-17 Thread kys
From: Stephen Hemminger When investigating performance, it is useful to be able to look at the number of host and guest events per-channel. This is equivalent to per-device interrupt statistics. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysf

[PATCH V2 1/4] vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()

2017-09-17 Thread kys
From: Dexuan Cui Due to commit 54a66265d675 ("Drivers: hv: vmbus: Fix rescind handling"), we need this patch to resolve the below deadlock: after we get the mutex in vmbus_hvsock_device_unregister() and call vmbus_device_unregister() -> device_unregister() -> ... -> device_release() -> vmbus_dev

[PATCH V2 2/4] Drivers: hv: fcopy: restore correct transfer length

2017-09-17 Thread kys
From: Olaf Hering Till recently the expected length of bytes read by the daemon did depend on the context. It was either hv_start_fcopy or hv_do_fcopy. The daemon had a buffer size of two pages, which was much larger than needed. Now the expected length of bytes read by the daemon changed slight

[PATCH V2 3/4] vmbus: add per-channel sysfs info

2017-09-17 Thread kys
From: Stephen Hemminger This extends existing vmbus related sysfs structure to provide per-channel state information. This is useful when diagnosing issues with multiple queues in networking and storage. The existing sysfs only displayed information about the primary channel. The one place it re

[PATCH V2 0/4] Drivers: hv: Miscellaneous fixes

2017-09-17 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. V2: Dropped the patch: "vmbus: suppress uevents for hv_sock devices" as this was only to address test trigerred issues. Dexuan Cui (1): vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister() Olaf Hering (1): Drivers: hv: fcopy: res

Re: [RFC PATCH] can: m_can: Support higher speed CAN-FD bitrates

2017-09-17 Thread Yang, Wenyou
On 2017/9/14 13:06, Sekhar Nori wrote: On Thursday 14 September 2017 03:28 AM, Franklin S Cooper Jr wrote: On 08/18/2017 02:39 PM, Franklin S Cooper Jr wrote: During test transmitting using CAN-FD at high bitrates (4 Mbps) only resulted in errors. Scoping the signals I noticed that only a si

Re: [PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-17 Thread kemi
On 2017年09月15日 19:49, Michal Hocko wrote: > On Fri 15-09-17 17:23:24, Kemi Wang wrote: >> This patch adds a tunable interface that allows VM stats configurable, as >> suggested by Dave Hansen and Ying Huang. >> >> When performance becomes a bottleneck and you can tolerate some possible >> tool br

Re: [PATCH v3 1/3] media: ov7670: Add entity pads initialization

2017-09-17 Thread kbuild test robot
Hi Wenyou, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-ov7670-Add-entity-i

Re: [PATCH 2/3] mm: Handle numa statistics distinctively based-on different VM stats modes

2017-09-17 Thread kemi
On 2017年09月15日 19:50, Michal Hocko wrote: > On Fri 15-09-17 17:23:25, Kemi Wang wrote: > [...] >> @@ -2743,6 +2745,17 @@ static inline void zone_statistics(struct zone >> *preferred_zone, struct zone *z) >> #ifdef CONFIG_NUMA >> enum numa_stat_item local_stat = NUMA_LOCAL; >> >> +/*

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Joe Perches
On Mon, 2017-09-18 at 11:55 +0900, Sergey Senozhatsky wrote: > Try git grep KERN_SOH. > > what for? Did you read your own email? > printk(KERN_SOH_ASCII %d " foo bar / %s %s\n", "foo", "bar"); _nothing_ looks like that. It wouldn't even compile.

block/bfq-cgroup.c:299:1: warning: the frame size of 1456 bytes is larger than 1024 bytes

2017-09-17 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0666f560b71b899cd11a7caf39fd45129e9030fd commit: f7dd2507893cc3425d3ffc2369559619960befb0 gcc-plugins: structleak: add option to init all vars used as byref args date: 6 weeks ago config: i386-randconfig-x

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Sergey Senozhatsky
On (09/17/17 19:45), Joe Perches wrote: [..] > > take a look at ACPI acpi_os_vprintf(). for instance. > > I've looked. I don't get your point. #define ACPI_MSG_ERROR KERN_ERR "ACPI Error: " #define ACPI_MSG_EXCEPTION KERN_ERR "ACPI Exception: " #define ACPI_MSG_WARNINGKERN_

[RESEND PATCH v4 3/3] ARM: dts: exynos: Remove the display-timing and delay from rinato dts

2017-09-17 Thread Hoegeun Kwon
The display-timing and delay are included in the panel driver. So it should be removed in dts. Signed-off-by: Hoegeun Kwon --- Hi Krzysztof, This patch was rebased to the mainline (v4.14-rc1). Best regards, Hoegeun arch/arm/boot/dts/exynos3250-rinato.dts | 22 -- 1 file

Re: [PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-17 Thread kemi
On 2017年09月15日 22:28, Michal Hocko wrote: > On Fri 15-09-17 07:16:23, Dave Hansen wrote: >> On 09/15/2017 04:49 AM, Michal Hocko wrote: >>> Why do we need an auto-mode? Is it safe to enforce by default. >> >> Do we *need* it? Not really. >> >> But, it does offer the best of both worlds: The vast

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Joe Perches
On Mon, 2017-09-18 at 11:41 +0900, Sergey Senozhatsky wrote: > On (09/17/17 19:22), Joe Perches wrote: > > On Mon, 2017-09-18 at 09:46 +0900, Sergey Senozhatsky wrote: > > > there is another reason why I think that, yes, we probably better do > > > it some other way. and the reason is that not ever

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Sergey Senozhatsky
On (09/17/17 19:22), Joe Perches wrote: > On Mon, 2017-09-18 at 09:46 +0900, Sergey Senozhatsky wrote: > > there is another reason why I think that, yes, we probably better do > > it some other way. and the reason is that not every message that looks > > like !PREFIX (does not start with KERN_SOH_A

Re: rcu kernel-doc issues (4.14-rc1)

2017-09-17 Thread Paul E. McKenney
On Sun, Sep 17, 2017 at 12:49:10PM -0700, Paul E. McKenney wrote: > On Sun, Sep 17, 2017 at 10:57:42AM -0700, Randy Dunlap wrote: > > On 09/17/17 10:47, Paul E. McKenney wrote: > > > On Sat, Sep 16, 2017 at 09:41:45PM -0700, Paul E. McKenney wrote: > > >> On Sat, Sep 16, 2017 at 06:26:04PM -0700, R

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Joe Perches
On Mon, 2017-09-18 at 09:46 +0900, Sergey Senozhatsky wrote: > there is another reason why I think that, yes, we probably better do > it some other way. and the reason is that not every message that looks > like !PREFIX (does not start with KERN_SOH_ASCII) is _actually_ a > !PREFIX message. the nor

linux-next: Tree for Sep 18

2017-09-17 Thread Stephen Rothwell
Hi all, Changes since 20170915: Linus' tree gained a build failure for which I reverted a commit. Non-merge commits (relative to Linus' tree): 395 391 files changed, 15641 insertions(+), 4750 deletions(-) I have crea

[PATCH v2] bitfield.h: include instead of

2017-09-17 Thread Masahiro Yamada
Since commit bc6245e5efd7 ("bug: split BUILD_BUG stuff out into "), #include is better to pull minimal headers needed for BUILG_BUG() family. Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix a typo s/minumam/minimal/ include/linux/bitfield.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] Documentation: kernel-api: add bitmap operations from linux/bitmap.h

2017-09-17 Thread Randy Dunlap
From: Randy Dunlap Add to kernel-api Bitmap Operations section. Fix kernel-doc nitpicks in . Signed-off-by: Randy Dunlap Cc: Yury Norov --- Documentation/core-api/kernel-api.rst |3 +++ include/linux/bitmap.h|9 + 2 files changed, 8 insertions(+), 4 deletions(

Re: n900 in next-20170901

2017-09-17 Thread Joonsoo Kim
Hello, On Fri, Sep 15, 2017 at 03:28:44PM +0200, Pali Rohár wrote: > On Thursday 07 September 2017 16:30:38 Joonsoo Kim wrote: > > If it doesn't help, is there a way to test n900 configuration in QEMU? > > Hi Joonsoo, linaro version of QEMU has support for n900 machine. For > more information how

Re: [PATCH] checkpatch: do not check missing blank line before builtin_*_driver

2017-09-17 Thread Masahiro Yamada
Hi Joe, 2017-09-18 5:44 GMT+09:00 Joe Perches : > On Sun, 2017-09-17 at 23:59 +0900, Masahiro Yamada wrote: >> checkpatch.pl does not check missing blank line before module_*_driver. >> I want it to behave likewise for builtin_*_driver. > [] >> diff --git a/scripts/checkpatch.pl b/scripts/checkpat

[GIT PULL] Pull request for 4.14 for IPMI

2017-09-17 Thread Corey Minyard
I wanted to let this sit in linux-next for as long as possible, since some of the changes came in later than I would have liked. And I was hoping you would wait until Monday to do 4.14-rc1. But I guess I shouldn't have waited. Signed with a new key, that is now signed by my old key, and hopefu

[PATCH v2] checkpatch: do not check missing blank line before builtin_*_driver

2017-09-17 Thread Masahiro Yamada
checkpatch.pl does not check missing blank line before module_*_driver. I want it to behave likewise for builtin_*_driver. Signed-off-by: Masahiro Yamada --- Changes in v2: - Improve the matching pattern as suggested by Joe Perches scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v2] drm/rockchip: Replace dev_* with DRM_DEV_*

2017-09-17 Thread Mark yao
On 2017年09月15日 16:36, Haneen Mohammed wrote: This patch replace instances of dev_info/err/debug with DRM_DEV_INFO/ERROR/WARN respectively inorder to use a drm-formatted specific log messages. Issue corrected with the help of the following Coccinelle script: @r@ @@ ( -dev_info +DRM_DEV_INFO | -d

Re: n900 in next-20170901

2017-09-17 Thread Joonsoo Kim
On Fri, Sep 15, 2017 at 03:18:18PM +0200, Pavel Machek wrote: > Hi! > > > > After commit 9caf25f996e8, user for CMA memory should use to check > > > PageHighmem in order to get proper virtual address of the page. If > > > someone doesn't use it, it is possible to use wrong virtual address > > > an

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-17 Thread Jann Horn
On Fri, Sep 15, 2017 at 2:37 PM, Mike Kravetz wrote: [...] > A recent change was made to mremap so that an attempt to create a > duplicate a private mapping will fail. > > commit dba58d3b8c5045ad89c1c95d33d01451e3964db7 > Author: Mike Kravetz > Date: Wed Sep 6 16:20:55 2017 -0700 > > mm/mre

Re: [PATCH] cpufreq: cpufreq_stats: make last_index signed int

2017-09-17 Thread Viresh Kumar
On 15-09-17, 13:13, Bo Yan wrote: > It is possible for last_index to get a -1 if current frequency > is not found in the freq table when stats is created. If the > function "cpufreq_stats_update" is called before last_index is > updated with a valid value, the "-1" will be used as index to > update

[PATCH v2 3/3] Asoc: rockchip: Init dapm routes dynamically

2017-09-17 Thread Jeffy Chen
Currently we are using a fixed list of dapm routes. Init dapm routes dynamically when parsing dailinks, since we are supporting optional codecs. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v2: Fix DMic typo. sound/soc/rockchip/rk3399_

Re: [PATCH] Asoc: rockchip: Init dapm routes dynamically

2017-09-17 Thread jeffy
Hi Matthias, Thanks for your test and review. On 09/16/2017 08:54 AM, Matthias Kaehlcke wrote: -static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { >- /* Input Lines */ >- {"MIC", NULL, "Headset Mic"}, >- {"DMIC1L", NULL, "Int Mic"}, >- {"DMIC1R", NULL, "Int Mic"}, >- >-

[PATCH v2 1/3] Asoc: rockchip: Add dapm route for HDMI

2017-09-17 Thread Jeffy Chen
Add dapm route for DP codec. Signed-off-by: Jeffy Chen --- Changes in v2: Separate HDMI/DMIC patches. sound/soc/rockchip/rk3399_gru_sound.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0513fe480353..

[PATCH v2 2/3] Asoc: rockchip: Add dapm route for DMic

2017-09-17 Thread Jeffy Chen
Add dapm route for DMIC codec. Signed-off-by: Jeffy Chen --- Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index b050510be65f..ad19e391c4a6 100644 ---

Re: [lkp-robot] [lib] e4dace3615: kernel_BUG_at_arch/x86/mm/physaddr.c

2017-09-17 Thread Florian Fainelli
Le 09/17/17 à 18:12, kernel test robot a écrit : > > FYI, we noticed the following commit: > > commit: e4dace3615526fd66c86dd535ee4bc9e8c706e37 ("lib: add test module for > CONFIG_DEBUG_VIRTUAL") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase: trinity >

[PATCH v3 3/3] media: ov7670: Add the s_power operation

2017-09-17 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking

[PATCH v3 2/3] media: ov7670: Add the get_fmt callback

2017-09-17 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v3: - Keep tried format info in the try_fmt member of v4l2_subdev__pad_config struct. - Add the internal_ops callback to set default format.

[PATCH v3 1/3] media: ov7670: Add entity pads initialization

2017-09-17 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index e88549f0e7

[PATCH v3 0/3] media: ov7670: Add entity init and power operation

2017-09-17 Thread Wenyou Yang
This patch set is to add the media entity pads initialization, the s_power operation and get_fmt callback support. Changes in v3: - Keep tried format info in the try_fmt member of v4l2_subdev__pad_config struct. - Add the internal_ops callback to set default format. Changes in v2: - Add the

Re: [RESENT PATCH v9 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-17 Thread jeffy
Hi Rob, Thanks for your reply. On 09/14/2017 01:24 AM, Rob Herring wrote: On Wed, Sep 06, 2017 at 10:50:09AM +0800, Jeffy Chen wrote: diff --git a/Documentation/devicetree/bindings/sound/rt5514.txt b/Documentation/devicetree/bindings/sound/rt5514.txt index 929ca6756b02..841a1159e234 100644 --

Re: [PATCH] drivers: cpufreq: Fix sysfs duplicate filename creation for platform-device

2017-09-17 Thread Viresh Kumar
On 17-09-17, 00:04, suni...@techveda.org wrote: > From: Suniel Mahesh > > ti-cpufreq.c and cpufreq-dt-platdev.c are registering > platform device with same name "cpufreq-dt" using > platform_device_register_*() routines. > This is leading to build warnings appended below. > > This patch does the

[lkp-robot] [lib] e4dace3615: kernel_BUG_at_arch/x86/mm/physaddr.c

2017-09-17 Thread kernel test robot
FYI, we noticed the following commit: commit: e4dace3615526fd66c86dd535ee4bc9e8c706e37 ("lib: add test module for CONFIG_DEBUG_VIRTUAL") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-descriptio

[PATCH v10] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-17 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v10: Put rt5514-i2c doc & rt5514-spi doc together. Changes in v9: Address comments from Brian. Documentation/dev

Re: [linus:master] BUILD REGRESSION 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e

2017-09-17 Thread Fengguang Wu
Hi Linus, On Sun, Sep 17, 2017 at 08:31:56AM -0700, Linus Torvalds wrote: Fengguang, it looks like the kernel build robot _only_ tests the actual rc kernels, and doesn't bisect down where the error started. Nah, that's an illusion. :) It's a per-branch summary report _in addition to_ per-bise

Re: printk: what is going on with additional newlines?

2017-09-17 Thread Sergey Senozhatsky
Hello Linus, On (09/17/17 08:35), Linus Torvalds wrote: > On Sat, Sep 16, 2017 at 11:26 PM, Sergey Senozhatsky > wrote: > > > > so... I think we don't have to update 'struct printk_log'. we can store > > that "extended data" at the beginning of every message, right after the > > prefix. > > No,

[PATCH for 4.9 26/39] cpufreq: intel_pstate: Update pid_params.sample_rate_ns in pid_param_set()

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: "Rafael J. Wysocki" [ Upstream commit 6e7408acd04d06c04981c0c0fb5a2462b16fae4f ] Fix the debugfs interface for PID tuning to actually update pid_params.sample_rate_ns on PID parameters updates, as changing pid_params.sample_rate_ms via debugfs has no effect now. Fixes: a4675fbc4a7a (cpufr

[PATCH for 4.9 33/39] netfilter: nf_tables: set pktinfo->thoff at AH header if found

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Pablo Neira Ayuso [ Upstream commit 568af6de058cb2b0c5b98d98ffcf37cdc6bc38a7 ] Phil Sutter reports that IPv6 AH header matching is broken. From userspace, nft generates bytecode that expects to find the AH header at NFT_PAYLOAD_TRANSPORT_HEADER both for IPv4 and IPv6. However, pktinfo->tho

[PATCH for 4.9 21/39] nvme-rdma: handle cpu unplug when re-establishing the controller

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Sagi Grimberg [ Upstream commit c248c64387fac5a6b31b343d9acb78f478e8619c ] If a cpu unplug event has occured, we need to take the minimum of the provided nr_io_queues and the number of online cpus, otherwise we won't be able to connect them as blk-mq mapping won't dispatch to those queues.

  1   2   3   >