Re: [PATCH] lkdtm: Add tests for LIST_POISON and ZERO_SIZE_PTR

2016-11-15 Thread kbuild test robot
Hi Michael, [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on v4.9-rc5] [cannot apply to 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/Michael

[PATCH 1/2] MMC: davinci: use mmc_of_parse to parse common mmc configuration

2016-11-15 Thread Axel Haslam
Card detect and write protect are currently not working on a DT boot, and the driver relies on polling to get the state of the card. The current code depends on platform data callbacks to register and get the state of the gpios. mmc core provides a generic way to parse device tree configuration, w

[PATCH 2/2] MMC: davinci: request gpios using gpio descriptors

2016-11-15 Thread Axel Haslam
Request card detect and write protect gpios using the provided API by mmc core. If a gpio is provided for card detect, we don't need to poll. So only use polling when a gpio is not provided. Once all pdata users register the gpios using gpio descriptors, we could remove the platform callbacks. S

[PATCH 0/2] MMC: davinci: fix card detect and write protect

2016-11-15 Thread Axel Haslam
This series fixes the card detect and write protect parsing for the davinci_mmc driver, and takes care of a technical debt to remove card polling when a card detect gpio is available. In the case of a platform based boot we register the gpios using the APIs provided by slot-gpio. In the case of

Re: [GIT PULL] fbdev fixes for 4.9

2016-11-15 Thread Linus Torvalds
On Tue, Nov 15, 2016 at 3:40 AM, Tomi Valkeinen wrote: > > I did test compile, and I would have noticed errors but I missed the warnings > (I blame the flu...). I need to improve my testing methods, but I couldn't > find > a way to add -Werror to kernel builds. I guess I should just always captur

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-15 Thread Andrew Lunn
On Tue, Nov 15, 2016 at 03:29:12PM +0100, Jerome Brunet wrote: > On some platforms, energy efficient ethernet with rtl8211 devices is > causing issue, like throughput drop or broken link. > > This was reported on the OdroidC2 (DWMAC + RTL8211F). While the issue root > cause is not fully understood

[RFC v2 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-15 Thread Zach Brown
On some boards, max SDIO frequency is limited by trace lengths and other layout choices. We would like a way to specify this limitation so the driver can behave accordingly. This patch set assumes that the limitation has been reported in an ACPI table which the driver can check to get the max freq

[RFC v2 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-15 Thread Zach Brown
On NI 9037 boards the max SDIO frequency is limited by trace lengths and other layout choices. The max SDIO frequency is stored in an ACPI table. The driver reads the ACPI entry MXFQ during sdio_probe_slot and sets the f_max field of the host. Signed-off-by: Nathan Sullivan Reviewed-by: Jaeden A

[RFC v2 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-15 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/

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 10:06:16AM -0600, Tom Lendacky wrote: > Yes, but that doesn't relate to the physical address space reduction. > > Once the SYS_CFG MSR bit for SME is set, even if the encryption bit is > never used, there is a physical reduction of the address space. So when > checking whet

Re: [PATCH] ACPI: allow compilation with bare metal compilers

2016-11-15 Thread Al Stone
On 11/15/2016 08:43 AM, Moore, Robert wrote: > The design for all of this is as follows: > > 1) OS-dependent includes > 2) Compiler-specific includes > 3) acenv.h is the master file that pulls in the correct headers (one > compiler, and one OS) Sure, that's understood from the current structure.

Re: [PATCH v5 6/8] Documentation: bindings: add compatible specific to legacy SCPI protocol

2016-11-15 Thread Sudeep Holla
On 11/11/16 14:19, Sudeep Holla wrote: On 11/11/16 13:34, Rob Herring wrote: On Fri, Nov 11, 2016 at 1:48 AM, Sudeep Holla wrote: [...] True and I agree, how about "arm,scpi-pre-1.0" instead ? That's still meaningless. Convince me that multiple implementations are identical, then we

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-11-15 Thread Jacob Pan
On Tue, 15 Nov 2016 19:36:26 +0800 Zhang Rui wrote: > On Mon, 2016-11-14 at 11:12 -0800, Jacob Pan wrote: > > On Fri, 11 Nov 2016 18:34:10 +0100 > > Petr Mladek wrote: > > > > > > > > Please, let me known if I should do this as a separate patch > > > and/or resend the patchset. > > Rui/Edu

Re: [PATCH 3/3] x86/intel_rdt: Update closid in PQR_ASSOC registers in synchronous mode when changing "cpus"

2016-11-15 Thread Thomas Gleixner
On Tue, 15 Nov 2016, Thomas Gleixner wrote: > On Fri, 11 Nov 2016, Fenghua Yu wrote: > > +/* > > + * MSR_IA32_PQR_ASSOC is scoped per logical CPU, so all updates > > + * are always in thread context. > > And this comment tells us what? Nothing useful. It lacks the most important > information why

Re: [PATCH] printk, locking/atomics, kref: Introduce new %pAr and %pAk format string options for atomic_t and 'struct kref'

2016-11-15 Thread Linus Torvalds
On Tue, Nov 15, 2016 at 12:37 AM, Ingo Molnar wrote: > +atomic variables such atomic_t or struct kref: > + > + %pAratomic_t count > + %pAkstruct kref count Not a huge fan. That "r" makes sense to you ("raw" atomic), but it makes no sense to a user. An atomic isn't "raw" to any

Mr. Turritopsis Dohrnii Teo En Ming (Zhang Enming) is Looking for Information Technology-related Jobs World Wide

2016-11-15 Thread Turritopsis Dohrnii Teo
Dear Sir/Madam, My academic and educational qualifications are now reflected in my email signature. I am an entry level/junior/beginner Information Technology (IT) Specialist/Systems Engineer/Linux Server Administrator/Helpdesk Support/Computer Technician available for hire anywhere in the world!

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

2016-11-15 Thread Vicente Jiménez
On Mon, Nov 14, 2016 at 7:36 PM, David Miller wrote: > From: Vicente Jimenez Aguilar > Date: Fri, 11 Nov 2016 21:20:18 +0100 > >> @@ -819,6 +820,12 @@ static bool icmp_unreach(struct sk_buff *skb) >> /* fall through */ >> case 0: >>

Re: [PATCH v2 2/3] cpuidle: allow setting deepest idle

2016-11-15 Thread Jacob Pan
On Mon, 14 Nov 2016 22:42:03 +0100 "Rafael J. Wysocki" wrote: > > diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c > > index cb6442f..9e80f32 100644 > > --- a/kernel/sched/idle.c > > +++ b/kernel/sched/idle.c > > @@ -173,6 +173,9 @@ static void cpuidle_idle_call(void) > > > >

[PATCH 1/2] ovl: use kernel facility for copying attributes

2016-11-15 Thread Quorum Laval
Replace ovl_copyattr() by fsstack_copy_attr_all() and drop the definition of the former. Signed-off-by: Quorum Laval --- fs/overlayfs/dir.c | 3 ++- fs/overlayfs/inode.c | 3 ++- fs/overlayfs/overlayfs.h | 9 - fs/overlayfs/super.c | 7 --- 4 files changed, 8 insertions

[PATCH 2/2] ovl: use kernel facility for updating access time

2016-11-15 Thread Quorum Laval
Use fsstack_copy_attr_atime() instead of direct assignement. Signed-off-by: Quorum Laval --- fs/overlayfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index 540caa6..083cbdb 100644 --- a/fs/overlayfs/inode.c +++ b/fs/over

[PATCH 2/2] perf/x86/intel/uncore: Fix SBOX support for Broadwell CPUs.

2016-11-15 Thread Oskar Senft
This fixes SBOX support for Broadwell CPUs by checking the Power Control Unit CAPID4 register to determine the number of available SBOXes on the particular CPU before trying to enable them. This patch has been tested on E5-2620 v4 (no SBOXes) and E5-2697 v4 (4 SBOXes). Signed-off-by: Oskar Senft

[PATCH 1/2] Revert "perf/x86/intel/uncore: Remove SBOX support for Broadwell server"

2016-11-15 Thread Oskar Senft
This reverts commit 3b94a891667c ("perf/x86/intel/uncore: Remove SBOX support for Broadwell server"). Note that this commit will cause a GP fault during boot on Broadwell CPUs that do not have SBOXes. This is in preparation for a follow-up change which fixes the SBOX support for Broadwell CPUs. Si

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

2016-11-15 Thread David Miller
From: Vicente Jiménez Date: Tue, 15 Nov 2016 17:49:43 +0100 > On Mon, Nov 14, 2016 at 7:36 PM, David Miller wrote: >> From: Vicente Jimenez Aguilar >> Date: Fri, 11 Nov 2016 21:20:18 +0100 >> >>> @@ -819,6 +820,12 @@ static bool icmp_unreach(struct sk_buff *skb) >>>

Re: [PATCH 0/2] sched/rt: disable RT_RUNTIME_SHARE by default and document it

2016-11-15 Thread Daniel Bristot de Oliveira
On 11/15/2016 04:27 PM, Steven Rostedt wrote: > I don't see why this is two patches. A change and a comment can go > together, and probably should, especially since the comment explains > the change as well. > > With a folded patch... I will cook a v2 in a single patch! Thanks! -- Daniel

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

2016-11-15 Thread 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 needed if the DMA mask of the >> device performing the DMA does not support 48-bits. SWIOTLB wil

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-15 Thread Florian Fainelli
On 11/15/2016 08:30 AM, Andrew Lunn wrote: > On Tue, Nov 15, 2016 at 03:29:12PM +0100, Jerome Brunet wrote: >> On some platforms, energy efficient ethernet with rtl8211 devices is >> causing issue, like throughput drop or broken link. >> >> This was reported on the OdroidC2 (DWMAC + RTL8211F). Whil

RE: perf: fuzzer KASAN slab-out-of-bounds in snb_uncore_imc_event_del

2016-11-15 Thread Liang, Kan
> > On Tue, Nov 15, 2016 at 12:57:31AM -0500, Vince Weaver wrote: > > On Mon, 14 Nov 2016, Vince Weaver wrote: > > > > > Anyway as per the suggestion at Linux Plumbers I enabled KASAN and > > > on my haswell machine it falls over in a few minutes of running the > perf_fuzzer. > > > > > > [ 205.74

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

2016-11-15 Thread Ksenija Stanojević
On Mon, Nov 14, 2016 at 7:43 PM, Marek Vasut wrote: > On 11/02/2016 08:38 AM, Ksenija Stanojevic wrote: >> 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. >> >>

RE: [PATCH] cpufreq: intel_pstate: Generic governors support

2016-11-15 Thread Doug Smythies
On 2016.11.13 16:08 Rafael J. Wysocki wrote: > Rebased on top of my linux-next branch, which in turn is based on 4.9-rc5 now. > > I'm running this on my IVB laptop w/ the schedutil governor, no problems so > far (fingers crossed). I did the exact same tests as I did with your earlier RFT/RFC vers

Re: [PATCH] drm/bridge: analogix_dp: return error if transfer none byte

2016-11-15 Thread Sean Paul
On Thu, Nov 3, 2016 at 3:17 AM, Jianqun Xu wrote: > Reference from drm_dp_aux description (about transfer): > Upon success, the implementation should return the number of payload bytes > that were transferred, or a negative error-code on failure. Helpers > propagate errors from the .transfer() fun

Re: [PATCH] reset: Add Tegra BPMP reset driver

2016-11-15 Thread Philipp Zabel
Hi Thierry, Am Dienstag, den 15.11.2016, 17:17 +0100 schrieb Thierry Reding: > From: Thierry Reding > > This driver uses the services provided by the BPMP firmware driver to > implement a reset driver based on the MRQ_RESET request. > > Signed-off-by: Thierry Reding > --- > Hi Philipp, > > I'

Re: [PATCH v3 1/9] doc: DT: vidc: binding document for Qualcomm video driver

2016-11-15 Thread Stanimir Varbanov
Hi Rob, Thanks for the comments! On 11/14/2016 07:04 PM, Rob Herring wrote: > On Mon, Nov 07, 2016 at 07:33:55PM +0200, Stanimir Varbanov wrote: >> Add binding document for Venus video encoder/decoder driver >> >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: devicet...@vger.kernel.org >> Signed-o

Re: [PATCH] net: ethernet: Fix SGMII unable to switch speed and autonego failure

2016-11-15 Thread David Miller
From: ho.jia@intel.com Date: Mon, 14 Nov 2016 17:06:49 +0800 > From: Jia Jie Ho > > TSE PCS SGMII ethernet has an issue where switching speed doesn't work > caused by a faulty register macro offset. This fixes the issue. > > Signed-off-by: Jia Jie Ho Applied.

RE: [PATCH 2/2] perf/x86/intel/uncore: Fix SBOX support for Broadwell CPUs.

2016-11-15 Thread Liang, Kan
> This fixes SBOX support for Broadwell CPUs by checking the Power Control > Unit CAPID4 register to determine the number of available SBOXes on the > particular CPU before trying to enable them. > > This patch has been tested on E5-2620 v4 (no SBOXes) and E5-2697 v4 (4 > SBOXes). > > Signed-off

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-15 Thread Tony Lindgren
* Tony Lindgren [161115 07:42]: > * Linus Walleij [161114 22:53]: > > On Tue, Nov 15, 2016 at 1:47 AM, Tony Lindgren wrote: > > > > > 8< > > > From tony Mon Sep 17 00:00:00 2001 > > > From: Tony Lindgren > > > Date: Tue, 25 Oct 2016 08:33:35 -0700 > > > Subject

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 10:33 AM, Borislav Petkov wrote: > On Tue, Nov 15, 2016 at 10:06:16AM -0600, Tom Lendacky wrote: >> Yes, but that doesn't relate to the physical address space reduction. >> >> Once the SYS_CFG MSR bit for SME is set, even if the encryption bit is >> never used, there is a physical red

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

2016-11-15 Thread Vineet Gupta
On 11/15/2016 02:30 AM, Daniel Lezcano wrote: >> Thx Daniel. So I suppose for 4.10, I will get these merged, >> > including the >> > driver/clocksource bits. OK ? > Hi Vineet, > > I just want to clarify. Do you want the entire series to go through my > tree ? Or through your tree ? I'

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

2016-11-15 Thread Sergio Paracuellos
This patch fix the following sparse warnings in slicoss driver: warning: incorrect type in assignment (different address spaces) Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h| 7 drivers/staging/slicoss/slicoss.c | 83 ++- 2 fi

[PATCH] regulator: max77620: remove unused variable

2016-11-15 Thread Shardar Shariff Md
From: Venkat Reddy Talla max77620_reuglator_pdata structure variable reg_idata is not used anywhere in the regulator driver, so removing it. Signed-off-by: Venkat Reddy Talla --- drivers/regulator/max77620-regulator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/max7762

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

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 09:16:44AM -0800, Vineet Gupta wrote: > On 11/15/2016 02:30 AM, Daniel Lezcano wrote: > >> Thx Daniel. So I suppose for 4.10, I will get these merged, > >> > including the > >> > driver/clocksource bits. OK ? > > Hi Vineet, > > > > I just want to clarify. Do you

Re: [PATCH 2/2] ARM: bcm2835: Add names for the Raspberry Pi Zero GPIO lines

2016-11-15 Thread Eric Anholt
Stefan Wahren writes: > This adds the GPIO names for the Raspberry Pi Zero. Since there are no > schematics for the RPi Zero use the same as the Model A+. These look good to me. I don't have a Zero schematic, but I compared to dt-blob. I've pulled these two to -next. signature.asc Description

[PATCH v7 2/3] clocksource: update "fn" at CLOCKSOURCE_OF_DECLARE() of nps400 timer

2016-11-15 Thread Noam Camus
From: Noam Camus nps_setup_clocksource() should take node as only argument as defined by typedef int (*of_init_fn_1_ret)(struct device_node *) Therefore need to replace: int __init nps_setup_clocksource(struct device_node *node, struct clk *clk) with int __init nps_setup_clocksource(struct devic

Re: [PATCH] kasan: update kasan_global for gcc 7

2016-11-15 Thread Andrey Ryabinin
On 11/15/2016 05:22 PM, Dmitry Vyukov wrote: > kasan_global struct is part of compiler/runtime ABI. > gcc revision 241983 has added a new field to kasan_global struct. > Update kernel definition of kasan_global struct to include > the new field. > > Signed-off-by: Dmitry Vyukov > Cc: aryabi...@

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

2016-11-15 Thread Vineet Gupta
On 11/15/2016 09:23 AM, Daniel Lezcano wrote: > On Tue, Nov 15, 2016 at 09:16:44AM -0800, Vineet Gupta wrote: >> On 11/15/2016 02:30 AM, Daniel Lezcano wrote: Thx Daniel. So I suppose for 4.10, I will get these merged, > including the > driver/clocksource bits. OK ? >>> Hi

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

2016-11-15 Thread Kees Cook
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 we print the buffer after we've written to it that prevents the > compiler f

Re: [PATCH 2/3] x86/intel_rdt: Return state to default on umount

2016-11-15 Thread Thomas Gleixner
On Tue, 15 Nov 2016, Thomas Gleixner wrote: > On Fri, 11 Nov 2016, Fenghua Yu wrote: > > @@ -801,6 +801,7 @@ static void rmdir_all_sub(void) > > { > > struct rdtgroup *rdtgrp, *tmp; > > struct task_struct *p, *t; > > + int cpu; > > > > /* move all tasks to default resource group *

Re: [PATCH 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition

2016-11-15 Thread Laxman Dewangan
On Tuesday 15 November 2016 07:57 PM, Rob Herring wrote: On Tue, Nov 15, 2016 at 5:42 AM, Laxman Dewangan wrote: On Monday 14 November 2016 09:18 PM, Rob Herring wrote: On Fri, Nov 04, 2016 at 11:07:54PM +0530, Laxman Dewangan wrote: regulator +- pwm-regulator-voltage-ramp-time-us: Integ

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

2016-11-15 Thread Florian Westphal
David Miller wrote: > From: Vicente Jiménez > Date: Tue, 15 Nov 2016 17:49:43 +0100 > > > On Mon, Nov 14, 2016 at 7:36 PM, David Miller wrote: > >> From: Vicente Jimenez Aguilar > >> Date: Fri, 11 Nov 2016 21:20:18 +0100 > >> > >>> @@ -819,6 +820,12 @@ static bool icmp_unreach(struct sk_buff *

Re: [PATCH] tpm: return -ENODEV if np is not set

2016-11-15 Thread Jarkko Sakkinen
On Tue, Nov 15, 2016 at 01:27:22PM +, Colin King wrote: > From: Colin Ian King > > device_node np contains a garbage value from the stack and it > is only set if chip->dev.parent->of_node is not null. Thus the > check for a null np won't spot a garbage value of np from the > stack if chip->d

Re: [PATCH] tpm: fix node pointer lookup

2016-11-15 Thread Jarkko Sakkinen
On Tue, Nov 15, 2016 at 04:57:11PM +0100, Arnd Bergmann wrote: > A rework left the node pointer uninitialized when the device tree > is not in use: > > drivers/char/tpm/tpm_of.c: In function 'read_log_of': > drivers/char/tpm/tpm_of.c:37:8: error: 'np' may be used uninitialized in this > function

Re: [PATCH] slab: Add POISON_POINTER_DELTA to ZERO_SIZE_PTR

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 2:57 AM, Michael Ellerman wrote: > POISON_POINTER_DELTA is defined in poison.h, and is intended to be used > to shift poison values so that they don't alias userspace. > > We should add it to ZERO_SIZE_PTR so that attackers can't use > ZERO_SIZE_PTR as a way to get a pointe

Re: [PATCH] reset: Add Tegra BPMP reset driver

2016-11-15 Thread Thierry Reding
On Tue, Nov 15, 2016 at 06:11:16PM +0100, Philipp Zabel wrote: > Hi Thierry, > > Am Dienstag, den 15.11.2016, 17:17 +0100 schrieb Thierry Reding: > > From: Thierry Reding > > > > This driver uses the services provided by the BPMP firmware driver to > > implement a reset driver based on the MRQ_R

RE: perf: fuzzer KASAN slab-out-of-bounds in snb_uncore_imc_event_del

2016-11-15 Thread Vince Weaver
On Tue, 15 Nov 2016, Liang, Kan wrote: > For client IMC, there is no generic counters. > Current implementation defines its own fixed free running counters. > event_list and n_events are unused. > I think we can just remove them. > > Vince, could you please try the patch as below? > With thi

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:05:42AM +0530, Nayna wrote: > > > On 11/15/2016 07:45 AM, Jarkko Sakkinen wrote: > > On Mon, Nov 14, 2016 at 04:25:14PM -0800, Jarkko Sakkinen wrote: > > > On Mon, Nov 14, 2016 at 02:33:23PM -0800, Jarkko Sakkinen wrote: > > > > On Mon, Nov 14, 2016 at 05:00:47AM -0500,

[PATCH v6 1/2] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-15 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 17 - 1 file changed, 8 insert

[PATCH v6 0/2] usb: musb: da8xx: Fix few issues

2016-11-15 Thread Alexandre Bailon
This series require the following patch to build: [PATCH 1/6] usb: musb: Fix broken use of static variable for multiple instances Currently, the USB OTG of the da8xx doesn't work. This series intend to fix them. Change in v2: * Fix the error path da8xx_musb_init() Changes in v3: * Remove the hos

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-15 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-11-15 10:48, Lorenzo Pieralisi wrote: On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: This allows probe deferral to work properly when a dependent device fails to get a valid IRQ because the IRQ domain was not registered at the time the resources were add

[tip:x86/cache] x86/intel_rdt: Reset per cpu closids on unmount

2016-11-15 Thread tip-bot for Fenghua Yu
Commit-ID: c7cc0cc10cdecc275211c8749defba6c41aaf5de Gitweb: http://git.kernel.org/tip/c7cc0cc10cdecc275211c8749defba6c41aaf5de Author: Fenghua Yu AuthorDate: Fri, 11 Nov 2016 17:02:37 -0800 Committer: Thomas Gleixner CommitDate: Tue, 15 Nov 2016 18:35:50 +0100 x86/intel_rdt: Reset per

[tip:x86/cache] x86/intel_rdt: Protect info directory from removal

2016-11-15 Thread tip-bot for Fenghua Yu
Commit-ID: f57b308728902d9ffade53466e9201e999a870e4 Gitweb: http://git.kernel.org/tip/f57b308728902d9ffade53466e9201e999a870e4 Author: Fenghua Yu AuthorDate: Fri, 11 Nov 2016 17:02:36 -0800 Committer: Thomas Gleixner CommitDate: Tue, 15 Nov 2016 18:35:49 +0100 x86/intel_rdt: Protect in

[PATCH v6 2/2] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-15 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon --- dri

perf: fuzzer KASAN unwind_get_return_address

2016-11-15 Thread Vince Weaver
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] == [ 202.048327] BUG: KASAN: stack-out-of

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

2016-11-15 Thread Marek Vasut
On 11/15/2016 06:06 PM, Ksenija Stanojević wrote: > On Mon, Nov 14, 2016 at 7:43 PM, Marek Vasut wrote: >> On 11/02/2016 08:38 AM, Ksenija Stanojevic wrote: >>> Add core files for low resolution analog-to-digital converter (mxs-lradc) >>> MFD driver. >>> >>> Signed-off-by: Ksenija Stanojevic >>>

[tip:x86/cache] x86/intel_rdt: Update percpu closid immeditately on CPUs affected by changee

2016-11-15 Thread tip-bot for Fenghua Yu
Commit-ID: f410770293a1fbc08906474c24104a7a11943eb6 Gitweb: http://git.kernel.org/tip/f410770293a1fbc08906474c24104a7a11943eb6 Author: Fenghua Yu AuthorDate: Fri, 11 Nov 2016 17:02:38 -0800 Committer: Thomas Gleixner CommitDate: Tue, 15 Nov 2016 18:35:50 +0100 x86/intel_rdt: Update per

Re: [PATCH v2 0/3] ARM: dts: sun7i: BPI-M1+ USB support

2016-11-15 Thread Maxime Ripard
On Tue, Nov 15, 2016 at 09:51:03PM +0800, Chen-Yu Tsai wrote: > Hi Maxime, > > These are the remaining patches of my BPI-M1+ fixes series from July. > > Changes since v1: > > - Split out USB PHY enable patch. > > - Dropped custom OPP table. Tested the A20 default one with > cpufreq-ljt-

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

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 05:42:22PM +, Noam Camus wrote: > > Sent: Tuesday, November 15, 2016 7:27 PM > > > To: Daniel Lezcano > > >> > >> Do you mind to pick Noam's series in your tree also ? I acked the patches. > > >Sure I can. Although for some reasons I was never CC'ed (nor was > >linus

Re: [PATCH 2/2] ARM: zynq: Fix W=1 dtc 1.4 warnings

2016-11-15 Thread Michal Simek
Hi, On 15.11.2016 16:46, Julia Cartwright wrote: > On Tue, Nov 15, 2016 at 03:07:27PM +0100, Michal Simek wrote: >> The patch removes these warnings reported by dtc 1.4: >> Warning (unit_address_vs_reg): Node /pmu has a reg or ranges property, >> but no unit name >> Warning (unit_address_vs_reg):

Re: [PATCH] lkdtm: Add tests for LIST_POISON and ZERO_SIZE_PTR

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 2:59 AM, Michael Ellerman wrote: > This adds two tests, to check that a read or write to LIST_POISON1 and > ZERO_SIZE_PTR are blocked. Awesome. I think this addition! > The default values for both (256 and 16) typically fall in the range > of valid user space addresses. H

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

2016-11-15 Thread Jason Gunthorpe
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. This is what worries me a bit. If I had tested-by from > someone running

[PATCH 01/15] net: phy: Add phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
This function just calls into genphy_restart_aneg() to perform an autonegotation restart. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy.c | 11 +++ include/linux/phy.h | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index

[PATCH 06/15] net: ethernet: smsc9420: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/smsc/smsc9420.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c index b7bfed4bc96b..3174aebb322f 100644 --- a/drivers/net/ethernet/sm

[PATCH 07/15] net: ethernet: ll_temac: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/xilinx/ll_temac_main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index a9bd665fd122..bcd7b76dde9f 100644 --- a/driver

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

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/lantiq_etop.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c index 1a739d71f1c2..9d931373a9b9 100644 --- a/drivers/net/ethernet/lantiq_etop

[PATCH 05/15] net: smsc911x: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/smsc/smsc911x.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index cdb343f0c6e0..be09573c6ced 100644 --- a/drivers/net/ethernet/smsc/s

[PATCH 15/15] net: usb: lan78xx: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/usb/lan78xx.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index bcd9010c1f27..cf2857fa938f 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@

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

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 5:03 AM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > >> On Tue, Nov 15, 2016 at 11:03:59AM +0100, Ingo Molnar wrote: >> > > Should I also make a CONFIG knob that implements refcount_t with the >> > > 'normal' atomic_t primitives? >> > >> > I'd suggest doing the satura

[PATCH 08/15] net: ethernet: ixp4xx_eth: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c index 07d862d90869..aee55c03def0 100644 --- a/drivers/net/eth

[PATCH 12/15] net: ethernet: ucc: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c index 812a968a78e9..8ba636f61b50

[PATCH 11/15] net: fec: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/fec_main.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 01aebc0084a9..1aabe4bcc8ea 100644 --- a/drive

[PATCH 09/15] net: bcmgenet: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index 4464bc5db934..33638dc0e104 100644 -

[PATCH V2 for-next 00/11] Code improvements & fixes for HNS RoCE driver

2016-11-15 Thread Salil Mehta
This patchset introduces some code improvements and fixes for the identified problems in the HNS RoCE driver. Lijun Ou (4): IB/hns: Add the interface for querying QP1 IB/hns: add self loopback for CM IB/hns: Modify the condition of notifying hardware loopback IB/hns: Fix the bug for qp sta

[PATCH V2 for-next 02/11] IB/hns: Add code for refreshing CQ CI using TPTR

2016-11-15 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch added the code for refreshing CQ CI using TPTR in hip06 SoC. We will send a doorbell to hardware for refreshing CQ CI when user succeed to poll a cqe. But it will be failed if the doorbell has been blocked. So hardware will read a special buffer called TPTR to

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

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/marvell/mv643xx_eth.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 81b08d71c0f8..5f62c3d70df9 100644 --- a/drive

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

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 5c7acef1de2e..a43ab90c051e 100644 --- a/dr

[PATCH 14/15] net: usb: ax88172x: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/usb/ax88172a.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c index 49a3bc107d05..6308386b09df 100644 --- a/drivers/net/usb/ax88172a.c +++ b/drivers/net/usb/ax881

[PATCH V2 for-next 09/11] IB/hns: Change qpn allocation to round-robin mode.

2016-11-15 Thread Salil Mehta
From: "Wei Hu (Xavier)" When using CM to establish connections, qp number that was freed just now will be rejected by ib core. To fix these problem, We change qpn allocation to round-robin mode. We added the round-robin mode for allocating resources using bitmap. We use round-robin mode for qp nu

[PATCH V2 for-next 06/11] IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp()

2016-11-15 Thread Salil Mehta
From: Lijun Ou In old code, the value of qp state from qpc was assigned for attr->qp_state. The value may be an error while attr_mask & IB_QP_STATE is zero. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c |2

[PATCH V2 for-next 05/11] IB/hns: Modify the condition of notifying hardware loopback

2016-11-15 Thread Salil Mehta
From: Lijun Ou This patch modified the condition of notifying hardware loopback. In hip06, RoCE Engine has several ports, one QP is related to one port. hardware only support loopback in the same port, not in the different ports. So, If QP related to port N, the dmac in the QP context equals th

[PATCH 10/15] net: fs_enet: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index 44f50e168703..34

[PATCH 02/15] net: nb8800: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/aurora/nb8800.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index b59aa3541270..07ff6492402a 100644 --- a/drivers/net/ethernet

[PATCH V2 for-next 10/11] IB/hns: Implement the add_gid/del_gid and optimize the GIDs management

2016-11-15 Thread Salil Mehta
From: Shaobo Xu IB core has implemented the calculation of GIDs and the management of GID tables, and it is now responsible to supply query function for GIDs. So the calculation of GIDs and the management of GID tables in the RoCE driver is redundant. The patch is to implement the add_gid/del_gi

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

2016-11-15 Thread Radim Krčmář
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 needed if the DMA mask of the >>> device performing th

[PATCH V2 for-next 04/11] IB/hns: add self loopback for CM

2016-11-15 Thread Salil Mehta
From: Lijun Ou This patch mainly adds self loopback support for CM. Signed-off-by: Lijun Ou Signed-off-by: Peter Chen Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.h |2

Re: [PATCH 01/29] fscrypt: Add in-place encryption mode

2016-11-15 Thread Eric Biggers
Hi, On Sun, Nov 13, 2016 at 10:20:44PM +0100, Richard Weinberger wrote: > From: David Gstir > > ext4 and f2fs require a bounce page when encrypting pages. However, not > all filesystems will need that (eg. UBIFS). This is handled via a > flag on fscrypt_operations where a fs implementation can s

[PATCH V2 for-next 07/11] IB/hns: Modify the macro for the timeout when cmd process

2016-11-15 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch modified the macro for the timeout when cmd is processing as follows: Before modification: enum { HNS_ROCE_CMD_TIME_CLASS_A = 1, HNS_ROCE_CMD_TIME_CLASS_B = 1, HNS_ROCE_CMD_TIME_CLASS_C = 1, }; After modifi

RE: [PATCH 15/15] net: usb: lan78xx: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Woojung.Huh
> Signed-off-by: Florian Fainelli > --- > drivers/net/usb/lan78xx.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c > index bcd9010c1f27..cf2857fa938f 100644 > --- a/drivers/net/usb/lan78xx.c > +++ b/drivers/net

RE: perf: fuzzer KASAN slab-out-of-bounds in snb_uncore_imc_event_del

2016-11-15 Thread Liang, Kan
> -Original Message- > From: Vince Weaver [mailto:vincent.wea...@maine.edu] > Sent: Tuesday, November 15, 2016 12:39 PM > To: Liang, Kan > Cc: Peter Zijlstra ; Vince Weaver > ; linux-kernel@vger.kernel.org; Ingo Molnar > ; Arnaldo Carvalho de Melo ; > da...@codemonkey.org.uk; dvyu...@goo

[PATCH V2 for-next 11/11] IB/hns: Fix for Checkpatch.pl comment style errors

2016-11-15 Thread Salil Mehta
This patch correct the comment style errors caught by checkpatch.pl script Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cmd.c|8 ++-- drivers/infiniband/hw/hns/hns_roce_device.h | 28 ++--- drivers/infiniband/hw/hns/hns_roce_eq.c |6 +-- drivers/in

[PATCH V2 for-next 01/11] IB/hns: Add the interface for querying QP1

2016-11-15 Thread Salil Mehta
From: Lijun Ou In old code, It only added the interface for querying non-specific QP. This patch mainly adds an interface for querying QP1. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- Change Log Patch V2: Addressed the comment provided by Anurup M

Re: [PATCH v2 2/2] arm64: dts: Add ARM PMU node for exynos7

2016-11-15 Thread Krzysztof Kozlowski
On Sat, Nov 12, 2016 at 11:33:18AM -0300, Javier Martinez Canillas wrote: > Hello Alim, > > On 11/12/2016 07:17 AM, Alim Akhtar wrote: > > This patch adds ARM Performance Monitor Unit dt node for exynos7. > > PMU provides various statistics on the operation of the CPU and > > memory system at runt

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

2016-11-15 Thread Greg KH
On Tue, Nov 15, 2016 at 06:19:37PM +0100, Sergio Paracuellos wrote: > This patch fix the following sparse warnings in slicoss driver: > warning: incorrect type in assignment (different address spaces) > > Signed-off-by: Sergio Paracuellos > --- > drivers/staging/slicoss/slic.h| 7 > dr

<    2   3   4   5   6   7   8   9   10   >