Re: [PATCH] mm/page_isolate: change the prototype of undo_isolate_page_range()

2019-07-02 Thread Anshuman Khandual
On 07/02/2019 07:23 PM, Pingfan Liu wrote: > undo_isolate_page_range() never fails, so no need to return value. > > Signed-off-by: Pingfan Liu > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Oscar Salvador > Cc: Qian Cai > Cc: Anshuman Khandual > Cc: linux-kernel@vger.kernel.org Reviewed-by

[PATCH v5 1/2] mtd: rawnand: Add Macronix raw NAND controller

2019-07-02 Thread Mason Yang
Add a driver for Macronix raw NAND controller. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile| 1 + drivers/mtd/nand/raw/mxic_nand.c | 557 +++ 3 files changed, 564 insertions(+) create mode 100644

[PATCH v5 0/2] Add Macronix raw NAND controller driver

2019-07-02 Thread Mason Yang
Hi, v5 patch including: 1. compatible rename to "macronix,nand-controller" 2. handle three clock in one 3. other minor patches v4 patch back to only raw NAND controller driver instead of MFD, raw NAND and SPI driver. This is based on MFD maintainer, Lee Jones comments: MFD is for registering chil

[PATCH v5 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-07-02 Thread Mason Yang
Document the bindings used by the Macronix raw NAND controller. Signed-off-by: Mason Yang --- Documentation/devicetree/bindings/mtd/mxic-nand.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mxic-nand.txt diff --git a/Docu

[PATCH V2 0/2] recover the channel swap after xrun

2019-07-02 Thread shengjiu . wang
From: Shengjiu Wang recover the channel swap after xrun Shengjiu Wang (2): ASoC: fsl_esai: Wrap some operations to be functions ASoC: fsl_esai: recover the channel swap after xrun sound/soc/fsl/fsl_esai.c | 267 --- 1 file changed, 194 insertions(+), 73

[PATCH V2 2/2] ASoC: fsl_esai: recover the channel swap after xrun

2019-07-02 Thread shengjiu . wang
From: Shengjiu Wang There is chip errata ERR008000, the reference doc is (https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf), The issue is "While using ESAI transmit or receive and an underrun/overrun happens, channel swap may occur. The only recovery mechanism is to reset the ESAI." This issue e

[PATCH V2 1/2] ASoC: fsl_esai: Wrap some operations to be functions

2019-07-02 Thread shengjiu . wang
From: Shengjiu Wang Extract the operation to be functions, to improve the readability. In this patch, fsl_esai_init, fsl_esai_register_restore, fsl_esai_trigger_start and fsl_esai_trigger_stop are extracted. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_esai.c | 191 +

Re: [PATCH v3 6/6] interconnect: Add OPP table support for interconnects

2019-07-02 Thread Vincent Guittot
On Wed, 3 Jul 2019 at 03:10, Saravana Kannan wrote: > > Interconnect paths can have different performance points. Now that OPP > framework supports bandwidth OPP tables, add OPP table support for > interconnects. > > Devices can use the interconnect-opp-table DT property to specify OPP > tables fo

Re: [PATCH v3 0/6] Introduce Bandwidth OPPs for interconnect paths

2019-07-02 Thread Viresh Kumar
On 02-07-19, 18:10, Saravana Kannan wrote: > Interconnects and interconnect paths quantify their performance levels in > terms of bandwidth and not in terms of frequency. So similar to how we have > frequency based OPP tables in DT and in the OPP framework, we need > bandwidth OPP table support in

Re: [PATCH net-next v6 04/15] ethtool: introduce ethtool netlink interface

2019-07-02 Thread Michal Kubecek
On Tue, Jul 02, 2019 at 06:29:56PM -0700, Jakub Kicinski wrote: > On Tue, 2 Jul 2019 13:49:59 +0200 (CEST), Michal Kubecek wrote: > > diff --git a/Documentation/networking/ethtool-netlink.txt > > b/Documentation/networking/ethtool-netlink.txt > > new file mode 100644 > > index ..97c36

[no subject]

2019-07-02 Thread Helge Deller

Re: [RFC PATCH v2 00/12] Reduce ifdef mess in ptrace

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:17 PM, Christophe Leroy wrote: > The purpose of this series is to reduce the amount of #ifdefs > in ptrace.c > > This is a first try. Most of it is done, there are still some #ifdefs that > could go away. > > Please comment and tell whether it is worth continuing in that direction.

Re: gpio desc flags being lost

2019-07-02 Thread Linus Walleij
On Wed, Jul 3, 2019 at 7:35 AM Chris Packham wrote: > Doing a bit of debugging so far I see that after startup the desc->flags > for those gpios is 0. But for the hogged ones it should be 0x800 (or 0x801). Yeah that is wrong. > I'll do some proper bisecting tomorrow, but figured you might want

Re: [PATCH v3] arm64: dts: imx8mq: Add sai3 and sai6 nodes

2019-07-02 Thread Daniel Baluta
On Tue, Jul 2, 2019 at 4:25 PM Andra Danciu wrote: > > SAI3 and SAI6 nodes are used to connect to an external codec. > They have 1 Tx and 1 Rx dataline. > > Cc: Daniel Baluta > Signed-off-by: Andra Danciu Reviewed-by: Daniel Baluta > --- > Changes since v2: > - removed multiple new li

Re: [PATCH 5.1 00/55] 5.1.16-stable review

2019-07-02 Thread Shreeya Patel
On Tue, 2019-07-02 at 10:01 +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.16 release. > There are 55 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, > please > let me know. > >

Re: [LINUX PATCH v17 2/2] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2019-07-02 Thread Boris Brezillon
On Mon, 24 Jun 2019 22:46:30 -0600 Naga Sureshkumar Relli wrote: > + > +/** > + * pl353_nand_exec_op_cmd - Send command to NAND device > + * @chip:Pointer to the NAND chip info structure > + * @subop: Pointer to array of instructions > + * Return: Always return zero > + */ > +static int

Re: [PATCH] i2c: remove casting dma_alloc

2019-07-02 Thread Jochen Friedrich
From: Vasyl Generated by: alloc_cast.cocci Signed-off-by: Vasyl Acked-by: Jochen Friedrich --- drivers/i2c/busses/i2c-cpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 187900594e3d..1213e1932ccb

Re: [PATCH] powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler()

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:25 PM, Christophe Leroy wrote: > On 8xx, breakpoints stop after executing the instruction, so > stepping/emulation is not needed. Move it into a sub-function and > remove the #ifdefs. > > Signed-off-by: Christophe Leroy > --- Reviewed-by: Ravi Bangoria Just one neat below... [

Re: [PATCH 2/4] input: keyboard/mouse/touchscreen/misc: Use dev_get_drvdata()

2019-07-02 Thread Lee Jones
On Tue, 02 Jul 2019, Lothar Waßmann wrote: > Hi, > > On Tue, 2 Jul 2019 19:47:16 +0800 Fuqian Huang wrote: > > Andy Shevchenko 於 2019年7月2日週二 下午5:51寫道: > > > > > > On Tue, Jul 2, 2019 at 11:20 AM Fuqian Huang > > > wrote: > > > > > > > > I am not an expert on this. I just write a coccinelle s

RE: [LINUX PATCH v17 2/2] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2019-07-02 Thread Naga Sureshkumar Relli
Hi Miquel, > -Original Message- > From: linux-mtd On Behalf Of Helmut > Grohne > Sent: Tuesday, June 25, 2019 7:41 PM > To: Naga Sureshkumar Relli > Cc: vigne...@ti.com; bbrezil...@kernel.org; yamada.masah...@socionext.com; > rich...@nod.at; linux-kernel@vger.kernel.org; marek.va...@gma

Re: [PATCH] mm/z3fold: Fix z3fold_buddy_slots use after free

2019-07-02 Thread Vitaly Wool
On Tue, Jul 2, 2019 at 6:57 PM Henry Burns wrote: > > On Tue, Jul 2, 2019 at 12:45 AM Vitaly Wool wrote: > > > > Hi Henry, > > > > On Mon, Jul 1, 2019 at 8:31 PM Henry Burns wrote: > > > > > > Running z3fold stress testing with address sanitization > > > showed zhdr->slots was being used after i

Reminder: 36 open syzbot bugs in "net/bpf" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 36 of them as possibly being bugs in the "net/bpf" subsy

Re: bcachefs status update (it's done cooking; let's get this sucker merged)

2019-07-02 Thread Stefan K
Hello, is there a chance to get this in Kernel 5.3? And thanks for this fs! On Monday, June 10, 2019 9:14:08 PM CEST Kent Overstreet wrote: > Last status update: https://lkml.org/lkml/2018/12/2/46 > > Current status - I'm pretty much running out of things to polish and excuses > to > keep tinke

Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

2019-07-02 Thread Vitaly Wool
On Wed, Jul 3, 2019 at 12:18 AM Henry Burns wrote: > > On Tue, Jul 2, 2019 at 2:19 PM Andrew Morton > wrote: > > > > On Mon, 1 Jul 2019 18:16:30 -0700 Henry Burns wrote: > > > > > Cc: Vitaly Wool , Vitaly Vul > > > > Are these the same person? > I Think it's the same person, but i wasn't sure

Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

2019-07-02 Thread Vitaly Wool
On Wed, Jul 3, 2019 at 12:24 AM Andrew Morton wrote: > > On Tue, 2 Jul 2019 15:17:47 -0700 Henry Burns wrote: > > > > > > > + if (can_sleep) { > > > > > > + lock_page(page); > > > > > > + __SetPageMovable(page, pool->inode->i_mapping); > > > > > > +

[PATCH] unicore32: dma: fix to pass correct device identity to free_irq()

2019-07-02 Thread Wei Yongjun
free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Fixes: 10c9c10c3151 ("unicore32 core architecture: mm related: consistent device DMA handling") Signed-off-by: Wei Yongjun --- arch/unicore32/kernel/dma.c | 2 +- 1 file c

gpio desc flags being lost

2019-07-02 Thread Chris Packham
Hi LinusW, Bartosz, I was debugging something else and I noticed a problem with the gpio framework or the gpio-mmio driver (or both) in 5.2.0-rc6. I have some gpio hogs in my device tree which seem to get requested at startup as expected ... GPIO line 456 (sw-reset) hogged as output/low GPIO l

Re: [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition

2019-07-02 Thread Anshuman Khandual
On 07/01/2019 06:58 PM, Guenter Roeck wrote: > On 7/1/19 2:35 AM, Anshuman Khandual wrote: >> Architectures like parisc enable CONFIG_KROBES without having a definition >> for kprobe_fault_handler() which results in a build failure. Arch needs to >> provide kprobe_fault_handler() as it is platfo

Re: [GIT PULL] FSI changes for 5.3

2019-07-02 Thread Benjamin Herrenschmidt
On Wed, 2019-07-03 at 03:39 +, Joel Stanley wrote: > Hello Greg, > > We've not had a MAINAINERS entry for drivers/fsi, so this fixes that. It names > Jeremy and I as maintainers, so if it works for you we will send pull requests > to you each cycle. Ack. I no longer work for IBM and thus cann

Re: [PATCH v1 10/11] perf intel-pt: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Adrian Hunter
On 3/07/19 4:35 AM, Leo Yan wrote: > Hi Adrian, > > On Tue, Jul 02, 2019 at 02:07:40PM +0300, Adrian Hunter wrote: >> On 2/07/19 1:34 PM, Leo Yan wrote: >>> Based on the following report from Smatch, fix the potential >>> NULL pointer dereference check. >> >> It never is NULL. Remove the NULL tes

[PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-02 Thread Nicolas Boichat
If the device tree is incorrectly configured, and attempts to define a "no-map" reserved memory that overlaps with the kernel data/code, the kernel would crash quickly after boot, with no obvious clue about the nature of the issue. For example, this would happen if we have the kernel mapped at the

[PATCH] posix_acl: fix stale posix_acl_update_mode() comment

2019-07-02 Thread Sergey Senozhatsky
inode_change_ok() was renamed to setattr_prepare() in 4.8-rc1. Signed-off-by: Sergey Senozhatsky --- fs/posix_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 84ad1c90d535..a76aa995a95d 100644 --- a/fs/posix_acl.c +++ b/fs/posix_acl.

Re: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Randy Dunlap
On 7/2/19 9:33 PM, Dexuan Cui wrote: >> From: linux-hyperv-ow...@vger.kernel.org >> On Behalf Of Randy Dunlap >> Sent: Tuesday, July 2, 2019 4:25 PM >> ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! >> ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko] und

Reminder: 3 open syzbot bugs in "android/binder" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 3 of them as possibly being bugs in the "android/binder"

Re: [PATCHv4 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-07-02 Thread Tomasz Figa
Hi Hans, On Mon, Jun 3, 2019 at 8:28 PM Hans Verkuil wrote: > > From: Tomasz Figa > > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequences of V4L2 API calls > to be followed. These include capability enumeration, initializati

Re: [PATCH] Revert "ARM: dts: rockchip: add startup delay to rk3288-veyron panel-regulators"

2019-07-02 Thread Doug Anderson
Hi, On Thu, Jun 20, 2019 at 1:31 PM Doug Anderson wrote: > > Hi, > > On Thu, Jun 20, 2019 at 11:21 AM Douglas Anderson > wrote: > > > > This reverts commit 1f45e8c6d0161f044d679f242fe7514e2625af4a. > > > > This 100 ms mystery delay is not on downstream kernels and no longer > > seems needed on

[GIT PULL] SMB3 fix

2019-07-02 Thread Steve French
Please pull the following changes since commit 4b972a01a7da614b4796475f933094751a295a2f: Linux 5.2-rc6 (2019-06-22 16:01:36 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git tags/5.2-rc6-smb3-fix for you to fetch changes up to 5de254dca87ab614b9c058246e

Re: suspicious RCU usage (was: Re: [PATCHv3 next 1/3] loopback: create blackhole net device similar to loopack.)

2019-07-02 Thread महेश बंडेवार
On Tue, Jul 2, 2019 at 5:54 AM Geert Uytterhoeven wrote: > > Hi Mahesh, > > On Mon, 1 Jul 2019, Mahesh Bandewar wrote: > > Create a blackhole net device that can be used for "dead" > > dst entries instead of loopback device. This blackhole device differs > > from loopback in few aspects: (

RE: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Randy Dunlap > Sent: Tuesday, July 2, 2019 8:25 PM > To: Matthew Wilcox > Cc: LKML ; linux-hyp...@vger.kernel.org; Jake > Oshins ; KY Srinivasan ; Haiyang > Zhang ; Stephen Hemminger > ; Sasha Levin ; linux-pci > ; Bjorn Helgaas > Subject

Re: [PATCH v8 3/5] mtd: Add support for HyperBus memory devices

2019-07-02 Thread Vignesh Raghavendra
On 02/07/19 11:23 PM, Sergei Shtylyov wrote: > Hello! > > On 06/25/2019 10:57 AM, Vignesh Raghavendra wrote: > >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to conn

[RFC] rcuperf: Make rcuperf test more robust for !expedited mode

2019-07-02 Thread Joel Fernandes (Google)
It is possible that rcuperf run concurrently with init starting up. During this time, the system is running all grace periods as expedited. However, rcuperf can also be run in a normal mode. The rcuperf test depends on a holdoff before starting the test to ensure grace periods start later. This wor

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
On 7/3/19 9:49 AM, Eric Biggers wrote: > On Wed, Jul 03, 2019 at 09:29:39AM +0530, Ravi Bangoria wrote: >> Hi Eric, >> >> On 7/3/19 9:25 AM, Eric Biggers wrote: >>> On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: On 7/2/19 11:13 AM, Eric Biggers wrote: > ---

RE: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Randy Dunlap > Sent: Tuesday, July 2, 2019 4:25 PM > ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > > drivers/pci/slot.o is only bu

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Eric Biggers
On Wed, Jul 03, 2019 at 09:29:39AM +0530, Ravi Bangoria wrote: > Hi Eric, > > On 7/3/19 9:25 AM, Eric Biggers wrote: > > On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: > >> > >> > >> On 7/2/19 11:13 AM, Eric Biggers wrote: > >>> -

[PATCH v7 3/3] arm64: kexec_file: add rng-seed support

2019-07-02 Thread Hsin-Yi Wang
Adding "rng-seed" to dtb. It's fine to add this property if original fdt doesn't contain it. Since original seed will be wiped after read, so use a default size 128 bytes here. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd --- change log v6->v7: * Use stack for rng_seed to avoid allocati

[PATCH v7 2/3] fdt: add support for rng-seed

2019-07-02 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd Reviewed-

[PATCH v3 2/3] augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macro

2019-07-02 Thread Michel Lespinasse
Add RB_DECLARE_CALLBACKS_MAX, which generates augmented rbtree callbacks for the case where the augmented value is a scalar whose definition follows a max(f(node)) pattern. This actually covers all present uses of RB_DECLARE_CALLBACKS, and saves some (source) code duplication in the various RBCOMPU

[PATCH v3 1/3] augmented rbtree: add comments for RB_DECLARE_CALLBACKS macro

2019-07-02 Thread Michel Lespinasse
Add a short comment summarizing the arguments to RB_DECLARE_CALLBACKS. The arguments are also now capitalized. This copies the style of the INTERVAL_TREE_DEFINE macro. No functional changes in this commit, only comments and capitalization. Signed-off-by: Michel Lespinasse Acked-by: Davidlohr Bue

[PATCH v7 0/3] add support for rng-seed

2019-07-02 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. This can be used for adding sufficient initial entropy for stack canary. Especially architectures that lack per-stack canary. Hsin-Yi Wang (3): arm64: ma

[PATCH v7 1/3] arm64: map FDT as RW for early_init_dt_scan()

2019-07-02 Thread Hsin-Yi Wang
Currently in arm64, FDT is mapped to RO before it's passed to early_init_dt_scan(). However, there might be some codes (eg. commit "fdt: add support for rng-seed") that need to modify FDT during init. Map FDT to RO after early fixups are done. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd

[PATCH v3 3/3] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-02 Thread Michel Lespinasse
Change the definition of the RBCOMPUTE function. The propagate callback repeatedly calls RBCOMPUTE as it moves from leaf to root. it wants to stop recomputing once the augmented subtree information doesn't change. This was previously checked using the == operator, but that only works when the augme

[PATCH v3 0/3] make RB_DECLARE_CALLBACKS more generic

2019-07-02 Thread Michel Lespinasse
These changes are intended to make the RB_DECLARE_CALLBACKS macro more generic (allowing the aubmented subtree information to be a struct instead of a scalar). Changes since v2: Left the RBSTATIC and RBNAME arguments first in the RB_DECLARE_CALLBACKS and RB_DECLARE_CALLBACKS_MAX macros as suggeste

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
Hi Eric, On 7/3/19 9:25 AM, Eric Biggers wrote: > On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: >> >> >> On 7/2/19 11:13 AM, Eric Biggers wrote: >>> >>> Title: possible deadlock in uprobe

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Eric Biggers
On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: > > > On 7/2/19 11:13 AM, Eric Biggers wrote: > > > > Title: possible deadlock in uprobe_clear_state > > Last occurred: 164 days ago >

Re: [RESEND PATCH v3 0/7] Improve scheduler scalability for fast path

2019-07-02 Thread Subhra Mazumdar
On 7/2/19 1:54 AM, Patrick Bellasi wrote: Wondering if searching and preempting needs will ever be conflicting? I guess the winning point is that we don't commit behaviors to userspace, but just abstract concepts which are turned into biases. I don't see conflicts right now: if you are latency

Re: [PATCH -next] btrfs: remove set but not used variable 'offset'

2019-07-02 Thread Anand Jain
On 2/7/19 10:15 PM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: fs/btrfs/volumes.c: In function __btrfs_map_block: fs/btrfs/volumes.c:6023:6: warning: variable offset set but not used [-Wunused-but-set-variable] It is not used any more since commit 343abd1c0ca9 ("btrfs: U

Klientskie bazy. Email: proda...@armyspy.com Uznajte podrobnee!

2019-07-02 Thread 9VZyqNsch1450
Klientskie bazy. Email: proda...@armyspy.com Uznajte podrobnee!

[PATCH] rbtree: sync up the tools/ copy of the code with the main one

2019-07-02 Thread Michel Lespinasse
I should probably have done this in the same commit that changed the main rbtree code to avoid generating code twice for the cached rbtree versions. Not copying the reviewers of the previous change as tools/ is just another copy of it. Copying LKML anyway because the additional noise won't make as

[PATCH v2] selftests/x86/fsgsbase: Fix some test case bugs

2019-07-02 Thread Andy Lutomirski
This refactors do_unexpected_base() to clean up some code. It also fixes the following bugs in test_ptrace_write_gsbase(): - Incorrect printf() format string caused crashes. - Hardcoded 0x7 for the gs selector was not reliably correct. It also documents the fact that the test is expected to f

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
On 7/2/19 11:13 AM, Eric Biggers wrote: > > Title: possible deadlock in uprobe_clear_state > Last occurred: 164 days ago > Reported: 201 days ago > Branches: Mainline > Dashboar

[GIT PULL] FSI changes for 5.3

2019-07-02 Thread Joel Stanley
Hello Greg, We've not had a MAINAINERS entry for drivers/fsi, so this fixes that. It names Jeremy and I as maintainers, so if it works for you we will send pull requests to you each cycle. I realise this one is a bit late, but please consider including so we have a clear path for future submissio

[PATCH 4/4] numa: introduce numa cling feature

2019-07-02 Thread 王贇
Although we paid so many effort to settle down task on a particular node, there are still chances for a task to leave it's preferred node, that is by wakeup, numa swap migrations or load balance. When we are using cpu cgroup in share way, since all the workloads see all the cpus, it could be reall

[PATCH 3/4] numa: introduce numa group per task group

2019-07-02 Thread 王贇
By tracing numa page faults, we recognize tasks sharing the same page, and try pack them together into a single numa group. However when two task share lot's of cache pages while not much anonymous pages, since numa balancing do not tracing cache page, they have no chance to join into the same gro

[PATCH 18/18] perf script: Allow specifying the files to process guest samples

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'perf kvm' command set up things so that we can record, report, top, etc, but not 'script', so make 'perf script' be able to process samples by allowing to pass guest kallsyms, vmlinux, modules, etc, and if at least one of those is provided, set perf_guest to tr

[PATCH 16/18] perf tools metric: Don't include duration_time in group

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The Memory_BW metric generates groups including duration_time, which maps to a software event. For some reason this makes the group always not count. Always put duration_time outside a group when generating metrics. It's always the same time, so no need to group it. Signed-of

[PATCH 2/4] numa: append per-node execution info in memory.numa_stat

2019-07-02 Thread 王贇
This patch introduced numa execution information, to imply the numa efficiency. By doing 'cat /sys/fs/cgroup/memory/CGROUP_PATH/memory.numa_stat', we see new output line heading with 'exectime', like: exectime 311900 407166 which means the tasks of this cgroup executed 311900 micro seconds on

[PATCH 12/18] perf jevents: Add support for Hisi hip08 L3C PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 L3C PMU aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c Signed-off-by: John Garry Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ben Hutchings Cc: Hendrik Brueckner Cc: Kan Liang Cc: Mark Rutland C

[PATCH 11/18] perf jevents: Add support for Hisi hip08 HHA PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 HHA PMU aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_hha_pmu.c Signed-off-by: John Garry Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ben Hutchings Cc: Hendrik Brueckner Cc: Kan Liang Cc: Mark Rutland C

[PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic

2019-07-02 Thread 王贇
This patch introduced numa locality statistic, which try to imply the numa balancing efficiency per memory cgroup. By doing 'cat /sys/fs/cgroup/memory/CGROUP_PATH/memory.numa_stat', we see new output line heading with 'locality', the format is: locality 0%~29% 30%~39% 40%~49% 50%~59% 60%~69% 70

[PATCH 10/18] perf jevents: Add support for Hisi hip08 DDRC PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 DDRC PMU aliasing. We can now do something like this: $perf list [snip] uncore ddrc: uncore_hisi_ddrc.act_cmd [DDRC active commands. Unit: hisi_sccl,ddrc] uncore_hisi_ddrc.flux_rcmd [DDRC read commands. Unit: hisi_sccl,ddrc] uncor

[PATCH 17/18] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Seeteena Thoufeek 'probe libc's inet_pton & backtrace it with ping' testcase sometimes fails on powerpc because distro ping binary does not have symbol information and thus it prints "[unknown]" function name in the backtrace. Accept "[unknown]" as valid function name for powerpc as well.

[PATCH 14/18] perf vendor events intel: Metric fixes for SKX/CLX

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen - Add a missing filter for the DRAM_Latency / DRAM_Parallel_Reads metrics - Remove the useless PMM_* metrics from Skylake Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220737.13259-1-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 15/18] perf list: Avoid extra : for --raw metrics

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When printing the metrics raw, don't print : after the metricgroups. This helps the command line completion to complete those too. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220737.13259-2-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho

[PATCH 05/18] perf diff: Use hists to manage basic blocks per symbol

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The hist__account_cycles() can account cycles per basic block. The basic block information is saved in cycles_hist structure. This patch processes each symbol, get basic blocks from cycles_hist and add the basic block entries to a new hists (in 'struct block_hist'). Using a hists i

[PATCH 06/18] perf diff: Link same basic blocks among different data

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The target is to compare the performance difference (cycles diff) for the same basic blocks in different data files. The same basic block means same function, same start address and same end address. This patch finds the same basic blocks from different data files and link them tog

[PATCH 13/18] perf tools: Fix typos / broken sentences

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen - Fix a typo in the man page - Fix a tip that doesn't make any sense. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220900.13741-1-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-report.txt | 2 +-

[PATCH 08/18] perf diff: Documentation -c cycles option

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao Documentation the new computation selection 'cycles'. v4: --- Change the column 'Block cycles diff [start:end]' to '[Program Block Range] Cycles Diff' Signed-off-by: Jin Yao Reviewed-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Kan Liang Cc: Peter

[PATCH 09/18] perf pmu: Support more complex PMU event aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry The jevent "Unit" field is used for uncore PMU alias definition. The form uncore_pmu_example_X is supported, where "X" is a wildcard, to support multiple instances of the same PMU in a system. Unfortunately this format not suitable for all uncore PMUs; take the Hisi DDRC uncore

[GIT PULL] perf/core improvements and fixes

2019-07-02 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, this is on top of perf-core-for-mingo-5.3-20190701. Best regards, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 06c642c0e9fceafd16b1a4c80d44b1c09e282215: perf jevents: Use nonlocal include statement

[PATCH 02/18] perf symbol: Create block_info structure

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao 'perf diff' currently can only diff symbols(functions). We should expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify changes in specific code accurately. We need a new structure to maintain the basic block information, su

[PATCH 01/18] objtool: Fix build by linking against tools/lib/ctype.o sources

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Fix objtool build, because it adds _ctype dependency via isspace call patch. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: André Goddard Rosa Cc: Clark Williams Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Gleixner Fixes: 7bd330de43fd ("tools lib: Adopt skip_spaces() from th

[PATCH 07/18] perf diff: Print the basic block cycles diff

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao $ perf record -b ./div $ perf record -b ./div Following is the default perf diff output $ perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . .. # 48.75% +0.33% div

[PATCH 04/18] perf diff: Check if all data files with branch stacks

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao We will expand perf diff to support diff cycles of individual programs blocks, so it requires all data files having branch stacks. This patch checks HEADER_BRANCH_STACK in header, and only set the flag has_br_stack when HEADER_BRANCH_STACK are set in all data files. v2: --- Mov

[PATCH 03/18] perf hists: Add block_info in hist_entry

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The block_info contains the program basic block information, i.e, contains the start address and the end address of this basic block and how much cycles it takes. We need to compare, sort and even print out the basic block by some orders, i.e. sort by cycles. For this purpose, we

[PATCH 0/4] per cpu cgroup numa suite

2019-07-02 Thread 王贇
During our torturing on numa stuff, we found problems like: * missing per-cgroup information about the per-node execution status * missing per-cgroup information about the numa locality That is when we have a cpu cgroup running with bunch of tasks, no good way to tell how it's tasks are deali

Re: [PATCH bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-02 Thread Yuehaibing
On 2019/7/3 0:04, Yonghong Song wrote: > > > On 7/2/19 8:53 AM, Stanislav Fomichev wrote: >> On 07/02, YueHaibing wrote: >>> If CONFIG_NET is not set, gcc building fails: >>> >>> kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': >>> cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_

Re: [PATCH] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-02 Thread Chris Chiu
On Tue, Jul 2, 2019 at 8:44 PM Jes Sorensen wrote: > > On 6/27/19 5:52 AM, Chris Chiu wrote: > > The WiFi tx power of RTL8723BU is extremely low after booting. So > > the WiFi scan gives very limited AP list and it always fails to > > connect to the selected AP. This module only supports 1x1 anten

Re: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Randy Dunlap
On 7/2/19 5:15 PM, Matthew Wilcox wrote: > On Tue, Jul 02, 2019 at 04:24:30PM -0700, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix build errors when building almost-allmodconfig but with SYSFS >> not set (not enabled). Fixes these build errors: >> >> ERROR: "pci_destroy_slot" [drivers/pci/c

linux-next: manual merge of the block tree with the xfs tree

2019-07-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the block tree got a conflict in: fs/xfs/xfs_aops.c between commit: a24737359667 ("xfs: simplify xfs_chain_bio") from the xfs tree and commit: 79d08f89bb1b ("block: fix .bi_size overflow") from the block tree. I fixed it up (see below) and can carry

Re: [RFC PATCH v2 11/12] powerpc/ptrace: create ppc_gethwdinfo()

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:18 PM, Christophe Leroy wrote: > Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and > reduce ifdef mess > > Signed-off-by: Christophe Leroy > --- Reviewed-by: Ravi Bangoria

Re: [PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Steven Rostedt
On Wed, 3 Jul 2019 12:09:53 +0900 Masami Hiramatsu wrote: > > Would something like that work? > > For older kernel, I think we'd better try to mount debugfs first. Sure, that's pretty trivial to do. Or what I was thinking, try it if it fails: if [ -z "$TRACING_DIR" ]; then

Re: [PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Masami Hiramatsu
On Tue, 2 Jul 2019 21:07:30 -0400 Steven Rostedt wrote: > On Wed, 3 Jul 2019 09:11:47 +0900 > Masami Hiramatsu wrote: > > > Hi Po-Hsu Lin, > > > > On Tue, 2 Jul 2019 13:22:26 -0600 > > shuah wrote: > > > > > Hi Po-Hsu Lin, > > > > > > On 7/2/19 12:23 AM, Po-Hsu Lin wrote: > > > > The ftra

Re: [PATCH 1/2] Fix mmap-thread-lookup.c unitialized memory usage

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 02, 2019 at 10:37:15AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Running the perf test command after building perf with a memory > sanitizer causes a warning that says: > WARNING: MemorySanitizer: use-of-uninitialized-value... in > mmap-thread-lookup.c > Initializing the go variable to 0

Re: [RFC PATCH v2 12/12] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:18 PM, Christophe Leroy wrote: > ptrace_triggered() is declared in asm/hw_breakpoint.h and > only needed when CONFIG_HW_BREAKPOINT is set, so move it > into hw_breakpoint.c > > Signed-off-by: Christophe Leroy Reviewed-by: Ravi Bangoria

Re: [PATCH v4 1/2] mtd: rawnand: Add Macronix Raw NAND controller

2019-07-02 Thread masonccyang
Hi Miquel, > > Add a driver for Macronix raw NAND controller. > > Could you pass userspace major MTD tests and can you attach/mount/edit > a UBI/UBIFS storage? The other userspace MTD tests are passed. nandwrite, nanddump and nandtest. i.e., zynq> ./nandtest -k /dev/mtd1 ECC corrections: 0 EC

Re: [RFC PATCH v2 10/12] powerpc/ptrace: create ptrace_get_debugreg()

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:17 PM, Christophe Leroy wrote: > Create ptrace_get_debugreg() to handle PTRACE_GET_DEBUGREG and > reduce ifdef mess > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/ptrace/ptrace-adv.c | 9 + > arch/powerpc/kernel/ptrace/ptrace-decl.h | 2 ++ > arch/po

[PATCH -next] integrity: Remove set but not used variable 'acl'

2019-07-02 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: security/integrity/digsig.c: In function 'integrity_init_keyring': security/integrity/digsig.c:99:18: warning: variable 'acl' set but not used [-Wunused-but-set-variable] It seems 'acl' is needed in __integrity_init_keyring Fixes: 6100ac53909d ("ke

Re: [RFC PATCH v2 09/12] powerpc/ptrace: split out ADV_DEBUG_REGS related functions.

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:17 PM, Christophe Leroy wrote: > diff --git a/arch/powerpc/kernel/ptrace/ptrace-adv.c > b/arch/powerpc/kernel/ptrace/ptrace-adv.c > new file mode 100644 > index ..86e71fa6c5c8 > --- /dev/null > +++ b/arch/powerpc/kernel/ptrace/ptrace-adv.c > @@ -0,0 +1,487 @@ > +/* SPDX

Re: [PATCH V2] media: usb: technisat-usb2: fix buffer overflow

2019-07-02 Thread Kees Cook
On Wed, Jul 03, 2019 at 09:14:44AM +0700, Phong Tran wrote: > The buffer will be overflow in case of the while loop can not break. > Add the checking buffer condition in while loop for avoiding > overlooping index. > > This issue was reported by syzbot > > Reported-by: syzbot+eaaaf38a95427be88...

[PATCH AUTOSEL 5.1 01/39] ARM: dts: meson8: fix GPU interrupts and drop an undocumented property

2019-07-02 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 01dfdd7b4693496854ac92d1ebfb18d7b108f777 ] The interrupts in Amlogic's vendor kernel sources are all contiguous. There are two typos leading to pp2 and pp4 as well as ppmmu2 and ppmmu4 incorrectly sharing the same interrupt line. Fix this by using inte

  1   2   3   4   5   6   7   8   9   10   >