[PATCH AUTOSEL 4.18 021/136] 6lowpan: iphc: reset mac_header after decompress to fix panic

2018-09-16 Thread Sasha Levin
From: Michael Scott [ Upstream commit 03bc05e1a4972f73b4eb8907aa373369e825c252 ] After decompression of 6lowpan socket data, an IPv6 header is inserted before the existing socket payload. After this, we reset the network_header value of the skb to account for the difference in payload size from

[PATCH AUTOSEL 4.18 015/136] serial: sh-sci: Stop RX FIFO timer during port shutdown

2018-09-16 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit c5a9262fa8bfed0dddc7466ef10fcd292e2af61b ] The RX FIFO timer may be armed when the port is shut down, hence the timer function may still be called afterwards. Fix this race condition by deleting the timer during port shutdown. Fixes: 039403765e5da3c6

[PATCH AUTOSEL 4.18 010/136] net: hns3: Fix get_vector ops in hclgevf_main module

2018-09-16 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit 03718db97bfb57535f3aa8110f0cbe0c616a67c0 ] The hclgevf_free_vector function expects the caller to pass the vector_id to it, and hclgevf_put_vector pass vector to it now, which will cause vector allocation problem. This patch fixes it by converting vector int

[PATCH AUTOSEL 4.18 002/136] iio: adc: ina2xx: avoid kthread_stop() with stale task_struct

2018-09-16 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 7d6cd21d82bacab2d1786fe5e989e4815b75d9a3 ] When the buffer is enabled for ina2xx driver, a dedicated kthread is invoked to capture mesurement data. When the buffer is disabled, the kthread is stopped. However if the kthread gets register access errors, it i

[PATCH AUTOSEL 4.18 030/136] RDMA/i40w: Hold read semaphore while looking after VMA

2018-09-16 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 5d9a2b0e28759e319a623da33940dbb3ce952b7d ] VMA lookup is supposed to be performed while mmap_sem is held. Fixes: f26c7c83395b ("i40iw: Add 2MB page support") Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.18 004/136] misc: ibmvmc: Use GFP_ATOMIC under spin lock

2018-09-16 Thread Sasha Levin
From: Wei Yongjun [ Upstream commit 97b715b62e5b4c6edb75d023f556fd09a46cb4e1 ] The function alloc_dma_buffer() is called from ibmvmc_add_buffer(), in which a spin lock be held here, so we should use GFP_ATOMIC when a lock is held. Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Drive

[PATCH AUTOSEL 4.18 001/136] crypto: skcipher - Fix -Wstringop-truncation warnings

2018-09-16 Thread Sasha Levin
From: Stafford Horne [ Upstream commit cefd769fd0192c84d638f66da202459ed8ad63ba ] As of GCC 9.0.0 the build is reporting warnings like: crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: crypto/ablkcipher.c:374:2: warning: ‘strncpy’ specified bound 64 equals destination size

[PATCH AUTOSEL 4.18 008/136] net: hns3: Fix for mac pause not disable in pfc mode

2018-09-16 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit 6d0ec65cb5810f9bf08671be008785bb8c84d39f ] When pfc pause mode is enable, the mac pause mode need to be disabled, otherwise the pfc pause packet will not be sent when congestion happens. This patch fixes by disabling the mac pause when pfc pause is enabled.

[PATCH AUTOSEL 4.18 007/136] net: hns3: Fix for mailbox message truncated problem

2018-09-16 Thread Sasha Levin
From: Fuyun Liang [ Upstream commit ead5bd4d35c0a14d5ce1474177718c678dff5205 ] The payload of mailbox message is 16 byte and the value of HCLGE_MBX_MAX_ARQ_MSG_SIZE is 8. A message truncated problem will happen when mailbox message is converted to ARQ message. This patch replaces HCLGE_MBX_MAX_A

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

2018-09-16 Thread Luke Kenneth Casson Leighton
hi linus, just saw the note on slashdot. i just wanted to say how amazed, relieved and delighted i was to see what you wrote. that you recognised that you needed to reflect, *sought feedback*, and, most importantly, were willing and able to discuss that and ask publicly. as the longest-serving c

Re: [BUG] mfd: ezx-pcap: Possible sleep-in-atomic-context bugs in pcap_adc_irq()

2018-09-16 Thread Jia-Ju Bai
On 2018/9/17 9:03, Lee Jones wrote: On Sat, 15 Sep 2018, Jia-Ju Bai wrote: The driver may sleep in an interrupt handler. The function call paths (from bottom to top) in Linux-4.17 are: [FUNC] mutex_lock_nested drivers/mfd/ezx-pcap.c, 272: mutex_lock_nested in pcap_adc_irq (interrupt ha

[PATCH] power: supply: bq25890_charger: fix semicolon.cocci warnings

2018-09-16 Thread kbuild test robot
From: kbuild test robot drivers/power/supply/bq25890_charger.c:614:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:621:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:630:3-4: Unneeded semicolon drivers/power/supply/bq25890_charger.c:638:2-3: Unneeded semicolon drive

[PATCH v3 0/3] Add Mediatek SPI slave driver

2018-09-16 Thread Leilk Liu
>From 82bced99683343899dea4634452940b15d6374eb Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Mon, 17 Sep 2018 10:07:45 +0800 Subject: [PATCH v3 0/3] Add Mediatek SPI slave driver v3: 1. Fix Rob Herring review comment about bindings. 2. remove unused variables in driver. v2: 1. Fix Sean Wang rev

[PATCH v3 3/3] arm64: dts: Add spi slave dts

2018-09-16 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7..ee627

[PATCH v3 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-09-16 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 553 3 files changed, 562 insertions(+) create mode 100644 driver

[PATCH v3 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-16 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

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

2018-09-16 Thread Guo Ren
On Sun, Sep 16, 2018 at 08:27:01PM +0100, Marc Zyngier wrote: > 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. Ok. Best Regards Guo Ren

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

2018-09-16 Thread Guo Ren
On Sun, Sep 16, 2018 at 08:07:55PM +0100, Marc Zyngier wrote: > On Sun, 16 Sep 2018 09:50:02 +0100, > Guo Ren wrote: > > +static void csky_mpintc_handler(struct pt_regs *regs) > > +{ > > + void __iomem *reg_base = this_cpu_read(intcl_reg); > > + > > + do { > > + handle_domain_irq(NUL

Re: [PATCH] trace nvme submit queue status

2018-09-16 Thread kbuild test robot
/commits/yupeng/trace-nvme-submit-queue-status/20180916-095618 config: x86_64-rhel (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): &g

Re: [PATCH] PM / suspend: Count extra iterations of s2idle loop as sleep time

2018-09-16 Thread kbuild test robot
/commits/Rafael-J-Wysocki/PM-suspend-Count-extra-iterations-of-s2idle-loop-as-sleep-time/20180916-163810 config: powerpc-ppc6xx_defconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH v3 02/13] mfd: wcd9335: add support to wcd9335 core

2018-09-16 Thread Lee Jones
On Wed, 12 Sep 2018, Srinivas Kandagatla wrote: > > > > > > > There are two parts for device to be ready to talk at bus level: > > > 1> power up and reset, > > > 2> enumerate and assign a logical address by the slimbus controller. > > > > > > First part as you said is already done in probe. > >

Re: [BUG] mfd: ezx-pcap: Possible sleep-in-atomic-context bugs in pcap_adc_irq()

2018-09-16 Thread Lee Jones
On Sat, 15 Sep 2018, Jia-Ju Bai wrote: > The driver may sleep in an interrupt handler. > The function call paths (from bottom to top) in Linux-4.17 are: > > [FUNC] mutex_lock_nested > drivers/mfd/ezx-pcap.c, 272: > mutex_lock_nested in pcap_adc_irq (interrupt handler) > > [FUNC] mutex_lock_n

[PATCH v4 07/14] ASoC: wcd9335: add playback dapm widgets

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds required dapm widgets for playback. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 1796 1 file changed, 1796 insertions(+) diff --git a/sound/soc/codecs/wcd933

[PATCH v4 03/14] mfd: wcd9335: add wcd irq support

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla WCD9335 supports two lines of irqs INTR1 and INTR2. Multiple interrupts are muxed via these lines. INTR1 consists of all possible interrupt sources like: Ear OCP, HPH OCP, MBHC, MAD, VBAT, and SVA. INTR2 is a subset of first interrupt sources like MAD, VBAT, and SVA Sig

[PATCH v4 05/14] ASoC: wcd9335: add CLASS-H Controller support

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla CLASS-H controller/Amplifier is common accorss Qualcomm WCD codec series. This patchset adds basic CLASS-H controller apis for WCD codecs after wcd9335 to use. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/Makefile | 2 +- sou

[PATCH v4 08/14] ASoC: wcd9335: add capture dapm widgets

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds required dapm widgets for capture path. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 1449 +++- 1 file changed, 1448 insertions(+), 1 deletion(-) diff --git a/soun

[PATCH v4 09/14] ASoC: wcd9335: add audio routings

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds audio routing for both playback and capture. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 189 + 1 file changed, 189 insertions(+) diff --git a/sound/soc/codec

[PATCH v4 11/14] ASoC: wcd9335: add mbhc support

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 268 - 1 file changed, 266 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index efbb698..6c95cff 100644

[PATCH v4 10/14] ASoC: dt-bindings: Add WCD9335 MBHC specific properties

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch add new bindings required to support MBHC (Multi Button Headset Control) block in the codec. This block is used for jack insert/removal detection, headset type detection and 8 button press/release events. All these properties are very much specific to board.

[PATCH v4 12/14] ASoC: apq8096: add slim support

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 72 +++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 1543e85..66a28c2 100644 --- a/

[PATCH v4 13/14] ASoC: apq8096: add headset JACK support

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 53 1 file changed, 53 insertions(+) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 66a28c2..daad43f 100644 --- a/sound/soc/qcom/

[PATCH v4 14/14] ASoC: qcom: common: move be_hw_fixup to common

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla be_hw_fixup for qdsp is common across mutiple qcom machine drivers, so move it to common file and remove the redundant code. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 15 --- sound/soc/qcom/common.c | 17 + sound/so

[PATCH v4 02/14] mfd: wcd9335: add support to wcd9335 core

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, It has mulitple blocks like Soundwire controller, codec, Codec processing engine, ClassH controller, interrupt mux. It supports both I2S/I2C and SLIMbus audio interfaces. This patch adds support to SLIMbus aud

[PATCH v4 00/14] ASoC: Add support to WCD9335 Audio Codec

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Thankyou for reviewing v3 patchset, here is v4 addressing comments from v3. Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC. It is integrated in multiple Qualcomm SoCs like: MSM8996, MSM8976, and MSM8956 chipsets. WCD9335 had multiple functional blocks, lik

[PATCH v4 04/14] ASoC: wcd9335: add support to wcd9335 codec

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, It supports both I2S/I2C and SLIMbus audio interfaces. On slimbus interface it supports two data lanes; 16 Tx ports and 8 Rx ports. It has Seven DACs and nine dedicated interpolators, Seven (six audio ADCs, and

[PATCH v4 06/14] ASoC: wcd9335: add basic controls

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds basic controls found in wcd9335 codec. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 358 + 1 file changed, 358 insertions(+) diff --git a/sound/soc/codecs/wcd9

[PATCH v4 01/14] ASoC: dt-bindings: update wcd9335 bindings.

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch updates wcd9335 bindings with recommended properties. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/sound/qcom,wcd9335.txt | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Do

[PATCH v1 3/3] arm: mm: support get_user_pages_fast

2018-09-16 Thread Minchan Kim
Recently, there was a report get_user_pages_fast helps app launching speed due to reducing uninterruptible sleep time because we don't need to contend for mmap_sem, I believe. With get_user_pages_fast, that uniterruptible sleep time is reduced about 5~10% by testing. Cc: Russell King Cc: Catalin

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

2018-09-16 Thread Tetsuo Handa
On 2018/09/17 8:00, Kees Cook wrote: > On Sun, Sep 16, 2018 at 11:49 AM, Casey Schaufler > wrote: >> One solution is to leave security= as is, not affecting "minor" >> modules and only allowing specification of one major module, and adding > > I would much prefer this, yes. > > A question remain

[PATCH v1 1/3] arm: mm: reordering memory type table

2018-09-16 Thread Minchan Kim
To use bit 5 in page table as L_PTE_SPECIAL, we need a room for that. It seems we don't need 4 bits for the memory type with ARMv6+. If it's true, let's reorder bits to make bit 5 free. We will use the bit for L_PTE_SPECIAL in next patch. A note from Catalin " > Anyway, on ARMv7 or ARMv6+LPAE, th

[PATCH v1 2/3] arm: mm: introduce L_PTE_SPECIAL

2018-09-16 Thread Minchan Kim
This patch introduces L_PTE_SPECIAL and pte functions for supporting get_user_pages_fast. Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Steve Capper Signed-off-by: Minchan Kim --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/pgtable-2level.h | 3 +-- arch/a

[PATCH v1 0/3] arm: support get_user_pages_fast

2018-09-16 Thread Minchan Kim
Recently, I got a report get_user_pages_fast helps app's launching time due to reducing uninterruptible sleep time because it could reduce mmap_sem lock contentions when app is launching. To support gupf in ARM-non-LPAE, first patch reorders memory type table to use 5th bit of the page table. Sec

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

2018-09-16 Thread Rene Herman

[LKP] [x86/mm/cpa] c77d419f92: WARNING:at_arch/x86/mm/pageattr.c:#__change_page_attr_set_clr

2018-09-16 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-5): commit: c77d419f9248f8c40bbf773d59aa5b6cbc0d60f0 ("[patch V2 07/10] x86/mm/cpa: Add sanity check for existing mappings") url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-mm-cpa-Improve-large-page-preservation-handling/2018

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

2018-09-16 Thread Andy Isaacson
On Sun, Sep 16, 2018 at 12:22:43PM -0700, Linus Torvalds wrote: This is where the "look yourself in the mirror" moment comes in. So here we are, me finally on the one hand realizing that it wasn't actually funny or a good sign that I was hoping to just skip the yearly kernel summit entirely, and

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

2018-09-16 Thread Rene Herman
Hi Linus. I was "around linux-kernel" some 10 years ago and still to this date sometimes check e.g. lkml.org where I happened upon this; felt it hard to resist commenting on one specific bit... Whereas you concentrate on net-positive effect on code quality of an at times "crass" communication sty

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

2018-09-16 Thread Moritz Obermeier
> When you look yourself in the mirror, I want you to see that guy who codes > in a bathrobe instead of a sweet-talking lying politician. This is why we need more empathy. There is no need for you to decide what Linus sees once he looks into the mirror. You are projecting your own thoughts and

[PATCH 7/7] slimbus: ngd: register ngd driver only once.

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Move ngd platform driver out of loop so that it registers only once. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-c

[PATCH 5/7] silmbus: ngd: register controller after power up.

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Register slimbus controller only after finishing powerup sequnce so that we do not endup in situation where core starts sending transactions before the controller is ready. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 20 +++

[PATCH 6/7] slimbus: ngd: return proper error code instead of zero

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla It looks like there is a typo in probe return. Fix it. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 02

[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

[PATCH 2/7] slimbus: core: update device status in probe

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla device status update can be racy with probe in some cases, so make sure it take lock during the probe. Also after probe the device is expected to be ready for communications, so make sure that a logical address can be assigned to it after probe. If it fails to do so then

[PATCH 1/7] slimbus: core: add support to uevent

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to uevent to help automatic module loading. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 95b00d2..31f2910

[PATCH 4/7] slimbus: ngd: validate logical address assigned by remote

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla Validate logical address assigned by remote, in failure cases this value is all zeors. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom

[PATCH 3/7] slimbus: core: match device tree based devices correctly

2018-09-16 Thread srinivas . kandagatla
From: Srinivas Kandagatla device_id for device tree based devices come from dt compatible string, such drivers need not provide non dt style device id table. Match those device using compatible strings. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/core.c | 6 +- 1 file changed,

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

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

[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

[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

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

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

[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 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

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 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: [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 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 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] 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

[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: 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&

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.

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] 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

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 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: [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

[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

[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 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 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

[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

[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 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 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

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

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: [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 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

<    1   2   3   4   5   6   >