Re: [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document

2016-10-18 Thread Scott Branden
Hi Rob, On 16-10-18 06:16 AM, Rob Herring wrote: On Wed, Oct 12, 2016 at 11:35:51AM -0700, Scott Branden wrote: Adds brcm,sdhci-iproc compat string to DT bindings document for the iProc SDHCI driver. Signed-off-by: Anup Patel Signed-off-by: Scott Branden --- Documentation/devicetree/binding

Re: [PATCH 08/10] ufs-qcom: phy/hcd: Refactoring phy clock handling

2016-10-18 Thread Subhash Jadavani
On 2016-10-18 07:28, Vivek Gautam wrote: Add phy clock enable code to phy_power_on/off callbacks, and remove explicit calls to enable these phy clocks from the ufs-qcom hcd driver. Signed-off-by: Vivek Gautam --- Changes since v1: - staticized ufs_qcom_phy_enable(/disable)_ref_clk(), - stati

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

2016-10-18 Thread Parav Pandit
Hi Doug, Leon has finished review as well in [7]. Christoph Acked too in [8]. Can you please advise whether (1) I should rebase and resend PatchV12? (2) If so for which branch - master/4.9 or? Tejun and Christoph mentioned that it might be late for 4.9. Can we atleast merge to linux-rdma tree, s

Re: [PATCH 1/1] MAINTAINERS: add a maintainer for the SPI NOR subsystem

2016-10-18 Thread Richard Weinberger
On 18.10.2016 21:59, Moritz Fischer wrote: > Hi all, > > On Tue, Oct 18, 2016 at 6:15 PM, Richard Weinberger wrote: > >>> I totally agree with you so if Marek and you volunteer as well, your help >>> will be precious! > > I had talked to Richard about helping out during ELCE, but tbh I think >

Re: [RFC PATCH] mtd: nand: Add OX820 NAND Support

2016-10-18 Thread Boris Brezillon
Hi Neil, On Tue, 18 Oct 2016 11:09:27 +0200 Neil Armstrong wrote: > Add NAND driver to support the Oxford Semiconductor OX820 NAND Controller. > This is a simple memory mapped NAND controller with single chip select and > software ECC. > > Signed-off-by: Neil Armstrong > --- > .../devicetree/

Re: [PATCH v2 09/10] scsi/ufs: qcom: Add phy_exit call in hcd exit path

2016-10-18 Thread Subhash Jadavani
On 2016-10-18 07:28, Vivek Gautam wrote: Do a phy_exit() over the ufs phy in the ufs qcom exit path to de-initialize the phy. Signed-off-by: Vivek Gautam --- New patch added in v2 series. drivers/scsi/ufs/ufs-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-qco

[GIT PULL] f2fs bug fix for 4.9-rc2

2016-10-18 Thread Jaegeuk Kim
Hi Linus, Could you please pull this bug fix patch? Thanks, The following changes since commit 4c1fad64eff481982349f5795b9c198c532b0f13: Merge tag 'for-f2fs-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs (2016-10-06 15:30:40 -0700) are available in the git repository at

784d5699eddc ("x86: move exports to actual definitions")

2016-10-18 Thread Borislav Petkov
Hey Al, I see the gazillion warnings below when building -rc1 here. When I revert 784d5699eddc ("x86: move exports to actual definitions") the warnings are gone. I'm attaching my .config. Let me know if you need more info from me. Thanks. WARNING: "__fentry__" [virt/lib/irqbypass.ko] has no

Re: 4.6.4, 3w_sas: timeout too small?

2016-10-18 Thread adam radford
>> Oct 16 06:41:33 nasl003b kernel: [4903207.577484] 3w-sas: scsi0: ERROR: >> (0x06:0x000D): Microcontroller Error: clearing. Microcontroller Error = FW crashed and will be reset on the next I/O timeout or ioctl() timeout, whichever happens first. It could be the iSCSI target code or initiator s

Re: [PATCH v2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-18 Thread Doug Anderson
Dan, On Tue, Oct 18, 2016 at 6:44 AM, Daniel Kurtz wrote: > Hi Doug, > > On Tue, Oct 11, 2016 at 5:04 AM, Douglas Anderson > wrote: >> Users of usleep_range() expect that it will _never_ return in less time >> than the minimum passed parameter. However, nothing in any of the code >> ensures th

Re: 784d5699eddc ("x86: move exports to actual definitions")

2016-10-18 Thread Markus Trippelsdorf
On 2016.10.18 at 22:23 +0200, Borislav Petkov wrote: > Hey Al, > > I see the gazillion warnings below when building -rc1 here. > > When I revert > > 784d5699eddc ("x86: move exports to actual definitions") > > the warnings are gone. I'm seeing the same thing on ppc64le with an allmodconfig. -

Re: [PATCH v1] seccomp: Fix documentation

2016-10-18 Thread Kees Cook
On Sat, Oct 15, 2016 at 9:31 AM, Mickaël Salaün wrote: > Could someone push this please? > > On 20/09/2016 19:39, Mickaël Salaün wrote: >> Fix struct seccomp_filter and seccomp_run_filters() signatures. >> >> Signed-off-by: Mickaël Salaün >> Cc: Andy Lutomirski >> Cc: James Morris >> Cc: Kees C

Re: [PATCH 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-10-18 Thread Kees Cook
On Sun, Oct 16, 2016 at 10:40 AM, Joel Fernandes wrote: > Hi Kees, > > On Mon, Oct 10, 2016 at 4:59 PM, Kees Cook wrote: >> On Sun, Oct 9, 2016 at 10:15 AM, Joel Fernandes wrote: >>> On Fri, Oct 7, 2016 at 10:28 PM, Joel Fernandes wrote: If FTRACE_PER_CPU flag is passed to ramoops pdata, s

Re: [PATCH v2] arm64: defconfig: enable EEPROM_AT25 config option

2016-10-18 Thread Scott Branden
Hi Olof, On 16-10-17 05:04 PM, Olof Johansson wrote: On Mon, Oct 17, 2016 at 4:24 PM, Scott Branden wrote: Hi Olof, On 16-10-17 02:58 PM, Olof Johansson wrote: Hi, On Wed, Oct 12, 2016 at 11:51 AM, Scott Branden wrote: Enable support for on board SPI EEPROM by turning on CONFIG_EEPROM_A

Re: 784d5699eddc ("x86: move exports to actual definitions")

2016-10-18 Thread Markus Trippelsdorf
On 2016.10.18 at 22:29 +0200, Markus Trippelsdorf wrote: > On 2016.10.18 at 22:23 +0200, Borislav Petkov wrote: > > Hey Al, > > > > I see the gazillion warnings below when building -rc1 here. > > > > When I revert > > > > 784d5699eddc ("x86: move exports to actual definitions") > > > > the warn

[PATCH v3] arm64: defconfig: enable EEPROM_AT25 config option

2016-10-18 Thread Scott Branden
Enable support for on board SPI EEPROM by setting CONFIG_EEPROM_AT25=m Signed-off-by: Scott Branden --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index eadf485..4c62662 100644 --- a/arch/arm64/conf

[PATCH 1/2] gpio: ath79: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH 2/2] gpio: ts4800: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

Re: Difficulties around "fixdep" for the usage of a kernel build output directory

2016-10-18 Thread Jim Davis
On Tue, Oct 18, 2016 at 10:25 AM, SF Markus Elfring wrote: > Can it be that the passing of the adjusted parameter "HOSTCFLAGS" has got a > significant > influence (with unwanted side effects) in this use case? That's probably it. If I strip down your advanced original example to just make def

Re: [PATCH 1/3] ARM: memory: da8xx-ddrctl: new driver

2016-10-18 Thread Laurent Pinchart
Hi Bartosz, Thank you for the patch. On Monday 17 Oct 2016 18:30:48 Bartosz Golaszewski wrote: > Create a new driver for the da8xx DDR2/mDDR controller and implement > support for writing to the Peripheral Bus Burst Priority Register. > > Signed-off-by: Bartosz Golaszewski > --- > .../memory-c

[PATCH] ubifs: Rename ubifs_rename2

2016-10-18 Thread Richard Weinberger
Since ->rename2 is gone, rename ubifs_rename2() to ubifs_rename(). Suggested-by: Linus Torvalds Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index c8f60df2733e..668ec3b90ea1

[PATCH] ubifs: Fix xattr_names length in exit paths

2016-10-18 Thread Richard Weinberger
When the operation fails we also have to undo the changes we made to ->xattr_names. Otherwise listxattr() will report wrong lengths. Cc: sta...@vger.kernel.org Signed-off-by: Richard Weinberger --- fs/ubifs/xattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ubifs/xattr.c b/fs/ubifs

Re: [kernel-hardening] [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-10-18 Thread Kees Cook
On Mon, Oct 17, 2016 at 6:44 AM, Mark Rutland wrote: > Hi, > > Attempt to revive discussions below... > > On Wed, Jul 27, 2016 at 07:45:46AM -0700, Jeff Vander Stoep wrote: >> When kernel.perf_event_paranoid is set to 3 (or greater), disallow >> all access to performance events by users without CA

Re: [PATCH v2] arm64: defconfig: enable EEPROM_AT25 config option

2016-10-18 Thread Olof Johansson
On Tue, Oct 18, 2016 at 1:38 PM, Scott Branden wrote: > Hi Olof, > > On 16-10-17 05:04 PM, Olof Johansson wrote: >> >> On Mon, Oct 17, 2016 at 4:24 PM, Scott Branden >> wrote: >>> >>> Hi Olof, >>> >>> On 16-10-17 02:58 PM, Olof Johansson wrote: Hi, On Wed, Oct 12, 2016 at

Re: [kernel-hardening] [PATCH] lib: harden strncpy_from_user

2016-10-18 Thread Kees Cook
On Mon, Oct 17, 2016 at 6:04 AM, Mark Rutland wrote: > On Fri, Aug 26, 2016 at 02:57:58PM -0400, Kees Cook wrote: >> On Fri, Aug 26, 2016 at 10:31 AM, Mark Rutland wrote: >> > The strncpy_from_user() accessor is effectively a copy_from_user() >> > specialised to copy strings, terminating early at

Re: [PATCH 2/3] ARM: bus: da8xx-syscfg: new driver

2016-10-18 Thread Laurent Pinchart
Hi Bartosz, Thank you for the patch. On Monday 17 Oct 2016 18:30:49 Bartosz Golaszewski wrote: > Create the driver for the da8xx System Configuration and implement > support for writing to the three Master Priority registers. > > Signed-off-by: Bartosz Golaszewski > --- > .../devicetree/bindin

fscrypto: Two trivial patches

2016-10-18 Thread Richard Weinberger
Thanks, //richard [PATCH 1/2] fscrypto: Fix log string in do_crypto() [PATCH 2/2] fscrypto: Fix fscrypt_decrypt_page() doc string

[PATCH 2/2] fscrypto: Fix fscrypt_decrypt_page() doc string

2016-10-18 Thread Richard Weinberger
Most likely a copy&paste error from the f2fs import. Signed-off-by: Richard Weinberger --- fs/crypto/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index 1637a0450b9f..d789ddbc0a46 100644 --- a/fs/crypto/crypto.c +++ b/fs/cryp

[PATCH 1/2] fscrypto: Fix log string in do_crypto()

2016-10-18 Thread Richard Weinberger
The operations supports both encryption and decryption. Signed-off-by: Richard Weinberger --- fs/crypto/crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index 61057b7dbddb..1637a0450b9f 100644 --- a/fs/crypto/crypto.c +++ b

Re: [PATCH 6/6] mm: add preempt points into __purge_vmap_area_lazy

2016-10-18 Thread Steven Rostedt
On Tue, Oct 18, 2016 at 08:56:11AM +0200, Christoph Hellwig wrote: > From: Joel Fernandes > > Use cond_resched_lock to avoid holding the vmap_area_lock for a > potentially long time. > > Signed-off-by: Joel Fernandes > [hch: split from a larger patch by Joel, wrote the crappy changelog] > Signe

[PATCH] gpu: Remove depends on RESET_CONTROLLER when not a provider

2016-10-18 Thread Stephen Boyd
These GPU drivers only depend on the RESET_CONTROLLER config option to fix build issues that existed when there weren't stub reset APIs for reset controller consumers. Given that these drivers aren't providing any reset controllers themselves, they don't actually depend on the API to build (just to

Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

2016-10-18 Thread Kees Cook
On Mon, Oct 17, 2016 at 2:37 PM, Emese Revfy wrote: > On Sun, 16 Oct 2016 06:52:16 +0800 > kbuild test robot wrote: > >>drivers/pci/hotplug/ibmphp_ebda.c: In function 'ibmphp_access_ebda': >> >> drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 >> >> bytes is larger th

Re: [PATCH v2] ARM: dts: rockchip: temporarily remove emmc hs200 speed from rk3288-veyron-speedy.

2016-10-18 Thread Paul Kocialkowski
Hi, Le mardi 18 octobre 2016 à 11:21 +0200, Heiko Stübner a écrit : > Am Sonntag, 16. Oktober 2016, 21:49:43 schrieb Paul Kocialkowski: > > > > Hi, > > > > Le mardi 27 septembre 2016 à 13:53 -0700, Vagrant Cascadian a écrit : > > > > > > This essentially mimics what was done with rk3288-veyron-

[PATCH 2/4] i2c: xlp9xx: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

Re: [PATCH 6/6] mm: add preempt points into __purge_vmap_area_lazy

2016-10-18 Thread Steven Rostedt
On Tue, 18 Oct 2016 16:56:48 -0400 Steven Rostedt wrote: > Is releasing the lock within a llist_for_each_entry_safe() actually safe? Is > vmap_area_lock the one to protect the valist? > > That is llist_for_each_entry_safe(va, n_va, valist, purg_list) does: > > for (va = llist_entry(valis

[PATCH 3/4] i2c: xlr: Fix module autoload for OF registration

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH 4/4] i2c: digicolor: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

Re: [PATCH] um: remove hppfs MAINTAINERS entry

2016-10-18 Thread Richard Weinberger
On 11.10.2016 07:50, Dan Carpenter wrote: > We removed hppfs in commit f74a14e870c8 ('um: Remove hppfs') so we can > remove the MAINTAINERS entry as well. > > Signed-off-by: Dan Carpenter > > diff --git a/MAINTAINERS b/MAINTAINERS > index 63f15c9..116729a 100644 > --- a/MAINTAINERS > +++ b/MAINT

Re: 4.8.1 regression with cpufreq governors

2016-10-18 Thread Rafael J. Wysocki
On Monday, October 17, 2016 07:46:06 PM Tim Walberg wrote: > May or may not be related to similar reports, but here's what I've just > observed > on my system. Built a stock kernel from tags/v4.8.1, relevant cpufreq bits: > > CONFIG_ACPI_CPU_FREQ_PSS=y > CONFIG_CPU_FREQ=y > CONFIG_CPU_FREQ_GOV_AT

[PATCH 1/4] i2c: jz4780: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH 0/4] i2c: Fix module autoload for some i2c busses platform drivers

2016-10-18 Thread Javier Martinez Canillas
Hello Wolfram, I noticed that module autoload won't be working in some of the i2c busses drivers. This patch series contains the fixes for these. Best regards, Javier Javier Martinez Canillas (4): i2c: jz4780: Fix module autoload i2c: xlp9xx: Fix module autoload i2c: xlr: Fix module autol

Re: [PATCH v20 10/10] fpga-manager: Add Socfpga Arria10 support

2016-10-18 Thread Moritz Fischer
On Mon, Oct 17, 2016 at 11:09:41AM -0500, Alan Tull wrote: > Add low level driver to support reprogramming FPGAs for Altera > SoCFPGA Arria10. > > Signed-off-by: Alan Tull Reviewed-by: Moritz Fischer > --- > v19: Added to this patchset as has been changed to use >fpga image information

Re: [PATCH] PM / AVS: SmartReflex: add in missing white space in error message text

2016-10-18 Thread Kevin Hilman
Colin King writes: > From: Colin Ian King > > Several line wrapped literal strings are missing white spaces, add the > whitespace to fix this. > > Signed-off-by: Colin Ian King > --- > drivers/power/avs/smartreflex.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-

[RFC 2/2] mmc: sdhci: Ignore capability register when it comes to speeds and use DT binding instead when sdhci-cap-speed-modes-broken is set.

2016-10-18 Thread Zach Brown
When the sdhci-cap-speed-modes-broken DT property is set, the driver will ignore the bits of the capability registers that correspond to speed modes and will read the of properties of the device to determine which speeds are supported. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci.c | 31

[RFC 0/2] Ignore capability registers when it comes to speeds and use DT binding instead.

2016-10-18 Thread Zach Brown
The first patch add documentation about a new devicetree property sdhci-cap-speed-modes-broken. The second patch makes the sdhci use the DT binding instead of the caps register for determining which speed modes are supported by the controller. This RFC is an alternative to another patch set I sen

[PATCH v3 1/2] tools/power turbostat: Use Intel family processor macros

2016-10-18 Thread Piotr Luc
Use macros of Intel processor families instead of raw numbers. Change-Id: I033e40bcea6bde66284e2217e9231f856c827d20 Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Borislav Petkov Cc: Len Brown --- v2: Include Intel family header. v3: Remove trailing comments. tools/power/x86/turbostat

[PATCH 0/2]tools/power turbostat: enable turbostat to support Knights Mill (KNM)

2016-10-18 Thread Piotr Luc
This patchset is rebased onto 08328814256d888634ff15ba8fb67e2ae4340b64. First patch improves code style by replacing raw numbers of CPUID with descriptive macros of processor names. The second patch adds Knights Mill (KNM) to the list of CPUIDs supported by turbostat. Both patches come in new v

[RFC 1/2] mmc: sdhci: dt: Add device tree property sdhci-cap-speed-modes-broken

2016-10-18 Thread Zach Brown
On some systems the sdhci capabilty registers are incorrect for one reason or another. The sdhci-cap-speed-modes-broken property will let the driver know that the sdhci capability registers should not be relied on for speed modes. Instead the driver should check the mmc generic DT bindings. Signe

[PATCH v2 2/2] tools/power turbostat: enable turbostat to support Knights Mill (KNM)

2016-10-18 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by turbostat. Change-Id: I616e3232e985fba4080a65e982604bd03d6dfb9f Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Borislav Petkov Cc: Len Brown --- v2: Remove trailing comments. tools/power/x86/turbostat/turbostat.c | 7 +++ 1

[PATCH] pinctrl: imx: reset group index on probe

2016-10-18 Thread Stefan Agner
Group index is incremented on every new group parsed. Since the field is part of struct imx_pinctrl_soc_info, which is typically a global variable passed by the individual pinctrl-imx.c based driver, it does not get cleared automatically when re-probing the driver. This lead imx_pinctrl_parse_funct

Re: [REVIEW][PATCH] mm: Add a user_ns owner to mm_struct and fix ptrace_may_access

2016-10-18 Thread Eric W. Biederman
Jann Horn writes: > On Tue, Oct 18, 2016 at 10:35:23AM -0500, Eric W. Biederman wrote: >> Jann Horn writes: >> >> > On Tue, Oct 18, 2016 at 09:56:53AM -0500, Eric W. Biederman wrote: >> >> Michal Hocko writes: >> >> >> >> > On Mon 17-10-16 11:39:49, Eric W. Biederman wrote: >> >> >> >> >> >>

Re: [PATCH 1/1] MAINTAINERS: add a maintainer for the SPI NOR subsystem

2016-10-18 Thread David Oberhollenzer
On 10/18/2016 09:15 PM, Boris Brezillon wrote: > On Tue, 18 Oct 2016 11:46:51 -0700 > Brian Norris wrote: > >> + others >> >> On Tue, Oct 18, 2016 at 06:15:23PM +0200, Richard Weinberger wrote: >>> On 18.10.2016 17:55, Cyrille Pitchen wrote: Le 18/10/2016 à 17:30, Richard Weinberger a écri

[PATCH] latent_entropy: raise CONFIG_FRAME_WARN by default

2016-10-18 Thread Kees Cook
When building with the latent_entropy plugin, set the default CONFIG_FRAME_WARN to 2048, since some __init functions have many basic blocks that, when instrumented by the latent_entropy plugin, grow beyond 1024 byte stack size on 32-bit builds. Reported-by: kbuild test robot Cc: Emese Revfy Sign

Re: [kernel-hardening] [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-10-18 Thread Daniel Micay
On Tue, 2016-10-18 at 13:48 -0700, Kees Cook wrote: > On Mon, Oct 17, 2016 at 6:44 AM, Mark Rutland > wrote: > > Hi, > > > > Attempt to revive discussions below... > > > > On Wed, Jul 27, 2016 at 07:45:46AM -0700, Jeff Vander Stoep wrote: > > > When kernel.perf_event_paranoid is set to 3 (or gre

[REVIEW][PATCH] exec: Don't exec files the userns root can not read.

2016-10-18 Thread Eric W. Biederman
When the user namespace support was merged the need to prevent ptracing an executable that is not readable was overlooked. Correct this oversight by not letting exec succeed if during exec an executable is not readable and the current user namespace capabilities do not apply to the executable's f

Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts

2016-10-18 Thread Luis R. Rodriguez
On Tue, Oct 18, 2016 at 10:08:44AM +0200, Vegard Nossum wrote: > Vegard, thanks for bringing this to attention! Including this hunk for those that were originally not CC'd on the original patch. > diff --git a/include/linux/extarray.h b/include/linux/extarray.h > new file mode 100644 > index 000

Re: [PATCH v2 01/10] phy: qcom-ufs: remove failure when rx/tx_iface_clk are absent

2016-10-18 Thread Stephen Boyd
On 10/18/2016 07:28 AM, Vivek Gautam wrote: > From: Yaniv Gardi > > Since in future UFS Phy's the tx_iface_clk and rx_iface_clk > are no longer exist, we should not fail when their initialization > fail, but rather just report with debug message. > > Signed-off-by: Yaniv Gardi > Signed-off-by: Vi

[PATCH 3/3] remoteproc: qcom: wcnss_iris: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH 0/3] remoteproc: Fix module autoload for qcom platform drivers

2016-10-18 Thread Javier Martinez Canillas
Hello, I noticed that module autoload won't be working in some of the qcom remoteproc drivers. This patch series contains the fixes for these. Best regards, Javier Javier Martinez Canillas (3): remoteproc: qcom: q6v5_pil: Fix module autoload remoteproc: qcom: wcnss: Fix module autoload re

[PATCH 2/3] remoteproc: qcom: wcnss: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH 1/3] remoteproc: qcom: q6v5_pil: Fix module autoload

2016-10-18 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

[PATCH] sched/fair: fix fairness problems among the tasks in different cgroups

2016-10-18 Thread Joonwoo Park
When a new cgroup is created, scheduler attaches the child cgroup to its parent and also increases the parent's task_group load_avg to account increased load with following path : sched_create_group() alloc_fair_sched_group() sched_online_group() online_fair_sched_group()

[PATCH] staging: slicoss: replace memcpy_fromio with memcpy

2016-10-18 Thread Ryan Swan
As per discusion with Lino Sanfilippo, memcpy is the proper way to copy across dma memory, which also removes sparse warning that triggered inquiry. Signed-off-by: Ryan Swan --- drivers/staging/slicoss/slicoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/

Re: [PATCH 22/28] x86: apm: avoid uninitialized data

2016-10-18 Thread Luis R. Rodriguez
On Tue, Oct 18, 2016 at 12:16:10AM +0200, Arnd Bergmann wrote: > apm_bios_call() can fail, and return a status in its argument > structure. If that status however is zero during a call from > apm_get_power_status(), we end up using data that may have > never been set, as reported by "gcc -Wmaybe-un

Re: [PATCH] staging: slicoss: replace memcpy_fromio with memcpy

2016-10-18 Thread Lino Sanfilippo
On 18.10.2016 23:26, Ryan Swan wrote: > As per discusion with Lino Sanfilippo, memcpy is the proper way to copy > across dma memory, which also removes sparse warning that triggered > inquiry. > > Signed-off-by: Ryan Swan > --- > drivers/staging/slicoss/slicoss.c | 2 +- > 1 file changed, 1 inse

Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

2016-10-18 Thread Emese Revfy
On Tue, 18 Oct 2016 13:57:35 -0700 Kees Cook wrote: > This is controlled by CONFIG_FRAME_WARN. I don't think this is a > particular problem or should be avoided, but perhaps we can set the > default to 2048 (as done on 64BIT) if we're building with the entropy > plugin. This is probably a gcc co

Re: [PATCH] sched/fair: fix fairness problems among the tasks in different cgroups

2016-10-18 Thread Peter Zijlstra
Have you read this thread: lkml.kernel.org/r/20161018115651.ga20...@linaro.org

Re: [PATCH] sched/fair: fix fairness problems among the tasks in different cgroups

2016-10-18 Thread Joonwoo Park
On 10/18/2016 02:37 PM, Peter Zijlstra wrote: Have you read this thread: lkml.kernel.org/r/20161018115651.ga20...@linaro.org Yeah... I noticed the thread... I'm replying to the thread too. Thanks, Joonwoo

Re: [PATCH] staging/lustre/llite: Move unstable_stats from sysfs to debugfs

2016-10-18 Thread James Simmons
> It's multiple values per file, so it has no business being in sysfs, > besides it was assuming seqfile anyway. > > Introduced by > commit d806f30e639b ("staging: lustre: osc: revise unstable pages accounting") Tested it manually to make sure it was right this time. Reviewed-by: James Simmons

Re: [PATCH v5 2/5] firmware: encapsulate firmware loading status

2016-10-18 Thread Luis R. Rodriguez
On Tue, Oct 18, 2016 at 03:30:45PM +0200, Daniel Wagner wrote: > On 10/10/2016 10:37 PM, Luis R. Rodriguez wrote: > > > > fw_get_fileystem_firmware() > > > fw_finish_direct_load() > > > complete_all() > > > > > > > > > 2nd request (waiter context) > > > > > > _request_firmware() > >

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-18 Thread Joonwoo Park
On 10/18/2016 04:56 AM, Vincent Guittot wrote: Le Tuesday 18 Oct 2016 à 12:34:12 (+0200), Peter Zijlstra a écrit : On Tue, Oct 18, 2016 at 11:45:48AM +0200, Vincent Guittot wrote: On 18 October 2016 at 11:07, Peter Zijlstra wrote: So aside from funny BIOSes, this should also show up when cr

[PATCHv3 0/4] WX checking for arm64

2016-10-18 Thread Laura Abbott
Hi, This is v3 of the implementation to check for writable and executable pages on arm64. This is a basically a rebase + acks. Laura Abbott (4): arm64: dump: Make ptdump debugfs a separate option arm64: dump: Make the page table dumping seq_file optional arm64: dump: Remove max_addr arm64

[PATCHv3 2/4] arm64: dump: Make the page table dumping seq_file optional

2016-10-18 Thread Laura Abbott
The page table dumping code always assumes it will be dumping to a seq_file to userspace. Future code will be taking advantage of the page table dumping code but will not need the seq_file. Make the seq_file optional for these cases. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: M

[PATCHv3 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-18 Thread Laura Abbott
Page mappings with full RWX permissions are a security risk. x86 has an option to walk the page tables and dump any bad pages. (See e1a58320a38d ("x86/mm: Warn on W^X mappings")). Add a similar implementation for arm64. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: Mark Rutland S

[PATCHv3 3/4] arm64: dump: Remove max_addr

2016-10-18 Thread Laura Abbott
max_addr was added as part of struct ptdump_info but has never actually been used. Remove it. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v3: No changes --- arch/arm64/include/asm/ptdump.h | 1 - 1 file changed, 1 deletion(-) diff

[PATCHv3 1/4] arm64: dump: Make ptdump debugfs a separate option

2016-10-18 Thread Laura Abbott
ptdump_register currently initializes a set of page table information and registers debugfs. There are uses for the ptdump option without wanting the debugfs options. Split this out to make it a separate option. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-of

Re: [PATCH v2 1/4] remoteproc: Keep local copy of firmware name

2016-10-18 Thread Bjorn Andersson
On Mon 17 Oct 08:48 PDT 2016, Matt Redfearn wrote: > Storage of the firmware name was inconsistent, either storing a pointer > to a name stored with unknown ownership, or a variable length tacked > onto the end of the struct proc allocated in rproc_alloc. > > In preparation for allowing the firmw

Re: [PATCH 1/1] MAINTAINERS: add a maintainer for the SPI NOR subsystem

2016-10-18 Thread Marek Vasut
On 10/18/2016 11:10 PM, David Oberhollenzer wrote: > On 10/18/2016 09:15 PM, Boris Brezillon wrote: >> On Tue, 18 Oct 2016 11:46:51 -0700 >> Brian Norris wrote: >> >>> + others >>> >>> On Tue, Oct 18, 2016 at 06:15:23PM +0200, Richard Weinberger wrote: On 18.10.2016 17:55, Cyrille Pitchen wro

Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

2016-10-18 Thread Kees Cook
On Tue, Oct 18, 2016 at 2:36 PM, Emese Revfy wrote: > On Tue, 18 Oct 2016 13:57:35 -0700 > Kees Cook wrote: > >> This is controlled by CONFIG_FRAME_WARN. I don't think this is a >> particular problem or should be avoided, but perhaps we can set the >> default to 2048 (as done on 64BIT) if we're b

RE: [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64

2016-10-18 Thread Zheng, Lv
Hi, > From: Yisheng Xie [mailto:xieyishe...@huawei.com] > Sent: Tuesday, October 18, 2016 4:47 AM > To: Zheng, Lv ; Moore, Robert ; > Wysocki, Rafael J > ; l...@kernel.org; wmi...@sgl.com > Cc: linux-a...@vger.kernel.org; de...@acpica.org; > linux-kernel@vger.kernel.org; guohan...@huawei.com; >

[PATCH 3/3] iopmem : Add documentation for iopmem driver

2016-10-18 Thread Stephen Bates
Add documentation for the iopmem PCIe device driver. Signed-off-by: Stephen Bates Signed-off-by: Logan Gunthorpe --- Documentation/blockdev/00-INDEX | 2 ++ Documentation/blockdev/iopmem.txt | 62 +++ 2 files changed, 64 insertions(+) create mode 100644 D

Re: [PATCH v2 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-18 Thread Bjorn Andersson
On Mon 17 Oct 08:49 PDT 2016, Matt Redfearn wrote: > This patch adds a sysfs interface to rproc allowing the firmware name > and processor state to be changed dynamically. > > State was previously available in debugfs, and is replicated here. The > firmware file allows retrieval of the running fi

Re: [PATCH v2 4/4] remoteproc: debugfs: Remove state entry which is duplicated is sysfs

2016-10-18 Thread Bjorn Andersson
On Mon 17 Oct 08:49 PDT 2016, Matt Redfearn wrote: > Since there is now an always available state file in sysfs with the same > function as this one in debugfs, remove the redundant entry. > > Signed-off-by: Matt Redfearn Acked-by: Bjorn Andersson Regards, Bjorn > --- > > Changes in v2: Non

Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

2016-10-18 Thread Emese Revfy
On Tue, 18 Oct 2016 15:05:39 -0700 Kees Cook wrote: > On Tue, Oct 18, 2016 at 2:36 PM, Emese Revfy wrote: > > On Tue, 18 Oct 2016 13:57:35 -0700 > > Kees Cook wrote: > > > >> This is controlled by CONFIG_FRAME_WARN. I don't think this is a > >> particular problem or should be avoided, but perha

Re: [PATCH 0/3] remoteproc: Fix module autoload for qcom platform drivers

2016-10-18 Thread Bjorn Andersson
On Tue 18 Oct 14:24 PDT 2016, Javier Martinez Canillas wrote: > Hello, > > I noticed that module autoload won't be working in some of the qcom > remoteproc drivers. This patch series contains the fixes for these. > Thanks for spotting this, applied all three patches. Regards, Bjorn > Best reg

Re: [PATCH v2] arm64: defconfig: enable EEPROM_AT25 config option

2016-10-18 Thread Scott Branden
On 16-10-18 01:48 PM, Olof Johansson wrote: On Tue, Oct 18, 2016 at 1:38 PM, Scott Branden wrote: Hi Olof, On 16-10-17 05:04 PM, Olof Johansson wrote: On Mon, Oct 17, 2016 at 4:24 PM, Scott Branden wrote: Hi Olof, On 16-10-17 02:58 PM, Olof Johansson wrote: Hi, On Wed, Oct 12, 2016

Re: [RFC][PATCH 2/2] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-10-18 Thread John Youn
On 10/16/2016 7:42 PM, Chen Yu wrote: > > > On 2016/10/15 3:37, John Youn wrote: >> On 10/13/2016 4:36 PM, John Stultz wrote: >>> From: Chen Yu >>> >>> The Hi6220's usb controller is limited in that it does not >>> automatically autonegotiate the usb speed. Thus it requires a >>> quirk so that w

Re: [PATCH net-next 00/15] ethernet: use core min/max MTU checking

2016-10-18 Thread Jarod Wilson
On Tue, Oct 18, 2016 at 11:33:27AM -0400, David Miller wrote: > From: Jarod Wilson > Date: Mon, 17 Oct 2016 16:29:43 -0400 > > > On Mon, Oct 17, 2016 at 04:03:41PM -0400, David Miller wrote: > >> From: Jarod Wilson > >> Date: Mon, 17 Oct 2016 15:54:02 -0400 > >> > >> > For the most part, every

Re: [PATCH] scsi: g_NCR5380: add HAS_IOPORT_MAP dependency

2016-10-18 Thread Finn Thain
On Tue, 18 Oct 2016, Arnd Bergmann wrote: > The driver was changed to call ioport_map, which breaks platforms that > cannot provide this function: > > drivers/scsi/g_NCR5380.o: In function `generic_NCR5380_init_one.constprop.0': > g_NCR5380.c:(.text.generic_NCR5380_init_one.constprop.0+0x388): u

[PATCH 1/3] memremap.c : Add support for ZONE_DEVICE IO memory with struct pages.

2016-10-18 Thread Stephen Bates
From: Logan Gunthorpe We build on recent work that adds memory regions owned by a device driver (ZONE_DEVICE) [1] and to add struct page support for these new regions of memory [2]. 1. Add an extra flags argument into dev_memremap_pages to take in a MEMREMAP_XX argument. We update the existing c

[PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-18 Thread Stephen Bates
This patch follows from an RFC we did earlier this year [1]. This patchset applies cleanly to v4.9-rc1. Updates since RFC - Rebased. Included the iopmem driver in the submission. History --- There have been several attempts to upstream patchsets that enable DMAs between P

[char-misc] mei: txe: don't clean an unprocessed interrupt cause.

2016-10-18 Thread Tomas Winkler
From: Alexander Usyskin SEC registers are not accessible when the TXE device is in low power state, hence the SEC interrupt cannot be processed if device is not awake. In some rare cases entrance to low power state (aliveness off) and input ready bits can be signaled at the same time, resulting

Re: [PATCH] pinctrl: imx: reset group index on probe

2016-10-18 Thread Vladimir Zapolskiy
Hi Stefan, On 19.10.2016 00:09, Stefan Agner wrote: > Group index is incremented on every new group parsed. Since the > field is part of struct imx_pinctrl_soc_info, which is typically > a global variable passed by the individual pinctrl-imx.c based > driver, it does not get cleared automatically

Re: bio linked list corruption.

2016-10-18 Thread Dave Jones
On Tue, Oct 11, 2016 at 10:45:07AM -0400, Dave Jones wrote: > WARNING: CPU: 1 PID: 3673 at lib/list_debug.c:33 __list_add+0x89/0xb0 > list_add corruption. prev->next should be next (e8806648), but was > c967fcd8. (prev=880503878b80). > CPU: 1 PID: 3673 Comm: trinity-c0 Not

[PATCH 2/3] iopmem : Add a block device driver for PCIe attached IO memory.

2016-10-18 Thread Stephen Bates
Add a new block device driver that binds to PCIe devices and turns PCIe BARs into DAX capable block devices. Signed-off-by: Stephen Bates Signed-off-by: Logan Gunthorpe --- MAINTAINERS| 7 ++ drivers/block/Kconfig | 27 drivers/block/Makefile | 1 + drivers/block/iopmem.c

Re: [PATCH 1/8] tools lib bpf: add error functions

2016-10-18 Thread Joe Stringer
On 16 October 2016 at 14:18, Eric Leblond wrote: > The include of err.h is not explicitely needed in exported > functions and it was causing include conflict with some existing > code due to redefining some macros. > > To fix this, let's have error handling functions provided by the > library. Fur

[PATCH] mcp3021: rework for DT support of reference-voltage

2016-10-18 Thread Clemens Gruber
Support setting the reference voltage in the device tree. Rework of driver structure, put chip specific data in a separate structure and assign it depending on device id from platform data or DT match. Extend the device documentation and add new documentation for the devicetree bindings. Also chang

[patch] mm, thp: avoid unlikely branches for split_huge_pmd

2016-10-18 Thread David Rientjes
While doing MADV_DONTNEED on a large area of thp memory, I noticed we encountered many unlikely() branches in profiles for each backing hugepage. This is because zap_pmd_range() would call split_huge_pmd(), which rechecked the conditions that were already validated, but as part of an unlikely(

[PATCH 03/11] perf, tools: Parse eventcode as number in jevents

2016-10-18 Thread Andi Kleen
From: Andi Kleen The next patch needs to modify event code. Previously eventcode was just passed through as a string. Now parse it as a number. Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/

[PATCH 11/11] perf, tools, stat: Output generic dividedby metric

2016-10-18 Thread Andi Kleen
From: Andi Kleen Add generic infrastructure to perf stat to output ratios for "DividedBy" entries in the event lists. Many events are more useful as ratios than in raw form, typically some count in relation to total ticks. Transfer the dividedby information from the alias to the evsel. We mark

<    2   3   4   5   6   7   8   9   >