[PATCH v7 2/7] PCI/ATS: Cache PRI capability check result

2019-08-28 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, PRI capability checks are repeated across all PRI API's. Instead, cache the capability check result in pci_pri_init() and use it in other PRI API's. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/pci/ats.c | 56

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 11:45 AM Nathan Chancellor wrote: > > On Wed, Aug 28, 2019 at 11:01:14AM -0700, Nick Desaulniers wrote: > > On Wed, Aug 28, 2019 at 10:53 AM Nathan Chancellor > > wrote: > > > > > > Yes, I don't think this would be unreasonable. Are you referring to the > > >

Re: Purgatory compile flag changes apparently causing Kexec relocation overflows

2019-08-28 Thread Steve Wahl
On Wed, Aug 28, 2019 at 02:51:21PM -0700, Nick Desaulniers wrote: > On Wed, Aug 28, 2019 at 12:42 PM Steve Wahl wrote: > > > > Please CC me on responses to this. > > > > I normally would do more diligence on this, but the timing is such > > that I think it's better to get this out sooner. > > > >

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Nick Desaulniers
On Tue, Aug 27, 2019 at 12:22 PM Josh Poimboeuf wrote: > > On Tue, Aug 27, 2019 at 09:00:52PM +0200, Arnd Bergmann wrote: > > On Tue, Aug 27, 2019 at 5:00 PM Ilie Halip wrote: > > > > > > > > $ clang-9 -c crc32.i -O2 ; objtool check crc32.o > > > > > crc32.o: warning: objtool: fn1 uses BP

Re: Purgatory compile flag changes apparently causing Kexec relocation overflows

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 2:51 PM Nick Desaulniers wrote: > > On Wed, Aug 28, 2019 at 12:42 PM Steve Wahl wrote: > > > > Please CC me on responses to this. > > > > I normally would do more diligence on this, but the timing is such > > that I think it's better to get this out sooner. > > > > With

[PATCH 05/10] block/rq_qos: implement rq_qos_ops->queue_depth_changed()

2019-08-28 Thread Tejun Heo
wbt already gets queue depth changed notification through wbt_set_queue_depth(). Generalize it into rq_qos_ops->queue_depth_changed() so that other rq_qos policies can easily hook into the events too. Signed-off-by: Tejun Heo --- block/blk-rq-qos.c | 9 + block/blk-rq-qos.h | 8

linux-next: Fixes tag needs some work in the tip tree

2019-08-28 Thread Stephen Rothwell
Hi all, In commit bae3a8d3308e ("x86/apic: Do not initialize LDR and DFR for bigsmp") Fixes tag Fixes: db7b9e9f26b8 ("[PATCH] Clustered APIC setup for >8 CPU systems") has these problem(s): - Target SHA1 does not exist I could not quickly find an obvious match. -- Cheers, Stephen

[PATCH 04/10] block/rq_qos: add rq_qos_merge()

2019-08-28 Thread Tejun Heo
Add a merge hook for rq_qos. This will be used by io.weight. Signed-off-by: Tejun Heo --- block/blk-core.c | 4 block/blk-rq-qos.c | 9 + block/blk-rq-qos.h | 9 + 3 files changed, 22 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index

[PATCH 02/10] blkcg: make ->cpd_init_fn() optional

2019-08-28 Thread Tejun Heo
For policies which can do enough initialization from ->cpd_alloc_fn(), make ->cpd_init_fn() optional. Signed-off-by: Tejun Heo --- block/blk-cgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 6a82ca3fb5cf..78ccbdcfe723

[PATCH 01/10] blkcg: pass @q and @blkcg into blkcg_pol_alloc_pd_fn()

2019-08-28 Thread Tejun Heo
Instead of @node, pass in @q and @blkcg so that the alloc function has more context. This doesn't cause any behavior change and will be used by io.weight implementation. Signed-off-by: Tejun Heo --- block/bfq-cgroup.c | 5 +++-- block/blk-cgroup.c | 6 +++---

[PATCH 10/10] blkcg: add tools/cgroup/iocost_coef_gen.py

2019-08-28 Thread Tejun Heo
Add a script which can be used to generate device-specific iocost linear model coefficients. Signed-off-by: Tejun Heo --- Documentation/admin-guide/cgroup-v2.rst | 3 + block/blk-iocost.c | 3 + tools/cgroup/iocost_coef_gen.py | 178 3

[PATCH 08/10] blkcg: implement blk-iocost

2019-08-28 Thread Tejun Heo
This patchset implements IO cost model based work-conserving proportional controller. While io.latency provides the capability to comprehensively prioritize and protect IOs depending on the cgroups, its protection is binary - the lowest latency target cgroup which is suffering is protected at the

linux-next: Fixes tags need some work in the mmc-fixes tree

2019-08-28 Thread Stephen Rothwell
Hi all, In commit f93be8a7a366 ("mmc: sdhci-sprd: clear the UHS-I modes read from registers") Fixes tag Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no trailing

[PATCH v8 04/13] nvmet: make nvmet_copy_ns_identifier() non-static

2019-08-28 Thread Logan Gunthorpe
This function will be needed by the upcoming passthru code. Passthru will need an emulated version of identify_desclist which copies the eui64, uuid and nguid from the passed-thru controller into the request SGL. [chaitanya.kulka...@wdc.com: this was factored out of a patch originally authored

[patch V3 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
From: Song Liu pti_clone_pmds() assumes that the supplied address is either: - properly PUD/PMD aligned or - the address is actually mapped which means that independently of the mapping level (PUD/PMD/PTE) the next higher mapping exists. If that's not the case the unaligned address can

[PATCH v8 11/13] block: don't check blk_rq_is_passthrough() in blk_do_io_stat()

2019-08-28 Thread Logan Gunthorpe
Instead of checking blk_rq_is_passthruough() for every call to blk_do_io_stat(), don't set RQF_IO_STAT for passthrough requests. This should be equivalent, and opens the possibility of passthrough requests specifically requesting statistics tracking. Signed-off-by: Logan Gunthorpe ---

Re: [patch V2 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
On Wed, 28 Aug 2019, Thomas Gleixner wrote: > From: Song Liu > > pti_clone_pmds() assumes that the supplied address is either: > > - properly PUD/PMD aligned > or > - the address is actually mapped which means that independent Bah. I'm a moron. Forgot to fix the spell checker issues.

Re: [PATCH net-next] phy: mdio-mux-meson-g12a: use devm_platform_ioremap_resource() to simplify code

2019-08-28 Thread David Miller
From: YueHaibing Date: Tue, 27 Aug 2019 21:49:40 +0800 > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: [PATCH net-next] phy: mdio-hisi-femac: use devm_platform_ioremap_resource() to simplify code

2019-08-28 Thread David Miller
From: YueHaibing Date: Tue, 27 Aug 2019 21:47:22 +0800 > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: Purgatory compile flag changes apparently causing Kexec relocation overflows

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 12:42 PM Steve Wahl wrote: > > Please CC me on responses to this. > > I normally would do more diligence on this, but the timing is such > that I think it's better to get this out sooner. > > With the tip of the tree from https://github.com/torvalds/linux.git (a > few days

Re: [PATCH net-next] phy: mdio-sun4i: use devm_platform_ioremap_resource() to simplify code

2019-08-28 Thread David Miller
From: YueHaibing Date: Tue, 27 Aug 2019 21:50:32 +0800 > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: [PATCH net-next] phy: mdio-moxart: use devm_platform_ioremap_resource() to simplify code

2019-08-28 Thread David Miller
From: YueHaibing Date: Tue, 27 Aug 2019 21:48:04 +0800 > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: [PATCH net-next] phy: mdio-bcm-iproc: use devm_platform_ioremap_resource() to simplify code

2019-08-28 Thread David Miller
From: YueHaibing Date: Tue, 27 Aug 2019 21:46:16 +0800 > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: [PATCH] xfs: Use WARN_ON rather than BUG() for bailout mount-operation

2019-08-28 Thread Darrick J. Wong
On Thu, Aug 29, 2019 at 06:30:43AM +0900, Austin Kim wrote: > Dear Mr. Darrick J. Wong > > Thanks for reviewing patch. BTW, I have a question for you. > > Do I have to update the patch again with 'a space before the brace'? > Or could I just wait for the patch to be imported? > > It would be

Re: [PATCH] wimax/i2400m: remove redundant assignment to variable result

2019-08-28 Thread David Miller
From: Colin King Date: Tue, 27 Aug 2019 12:47:39 +0100 > From: Colin Ian King > > Variable result is being assigned a value that is never read and result > is being re-assigned a little later on. The assignment is redundant > and hence can be removed. > > Addresses-Coverity: ("Ununsed value")

Re: [PATCH] arcnet: capmode: remove redundant assignment to pointer pkt

2019-08-28 Thread David Miller
Please fix the typo spotted by Sergei.

[PATCH 2/2] mmc: core: Run handlers for pending SDIO interrupts on resume

2019-08-28 Thread Matthias Kaehlcke
With commit 83293386bc95 ("mmc: core: Prevent processing SDIO IRQs when the card is suspended") SDIO interrupts are dropped if they occur while the card is suspended. Dropping the interrupts can cause problems after resume with cards that remain powered during suspend and preserve their state.

[PATCH 1/2] mmc: sdio: Move code to get pending SDIO IRQs to a function

2019-08-28 Thread Matthias Kaehlcke
Move the code to get pending SDIO interrupts from process_sdio_pending_irqs() to a dedicated function. Signed-off-by: Matthias Kaehlcke --- drivers/mmc/core/sdio_irq.c | 47 - include/linux/mmc/host.h| 1 + 2 files changed, 32 insertions(+), 16

Re: [PATCH v2 15/15] drivers: thermal: tsens: Add interrupt support

2019-08-28 Thread Stephen Boyd
Quoting Amit Kucheria (2019-08-27 05:14:11) > diff --git a/drivers/thermal/qcom/tsens-common.c > b/drivers/thermal/qcom/tsens-common.c > index 06b44cfd5eab9..c549f8e1488ba 100644 > --- a/drivers/thermal/qcom/tsens-common.c > +++ b/drivers/thermal/qcom/tsens-common.c > @@ -114,6 +146,314 @@ static

Re: [PATCH v9] usbip: Implement SG support to vhci-hcd and stub driver

2019-08-28 Thread shuah
On 8/27/19 9:27 PM, Suwan Kim wrote: There are bugs on vhci with usb 3.0 storage device. In USB, each SG list entry buffer should be divisible by the bulk max packet size. But with native SG support, this problem doesn't matter because the SG buffer is treated as contiguous buffer. But without

[PATCH v6] RISC-V: Implement sparsemem

2019-08-28 Thread Logan Gunthorpe
Implement sparsemem support for Risc-v which helps pave the way for memory hotplug and eventually P2P support. Introduce Kconfig options for virtual and physical address bits which are used to calculate the size of the vmemmap and set the MAX_PHYSMEM_BITS. The vmemmap is located directly before

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread David Abdurachmanov
On Wed, Aug 28, 2019 at 10:36 AM Kees Cook wrote: > > On Fri, Aug 23, 2019 at 05:30:53PM -0700, Paul Walmsley wrote: > > On Thu, 22 Aug 2019, David Abdurachmanov wrote: > > > > > There is one failing kernel selftest: global.user_notification_signal > > > > Is this the only failing test? Or are

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread David Abdurachmanov
On Wed, Aug 28, 2019 at 10:36 AM Kees Cook wrote: > > On Thu, Aug 22, 2019 at 01:55:22PM -0700, David Abdurachmanov wrote: > > This patch was extensively tested on Fedora/RISCV (applied by default on > > top of 5.2-rc7 kernel for <2 months). The patch was also tested with 5.3-rc > > on QEMU and

Re: [RFC PATCH 1/2] RISC-V: Mark existing SBI as legacy SBI.

2019-08-28 Thread Palmer Dabbelt
On Tue, 27 Aug 2019 01:37:00 PDT (-0700), r...@linux.ibm.com wrote: On Tue, Aug 27, 2019 at 01:58:03PM +0530, Anup Patel wrote: On Tue, Aug 27, 2019 at 1:21 PM Mike Rapoport wrote: > > On Mon, Aug 26, 2019 at 04:32:55PM -0700, Atish Patra wrote: > > As per the new SBI specification, current

Re: [PATCH v2] rpmsg: add a description field

2019-08-28 Thread Suman Anna
Hi Arnaud, On 8/27/19 8:58 AM, Arnaud Pouliquen wrote: > Hi Suman, > > On 8/16/19 1:14 AM, Suman Anna wrote: >> From: Ohad Ben-Cohen >> >> Add a new description field to the rpmsg bus infrastructure >> that can be passed onto the rpmsg client drivers for additional >> information. The current

Re: [PATCH v1 2/5] mdev: Make mdev alias unique among all mdevs

2019-08-28 Thread Alex Williamson
On Tue, 27 Aug 2019 14:16:51 -0500 Parav Pandit wrote: > Mdev alias should be unique among all the mdevs, so that when such alias > is used by the mdev users to derive other objects, there is no > collision in a given system. > > Signed-off-by: Parav Pandit > > --- > Changelog: > v0->v1: > -

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Qian Cai
On Wed, 2019-08-28 at 14:17 -0700, Edward Chron wrote: > On Wed, Aug 28, 2019 at 1:18 PM Qian Cai wrote: > > > > On Wed, 2019-08-28 at 12:46 -0700, Edward Chron wrote: > > > But with the caveat that running a eBPF script that it isn't standard > > > Linux > > > operating procedure, at this point

Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-28 Thread Alex Williamson
On Wed, 28 Aug 2019 15:25:44 -0600 Alex Williamson wrote: > On Tue, 27 Aug 2019 14:16:50 -0500 > Parav Pandit wrote: > > module_init(mdev_init) > > diff --git a/drivers/vfio/mdev/mdev_private.h > > b/drivers/vfio/mdev/mdev_private.h > > index 7d922950caaf..cf1c0d9842c6 100644 > > ---

Re: [PATCH] xfs: Use WARN_ON rather than BUG() for bailout mount-operation

2019-08-28 Thread Austin Kim
Dear Mr. Darrick J. Wong Thanks for reviewing patch. BTW, I have a question for you. Do I have to update the patch again with 'a space before the brace'? Or could I just wait for the patch to be imported? It would be thankful if you give me a feedback. BR, Guillermo Austin Kim 2019년 8월 29일

Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-28 Thread Alex Williamson
On Tue, 27 Aug 2019 14:16:50 -0500 Parav Pandit wrote: > Some vendor drivers want an identifier for an mdev device that is > shorter than the UUID, due to length restrictions in the consumers of > that identifier. > > Add a callback that allows a vendor driver to request an alias of a >

Re: [EXT] Re: [Patch v4 1/3] dt-bindings: spi: spi-fsl-qspi: Add ls2080a compatibility string to bindings

2019-08-28 Thread Mark Brown
On Wed, Aug 28, 2019 at 03:01:15PM -0500, Rob Herring wrote: > On Tue, Aug 27, 2019 at 2:56 PM Mark Brown wrote: > > On Tue, Aug 27, 2019 at 10:50:05AM -0500, Rob Herring wrote: > > Well, you have been pushing people to change over to using > > dt-bindings: so I guess you do care :( > Well,

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Edward Chron
On Wed, Aug 28, 2019 at 1:18 PM Qian Cai wrote: > > On Wed, 2019-08-28 at 12:46 -0700, Edward Chron wrote: > > But with the caveat that running a eBPF script that it isn't standard Linux > > operating procedure, at this point in time any way will not be well > > received in the data center. > >

Re: [PATCH] asm-generic: add unlikely to default BUG_ON(x)

2019-08-28 Thread Denis Efremov
Maybe it will be better to move this define out of ifdef, i.e.: #ifdef CONFIG_BUG ... -#define BUG_ON()... ... #else ... -#define BUG_ON()... ... #endif +#define BUG_ON()... I can prepare a patch if you think it worth it. Thanks, Denis On 29.08.2019 00:09, Denis Efremov wrote: > Add unlikely

[PATCH] asm-generic: add unlikely to default BUG_ON(x)

2019-08-28 Thread Denis Efremov
Add unlikely to default BUG_ON(x) in !CONFIG_BUG. It makes the define consistent with BUG_ON(x) in CONFIG_BUG. Signed-off-by: Denis Efremov Cc: Arnd Bergmann Cc: --- include/asm-generic/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/bug.h

Re: [PATCH v2 0/2] Update ethernet compatible string for SiFive FU540

2019-08-28 Thread David Miller
From: Yash Shah Date: Tue, 27 Aug 2019 10:36:02 +0530 > This patch series renames the compatible property to a more appropriate > string. The patchset is based on Linux-5.3-rc6 and tested on SiFive > Unleashed board You should always base changes off of "net" or "net-next" and be explicitly in

Re: [PATCH v2 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-28 Thread Kees Cook
On Wed, Aug 28, 2019 at 03:14:40PM +0100, Will Deacon wrote: > On Wed, Aug 28, 2019 at 09:30:52AM +0200, Peter Zijlstra wrote: > > On Tue, Aug 27, 2019 at 05:31:58PM +0100, Will Deacon wrote: > > > Will Deacon (6): > > > lib/refcount: Define constants for saturation and max refcount values > > >

[patch V2 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
From: Song Liu pti_clone_pmds() assumes that the supplied address is either: - properly PUD/PMD aligned or - the address is actually mapped which means that independent of the mapping level (PUD/PMD/PTE) the next higher mapping exist. If that's not the case the unaligned address can be

Re: [PATCH 1/5] misc: fastrpc: Reference count channel context

2019-08-28 Thread Greg KH
On Fri, Aug 23, 2019 at 11:06:18AM +0100, Srinivas Kandagatla wrote: > From: Bjorn Andersson > > The channel context is referenced from the fastrpc user and might as > user space holds the file descriptor open outlive the fastrpc device, > which is removed when the remote processor is shutting

Re: [PATCH v2 0/3] Cleanup resource_alignment parameter

2019-08-28 Thread Bjorn Helgaas
On Thu, Aug 22, 2019 at 10:10:10AM -0600, Logan Gunthorpe wrote: > As requested, this is a refresh of this series. I rebased it on v5.3-rc5 > without any other changes. > > This is a cleanup of the resource_alignment parameter after finding > an improved way to handle the static buffer for the

[PATCH 1/2] rtc: snvs: set range

2019-08-28 Thread Alexandre Belloni
The SNVS is a 47-bit counter incremented at 32768Hz, it is then a 32-bit second counter. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-snvs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index 4f9a107a0427..50dd4b8492eb 100644 ---

[PATCH 2/2] rtc: snvs: switch to rtc_time64_to_tm/rtc_tm_to_time64

2019-08-28 Thread Alexandre Belloni
Call the 64bit versions of rtc_tm time conversion now that the range is enforced by the core. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-snvs.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index

Re: [PATCH] arm-smmu: check for generic bindings first

2019-08-28 Thread Stefano Stabellini
On Wed, 28 Aug 2019, Robin Murphy wrote: > On 28/08/2019 18:38, Stefano Stabellini wrote: > > From: Stefano Stabellini > > > > Today, the arm-smmu driver checks for mmu-masters on device tree, the > > legacy property, if it is absent it assumes that we are using the new > > bindings. If it is

Re: [PATCH net-next 01/15] MIPS: SGI-IP27: remove ioc3 ethernet init

2019-08-28 Thread Paul Burton
Hi Thomas, On Wed, Aug 28, 2019 at 04:03:00PM +0200, Thomas Bogendoerfer wrote: > Removed not needed disabling of ethernet interrupts in IP27 platform code. > > Signed-off-by: Thomas Bogendoerfer Acked-by: Paul Burton Thanks, Paul > --- > arch/mips/sgi-ip27/ip27-init.c | 13

Re: [PATCH 4/4] binder: Add binder_proc logging to binderfs

2019-08-28 Thread Hridya Valsaraju
On Wed, Aug 28, 2019 at 9:21 AM Todd Kjos wrote: > > On Wed, Aug 28, 2019 at 6:08 AM Christian Brauner > wrote: > > > > On Tue, Aug 27, 2019 at 01:41:52PM -0700, Hridya Valsaraju wrote: > > > Currently /sys/kernel/debug/binder/proc contains > > > the debug data for every binder_proc instance. >

Re: *_pcie_establish_link() usage

2019-08-28 Thread Lorenzo Pieralisi
On Wed, Aug 28, 2019 at 08:00:56AM -0500, Bjorn Helgaas wrote: > On Thu, Aug 01, 2019 at 04:25:29PM -0500, Bjorn Helgaas wrote: > > Hi, > > > > I got the following dmesg log from Fawad [1]: > > > > imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges: > > imx6q-pcie 1ffc000.pcie:

Re: [PATCH v2 1/2 RESEND] usb: core: phy: add support for PHY calibration

2019-08-28 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2019 at 10:55:33AM +0200, Marek Szyprowski wrote: > Hi Greg > > On 2019-08-08 11:41, Marek Szyprowski wrote: > > Some PHYs (for example Exynos5 USB3.0 DRD PHY) require calibration to be > > done after every USB HCD reset. Generic PHY framework has been already > > extended with

Re: [GIT PULL drivers/misc] lkdtm updates for next

2019-08-28 Thread Greg Kroah-Hartman
On Sun, Aug 25, 2019 at 03:23:04PM -0700, Kees Cook wrote: > Hi Greg, > > Please pull these LKDTM updates for next. > > Thanks! > > -Kees > > The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: > > Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) > > are available in the

Re: [PATCH v3 1/5] leds: lm3532: Fix brightness control for i2c mode

2019-08-28 Thread Jacek Anaszewski
Dan, On 8/28/19 5:28 PM, Dan Murphy wrote: > Jacek [...] > Or i2c control is somehow broken and only als control now works? >>> With only setting CONFIG_LEDS_LM3532=m to the next branch I get full >>> brightness with 255. >>> >>> I also see half brightness at 128 with the ramp down working.

[PATCH 1/1] ipmi_si_intf: Fix race in timer shutdown handling

2019-08-28 Thread Jes Sorensen
From: Jes Sorensen smi_mod_timer() enables the timer before setting timer_running. This means the timer can be running when we get to stop_timer_and_thread() without timer_running having been set, resulting in del_timer_sync() not being called and the timer being left to cause havoc during

[PATCH 0/1] Fix race in ipmi timer cleanup

2019-08-28 Thread Jes Sorensen
From: Jes Sorensen I came across this in 4.16, but I believe the bug is still present in current 5.x, even if it is less likely to trigger. Basially stop_timer_and_thread() only calls del_timer_sync() if timer_running == true. However smi_mod_timer enables the timer before setting timer_running

Re: [PATCH 0/3] PCI/ACPI: Rename _HPP to _HPX and move of ACPI-specific code from probe.c

2019-08-28 Thread Bjorn Helgaas
On Tue, Aug 27, 2019 at 11:49:48AM +0200, Krzysztof Wilczynski wrote: > This series of patches moves the ACPI-specific code currently included > as part of the drivers/pci/probe.c. First, the ACPI Hot Plug structs > for Type 0, 1 and 2, and any relevant variable names, structs, function > names,

Re: [patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Song Liu
> On Aug 28, 2019, at 1:05 PM, Thomas Gleixner wrote: > > On Wed, 28 Aug 2019, Song Liu wrote: >>> On Aug 28, 2019, at 8:51 AM, Thomas Gleixner wrote: >>> >>> On Wed, 28 Aug 2019, Dave Hansen wrote: On 8/28/19 7:24 AM, Thomas Gleixner wrote: > From: Song Liu > >

Re: [PATCH v1 net-next] net: stmmac: Add support for MDIO interrupts

2019-08-28 Thread David Miller
From: Voon Weifeng Date: Tue, 27 Aug 2019 09:45:20 +0800 > From: "Chuah, Kim Tatt" > > DW EQoS v5.xx controllers added capability for interrupt generation > when MDIO interface is done (GMII Busy bit is cleared). > This patch adds support for this interrupt on supported HW to avoid > polling

Re: [FYI] lm3532: right registration to work with LED-backlight

2019-08-28 Thread Jacek Anaszewski
On 8/28/19 10:53 AM, Pavel Machek wrote: > Hi! > > Eventually, these will be needed. > > Best regards, > Pavel > > commit 38d956977a7d6cbdc811676f9b4033da7487e045 > Author: Pavel > Date: Wed Aug 7 12:43:52 2019 +0200 > > d4:

Re: [PATCH v2] lkdtm/bugs: fix build error in lkdtm_EXHAUST_STACK

2019-08-28 Thread Kees Cook
On Tue, Aug 27, 2019 at 11:36:19AM -0600, Raul E Rangel wrote: > lkdtm/bugs.c:94:2: error: format '%d' expects argument of type 'int', but > argument 2 has type 'long unsigned int' [-Werror=format=] > pr_info("Calling function with %d frame size to depth %d ...\n", > ^ > THREAD_SIZE is

Re: [PATCH v2] bonding: force enable lacp port after link state recovery for 802.3ad

2019-08-28 Thread David Miller
You've had enough time to respon to my feedback question. I'm tossing this patch.

Re: [GIT PULL] FPGA Manager (late) change for 5.3-rc6

2019-08-28 Thread Greg KH
On Sun, Aug 18, 2019 at 05:47:44PM -0700, Moritz Fischer wrote: > The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: > > Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) > > are available in the Git repository at: > >

Re: [PATCH 0/5] kfree_rcu() additions for -rcu

2019-08-28 Thread Paul E. McKenney
On Tue, Aug 27, 2019 at 03:01:54PM -0400, Joel Fernandes (Google) wrote: > Hi, > > This is a series on top of the patch "rcu/tree: Add basic support for > kfree_rcu() batching". > > Link: http://lore.kernel.org/r/20190814160411.58591-1-j...@joelfernandes.org > > It adds performance tests, some

[PATCHv1 3/3] arm64: dts: meson: odroid-c2: Add missing regulator linked to HDMI supply

2019-08-28 Thread Anand Moon
As per shematics HDMI_P5V0 is supplied by P5V0 so add missing link. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCHv1 2/3] arm64: dts: meson: odroid-c2: Add missing regulator linked to VDDIO_AO3V3 regulator

2019-08-28 Thread Anand Moon
As per shematics TFLASH_VDD, TF_IO, VCC3V3 fixed regulator output which is supplied by VDDIO_AO3V3. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 13 ++--- 1 file changed, 10

[PATCHv1 1/3] arm64: dts: meson: odroid-c2: Add missing regulator linked to P5V0 regulator

2019-08-28 Thread Anand Moon
As per shematics VDDIO_AO18, VDDIO_AO3V3/VDD3V3 DDR3_1V5/DDR_VDDC: fixed regulator output which is supplied by P5V0. Rename vcc3v3 regulator node to vddio_ao3v3 as per shematics. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon ---

[PATCHv1 0/3] Odroid c2 missing regulator linking

2019-08-28 Thread Anand Moon
Below small changes help re-configure or fix missing inter linking of regulator node. Changes based top on my prevoius series. [0] https://patchwork.kernel.org/cover/3091/ TOOD: Add support for DVFS GXBB odroid board in next series. Best Regards -Anand Anand Moon (3): arm64: dts: meson:

Re: [PATCH v2] leds: ti-lmu-common: Fix coccinelle issue in TI LMU

2019-08-28 Thread Jacek Anaszewski
Hi Dan, Thank you for the update. On 8/28/19 5:22 PM, Dan Murphy wrote: > Fix the coccinelle issues found in the TI LMU common code > > drivers/leds/leds-ti-lmu-common.c:97:20-29: WARNING: Unsigned expression > compared with zero: ramp_down < 0 > drivers/leds/leds-ti-lmu-common.c:97:5-12:

Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc()

2019-08-28 Thread Kees Cook
On Wed, Aug 28, 2019 at 01:30:24PM -0500, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this, please? > > Thanks > -- > Gustavo > > On 6/10/19 4:06 PM, Gustavo A. R. Silva wrote: > > One of the more common cases of allocation size calculations is finding > > the size

Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc()

2019-08-28 Thread Verma, Vishal L
On Wed, 2019-08-28 at 14:36 -0500, Gustavo A. R. Silva wrote: > struct_size() does not apply to those scenarios. See below... > > > [1]: > > https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/tree/drivers/nvdimm/region_devs.c#n1030 > > struct_size() only applies to structures of

Re: [PATCH 0/5] perf: Treat perf_event_paranoid and kptr_restrict like the kernel does it

2019-08-28 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 28, 2019 at 01:31:21PM -0600, Mathieu Poirier escreveu: > On Mon, 26 Aug 2019 at 19:40, Igor Lubashev wrote: > > Igor Lubashev (5): > > perf event: Check ref_reloc_sym before using it > > perf tools: Use CAP_SYS_ADMIN with perf_event_paranoid checks > > perf util: kernel

[PATCH] net: spider_net: Use struct_size() helper

2019-08-28 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct spider_net_card { ... struct spider_net_descr darray[0]; };

Re: [PATCH 2/4] binder: Add stats, state and transactions files

2019-08-28 Thread Hridya Valsaraju
On Wed, Aug 28, 2019 at 5:58 AM Christian Brauner wrote: > > On Tue, Aug 27, 2019 at 01:41:50PM -0700, Hridya Valsaraju wrote: > > The following binder stat files currently live in debugfs. > > > > /sys/kernel/debug/binder/state > > /sys/kernel/debug/binder/stats > >

[PATCH 1/1] merge_config.sh: ignore unwanted grep errors

2019-08-28 Thread Guillaume Tucker
The merge_config.sh script verifies that all the config options have their expected value in the resulting file and prints any issues as warnings. These checks aren't intended to be treated as errors given the current implementation. However, since "set -e" was added, if the grep command to look

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Qian Cai
On Wed, 2019-08-28 at 12:46 -0700, Edward Chron wrote: > But with the caveat that running a eBPF script that it isn't standard Linux > operating procedure, at this point in time any way will not be well > received in the data center. Can't you get your eBPF scripts into the BCC project? As far I

Re: [PATCH] leds: lm3532: Avoid potentially unpaired regulator calls

2019-08-28 Thread Jacek Anaszewski
Hi Tony, Thank you for the patch. On 8/27/19 11:52 PM, Tony Lindgren wrote: > We may currently get unpaired regulator calls when configuring the LED > brightness via sysfs in case of regulator calls producing errors. Let's > fix this by maintaining local state for enabled. > > Signed-off-by:

Re: [patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
On Wed, 28 Aug 2019, Song Liu wrote: > > On Aug 28, 2019, at 8:51 AM, Thomas Gleixner wrote: > > > > On Wed, 28 Aug 2019, Dave Hansen wrote: > >> On 8/28/19 7:24 AM, Thomas Gleixner wrote: > >>> From: Song Liu > >>> > >>> pti_clone_pmds() assumes that the supplied address is either: > >>> >

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Edward Chron
On Wed, Aug 28, 2019 at 3:12 AM Tetsuo Handa wrote: > > On 2019/08/28 16:08, Michal Hocko wrote: > > On Tue 27-08-19 19:47:22, Edward Chron wrote: > >> For production systems installing and updating EBPF scripts may someday > >> be very common, but I wonder how data center managers feel about it

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-08-28 Thread Martin Blumenstingl
Hi, On Wed, Aug 28, 2019 at 3:53 AM Chuan Hua, Lei wrote: [...] > 1. reset-lantiq.c use index instead of register offset + bit position. > index reset is good for a small system (< 64). However, it will become > very > difficult to use if you have > 100 reset. So we use

Re: mmotm 2019-08-27-20-39 uploaded (objtool: xen)

2019-08-28 Thread Josh Poimboeuf
On Wed, Aug 28, 2019 at 10:56:25AM -0700, Randy Dunlap wrote: > >> drivers/xen/gntdev.o: warning: objtool: gntdev_copy()+0x229: call to > >> __ubsan_handle_out_of_bounds() with UACCESS enabled > > > > Easy one :-) > > > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > > index

Re: [EXT] Re: [Patch v4 1/3] dt-bindings: spi: spi-fsl-qspi: Add ls2080a compatibility string to bindings

2019-08-28 Thread Rob Herring
On Tue, Aug 27, 2019 at 2:56 PM Mark Brown wrote: > > On Tue, Aug 27, 2019 at 10:50:05AM -0500, Rob Herring wrote: > > On Thu, Aug 22, 2019 at 07:49:27PM +0100, Mark Brown wrote: > > > > Drop the dt-bindings:. > > > If you do 'git log --oneline Documentation/devicetree/bindings/' you'll > >

Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc()

2019-08-28 Thread Gustavo A. R. Silva
Hi Vishal, On 8/28/19 1:51 PM, Verma, Vishal L wrote: [..] > > Hi Gustavo, > > The patch looks good to me, however it looks like it might've missed > some instances where this replacement can be performed? > struct_size() does not apply to those scenarios. See below... > > [1]: >

Re: next-20190826 - objtool fails to build.

2019-08-28 Thread Valdis Klētnieks
On Wed, 28 Aug 2019 14:51:00 -0500, Josh Poimboeuf said: > > The real question then becomes - should the Makefile sanitize CFLAGS or just > > append to whatever the user supplied as it does currently? The rest of the > > tree > > sanitizes CFLAG, because I don't get deluged in -Wsign-compare

[PATCH] pinctrl-mcp23s08: Fix property-name in dt-example

2019-08-28 Thread Peter Vernia
The device-tree properties documentation-file specifies the property "microchip,spi-present-mask" as required for MCP23SXX chips. However, the device-tree-source example below it uses only "spi-present-mask". Without "microchip," on the front, the driver will print "missing spi-present-mask" when

Re: [PATCH net-next 03/15] net: sgi: ioc3-eth: remove checkpatch errors/warning

2019-08-28 Thread Thomas Bogendoerfer
On Wed, 28 Aug 2019 10:10:18 -0700 Joe Perches wrote: > On Wed, 2019-08-28 at 16:03 +0200, Thomas Bogendoerfer wrote: > > Before massaging the driver further fix oddities found by checkpatch like > > - wrong indention > > - comment formatting > > - use of printk instead or netdev_xxx/pr_xxx > >

Re: [PATCH v2] ipv6: Not to probe neighbourless routes

2019-08-28 Thread David Miller
I am tossing this patch. Resubmit it when you test it properly on current kernels.

Re: [PATCH v2] ipv6: Not to probe neighbourless routes

2019-08-28 Thread David Miller
From: Date: Wed, 28 Aug 2019 16:50:08 +0800 (CST) > We used an older version of the kernel, and found that configuring default > route led to a lot of NS messages, which affected the real business. > > Although commit f547fac624be adds rate-limiting, there are still some > unreasonable things.

Re: next-20190826 - objtool fails to build.

2019-08-28 Thread Josh Poimboeuf
On Wed, Aug 28, 2019 at 03:30:00PM -0400, Valdis Klētnieks wrote: > On Wed, 28 Aug 2019 10:10:04 -0500, Josh Poimboeuf said: > > > But I don't see how those warnings could get enabled: -Wsign-compare > > -Wunused-parameter. > > > > Can you "make clean" and do "make V=1 tools/objtool" to show the

KASAN: use-after-free Read in rxrpc_put_peer

2019-08-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ed2393ca Add linux-next specific files for 20190827 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11b4a79c60 kernel config: https://syzkaller.appspot.com/x/.config?x=2ef5940a07ed45f4

Re: [patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
On Wed, 28 Aug 2019, Ingo Molnar wrote: > > pmd = pmd_offset(pud, addr); > > if (pmd_none(*pmd)) { > > - addr += PMD_SIZE; > > + WARN_ON_ONCE(addr & PMD_MASK); > > + addr = round_up(addr + 1, PMD_SIZE); > > So given

Re: [PATCH 1/2] x86/microcode: Update late microcode in parallel

2019-08-28 Thread Raj, Ashok
On Wed, Aug 28, 2019 at 09:13:31PM +0200, Borislav Petkov wrote: > On Tue, Aug 27, 2019 at 05:56:30PM -0700, Raj, Ashok wrote: > > > "Cloud customers have expressed discontent as services disappear for > > > a prolonged time. The restriction is that only one core (or only one > > > thread of a

Purgatory compile flag changes apparently causing Kexec relocation overflows

2019-08-28 Thread Steve Wahl
Please CC me on responses to this. I normally would do more diligence on this, but the timing is such that I think it's better to get this out sooner. With the tip of the tree from https://github.com/torvalds/linux.git (a few days old, most recent commit fetched is

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Arnd Bergmann
On Wed, Aug 28, 2019 at 7:57 PM Josh Poimboeuf wrote: > On Wed, Aug 28, 2019 at 05:29:39PM +0200, Arnd Bergmann wrote: > > On Wed, Aug 28, 2019 at 4:51 PM Josh Poimboeuf wrote: > exit.o: warning: objtool: abort()+0x3: unreachable instruction > hugetlb.o: warning: objtool:

Re: Latest kernel version no NOT reflecting on kernel.org

2019-08-28 Thread Konstantin Ryabitsev
On Wed, Aug 28, 2019 at 07:05:47PM +0200, Greg KH wrote: > I think there's a way to see which cdn mirror you are hitting when > you > ask for "www.kernel.org". Konstantin, any hints as to see if maybe one > of the mirrors is out of sync? Looks like the Singapore mirror was feeling

[PATCH 1/2] x86: mmu.h: move mm_context_t::lock member inside CONFIG_MODIFY_LDT_SYSCALL

2019-08-28 Thread Rasmus Villemoes
The placement of the lock member in mm_context_t suggests that it is used to protect the vdso* members, but AFAICT, it is only ever used under #ifdef CONFIG_MODIFY_LDT_SYSCALL. So guarding the member by the same config option is a cheap way to reduce sizeof(mm_struct) by 32 bytes (only for

<    1   2   3   4   5   6   7   8   9   10   >