Re: [PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Andrey Ryabinin
On 11/15/2016 07:07 PM, Dmitry Vyukov wrote: > Gcc revision 241896 implements use-after-scope detection. > Will be available in gcc 7. Support it in KASAN. > > Gcc emits 2 new callbacks to poison/unpoison large stack > objects when they go in/out of scope. > Implement the callbacks and add a tes

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-15 Thread David Ahern
On 11/15/16 8:32 AM, Namhyung Kim wrote: > So, are you ok with the name 'wait time'? My thinking is that they > are all waiting for something - timer, resource or cpu. sure.

Re: [PATCH 02/29] fscrypt: Allow fscrypt_decrypt_page() to function with non-writeback pages

2016-11-15 Thread Eric Biggers
On Sun, Nov 13, 2016 at 10:20:45PM +0100, Richard Weinberger wrote: > /** > * f2crypt_decrypt_page() - Decrypts a page in-place > - * @page: The page to decrypt. Must be locked. > + * @inode: The encrypted inode to decrypt. > + * @page: The page to decrypt. Must be locked. Strictly speaking, i

[PATCH V2 for-next 03/11] IB/hns: Optimize the logic of allocating memory using APIs

2016-11-15 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch modified the logic of allocating memory using APIs in hns RoCE driver. We used kcalloc instead of kmalloc_array and bitmap_zero. And When kcalloc failed, call vzalloc to alloc memory. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Ping Zhang Signed-off-by: Sal

[PATCH V2 for-next 08/11] IB/hns: Modify query info named port_num when querying RC QP

2016-11-15 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch modified the output query info qp_attr->port_num to fix bug in hip06. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/

[PATCH] spi: spi-ti-qspi: reinit of completion variable

2016-11-15 Thread Prahlad V
completion variable should be reinitialized before reusing. Signed-off-by: Prahlad V --- drivers/spi/spi-ti-qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index caeac66..ec6fb09 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers

Re: [PATCH] lkdtm: Prevent the compiler from optimising lkdtm_CORRUPT_STACK()

2016-11-15 Thread Greg KH
On Tue, Nov 15, 2016 at 09:27:47AM -0800, Kees Cook wrote: > On Mon, Nov 14, 2016 at 11:02 PM, Michael Ellerman > wrote: > > At least on powerpc with GCC 6, the compiler is smart enough to optimise > > lkdtm_CORRUPT_STACK() into an empty function that just returns. > > Sneaky. Thanks! > > > If

Re: [RFC PATCH v3 13/20] x86: DMA support for memory encryption

2016-11-15 Thread Tom Lendacky
On 11/15/2016 9:16 AM, Michael S. Tsirkin wrote: > On Wed, Nov 09, 2016 at 06:37:23PM -0600, Tom Lendacky wrote: >> Since DMA addresses will effectively look like 48-bit addresses when the >> memory encryption mask is set, SWIOTLB is needed if the DMA mask of the >> device performing the DMA does n

Re: [PATCH 03/29] fscrypt: Enable partial page encryption

2016-11-15 Thread Eric Biggers
On Sun, Nov 13, 2016 at 10:20:46PM +0100, Richard Weinberger wrote: > From: David Gstir > > Not all filesystems work on full pages, thus we should allow them to > hand partial pages to fscrypt for en/decryption. > > Signed-off-by: David Gstir > Signed-off-by: Richard Weinberger > --- > fs/cry

Re: [PATCHv2 5/6] arm64: Use __pa_symbol for _end

2016-11-15 Thread Catalin Marinas
On Mon, Nov 14, 2016 at 10:41:29AM -0800, Laura Abbott wrote: > On 11/14/2016 10:19 AM, Catalin Marinas wrote: > > On Thu, Nov 03, 2016 at 03:51:07PM +, Mark Rutland wrote: > >> On Wed, Nov 02, 2016 at 05:56:42PM -0600, Laura Abbott wrote: > >>> On 11/02/2016 04:52 PM, Mark Rutland wrote: > >>>

[PATCH] perf/x86/uncore: remove event_list for snb client uncore IMC

2016-11-15 Thread kan . liang
From: Kan Liang A BUG was found by perf_fuzzer after enabled KASAN. [ 205.748005] BUG: KASAN: slab-out-of-bounds in snb_uncore_imc_event_del+0x6c/0xa0 at addr 8800caa43768 [ 205.758324] Read of size 8 by task perf_fuzzer/6618 [ 205.763589] CPU: 0 PID: 6618 Comm: perf_fuzzer Not tainted 4.9

Re: [PATCH 05/29] fscrypt: Let fs select encryption index/tweak

2016-11-15 Thread Eric Biggers
On Sun, Nov 13, 2016 at 10:20:48PM +0100, Richard Weinberger wrote: > From: David Gstir > > Avoid re-use of page index as tweak for AES-XTS when multiple parts of > same page are encrypted. This will happen on multiple (partial) calls of > fscrypt_encrypt_page on same page. > page->index is only

Re: [PATCH V2 1/2] pinctrl: tegra: Add DT binding for io pads control

2016-11-15 Thread Jon Hunter
On 09/11/16 13:06, Laxman Dewangan wrote: > NVIDIA Tegra124 and later SoCs support the multi-voltage level and > low power state of some of its IO pads. The IO pads can work in > the voltage of the 1.8V and 3.3V of IO voltage from IO power rail > sources. When IO interfaces are not used then IO pa

Re: [RFC/RFT][PATCH v3 0/5] Functional dependencies between devices

2016-11-15 Thread Lukas Wunner
On Thu, Sep 29, 2016 at 02:51:45AM +0200, Rafael J. Wysocki wrote: > On Wednesday, September 28, 2016 01:42:20 PM Lukas Wunner wrote: > > On Wed, Sep 28, 2016 at 02:33:21AM +0200, Rafael J. Wysocki wrote: > > > I'm only a bit reluctant about advertising the usage of links between > > > children and

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-15 Thread Christoph Hellwig
Hi Dan, On Mon, Nov 14, 2016 at 07:14:22PM -0800, Dan Williams wrote: > Wanted to get your opinion on this given your earlier concerns about > the VM_DAX flag. > > This instead lets an application know how much of a vma is backed by > ZONE_DEVICE pages, but does not make any indications about the

Applied "spi: spi-ti-qspi: reinit of completion variable" to the spi tree

2016-11-15 Thread Mark Brown
The patch spi: spi-ti-qspi: reinit of completion variable has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Li

Applied "regulator: max77620: remove unused variable" to the regulator tree

2016-11-15 Thread Mark Brown
The patch regulator: max77620: remove unused variable has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

[for-next][PATCH 1/6] ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records

2016-11-15 Thread Steven Rostedt
From: Alexei Starovoitov ftrace_shutdown() checks for sanity of ftrace records and if dyn_ftrace->flags is not zero, it will warn. It can happen that 'flags' are set to FTRACE_FL_DISABLED at this point, since some module was loaded, but before ftrace_module_enable() cleared the flags for this mod

[for-next][PATCH 5/6] tracing/filter: Define op as the enum that it is

2016-11-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The trace_events_file.c filter logic can be a bit complex. I copy this into a userspace program where I can debug it a bit easier. One issue is the op is defined in most places as an int instead of as an enum, and gdb just gives the value when debugging. Having th

[for-next][PATCH 0/6] tracing: Updates for 4.10

2016-11-15 Thread Steven Rostedt
The first two patches have already been sent to Linus. I'm just including them here as I based the other patches on top. git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 8d414bd2f77ce858f6b9d119c63b9ce29cf0b75d Alexei Starovoitov (1): ftrace: Ign

[for-next][PATCH 3/6] ftrace: Support full glob matching

2016-11-15 Thread Steven Rostedt
From: Masami Hiramatsu Use glob_match() to support flexible glob wildcards (*,?) and character classes ([) for ftrace. Since the full glob matching is slower than the current partial matching routines(*pat, pat*, *pat*), this leaves those routines and just add MATCH_GLOB for complex glob expressi

[for-next][PATCH 4/6] tracing: Optimise comparison filters and fix binary and for 64 bit

2016-11-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Currently the filter logic for comparisons (like greater-than and less-than) are used, they share the same function and a switch statement is used to jump to the comparison type to perform. This is done in the extreme hot path of the tracing code, and it does not

Re: [PATCH 07/12] dm: use bvec iterator helpers to implement .get_page and .next_page

2016-11-15 Thread Christoph Hellwig
> Hi Alasdair, Mike, Christoph and anyone, > > Could you give this one a review? It looks nice, but I don't understand the code anywhere near well enough to review it. We'll need someone from the DM to look over it.

[for-next][PATCH 2/6] ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records

2016-11-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When a module is first loaded and its function ip records are added to the ftrace list of functions to modify, they are set to DISABLED, as their text is still in a read only state. When the module is fully loaded, and can be updated, the flag is cleared, and if t

[for-next][PATCH 6/6] tracing: Allow wakeup_dl tracer to be used by instances

2016-11-15 Thread Steven Rostedt
From: Zhou Chengming Allow wakeup_dl tracer to be used by instances, like wakeup tracer and wakeup_rt tracer. Link: http://lkml.kernel.org/r/1479093553-31264-1-git-send-email-zhouchengmi...@huawei.com Signed-off-by: Zhou Chengming Signed-off-by: Steven Rostedt --- kernel/trace/trace_sched_w

Re: [PATCH v6 0/9] tpm: cleanup/fixes in existing event log support

2016-11-15 Thread Jarkko Sakkinen
On Tue, Nov 15, 2016 at 11:06:10AM -0700, Jason Gunthorpe wrote: > On Tue, Nov 15, 2016 at 09:40:12AM -0800, Jarkko Sakkinen wrote: > > > I applied fix from Colin. I for OF specific patches in this patch set > > I do not have means to test the code paths that exercise OF specific > > functionality

Re: [PATCH 07/12] dm: use bvec iterator helpers to implement .get_page and .next_page

2016-11-15 Thread Mike Snitzer
On Tue, Nov 15 2016 at 1:55pm -0500, Christoph Hellwig wrote: > > Hi Alasdair, Mike, Christoph and anyone, > > > > Could you give this one a review? > > It looks nice, but I don't understand the code anywhere near well > enough to review it. We'll need someone from the DM to look over it. I'

Re: [PATCH V3 1/9] PM / OPP: Reword binding supporting multiple regulators per device

2016-11-15 Thread Stephen Boyd
On 11/15, Viresh Kumar wrote: > On 14-11-16, 18:13, Stephen Boyd wrote: > > On 11/14, Rob Herring wrote: > > > On Fri, Nov 11, 2016 at 08:41:20AM +0530, Viresh Kumar wrote: > > > > On 10-11-16, 14:51, Stephen Boyd wrote: > > > > > > > > > > No. The supply names (and also clock names/index) should

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Peter Zijlstra
On Tue, Nov 15, 2016 at 12:43:56PM -0500, Vince Weaver wrote: > > Running on my haswell machine with the imc/uncore patch applied, the > perf_fuzzer next tripped over this issue. > > [ 202.034495] BAD LUCK: lost 371 message(s) from NMI context! > [ 202.034496] > ==

Re: [PATCH] nvmem: qfprom: Fix to support single byte read/write

2016-11-15 Thread Stephen Boyd
On 11/15, Vivek Gautam wrote: > @@ -53,7 +53,7 @@ static int qfprom_remove(struct platform_device *pdev) > static struct nvmem_config econfig = { > .name = "qfprom", > .owner = THIS_MODULE, > - .stride = 4, > + .stride = 1, Are we certain that all qfproms support byte accesses

Re: [PATCH 02/16] ARM: EXYNOS: use generic API to enable SCU

2016-11-15 Thread Krzysztof Kozlowski
On Mon, Nov 14, 2016 at 10:31:57AM +0530, Pankaj Dubey wrote: > Now as we have of_scu_enable which takes care of mapping > scu base from DT, lets use it. > > This patch also fixes build failure in case !SMP caused > by commit SHA ID: 94210b1abb2 which is already merged in > krzk/for-next branch >

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 10:57 AM, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 12:43:56PM -0500, Vince Weaver wrote: >> >> Running on my haswell machine with the imc/uncore patch applied, the >> perf_fuzzer next tripped over this issue. >> >> [ 202.034495] BAD LUCK: lost 371 message(s) from NM

Re: [PATCH] staging: slicoss: fix different address space warnings

2016-11-15 Thread kbuild test robot
Hi Sergio, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.9-rc5 next-20161115] [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/Sergio-Paracuellos/staging-slicoss

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Vince Weaver
On Tue, 15 Nov 2016, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 12:43:56PM -0500, Vince Weaver wrote: > > > > Running on my haswell machine with the imc/uncore patch applied, the > > perf_fuzzer next tripped over this issue. > > > > [ 202.034495] BAD LUCK: lost 371 message(s) from NMI con

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-15 Thread John Youn
On 11/14/2016 3:00 PM, John Youn wrote: > On 11/11/2016 3:12 PM, Christian Lamparter wrote: >> On Friday, November 11, 2016 2:20:42 PM CET John Youn wrote: >>> On 11/11/2016 2:05 PM, Christian Lamparter wrote: On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: > On 11/11/2016 12:

Re: [RFC PATCH v3 13/20] x86: DMA support for memory encryption

2016-11-15 Thread Michael S. Tsirkin
On Tue, Nov 15, 2016 at 12:29:35PM -0600, Tom Lendacky wrote: > On 11/15/2016 9:16 AM, Michael S. Tsirkin wrote: > > On Wed, Nov 09, 2016 at 06:37:23PM -0600, Tom Lendacky wrote: > >> Since DMA addresses will effectively look like 48-bit addresses when the > >> memory encryption mask is set, SWIOTL

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-15 Thread Peter Zijlstra
On 15 November 2016 19:06:28 CET, Kees Cook wrote: >I'll want to modify this in the future; I have a config already doing >"Bug on data structure corruption" that makes the warn/bug choice. >It'll need some massaging to fit into the new refcount_t checks, but >it should be okay -- there needs t

Re: [PATCH/RESEND] recordmcount: arm: Implement make_nop

2016-11-15 Thread Stephen Boyd
On 11/15, Ard Biesheuvel wrote: > On 19 October 2016 at 00:42, Stephen Boyd wrote: > > In similar spirit to x86 and arm64 support, add a make_nop_arm() > > to replace calls to mcount with a nop in sections that aren't > > traced. > > > > Cc: Russell King > > Acked-by: Rabin Vincent > > Signed-of

[PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset

2016-11-15 Thread Florian Fainelli
Utilize the generic phy_ethtool_nway_reset() helper function to implement an autonegotiation restart. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

[PATCH net-next 3/5] net: ethernet: mvneta: Implement ethtool::nway_reset

2016-11-15 Thread Florian Fainelli
Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvneta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvnet

[PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset

2016-11-15 Thread Florian Fainelli
Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/ethoc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/

[PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: Implement ethtool::nway_reset

2016-11-15 Thread Florian Fainelli
Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/marvell/pxa168_eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/p

[PATCH net-next 4/5] net: ethernet: mvpp2: Implement ethtool::nway_reset

2016-11-15 Thread Florian Fainelli
Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvpp2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvpp2.

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 11:16 AM, Peter Zijlstra wrote: > > > On 15 November 2016 19:06:28 CET, Kees Cook wrote: > >>I'll want to modify this in the future; I have a config already doing >>"Bug on data structure corruption" that makes the warn/bug choice. >>It'll need some massaging to fit into t

Re: [PATCH v15 01/13] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-11-15 Thread kbuild test robot
Hi Fu, [auto build test ERROR on tip/timers/core] [also build test ERROR on v4.9-rc5 next-20161115] [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/fu-wei-linaro-org/acpi-clocksource-add-GTDT

Re: [PATCH/RESEND] recordmcount: arm: Implement make_nop

2016-11-15 Thread Ard Biesheuvel
On 15 November 2016 at 19:18, Stephen Boyd wrote: > On 11/15, Ard Biesheuvel wrote: >> On 19 October 2016 at 00:42, Stephen Boyd wrote: >> > In similar spirit to x86 and arm64 support, add a make_nop_arm() >> > to replace calls to mcount with a nop in sections that aren't >> > traced. >> > >> > C

Re: [PATCH 04/15] net: mv643xx_eth: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Andrew Lunn
On Tue, Nov 15, 2016 at 10:06:33AM -0800, Florian Fainelli wrote: > Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 06:05:32PM +, Noam Camus wrote: > >From: Daniel Lezcano > > >Sent: Tuesday, November 15, 2016 7:49 PM > > > I believe the request was for you. > Indeed it was. > > However no formal Ack was made by you. Since I got no tree I preferred that > you will take the series

Re: [PATCH v05 14/72] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h

2016-11-15 Thread Mikko Rapeli
On Wed, Aug 24, 2016 at 05:36:22PM +0200, Arnd Bergmann wrote: > On Monday, August 22, 2016 8:32:31 PM CEST Mikko Rapeli wrote: > > Fixes userspace compilation error: > > > > error: unknown type name ‘__kernel_key_t’ > > > > Signed-off-by: Mikko Rapeli > > > > Looks good. I was on Cc for patch

Re: [PATCH] icmp: Restore resistence to abnormal messages

2016-11-15 Thread Vicente Jiménez
I agree that both patches try to solve the same problem in a very similar way. Florian Westphal's patch do two more things: 1- add warning with pr_warn_ratelimited. I like this idea. I also though about adding some message but I have no kernel experience and I preferred to have just a working solut

Re: [PATCH v9 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-11-15 Thread Stefan Wahren
Hi Ksenija, > Ksenija Stanojevic hat am 2. November 2016 um > 08:38 geschrieben: > > > Add core files for low resolution analog-to-digital converter (mxs-lradc) > MFD driver. > > Signed-off-by: Ksenija Stanojevic > --- > Changes in v9: > - improve commit message. > > Changes in v8: > - reb

Re: [PATCH v05 27/72] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h

2016-11-15 Thread Mikko Rapeli
On Wed, Aug 24, 2016 at 08:57:21AM +0200, Frans Klaver wrote: > On Tue, Aug 23, 2016 at 10:03 AM, Frans Klaver wrote: > > On Tue, Aug 23, 2016 at 9:05 AM, David Miller wrote: > >> From: Frans Klaver > >> Date: Tue, 23 Aug 2016 09:03:20 +0200 > >> > >>> On Tue, Aug 23, 2016 at 1:30 AM, David Mill

Re: [PATCH V4 00/15] blk-throttle: add .high limit

2016-11-15 Thread Bart Van Assche
On 11/14/2016 05:28 PM, Shaohua Li wrote: On Mon, Nov 14, 2016 at 05:18:28PM -0800, Bart Van Assche wrote: Unless someone can convince me of the opposite I think that coming up with an algorithm for estimating I/O cost is essential to guarantee I/O fairness without requesting users to perform co

Re: [PATCH v9 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-11-15 Thread Ksenija Stanojević
On Tue, Nov 15, 2016 at 8:33 PM, Stefan Wahren wrote: > Hi Ksenija, > >> Ksenija Stanojevic hat am 2. November 2016 um >> 08:38 geschrieben: >> >> >> Add core files for low resolution analog-to-digital converter (mxs-lradc) >> MFD driver. >> >> Signed-off-by: Ksenija Stanojevic >> --- >> Changes

Re: [PATCH v3 0/8] pstore: Improve performance of ftrace backend with ramoops

2016-11-15 Thread Joel Fernandes
Hi Kees, On Fri, Nov 11, 2016 at 2:21 PM, Kees Cook wrote: > Hi Joel, > > I've reorganized a bunch of the logic here. Since pstore is going to need > the init_przs() logic for multiple pmsg przs, I wanted to get this in and > make sure I was happy with how it looks. I figured this would reduce ou

[PATCH v2] usb: dwc2: add amcc,dwc-otg support

2016-11-15 Thread John Youn
From: Christian Lamparter This patch adds support for the "amcc,usb-otg" device which is found in the PowerPC Canyonlands' dts. The device definition was added by: commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands board") but without any driver support as the dwc2 driver

Re: [PATCH 03/15] net: bcm63xx_enet: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Heinrich Schuchardt
On 11/15/2016 07:06 PM, Florian Fainelli wrote: > Signed-off-by: Florian Fainelli Each patch of your patch series should have a commit message. You can add the missing commit messages with git rebase -i HEAD~15 choosing reword. Please, add a cover letter message describing the patch series usin

Re: [PATCH v2] f2fs: don't wait writeback for datas during checkpoint

2016-11-15 Thread Jaegeuk Kim
Hi Chao, On Tue, Nov 15, 2016 at 07:33:27PM +0800, Chao Yu wrote: > Normally, while committing checkpoint, we will wait on all pages to be > writebacked no matter the page is data or metadata, so in scenario where > there are lots of data IO being submitted with metadata, we may suffer > long late

Re: [PATCH 03/15] net: bcm63xx_enet: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
On 11/15/2016 11:59 AM, Heinrich Schuchardt wrote: > On 11/15/2016 07:06 PM, Florian Fainelli wrote: >> Signed-off-by: Florian Fainelli > > Each patch of your patch series should have a commit message. It's pretty obvious what this does, really. > > You can add the missing commit messages with

[PATCH 0/4] x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag and hardware related changes

2016-11-15 Thread Bin Gao
This patch series adds X86_FEATURE_TSC_KNOWN_FREQ flag and modifies Intel Atom SoC related TSC codes to use the new TSC_KNOWN_FREQ flag and the existed TSC_RELIABLE flag. Bin Gao (4): x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag x86/tsc: mark TSC frequency determined by CPUID as known x86/ts

[PATCH 2/4] x86/tsc: mark TSC frequency determined by CPUID as known

2016-11-15 Thread Bin Gao
Unlike TSC calibration where we determin TSC frequency by another timer with known frequency, CPUs/SoCs with CPUID leaf 0x15 come with a known frequency and will report the frequency to software via CPUID instruction. This hardware provided frequency is the "real" frequency of TSC so we set the X86

[PATCH 4/4] x86/tsc: set TSC_KNOWN_FREQ and TSC_RELIABLE flags on Intel Atom SoCs

2016-11-15 Thread Bin Gao
TSC on Intel Atom SoCs capable of determining TSC frequency by MSR is reliable and the frequency is known (because it's provided by HW). On these platforms PIT/HPET is generally not available so calibration won't work at all and also TSC is the only reliable clocksource. So we set both X86_FEATURE_

[PATCH 3/4] x86/tsc: mark Intel ATOM_GOLDMONT TSC reliable

2016-11-15 Thread Bin Gao
On Intel GOLDMONT Atom SoC TSC is the only reliable clocksource. We mark TSC reliable to avoid watchdog on it. Signed-off-by: Bin Gao --- arch/x86/kernel/tsc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index f1a7fb5..354b302 100644 -

[PATCH 1/4] x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag

2016-11-15 Thread Bin Gao
The X86_FEATURE_TSC_RELIABLE flag in Linux kernel implies both reliable (at runtime) and trustable (at calibration). But reliable running and trustable calibration are logically irrelevant. Per Thomas Gleixner's suggestion we would like to split this flag into two separate flags: X86_FEATURE_TSC_RE

[no subject]

2016-11-15 Thread Christoph Lameter
> > There is a deadlock, Peter!!! > > Describe please? Also, have you tried disabling RT_RUNTIME_SHARE ? > The description was given earlier in the the thread and the drawbacks of using RT_RUNTIME_SHARE as well.

[PATCH v2 0/2] Global filtering for ftrace functions

2016-11-15 Thread Joel Fernandes
Currently enabling /sys/kernel/debug/pstore/record_ftrace traces all functions and setting set_ftrace_filter doesn't apply. These patches allow one to set_ftrace_filter and have pstore make use of the filtering feature resulting in lower overhead and performance improvement. Changes in v2 are only

[PATCH v2 2/2] pstore: Use global ftrace filters for function trace filtering

2016-11-15 Thread Joel Fernandes
Currently, pstore doesn't have any filters setup for function tracing. This has the associated overhead and may not be useful for users looking for tracing specific set of functions. ftrace's regular function trace filtering is done writing to tracing/set_ftrace_filter however this is not availab

[PATCH v2 1/2] ftrace: Provide API to use global filtering for ftrace ops

2016-11-15 Thread Joel Fernandes
Currently the global_ops filtering hash is not available to outside users registering for function tracing. Provide an API for those users to be able to choose global filtering. This is in preparation for pstore's ftrace feature to be able to use the global filters. Suggested-by: Steven Rostedt

Re: [RFC PATCH v3 13/20] x86: DMA support for memory encryption

2016-11-15 Thread Tom Lendacky
On 11/15/2016 12:17 PM, Radim Krčmář wrote: > 2016-11-15 11:02-0600, Tom Lendacky: >> On 11/15/2016 8:39 AM, Radim Krčmář wrote: >>> 2016-11-09 18:37-0600, Tom Lendacky: Since DMA addresses will effectively look like 48-bit addresses when the memory encryption mask is set, SWIOTLB is need

[RFC PATCH] xhci: Fix memory use after free in xhci_free_virt_device

2016-11-15 Thread Guenter Roeck
The following use-after-free reports were seen on resume with a specific USB hub. BUG: KASAN: use-after-free in xhci_free_virt_device+0x8c/0x21c at addr ffc0cc1a2eb0 BUG: KASAN: use-after-free in xhci_update_tt_active_eps+0x9c/0xdc at addr ffc0cc1a2eb0 Relevant traceback f

Re: [PATCH v2 1/2] ftrace: Provide API to use global filtering for ftrace ops

2016-11-15 Thread Steven Rostedt
On Tue, 15 Nov 2016 12:31:20 -0800 Joel Fernandes wrote: > Currently the global_ops filtering hash is not available to outside > users registering for function tracing. Provide an API for those > users to be able to choose global filtering. > > This is in preparation for pstore's ftrace feature

Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-15 Thread Lino Sanfilippo
Hi, On 13.11.2016 20:55, Andrew Lunn wrote: >> +static const char slic_stats_strings[][ETH_GSTRING_LEN] = { >> +"rx_packets ", >> +"rx_bytes ", >> +"rx_multicasts ", >> +"rx_errors ", >> +"rx_buff_miss ", >> +"rx_tp_csum ", >> +"rx_tp_oflow",

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 12:03 AM, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 08:33:22AM +0100, Greg KH wrote: >> On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: > >> > --- a/drivers/block/drbd/drbd_req.c >> > +++ b/drivers/block/drbd/drbd_req.c >> > @@ -520,7 +520,7 @@ static

Re: [PATCH v13 10/22] vfio iommu type1: Add support for mediated devices

2016-11-15 Thread Alex Williamson
On Tue, 15 Nov 2016 20:59:53 +0530 Kirti Wankhede wrote: > VFIO IOMMU drivers are designed for the devices which are IOMMU capable. > Mediated device only uses IOMMU APIs, the underlying hardware can be > managed by an IOMMU domain. > > Aim of this change is: > - To use most of the code of TYPE1

Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-15 Thread Florian Fainelli
On 11/15/2016 12:46 PM, Lino Sanfilippo wrote: >> Could this be pulled out into a standard PHY driver? All the SLIC >> SLIC_PCR_ defines seems to be the same as those in mii.h. This could >> be a standard PHY hidden behind a single register. >> >>Andrew > > You are right, the driver should rea

Re: [PATCH] [STYLE]staging:skein:threefish_block.c remove blank lines

2016-11-15 Thread Jason Cooper
Hi Dan, On Mon, Nov 14, 2016 at 01:34:15PM +0300, Dan Carpenter wrote: > Please just delete the blank lines. Sure, if that's what you guys prefer. > You aren't that special like a snow flake. Someone put his grumpy pants on backwards, didn't he? thx, Jason.

Re: [PATCH v2 1/2] ftrace: Provide API to use global filtering for ftrace ops

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 12:38 PM, Steven Rostedt wrote: > On Tue, 15 Nov 2016 12:31:20 -0800 > Joel Fernandes wrote: > >> Currently the global_ops filtering hash is not available to outside >> users registering for function tracing. Provide an API for those >> users to be able to choose global fi

Re: [PATCH] [STYLE]staging:skein:threefish_block.c remove blank lines

2016-11-15 Thread Jason Cooper
Hi Walt, Please ignore our side conversation, On Sat, Nov 12, 2016 at 03:02:53PM -0500, Walt Feasel wrote: > Made suggested modifications from checkpatch in reference > to CHECK: Please don't use multiple blank lines > > Signed-off-by: Walt Feasel Acked-by: Jason Cooper thx, Jason.

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Josh Poimboeuf
On Tue, Nov 15, 2016 at 11:04:45AM -0800, Dmitry Vyukov wrote: > On Tue, Nov 15, 2016 at 10:57 AM, Peter Zijlstra wrote: > > On Tue, Nov 15, 2016 at 12:43:56PM -0500, Vince Weaver wrote: > >> > >> Running on my haswell machine with the imc/uncore patch applied, the > >> perf_fuzzer next tripped ov

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Josh Poimboeuf
On Tue, Nov 15, 2016 at 02:05:50PM -0500, Vince Weaver wrote: > On Tue, 15 Nov 2016, Peter Zijlstra wrote: > > > On Tue, Nov 15, 2016 at 12:43:56PM -0500, Vince Weaver wrote: > > > > > > Running on my haswell machine with the imc/uncore patch applied, the > > > perf_fuzzer next tripped over this

Re: [PATCH] staging: slicoss: fix different address space warnings

2016-11-15 Thread kbuild test robot
Hi Sergio, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.9-rc5 next-20161115] [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/Sergio-Paracuellos/staging-slicoss

[PATCH v4 2/3] ASoC: tse850: document axentia,tse850-pcm5142 bindings

2016-11-15 Thread Peter Rosin
The TSE-850 is an FM Transmitter Station Equipment, designed to generate baseband signals for FM, mainly the DARC subcarrier, but other signals are also possible. Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/sound/axentia,tse850-pcm5142.txt | 88 ++

[PATCH v4 1/3] ASoC: atmel_ssc_dai: if not provided, default to sensible dividers

2016-11-15 Thread Peter Rosin
When this driver masters BCLK and/or LRCLK, and noone has stated differently, assume that all the bits of a frame are used. This relieves the cpu dai users from the duty to fill in the dividers for the common case. Signed-off-by: Peter Rosin --- sound/soc/atmel/atmel_ssc_dai.c | 83

[PATCH v4 0/3] ASoC driver for the TSE-850

2016-11-15 Thread Peter Rosin
Hi! v3 -> v4 changes: - changed heading of the devicetree bindings as requested by Rob - add ack from Rob on patch 2/3 - rebased onto v4.9-rc5 v2 -> v3 changes: - update the preparatory atmel_ssc_dai patch with error checking and fallback handling of the CMR_DIV divider in addition to the new

[PATCH v4 3/3] ASoC: atmel: tse850: add ASoC driver for the Axentia TSE-850

2016-11-15 Thread Peter Rosin
The TSE-850 is an FM Transmitter Station Equipment, designed to generate baseband signals for FM, mainly the DARC subcarrier, but other signals are also possible. Signed-off-by: Peter Rosin --- MAINTAINERS | 1 + sound/soc/atmel/Kconfig | 10 + sound/soc/atmel/Ma

[PATCH] m32r: fix build warning

2016-11-15 Thread Sudip Mukherjee
While building m32r defconfig we got warnings: arch/m32r/platforms/m32700ut/setup.c:249:24: warning: 'm32700ut_lcdpld_irq_type' defined but not used [-Wunused-variable] m32700ut_lcdpld_irq_type is only used when CONFIG_USB is enabled. Modify the code to declare the related variables and functio

RE: [PATCH 13/15] net: ethernet: lantiq_etop: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Langer, Thomas
> Subject: [PATCH 13/15] net: ethernet: lantiq_etop: Utilize > phy_ethtool_nway_reset > > Signed-off-by: Florian Fainelli > --- > drivers/net/ethernet/lantiq_etop.c | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) > Reviewed-by: Thomas Langer

Re: [PATCH/RFC] mm: don't cap request size based on read-ahead setting

2016-11-15 Thread Jens Axboe
On 11/10/2016 10:00 AM, Jens Axboe wrote: Hi, We ran into a funky issue, where someone doing 256K buffered reads saw 128K requests at the device level. Turns out it is read-ahead capping the request size, since we use 128K as the default setting. This doesn't make a lot of sense - if someone is

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device nodeg

2016-11-15 Thread Bin Liu
On Tue, Nov 15, 2016 at 04:16:02PM +0530, Sekhar Nori wrote: > On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: > > This adds the device tree node for the usb otg > > controller present in the da850 family of SoC's. > > This also enables the otg usb controller for the lcdk board. > >

Re: [RFC PATCH v3 04/20] x86: Handle reduction in physical address size with SME

2016-11-15 Thread Tom Lendacky
On 11/15/2016 6:14 AM, Borislav Petkov wrote: > On Tue, Nov 15, 2016 at 01:10:35PM +0100, Joerg Roedel wrote: >> Maybe add a comment here why you can't use cpu_has (yet). > > So that could be alleviated by moving this function *after* > init_scattered_cpuid_features(). Then you can simply do *cpu_

Re: [PATCH v4 0/4] Add DT support for DA8xx

2016-11-15 Thread Bin Liu
On Thu, Nov 03, 2016 at 04:59:08PM +0100, Alexandre Bailon wrote: > Changes in v2: > * Remove unrelated changes in patch 3 > * Rename the device node in patch 4 > > Changes in v3: > * Fix few mistakes in DT binding sample > * Only build the device table if DT is enabled > > Change in v4: > * Fix

[PATCH v3] cpufreq: conservative: Decrease frequency faster when the update deferred

2016-11-15 Thread Stratos Karafotis
Conservative governor changes the CPU frequency in steps. That means that if a CPU runs at max frequency, it will need several sampling periods to return to min frequency when the workload is finished. If the update function that calculates the load and target frequency is deferred, the governor m

Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-15 Thread Lino Sanfilippo
Hi, On 15.11.2016 21:54, Florian Fainelli wrote: > On 11/15/2016 12:46 PM, Lino Sanfilippo wrote: >>> Could this be pulled out into a standard PHY driver? All the SLIC >>> SLIC_PCR_ defines seems to be the same as those in mii.h. This could >>> be a standard PHY hidden behind a single register. >>

Re: [PATCH V4 00/15] blk-throttle: add .high limit

2016-11-15 Thread Shaohua Li
On Tue, Nov 15, 2016 at 11:53:39AM -0800, Bart Van Assche wrote: > On 11/14/2016 05:28 PM, Shaohua Li wrote: > > On Mon, Nov 14, 2016 at 05:18:28PM -0800, Bart Van Assche wrote: > > > Unless someone can convince me of the opposite I think that coming up with > > > an algorithm for estimating I/O co

Re: [RFC PATCH v3 04/20] x86: Handle reduction in physical address size with SME

2016-11-15 Thread Borislav Petkov
On Tue, Nov 15, 2016 at 03:22:45PM -0600, Tom Lendacky wrote: > Hmmm... I still need the ebx value from the CPUID instruction to > calculate the proper reduction in physical bits, so I'll still need > to make the CPUID call. if (c->extended_cpuid_level >= 0x801f) { cpui

Re: [PATCH v3 0/8] pstore: Improve performance of ftrace backend with ramoops

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 11:55 AM, Joel Fernandes wrote: > Hi Kees, > > On Fri, Nov 11, 2016 at 2:21 PM, Kees Cook wrote: >> Hi Joel, >> >> I've reorganized a bunch of the logic here. Since pstore is going to need >> the init_przs() logic for multiple pmsg przs, I wanted to get this in and >> make

Re: [PATCH 3/3] trace-cmd record: add --cpu-list option

2016-11-15 Thread Steven Rostedt
On Fri, 28 Oct 2016 17:14:56 -0400 Luiz Capitulino wrote: > > > > cpu_set(ret_mask, i) sets bits from begin to end in uint64_t cpumask > > from below. > > > > What happens if this range is greater than 64? We already have boxes > > that run this with 80 CPUs. Looks to be out of memory range to

[RFC][PATCH 1/3] usb: dwc2: Force port resume on switching to device mode

2016-11-15 Thread John Stultz
From: Chen Yu We've seen failures when switching between host and gadget mode, which was diagnosed as being caused due to the bus being auto-suspended when we switched. So this patch forces a port resume when switching to device mode if the bus is suspended. Cc: Wei Xu Cc: Guodong Xu Cc: Amit

Re: [PATCH 1/2] trace-cmd: Makefile - link all trace-* objects into ctracecmd.so

2016-11-15 Thread Steven Rostedt
On Mon, 14 Nov 2016 11:55:42 + Andreas Platschek wrote: > Got a few undefined symbols when using the Python interface to trace-cmd, > the first one was: > > root@wheezy:~/trace-cmd# python tracecmd.py > Traceback (most recent call last): > File "tracecmd.py", line 22, in > from ctrace

Re: [Intel-wired-lan] [PATCH v2] e1000e: free IRQ regardless of __E1000_DOWN

2016-11-15 Thread Baicar, Tyler
On 11/13/2016 2:25 AM, Neftin, Sasha wrote: On 11/13/2016 10:34 AM, Neftin, Sasha wrote: On 11/11/2016 12:35 AM, Baicar, Tyler wrote: Hello Sasha, On 11/9/2016 11:19 PM, Neftin, Sasha wrote: On 11/9/2016 11:41 PM, Tyler Baicar wrote: Move IRQ free code so that it will happen regardless of th

<    3   4   5   6   7   8   9   10   >