Re: [PATCH 2/6] pstore: Add event tracing support

2018-09-16 Thread Sai Prakash Ranjan
On 9/9/2018 1:57 AM, Sai Prakash Ranjan wrote: Currently pstore has function trace support which can be used to get the function call chain with limited data. Event tracing has extra data which is useful to debug wide variety of issues and is heavily used across the kernel. Adding this support t

Greetings and many thanks for your past efforts.

2018-09-16 Thread Nicole Marois
Greetings and many thanks for your past efforts. How are you with your family? I hope fine. I'm happy to inform you about my success in getting those funds transferred under the co-operation of a new partner from Venezuela, Presently I’m in Venezuela, and meanwhile I didn't forget your past effort

Re: 答复: Re: 答复: Re: [PATCH] tty: max3100: Fix oops while 'cat/proc/tty/driver/ttyMAX'

2018-09-16 Thread Jiri Slaby
On 09/15/2018, 04:14 AM, chen.l...@zte.com.cn wrote: > yes, creation and destroy of the workqueue is not locked, I think > maybe there is some > > remainder work to do in destroy-wq, so I cannot sure if there is > any usage about lock destroy-wq. > > > What you worried of the races is about this

[no subject]

2018-09-16 Thread iluminati
-- join the Illuminati secret brotherhood and get $3,000,000.00

[PATCH V5 3/3] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt diff --git a/Documentation/devicetree/bindings/interrupt-contro

[PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../interrupt-controller/csky,apb-intc.txt | 70 ++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt-cont

[PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-16 Thread Guo Ren
This patch add C-SKY two interrupt conrollers. - irq-csky-apb-intc is a simple SOC interrupt controller which is used in a lot of C-SKY SOC products. - irq-csky-mpintc is C-SKY smp system interrupt controller and it could support 16 soft irqs, 16 private irqs, and 992 max common irqs.

[PATCH V5 1/2] clocksource: add C-SKY SMP timer

2018-09-16 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig

[PATCH V5 2/2] dt-bindings: timer: C-SKY Multi-processor timer

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b/Docume

[PATCH V5 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s-timer.

[PATCH V5 1/2] clocksource: add gx6605s SOC system timer

2018-09-16 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

[PATCH V6 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s-timer.

[PATCH V6 1/2] clocksource: add gx6605s SOC system timer

2018-09-16 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

Re: [PATCH -next] iio: potentiometer: mcp4018: merge calls to of_match_device and of_device_get_match_data

2018-09-16 Thread Jonathan Cameron
On Sat, 15 Sep 2018 13:35:06 +0200 Peter Rosin wrote: > On 2018-09-15 12:52, YueHaibing wrote: > > Drop call to of_match_device, which is subsumed by the subsequent > > call to of_device_get_match_data. The code becomes simpler, and a > > temporary variable can be dropped. > > > > Found by cocc

Re: [PATCH V5 1/2] clocksource: add C-SKY SMP timer

2018-09-16 Thread Guo Ren
Sorry for duplicate patch-sets, for gx6605s-timer See PATCH V6. On Sun, Sep 16, 2018 at 05:13:57PM +0800, Guo Ren wrote: > This timer is used by SMP system and use mfcr/mtcr instruction > to access the regs. > > Changelog: > - Support csky mp timer alpha version. > - Just use low-counter with 3

Re: [PATCH 2/2] iio: light: bh1750: Add device tree support

2018-09-16 Thread Jonathan Cameron
On Sat, 15 Sep 2018 13:42:14 -0400 ryang wrote: > Add device tree support for ROHM BH1750 series ambient light sensors. > > Signed-off-by: ryang Just to check, how is it picking up on the enum value which is provided in the i2c_device_id entries? i.e. What is setting id->driver_data in the pro

Re: [PATCH -next] iio: potentiometer: max5481: merge calls to of_match_device and of_device_get_match_data

2018-09-16 Thread Jonathan Cameron
On Sat, 15 Sep 2018 18:50:33 +0800 YueHaibing wrote: > Drop call to of_match_device, which is subsumed by the subsequent > call to of_device_get_match_data. The code becomes simpler, and a > temporary variable can be dropped. > > Found by coccinelle. > > Signed-off-by: YueHaibing Sorry, anoth

Re: [PATCH] iio: adc: max9611: Avoid implicit enum conversion warning

2018-09-16 Thread Jonathan Cameron
On Fri, 14 Sep 2018 22:25:11 -0700 Nathan Chancellor wrote: > Clang warns when an enumerated type is implicitly converted to another. > > drivers/iio/adc/max9611.c:292:16: warning: implicit conversion from > enumeration type 'enum max9611_conf_ids' to different enumeration type > 'enum max9611_c

Re: [PATCH v2 2/4] iio: Documentation: Add Xilinx AMS sysfs documentation

2018-09-16 Thread Jonathan Cameron
On Fri, 14 Sep 2018 12:48:28 +0530 Manish Narani wrote: > Add documentation for xilinx-ams driver. This contains information about > various voltages and temperatures on PS (Processing System), PL > (Programmable Logic) and AMS Control Block. > > Signed-off-by: Manish Narani The more I look at

RE: [linuxwifi] [PATCH] fix iwlwifi on old cards in v4.19 was Re: 4.19-rc[23] iwlwifi: BUG in swiotlb

2018-09-16 Thread Grumbach, Emmanuel
> > > .max_tfd_queue_size was ommited for old cards, leading to oops in swiotlb. > > Signed-off-by: Pavel Machek > I picked it up in our tree with minor commit message fixes. I also added the Fixes tag for stable. Thanks!

Re: [PATCH v2 3/4] iio: adc: Add Xilinx AMS driver

2018-09-16 Thread Jonathan Cameron
On Fri, 14 Sep 2018 12:48:29 +0530 Manish Narani wrote: > The AMS includes an ADC as well as on-chip sensors that can be used to > sample external voltages and monitor on-die operating conditions, such > as temperature and supply voltage levels. The AMS has two SYSMON blocks. > PL-SYSMON block is

Re: [PATCH v5] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-16 Thread Jonathan Cameron
On Sat, 15 Sep 2018 17:57:52 +0800 Song Qiang wrote: > This driver was originally written by ST in 2016 as a misc input device > driver, and hasn't been maintained for a long time. I grabbed some code > from it's API and reformed it into an iio proximity device driver. > This version of driver us

Re: [PATCH v2 1/4] spi: add new SPI_CS_WORD flag

2018-09-16 Thread Jonathan Cameron
On Wed, 12 Sep 2018 19:39:17 -0500 David Lechner wrote: > This adds a new SPI mode flag, SPI_CS_WORD, that is used to indicate > that a SPI device requires the chip select to be toggled after each > word that is transferred. > > Signed-off-by: David Lechner Just a general patch ordering / combi

Re: [PATCH v2 2/4] spi: add software implementation for SPI_CS_WORD

2018-09-16 Thread Jonathan Cameron
On Wed, 12 Sep 2018 19:39:18 -0500 David Lechner wrote: > This adds a default software implementation for the SPI_CS_WORD flag for > controllers that don't have such a feature. > > The SPI_CS_WORD flag indicates that the CS line should be toggled > between each word sent, not just between each t

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-09-16 Thread Jarkko Sakkinen
On Tue, Sep 11, 2018 at 08:04:39AM -0700, Sean Christopherson wrote: > > +static void sgx_reclaim_pages(void) > > +{ > > + struct sgx_epc_page *chunk[SGX_NR_TO_SCAN + 1]; > > The array size should simply be SGX_NR_TO_SCAN.  The +1 is a remnant > from the previous version that bounded the for-loo

Re: [PATCH v2 3/4] iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage

2018-09-16 Thread Jonathan Cameron
On Wed, 12 Sep 2018 19:39:19 -0500 David Lechner wrote: > This changes how the SPI message for the triggered buffer is setup in > the TI ADS7950 A/DC driver. By using the SPI_CS_WORD flag, we can read > multiple samples in a single SPI transfer. If the SPI controller > supports DMA transfers, we

Re: [PATCH v4 4/5] iio: fxas21002c: add ODR/Scale support

2018-09-16 Thread Jonathan Cameron
On Fri, 14 Sep 2018 23:00:58 +0530 Himanshu Jha wrote: > On Fri, Sep 14, 2018 at 04:26:44PM +0100, Afonso Bordado wrote: > > Hi, > > > > Thanks for your help with this. > > > > > And I suspect it may be originating from your code snippet: > > > > > > #define FXAS21002C_SCALE(scale) (IIO_DEGR

Re: [PATCH v4 1/5] iio: gyro: add support for fxas21002c

2018-09-16 Thread Jonathan Cameron
On Tue, 11 Sep 2018 16:00:07 +0100 Afonso Bordado wrote: > FXAS21002C is a 3 axis gyroscope with integrated temperature sensor > > Signed-off-by: Afonso Bordado Hi Afonso, A few little things in here. I would have cleaned them up when applying if you didn't already have that issue with divisio

Re: [PATCH v6 0/2] tpm: add support for nonblocking operation

2018-09-16 Thread Jarkko Sakkinen
On Mon, Sep 10, 2018 at 10:18:22AM -0700, Tadeusz Struk wrote: > The TCG SAPI specification [1] defines a set of functions, which allow > applications to use the TPM device in either blocking or non-blocking fashion. > Each command defined by the specification has a corresponding > Tss2_Sys__Prepar

Re: futex_cmpxchg_enabled breakage

2018-09-16 Thread Florian Weimer
* Rich Felker: > I just spent a number of hours helping someone track down a bug that > looks like it's some kind of futex_cmpxchg_enabled detection error on > powerpc64 (still not sure of the root cause; set_robust_list producing > -ENOSYS), and a while back I hit the same problem on sh2 due to l

Re: [PATCH v4 3/5] dt-bindings: fxas21002c: Document the fxas21002c I2C bindings

2018-09-16 Thread Jonathan Cameron
On Tue, 11 Sep 2018 16:00:09 +0100 Afonso Bordado wrote: > Add documentation for the fxas21002c I2C bindings. > > Signed-off-by: Afonso Bordado > --- > .../bindings/iio/gyroscope/fsl,fxas21002c.txt | 33 +++ > 1 file changed, 33 insertions(+) > create mode 100644 > Documentat

Re: [PATCH v4 3/5] dt-bindings: fxas21002c: Document the fxas21002c I2C bindings

2018-09-16 Thread Jonathan Cameron
On Tue, 11 Sep 2018 16:00:09 +0100 Afonso Bordado wrote: > Add documentation for the fxas21002c I2C bindings. > > Signed-off-by: Afonso Bordado Device tree bindings should go to the devicetree maintainers and the devicetree binding list. Make sure v5 goes that way. This one is just about compl

Re: [PATCH v3 1/3] dt-bindings: iio: vadc: Fix documentation of 'reg'

2018-09-16 Thread Jonathan Cameron
On Mon, 10 Sep 2018 09:02:59 -0700 Matthias Kaehlcke wrote: > The documentation of Qualcomm's SPMI PMIC voltage ADC claims that the > 'reg' property consists of two values, the SPMI address and the length > of the controller's registers. However the SPMI bus to which it is added > specifies "#siz

Re: futex_cmpxchg_enabled breakage

2018-09-16 Thread Rich Felker
On Sun, Sep 16, 2018 at 02:16:25PM +0200, Florian Weimer wrote: > * Rich Felker: > > > I just spent a number of hours helping someone track down a bug that > > looks like it's some kind of futex_cmpxchg_enabled detection error on > > powerpc64 (still not sure of the root cause; set_robust_list pro

[PATCH] misc: sram: remove redundant null pointer check before of_node_put

2018-09-16 Thread zhong jiang
of_node_put has taken the null pinter check into account. So it is safe to remove the duplicated check before of_node_put. Signed-off-by: zhong jiang --- drivers/misc/sram.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index

RE: [PATCH V6 0/4] clk: new APIs to handle all available clocks

2018-09-16 Thread A.s. Dong
Ping again > -Original Message- > From: A.s. Dong > Sent: Thursday, September 6, 2018 11:23 AM > To: linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > sb...@kernel.org; mturque...@baylibre.com; shawn...@kernel.org; > thor.tha...@linux.int

Re: [PATCH v5] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-16 Thread Song Qiang
On Sun, Sep 16, 2018 at 12:01:49PM +0100, Jonathan Cameron wrote: > On Sat, 15 Sep 2018 17:57:52 +0800 > Song Qiang wrote: > > > This driver was originally written by ST in 2016 as a misc input device > > driver, and hasn't been maintained for a long time. I grabbed some code > > from it's API an

Re: futex_cmpxchg_enabled breakage

2018-09-16 Thread Florian Weimer
* Rich Felker: >> I believe the expected userspace interface is that you probe support >> with set_robust_list first, and then start using the relevant futex >> interfaces only if that call succeeded. > > In order for it to work, set_robust_list needs to succeed for all > threads, present and futu

[no subject]

2018-09-16 Thread iluminati
-- join the Illuminati secret brotherhood and get $3,000,000.00

[PATCH] hwtracing: coresight: remove redundant null pointer check before of_node_put and put_device

2018-09-16 Thread zhong jiang
of_node_put and put_device has taken the null pointer check into account. So it is safe to remove the duplicated check. Signed-off-by: zhong jiang --- drivers/hwtracing/coresight/of_coresight.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/hwtracing/coresig

Re: [RFC PATCH v2 3/3] nvmem: zynqmp: Added zynqmp nvmem firmware driver

2018-09-16 Thread Srinivas Kandagatla
Few minor Nits... I remember asking about this in the last review! On 04/09/18 10:52, Nava kishore Manne wrote: This patch adds zynqmp nvmem firmware driver to access the SoC revision information from the hardware register. Signed-off-by: Nava kishore Manne --- diff --git a/drivers/nvmem/zynq

Re: [RFC PATCH v2 2/3] dt-bindings: fpga: Add bindings for ZynqMP nvmem driver

2018-09-16 Thread Srinivas Kandagatla
Hi Rob, Do you have any comments on the bindings side of it. I would like to queue this for next release.. On 04/09/18 10:52, Nava kishore Manne wrote: Add documentation to describe Xilinx ZynqMP nvmem driver bindings. Signed-off-by: Nava kishore Manne --- Changes for v2: -M

Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

2018-09-16 Thread Feng Tang
On Sat, Sep 15, 2018 at 07:28:03PM +0200, Thomas Gleixner wrote: > On Sun, 16 Sep 2018, Feng Tang wrote: > > I have tried to change some header files incluing fixmap.h/apicdef.h/ > > vsyscall.h, and most of the .c files compile fine now, but I can not > > use the "__end_of_permanent_fixed_addresses

[PATCH] interconnect: Fix a GCC compiler warning

2018-09-16 Thread zhong jiang
Fix the following compile warning: drivers/interconnect/core.c:26:23: warning: ‘icc_debugfs_dir’ defined but not used [-Wunused-variable] static struct dentry *icc_debugfs_dir; Signed-off-by: zhong jiang --- drivers/interconnect/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

2018-09-16 Thread Thomas Gleixner
On Sun, 16 Sep 2018, Feng Tang wrote: > diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c > index e848a4811785..a927f5f39bee 100644 > --- a/arch/x86/mm/pgtable.c > +++ b/arch/x86/mm/pgtable.c > @@ -637,6 +637,16 @@ void __native_set_fixmap(enum fixed_addresses idx, pte_t > pte) > { >

Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

2018-09-16 Thread Feng Tang
Hi Thomas, On Sun, Sep 16, 2018 at 04:43:55PM +0200, Thomas Gleixner wrote: > On Sun, 16 Sep 2018, Feng Tang wrote: > > diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c > > index e848a4811785..a927f5f39bee 100644 > > --- a/arch/x86/mm/pgtable.c > > +++ b/arch/x86/mm/pgtable.c > > @@ -637

Re: [PATCH v6 0/2] tpm: add support for nonblocking operation

2018-09-16 Thread Tadeusz Struk
On 9/16/18 5:03 AM, Jarkko Sakkinen wrote: > I tried to test this but I get 404 from > https://github.com/tstruk/tpm2-tss/tree/async This has been already merged to tss upstream https://github.com/tpm2-software/tpm2-tss To enable it you need to configure tss with --enable-tcti-device-async=yes T

Re: [PATCH] iio: adc: max9611: Avoid implicit enum conversion warning

2018-09-16 Thread Nathan Chancellor
On Sun, Sep 16, 2018 at 10:53:51AM +0100, Jonathan Cameron wrote: > On Fri, 14 Sep 2018 22:25:11 -0700 > Nathan Chancellor wrote: > > > Clang warns when an enumerated type is implicitly converted to another. > > > > drivers/iio/adc/max9611.c:292:16: warning: implicit conversion from > > enumerat

[PATCH] perf Documentation: Fix out-of-tree asciidoctor man page generation

2018-09-16 Thread Ben Hutchings
The dependency for the man page rule using asciidoctor incorrectly specifies a source file in $(OUTPUT). When building out-of-tree, the source file is not found, resulting in a fall-back to the following rule which uses xmlto. Fixes: ffef80ecf89f ("perf Documentation: Support for asciidoctor") Si

general protection fault in kernfs_add_one

2018-09-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5e335542de83 Merge branch 'for-linus' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13a1f2ae40 kernel config: https://syzkaller.appspot.com/x/.config?x=9917ff4b798e1a1e da

Re: KSM not working in 4.9 Kernel

2018-09-16 Thread Mike Rapoport
On Fri, Sep 14, 2018 at 07:58:01PM +0530, Pintu Kumar wrote: > Hi All, > > Board: Hikey620 ARM64 > Kernel: 4.9.20 > > I am trying to verify KSM (Kernel Same Page Merging) functionality on > 4.9 Kernel using "mmap" and madvise user space test utility. > But to my observation, it seems KSM is not w

ATENÇÃO

2018-09-16 Thread Administrador
ATENÇÃO; Sua caixa de correio excedeu o limite de armazenamento, que é de 5 GB como definido pelo administrador, que está atualmente em execução no 10.9GB, você pode não ser capaz de enviar ou receber novas mensagens até que você re-validar a sua caixa de correio. Para revalidar sua caixa de co

Re: [PATCH -next] iio: potentiometer: mcp4018: merge calls to of_match_device and of_device_get_match_data

2018-09-16 Thread Peter Rosin
On September 16, 2018 11:36:57 AM GMT+02:00, Jonathan Cameron wrote: >On Sat, 15 Sep 2018 13:35:06 +0200 >Peter Rosin wrote: > >> On 2018-09-15 12:52, YueHaibing wrote: >> > Drop call to of_match_device, which is subsumed by the subsequent >> > call to of_device_get_match_data. The code becomes

Re: [PATCH v3 1/3] exec: separate thread_count for files_struct

2018-09-16 Thread Eric W. Biederman
Oleg Nesterov writes: > On 09/14, Jeff Layton wrote: >> >> Currently, we have a single refcount variable inside the files_struct. >> When we go to unshare the files_struct, we check this counter and if >> it's elevated, then we allocate a new files_struct instead of just >> repurposing the old on

Re: [PATCH v2 3/4] iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage

2018-09-16 Thread David Lechner
On 09/16/2018 06:41 AM, Jonathan Cameron wrote: On Wed, 12 Sep 2018 19:39:19 -0500 David Lechner wrote: This changes how the SPI message for the triggered buffer is setup in the TI ADS7950 A/DC driver. By using the SPI_CS_WORD flag, we can read multiple samples in a single SPI transfer. If the

Re: [PATCH v3 3/3] exec: do unshare_files after de_thread

2018-09-16 Thread Eric W. Biederman
Oleg Nesterov writes: > On 09/14, Jeff Layton wrote: >> >> POSIX mandates that open fds and their associated file locks should be >> preserved across an execve. This works, unless the process is >> multithreaded at the time that execve is called. >> >> In that case, we'll end up unsharing the fil

Re: [PATCH v3 3/3] exec: do unshare_files after de_thread

2018-09-16 Thread Eric W. Biederman
Jeff Layton writes: > POSIX mandates that open fds and their associated file locks should be > preserved across an execve. This works, unless the process is > multithreaded at the time that execve is called. > > In that case, we'll end up unsharing the files_struct but the locks will > still have

Re: KSM not working in 4.9 Kernel

2018-09-16 Thread Pintu Kumar
On Sun, Sep 16, 2018 at 9:02 PM Mike Rapoport wrote: > > On Fri, Sep 14, 2018 at 07:58:01PM +0530, Pintu Kumar wrote: > > Hi All, > > > > Board: Hikey620 ARM64 > > Kernel: 4.9.20 > > > > I am trying to verify KSM (Kernel Same Page Merging) functionality on > > 4.9 Kernel using "mmap" and madvise u

[RFC][PATCH 0/3] exec: Moving unshare_files_struct

2018-09-16 Thread Eric W. Biederman
Paired with Oleg's patch to reduce the number of callers of get_files_struct it looks like we can simplify the basic idea of moving unshare_files in exec by quite a bit so that in net we have fewer lines of code. The big simplification from Jeff's verion is that we take advantage of calling unsh

Re: [PATCH v2] kconfig: add hardened defconfig helpers

2018-09-16 Thread Salvatore Mesoraca
Jonathan Corbet wrote: > [omissis] > > Some overall thoughts: > > - As Sam asked: who are the users of this feature? Presumably you have > some real people out there in mind for each of these levels, or you would > not have created them? In general this feature will be useful for all those p

[RFC][PATCH 1/3] exec: Move unshare_files down to avoid locks being dropped on exec.

2018-09-16 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- fs/exec.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 1ebf6e5a521d..6f6167ec08eb 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1252,6 +1252,7 @@ void __set_task_comm(struct task_struct *

[RFC][PATCH 3/3] exec: Remove reset_files_struct

2018-09-16 Thread Eric W. Biederman
Now that unshare_files is called after the point of no return there are no more callers of reset_files_struct so remove it. Signed-off-by: "Eric W. Biederman" --- fs/file.c | 12 include/linux/fdtable.h | 1 - 2 files changed, 13 deletions(-) diff --git a/fs/file.c

[RFC][PATCH 2/3] exec: Simplify unshare_files

2018-09-16 Thread Eric W. Biederman
Now that exec calls unshare_files after the point of no return there is no reason to return displaced. Signed-off-by: "Eric W. Biederman" --- fs/coredump.c | 5 + fs/exec.c | 5 + include/linux/fdtable.h | 2 +- kernel/fork.c | 12 ++-- 4 fi

[PATCH 0/4] signal: Cleanups

2018-09-16 Thread Eric W. Biederman
What follows are some small cleanups to signal handling functions that arose from my previous work on sorting out signals during fork. There are two cases where I did not previously mark functions that sent signals to a group of processes. It was safe because they sent SIGKILL but it is still a

[PATCH 1/4] tty_io: Use group_send_sig_info in __do_SACK to note it is a session being killed

2018-09-16 Thread Eric W. Biederman
Replace send_sig and force_sig in __do_SAK with group_send_sig_info the general helper for sending a signal to a process group. This is wordier but it allows specifying PIDTYPE_SID so that the signal code knows the signal went to a session. Both force_sig() and send_sig(..., 1) specify SEND_SIG

[PATCH 2/4] signal: Use group_send_sig_info to kill all processes in a pid namespace

2018-09-16 Thread Eric W. Biederman
Replace send_sig_info in zap_pid_ns_processes with group_send_sig_info. This makes more sense as the entire process group is being killed. More importantly this allows the kill of those processes with PIDTYPE_MAX to indicate all of the process in the pid namespace are being signaled. This is n

[PATCH 3/4] signal: Remove specific_send_sig_info

2018-09-16 Thread Eric W. Biederman
This function is static and it only has two callers. As specific_send_sig_info is only called twice remembering what specific_send_sig_info does when reading the code is difficutl and it makes it hard to see which sending sending functions are equivalent to which others. So remove specific_send

[PATCH 4/4] signal: Pair exports with their functions

2018-09-16 Thread Eric W. Biederman
For readability and consistency with the other exports in kernel/signal.c pair the exports of signal sending functions with their functions, instead of having the exports in one big clump. Signed-off-by: "Eric W. Biederman" --- kernel/signal.c | 15 +++ 1 file changed, 7 insertions

Re: [PATCH 16/18] LSM: Allow arbitrary LSM ordering

2018-09-16 Thread Casey Schaufler
On 9/15/2018 5:30 PM, Kees Cook wrote: > To prepare for having a third type of LSM ("shared blob"), this implements > dynamic handling of LSM ordering. The visible change here is that the > "security=" boot commandline is now a comma-separated ordered list of > all LSMs, not just the single "exclus

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-16 Thread Marc Zyngier
On Sun, 16 Sep 2018 09:50:02 +0100, Guo Ren wrote: > > This patch add C-SKY two interrupt conrollers. > > - irq-csky-apb-intc is a simple SOC interrupt controller which is >used in a lot of C-SKY SOC products. > > - irq-csky-mpintc is C-SKY smp system interrupt controller and it >coul

Re: Inclusion of commit e54192b48da7 into stable tree?

2018-09-16 Thread Rob Herring
On Sat, Sep 15, 2018 at 8:35 AM Alexander Kapshuk wrote: > > Is this commit queued up for inclusion into the stable tree? > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/of/base.c?h=next-20180913&id=e54192b48da75f025ae4b277925eaf6aca1d13bd It will be. It only

Re: [PATCH] MAINTAINERS: Add me as a keys/trusted maintainer

2018-09-16 Thread Jarkko Sakkinen
On Thu, Sep 13, 2018 at 05:45:54PM +0100, David Howells wrote: > Jarkko Sakkinen wrote: > > > David, what do you think? > > Which David? > > I think you need to ask James and Mimi since they're the current maintainers. > > David Right, of course, sorry! James, Mimi? /Jarkko

Linux 4.19-rc4 released, an apology, and a maintainership note

2018-09-16 Thread Linus Torvalds
[ So this email got a lot longer than I initially thought it would get, but let's start out with the "regular Sunday release" part ] Another week, another rc. Nothing particularly odd stands out on the technical side in the kernel updates for last week - rc4 looks fairly average in size for this

Re: [PATCH v6 0/2] tpm: add support for nonblocking operation

2018-09-16 Thread Jarkko Sakkinen
On Sun, Sep 16, 2018 at 08:11:44AM -0700, Tadeusz Struk wrote: > On 9/16/18 5:03 AM, Jarkko Sakkinen wrote: > > I tried to test this but I get 404 from > > https://github.com/tstruk/tpm2-tss/tree/async > > This has been already merged to tss upstream > https://github.com/tpm2-software/tpm2-tss >

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-16 Thread Marc Zyngier
On Sun, 16 Sep 2018 09:50:03 +0100, Guo Ren wrote: > > Signed-off-by: Guo Ren Please write a commit message. Same thing for the following patch. Thanks, M. -- Jazz is not dead, it just smell funny.

Re: Inclusion of commit e54192b48da7 into stable tree?

2018-09-16 Thread Alexander Kapshuk
On Sun, Sep 16, 2018 at 10:11 PM Rob Herring wrote: > > On Sat, Sep 15, 2018 at 8:35 AM Alexander Kapshuk > wrote: > > > > Is this commit queued up for inclusion into the stable tree? > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/of/base.c?h=next-20180913&

[PATCH 1/4] Staging: wlan-ng: Solved Coding Style issues

2018-09-16 Thread Pablo Pellecchia
Solved parenthesis alignment issues throw by checkpatch.pl Signed-off-by: Pablo Pellecchia --- drivers/staging/wlan-ng/cfg80211.c | 40 ++ 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wla

Re: [PATCH] power_supply: sysfs: ratelimit property read error message

2018-09-16 Thread Sebastian Reichel
Hi, On Wed, Sep 12, 2018 at 07:48:30PM -0500, David Lechner wrote: > This adds ratelimiting to the message that is printed when reading a > power supply property via sysfs returns an error. This will prevent > userspace applications from unintentionally dDOSing the system by > continuosuly reading

Re: [PATCH v2 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-09-16 Thread Sebastian Reichel
Hi, On Fri, Aug 10, 2018 at 03:13:46PM +0200, Fabien Parent wrote: > Dear all, > > This patch series adds support for an optional dedicated port > to the ChromeOS power supply driver and adds a new property that expose > when a power supply is connected. The series was tested on ChromeOS "Fizz" >

Re: [PATCH 0/6] shutdown procedure verification for SAMA5D2

2018-09-16 Thread Sebastian Reichel
Hi, On Thu, Aug 30, 2018 at 02:50:05PM +0300, Claudiu Beznea wrote: > Hi, > > Patch 1 from this series implement a fix for shutdown procedure > for SAMA5D2. > > The rest of the patch are improvements as follows: > patch 2 - use only one function for poweroff > patches 3-6 - cosmetic improvements

Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-16 Thread Sebastian Reichel
Hi, On Wed, Sep 12, 2018 at 03:29:38PM +0800, Baolin Wang wrote: > This patch adds the binding documentation for Spreadtrum SC27XX series PMICs > fuel gauge unit device, which is used to calculate the battery capacity. > > Signed-off-by: Baolin Wang > --- > .../devicetree/bindings/power/supply/

Re: [PATCH v3 1/3] power: supply: max8998-charger: Fix platform data retrieval

2018-09-16 Thread Sebastian Reichel
Hi, On Tue, Jul 17, 2018 at 06:05:07PM +0200, Paweł Chmiel wrote: > From: Tomasz Figa > > Since the max8998 MFD driver supports instantiation by DT, platform data > retrieval is handled in MFD probe and cell drivers should get use > the pdata field of max8998_dev struct to obtain them. > > Fixe

Re: [PATCH v7 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-09-16 Thread Sebastian Reichel
Hi, First of all thanks for the patch and big sorry for the long delay in reviewing this. I did not find enough time to do it properly until now :( On Thu, Jun 14, 2018 at 04:14:15PM +0100, Craig Tatlor wrote: > This patch adds a driver for the BMS (Battery Monitoring System) > block of the PM894

Re: [PATCH v2 3/3] power: supply: cros: add property to detect connected ports

2018-09-16 Thread Sebastian Reichel
Hi, On Fri, Aug 10, 2018 at 03:13:49PM +0200, Fabien Parent wrote: > When a port is connected but acting as a source, its 'online' and > 'status' properties are identical to a port that is not connected. This > makes it tedious for userspace to know for sure whether a port is > connected or not. >

Re: [PATCH] power: supply: bq27xxx: Add support for BQ27411

2018-09-16 Thread Sebastian Reichel
Hi, On Sun, Jul 22, 2018 at 09:33:56PM +0800, Liu Xiang wrote: > According to the datasheet, bq27411 is similar to bq27421. > > Signed-off-by: Liu Xiang > --- Looks good to me. Do you plan to test/review this Andrew, or should I proceed with merging this patch? -- Sebastian > Documentation/d

Re: [PATCH] power: reset: msm: Add support for download-mode control

2018-09-16 Thread Sebastian Reichel
Hi, What's the status of this patch? It looks good to me, should it be merged, did I miss a newer version? -- Sebastian On Fri, Jul 20, 2018 at 10:44:53AM -0700, Stephen Boyd wrote: > Quoting Rajendra Nayak (2018-07-18 23:59:20) > > > > > > On 7/19/2018 11:12 AM, Bjorn Andersson wrote: > > > O

Re: [PATCH 2/2] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-16 Thread Sebastian Reichel
Hi, Looks mostly good. I have a couple of comments in addition to the ones from the binding about using battery_info for the OCV -> capacity mapping. On Wed, Sep 12, 2018 at 03:29:39PM +0800, Baolin Wang wrote: > This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, > which is us

Re: [PATCH v2 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-09-16 Thread Sebastian Reichel
Hi Baolin, On Mon, Sep 03, 2018 at 04:55:46PM +0800, Baolin Wang wrote: > This patch adds the SC2731 PMIC switch charger support. > > Signed-off-by: Baolin Wang > --- The power-supply sysfs files uses uA instead of mA, otherwise the driver and the binding looks fine to me. -- Sebastian > Chan

Re: Cont: power_supply: Introduce power supply charging driver

2018-09-16 Thread Sebastian Reichel
Hi Andy, On Sun, Jul 29, 2018 at 06:30:03PM +0300, Andy Shevchenko wrote: > It has been a while. I didn't get from archives what happened to the > patch series [1]? Is it still actual to apply? > > [1]: https://lwn.net/Articles/608527/ Sorry for my late reply. The discussion died off at some poi

Re: [PATCH 0/4] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2018-09-16 Thread Sebastian Reichel
Hi Matheus, Did I miss a v2 of this patchset, that solves the issues found by Krzysztof? -- Sebastian On Mon, Jul 23, 2018 at 12:08:12AM -0400, Matheus Castello wrote: > This series add IRQ handler for low level SOC alert, define a devicetree > binding attribute to configure the alert level thr

Re: [PATCH v7 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-09-16 Thread Sebastian Reichel
Hi, Sorry for my long delay in reviewing this. I like the binding, but the "qcom," specific properties should become common properties in Documentation/devicetree/bindings/power/supply/battery.txt and referenced via monitored-battery. -- Sebastian On Thu, Jun 14, 2018 at 04:14:16PM +0100, Crai

Re: [PATCH 1/4] Staging: wlan-ng: Solved Coding Style issues

2018-09-16 Thread Greg KH
On Sun, Sep 16, 2018 at 04:39:11PM -0300, Pablo Pellecchia wrote: > Solved parenthesis alignment issues throw by checkpatch.pl > > Signed-off-by: Pablo Pellecchia > --- > drivers/staging/wlan-ng/cfg80211.c | 40 > ++ > 1 file changed, 19 insertions(+), 21 del

[GIT PULL] kselftest fixes update for Linux 4.19-rc5

2018-09-16 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for Linux 4.19-rc5 linux-kselftest-4.19-rc5 This Kselftest fixes update for 4.19-rc5 consists of: -- fixes to build failures -- fixes to add missing config files to increase test coverage -- fixes to cgroup test and a new cgroup test for memo

Re: [PATCH v2 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-09-16 Thread Sebastian Reichel
Hi Lee, On Sun, Sep 16, 2018 at 01:12:54PM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, Aug 10, 2018 at 03:13:46PM +0200, Fabien Parent wrote: > > Dear all, > > > > This patch series adds support for an optional dedicated port > > to the ChromeOS power supply driver and adds a new property

Re: [PATCH 0/6] shutdown procedure verification for SAMA5D2

2018-09-16 Thread Sebastian Reichel
Hi Nicolas, On Sun, Sep 16, 2018 at 12:43:01PM +0200, Sebastian Reichel wrote: > Hi, > > On Thu, Aug 30, 2018 at 02:50:05PM +0300, Claudiu Beznea wrote: > > Hi, > > > > Patch 1 from this series implement a fix for shutdown procedure > > for SAMA5D2. > > > > The rest of the patch are improvement

[PATCH] scripts/spdxcheck.py: improve Python 3 compat

2018-09-16 Thread Thomas Weißschuh
When reading lines from a text-mode fd strings are returned. These can not be decoded again into strings, breaking the logic in parser. Just make sure all files are opened in binary mode on Python 3, so the current logic keeps working. This remains compatible with Python 2 and should have no funct

[PATCH] Revert "ubifs: xattr: Don't operate on deleted inodes"

2018-09-16 Thread Richard Weinberger
This reverts commit 11a6fc3dc743e22fb50f2196ec55bee5140d3c52. UBIFS wants to assert that xattr operations are only issued on files with positive link count. The said patch made this operations return -ENOENT for unlinked files such that the asserts will no longer trigger. This was wrong since xattr

Re: [...] an apology, and a maintainership note

2018-09-16 Thread Adam Borowski
On Sun, Sep 16, 2018 at 12:22:43PM -0700, Linus Torvalds wrote: > This is my reality. I am not an emotionally empathetic kind of person > and that probably doesn't come as a big surprise to anybody. Least of > all me. The fact that I then misread people and don't realize (for > years) how badly

Re: [PATCH 16/18] LSM: Allow arbitrary LSM ordering

2018-09-16 Thread Kees Cook
On Sun, Sep 16, 2018 at 11:49 AM, Casey Schaufler wrote: > On 9/15/2018 5:30 PM, Kees Cook wrote: >> To prepare for having a third type of LSM ("shared blob"), this implements >> dynamic handling of LSM ordering. The visible change here is that the >> "security=" boot commandline is now a comma-se

[PATCH 0/7] slimbus: fix module loading

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Hi Greg, Here are some of the fixes for issues found while testing module loading on DB820c debian setup. First 3 core fixes are to do with generating uevents, calling status callback in probe sequence if the device is up and one fix is able to match device id from dev

  1   2   3   4   5   6   >