Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups

2017-01-13 Thread David Carrillo-Cisneros
On Thu, Jan 12, 2017 at 4:14 AM, Mark Rutland wrote: > On Tue, Jan 10, 2017 at 12:51:58PM -0800, David Carrillo-Cisneros wrote: >> On Tue, Jan 10, 2017 at 8:38 AM, Mark Rutland wrote: >> > Hi, >> > >> > On Tue, Jan 10, 2017 at 02:24:59AM -0800, David Carrillo-Cisneros wrote: >> >> During sched in

Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously

2017-01-13 Thread Christoph Hellwig
On Thu, Jan 12, 2017 at 02:44:06PM -0800, Jaegeuk Kim wrote: > This patch adds a kernel thread to issue discard commands. > It proposes three states, D_PREP, D_SUBMIT, and D_DONE to identify current > bio status. Why? Instead of creating the complexity of a thread you should look into issuing the

[PATCH 2/3] tty: serial: 8250_omap: Add OMAP_DMA_TX_KICK quirk for AM437x

2017-01-13 Thread Vignesh R
UART uses as EDMA as dma engine on AM437x SoC and therefore, requires OMAP_DMA_TX_KICK quirk just like AM33xx. So, enable OMAP_DMA_TX_KICK quirk for AM437x platform as well. While at that, drop use of of_machine_is_compatible() and instead pass quirks via device data. Signed-off-by: Vignesh R ---

[PATCH 3/3] tty: serial: 8250_omap: Remove rx_dma_broken flag

2017-01-13 Thread Vignesh R
8250 UART DMA support was marked broken by default as it was not possible to pause ongoing RX DMA transfer. Now that both SDMA and EDMA can support pause operation for RX DMA transactions, don't set rx_dma_broken to true by default. With this patch 8250_omap driver will use DMA by default. Signed-

[PATCH 0/3] tty: serial: 8250_omap: Enable DMA support

2017-01-13 Thread Vignesh R
This patch series re enables DMA support for UART 8250_omap driver. Tested on AM335x, AM437x that use EDMA and OMAP5 and DRA74 EVM with SDMA. Vignesh R (3): serial :8250: omap: pause DMA only if DMA transfer in progress tty: serial: 8250_omap: Add OMAP_DMA_TX_KICK quirk for AM437x tty: seri

[PATCH 1/3] serial: 8250: omap: pause DMA only if DMA transfer in progress

2017-01-13 Thread Vignesh R
It is possible that DMA transfer is already complete but, completion handler is yet to be called, when dmaengine_pause() is called in case of error condition(like break/rx timeout). This leads to dmaengine_pause() API to return EINVAL (as descriptor is already NULL) causing rx_dma_broken flag to be

Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups

2017-01-13 Thread David Carrillo-Cisneros
On Thu, Jan 12, 2017 at 5:28 AM, Liang, Kan wrote: > > >> On Wed, Jan 11, 2017 at 08:31:11PM +, Liang, Kan wrote: >> >> > > Kan, in your per-cpu event list patch you mentioned that you saw a >> > > large overhead in perf_iterate_ctx() when skipping events for other >> CPUs. >> > > Which caller

Re: [PATCH] virtio_mmio: expose header to userspace

2017-01-13 Thread Christoph Hellwig
On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote: > It's handy for userspace emulators like QEMU. But it's not actually a userspace API - it's an on the write protocol. so: NAK.

Partnership proposal: Read attachment for details

2017-01-13 Thread webbbbw6
Partnership proposal: Read attachment for details and get back to me.

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-13 Thread Minchan Kim
On Fri, Jan 13, 2017 at 04:02:45PM +0900, Sergey Senozhatsky wrote: > On (01/13/17 15:47), Minchan Kim wrote: > [..] > > > > Could you elaborate a bit? Do you mean this? > > > > > > > > ret = scnprintf(buf, PAGE_SIZE, > > > > "%8llu %8llu %8llu %8lu %8ld %8llu %8lu\

Re: [PATCH 30/62] watchdog: mena21_wdt: Convert to use device managed functions and other improvements

2017-01-13 Thread Johannes Thumshirn
> Am 11.01.2017 12:38 vorm. schrieb "Guenter Roeck" : > > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinelle using

Re: [PATCH] libfc: Fix variable name in fc_set_wwpn

2017-01-13 Thread Johannes Thumshirn
On Fri, Jan 13, 2017 at 11:40:01AM +0800, Fam Zheng wrote: > The parameter name should be wwpn instead of wwnn. > > Signed-off-by: Fam Zheng > --- Yup, looks good Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-13 Thread Dave Young
On 01/13/17 at 05:20am, Dave Young wrote: > On 01/12/17 at 04:15pm, Ard Biesheuvel wrote: > > Hello Dave, > > > > On 12 January 2017 at 09:41, Dave Young wrote: > > > There are memory ranges like below when I testing early efi_mem_reserve: > > > > > > efi: mem62: [Reserved | | | |

Re: [PATCH 04/10] blk-mq: un-export blk_mq_free_hctx_request()

2017-01-13 Thread Christoph Hellwig
On Wed, Jan 11, 2017 at 02:39:57PM -0700, Jens Axboe wrote: > It's only used in blk-mq, kill it from the main exported header > and kill the symbol export as well. Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 02/10] blk-mq: make mq_ops a const pointer

2017-01-13 Thread Christoph Hellwig
Looks fine, even totally independent of any sched work, like most of the cleanups following this one Reviewed-by: Christoph Hellwig

Re: [PATCH 05/10] blk-mq: export some helpers we need to the scheduling framework

2017-01-13 Thread Christoph Hellwig
Do we really need to make any of the blk-mq scheduling modular?

Re: [PATCHSET v6] blk-mq scheduling framework

2017-01-13 Thread Hannes Reinecke
On 01/11/2017 10:39 PM, Jens Axboe wrote: > Another year, another posting of this patchset. The previous posting > was here: > > https://www.spinics.net/lists/kernel/msg2406106.html > > (yes, I've skipped v5, it was fixes on top of v4, not the rework). > > I've reworked bits of this to get rid o

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-13 Thread Johannes Thumshirn
On Thu, Jan 12, 2017 at 02:54:38PM -0700, Jens Axboe wrote: > On Thu, Jan 12 2017, Bart Van Assche wrote: > > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set > > > *set) > > > if (set->nr_hw_queues > nr_cpu_ids) >

Re: [PATCH] checkpatch: update $logFunctions

2017-01-13 Thread Joe Perches
On Fri, 2017-01-13 at 15:38 +0800, miles.c...@mediatek.com wrote: > From: Miles Chen > > Currently checkpatch.pl does not recognize printk_deferred* functions as > log functions and complains about the line length of printk_deferred* > functoins. Add printk_deferred* to logFunctions to fix it.

Re: [PATCH] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Christian Borntraeger
ACK. Whoever takes this patch might want to fixup 3 typos. On 01/13/2017 07:25 AM, Gonglei wrote: > Some hardware accelerators (like intel aseni or the s390 aesni > cpacf functions) have lower priorities than virtio > crypto, and those drivers are faster th

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-13 Thread Wolfram Sang
> (But note that this is irrelevant for the patch as the driver doesn't > claim to support this kind of transfer.) Yes, I wanted to mention that, too. I'd think the series is good to go in? signature.asc Description: PGP signature

Re: [PATCH 06/10] blk-mq-tag: cleanup the normal/reserved tag allocation

2017-01-13 Thread Christoph Hellwig
On Wed, Jan 11, 2017 at 02:39:59PM -0700, Jens Axboe wrote: > This is in preparation for having another tag set available. Cleanup > the parameters, and allow passing in of tags fo blk_mq_put_tag(). I've been playing around with this are a bit but never submitted anything. Below is an untested me

Re: [PATCH 03/10] block: move rq_ioc() to blk.h

2017-01-13 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH] mm: extend zero pages to same element pages for zram

2017-01-13 Thread zhouxianrong
From: zhouxianrong the idea is that without doing more calculations we extend zero pages to same element pages for zram. zero page is special case of same element page with zero element. 1. the test is done under android 7.0 2. startup too many applications circularly 3. sample the zero pages, s

Re: [PATCH 01/10] block: move existing elevator ops to union

2017-01-13 Thread Christoph Hellwig
On Wed, Jan 11, 2017 at 02:39:54PM -0700, Jens Axboe wrote: > Prep patch for adding MQ ops as well, since doing anon unions with > named initializers doesn't work on older compilers. My gut feeling tells me MQ schedulers shouldn't share elevator_type. I'll play around a bit with the code later to

Re: [Intel-gfx] [PATCH v4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-01-13 Thread Tvrtko Ursulin
Hi, On 11/01/2017 23:59, Andy Shevchenko wrote: On Wed, Jan 11, 2017 at 1:58 PM, Tvrtko Ursulin wrote: Since the scatterlist length field is an unsigned int, make sure that sg_alloc_table_from_pages does not overflow it while coallescing pages to a single entry. /* + * Since the above le

Re: x86-64: Maintain 16-byte stack alignment

2017-01-13 Thread Herbert Xu
On Thu, Jan 12, 2017 at 12:08:07PM -0800, Andy Lutomirski wrote: > > I think we have some inline functions that do asm volatile ("call > ..."), and I don't see any credible way of forcing alignment short of > generating an entirely new stack frame and aligning that. Ick. This A straight asm call

Re: [PATCH] i2c: i2c-cadence: Don't register the adapter until it's ready

2017-01-13 Thread Wolfram Sang
> I would argue that the "info" message means "the I2C adapter is ready for > transaction now, and we'll start initializing devices on the bus". That is > the case before it calls i2c_add_adapter(). I know what you mean, but i2c_add_adapter does more, and it can fail because the adapter is *not*

Re: [PATCH v2 06/26] lib/dma-noop: Only build dma_noop_ops for m32r and s390

2017-01-13 Thread Christian Borntraeger
On 01/12/2017 08:06 PM, Bart Van Assche wrote: > This was suggested by Christoph Hellwig. > > Signed-off-by: Bart Van Assche > Cc: Christian Borntraeger > Cc: Joerg Roedel > Cc: Andy Lutomirski > Cc: Michael S. Tsirkin > Cc: Christoph Hellwig Should be ok for s390 (as we do have ARCH_DMA_A

Re: x86-64: Maintain 16-byte stack alignment

2017-01-13 Thread Herbert Xu
On Thu, Jan 12, 2017 at 01:40:54PM -0800, Linus Torvalds wrote: > > The 8-byte alignment mainly makes sense when the basic call sequence > just adds 8 bytes, and you have functions without frames (that still > call other functions). The question is does it really make sense to save those 8 bytes

Re: x86-64: Maintain 16-byte stack alignment

2017-01-13 Thread Herbert Xu
On Thu, Jan 12, 2017 at 05:46:55PM -0800, Andy Lutomirski wrote: > > What I mean is: what guarantees that the stack is properly aligned for > the subroutine call? gcc promises to set up a stack frame, but does > it promise that rsp will be properly aligned to call a C function? Yes, as long as y

Re: [patch v2] mm, memcg: do not retry precharge charges

2017-01-13 Thread Michal Hocko
On Thu 12-01-17 14:46:34, David Rientjes wrote: > When memory.move_charge_at_immigrate is enabled and precharges are > depleted during move, mem_cgroup_move_charge_pte_range() will attempt to > increase the size of the precharge. > > This can be allowed to do reclaim, but should not call the oom k

RE: linux-next: build warning after merge of the rtc tree

2017-01-13 Thread Amelie DELAUNAY
Hi Stephen, I'm going to send a patch to fix this warning. Thanks, Regards, Amelie > -Original Message- > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > Sent: vendredi 13 janvier 2017 04:18 > To: Alexandre Belloni > Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: [PATCH v3 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2017-01-13 Thread Nayna
On 01/12/2017 11:50 PM, Jarkko Sakkinen wrote: On Thu, Jan 12, 2017 at 11:58:10AM -0500, Nayna Jain wrote: The current TPM 2.0 device driver extends only the SHA1 PCR bank but the TCG Specification[1] recommends extending all active PCR banks, to prevent malicious users from setting unused PCR

Re: x86-64: Maintain 16-byte stack alignment

2017-01-13 Thread Herbert Xu
On Thu, Jan 12, 2017 at 08:37:18PM -0800, Linus Torvalds wrote: > > So then the compiler actually needs to start adding useless instructions > just to keep the stack 16-byte aligned. Which it does. Of course most of the time no extra instructions are required because there are stack variables, so

Re: x86-64: Maintain 16-byte stack alignment

2017-01-13 Thread Herbert Xu
On Thu, Jan 12, 2017 at 11:07:09PM -0600, Josh Poimboeuf wrote: > > Disabling frame pointers didn't seem to help, but I finally got it to > misalign with a different test case. I think it had been aligning the > array, so instead I made it push a register. Right. If you start manipulating the s

Re: [PATCH 12/12] PM / OPP: Update Documentation to remove RCU specific bits

2017-01-13 Thread Stephen Boyd
On 01/10, Viresh Kumar wrote: > @@ -252,6 +252,7 @@ dev_pm_opp_get_freq - Retrieve the freq represented by > the opp pointer. > if (!IS_ERR(max_opp) && !IS_ERR(requested_opp)) > r = soc_test_validity(max_opp, requested_opp); > dev_pm_opp_pu

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-13 Thread Uwe Kleine-König
On Fri, Jan 13, 2017 at 09:29:03AM +0100, Wolfram Sang wrote: > > > (But note that this is irrelevant for the patch as the driver doesn't > > claim to support this kind of transfer.) > > Yes, I wanted to mention that, too. > > I'd think the series is good to go in? AFAICT there are some unaddre

Re: [RFC DRAFT] Adds PUI: process unic identifier

2017-01-13 Thread José Bollo
On Thu, 2017-01-12 at 19:33 +0900, Tetsuo Handa wrote: > Jose Bollo wrote: > > Hi all, > > > > I'd like to get your feeling about the idea > > exposed in that draft. Should continue or stop > > immediately? Is there already some existing work? > > How is the taken approach? > > > > BR - Jose Boll

[PATCH v2 3/6] arm: dts: mt2701: Add nand device node

2017-01-13 Thread Erin Lo
From: Xiaolei Li Add mt2701 nand device node, include nfi and bch ecc. Signed-off-by: Xiaolei Li Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi i

[PATCH v2 2/6] arm: dts: mt2701: Add iommu/smi device node

2017-01-13 Thread Erin Lo
From: Honghui Zhang Add the device node of iommu and smi for MT2701. Signed-off-by: Honghui Zhang Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/

[PATCH v2 4/6] arm: dts: mt2701: Add auxadc device node.

2017-01-13 Thread Erin Lo
From: Zhiyong Tao Add auxadc device node for MT2701. Signed-off-by: Zhiyong Tao Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701-evb.dts | 4 arch/arm/boot/dts/mt2701.dtsi| 9 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boo

[PATCH v2 6/6] arm: dts: mt2701: Add thermal device node.

2017-01-13 Thread Erin Lo
From: Dawei Chien Add thermal controller device nodes for MT2701. Signed-off-by: Dawei Chien Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 43 +++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/

[PATCH v2 5/6] arm: dts: mt2701: Add ethernet device node.

2017-01-13 Thread Erin Lo
From: Sean Wang Add ethernet device node for MT2701. Signed-off-by: Sean Wang Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701-evb.dts | 40 arch/arm/boot/dts/mt2701.dtsi| 22 ++ 2 files changed, 62 insertions(+) diff --git

Re: arm64: dts: mt8173: add node for thermal calibration

2017-01-13 Thread Daniel Kurtz
On Fri, Jan 13, 2017 at 1:52 PM, Dawei Chien wrote: > > From: "dawei.ch...@mediatek.com" > > Add this for supporting thermal calibration by e-fuse data. > > Signed-off-by: Dawei Chien Reviewed-by: Daniel Kurtz > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++ > 1 file changed, 7

Re: [PATCH 06/12] PM / OPP: Add 'struct kref' to struct dev_pm_opp

2017-01-13 Thread Stephen Boyd
On 01/10, Viresh Kumar wrote: > On 09-01-17, 15:44, Stephen Boyd wrote: > > On 12/07, Viresh Kumar wrote: > > > Add kref to struct dev_pm_opp for easier accounting of the OPPs. > > > > > > Note that the OPPs are freed under the opp_table->lock mutex only. > > > > I'm lost. Why add another level o

Re: [PATCH 02/12] PM / OPP: Add 'struct kref' to OPP table

2017-01-13 Thread Stephen Boyd
On 01/10, Viresh Kumar wrote: > On 09-01-17, 15:36, Stephen Boyd wrote: > > > It would be better to have _find_opp_table() > > return the pointer with the reference already taken so that we > > don't have to update callers with reference grabbing calls. > > Typically if a function returns a refere

[PATCH v2 1/6] arm: dts: mt2701: Add spi device node

2017-01-13 Thread Erin Lo
From: Leilk Liu Add spi device node for MT2701. Signed-off-by: Leilk Liu Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701-evb.dts | 50 arch/arm/boot/dts/mt2701.dtsi| 39 +++ 2 files changed, 89 insertions(+) diff --

[PATCH v2 0/6] Add some DT nodes for Mediatek MT2701

2017-01-13 Thread Erin Lo
This patch series based on v4.10-rc2, include MT2701 spi/iommu/nand/auxadc/ethernet/thermal controller DT nodes. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. Change in v2: 1. Add spi/auxadc pin setting 2. Add ethernet node and pin setting 3. Add thermal controller n

Re: [PATCH 06/12] PM / OPP: Add 'struct kref' to struct dev_pm_opp

2017-01-13 Thread Viresh Kumar
On 13-01-17, 00:52, Stephen Boyd wrote: > What still doesn't make sense is how an individual OPP could go > away without the table that the OPP lives in also going away. dev_pm_opp_remove() is one such option, which can remove OPPs individually. Over that, while remove tables we remove all the OPP

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-13 Thread Minchan Kim
On Fri, Jan 13, 2017 at 08:47:07AM +0100, Michal Hocko wrote: > On Fri 13-01-17 10:37:24, Minchan Kim wrote: > > Hello, > > > > On Thu, Jan 12, 2017 at 10:10:17AM +0100, Michal Hocko wrote: > > > On Thu 12-01-17 17:48:13, Minchan Kim wrote: > > > > On Thu, Jan 12, 2017 at 09:15:54AM +0100, Michal

Re: [PATCH 2/3] perf/x86/amd/uncore: Dynamically allocate uncore counters

2017-01-13 Thread Peter Zijlstra
On Thu, Jan 12, 2017 at 06:48:40PM -0600, Natarajan, Janakarajan wrote: > > On 1/12/2017 3:20 AM, Peter Zijlstra wrote: > >On Wed, Jan 11, 2017 at 10:02:17AM -0600, Janakarajan Natarajan wrote: > >>This patch updates the AMD uncore driver to support AMD Family17h > >>processors. In Family17h, ther

RE: [PATCH] xen-netback: fix memory leaks on XenBus disconnect

2017-01-13 Thread Paul Durrant
> -Original Message- > From: Igor Druzhinin [mailto:igor.druzhi...@citrix.com] > Sent: 12 January 2017 17:52 > To: Wei Liu ; xen-de...@lists.xenproject.org; Paul > Durrant > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Igor Druzhinin > > Subject: [PATCH] xen-netback: fix memo

Re: getting oom/stalls for ltp test cpuset01 with latest/4.9 kernel

2017-01-13 Thread Vlastimil Babka
On 01/13/2017 05:35 AM, Ganapatrao Kulkarni wrote: > On Thu, Jan 12, 2017 at 4:40 PM, Vlastimil Babka wrote: >> On 01/11/2017 05:46 PM, Michal Hocko wrote: >>> >>> On Wed 11-01-17 21:52:29, Ganapatrao Kulkarni wrote: >>> [ 2398.169391] Node 1 Normal: 951*4kB (UME) 1308*8kB (UME) 1034*16kB >>>

Re: [PATCH v2 1/2] of: base: add support to find the level of the last cache

2017-01-13 Thread Tan Xiaojun
On 2017/1/13 2:29, Sudeep Holla wrote: > It is useful to have helper function just to get the number of cache > levels for a given logical cpu. We can obtain the same by just checking > the level at which the last cache is present. This patch adds support > to find the level of the last cache for a

Re: [PATCH v2 2/2] arm64: cacheinfo: add support to override cache levels via device tree

2017-01-13 Thread Tan Xiaojun
On 2017/1/13 2:29, Sudeep Holla wrote: > The cache hierarchy can be identified through Cache Level ID(CLIDR) > architected system register. However in some cases it will provide > only the number of cache levels that are integrated into the processor > itself. In other words, it can't provide any i

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-13 Thread Jean-Jacques Hiblot
2017-01-12 15:30 GMT+01:00 Jean-Jacques Hiblot : > 2017-01-12 1:19 GMT+01:00 Abel Vesa : >> On Tue, Jan 10, 2017 at 04:51:12PM +0100, Petr Mladek wrote: >>> On Thu 2016-12-08 22:46:55, Abel Vesa wrote: >>> > On Thu, Dec 08, 2016 at 09:46:35PM +, Abel Vesa wrote: >>> > > From: Jean-Jacques Hiblo

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-13 Thread Michal Hocko
On Fri 13-01-17 17:57:34, Minchan Kim wrote: > On Fri, Jan 13, 2017 at 08:47:07AM +0100, Michal Hocko wrote: > > On Fri 13-01-17 10:37:24, Minchan Kim wrote: > > > Hello, > > > > > > On Thu, Jan 12, 2017 at 10:10:17AM +0100, Michal Hocko wrote: > > > > On Thu 12-01-17 17:48:13, Minchan Kim wrote:

Re: [PATCH v3 2/2] reset: make optional functions really optional

2017-01-13 Thread Philipp Zabel
Hi Ramiro, Am Donnerstag, den 12.01.2017, 18:34 + schrieb Ramiro Oliveira: > "The *_get_optional_* functions weren't really optional so this patch > makes them really optional. > > These *_get_optional_* functions will now return NULL instead of an error > if no matching reset phandle is foun

[PATCHv4 4/5] arm: mvebu: Add device tree for 98DX3236 SoCs

2017-01-13 Thread Chris Packham
The Marvell 98DX3236, 98DX3336, 98DX4521 and variants are switch ASICs with integrated CPUs. They are similar to the Armada XP SoCs but have different I/O interfaces. Signed-off-by: Chris Packham Acked-by: Rob Herring --- Notes: Changes in v2: - Update devicetree binding documentation t

[PATCHv4 1/5] clk: mvebu: support for 98DX3236 SoC

2017-01-13 Thread Chris Packham
The 98DX3236, 98DX3336, 98DX4521 and variants have a different TCLK from the Armada XP (200MHz vs 250MHz). The CPU core clock is fixed at 800MHz. The clock gating options are a subset of those on the Armada XP. The core clock divider is different to the Armada XP also. Signed-off-by: Chris Packh

[PATCHv4 5/5] arm: mvebu: Add device tree for db-dxbc2 and db-xc3-24g4xg boards

2017-01-13 Thread Chris Packham
These boards are Marvell's evaluation boards for the 98DX4251 and 98DX3336 SoCs. Signed-off-by: Chris Packham --- arch/arm/boot/dts/db-dxbc2.dts | 159 arch/arm/boot/dts/db-xc3-24g4xg.dts | 155 +++ 2 files changed, 314 in

[PATCHv4 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-13 Thread Chris Packham
From: Kalyan Kinthada This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs from Marvell. Signed-off-by: Kalyan Kinthada Signed-off-by: Chris Packham Acked-by: Rob Herring Acked-by: Sebastian Hesselbarth --- Notes: Changes in v2: - include sdio support for the 98DX42

[PATCHv4 0/5] Support for Marvell switches with integrated CPUs

2017-01-13 Thread Chris Packham
The 98DX3236, 98DX3336 and 98DX4251 are a set of switch ASICs with integrated CPUs. They CPU block is common within these product lines and (as far as I can tell/have been told) is based on the Armada XP. There are a few differences due to the fact they have to squeeze the CPU into the same package

[PATCHv4 2/5] arm: mvebu: support for SMP on 98DX3336 SoC

2017-01-13 Thread Chris Packham
Compared to the armada-xp the 98DX3336 uses different registers to set the boot address for the secondary CPU so a new enable-method is needed. This will only work if the machine definition doesn't define an overall smp_ops because there is not currently a way of overriding this from the device tre

RE: [PATCHv5 3/8] rtc: add STM32 RTC driver

2017-01-13 Thread Amelie DELAUNAY
Hi Alexandre, > This didn't apply cleanly, please check rtc-next. I don't think I made any > mistake > as the issue was only in Kconfig. You probably based your patches on 4.9 > instead of 4.10-rc1. Sorry for this inconvenience. You're right, my patches were based on 4.9 to be tested on stm32f4

Re: [PATCH v3] arm64: mm: Fix NOMAP page initialization

2017-01-13 Thread Will Deacon
On Thu, Jan 12, 2017 at 07:58:25PM +0100, Robert Richter wrote: > On 12.01.17 16:05:36, Will Deacon wrote: > > On Mon, Jan 09, 2017 at 12:53:20PM +0100, Robert Richter wrote: > > > > Kernel compile times (3 runs each): > > > > > > pfn_valid_within(): > > > > > > real6m4.088s > > > user37

Re: kvm: use-after-free in process_srcu

2017-01-13 Thread Dmitry Vyukov
On Fri, Jan 13, 2017 at 4:30 AM, Steve Rutherford wrote: > I'm not that familiar with the kernel's workqueues, but this seems > like the classic "callback outlives the memory it references" > use-after-free, where the process_srcu callback is outliving struct > kvm (which contains the srcu_struct)

RE: [PATCH] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Gonglei (Arei)
> > From: Christian Borntraeger [mailto:borntrae...@de.ibm.com] > Sent: Friday, January 13, 2017 4:28 PM > To: Gonglei (Arei); virtualizat...@lists.linux-foundation.org; > linux-cry...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: m...@redhat.com; herb...@gondor.apana.org.au > Subject: Re: [P

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-13 Thread kbuild test robot
Hi David, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc3 next-20170113] [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/David-Howells/afs-Move-UUID-struct-to-linux

RE: [virtio-dev] Re: [PATCH v6 kernel 2/5] virtio-balloon: define new feature bit and head struct

2017-01-13 Thread Li, Liang Z
> On Wed, Dec 21, 2016 at 02:52:25PM +0800, Liang Li wrote: > > Add a new feature which supports sending the page information with > > range array. The current implementation uses PFNs array, which is not > > very efficient. Using ranges can improve the performance of > > inflating/deflating signif

[PATCH] module: fix failed to rmmod kernel module when it's name is too long

2017-01-13 Thread Xie XiuQi
When the name of kernel module is more than 56 chars (include 56), the module could be insmod successfully, but failed to rmmod. $ strace rmmod tst_112233445566 ... open("/sys/module/tst_112233445566/initstate", O_RDO

Re: [PATCH v3 2/2] reset: make optional functions really optional

2017-01-13 Thread Ramiro Oliveira
Hi Philipp On 1/13/2017 9:11 AM, Philipp Zabel wrote: > Hi Ramiro, > > Am Donnerstag, den 12.01.2017, 18:34 + schrieb Ramiro Oliveira: >> "The *_get_optional_* functions weren't really optional so this patch >> makes them really optional. >> >> These *_get_optional_* functions will now return

Re: [PATCH v2 2/2] arm64: cacheinfo: add support to override cache levels via device tree

2017-01-13 Thread Sudeep Holla
On 13/01/17 09:06, Tan Xiaojun wrote: > On 2017/1/13 2:29, Sudeep Holla wrote: >> The cache hierarchy can be identified through Cache Level ID(CLIDR) >> architected system register. However in some cases it will provide >> only the number of cache levels that are integrated into the processor >>

Re: [PATCH 1/3] mtd/ftl: Use kmalloc_array() in build_maps()

2017-01-13 Thread kbuild test robot
Hi Markus, [auto build test WARNING on mtd/master] [also build test WARNING on v4.10-rc3 next-20170113] [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/SF-Markus-Elfring/MTD-FTL-Fine-tuning-for

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Al Viro
On Fri, Jan 13, 2017 at 07:23:51AM +, Alan J. Wylie wrote: > at 15:28 on Thu 12-Jan-2017 Linus Torvalds (torva...@linux-foundation.org) > wrote: > > > So assuming Al hasn't figured it out by the time you get back, can > > you try to send us the same strace for the working case? > > Full outp

[PATCH v2] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Gonglei
Some hardware accelerators (like intel aesni or the s390 cpacf functions) have lower priorities than virtio crypto, and those drivers are faster than the same in the host via virtio. So let's lower the priority of virtio-crypto's algorithm, make it's higher than software implementations but lower t

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-13 Thread M'boumba Cedric Madianga
Ok so I am going to send the v9 asap. Thanks 2017-01-13 9:45 GMT+01:00 Uwe Kleine-König : > On Fri, Jan 13, 2017 at 09:29:03AM +0100, Wolfram Sang wrote: >> >> > (But note that this is irrelevant for the patch as the driver doesn't >> > claim to support this kind of transfer.) >> >> Yes, I wanted

Re: Problem on SCTP

2017-01-13 Thread Michael Tuexen
Your router does NOT change any field in the SCTP packet, but the SCTP checksum was modified from Checksum: 0xbaea49e5 (not verified) to Checksum: 0xa9a86d3f (not verified) At least one of these is wrong. Read the tracefiles in wireshark and enable checksum validation and wireshark will tell

[PATCH 0/3] sh/intc: Fine-tuning for register_intc_controller()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 10:42:10 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use kcalloc() Combine substrings for a message Add a space character for better code readability drivers/sh/intc/core.c | 19 +

Re: [PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-13 Thread Serge Semin
On Fri, Jan 13, 2017 at 08:22:35AM +0100, Greg KH wrote: > On Fri, Jan 13, 2017 at 01:54:17AM +0300, Serge Semin wrote: > > On Wed, Jan 11, 2017 at 09:21:19AM +0100, Greg KH > > wrote: > > > > + /* Return failure if root directory doesn't exist */ > > > > + if (!csr_dbgdir) { > > >

[PATCH 1/3] sh/intc: Use kcalloc() in register_intc_controller()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 10:04:38 +0100 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software. Signed-o

Re: [PATCH v3 0/5] MIPS: Add per-cpu IRQ stack

2017-01-13 Thread James Hogan
On Thu, Jan 12, 2017 at 12:32:52AM +0100, Jason A. Donenfeld wrote: > On Wed, Jan 11, 2017 at 2:20 AM, Ralf Baechle wrote: > > On Wed, Jan 11, 2017 at 12:32:38AM +0100, Jason A. Donenfeld wrote: > > > >> Was this ever picked up for 4.10 or 4.11? > > > > Still sitting in -next as commit 3cc3434fd63

[PATCH 2/3] sh/intc: Combine substrings for a message in register_intc_controller()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 10:16:40 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/sh/intc/core.c | 3 +-- 1 file change

[PATCH 3/3] sh/intc: Add a space character for better code readability in register_intc_controller()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 10:32:04 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: spaces required around that '+=' (ctx:VxW) Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/sh/intc/core.c | 2 +- 1 file

Re: [PATCH v4 2/3] watchdog: introduce watchdog.open_timeout commandline parameter

2017-01-13 Thread Rasmus Villemoes
On 2017-01-11 12:02, Guenter Roeck wrote: > On 01/11/2017 12:11 AM, Rasmus Villemoes wrote: >> On 2017-01-10 19:08, Guenter Roeck wrote: >>> On Mon, Jan 09, 2017 at 04:02:32PM +0100, Rasmus Villemoes wrote: +static unsigned open_timeout; +module_param(open_timeout, uint, 0644);

[PATCH V2] audit: log 32-bit socketcalls

2017-01-13 Thread Richard Guy Briggs
32-bit socketcalls were not being logged by audit on x86_64 systems. Log them. This is basically a duplicate of the call from net/socket.c:sys_socketcall(), but it addresses the impedance mismatch between 32-bit userspace process and 64-bit kernel audit. See: https://github.com/linux-audit/audit-

[PATCH] cxgb4: Remove redundant memset before memcpy

2017-01-13 Thread Shyam Saini
The region set by the call to memset, immediately overwritten by the subsequent call to memcpy and thus makes the memset redundant Signed-off-by: Shyam Saini --- drivers/net/ethernet/chelsio/cxgb4/sched.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/s

Re: [PATCHv4 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-13 Thread Sebastian Hesselbarth
On 13.01.2017 10:12, Chris Packham wrote: From: Kalyan Kinthada This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs from Marvell. Signed-off-by: Kalyan Kinthada Signed-off-by: Chris Packham Acked-by: Rob Herring Acked-by: Sebastian Hesselbarth --- Notes: Changes in v

Re: [PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE

2017-01-13 Thread Vlastimil Babka
On 01/12/2017 10:12 PM, Michal Hocko wrote: From: Michal Hocko PGDEACTIVATE represents the number of pages moved from the active list to the inactive list. At least this sounds like the original motivation of the counter. move_active_pages_to_lru, however, counts pages which got freed in the me

Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: fix GbE tx link breakage

2017-01-13 Thread Jerome Brunet
On Thu, 2017-01-12 at 16:52 -0800, Kevin Hilman wrote: > Jerome Brunet writes: > > > > > OdroidC2 GbE link breaks under heavy tx transfer. This happens even > > if the > > MAC does not enable Energy Efficient Ethernet (No Low Power state > > Idle on > > the Tx path). The problem seems to come fr

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Alan J. Wylie
at 09:33 on Fri 13-Jan-2017 Al Viro (v...@zeniv.linux.org.uk) wrote: > > 1735 splice(5, NULL, 1, NULL, 9223372036854775807, 0) = -1 EAGAIN > > (Resource temporarily unavailable) > > Lovely... So it was getting -EAGAIN all along. Just in case - could you > try the delta below and see if it tri

[PATCH RESEND 0/2] ARM: davinci: improve the nand clock lookup

2017-01-13 Thread Bartosz Golaszewski
Hi Greg, Santosh acked patch 1/2, but suggested that it go through your tree. Can you pick it up for 4.11? Sekhar, will you pick up patch 2/2 for the davinci tree or should it go together with 1/2? - This is a follow-up to the series fixing the da850 clocks. Instead of having a half-me

[PATCH RESEND 1/2] memory: aemif: allow passing device lookup table as platform data

2017-01-13 Thread Bartosz Golaszewski
TI aemif driver creates its own subnodes of the device tree in order to guarantee that all child devices are probed after the AEMIF timing parameters are configured. Some devices (e.g. da850) use struct of_dev_auxdata for clock lookup but nodes created from within the aemif driver can't access the

[PATCH] mfd: ab8500-sysctrl: Handle probe deferral

2017-01-13 Thread Linus Walleij
In the current boot, clients making use of the AB8500 sysctrl may be probed before the ab8500-sysctrl driver. This gives them -EINVAL, but should rather give -EPROBE_DEFER. Before this, the abx500 clock driver didn't probe properly, and as a result the codec driver in turn using the clocks did not

[PATCH RESEND 2/2] ARM: da850: add the nand dev_id to the clock lookup table

2017-01-13 Thread Bartosz Golaszewski
The aemif driver can now access struct of_dev_auxdata (using platform data). Add the device id to the clock lookup table for the nand clock and create a separate lookup table for aemif subnodes. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c| 10 +- arch/arm/ma

[RFC] Kernel panic down to swiotlb when doing insmod a simple driver

2017-01-13 Thread Shawn Lin
Hi, Sorry for sending this RFC for help as I couldn't find some useful hint to slove my issue by git-log the swiotlb commit from kernel v4.4 to v4.9 and I'm also not familar with these stuff. So could you kindly point me to the right direction to debug it? Thanks. :)

VME: devices not removed after commit 050c3d52cc7

2017-01-13 Thread Stefano Babic
Hi, I have updated a custom VME device driver (mainly based on vme_user.c) to 4.9 (previously it was for 3.14-). I see that VME device drivers cannot be loaded and unloaded due to this commit: commit 050c3d52cc7810d9d17b8cd231708609af6876ae Author: Paul Gortmaker Date: Sun Jul 3 14:05:56 201

Re: [patch v2] mm, memcg: do not retry precharge charges

2017-01-13 Thread David Rientjes
When memory.move_charge_at_immigrate is enabled and precharges are depleted during move, mem_cgroup_move_charge_pte_range() will attempt to increase the size of the precharge. Prevent precharges from ever looping by setting __GFP_NORETRY. This was probably the intention of the GFP_KERNEL & ~__GFP

Re: [PATCHSET v6] blk-mq scheduling framework

2017-01-13 Thread Hannes Reinecke
On 01/11/2017 10:39 PM, Jens Axboe wrote: > Another year, another posting of this patchset. The previous posting > was here: > > https://www.spinics.net/lists/kernel/msg2406106.html > > (yes, I've skipped v5, it was fixes on top of v4, not the rework). > > I've reworked bits of this to get rid o

  1   2   3   4   5   6   7   8   9   >