[PATCH 3/3] tpm: move documentation under Documentation/security

2016-11-03 Thread Jarkko Sakkinen
In order too make Documentation root directory cleaner move the tpm directory under Documentation/security. Signed-off-by: Jarkko Sakkinen --- Documentation/index.rst | 2 +- Documentation/security/index.rst| 7 +++ Documentation/{ => security}

Re:����Proces denture tools

2016-11-03 Thread Frank
Dear Sir Hello! Our company is the Guangzhou Honda and China FAW suppliers. We have been providing quality products and services for them. Our company's main products: Graphite machining end mill The denture machining tool Zirconia processing tool PCD tools CNC inserts Milling toolholder Boron

Re:����Proces denture tools

2016-11-03 Thread Frank
Dear Sir Hello! Our company is the Guangzhou Honda and China FAW suppliers. We have been providing quality products and services for them. Our company's main products: Graphite machining end mill The denture machining tool Zirconia processing tool PCD tools CNC inserts Milling toolholder Boron

Re: [RFC 0/6] vfs: Add timestamp range check support

2016-11-03 Thread Dave Chinner
On Thu, Nov 03, 2016 at 04:43:57PM -0400, Theodore Ts'o wrote: > On Thu, Nov 03, 2016 at 09:48:27AM +1100, Dave Chinner wrote: > > > > We're going to need regression tests for this to ensure that it > > works properly and that we don't inadvertantly break it in future. > > Can you write some xfste

Re: [PATCHv2] PCI: QDF2432 32 bit config space accessors

2016-11-03 Thread Sinan Kaya
On 11/3/2016 4:43 PM, Bjorn Helgaas wrote: > On Thu, Nov 03, 2016 at 12:58:10PM -0400, Sinan Kaya wrote: >> >> On 11/3/2016 10:00 AM, Bjorn Helgaas wrote: >>> On Wed, Nov 02, 2016 at 12:36:16PM -0400, Sinan Kaya wrote: Hi Bjorn, On 11/2/2016 12:08 PM, Bjorn Helgaas wrote: > On Tu

Re: tmpfs returns incorrect data on concurrent pread() and truncate()

2016-11-03 Thread Jakob Unterwurzacher
First of all, thanks for your replies! On 02.11.2016 00:51, Hugh Dickins wrote: > I don't think that there will be much appetite for changing the > kernel's VFS to prevent that. I hope that gocryptfs can provide > the serialization that it needs for itself, or otherwise handle > those zeroes with

Re: [PATCH v3 1/2] remoteproc: Add a sysfs interface for firmware and state

2016-11-03 Thread Wendy Liang
HI Matt, Thanks for your patch. I am trying it. Please see my questions inline. Thanks, Wendy On Wed, Oct 19, 2016 at 5:05 AM, 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

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-03 Thread Ivaylo Dimitrov
Hi, On 4.11.2016 01:05, Sakari Ailus wrote: Hi Sebastian, On Thu, Nov 03, 2016 at 11:48:43PM +0100, Sebastian Reichel wrote: Hi, On Tue, Nov 01, 2016 at 12:54:08AM +0200, Sakari Ailus wrote: Thanks, this answered half of my questions already. ;-) :-). I'll have to go through the patches,

[PATCH v3 08/10] ARC: move mcip.h into include/soc and adjust the includes

2016-11-03 Thread Vineet Gupta
Also remove the dependency on ARCv2, to increase compile coverage for !ARCV2 builds Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/mcip.c | 2 +- arch/arc/kernel/time.c | 2 +- arch/arc/plat-axs10x/axs10x.c

[PATCH v3 03/10] ARC: timer: gfrc, rtc: Read BCR to detect whether hardware exists ...

2016-11-03 Thread Vineet Gupta
... don't rely on cpuinfo populated in arc boot code. This paves way for moving this code in drivers/clocksource/ And while at it, convert the WARN() to pr_warn() as sugested by Daniel Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 18 +- 1 file changed, 13 insertions(

[PATCH v3 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Vineet Gupta
The current code doesn't even compile as somehow the inline assembly can't see the register names defined as ARC_RTC_* I'm pretty sure It worked when I first got it merged, but the tools were definitely different then. So better to write this in "C" anyways. CC: sta...@vger.kernel.org Acked-by: D

[PATCH v3 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Vineet Gupta
This adds support for - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP from @CNT to @LIMIT, before optionally triggering an interrupt. These are programmed using ARC auxiliary register interface. These are present in all ARC cores (ARC700 and ARC HS38) TIMER0 serve

[PATCH v3 00/10] Move ARC timer code into drivers/clocksource/

2016-11-03 Thread Vineet Gupta
Hi, This series addresses the long pending move of ARC timer code into drivers/clocksource/. Thx, -Vineet v2 -> v3 - Fixed a bunch of typos in changelogs [Daniel] - aux.h: stubs for {read,write}_aux_reg() inline functions(vs. macros) to cleanly avoid warnings in !ARC

[PATCH v3 02/10] ARC: timer: gfrc, rtc: deuglify big endian code

2016-11-03 Thread Vineet Gupta
A standard "C" shift will be handled appropriately by the compiler depending on the endian for the build. So we don't need the explicit distinction in code Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-)

[PATCH v3 07/10] ARC: breakout aux handling into a separate header

2016-11-03 Thread Vineet Gupta
ARC timers use aux registers for programming and this paves way for moving ARC timer drivers into drivers/clocksource Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 85 +- arch/arc/include/asm/mcip.h| 2 +- include/soc/arc/aux.h

[PATCH v3 09/10] ARC: breakout timer include code into separate header ...

2016-11-03 Thread Vineet Gupta
... which allows for use in drivers/clocksource later Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 9 + arch/arc/kernel/time.c | 18 +++--- include/soc/arc/timers.h | 38 ++ 3 files changed, 42 insertions(

[PATCH v3 06/10] ARC: timer: Build gfrc, rtc under same option (64-bit timers)

2016-11-03 Thread Vineet Gupta
The original distinction was done as they were developed at different times and primarily because they are specific to UP (RTC) and SMP (GFRC). But given that driver handles that at runtime, (i.e. not allowing RTC as clocksource in SMP), we can simplify things a bit. Signed-off-by: Vineet Gupta

Re: net/netlink: another global-out-of-bounds in genl_family_rcv_msg/validate_nla

2016-11-03 Thread Andrey Konovalov
On Fri, Nov 4, 2016 at 12:22 AM, Cong Wang wrote: > On Thu, Nov 3, 2016 at 4:04 PM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while running the syzkaller fuzzer: >> >> BUG: KASAN: global-out-of-bounds in validate_nla+0x49b/0x4e0 at addr >> 84452de0 >> Rea

[PATCH v3 05/10] ARC: time: move time_init() out of the driver

2016-11-03 Thread Vineet Gupta
to allow future git mv of the driver into drivers/clocksource Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 11 +++ arch/arc/kernel/time.c | 9 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch

[PATCH v3 04/10] ARC: timer: gfrc: boot print alongside other timers

2016-11-03 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 0385df77a697..595d06900061 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -234,11 +234,1

[PATCH] r8169: Module parameter for opt-in of ASPM

2016-11-03 Thread Kast Bernd
This patch adds a module parameter in order to activate ASPM. By that the CPU can enter deep sleep modes (PC6) and power consumption can be reduced (for example from 13W to 8W on my notebook with a Haswell CPU). Basically, it reapplies d64ec841517a25f6d468bde9f67e5b4cffdc67c7, which was reverted du

Re: [PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
On Nov 3, 2016, at 16:49, Andrew Kanner wrote: > > Removed redundant declaration of variable 'tx' in local scope > Fixed: sparse warning: > socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one > socklnd_cb.c:2435:25: originally declared here > > Signed-off-by: Andrew Kanner Review

Re: [PATCH v2 4/6] pinctrl: aspeed: Read and write bits in LPCHC and GFX controllers

2016-11-03 Thread Joel Stanley
On Thu, Nov 3, 2016 at 1:07 AM, Andrew Jeffery wrote: > The System Control Unit IP block in the Aspeed SoCs is typically where > the pinmux configuration is found, but not always. A number of pins > depend on state in one of LPC Host Control (LPCHC) or SoC Display > Controller (GFX) IP blocks, so

Re: net/netlink: another global-out-of-bounds in genl_family_rcv_msg/validate_nla

2016-11-03 Thread Cong Wang
On Thu, Nov 3, 2016 at 4:04 PM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while running the syzkaller fuzzer: > > BUG: KASAN: global-out-of-bounds in validate_nla+0x49b/0x4e0 at addr > 84452de0 > Read of size 2 by task syz-executor/19055 > Address belongs to var

Re: vmalloced stacks and scatterwalk_map_and_copy()

2016-11-03 Thread Eric Biggers
On Thu, Nov 03, 2016 at 02:12:07PM -0700, Eric Biggers wrote: > On Thu, Nov 03, 2016 at 01:30:49PM -0700, Andy Lutomirski wrote: > > > > Also, Herbert, it seems like the considerable majority of the crypto > > code is acting on kernel virtual memory addresses and does software > > processing. Wou

Re: [PATCH v2 3/6] mfd: dt: Add bindings for the Aspeed LPC Host Controller (LPCHC)

2016-11-03 Thread Joel Stanley
On Thu, Nov 3, 2016 at 1:07 AM, Andrew Jeffery wrote: > The Aspeed LPC Host Controller is presented as a syscon device to > arbitrate access by LPC and pinmux drivers. LPC pinmux configuration on > fifth generation SoCs depends on bits in both the System Control Unit > and the LPC Host Controller.

Re: [PATCH v2 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Vineet Gupta
On 11/03/2016 04:01 PM, Daniel Lezcano wrote: > On Thu, Nov 03, 2016 at 03:50:21PM -0700, Vineet Gupta wrote: >> On 11/03/2016 03:38 PM, Daniel Lezcano wrote: >>> On Thu, Nov 03, 2016 at 02:31:41PM -0700, Vineet Gupta wrote: This adds support for - CONFIG_ARC_TIMERS : legacy 32-bit

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-03 Thread Sakari Ailus
Hi Sebastian, On Thu, Nov 03, 2016 at 11:48:43PM +0100, Sebastian Reichel wrote: > Hi, > > On Tue, Nov 01, 2016 at 12:54:08AM +0200, Sakari Ailus wrote: > > > > Thanks, this answered half of my questions already. ;-) > > > :-). > > > > > > I'll have to go through the patches, et8ek8 driver is pr

net/netlink: another global-out-of-bounds in genl_family_rcv_msg/validate_nla

2016-11-03 Thread Andrey Konovalov
Hi, I've got the following error report while running the syzkaller fuzzer: BUG: KASAN: global-out-of-bounds in validate_nla+0x49b/0x4e0 at addr 84452de0 Read of size 2 by task syz-executor/19055 Address belongs to variable ip_vs_cmd_policy+0x20/0x40 CPU: 1 PID: 19055 Comm: syz-executor N

Re: [PATCH v2 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 03:50:21PM -0700, Vineet Gupta wrote: > On 11/03/2016 03:38 PM, Daniel Lezcano wrote: > > On Thu, Nov 03, 2016 at 02:31:41PM -0700, Vineet Gupta wrote: > >> This adds support for > >> > >> - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP > >>from @CN

Re: [PATCH v2 1/6] pinctrl-aspeed-g5: Never set SCU90[6]

2016-11-03 Thread Joel Stanley
On Thu, Nov 3, 2016 at 1:07 AM, Andrew Jeffery wrote: > If a pin depending on bit 6 in SCU90 is requested for GPIO, the export > will succeed but changes to the GPIO's value will not be accepted by the > hardware. This is because the pinmux driver has misconfigured the SCU by > writing 1 to the re

[PATCH] ARM: cache-uniphier: include instead of

2016-11-03 Thread Masahiro Yamada
Nothing in this header file depends on . Rather, should be included for -ENODEV. Signed-off-by: Masahiro Yamada --- arch/arm/include/asm/hardware/cache-uniphier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/hardware/cache-uniphier.h b/arch/arm/incl

Re: [PATCH v2 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Vineet Gupta
On 11/03/2016 03:38 PM, Daniel Lezcano wrote: > On Thu, Nov 03, 2016 at 02:31:41PM -0700, Vineet Gupta wrote: >> This adds support for >> >> - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP >>from @CNT to @LIMIT, before optionally triggering an interrupt. >>These are pr

[PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
Removed redundant declaration of variable 'tx' in local scope Fixed: sparse warning: socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one socklnd_cb.c:2435:25: originally declared here Signed-off-by: Andrew Kanner --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 ++--

Re: [PATCH 2/2] kbuild: add -fno-PIE

2016-11-03 Thread Ben Hutchings
On Wed, 2016-11-02 at 18:20 +0100, Sebastian Andrzej Siewior wrote: > Debian started to build the gcc with -fPIE by default so the kernel > build ends before it starts properly with: > |kernel/bounds.c:1:0: error: code model kernel does not support PIC mode > > > Also add to KBUILD_AFLAGSi due to

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-03 Thread Sebastian Reichel
Hi, On Tue, Nov 01, 2016 at 12:54:08AM +0200, Sakari Ailus wrote: > > > Thanks, this answered half of my questions already. ;-) > > :-). > > > > I'll have to go through the patches, et8ek8 driver is probably not > > enough to get useful video. platform/video-bus-switch.c is needed for > > camera

Re: [patch v3 1/1] i2c: add master driver for mellanox systems

2016-11-03 Thread Vladimir Zapolskiy
On 04.11.2016 00:34, Vladimir Zapolskiy wrote: >> + >> +static int mlxcpld_i2c_probe(struct platform_device *pdev) >> +{ >> +struct mlxcpld_i2c_priv *priv; >> +int err; >> + >> +priv = devm_kzalloc(&pdev->dev, sizeof(struct mlxcpld_i2c_priv), >> +GFP_KERNEL); >>

Re: [PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 03:44:24PM -0700, Vineet Gupta wrote: > On 11/03/2016 03:35 PM, Daniel Lezcano wrote: > > On Thu, Nov 03, 2016 at 03:23:09PM -0700, Vineet Gupta wrote: > >> On 11/03/2016 02:52 PM, Daniel Lezcano wrote: > >>> On Thu, Nov 03, 2016 at 02:31:32PM -0700, Vineet Gupta wrote: > >>

Re: [PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Vineet Gupta
On 11/03/2016 03:35 PM, Daniel Lezcano wrote: > On Thu, Nov 03, 2016 at 03:23:09PM -0700, Vineet Gupta wrote: >> On 11/03/2016 02:52 PM, Daniel Lezcano wrote: >>> On Thu, Nov 03, 2016 at 02:31:32PM -0700, Vineet Gupta wrote: The current code doesn't even compile >>> >>> Give a better desc

Re: [PATCH v2 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 02:31:41PM -0700, Vineet Gupta wrote: > This adds support for > > - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP >from @CNT to @LIMIT, before optionally triggering an interrupt. >These are programmed using ARC auxiliary register interface. >

Re: [PATCH 0/2] ARM64: meson-gxbb: SCPI Fixup

2016-11-03 Thread Kevin Hilman
Neil Armstrong writes: > This patchset updates the GXBB dtsi and the ARM64 defconfig in order > to make SCPI work following the Legacy SCPI rework from Sudeep Hola at [1]. > > The rework introduced a generic "arm,legacy-scpi" compatible string. > The second patch enables the necessary Platform MH

Re: [PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 03:23:09PM -0700, Vineet Gupta wrote: > On 11/03/2016 02:52 PM, Daniel Lezcano wrote: > > On Thu, Nov 03, 2016 at 02:31:32PM -0700, Vineet Gupta wrote: > >> The current code doesn't even compile > > > > Give a better description in the log, especially if this patch is

[RFC] Potential deadlock with PM and vmstat

2016-11-03 Thread Justin Chen
Hello, I am experiencing a deadlock in my system when looping through the PM sequence. The system locks up when trying to bring nonboot cpus down (hot plugging cpus) with vmstat enabled. The issue is the cpu_hotplug.lock. In kernel/cpu.c:_cpu_down(), we begin the cpu bring down. The deadlock occu

Re: [patch v3 1/1] i2c: add master driver for mellanox systems

2016-11-03 Thread Vladimir Zapolskiy
Hi Vadim, please find some more review comments below. On 03.11.2016 20:50, vad...@mellanox.com wrote: > From: Vadim Pasternak > > Device driver for Mellanox I2C controller logic, implemented in Lattice > CPLD device. > Device supports: > - Master mode > - One physical bus > - Polling mode >

Re: [PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Vineet Gupta
On 11/03/2016 02:52 PM, Daniel Lezcano wrote: > On Thu, Nov 03, 2016 at 02:31:32PM -0700, Vineet Gupta wrote: >> The current code doesn't even compile > > Give a better description in the log, especially if this patch is supposed to > go to stable@ OK. > >> CC: sta...@vger.kernel.org >> S

Re: [PATCH 00/14] pinctrl-sx150x: Various bug-fixes and code simplifications

2016-11-03 Thread Andrey Smirnov
>> >> Hi Andrey, >> >> This is good, you went faster than me ! >> >> Small point, could you add Kconfig dependency on REGMAP ? Good catch! Will fix in v2 of the set. >> >> I will try out this patchset and hopefully get you a Tested-by in the next >> few days. >> >> Neil >> > > Great, Successfull

Re: [PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
2016-11-04 1:12 GMT+03:00 Dilger, Andreas : > On Nov 3, 2016, at 15:54, Andrew Kanner wrote: >> >> Changed variable 'tx' name in local scope >> Fixed: sparse warning: >> socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one >> socklnd_cb.c:2435:25: originally declared here > > Looking

Re: [PATCH] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-03 Thread Jason A. Donenfeld
Hi David, On Thu, Nov 3, 2016 at 6:08 PM, David Miller wrote: > In any event no piece of code should be doing 32-bit word reads from > addresses like "x + 3" without, at a very minimum, going through the > kernel unaligned access handlers. Excellent point. In otherwords, ctx->r[0] = (le32_t

Re: [PATCH v4] media: et8ek8: add device tree binding documentation

2016-11-03 Thread Sakari Ailus
Hi Pavel and Rob, On Thu, Nov 03, 2016 at 01:47:49PM +0100, Pavel Machek wrote: > Hi! > > > > +Mandatory properties > > > + > > > + > > > +- compatible: "toshiba,et8ek8" > > > +- reg: I2C address (0x3e, or an alternative address) > > > +- vana-supply: Analogue voltage supply (

Re: [PATCH v2 02/10] ARC: timer: gfrc, rtc: deuglify big endian code

2016-11-03 Thread Vineet Gupta
On 11/03/2016 02:55 PM, Daniel Lezcano wrote: > On Thu, Nov 03, 2016 at 02:31:33PM -0700, Vineet Gupta wrote: >> A standard "C" shift will be handled appropriately by the compiler >> dependin gon the endian used fo rbuild. So we don't need the > > s/dependin gon/depending on/ > s/fo rbuild/for bui

Re: [PATCH] z3fold: make pages_nr atomic

2016-11-03 Thread Andrew Morton
On Thu, 3 Nov 2016 22:24:07 +0100 Vitaly Wool wrote: > On Thu, Nov 3, 2016 at 10:14 PM, Andrew Morton > wrote: > > On Thu, 3 Nov 2016 22:00:58 +0100 Vitaly Wool wrote: > > > >> This patch converts pages_nr per-pool counter to atomic64_t. > > > > Which is slower. > > > > Presumably there is a re

Re: [PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
On Nov 3, 2016, at 15:54, Andrew Kanner wrote: > > Changed variable 'tx' name in local scope > Fixed: sparse warning: > socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one > socklnd_cb.c:2435:25: originally declared here Looking at this more closely (or from a greater distance, har

Re: [PATCH v2 06/10] ARC: timer: Build gfrc, rtc under same option (64-bit timers)

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 02:31:37PM -0700, Vineet Gupta wrote: > The original distinction was done as they were deveoped at different s/deveoped/developed/ > times and primarily becuse they are specific to UP (RTC) and SMP (GFRC). s/becuse/because/ > > But given that driver now handles that at

Re: [PATCH v3 13/16] scsi: fc: use bsg_job_done

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > fc_bsg_jobdone() and bsg_job_done() are 1:1 copies now so use the bsg-lib one > instead of the FC private implementation. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke For ibmvfc parts, Acked-by: Tyrel Datwyler

Re: [PATCH v3 10/16] scsi: change FC drivers to use 'struct bsg_job'

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > Change FC drivers to use 'struct bsg_job' from bsg-lib.h instead of 'struct > fc_bsg_job' from scsi_transport_fc.h and remove 'struct fc_bsg_job'. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke For ibmvfc parts, Acked-by

Re: [PATCH] proc: Report no_new_privs state

2016-11-03 Thread Jann Horn
On Thu, Nov 03, 2016 at 02:40:41PM -0700, Kees Cook wrote: > Similar to being able to examine if a process has been correctly confined > with seccomp, the state of no_new_privs is equally interesting, so this > adds it to /proc/$pid/status. > > Signed-off-by: Kees Cook (Note: The proc.5 manpage

Re: [PATCH v3 06/16] scsi: fc: provide fc_bsg_to_rport() helper

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > Provide fc_bsg_to_rport() helper that will become handy when we're moving > from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use > the new helper. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke Fo

Re: [PATCH v3 05/16] scsi: fc: provide fc_bsg_to_shost() helper

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > Provide fc_bsg_to_shost() helper that will become handy when we're moving from > struct fc_bsg_job to a plain struct bsg_job. Also use this little helper in > the LLDDs. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke For

Re: [PATCH v3 04/16] scsi: Unify interfaces of fc_bsg_jobdone and bsg_job_done

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > Unify the interfaces of fc_bsg_jobdone and bsg_job_done. This will reduce the > diff when moving from 'struct fc_bsg_job' to a plain 'struct bsg_job' later > on. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke For ibmvfc p

Re: [PATCH v3 03/16] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-11-03 Thread Tyrel Datwyler
On 10/13/2016 08:00 AM, Johannes Thumshirn wrote: > Export fc_bsg_jobdone so drivers can use it directly instead of doing > the round-trip via struct fc_bsg_job::job_done() and use it in the LLDDs. > > As we've converted all LLDDs over to use fc_bsg_jobdone() directly, > we can remove the function

[PATCH v3] EDAC: expose per-dimm error counts in sysfs

2016-11-03 Thread Aaron Miller
The old 'csrowX' sysfs directories had per-csrow error counters, but the new 'dimmX' directories do not currently expose error counts. EDAC already keeps these counts, add them to sysfs so per-dimm counts are still available when CONFIG_EDAC_LEGACY_SYSFS=n Signed-off-by: Aaron Miller --- Notes:

[PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
Changed variable 'tx' name in local scope Fixed: sparse warning: socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one socklnd_cb.c:2435:25: originally declared here Signed-off-by: Andrew Kanner --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 ++-- 1 file changed, 2 in

Re: [PATCH v2 02/10] ARC: timer: gfrc, rtc: deuglify big endian code

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 02:31:33PM -0700, Vineet Gupta wrote: > A standard "C" shift will be handled appropriately by the compiler > dependin gon the endian used fo rbuild. So we don't need the s/dependin gon/depending on/ s/fo rbuild/for build/ > explicit distinction in code > > Signed-off-by:

Re: [RFC PATCH 1/3] ARM64: meson: Add Amlogic Meson GX PM Suspend

2016-11-03 Thread Sudeep Holla
On Thu, Nov 03, 2016 at 03:29:23PM +0100, Neil Armstrong wrote: > The Amlogic Meson GX SoCs uses a non-standard argument to the > PSCI CPU_SUSPEND call to enter system suspend. > > Implement such call within platform_suspend_ops. > > Signed-off-by: Neil Armstrong > --- > drivers/firmware/meson/

Re: [PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Daniel Lezcano
On Thu, Nov 03, 2016 at 02:31:32PM -0700, Vineet Gupta wrote: > The current code doesn't even compile Give a better description in the log, especially if this patch is supposed to go to stable@ > CC: sta...@vger.kernel.org > Signed-off-by: Vineet Gupta > --- > arch/arc/kernel/time.c | 19

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-11-03 Thread Sakari Ailus
On Thu, Nov 03, 2016 at 11:27:27AM +0100, Pavel Machek wrote: > Hi! > > > > > > > Yeah. I just compiled it but haven't tested it. I presume it'll > > > > > > work. :-) > > > > > > > > > > I'm testing it on n900. I guess simpler hardware with ad5820 would be > > > > > better for the > > > > > te

[RFC 2/8] iommu/iova: fix __alloc_and_insert_iova_range

2016-11-03 Thread Eric Auger
Fix the size check within start_pfn and limit_pfn. Signed-off-by: Eric Auger --- the issue was observed when playing with 1 page iova domain with higher iova reserved. --- drivers/iommu/iova.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iova.c b/drivers/io

[RFC 5/8] vfio/type1: Introduce RESV_IOVA_RANGE capability

2016-11-03 Thread Eric Auger
This patch allows the user-space to retrieve the reserved IOVA range(s), if any. The implementation is based on capability chains, now also added to VFIO_IOMMU_GET_INFO. Signed-off-by: Eric Auger --- --- drivers/vfio/vfio_iommu_type1.c | 63 - include/uap

[RFC 7/8] iommu/vt-d: Implement add_reserved_regions callback

2016-11-03 Thread Eric Auger
Implement the add_reserved_regions callback by registering the [FEE0_h - FEF0_000h] 1MB range as a reserved region (MSI address space). Signed-off-by: Eric Auger --- drivers/iommu/intel-iommu.c | 48 + 1 file changed, 35 insertions(+), 13 deletions

[RFC 8/8] iommu/arm-smmu: implement add_reserved_regions callback

2016-11-03 Thread Eric Auger
The function populates the list of reserved regions with the PCI host bridge windows and the MSI IOVA range. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. Signed-off-by: Eric Auger --- drivers/iommu/arm-smmu.c | 63 1

[RFC 6/8] iommu: Handle the list of reserved regions

2016-11-03 Thread Eric Auger
A new callback is introduced, add_reserved_regions. This function aims at populating the iommu domain reserved region list with regions associated with the device. The function is called on device attachment. The list is freed on iommu_domain_free(). Signed-off-by: Eric Auger --- drivers/iommu/i

[PATCH] proc: Report no_new_privs state

2016-11-03 Thread Kees Cook
Similar to being able to examine if a process has been correctly confined with seccomp, the state of no_new_privs is equally interesting, so this adds it to /proc/$pid/status. Signed-off-by: Kees Cook --- Documentation/filesystems/proc.txt | 2 ++ fs/proc/array.c| 5 +++-- 2

[RFC 4/8] iommu: Add a list of iommu_reserved_region in iommu_domain

2016-11-03 Thread Eric Auger
Introduce a new iommu_reserved_region struct. This embodies an IOVA reserved region that cannot be used along with the IOMMU API. The list is protected by a dedicated mutex. An iommu domain now owns a list of those. Signed-off-by: Eric Auger --- --- drivers/iommu/iommu.c | 2 ++ include/linux

[RFC 1/8] vfio: fix vfio_info_cap_add/shift

2016-11-03 Thread Eric Auger
Capability header next field is an offset relative to the start of the INFO buffer. tmp->next is assigned the proper value but iterations implemented in vfio_info_cap_add and vfio_info_cap_shift use next as an offset between the headers. When coping with multiple capabilities this leads to an Oops.

[RFC 3/8] iommu/dma: Allow MSI-only cookies

2016-11-03 Thread Eric Auger
From: Robin Murphy IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other

[RFC 0/8] KVM PCIe/MSI passthrough on ARM/ARM64 (Alt II)

2016-11-03 Thread Eric Auger
Following Will & Robin's suggestions, this series attempts to propose an alternative to [1] where the host would arbitrarily decide the location of the IOVA MSI window and would be able to report to the userspace the list of reserved IOVA regions that cannot be used along with VFIO_IOMMU_MAP_DMA. T

Re: [PATCH v10 01/11] remoteproc: st_slim_rproc: add a slimcore rproc driver

2016-11-03 Thread Bjorn Andersson
On Tue 18 Oct 02:39 PDT 2016, Peter Griffin wrote: > slim core is used as a basis for many IPs in the STi > chipsets such as fdma and demux. To avoid duplicating > the elf loading code in each device driver a slim > rproc driver has been created. > > This driver is designed to be used by other de

Re: [PATH] z3fold: extend compaction function

2016-11-03 Thread Vitaly Wool
On Thu, Nov 3, 2016 at 10:16 PM, Andrew Morton wrote: > On Thu, 3 Nov 2016 22:04:28 +0100 Vitaly Wool wrote: > >> z3fold_compact_page() currently only handles the situation when >> there's a single middle chunk within the z3fold page. However it >> may be worth it to move middle chunk closer to e

[PATCH v2 01/10] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-03 Thread Vineet Gupta
The current code doesn't even compile CC: sta...@vger.kernel.org Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c index f927b8dc6edd..1a117b999c0c 1

[PATCH v2 02/10] ARC: timer: gfrc, rtc: deuglify big endian code

2016-11-03 Thread Vineet Gupta
A standard "C" shift will be handled appropriately by the compiler dependin gon the endian used fo rbuild. So we don't need the explicit distinction in code Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-

[PATCH v2 09/10] ARC: breakout timer include code into separate header ...

2016-11-03 Thread Vineet Gupta
... which allows for use in drivers/clocksource later Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 9 + arch/arc/kernel/time.c | 18 +++--- include/soc/arc/timers.h | 38 ++ 3 files changed, 42 insertions(

[PATCH v2 10/10] clocksource: import ARC timer driver

2016-11-03 Thread Vineet Gupta
This adds support for - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP from @CNT to @LIMIT, before optionally triggering an interrupt. These are programmed using ARC auxiliary register interface. These are present in all ARC cores (ARC700 and ARC HS38) TIMER0 serve

[PATCH v2 05/10] ARC: time: move time_init() out of the driver

2016-11-03 Thread Vineet Gupta
to allow future git mv of the driver into drivers/clocksource Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 11 +++ arch/arc/kernel/time.c | 9 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch

[PATCH v2 08/10] ARC: move mcip.h into include/soc and adjust the includes

2016-11-03 Thread Vineet Gupta
Also remove the dependency on ARCv2, to increase compile coverage for !ARCV2 builds Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/mcip.c | 2 +- arch/arc/kernel/time.c | 2 +- arch/arc/plat-axs10x/axs10x.c

[PATCH v2 03/10] ARC: timer: gfrc, rtc: Read BCR to detect whether hardware exists ...

2016-11-03 Thread Vineet Gupta
... don't rely on cpuinfo populated in arc boot code. This paves way for moving this code in drivers/clocksource/ And while at it, convert the WARN() to pr_warn() as sugested by Daniel Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 18 +- 1 file changed, 13 insertions(

[PATCH v2 06/10] ARC: timer: Build gfrc, rtc under same option (64-bit timers)

2016-11-03 Thread Vineet Gupta
The original distinction was done as they were deveoped at different times and primarily becuse they are specific to UP (RTC) and SMP (GFRC). But given that driver now handles that at runtime, (i.e. not allowing RTC as clocksource in SMP), we can simplify things a bit. Signed-off-by: Vineet Gupta

[PATCH v2 04/10] ARC: timer: gfrc: boot print alongside other timers

2016-11-03 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 0385df77a697..595d06900061 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -234,11 +234,1

[PATCH v2 00/10] Move ARC timer code into drivers/clocksource/

2016-11-03 Thread Vineet Gupta
Hi, This series addresses the long pending move of ARC timer code into drivers/clocksource/. Thx, -Vineet v1 -> v2 - Now 10 patches instead of 9 to handle BIG ENDIAN in arch agnostic way - Moved fix for RTC (v1 2/9) ahead of queue (v2 1/10) to allow for easier stable backport - Folded the K

[PATCH v2 07/10] ARC: breakout aux handling into a separate header

2016-11-03 Thread Vineet Gupta
ARC timers use aux registers for programming and this paves way for moving ARC timer drivers into drivers/clocksource Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 85 +- arch/arc/include/asm/mcip.h| 2 +- include/soc/arc/aux.h

Re: [PATCH v2 00/10] Move ARC timer code into drivers/clocksource/

2016-11-03 Thread Vineet Gupta
On 11/03/2016 02:21 PM, Vineet Gupta wrote: > Hi, > > This series addresses the long pending move of ARC timer code into > drivers/clocksource/. > > Thx, > -Vineet Sorry patch sending got aborted, git send-email SNAFU - tripping on '#' below CC: stable #4.2+ ---> likes [4.2+]

[PATCH v2 00/10] Move ARC timer code into drivers/clocksource/

2016-11-03 Thread Vineet Gupta
Hi, This series addresses the long pending move of ARC timer code into drivers/clocksource/. Thx, -Vineet v1 -> v2 - Now 10 patches instead of 9 to handle BIG ENDIAN in arch agnostic way - Moved fix for RTC (v1 2/9) ahead of queue (v2 1/10) to allow for easier stable backport - Folded the K

[RFC] fpga mgr: Introduce FPGA capabilities

2016-11-03 Thread Moritz Fischer
Add FPGA capabilities as a way to express the capabilities of a given FPGA manager. Removes code duplication by comparing the low-level driver's capabilities at the framework level rather than having each driver check for supported operations in the write_init() callback. This allows for extendin

Re: [PATCH] x86/boot: Remove always empty $(USERINCLUDE)

2016-11-03 Thread Matt Fleming
On Thu, 03 Nov, at 10:51:38AM, Paul Bolle wrote: > Apparently Matt left Intel. Let's forward this to a recently used > address. > > On Thu, 2016-11-03 at 10:47 +0100, Paul Bolle wrote: > > Commmit b6eea87fc685 ("x86, boot: Explicitly include autoconf.h for > > hostprogs") correctly noted > > [

Re: [PATCH v10 03/11] remoteproc: Update Kconfig setup to 'depends on REMOTEPROC'

2016-11-03 Thread Bjorn Andersson
On Sat 08 Oct 05:52 PDT 2016, Peter Griffin wrote: > Make REMOTEPROC core a selectable kconfig option, and update > remoteproc client drivers to 'depends on' the core. This avoids > some nasty Kconfig recursive dependency issues. Also when using > menuconfig client drivers will be hidden until the

Re: [PATCH] z3fold: make pages_nr atomic

2016-11-03 Thread Vitaly Wool
On Thu, Nov 3, 2016 at 10:14 PM, Andrew Morton wrote: > On Thu, 3 Nov 2016 22:00:58 +0100 Vitaly Wool wrote: > >> This patch converts pages_nr per-pool counter to atomic64_t. > > Which is slower. > > Presumably there is a reason for making this change. This reason > should be described in the ch

Re: [RFC PATCH 00/10] ARM: dts: exynos: Fix invalid GIC interrupt flags

2016-11-03 Thread Krzysztof Kozlowski
On Fri, Sep 16, 2016 at 09:42:41PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Marek (internally), Geert and Alban reported errors like: > genirq: Setting trigger mode 0 for irq 16 failed (gic_set_type+0x0/0x68) > The patchset fixes this issue. > > Tested on: > 1. Exynos4412: Odroid U3, > 2

[PATCH v2 00/10] Move ARC timer code into drivers/clocksource/

2016-11-03 Thread Vineet Gupta
Hi, This series addresses the long pending move of ARC timer code into drivers/clocksource/. Thx, -Vineet v1 -> v2 - Now 10 patches instead of 9 to handle BIG ENDIAN in arch agnostic way - Moved fix for RTC (v1 2/9) ahead of queue (v2 1/10) to allow for easier stable backport - Folded the K

Re: [PATCH v3] console: use first console if stdout-path device doesn't appear

2016-11-03 Thread Paul Burton
Hi Sergey, On Friday, 4 November 2016 02:40:40 GMT Sergey Senozhatsky wrote: > On (11/03/16 12:57), Paul Burton wrote: > > If a device tree specified a preferred device for kernel console output > > via the stdout-path or linux,stdout-path chosen node properties there's > > no guarantee that it wi

Re: [PATCH v9 00/16] re-enable DAX PMD support

2016-11-03 Thread Dave Chinner
On Thu, Nov 03, 2016 at 11:51:02AM -0600, Ross Zwisler wrote: > On Thu, Nov 03, 2016 at 12:58:26PM +1100, Dave Chinner wrote: > > On Tue, Nov 01, 2016 at 01:54:02PM -0600, Ross Zwisler wrote: > > > DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based > > > locking. This serie

[PATCH V5] pinctrl: qcom: Add msm8994 pinctrl driver

2016-11-03 Thread Michael Scott
Initial pinctrl driver for QCOM msm8994 platforms. In order to continue the initial board support for QCOM msm8994/msm8992 presented in patches from Jeremy McNicoll , let's put a proper pinctrl driver in place. Currently, the DT for these platforms uses the msm8x74 pinctrl driver to enable basic

<    1   2   3   4   5   6   7   8   >