RE: [EXT] Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU

2017-06-24 Thread Yehuda Yitschak
> -Original Message- > From: Thomas Petazzoni [mailto:thomas.petazz...@free-electrons.com] > Sent: Tuesday, May 30, 2017 15:06 > To: Marc Zyngier > Cc: Thomas Gleixner; Jason Cooper; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; Rob Herring; Ian Campbell; Pawel Moll; Mark >

Re: [PATCH v2 2/7] staging: ccree: register setkey for none hash macs

2017-06-24 Thread Gilad Ben-Yossef
On Fri, Jun 23, 2017 at 7:29 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 22, 2017 at 04:36:56PM +0300, Gilad Ben-Yossef wrote: >> Fix a bug where the transformation init code did >> not register a setkey method for none hash based MACs. > > "none hash based MACs"? Is that the correct language, I

Re: [PATCH v2 1/7] staging: ccree: fix hash import/export

2017-06-24 Thread Gilad Ben-Yossef
On Thu, Jun 22, 2017 at 4:58 PM, Dan Carpenter wrote: > On Thu, Jun 22, 2017 at 04:36:55PM +0300, Gilad Ben-Yossef wrote: >> static int ssi_ahash_export(struct ahash_request *req, void *out) >> { >> struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); >> struct ssi_hash_ctx *ctx =

[git pull] Input updates for v4.12-rc6

2017-06-24 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - a quirk to i8042 to ignore timeout bit on Lifebook AH544 - a fixup to Synaptics RMI function 54 that was breaking some Dells - a

Re: [PATCH v8 3/3] mailbox: qcom: Add support for APCS clock controller

2017-06-24 Thread kbuild test robot
Hi Georgi, [auto build test ERROR on next-20170619] [cannot apply to clk/clk-next robh/for-next linus/master v4.12-rc6 v4.12-rc5 v4.12-rc4 v4.12-rc6] [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/comm

[GIT PULL] target fixes for v4.12-rc7

2017-06-24 Thread Nicholas A. Bellinger
Hi Linus, Here are the target-pending fixes for v4.12-rc7 that have been queued up for the last 2 weeks. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master This includes: - Fix a TMR related kref underflow detected by the recent refcoun

Re: [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee

2017-06-24 Thread Tejun Heo
On Sun, Jun 25, 2017 at 12:27:17AM -0400, Tejun Heo wrote: > "cgroup.subtree_control" determines which resource types a cgroup > wants to control. Unlike actual resource knobs, this is an attribute > which belongs to the cgroup itself instead of its parent and thus > should be writeable by the del

[PATCH 3/3] cgroup: implement "nsdelegate" mount option

2017-06-24 Thread Tejun Heo
Currently, cgroup only supports delegation to !root users and cgroup namespaces don't get any special treatments. This limits the usefulness of cgroup namespaces as they by themselves can't be safe delegation boundaries. A process inside a cgroup can change the resource control knobs of the paren

[PATCH 2/3] cgroup: restructure cgroup_procs_write_permission()

2017-06-24 Thread Tejun Heo
Restructure cgroup_procs_write_permission() to make extending permission logic easier. This patch doesn't cause any functional changes. Signed-off-by: Tejun Heo --- kernel/cgroup/cgroup.c | 57 - 1 file changed, 33 insertions(+), 24 deletions(-)

[1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee

2017-06-24 Thread Tejun Heo
"cgroup.subtree_control" determines which resource types a cgroup wants to control. Unlike actual resource knobs, this is an attribute which belongs to the cgroup itself instead of its parent and thus should be writeable by the delegatee in a delegated cgroup. Update delegation documentation acco

Re: [PATCH v5 3/3] x86/build: Specify stack alignment for clang

2017-06-24 Thread Masahiro Yamada
2017-06-22 8:28 GMT+09:00 Matthias Kaehlcke : > For gcc stack alignment is configured with -mpreferred-stack-boundary=N, > clang has the option -mstack-alignment=N for that purpose. Use the same > alignment as with gcc. > > If the alignment is not specified clang assumes an alignment of > 16 bytes,

Re: [PATCH v5 0/3] x86: stack alignment for boot code and clang

2017-06-24 Thread Masahiro Yamada
2017-06-22 17:58 GMT+09:00 Ingo Molnar : > > * Matthias Kaehlcke wrote: > >> This series fixes an issue with the stack of the x86 boot code not >> being aligned as intended. Further it adapts the Makefile to account >> for the fact that clang uses a different option to configure the >> stack align

Re: [PATCH] kbuild: deprecate cc-option-align

2017-06-24 Thread Masahiro Yamada
2017-06-19 16:28 GMT+09:00 Masahiro Yamada : > Documentation/kbuild/makefiles.txt says the change for align options > occurred at GCC 3.0, and Documentation/process/changes.rst says the > minimal supported GCC version is 3.2, so it should be safe to hard-code > -falign* options. > > Fix the only us

[PATCH] tile: fix dependency and .*.cmd inclusion for incremental build

2017-06-24 Thread Masahiro Yamada
Build targets using if_changed(_rule) must depend on FORCE so that they are evaluated every time. In order to include .*.cmd files correctly, build targets added to "targets" must not be prefixed with $(obj)/ because it is done by scripts/Makefile.lib . Signed-off-by: Masahiro Yamada --- I foun

Re: [patches] Re: [PATCH 13/17] RISC-V: Add include subdirectory

2017-06-24 Thread Benjamin Herrenschmidt
On Sat, 2017-06-24 at 14:32 -0700, Palmer Dabbelt wrote: > On Sat, 24 Jun 2017 08:42:05 PDT (-0700), b...@kernel.crashing.org wrote: > > On Fri, 2017-06-23 at 19:01 -0700, Palmer Dabbelt wrote: > > > > > +#define mmiowb()   __asm__ __volatile__ ("fence io,io" : : : > > > > > "memory"); > > >

Re: [PATCH net-next] net: add netlink_ext_ack support to rtnl_link_ops

2017-06-24 Thread David Ahern
On 6/24/17 5:35 AM, Matthias Schiffer wrote: > The following functions are extended with a netlink_ext_ack argument to > allow extended error reporting: > > * validate > * newlink > * changelink > * slave_validate > * slave_changelink I would prefer separate patches for validate, slave_validate,

Re: drivers:soc:fsl:qbman:qman.c: Change a comment for an entry check inside drain_mr_fqrni function

2017-06-24 Thread Scott Wood
On Fri, May 05, 2017 at 10:05:56AM +0200, Karim Eshapa wrote: > Change the comment for an entry check inside function > drain_mr_fqrni() with sleep for sufficient period > of time instead of long time proccessor cycles. > > Signed-off-by: Karim Eshapa > --- > drivers/soc/fsl/qbman/qman.c | 25 ++

Re: [v3] drivers:soc:fsl:qbman:qman.c: Sleep instead of stuck hacking jiffies.

2017-06-24 Thread Scott Wood
On Fri, May 05, 2017 at 07:45:18AM +0200, Karim Eshapa wrote: > Use msleep() instead of stucking with > long delay will be more efficient. > > Signed-off-by: Karim Eshapa > --- > drivers/soc/fsl/qbman/qman.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) Acked-by: Scott Wood (th

Re: [PATCH v3 07/11] tty: improve tty_insert_flip_char() fast path

2017-06-24 Thread kbuild test robot
Hi Arnd, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.12-rc6 next-20170623] [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/Arnd-Bergmann/bring-back-stack-fram

[PATCH V3] staging: rtl8192u - add parameter names

2017-06-24 Thread Derek Robson
Fixed checkpatch.pl warnings of "function definition argument FOO should also have an identifier name" Found using checkpatch Signed-off-by: Derek Robson --- V2 had vauge subject and V1 comment above the line V1 had vauge subject drivers/staging/rtl8192u/ieee80211/ieee80211.h | 2 +- driv

[PATCH V3] staging: sm750fb - add parameter names

2017-06-24 Thread Derek Robson
Fixed checkpatch.pl warnings of the form "function definition argument 'foo' should also have an identifier name" in header files. Signed-off-by: Derek Robson --- V2 had V1 comment above the line V1 had vauge subject line drivers/staging/sm750fb/sm750.h | 24 1 file cha

[PATCH V3] staging: rtl8723bs - remove asm includes

2017-06-24 Thread Derek Robson
Fixed checkpatch warnings "Use #include instead of " Found using checkpatch Signed-off-by: Derek Robson --- V2 had V1 comment above the line V1 had vauge subject lines drivers/staging/rtl8723bs/include/osdep_service_linux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH V3] staging: unisys: visorhba - octal permissions

2017-06-24 Thread Derek Robson
Fixed style of permissions to octal. Found using checkpatch Signed-off-by: Derek Robson --- V1 and V2 had vauge subject lines drivers/staging/unisys/visorhba/visorhba_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/dr

Re: [PATCH 2/2] tcp: md5: export all configured signature keys in /proc/net

2017-06-24 Thread kbuild test robot
Hi Ivan, [auto build test ERROR on net/master] [also build test ERROR on v4.12-rc6 next-20170623] [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/Ivan-Delalande/tcp-add-mode-parameter-to-tcp_proc

[PATCH V4] staging: vt6655 - add parameter names

2017-06-24 Thread Derek Robson
Fix checkpatch.pl warnings of the form "function definition argument 'foo' should also have an identifier name" in header files. Signed-off-by: Derek Robson --- V1,V2 and V3 had vauge subject line. drivers/staging/vt6655/card.h| 30 ++--- drivers/staging/vt6655/channel.h |

Re: [PATCH v8 3/3] mailbox: qcom: Add support for APCS clock controller

2017-06-24 Thread kbuild test robot
Hi Georgi, [auto build test ERROR on next-20170619] [cannot apply to clk/clk-next robh/for-next linus/master v4.12-rc6 v4.12-rc5 v4.12-rc4 v4.12-rc6] [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/comm

Re: [PATCH v2 2/2] i2c: Add Spreadtrum I2C controller driver

2017-06-24 Thread kbuild test robot
Hi Baolin, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.12-rc6 next-20170623] [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/Baolin-Wang/dt-bindings-i2c-Add-Spreadtru

Re: [PATCH V2 0/3] Refine numa_emulation

2017-06-24 Thread Wei Yang
This has really been a long time, not sure we have any concern on this? This change looks good to me which make the numa emulation more robust. And David has acked. Welcome any comments on this. On Tue, May 02, 2017 at 09:04:50PM +0800, Wei Yang wrote: >My previous patch "x86/mm/numa: Remove num

Re: [PATCH 11/14] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-06-24 Thread Wei Yang
On Mon, May 15, 2017 at 10:58:24AM +0200, Michal Hocko wrote: >From: Michal Hocko > [...] >+void move_pfn_range_to_zone(struct zone *zone, >+ unsigned long start_pfn, unsigned long nr_pages) >+{ >+ struct pglist_data *pgdat = zone->zone_pgdat; >+ int nid = pgdat->node_id; >+

Re: [PATCH V6 2/2] powerpc/numa: Update CPU topology when VPHN enabled

2017-06-24 Thread kbuild test robot
Hi Michael, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc6 next-20170623] [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-Bringmann/powerpc-hotplug-Ensure-eno

Re: [PATCH 1/4] sched,numa: override part of migrate_degrades_locality when idle balancing

2017-06-24 Thread Rik van Riel
On Sat, 2017-06-24 at 08:58 +0200, Ingo Molnar wrote: > * r...@redhat.com wrote: > > > From: Rik van Riel > > > > Several tests in the NAS benchmark seem to run a lot slower with > > NUMA balancing enabled, than with NUMA balancing disabled. The > > slower run time corresponds with increased id

[ANNOUNCE] Git v2.13.2

2017-06-24 Thread Junio C Hamano
The latest maintenance release Git v2.13.2 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.13.2' tag and the 'maint' branch that the tag points at: url = https://kern

Re: [GIT PULL] Kbuild fixes for v4.12-rc7

2017-06-24 Thread Linus Torvalds
On Sat, Jun 24, 2017 at 3:59 PM, Masahiro Yamada wrote: > > Sorry, I noticed a typo in my pull-request summary. Pulled, with commit message fix-up. Linus

Re: [GIT PULL] Kbuild fixes for v4.12-rc7

2017-06-24 Thread Masahiro Yamada
Hi Linus Sorry, I noticed a typo in my pull-request summary. > Kbuild fixes for v4.12 (2nd) > > - fix warnings of host programs > > - fix "make tags" when COMPILE_SOURCE=1 is specified along with O= COMPILED_SOURCE=1 instead of COMPILE_SOURCE=1 Could you fix it locally? 2017-06-25

[GIT PULL] Kbuild fixes for v4.12-rc7

2017-06-24 Thread Masahiro Yamada
Hi Linus, This is the 2nd round of Kbuild fixes for v4.12. Nothing scary, just some random fixes. Please pull! The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.kernel.o

Re: [2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-24 Thread Guenter Roeck
On Tue, Jun 13, 2017 at 03:38:18PM -0500, Christopher Bostic wrote: > Reference the system device tree when configuring the watchdog. > Configure for external signal generation if optional attribute > 'external-signal' is present in device tree. Configure for > reset system after timeout if the op

Re: [1/2] drivers/watchdog: Document new aspeed optional dev tree properties.

2017-06-24 Thread Guenter Roeck
On Tue, Jun 13, 2017 at 03:38:17PM -0500, Christopher Bostic wrote: > Describe new optional property 'external-signal'. When present in the > system device tree an exernal signal is generated on watchdog timeout. > > Describe new optional property 'no-system-reset'. When present in the > system

Re: [patches] Re: [PATCH 13/17] RISC-V: Add include subdirectory

2017-06-24 Thread Palmer Dabbelt
On Sat, 24 Jun 2017 08:42:05 PDT (-0700), b...@kernel.crashing.org wrote: > On Fri, 2017-06-23 at 19:01 -0700, Palmer Dabbelt wrote: >> > > +#define mmiowb()       __asm__ __volatile__ ("fence io,io" : : : >> > > "memory"); > > I forgot if we already mentioned that but mmiowb is primarily in

Re: [PATCH 1/3] pci: Add a generic, weakly-linked pcibios_fixup_bus

2017-06-24 Thread Palmer Dabbelt
On Sat, 24 Jun 2017 02:34:06 PDT (-0700), ge...@linux-m68k.org wrote: > Hi Palmer, > > On Sat, Jun 24, 2017 at 3:50 AM, Palmer Dabbelt wrote: >> Multiple architectures define this as an empty function, and I'm adding >> another one as part of the RISC-V port. This adds a __weak version of >> pci_

Re: [PATCH 2/3] pci: Add a generic, weakly-linked pcibios_align_resource

2017-06-24 Thread Palmer Dabbelt
On Sat, 24 Jun 2017 02:41:42 PDT (-0700), ge...@linux-m68k.org wrote: > Hi Palmer, > > On Sat, Jun 24, 2017 at 3:50 AM, Palmer Dabbelt wrote: >> Multiple architectures define this as trivial function, and I'm adding >> another one as part of the RISC-V port. This adds a __weak version of >> pcibi

[PATCH] xattr: fix kstrdup.cocci warnings

2017-06-24 Thread kbuild test robot
fs/xattr.c:516:10-17: WARNING opportunity for kstrdep (strcpy on line 519) Use kstrdup rather than duplicating its implementation Generated by: scripts/coccinelle/api/kstrdup.cocci CC: Stefan Berger Signed-off-by: Fengguang Wu --- xattr.c |3 +-- 1 file changed, 1 insertion(+), 2 deleti

Re: [PATCH 1/3] xattr: Enable security.capability in user namespaces

2017-06-24 Thread kbuild test robot
Hi Stefan, [auto build test WARNING on linus/master] [also build test WARNING on v4.12-rc6 next-20170623] [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/Stefan-Berger/Enable-namespaced-file-capa

Re: [PATCH 6/6] rtc: s3c: Handle clock enable failures

2017-06-24 Thread Alexandre Belloni
Hi, On 16/06/2017 at 21:28:07 +0200, Krzysztof Kozlowski wrote: > clk_enable() can fail so handle such case. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/rtc/rtc-s3c.c | 72 > --- > 1 file changed, 57 insertions(+), 15 deletions(-) >

Re: [PATCH v2 2/3] dt-bindings: iio: update STM32 timers clock names

2017-06-24 Thread Jonathan Cameron
On Thu, 22 Jun 2017 16:25:39 -0500 Rob Herring wrote: > On Wed, Jun 14, 2017 at 05:13:15PM +0200, Fabrice Gasnier wrote: > > Clock name has been updated during driver/DT binding review: > > https://lkml.org/lkml/2016/12/13/718 > > Update DT binding doc to reflect this. > > > > Fixes: bf2d8581b1b

4.12.0-rc5+git: kernel BUG at arch/x86/mm/highmem_32.c:47

2017-06-24 Thread Meelis Roos
This is 4.12.0-rc5-00137-ga090bd4ff838 on a dual AthlonMP server tha has been running fine until 4.11.0 included. 4.12.0-rc5-00137-ga090bd4ff838 was the first kernel after 4.11 that I tried and the problem happened while compiling next kernel from git. First it seems to be task jbd2/sda1-8:70 b

Re: [PATCH v2 8/8] iio: counter: Add support for STM32 LPTimer

2017-06-24 Thread Jonathan Cameron
On Wed, 21 Jun 2017 16:30:15 +0200 Fabrice Gasnier wrote: > Add support for STM32 Low-Power Timer, that can be used as counter > or quadrature encoder. > > Signed-off-by: Fabrice Gasnier Hmm. Sometime I'm going to ask you guys to document how all these different components fit together. Far to

Re: [PATCH RESEND 0/7] Introduce MEDIA_VERSION to end KENREL_VERSION abuse in media

2017-06-24 Thread Mauro Carvalho Chehab
Em Wed, 21 Jun 2017 10:08:05 +0200 Johannes Thumshirn escreveu: > Currently the media subsystem has a very creative abuse of the > KERNEL_VERSION macro to encode an arbitrary version triplet for media > drivers and device hardware revisions. > > This series introduces a new macro called MEDIA_RE

Re: [PATCH v2 7/8] dt-bindings: iio: Add STM32 LPTimer quadrature encoder and counter

2017-06-24 Thread Jonathan Cameron
On Wed, 21 Jun 2017 16:30:14 +0200 Fabrice Gasnier wrote: > Add documentation for STMicroelectronics STM32 Low-Power Timer > quadrature encoder and counter binding. > > Signed-off-by: Fabrice Gasnier Acked-by: Jonathan Cameron > --- > Changes in v2: > - s/Low Power/Low-Power > - remove leading

Re: [PATCH v2 6/8] iio: trigger: Add STM32 LPTimer trigger driver

2017-06-24 Thread Jonathan Cameron
On Wed, 21 Jun 2017 16:30:13 +0200 Fabrice Gasnier wrote: > Add support for LPTIMx_OUT triggers that can be found on some STM32 > devices. These triggers can be used then by ADC or DAC. > Typical usage is to configure LPTimer as PWM output (via pwm-stm32-lp) > and have synchronised analog convers

Re: [PATCH v2 5/8] dt-bindings: iio: Add STM32 LPTimer trigger binding

2017-06-24 Thread Jonathan Cameron
On Wed, 21 Jun 2017 16:30:12 +0200 Fabrice Gasnier wrote: > Add documentation for STMicroelectronics STM32 Low-Power Timer Trigger > binding. > > Signed-off-by: Fabrice Gasnier looks sensible to me. I'm kind of assuming this whole series will end up going through Lee and MFD. Acked-by: Jonatha

Re: [PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-24 Thread Jonathan Cameron
On Thu, 22 Jun 2017 13:44:34 +0800 Zhiyong Tao wrote: > This commit adds mt7622 compatible node. > > Signed-off-by: Zhiyong Tao > --- > drivers/iio/adc/mt6577_auxadc.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c

Re: [PATCH 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-24 Thread Jonathan Cameron
On Thu, 22 Jun 2017 13:44:33 +0800 Zhiyong Tao wrote: > This patch supports auxadc suspend/resume flow. > Disable auxadc clk and power in suspend function. > Enable axuadc clk and power in resume function. > > Signed-off-by: Zhiyong Tao Worth handling the cases where power management is not con

Re: [PATCH] iio: adc: at91-sama5d2_adc: add support for suspend/resume functionality

2017-06-24 Thread Jonathan Cameron
On Fri, 23 Jun 2017 12:25:35 +0300 Eugen Hristev wrote: > On 23.06.2017 01:07, kbuild test robot wrote: > > Hi Eugen, > > > > [auto build test ERROR on iio/togreg] > > [also build test ERROR on v4.12-rc6 next-20170622] > > [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH v2 06/11] dvb-frontends: reduce stack size in i2c access

2017-06-24 Thread Mauro Carvalho Chehab
Em Wed, 14 Jun 2017 23:15:41 +0200 Arnd Bergmann escreveu: > A typical code fragment was copied across many dvb-frontend > drivers and causes large stack frames when built with > -fsanitize-address-use-after-scope, e.g. > > drivers/media/dvb-frontends/cxd2841er.c:3225:1: error: the frame size of

Re: [PATCH v2 1/5] binfmt_elf: Use ELF_ET_DYN_BASE only for PIE

2017-06-24 Thread Kees Cook
On Fri, Jun 23, 2017 at 1:59 PM, Kees Cook wrote: > For 32-bit tasks when RLIMIT_STACK is set to RLIM_INFINITY, programs > are loaded below the mmap region. This means they can be made to collide > (CVE-2017-1000370) or nearly collide (CVE-2017-1000371) with pathological > stack regions. Lowering

Re: [PATCH 2/2] rtc: brcmstb-waketimer: Add Broadcom STB wake-timer

2017-06-24 Thread Alexandre Belloni
Hi, This seems mostly good. On 15/06/2017 at 12:59:04 -0700, Florian Fainelli wrote: > +static void wktmr_read(struct brcmstb_waketmr *timer, > +struct wktmr_time *t) > +{ > + u32 tmp; > + To be sure, is this IP always 32bit, even on 64bit platforms? > + do { > +

[PATCH v3 1/7] time: add get_timespec64 and put_timespec64

2017-06-24 Thread Deepa Dinamani
Add helper functions to convert between struct timespec64 and struct timespec at userspace boundaries. This is a preparatory patch to use timespec64 as the basic type internally in the kernel as timespec is not y2038 safe on 32 bit systems. The patch helps the cause by containing all data conversi

[PATCH v3 7/7] posix_clocks: Use get_itimerspec64() and put_itimerspec64()

2017-06-24 Thread Deepa Dinamani
Usage of these apis and their compat versions makes the syscalls: timer_settime and timer_gettime and their compat implementations simpler. This patch also serves as a preparatory patch for changing syscalls to use new time_t data types to support the y2038 effort by isolating the processing of us

[PATCH v3 5/7] nanosleep: Use get_timepsec64() and put_timespec64()

2017-06-24 Thread Deepa Dinamani
Usage of these apis and their compat versions makes the syscalls: clock_nanosleep and nanosleep and their compat implementations simpler. This is a preparatory patch to isolate data conversions to struct timespec64 at userspace boundaries. This helps contain the changes needed to transition to new

[PATCH v3 6/7] timerfd: Use get_itimerspec64() and put_itimerspec64()

2017-06-24 Thread Deepa Dinamani
Usage of these apis and their compat versions makes the syscalls: timerfd_settime and timerfd_gettime and their compat implementations simpler. This patch also serves as a preparatory patch for changing syscalls to use new time_t data types to support the y2038 effort by isolating the processing o

[PATCH v3 4/7] posix-timers: Use get_timepsec64() and put_timespec64()

2017-06-24 Thread Deepa Dinamani
Usage of these apis and their compat versions makes the syscalls: clock_gettime, clock_settime, clock_getres and their compat implementations simpler. This is a preparatory patch to isolate data conversions to struct timespec64 at userspace boundaries. This helps contain the changes needed to tran

[PATCH v3 2/7] time: introduce {get,put}_itimerspec64

2017-06-24 Thread Deepa Dinamani
As we change the user space type for the timerfd and posix timer functions to newer data types, we need some form of conversion helpers to avoid duplicating that logic. Suggested-by: Arnd Bergmann Signed-off-by: Deepa Dinamani --- include/linux/compat.h | 4 include/linux/posix-time

[PATCH v3 0/7] Isolate time_t data types for clock/timer syscalls

2017-06-24 Thread Deepa Dinamani
The series aims at isolating data conversions of time_t based structures: struct timespec and struct itimerspec at user space boundaries. This helps to later change the underlying types to handle y2038 changes to these. The series is an update to Arnd Bergmann's previous series: http://sourceware.

[PATCH v3 3/7] posix-stubs: Conditionally include COMPAT_SYS_NI defines

2017-06-24 Thread Deepa Dinamani
These apis only need to be defined if CONFIG_COMPAT is enabled. Signed-off-by: Deepa Dinamani --- kernel/time/posix-stubs.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 38f3b20efa29..65878221cbfb 100

Re: [PATCH v2] iio: adc: at91-sama5d2_adc: add support for suspend/resume functionality

2017-06-24 Thread Jonathan Cameron
On Fri, 23 Jun 2017 15:54:57 +0300 Eugen Hristev wrote: > Added support for suspend/resume functionality for the ADC IP > in sama5d2 SoC. > In order to enter Suspend to ram mode (backup + self refresh mode for > memory), in which the ADC IP is no longer powered, we need to reset the > pins to def

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-24 Thread Ben Hutchings
On Sat, 2017-06-24 at 02:11 -0700, Hugh Dickins wrote: > On Thu, 22 Jun 2017, Hugh Dickins wrote: > > On Thu, 22 Jun 2017, Ben Hutchings wrote: > >  > > > Here's my attempt at a backport to 3.2.  This is only tested on > > > x86_64 and I think I should introduce local variables for > > > vma_start_

[PATCH v2 3/7] posix-stubs: Conditionally include COMPAT_SYS_NI defines

2017-06-24 Thread Deepa Dinamani
These apis are only to be defined if CONFIG_COMPAT is enabled. Signed-off-by: Deepa Dinamani --- kernel/time/posix-stubs.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 38f3b20efa29..ac0a6b76ddd8 100644 --- a/kernel/time/posi

[PATCH v2 2/7] time: introduce {get,put}_itimerspec64

2017-06-24 Thread Deepa Dinamani
As we change the user space type for the timerfd and posix timer functions to newer data types, we need some form of conversion helpers to avoid duplicating that logic. Suggested-by: Arnd Bergmann Signed-off-by: Deepa Dinamani --- include/linux/compat.h | 4 include/linux/posix-time

[PATCH v2 1/7] time: add get_timespec64 and put_timespec64

2017-06-24 Thread Deepa Dinamani
Add helper functions to convert between struct timespec64 and struct timespec at userspace boundaries. This is a preparatory patch to use timespec64 as the basic type internally in the kernel as timespec is not y2038 safe on 32 bit systems. The patch helps the cause by containing all data conversi

[PATCH v2 0/7] Isolate time_t data types for clock/timer syscalls

2017-06-24 Thread Deepa Dinamani
The series aims at isolating data conversions of time_t based structures: struct timespec and struct itimerspec at user space boundaries. This helps to later change the underlying types to handle y2038 changes to these. The series is an update to Arnd Bergmann's previous series: http://sourceware.

Re: [PATCH 1/2] arm64: dts: exynos: Fix wrong label for USB 3.0 controller node

2017-06-24 Thread Krzysztof Kozlowski
On Tue, Jun 20, 2017 at 04:12:23PM +0900, Dongwoo Lee wrote: > Exynos5433 has two usb 3.0 controllers: usbhost and usbdrd. usbhost > is host-only controller whereas usbdrd supports both peripheral and > host mode. "drd" means dual-role device, so usbhost cannot be labeled > with the name contains "

Re: [PATCH] x86/mm/hotplug: fix BUG_ON() after hotremove by not freeing pud v2

2017-06-24 Thread Jerome Glisse
On Sat, Jun 24, 2017 at 08:45:59AM +0200, Ingo Molnar wrote: > > * Jerome Glisse wrote: > > > On Wed, Jun 07, 2017 at 09:17:06PM +0300, Kirill A. Shutemov wrote: > > > On Wed, Jun 07, 2017 at 01:38:00PM -0400, Jerome Glisse wrote: > > > > > On Wed, Jun 07, 2017 at 08:03:25PM +0300, Kirill A. Shu

[PATCH] x86/mm/hotplug: fix BUG_ON() after hotremove by not freeing pud v3

2017-06-24 Thread jglisse
From: Jérôme Glisse With commit af2cf278ef4f we no longer free pud so that we do not have synchronize all pgd on hotremove/vfree. But the new 5 level page table patchset reverted that for 4 level page table. This patch restore af2cf278ef4f and disable free_pud() if we are in the 4 level page tab

Re: Stable/distro kernel testing in Plumbers 2017

2017-06-24 Thread Masami Hiramatsu
On Fri, 23 Jun 2017 03:37:28 + "Levin, Alexander (Sasha Levin)" wrote: > Hi all, > > We were hoping to discuss the state of -stable/distro kernel testing > in the Testing & Fuzzing MC in Plumbers 2017. > > Mainly we want to understand what sort of testing is being done, how > bug reports

Re: [PATCH] iio: dac: DS4424: add Maxim DS4422/DS4424 DAC driver support

2017-06-24 Thread Jonathan Cameron
On Fri, 23 Jun 2017 16:04:04 -0700 Ismail Kose wrote: > From: "Ismail H. Kose" > > Add iio driver for DS4422/DS4424 chips that support two/four channel 7-bit > Sink/Source Current DAC. > > The driver supports device tree and platfrom files for the configurations. > > Datasheet publicly availa

Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3

2017-06-24 Thread Larry Finger
On 06/23/2017 03:29 PM, Al Viro wrote: On Fri, Jun 23, 2017 at 01:49:16PM -0500, Larry Finger wrote: BTW, could you try to check what happens if you kill the if (__builtin_constant_p(n) && (n <= 8)) bits in raw_copy_{to,from}_user()? The usefulness of those (in __copy_from_user() orig

Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Logan Gunthorpe
On 24/06/17 10:14 AM, Richard Henderson wrote: > So you would prefer a function containing BUG? Don't be so obtuse. Of course not. > Because I have to have *something* to put into the machvec function > pointer. Well I can't say I understand the point of the machvec code, but if you're saying

Re: Stable/distro kernel testing in Plumbers 2017

2017-06-24 Thread Ben Hutchings
On Fri, 2017-06-23 at 03:37 +, Levin, Alexander (Sasha Levin) wrote: > Hi all, > > We were hoping to discuss the state of -stable/distro kernel testing  > in the Testing & Fuzzing MC in Plumbers 2017. > > Mainly we want to understand what sort of testing is being done, how  > bug reports are

Re: [PATCH] iommu/amd: Fix interrupt remapping when disable guest_mode

2017-06-24 Thread kbuild test robot
-interrupt-remapping-when-disable-guest_mode/20170624-162701 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: x86_64-randconfig-b0-06242320 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree

[PATCH 2/2] f2fs: report # of free inodes more precisely

2017-06-24 Thread Jaegeuk Kim
If the partition is small, we don't need to report total # of inodes including hidden free nodes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 8e39b850bfc0..3da6fb276f8b

Re: [PATCH] nvme: explicitly disable APST on quirked devices

2017-06-24 Thread Andy Lutomirski
On Sat, Jun 24, 2017 at 12:47 AM, Kai-Heng Feng wrote: > On Sat, Jun 24, 2017 at 1:17 AM, Andy Lutomirski wrote: >> On Thu, Jun 22, 2017 at 11:19 PM, Kai-Heng Feng >> wrote: >>> A user reports APST is enabled, even when the NVMe is quirked or with >>> option "default_ps_max_latency_us=0". >>> >>

[PATCH] scsi: qedi: Remove comparison of u16 idx with zero.

2017-06-24 Thread Christos Gkekas
Variable idx is defined as u16 thus statement (idx < 0) is always false and should be removed. Signed-off-by: Christos Gkekas --- drivers/scsi/qedi/qedi_fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c index e9

Re: [PATCH] f2fs: fix ref of discard command

2017-06-24 Thread Jaegeuk Kim
On 06/23, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/6/12 11:04, Jaegeuk Kim wrote: > > This patch resolves kernel panic for xfstests/081, caused by recent > > f2fs_bug_on > > > > f2fs: add f2fs_bug_on in __remove_discard_cmd > > > > Signed-off-by: Jaegeuk Kim > > --- > > fs/f2fs/segment.c |

[PATCH 1/2] f2fs: avoid deadlock caused by lock order of page and lock_op

2017-06-24 Thread Jaegeuk Kim
- punch_hole - fill_zero - f2fs_lock_op - get_new_data_page - lock_page - f2fs_write_data_pages - lock_page - do_write_data_page - f2fs_lock_op Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/

Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Richard Henderson
On 06/24/2017 08:32 AM, Logan Gunthorpe wrote: So, IMO, the Jensen inq and outq funtions in your patch, which I did read, should probably just not be provided. So you would prefer a function containing BUG? Because I have to have *something* to put into the machvec function pointer. r~

Re: [PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-24 Thread Heiko Stuebner
Am Samstag, 24. Juni 2017, 16:04:06 CEST schrieb Andrew Lunn: > > hmm, we do have quite a number of non-net phys in the phy subsystem > > (DP, PCIe, ...) and given that the above would be CONFIG_ROCKCHIP_PHY > > in a global sense, sounds like it could make things confusing. > > > > So some additio

Re: [PATCH 13/17] RISC-V: Add include subdirectory

2017-06-24 Thread Benjamin Herrenschmidt
On Fri, 2017-06-23 at 19:01 -0700, Palmer Dabbelt wrote: > > > +#define mmiowb()   __asm__ __volatile__ ("fence io,io" : : : > > > "memory"); I forgot if we already mentioned that but mmiowb is primarily intended to order MMIO stores vs. a subsequent spin_unlock. I'm not sure an IO only fenc

Re: clean up and modularize arch dma_mapping interface V2

2017-06-24 Thread Benjamin Herrenschmidt
On Sat, 2017-06-24 at 09:18 +0200, Christoph Hellwig wrote: > On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote: > > Thanks for doing this. > > So archs can still have their own definition for dma_set_mask() if > > HAVE_ARCH_DMA_SET_MASK is y? > > (and similarly for dma_set_coherent_mask() wh

Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Logan Gunthorpe
On 24/06/17 09:25 AM, Richard Henderson wrote: > On 06/24/2017 08:19 AM, Logan Gunthorpe wrote: >> Hey, >> >> On 24/06/17 09:13 AM, Richard Henderson wrote: >>> All Alpha hosts except for Jensen provide 64-bit I/O operations. >>> >>> Jensen is EISA only, so there ought not be any devices that eve

Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Richard Henderson
On 06/24/2017 08:19 AM, Logan Gunthorpe wrote: Hey, On 24/06/17 09:13 AM, Richard Henderson wrote: All Alpha hosts except for Jensen provide 64-bit I/O operations. Jensen is EISA only, so there ought not be any devices that even attempt such operations. But just in case, use 2 32-bit operatio

Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Logan Gunthorpe
Hey, On 24/06/17 09:13 AM, Richard Henderson wrote: > All Alpha hosts except for Jensen provide 64-bit I/O operations. > > Jensen is EISA only, so there ought not be any devices that even > attempt such operations. But just in case, use 2 32-bit operations. Thanks for this, Richard. However, I

[PATCH] alpha: provide ioread64 and iowrite64 implementations

2017-06-24 Thread Richard Henderson
All Alpha hosts except for Jensen provide 64-bit I/O operations. Jensen is EISA only, so there ought not be any devices that even attempt such operations. But just in case, use 2 32-bit operations. Cc: Logan Gunthorpe Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Richard Henderson ---

Re: [PATCH] alpha: support R_ALPHA_REFLONG relocations for module loading

2017-06-24 Thread Richard Henderson
On 06/23/2017 06:37 PM, Michael Cree wrote: Since commit 71810db27c1c853b33 (modversions: treat symbol CRCs as 32 bit quantities) R_ALPHA_REFLONG relocations can be required to load modules. This implements it. Tested-by: Bob Tracy Signed-off-by: Michael Cree --- arch/alpha/kernel/module.c | 3

Re: [PATCH] pci: Add and use PCI_GENERIC_SETUP Kconfig entry

2017-06-24 Thread Richard Henderson
On 06/23/2017 03:08 PM, Palmer Dabbelt wrote: We wanted to add RISC-V to the list of architectures that used the generic PCI setup-irq.o inside the Makefile and it was suggested that instead we define a Kconfig entry and use that. I've done very minimal testing on this: I just checked to see tha

Re: linux-next: BUG: Bad page state in process ip6tables-save pfn:1499f4

2017-06-24 Thread Andrei Vagin
On Fri, Jun 23, 2017 at 05:17:44PM -0700, Andrei Vagin wrote: > On Thu, Jun 22, 2017 at 11:21:03PM -0700, Andrei Vagin wrote: > > Hello, > > > > We run CRIU tests for linux-next and today they triggered a kernel > > bug. I want to mention that this kernel is built with kasan. This bug > > was trig

Re: [PATCH 3.18 32/32] mm: larger stack guard gap, between vmas

2017-06-24 Thread Greg Kroah-Hartman
On Tue, Jun 20, 2017 at 10:49:16PM -0700, Hugh Dickins wrote: > On Mon, 19 Jun 2017, Greg Kroah-Hartman wrote: > > > 3.18-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Hugh Dickins > > > > commit 1be7107fbe18eed3e319a6c3e83c782

Re: [PATCH 4.4 30/30] mm: larger stack guard gap, between vmas

2017-06-24 Thread Greg Kroah-Hartman
On Tue, Jun 20, 2017 at 10:41:01PM -0700, Hugh Dickins wrote: > On Mon, 19 Jun 2017, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Hugh Dickins > > > > commit 1be7107fbe18eed3e319a6c3e83c7825

Re: [PATCH] f2fs: avoid redundant f2fs_flush after remount

2017-06-24 Thread Chao Yu
On 2017/6/24 15:57, Yunlong Song wrote: > create_flush_cmd_control will create redundant issue_flush_thread after each > remount with flush_merge option. > > Signed-off-by: Yunlong Song Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/segment.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff

Re: [PATCH] sony-laptop: constify sony_laptop_input_* and spic_attribute_group

2017-06-24 Thread kbuild test robot
-laptop-constify-sony_laptop_input_-and-spic_attribute_group/20170624-221228 base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next config: x86_64-randconfig-x007-201725 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the

Re: [PATCH 2/7] drivers/hwmon/occ: Add command transport method for P8 and P9

2017-06-24 Thread Guenter Roeck
On 06/22/2017 03:48 PM, Eddie James wrote: From: "Edward A. James" For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a proced

  1   2   >