Re: RE: Generous Grant

2018-06-10 Thread M. M. Fridman
I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Check the link below for confirmation: http://www.ibtimes.co.uk/russias-second-wealthiest-man-mikhail-fridman-plans-leaving-1

Re: [PATCH] proc: prevent a task from writing on its own /proc/*/mem

2018-06-10 Thread Salvatore Mesoraca
2018-06-04 18:57 GMT+02:00 Steve Kemp : >> A configurable LSM is probably the right way to do this. > > I wonder how many out of tree LSM there are? Looking at the mainline > kernel the only "small" LSM bundled is YAMA, and it seems that most of > the patches proposing new ones eventually die out.

Re: [PATCH] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-10 Thread chris
Hi Greg, I've added changelog text to the patch below. Appreciate your feedback! Regards, Chris Opperman >8--8< Improved the readability of comedi_nsamples_left: a) Reduced nesting by using more return calls. b) Separated variab

Re: [PATCH 4.14 00/41] 4.14.49-stable review

2018-06-10 Thread Naresh Kamboju
On 9 June 2018 at 20:59, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.49 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Naresh Kamboju
On 9 June 2018 at 20:59, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.15 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-06-10 Thread Srinivas Kandagatla
On 08/06/18 18:07, Alban wrote: On Fri, 8 Jun 2018 12:34:12 +0100 Srinivas Kandagatla wrote: ... I looked into this. It would work fine for the cells but not so nicely for the nvmem device API. The phandle for the nvmem device would have to reference the node passed here and not the real

Re: [PATCH v2] irqchip/gic-v3-its: fix ITS queue timeout

2018-06-10 Thread Marc Zyngier
Hi Hanjun, On Thu, 07 Jun 2018 13:25:26 +0100, Hanjun Guo wrote: > > Hi Marc, > > On 2018/6/6 17:13, Marc Zyngier wrote: > [...] > > > > Wouldn't it be better to just return that the affinity setting request > > is impossible to satisfy? And more to the point, how comes we end-up > > in such

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Matthew Wilcox
On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > on that in section "13.4.6.4 TRANSACTION ID USAGE", the specification > says: "The contents of the TransactionID (TID) field are implementation- > dependent. S

Re: [PATCH v5 4/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-06-10 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17 next-20180608] [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/l

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Stefan Agner
On 09.06.2018 14:21, Dmitry Osipenko wrote: > On Saturday, 9 June 2018 00:51:01 MSK Stefan Agner wrote: >> On 01.06.2018 11:20, Dmitry Osipenko wrote: >> > On 01.06.2018 01:16, Stefan Agner wrote: >> >> Add support for the NAND flash controller found on NVIDIA >> >> Tegra 2 SoCs. This implementatio

Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-06-10 Thread Alban
On Sun, 10 Jun 2018 11:32:36 +0100 Srinivas Kandagatla wrote: > On 08/06/18 18:07, Alban wrote: > > On Fri, 8 Jun 2018 12:34:12 +0100 > > Srinivas Kandagatla wrote: > > > ... > > > > I looked into this. It would work fine for the cells but not so nicely > > for the nvmem device API. The phan

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Leon Romanovsky
On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > > on that in section "13.4.6.4 TRANSACTION ID USAGE", the specification > > says: "The cont

Re: [PATCH v7 1/9] MAINTAINERS: add generic resistive touchscreen adc

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:31 +0300 Eugen Hristev wrote: > Add MAINTAINERS entry for generic resistive touchscreen adc > > Signed-off-by: Eugen Hristev Applied to the togreg branch of iio.git after a rebase brought in the missing fix that was stalling this. Note these are now going to be headin

Re: [PATCH v7 2/9] iio: Add channel for Position Relative

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:32 +0300 Eugen Hristev wrote: > Add new channel type for relative position on a pad. > > These type of analog sensor offers the position of a pen > on a touchpad, and is represented as a voltage, which can be > converted to a position on X and Y axis on the pad. > The c

Re: [PATCH v7 3/9] dt-bindings: input: touchscreen: add minimum pressure touchscreen property

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:33 +0300 Eugen Hristev wrote: > Add a common touchscreen optional property that will specify > the minimum pressure applied to the screen that is needed > such that the driver will report the touch event. > > Signed-off-by: Eugen Hristev > Reviewed-by: Rob Herring App

Re: [PATCH v7 4/9] dt-bindings: input: touchscreen: resistive-adc-touch: create bindings

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:34 +0300 Eugen Hristev wrote: > Added bindings for generic resistive touchscreen ADC. > > Signed-off-by: Eugen Hristev > Reviewed-by: Rob Herring Applied, thanks Jonathan > --- > Changes in v5: > - changed property name touchscreen-threshold-pressure to > touchscree

Re: [PATCH v7 5/9] iio: adc: at91-sama5d2_adc: add support for position and pressure channels

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 14:22:44 +0200 Ludovic Desroches wrote: > On Tue, May 22, 2018 at 10:52:35AM +0300, Eugen Hristev wrote: > > This implements the support for position and pressure for the included > > touchscreen support in the SAMA5D2 SOC ADC block. > > Two position channels are added and one

Re: [PATCH v7 6/9] input: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:36 +0300 Eugen Hristev wrote: > This adds a generic resistive touchscreen (GRTS) driver, which is based > on an IIO device (an ADC). It must be connected to the channels of an ADC > to receive touch data. Then it will feed the data into the input subsystem > where it reg

Re: [PATCH v7 7/9] dt-bindings: iio: adc: at91-sama5d2_adc: add channel specific consumer info

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 14:23:19 +0200 Ludovic Desroches wrote: > On Tue, May 22, 2018 at 10:52:37AM +0300, Eugen Hristev wrote: > > Added defines for channel consumer device-tree binding > > > > Signed-off-by: Eugen Hristev > > Reviewed-by: Rob Herring > Acked-by: Ludovic Desroches Applied to

Re: [PATCH v7 8/9] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:38 +0300 Eugen Hristev wrote: > Preparing the ADC device to connect channel consumer drivers > > Signed-off-by: Eugen Hristev The driver for the touchscreen is no in the IIO tree, but it wasn't early enough (due to a block on a fix working it's way in) for this merge w

Re: [PATCH v7 9/9] ARM: dts: at91: sama5d2: Add resistive touch device

2018-06-10 Thread Jonathan Cameron
On Tue, 22 May 2018 10:52:39 +0300 Eugen Hristev wrote: > Add generic resistive touch device which is connected to ADC block > inside the SAMA5D2 SoC > > Signed-off-by: Eugen Hristev As with the previous patch, the driver side of things is working it's way through the IIO tree, but will be the

Re: [PATCH] mtd: rawnand: mxc: set spare area size register explicitly

2018-06-10 Thread Martin Kaiser
Hi Miquel, Thus wrote Miquel Raynal (miquel.ray...@bootlin.com): > > Usually, this register is updated from settings in the IIM fuses when > > the system is booting from nand flash. For other boot media, however, > s/nand/NAND ok > > + /* spare area size in 16bit words */ > I thought I unde

Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-06-10 Thread Srinivas Kandagatla
On 10/06/18 12:36, Alban wrote: On Sun, 10 Jun 2018 11:32:36 +0100 Srinivas Kandagatla wrote: On 08/06/18 18:07, Alban wrote: On Fri, 8 Jun 2018 12:34:12 +0100 Srinivas Kandagatla wrote: ... I looked into this. It would work fine for the cells but not so nicely for the nvmem device

Re: [PATCH] iio:dac:ad5686: Add AD5311R support

2018-06-10 Thread Jonathan Cameron
On Mon, 4 Jun 2018 17:22:07 +0300 Stefan Popa wrote: > AD5311R is a single channel DAC with 10-bit precision and i2c interface. > The device includes a 2.5V internal reference which is enabled by default. > > This device is similar to AD5691R/AD5692R/AD5693/AD5693R, the only > difference is that

[PATCH v2] mtd: rawnand: mxc: set spare area size register explicitly

2018-06-10 Thread Martin Kaiser
The v21 version of the NAND flash controller contains a Spare Area Size Register (SPAS) at offset 0x10. Its setting defaults to the maximum spare area size of 218 bytes. The size that is set in this register is used by the controller when it calculates the ECC bytes internally in hardware. Usually

Re: [PATCH 4/9] iio: cros_ec: Switch to SPDX identifier.

2018-06-10 Thread Jonathan Cameron
On Tue, 5 Jun 2018 11:22:04 +0200 Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra This code has seen quite a few contributors, I'd like at least some of them to agree they are happy wit

Re: [PATCH v2 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-06-10 Thread Jonathan Cameron
On Thu, 7 Jun 2018 16:11:05 +0300 Stefan Popa wrote: > Signed-off-by: Stefan Popa Hmm. The first part number I've ever googled where the top hit has been a flight number. Rio de Janeiro to Campinas is apparently on time today. > --- > Changes in v2: > - Nothing changed, just to follow th

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Greg Kroah-Hartman
On Sun, Jun 10, 2018 at 02:37:39PM +0530, Naresh Kamboju wrote: > On 9 June 2018 at 20:59, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.16.15 release. > > There are 48 patches in this series, all will be posted as a response > > to this one. If anyone ha

[PATCH 1/1] ARM: dts: s5pv210: Add missing interrupt-controller property to gph2

2018-06-10 Thread Paweł Chmiel
This commit adds missing interrupt-controller property to gph2 block, to silence following warnings during build /soc/pinctrl@e020/gph2: Missing interrupt-controller or interrupt-map property Observed on not yet mainlined, an S5PV210 based Samsung Galaxy S (i9000) phone. Signed-off-by: Paw

Re: [PATCH v2 1/2] iio: dac: Add AD5758 support

2018-06-10 Thread Jonathan Cameron
On Thu, 7 Jun 2018 16:09:40 +0300 Stefan Popa wrote: > The AD5758 is a single channel DAC with 16-bit precision which uses the SPI > interface that operates at clock rates up to 50MHz. > > The output can be configured as voltage or current and is available on a > single terminal. > > Datasheet:

Re: [PATCH v5 27/31] kcov: test compiler capability in Kconfig and correct dependency

2018-06-10 Thread Masahiro Yamada
2018-05-28 18:22 GMT+09:00 Masahiro Yamada : > As Documentation/kbuild/kconfig-language.txt notes, 'select' should be > be used with care - it forces a lower limit of another symbol, ignoring > the dependency. Currently, KCOV can select GCC_PLUGINS even if arch > does not select HAVE_GCC_PLUGINS.

Re: INFO: task hung in __sb_start_write

2018-06-10 Thread Tetsuo Handa
Hello. Commits 401c636a0eeb0d51 "kernel/hung_task.c: show all hung tasks before panic" 8cc05c71ba5f7936 "locking/lockdep: Move sanity check to inside lockdep_print_held_locks()" arrived at linux.git and syzbot started giving us more hints. Quoting from https://syzkaller.appspot.com/text?t

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Shakeel Butt
On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov wrote: > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > The memcg kmem cache creation and deactivation (SLUB only) is > > asynchronous. If a root kmem cache is destroyed whose memcg cache is in > > the process of creation or deac

[PATCH] parport: sunbpp: fix error return code

2018-06-10 Thread Julia Lawall
Return an error code on failure. Change leading spaces to tab on the first if. Problem found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/parport/parport_sunbpp.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/parport/parport_sunbpp.c b/dri

[PATCH] clocksource/drivers/stm32: fix error return code

2018-06-10 Thread Julia Lawall
Return an error code on failure. Problem found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/clocksource/timer-stm32.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index e5cdc3a..271

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Dmitry Osipenko
On Sunday, 10 June 2018 14:09:24 MSK Stefan Agner wrote: > On 09.06.2018 14:21, Dmitry Osipenko wrote: > > On Saturday, 9 June 2018 00:51:01 MSK Stefan Agner wrote: > >> On 01.06.2018 11:20, Dmitry Osipenko wrote: > >> > On 01.06.2018 01:16, Stefan Agner wrote: > >> >> Add support for the NAND flas

Re: [PATCH 4.14 00/41] 4.14.49-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:32PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.49 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.17 00/15] 4.17.1-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:35PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.1 release. > There are 15 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:12PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.15 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Boris Brezillon
On Sun, 10 Jun 2018 18:00:06 +0300 Dmitry Osipenko wrote: > > >> That seems a lot of work for a code path I do not intend to ever use :-) > > >> > > > > > > Are you sure that resetting HW resets the timing and other registers > > > configuration? Reset implementation is HW-specific, like for

[PATCH] EDAC, altera: Fix an error handling path in 'mv64x60_pci_err_probe()'

2018-06-10 Thread Christophe JAILLET
IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET --- drivers/edac/altera_edac.c | 3 ++- 1 file change

Re: [PATCH v5 4/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-06-10 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17 next-20180608] [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/l

Re: [PATCH] EDAC, altera: Fix an error handling path in 'mv64x60_pci_err_probe()'

2018-06-10 Thread Christophe Jaillet
Le 10/06/2018 à 17:34, Christophe JAILLET a écrit : IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Paul E. McKenney
On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > wrote: > > > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > > The memcg kmem cache creation and deactivation (SLUB only) is > > > asynchronous. If a root kmem cac

Dear Talented

2018-06-10 Thread Lisa Clement
Dear Talented, I am Talent Scout For BLUE SKY FILM STUDIO, Present Blue sky Studio a Film Corporation Located in the United State, is Soliciting for the Right to use Your Photo/Face and Personality as One of the Semi -Major Role/ Character in our Upcoming ANIMATED Stereoscope 3D Movie-The Story of

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Naresh Kamboju
On 10 June 2018 at 19:35, Greg Kroah-Hartman wrote: > On Sun, Jun 10, 2018 at 02:37:39PM +0530, Naresh Kamboju wrote: >> On 9 June 2018 at 20:59, Greg Kroah-Hartman >> wrote: >> > This is the start of the stable review cycle for the 4.16.15 release. >> > There are 48 patches in this series, all

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Shakeel Butt
On Sun, Jun 10, 2018 at 9:32 AM Paul E. McKenney wrote: > > On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > > wrote: > > > > > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > > > The memcg kmem cache creation

[PATCH V2] EDAC, altera: Fix an error handling path in 'altr_s10_sdram_probe()'

2018-06-10 Thread Christophe JAILLET
IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET --- v1 -> v2: Fix subject line --- drivers/edac/alter

Re: Perf record of mem event on kernel data address causing freeze

2018-06-10 Thread Probir Roy
Sorry for the extreme delay for this reply. If the expectation was to resolve the issue, the new patch failed to do so. If this information helps, the system hung when WP tried to monitor an address(0x88021f51a768) which was originally sampled by PEBS inside rcu_nmi_exit. On Fri, May 25, 20

Re: [PATCH 3.16 183/410] mm: pin address_space before dereferencing it while isolating an LRU page

2018-06-10 Thread Hugh Dickins
On Thu, 7 Jun 2018, Ben Hutchings wrote: > 3.16.57-rc1 review patch. If anyone has any objections, please let me know. Not an objection as such, but if you're including this one, please be sure to add 145e1a71e090575c74969e3daa8136d1e5b99fc8 "mm: fix the NULL mapping case in __isolate_lru_page()

Re: [PATCH 4.17 00/15] 4.17.1-stable review

2018-06-10 Thread Greg Kroah-Hartman
On Sun, Jun 10, 2018 at 08:14:44AM -0700, Guenter Roeck wrote: > On Sat, Jun 09, 2018 at 05:29:35PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.17.1 release. > > There are 15 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Jason Gunthorpe
On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > > > on that in secti

[GIT PULL] UBI/UBIFS updates for 4.18-rc1

2018-06-10 Thread Richard Weinberger
Linus, The following changes since commit 29dcea88779c856c7dc92040a0c01233263101d4: Linux 4.17 (2018-06-03 14:15:21 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-4.18-rc1 for you to fetch changes up to f5a926dd529870de4bd19199ce7b36985

[PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for jump-labels and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. As a result the code size is slightly increased.

[PATCH v3 7/9] x86: extable: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for exception-tables and call them from inline assembly. This not only makes the code more readable and allows to avoid the duplicate implementation, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assemb

[PATCH v3 8/9] x86: cpufeature: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for static_cpu_has() and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. The patch slightly increases the kernel size

[PATCH v3 5/9] x86: bug: prevent gcc distortions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v3 0/9] x86: macrofying inline asm for better compilation

2018-06-10 Thread Nadav Amit
This patch-set deals with an interesting yet stupid problem: kernel code that does not get inlined despite its simplicity. There are several causes for this behavior: "cold" attribute on __init, different function optimization levels; conditional constant computations based on __builtin_constant_p(

[PATCH v3 2/9] x86: objtool: use asm macro for better compiler decisions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v3 3/9] x86: refcount: prevent gcc distortions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v3 4/9] x86: alternatives: macrofy locks for better inlining

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v3 1/9] Makefile: Prepare for using macros for inline asm

2018-06-10 Thread Nadav Amit
Using macros for inline assembly improves both readability and compilation decisions that are distorted by big assembly blocks that use alternative sections. Compile macros.S and use it to assemble all C files. Currently, only x86 will use it. Cc: Masahiro Yamada Cc: Michal Marek Cc: Thomas Glei

Re: Grant-

2018-06-10 Thread M. M. Fridman
I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Check the link below for confirmation: http://www.ibtimes.co.uk/russias-second-wealthiest-man-mikhail-fridman-plans-leaving-1

[PATCH] staging:iio:accel: use sign extend function avoiding code duplication

2018-06-10 Thread Karim Eshapa
Use sign_extend32 kernel function instead of code duplication. This function is also safe for 16 bits. Signed-off-by: Karim Eshapa --- drivers/staging/iio/accel/adis16201.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/iio/accel/adis16201.c b/drivers/sta

[GIT PULL] RTC for 4.18

2018-06-10 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.18. Setting the supported range from drivers for RTCs failing soon has started. A few fixes are developed along the way. Some drivers have been switched to SPDX by their maintainers. The following changes since commit 60cc43fc888428b

Re: [PATCH] staging:iio:accel: use sign extend function avoiding code duplication

2018-06-10 Thread Joe Perches
On Mon, 2018-06-11 at 00:09 +0200, Karim Eshapa wrote: > Use sign_extend32 kernel function instead of code duplication. > This function is also safe for 16 bits. Firstly: This file is not in staging anymore. Please use the -next tree for patches. > diff --git a/drivers/staging/iio/accel/adis1620

[PATCH 1/5] vt: perform safe console erase only once

2018-06-10 Thread Nicolas Pitre
Commit f8df13e0a9 ("tty: Clean console safely") added code to clear both the scrollback buffer and the screen with "\e[3J", then execution falls through into the code to simply clear the screen. This means scr_memsetw() and the console driver update callback is called twice on the whole screen buff

[PATCH 0/5] have the vt console preserve unicode characters

2018-06-10 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The original

[PATCH 5/5] vt: coherence validation code for the unicode screen buffer

2018-06-10 Thread Nicolas Pitre
Make sure the unicode screen buffer matches the video screen content. This is provided for debugging convenience and disabled by default. Signed-off-by: Nicolas Pitre --- drivers/tty/vt/vt.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/tty

[PATCH 2/5] vt: preserve unicode values corresponding to screen characters

2018-06-10 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The original

[PATCH 4/5] vt: unicode fallback for scrollback

2018-06-10 Thread Nicolas Pitre
There is currently no provision for scrollback content in the core code, leaving that to backend video drivers where this can be highly optimized. There is currently no common method for those drivers to tell the core what part of the scrollback is actually displayed and what size the scrollback bu

[PATCH 3/5] vt: introduce unicode mode for /dev/vcs

2018-06-10 Thread Nicolas Pitre
Now that the core vt code knows how to preserve unicode values for each displayed character, it is then possible to let user space access it via /dev/vcs*. Unicode characters are presented as 32 bit values in native endianity via the /dev/vcsu* devices, mimicking the simple /dev/vcs* devices. Unic

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-10 Thread Baoquan He
On 06/08/18 at 09:13am, Dave Hansen wrote: > On 06/08/2018 08:17 AM, Baoquan He wrote: > > > > Then inside alloc_usemap_and_memmap(), For each node, we get how many > > present sections on this node, call hook alloc_func(). Then we update > > the pointer to point at a new position of usemap_map[]

[PATCH 1/2] rcutorture: Disable RT throttling for boost tests

2018-06-10 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Currently rcutorture is not able to torture RCU boosting properly. This is because the rcutorture's boost threads which are doing the torturing may be throttled due to RT throttling. This patch makes rcutorture use the right torture technique (unthrottled rcutortu

[PATCH 2/2] rcutorture: Make boost test more robust

2018-06-10 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Currently, with RCU_BOOST disabled, I get no failures when forcing rcutorture to test RCU boost priority inversion. The reason seems to be that we don't check for failures if the callback never ran at all for the duration of the boost-test loop. Further, the 'rtb'

Re: [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Kuninori Morimoto
Hi Katsuhiro-san Thank you for your patch > This patch adds headphone and microphone jack detection gpios as same > as simple-card driver. This feature move into simple-card-utils from > simple-card to avoid the duplicating code. > > Signed-off-by: Katsuhiro Suzuki > --- I think it can be 2

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Paul E. McKenney
On Sun, Jun 10, 2018 at 10:40:17AM -0700, Shakeel Butt wrote: > On Sun, Jun 10, 2018 at 9:32 AM Paul E. McKenney > wrote: > > > > On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > > > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > > > wrote: > > > > > > > > On Tue, May 29, 2018

tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h

2018-06-10 Thread kbuild test robot
Hi Alexei, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1aaccb5fa0eac996adde53538ca4b87a0b229ab7 commit: 819dd92b9c0bc7bce9097d8c1f14240f471bb386 bpfilter: switch to CC from HOSTCC date: 5 days ago config: alph

Bad MAINTAINERS patterns

2018-06-10 Thread Joe Perches
Given various renames and removals, the MAINTAINERS file patterns get out of sync with the actual files. It'd be nice if the various maintainers could fix these file patterns. $ ./scripts/get_maintainer.pl --self-test=patterns ./MAINTAINERS:1733: warning: no file matchesF: include/dt-bi

include/linux/syscalls.h:211:18: error: 'sys_mmap2' alias between functions of incompatible types 'long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigne

2018-06-10 Thread kbuild test robot
Hi Al, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1aaccb5fa0eac996adde53538ca4b87a0b229ab7 commit: ee076e81fc14ca79334d02970cea66604f183a14 sparc: trivial conversions to {COMPAT_,}SYSCALL_DEFINE() date: 3 mon

Re: what trees/branches to test on syzbot

2018-06-10 Thread Theodore Y. Ts'o
On Sun, Jun 10, 2018 at 08:11:05AM +0200, Dmitry Vyukov wrote: > > The set of trees where a crash happened is visible on dashboard, so > one can see if it's only linux-next or whole set of trees. Potentially > syzbot can act differently depending on this predicate, but I don't > see what should be

Re: [PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread hpa
On June 10, 2018 7:19:11 AM PDT, Nadav Amit wrote: >Use assembly macros for jump-labels and call them from inline assembly. >This not only makes the code more readable, but also improves >compilation decision, specifically inline decisions which GCC base on >the number of new lines in inline assem

[PATCH] hid: intel_ish-hid: ipc: register more pm callbacks to support hibernation

2018-06-10 Thread Srinivas Pandruvada
From: Even Xu Current ish driver only register resume/suspend PM callbacks which don't support hibernation (suspend to disk). Now use the SIMPLE_DEV_PM_OPS() MACRO instead of struct dev_pm_ops directly. The suspend and resume functions will now be used for both suspend to RAM and hibernation. If

perfmon trouble

2018-06-10 Thread Al Viro
On Sat, Jun 09, 2018 at 04:51:08PM +0100, Al Viro wrote: > Stephane, could you comment on the situation in there? I realize that you > hadn't touched that thing in more than a decade, but I've no idea who else > might be familiar with that thing and it's very inconveniently special... Having loo

Re: [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Katsuhiro Suzuki
Hello Morimoto-san, Thank you for your reviewing. > -Original Message- > From: Kuninori Morimoto > Sent: Monday, June 11, 2018 8:53 AM > To: Suzuki, Katsuhiro > Cc: Mark Brown ; alsa-de...@alsa-project.org; Masami Hiramatsu > ; Jassi Brar ; > linux-arm-ker...@lists.infradead.org; linux-

Re: [PATCH v4 1/2] power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats

2018-06-10 Thread Phil Reid
On 9/06/2018 06:36, Brian Norris wrote: This driver was originally submitted for the TI BQ20Z75 battery IC (commit a7640bfa10c5 ("power_supply: Add driver for TI BQ20Z75 gas gauge IC")) and later renamed to express generic SBS support. While it's mostly true that this driver implemented a standar

[PATCH] linux/linkage.h: replace VMLINUX_SYMBOL_STR() with __stringify()

2018-06-10 Thread Masahiro Yamada
With the special case handling for Blackfin and Metag was removed by commit 94e58e0ac312 ("export.h: remove code for prefixing symbols with underscore"), VMLINUX_SYMBOL_STR() is now equivalent to __stringify(). Replace some remaining usages in to prepare for the entire removal of VMLINUX_SYMBOL_S

Re: [alsa-devel] [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Katsuhiro Suzuki
Hello Morimoto-san, Thank you for your reviewing. On 06/11/18 08:52, Kuninori Morimoto wrote: Hi Katsuhiro-san Thank you for your patch This patch adds headphone and microphone jack detection gpios as same as simple-card driver. This feature move into simple-card-utils from simple-card to a

[PATCH] staging: clocking-wizard: prefer 'help' in Kconfig

2018-06-10 Thread Kyle Buzby
Fixes the checkpatch warning: WARNING: prefer 'help' over '---help---' for new help texts +config COMMON_CLK_XLNX_CLKWZRD Signed-off-by: Kyle Buzby --- drivers/staging/clocking-wizard/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/clocking-wizard/Kco

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-10 Thread Xie XiuQi
Hi Michal, On 2018/6/7 20:21, Michal Hocko wrote: > On Thu 07-06-18 19:55:53, Hanjun Guo wrote: >> On 2018/6/7 18:55, Michal Hocko wrote: > [...] >>> I am not sure I have the full context but pci_acpi_scan_root calls >>> kzalloc_node(sizeof(*info), GFP_KERNEL, node) >>> and that should fall back t

[RFC PATCH] kbuild: clean-up passing KCOV compiler flags

2018-06-10 Thread Masahiro Yamada
Now that the compiler support for KCOV is computed in the Kconfig phase, expensive $(call cc-option,...) calls no longer exist in scripts/Makefile.kcov . It shouldn't hurt to include scripts/Makefile.kcov everytime Kbuild descends into a sub-directory. Also, move ugly stuff from Makefile.lib to M

Re: [PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
at 6:29 PM, h...@zytor.com wrote: > On June 10, 2018 7:19:11 AM PDT, Nadav Amit wrote: >> Use assembly macros for jump-labels and call them from inline assembly. >> This not only makes the code more readable, but also improves >> compilation decision, specifically inline decisions which GCC base

Re: [PATCH 0/7] Uprobes: Support SDT markers having reference count (semaphore)

2018-06-10 Thread Ravi Bangoria
Hi Oleg, On 06/08/2018 10:06 PM, Oleg Nesterov wrote: > Hello, > > I am travelling till the end of the next week, can't read this version > until I return. Just one question, > > On 06/06, Ravi Bangoria wrote: >> >> 1. One of the major reason was the deadlock between uprobe_lock and >> mm->mma

Re: [RESEND v2] dmaengine: pxa: add a default requestor policy

2018-06-10 Thread Vinod Koul
On 09-06-18, 14:43, Robert Jarzmik wrote: > Robert Jarzmik writes: > > > As what former drcmr -1 value meant, add a this as a default to each > > channel, ie. that by default no requestor line is used. > > > > This is specifically used for network drivers smc91x and smc911x, and > > needed for th

Re: [PATCH 0/7] Uprobes: Support SDT markers having reference count (semaphore)

2018-06-10 Thread Ravi Bangoria
Hi Masami, >>> Hmm, it sounds simple... maybe we can increment refctr in >>> install_breakpoint/ >>> remove_breakpoint? >> >> Not really, it would be simpler if I can put it inside install_breakpoint(). >> Consider an mmap() case. Probed instruction resides in the text section >> whereas >> refe

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Leon Romanovsky
On Sun, Jun 10, 2018 at 02:30:27PM -0600, Jason Gunthorpe wrote: > On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > > > 1. IBTA spec doesn't

[PATCH] media: tm6000: add error handling for dvb_register_adapter

2018-06-10 Thread Zhouyang Jia
When dvb_register_adapter fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling dvb_register_adapter. Signed-off-by: Zhouyang Jia --- drivers/media/usb/tm6000/tm6000-dvb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/d

Re: [PATCH 0/5] can: enable multi-queue for SocketCAN devices

2018-06-10 Thread Oleksij Rempel
Hi, On 07.06.2018 17:14, Jonas Mark (BT-FIR/ENG1) wrote: > Hi Andy, > >>> The functionality bases on an external peripheral chip named Companion. >>> It offers two CAN interfaces, each has 8 prioritized transmit FIFOs as >>> well as one receive FIFO. Besides CAN, undisclosed additional functions

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Jason Gunthorpe
On Mon, Jun 11, 2018 at 07:34:25AM +0300, Leon Romanovsky wrote: > On Sun, Jun 10, 2018 at 02:30:27PM -0600, Jason Gunthorpe wrote: > > On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > > > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > > > On Sun, Jun 10, 2018

[PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-10 Thread Don Bollinger
optoe is an i2c based driver that supports read/write access to all the pages (tables) of MSA standard SFP and similar devices (conforming to the SFF-8472 spec) and MSA standard QSFP and similar devices (conforming to the SFF-8436 spec). These devices provide identification, operational status and

  1   2   >