Re: [PATCH v5 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller

2019-02-24 Thread Min Guo
Hi Rob, On Fri, 2019-02-22 at 10:49 -0600, Rob Herring wrote: > On Tue, Feb 19, 2019 at 03:36:30PM +0800, min@mediatek.com wrote: > > From: Min Guo > > > > This adds support for MediaTek musb controller in > > host, peripheral and otg mode. > > > > Signed-off-by: Min Guo > > --- > > changes

Re: [PATCH 1/2] staging: erofs: no need to take page lock in readdir

2019-02-24 Thread Chao Yu
On 2019/2/21 10:34, Gao Xiang wrote: > VFS will take inode_lock for readdir, therefore no need to > take page lock in readdir at all just as the majority of > other generic filesystems. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,

Re: [PATCH] arm64: dts: renesas: r8a7796: remove unneeded sound #address/size-cells

2019-02-24 Thread Kuninori Morimoto
Hi > From: Jiada Wang > > commit 78bc93b3ffb2 ("arm64: dts: renesas: r8a7796: Add address > properties to rcar_sound port nodes") added missing #address-cells > and #size-cells for sound ports. > But, these are based on platform, not on SoC. This patch cleanups it. > > Signed-off-by: Jiada Wa

Re: [PATCH] ASoC: rsnd: gen: fix SSI9 4/5/6/7 busif related register address

2019-02-24 Thread Kuninori Morimoto
Hi Jiada Thank you for your patch > Currently each SSI unit 's busif mode/adinr/dalign address is > registered by: (in busif4 case) > RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80) > RSND_GEN_M_REG(SSI_BUSIF4_ADINR,0x504, 0x80) > RSND_GEN_M_REG(SSI_BUSIF4_DALIGN, 0x508, 0x80) > > But according t

Re: [PATCH 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-24 Thread Andrew Jeffery
On Fri, 22 Feb 2019, at 08:55, Patrick Venture wrote: > The ASPEED AST2400, and AST2500 in some configurations include a > PCI-to-AHB MMIO bridge. This bridge allows a server to read and write > in the BMC's memory space. Bit of a nit, but I think s/memory space/physical address space/ makes the

Re: [RFC PATCH] aio: add check for timeout to aviod invalid value

2019-02-24 Thread Tan Xiaojun
On 2019/2/19 4:33, Jeff Moyer wrote: > Tan Xiaojun writes: > >> (When I was testing with syzkaller, I found a lot of ubsan problems. Here >> is one of them. I am not sure if it needs to be fixed and how it will be >> fixed. So I sent this patch to ask your opinion.) >> >> Syzkaller reported a U

Re: [PATCH] ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address

2019-02-24 Thread Kuninori Morimoto
Hi Jiada, again > > Currently each SSI unit 's busif dma address is calculated by > > following calculation formulation: > > 0xec54 + 0x1000 * id + busif / 4 * 0xA000 + busif % 4 * 0x400 > > > > But according to user manual 41.1.4 Register Configuration > > ssi9 4/5/6/7 busif data register

Re: [PATCH] ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address

2019-02-24 Thread Kuninori Morimoto
Hi Jiada Thank you for your patch > Currently each SSI unit 's busif dma address is calculated by > following calculation formulation: > 0xec54 + 0x1000 * id + busif / 4 * 0xA000 + busif % 4 * 0x400 > > But according to user manual 41.1.4 Register Configuration > ssi9 4/5/6/7 busif data re

[PATCH-tip] locking/qspinlock: Remove unnecessary BUG_ON() call

2019-02-24 Thread Waiman Long
With the > 4 nesting levels case handled by the commit d682b596d993 ("locking/qspinlock: Handle > 4 slowpath nesting levels"), the BUG_ON() call in encode_tail() will never be triggered. Remove it. Signed-off-by: Waiman Long --- kernel/locking/qspinlock.c | 3 --- 1 file changed, 3 deletions(-)

Linux 5.0-rc8

2019-02-24 Thread Linus Torvalds
This may be totally unnecessary, but we actually had more patches come in this last week than we had for rc7, which just didn't make me feel the warm and fuzzies. And while none of the patches looked all that scary, some of them were to pretty core files, so it wasn't all just random rare drivers (

Re: [PATCH v4] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

2019-02-24 Thread Mike Kravetz
On 2/22/19 5:32 PM, Jing Xiangfeng wrote: > User can change a node specific hugetlb count. i.e. > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages > the calculated value of count is a total number of huge pages. It could > be overflow when a user entering a crazy high value. I

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-24 Thread Linus Torvalds
On Sun, Feb 24, 2019 at 3:27 PM wrote: > > > > > It's not useful to panic just for random reasons. I realize that some > > of the RAS people have the mindset that "hey, I don't know what's > > wrong, so I'd better kill the machine than continue", but that's > > bogus. > > That's the first thing I

Re: [PATCH v6 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables

2019-02-24 Thread Nicolas Boichat
On Thu, Feb 14, 2019 at 1:12 AM Vlastimil Babka wrote: > > On 1/22/19 11:51 PM, Nicolas Boichat wrote: > > Hi Andrew, > > > > On Fri, Jan 11, 2019 at 6:21 PM Joerg Roedel wrote: > >> > >> On Wed, Jan 02, 2019 at 01:51:45PM +0800, Nicolas Boichat wrote: > >> > Does anyone have any further comment

Re: [PATCH] iommu/io-pgtable-arm-v7s: only kmemleak_ignore L2 tables

2019-02-24 Thread Nicolas Boichat
Joerg: Just to make sure, is this patch in your queue? Thanks. On Thu, Jan 31, 2019 at 2:21 AM Will Deacon wrote: > > On Mon, Jan 28, 2019 at 05:43:01PM +0800, Nicolas Boichat wrote: > > L1 tables are allocated with __get_dma_pages, and therefore already > > ignored by kmemleak. > > > > Without t

Re: [PATCH v1 2/4] KVM: arm/arm64: vgic: Improve comment on kvm_vgic_inject_irq

2019-02-24 Thread Leo Yan
On Fri, Feb 22, 2019 at 03:40:50PM +, Marc Zyngier wrote: [...] > > > The interrupt affinity is either defined by the distributor > > > configuration (SPIs) or the ITS configuration (LPIs). > > > > Given to the up example, I am struggling to understand how you can set > > the interrupt affin

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-24 Thread Alex_Gagniuc
On 2/24/19 4:42 PM, Linus Torvalds wrote: > On Sun, Feb 24, 2019 at 12:37 PM wrote: >> >> Dell r740xd to name one. r640 is even worse -- they probably didn't give >> me one because I'd have too much stuff to complain about. >> >> On the above machines, firmware-first (FFS) tries to guess when ther

Re: [PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-24 Thread kbuild test robot
Hi Harry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

Re: linux-next: Signed-off-by missing for commit in the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi Michael, On Sun, 24 Feb 2019 22:48:57 +1100 Michael Ellerman wrote: > > But do they need SOBs? I think so, since they modify the code .. > The DCO says: > > By making a contribution to this project, I certify that: > > (a) The contribution was created in whole or in part by me and

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-24 Thread Linus Torvalds
On Sun, Feb 24, 2019 at 12:37 PM wrote: > > Dell r740xd to name one. r640 is even worse -- they probably didn't give > me one because I'd have too much stuff to complain about. > > On the above machines, firmware-first (FFS) tries to guess when there's > a SURPRISE!!! removal of a PCIe card and su

Re: [PATCH RFC v2 2/4] PCI: pciehp: Do not turn off slot if presence comes up after link

2019-02-24 Thread Alex_Gagniuc
On 2/23/19 12:50 AM, Lukas Wunner wrote: > > [EXTERNAL EMAIL] > > On Fri, Feb 22, 2019 at 07:56:28PM +, alex_gagn...@dellteam.com wrote: >> On 2/21/19 1:36 AM, Lukas Wunner wrote: >>> On Tue, Feb 19, 2019 at 07:20:28PM -0600, Alexandru Gagniuc wrote: mutex_lock(&ctrl->state_lo

Re: [PATCH 00/15] Habana Labs kernel driver

2019-02-24 Thread Pavel Machek
Hi! > So, I'd like to propose a drivers/accel drivers subtree, and I'd be > happy to bootstrap it with a small group (@Dave Airlie: I think your > input from GPU land be very useful, want to join in?). Individual > drivers maintained by existing maintainers, of course. Does this sound similar? m

[PATCH] ARM: dts: rockchip: fix rk3288 cpu opp node reference

2019-02-24 Thread Jonas Karlman
The following error can be seen during boot: of: /cpus/cpu@501: Couldn't find opp node Change cpu nodes to use operating-points-v2 in order to fix this. Fixes: ce76de984649 ("ARM: dts: rockchip: convert rk3288 to operating-points-v2") Signed-off-by: Jonas Karlman --- arch/arm/boot/dts/rk328

[PATCH] ARM: dts: rockchip: rk3288: fix missing grf reference in tsadc node

2019-02-24 Thread Jonas Karlman
The following message can be seen during boot: rockchip-thermal ff28.tsadc: Missing rockchip,grf property Fix this by adding rockchip,grf property to tsadc node. Fixes: b67d6bc38823 ("ARM: dts: rockchip: add main thermal info to rk3288") Signed-off-by: Jonas Karlman --- arch/arm/boot/dts

Re: [PATCH v6 2/2] PM / sleep: measure the time of filesystems syncing

2019-02-24 Thread kbuild test robot
Hi Harry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

[PATCH] iio: adc: ad7766: Change alignment to match paranthesis

2019-02-24 Thread Camylla Gonçalves Cantanheide
This commit align broken line to match upper line parenthesis, in lines 80, 130, 237, 242, 255, 264 and 293. Solves the checkpatch.pl's message: CHECK: Alignment should match open parenthesis In lines 130, 255, 264 and 293 it was necessary to break a line. --- drivers/iio/adc/ad7766.c | 22

Re: [PATCH 8/8] usb: dwc3: Add Amlogic G12A DWC3 glue

2019-02-24 Thread Martin Blumenstingl
Hi Neil, thank you for working on this! I have few questions and comments below, but overall it looks good :) On Tue, Feb 12, 2019 at 4:17 PM Neil Armstrong wrote: > > Adds support for Amlogic G12A USB Control Glue HW. > > The Amlogic G12A SoC Family embeds 2 USB Controllers : > - a DWC3 IP conf

Re: INFO: trying to register non-static key in __flush_work

2019-02-24 Thread David Rientjes
On Sat, 29 Dec 2018, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:5694cecdb092 Merge tag 'arm64-upstream' of git://git.kerne.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=124eebc740 > kernel config: https://sy

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-24 Thread Alex_Gagniuc
On 2/22/19 3:29 PM, Linus Torvalds wrote: > On Thu, Feb 21, 2019 at 5:07 PM Jon Derrick > wrote: >> >> Some platforms don't seem to easily tolerate non-posted mmio reads on >> lost (hot removed) devices. This has been noted in previous >> modifications to other layers where an mmio read to a lost

[PATCH v2 2/3] dt-bindings: vendor-prefix: add prefix for Lite-On Corp.

2019-02-24 Thread Robert Eshleman
This patch adds a vendor-prefix for the Lite-On Semiconductor Corporation. Signed-off-by: Robert Eshleman --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetre

[PATCH v2 1/3] iio: light: Add driver for ap3216c

2019-02-24 Thread Robert Eshleman
This patch adds support for the ap3216c ambient light and proximity sensor. Supported features include: * Illuminance (lux) * Proximity (raw) * IR (raw) * Rising/falling threshold events for illuminance and proximity * Calibration scale for illuminance * Calibr

[PATCH v2 3/3] dt-bindings: iio: light: Add ap3216c

2019-02-24 Thread Robert Eshleman
Adds device tree bindings for the ap3216c ambient light and proximity sensor. Signed-off-by: Robert Eshleman --- .../devicetree/bindings/iio/light/ap3216c.txt | 22 +++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/ap3216c.txt d

Re: [PATCH 5/5] net: dsa: fix a leaked reference by adding missing of_node_put

2019-02-24 Thread David Miller
From: Wen Yang Date: Fri, 22 Feb 2019 15:15:42 +0800 > diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c > index 8c431e0..89823f0 100644 > --- a/net/dsa/dsa2.c > +++ b/net/dsa/dsa2.c > @@ -613,7 +613,7 @@ static int dsa_switch_parse_ports_of(struct dsa_switch > *ds, > struct device_node *ports,

Re: [PATCH v6 2/2] PM / sleep: measure the time of filesystems syncing

2019-02-24 Thread kbuild test robot
Hi Harry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

[PATCH] ARM: dts: rockchip: Enable HDMI CEC on rk3288-tinker-s

2019-02-24 Thread Jonas Karlman
This patch enables HDMI CEC on Tinker Board S Signed-off-by: Jonas Karlman --- arch/arm/boot/dts/rk3288-tinker-s.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-tinker-s.dts b/arch/arm/boot/dts/rk3288-tinker-s.dts index 37093922b482..590e3b06bbc4 100644 ---

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-24 Thread Rafael J. Wysocki
On Fri, Feb 22, 2019 at 8:21 PM Dan Williams wrote: > > On Fri, Feb 22, 2019 at 10:48 AM Keith Busch wrote: > > > > On Wed, Feb 20, 2019 at 11:02:01PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > > > config ACPI_HMAT > > > > bool "ACPI Het

[PATCH] doc:it_IT: translations for documents in process/

2019-02-24 Thread Federico Vaga
Translated documents: - stable-kernel-rules.rst - deprecated.rst - kernel-enforcement-statement.rst - license-rules.rst Added document to have valid links - netdev-FAQ.rst Modifications to main documentation - add label in deprecated.rst Signed-off-by: Federico Vaga --- Documentation/process/d

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-24 Thread Rafael J. Wysocki
On Fri, Feb 22, 2019 at 7:48 PM Keith Busch wrote: > > On Wed, Feb 20, 2019 at 11:02:01PM +0100, Rafael J. Wysocki wrote: > > On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > > config ACPI_HMAT > > > bool "ACPI Heterogeneous Memory Attribute Table Support" > > > depends on

Re: [PATCH 4/8] dt-bindings: usb: dwc3: Add Amlogic G12A DWC3 Glue Bindings

2019-02-24 Thread Martin Blumenstingl
Hi Neil, On Tue, Feb 12, 2019 at 4:15 PM Neil Armstrong wrote: [...] > + > +Example device nodes: > + usb: usb@ffe09000 { > + compatible = "amlogic,meson-g12a-usb-ctrl"; > + reg = <0x0 0xffe09000 0x0 0xa0>; > + interrupts = ;

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-24 Thread Andy Lutomirski
On Thu, Feb 21, 2019 at 2:57 PM Yu, Fenghua wrote: > > > From: Fenghua Yu [mailto:fenghua...@intel.com] > > On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > > Or to simplify the situation, how about we still use zero as global max wait > > time (i.e. no limitation for global wait

Re: [PATCH v2] staging : speakup: Fix format issues in Kconfig

2019-02-24 Thread Samuel Thibault
Bharath Vedartham, le dim. 24 févr. 2019 18:41:42 +0530, a ecrit: > Fix the checkpatch.pl warning to replace ---help--- with help in > Kconfig. > > Signed-off-by: Bharath Vedartham Reviewed-by: Samuel Thibault Thanks! > --- > Changes since v1: > - Allign help and removed redundant space

Re: [PATCH 6/8] phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver

2019-02-24 Thread Martin Blumenstingl
Hi Neil, On Tue, Feb 12, 2019 at 4:16 PM Neil Armstrong wrote: > > This adds support for the shared USB3 + PCIE PHY found in the > Amlogic G12A SoC Family. > > It supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of > the board. > > Selection is done by the #phy-cells, making the

Re: [PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-24 Thread kbuild test robot
Hi Harry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

Re: [PATCH] staging: Note that simple_strtoul can't simply be replaced by kstrtoul

2019-02-24 Thread Samuel Thibault
Greg KH, le dim. 24 févr. 2019 08:59:21 +0100, a ecrit: > On Sat, Feb 23, 2019 at 08:42:19PM +0100, Samuel Thibault wrote: > > We often receive patches which erroneously try to use kstrtoul in these > > places. > > > > Signed-off-by: Samuel Thibault > > Awe, it's fun to try to see people do this

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-24 Thread Andy Lutomirski
On Sat, Feb 23, 2019 at 12:30 AM Nadav Amit wrote: > > > On Feb 22, 2019, at 3:59 PM, Andy Lutomirski wrote: > > > > On Fri, Feb 22, 2019 at 3:02 PM Jann Horn wrote: > >> On Fri, Feb 22, 2019 at 11:39 PM Nadav Amit wrote: > On Feb 22, 2019, at 2:21 PM, Nadav Amit wrote: > > > On

Re: [PATCH v2] driver: platform: Support parsing GpioInt 0 in platform_get_irq()

2019-02-24 Thread Rafael J. Wysocki
On Mon, Feb 11, 2019 at 8:01 PM wrote: > > From: Enrico Granata > > ACPI 5 added support for GpioInt resources as a way to provide > information about interrupts mediated via a GPIO controller. > > Several device buses (e.g. SPI, I2C) have support for retrieving > an IRQ specified via this type o

[PATCH 08/20] perf data: Add perf_data__(create_dir|close_dir) functions

2019-02-24 Thread Jiri Olsa
Adding perf_data__create_dir to create nr files inside struct perf_data path directory: int perf_data__create_dir(struct perf_data *data, int nr); and function to close that data: void perf_data__close_dir(struct perf_data *data); Link: http://lkml.kernel.org/n/tip-kl4s1f13cg6wycrg367p8...@gi

[PATCH 03/20] perf tools: Add rm_rf_perf_data function

2019-02-24 Thread Jiri Olsa
To remove perf.data including the directory, with checking on expected files and no other directories inside. Link: http://lkml.kernel.org/n/tip-co7i8qqliinktjw1limud...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/util.c | 11 +++ tools/perf/util/util.h | 1 + 2 files ch

[PATCH 10/20] perf data: Add directory support

2019-02-24 Thread Jiri Olsa
Adding support to have directory as perf.data. The caller needs to set 'struct perf_data::is_dir flag and the path will be treated as directory. The 'struct perf_data::file' is initialized and open as 'path/header' file. Adding check to direcory interface functions to check on is_dir flag. Link

[PATCH 17/20] perf session: Add path to reader object

2019-02-24 Thread Jiri Olsa
Adding path to reader object, so we can display file the processing fails for (string in [] brackets). $ perf report --stdio 0x5e0 [perf.data/data.3] [0xa200]: failed to process type: -1577027574 Link: http://lkml.kernel.org/n/tip-4bjnoy4sln7adqtd3505q...@git.kernel.org Signed-off-by: Jiri Ol

[PATCH 18/20] perf record: Add --dir option to store data in directory

2019-02-24 Thread Jiri Olsa
Adding --dir option to store data in directory. It's next step for multiple threads in record. It's now possible to make directory data via --dir option, like: $ perf record --dir perf bench sched messaging $ ls -l perf.data total 344 -rw---. 1 jolsa jolsa 43864 Jan 20 22:26 data.0 -

[PATCH 14/20] perf header: Add DIR_FORMAT feature to describe directory data

2019-02-24 Thread Jiri Olsa
The data files layout is described by HEADER_DIR_FORMAT feature. Currently it holds only version number (1): uint64_t version; The current version holds only version value (1) means that data files: - follow the 'data.*' name format - contain raw events data in standard perf format as

[PATCH 11/20] perf data: Don't store auxtrace index for directory data file

2019-02-24 Thread Jiri Olsa
We can't store auxtrace index when we store to multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Link: http://lkml.kernel.org/n/tip-og11od5s6nfxuf0ftxyu8...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/b

[PATCH 09/20] perf data: Add perf_data__open_dir_data function

2019-02-24 Thread Jiri Olsa
Adding perf_data__open_dir_data to open files inside struct perf_data path directory: static int perf_data__open_dir(struct perf_data *data); Link: http://lkml.kernel.org/n/tip-sv97z5mh9j273mz2cthza...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 59 +++

[PATCH 20/20] perf record: Describe perf.data directory format

2019-02-24 Thread Jiri Olsa
Adding perf.data-directory-format.txt to describe the directory data layout. Link: http://lkml.kernel.org/n/tip-1c8u1thx63v2ldwfdas4x...@git.kernel.org Signed-off-by: Jiri Olsa --- .../perf.data-directory-format.txt| 54 +++ 1 file changed, 54 insertions(+) create mo

[PATCH 13/20] perf data: Make perf_data__size to work over directory

2019-02-24 Thread Jiri Olsa
Making perf_data__size to return proper size for directory data. Link: http://lkml.kernel.org/n/tip-t4dm8cctat2ginmy2bb08...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 17 + tools/perf/util/data.h | 6 +- 2 files changed, 18 insertions(+), 5 deletio

[PATCH 15/20] perf session: Add process callback to reader object

2019-02-24 Thread Jiri Olsa
Adding callback function to reader object so callers can process data in different ways. Link: http://lkml.kernel.org/n/tip-8g1islzz6xkl36tz0z1nk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-

[PATCH 12/20] perf data: Add perf_data__update_dir function

2019-02-24 Thread Jiri Olsa
Adding perf_data__update_dir function to update size for every file within the perf.data directory. Link: http://lkml.kernel.org/n/tip-3ii12l48u4tyvrzxo1797...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 20 tools/perf/util/data.h | 1 + 2 files cha

[PATCH 19/20] perf record: Add --output-dir option to store data in directory

2019-02-24 Thread Jiri Olsa
Adding --output-dir option to mimic -o and --dir options. following commands do the same: $ perf record -o perf.dir.data --dir ... $ perf record --output-dir perf.dir.data ... User cannot use both -o and output-dir together, error is displayed. Link: http://lkml.kernel.org/n/tip-76ldd2ss6vjv

[PATCH 07/20] perf data: Fail check_backup in case of error

2019-02-24 Thread Jiri Olsa
And display the error message from removing the old data file: $ perf record ls Can't remove old data: Permission denied (perf.data.old) Perf session creation failed. $ perf record ls Can't remove old data: Unknown file found (perf.data.old) Perf session creation failed. Not sure how

[PATCH 16/20] perf session: Add __perf_session__process_dir_events function

2019-02-24 Thread Jiri Olsa
Adding __perf_session__process_dir_events function to process events over the directory data. All directory events are pushed into sessions ordered data and flushed for processing. Link: http://lkml.kernel.org/n/tip-n3zl0wo3z18tatv5x7epm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf

[PATCH 04/20] perf data: Move size to struct perf_data_file

2019-02-24 Thread Jiri Olsa
We are about to add support for multiple files, so we need each file to keep its size. Link: http://lkml.kernel.org/n/tip-gcf5gtwxds3ggegu6evl0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c | 5 ++--- tools/perf/util/data.c | 2 +- tools/perf/util/data.h |

[PATCH 01/20] perf tools: Add depth checking to rm_rf

2019-02-24 Thread Jiri Olsa
Adding depth argument to rm_rf (and renaming it to rm_rf_depth) to specify the depth we will go searching for files to remove. It will be used to specify single depth for perf.data directory removal in following patch. Link: http://lkml.kernel.org/n/tip-sylld4txjlqjc18nzhita...@git.kernel.org Sig

[PATCHv3 00/20] perf record: Add support to store data in directory

2019-02-24 Thread Jiri Olsa
hi, this patchset adds the --dir option to record command (and all the other record command that overload cmd_record) that allows the data to be stored in directory with multiple data files. It's next step for multiple threads implementation in record. It's now possible to make directory data via

[PATCH 06/20] perf data: Make check_backup work over directories

2019-02-24 Thread Jiri Olsa
Changing check_backup to call rm_rf_perf_data instead of unlink to work over directory paths. Also moving the call earlier in the code, before we fork for file/dir, so it can backup also directory data. Link: http://lkml.kernel.org/n/tip-j4lwm20en1yk1hsaqb8zp...@git.kernel.org Signed-off-by: Jiri

[PATCH 05/20] perf data: Add global path holder

2019-02-24 Thread Jiri Olsa
Adding path to the struct perf_data. It will keep the configured path for the data (const char*). The path in struct perf_data_file is now dynamically allocated (duped) from it. This scheme is useful/used in following patches where struct perf_data::path holds the 'configure' directory path and st

[PATCH 02/20] perf tools: Add pattern name checking to rm_rf

2019-02-24 Thread Jiri Olsa
Adding pattern argument to rm_rf_depth (and renaming it to rm_rf_depth_pat) to specify the name pattern files need to match inside the directory. The function fails if we find different file to remove. Link: http://lkml.kernel.org/n/tip-vnqs7ut0pnmrpih05xca6...@git.kernel.org Signed-off-by: Jiri O

Re: [PATCH 4.20 11/50] signal: Always notice exiting tasks

2019-02-24 Thread Jiri Slaby
On 19. 02. 19, 10:07, Greg Kroah-Hartman wrote: > On Tue, Feb 19, 2019 at 07:23:41AM +0100, Jiri Slaby wrote: >> On 13. 02. 19, 19:38, Greg Kroah-Hartman wrote: >>> 4.20-stable review patch. If anyone has any objections, please let me know. >>> >>> -- >>> >>> From: Eric W. Biederma

[ANNOUNCE] Git v2.21.0

2019-02-24 Thread Junio C Hamano
The latest feature release Git v2.21.0 is now available at the usual places. It is comprised of 500 non-merge commits since v2.20.0, contributed by 74 people, 20 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories

Re: [GIT] Networking

2019-02-24 Thread pr-tracker-bot
The pull request you sent on Sat, 23 Feb 2019 18:57:10 -0800 (PST): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c4eb1e1852df60d61e04a6b580a0490460c9e31b Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] KVM fixes for 5.0-rc8 or final

2019-02-24 Thread pr-tracker-bot
The pull request you sent on Sun, 24 Feb 2019 09:23:33 +0100: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c3619a482e15d98e1d2eb6b32952e753077e7545 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [GIT PULL v3] Hyper-V commits for 5.0-rc

2019-02-24 Thread Kimberly Brown
On Sun, Feb 24, 2019 at 09:17:10AM +0100, Greg KH wrote: > On Sat, Feb 23, 2019 at 10:55:33AM -0500, Sasha Levin wrote: > > On Sat, Feb 23, 2019 at 09:57:15AM +0100, Greg KH wrote: > > > On Fri, Feb 22, 2019 at 10:12:25PM -0500, Sasha Levin wrote: > > > > -BEGIN PGP SIGNED MESSAGE- > > > >

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-24 Thread Linus Torvalds
On Sun, Feb 24, 2019 at 7:18 AM Masami Hiramatsu wrote: > > On Sat, 23 Feb 2019 20:38:03 -0800 > Andy Lutomirski wrote: > > > > Can we just get rid of this might_sleep()? access_ok() doesn't sleep > > as far as I know. > > Hmm, which might_sleep() would you pointed? What I talked was a > WARN_ON

Re: [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile

2019-02-24 Thread Andreas Färber
Am 24.02.19 um 17:22 schrieb Andreas Klinger: > Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity > driver > > Signed-off-by: Andreas Klinger > --- > drivers/iio/proximity/Kconfig | 11 +++ > drivers/iio/proximity/Makefile | 1 + > 2 files changed, 12 insertions(+

RE: [PATCH v2 1/2] Drivers: hv: vmbus: Refactor chan->state if statement

2019-02-24 Thread Michael Kelley
From: Kimberly Brown Sent: Thursday, February 21, 2019 7:47 PM > > The chan->state "if statement" was introduced in commit 6712cc9c2211 > ("vmbus: don't return values for uninitalized channels"). That commit > states that the purpose of the chan->state "if statement" is to prevent > returning g

RE: [PATCH v2 2/2] Drivers: hv: vmbus: Add a channel ring buffer mutex lock

2019-02-24 Thread Michael Kelley
From: Kimberly Brown Sent: Thursday, February 21, 2019 7:47 PM > > The "_show" functions that access channel ring buffer data are > vulnerable to a race condition that can result in a NULL pointer > dereference. This problem was discussed here: > https://lkml.org/lkml/2018/10/18/779 > > To prev

Re: [PATCH 1/4] maxbotix,mb12x2.txt: add dt doc for maxbotix,mb12x2

2019-02-24 Thread Andreas Färber
Hi Andreas, Am 24.02.19 um 17:22 schrieb Andreas Klinger: > add dt doc for maxbotix,mb12x2 and also a new vendor prefix maxbotix Please don't mix the two. The subject prefix should be "dt-bindings:". Please compare git log. And please avoid putting the whole world in To rather than CC. > > Sign

Re: [PATCH net-next 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-24 Thread Florian Fainelli
Le 2/23/19 à 2:32 AM, Ido Schimmel a écrit : > On Fri, Feb 22, 2019 at 03:59:25PM -0800, Florian Fainelli wrote: >> Drop switchdev_ops.switchdev_port_attr_set. Drop the uses of this field >> from all clients, which were migrated to use switchdev notification in >> the previous patches. >> >> Add a

[PATCH 4/4] MAINTAINERS: add maintainer for maxbotix ultrasonic driver

2019-02-24 Thread Andreas Klinger
add a maintainer for the newly created ultrasonic driver familiy of maxbotix Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9919840d54cd..bbf1860d4227 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9226,6

[PATCH 3/4] mb12x2.c: add mb12x2 ultrasonic distance iio sensor

2019-02-24 Thread Andreas Klinger
Add MaxSonar-I2CXL ultrasonic distance sensors of type family mb12x2 using the i2c interface Implemented functionality: - reading the distance via in_distance_raw - buffered mode with trigger - make use of status gpio to announce completion of ranging Signed-off-by: Andreas Klinger --- drivers/

[PATCH 1/4] maxbotix,mb12x2.txt: add dt doc for maxbotix,mb12x2

2019-02-24 Thread Andreas Klinger
add dt doc for maxbotix,mb12x2 and also a new vendor prefix maxbotix Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb12x2.txt | 22 ++ .../devicetree/bindings/vendor-prefixes.txt| 1 + 2 files changed, 23 insertions(+) create mode 100644

[PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile

2019-02-24 Thread Andreas Klinger
Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity driver Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 11 +++ drivers/iio/proximity/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/pr

Re: [PATCH 0/3] Cover letter: Add support for high speed MAC in Cadence controller driver

2019-02-24 Thread Florian Fainelli
Hi, Le 2/22/19 à 12:11 PM, Parshuram Thombare a écrit : > Hello ! > > This patch series contain changes to support high speed MAC and PCS > in Cadence ethernet controller driver. >From patch submission perspective, your cover letter and individual patches do not appear as a reply to this cover l

[PATCH 0/4] add maxbotix ultrasonic iio driver

2019-02-24 Thread Andreas Klinger
This patch series adds support for MaxSonar-I2CXL ultrasonic distance sensors of family mb12x2 using the i2c interface of vendor maxbotix Implemented and tested functionality: - reading the distance via in_distance_raw - buffered mode with trigger - make use of status gpio to announce completi

Re: [PATCH net] staging: fsl-dpaa2: ethsw: Add missing netdevice check

2019-02-24 Thread Florian Fainelli
Le 2/23/19 à 12:45 AM, Ioana Ciornei a écrit : > >> Subject: [PATCH net] staging: fsl-dpaa2: ethsw: Add missing netdevice check >> >> port_switchdev_event() does not check that the target network device is >> actually backed by the ethsw driver, this could be problematic in a stacked >> environmen

Re: [PATCH 4/6] dt-bindings: display: armada: Add display subsystem binding

2019-02-24 Thread Lubomir Rintel
On Fri, 2019-02-22 at 14:23 -0600, Rob Herring wrote: > On Wed, Feb 13, 2019 at 4:37 PM Lubomir Rintel wrote: > > On Mon, 2019-01-21 at 09:35 -0600, Rob Herring wrote: > > > On Sun, Jan 20, 2019 at 11:26 AM Lubomir Rintel wrote: > > > > The Marvell Armada DRM master device is a virtual device nee

RE: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-24 Thread James Dong
Baolu: Yes, it is a generic issue for hotplug devices with current Intel IOMMU driver, as reported in this thread as well. The patch you provided does the job in our case. Please update this thread once your patch is merged. Thanks. Best Regards, James On 2/23/19 12:56 AM, Lu Baolu wrote > > @@

Re: [PATCH] badblocks: Prefer unsigned int over unsigned

2019-02-24 Thread Richard Weinberger
On Sun, Feb 24, 2019 at 4:38 PM Bharath Vedartham wrote: > I understand. I am starting out kernel hacking. I have been working on > fixing checkpatch.pl warnings. If you have any tasks for me in the > kernel, it would be great. > > I have also noticed a lot of warnings to replace printk with subsy

[PATCH v2] Documentation/process/howto: Update for 4.x -> 5.x versioning

2019-02-24 Thread Zenghui Yu
As linux-5.0 is coming up soon, the howto.rst document can be updated for the new kernel version. Change all 4.x references to 5.x now. Signed-off-by: Zenghui Yu --- Documentation/process/howto.rst | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Doc

[PATCH 04/11] perf tools report: Parse time quantum

2019-02-24 Thread Andi Kleen
From: Andi Kleen Many workloads change over time. perf report currently aggregates the whole time range reported in perf.data. This patch adds an option for a time quantum to quantisize the perf.data over time. This just adds the option, will be used in follow on patches for a time sort key. S

[PATCH 01/11] perf tools script: Handle missing fields with -F +..

2019-02-24 Thread Andi Kleen
From: Andi Kleen When using -F + syntax to add a field the existing defaults are currently all marked user_set. This can cause errors when some field is missing in the perf.data This patch tracks the actually user set fields separately, so that we don't error out in this case. Before: % perf r

Support sample context in perf report

2019-02-24 Thread Andi Kleen
We currently have two ways to look at sample data in perf: either use perf report to aggregate everything, or use perf script to look at all individual samples. Both ways are useful. Of course aggregation is useful to quickly find the most expensive part of the code. But sometimes a single sample

[PATCH 08/11] perf tools: Add perf_exe() helper to find perf binary

2019-02-24 Thread Andi Kleen
From: Andi Kleen Also convert one existing user. Signed-off-by: Andi Kleen --- tools/perf/util/header.c | 12 +++- tools/perf/util/util.c | 10 ++ tools/perf/util/util.h | 2 ++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/tools/perf/util/header.c b/tool

[PATCH 06/11] perf tools report: Use less for scripts output

2019-02-24 Thread Andi Kleen
From: Andi Kleen The UI viewer for scripts output has a lot of limitations: limited size, no search or save function, slow, and various other issues. Just use 'less' to display directly on the terminal instead. This won't work in gtk mode, but gtk doesn't support these context menus anyways. If

[PATCH 05/11] perf tools report: Support time sort key

2019-02-24 Thread Andi Kleen
From: Andi Kleen Add a time sort key to perf report to display samples for different time quantums separately. This allows easier analysis of workloads that change over time, and also will allow looking at the context of samples. % perf record ... % perf report --sort time,overhead,symbol --time

[PATCH 02/11] perf tools script: Support insn output for normal samples

2019-02-24 Thread Andi Kleen
From: Andi Kleen perf script -F +insn was only working for PT traces because the PT instruction decoder was filling in the insn/insn_len sample attributes. Support it for non PT samples too on x86 using the existing x86 instruction decoder. % perf record -a sleep 1 % perf script -F ip,sym,insn -

Re: [PATCH] badblocks: Prefer unsigned int over unsigned

2019-02-24 Thread Bharath Vedartham
On Sun, Feb 24, 2019 at 08:15:30AM -0700, Jens Axboe wrote: > On 2/24/19 7:19 AM, Bharath Vedartham wrote: > > Replace unsigned with unsigned int to improve readability. > > Frivolous change, would make a lot more sense to get checkpatch > to stop complaining about this. > > -- > Jens Axboe > I

[PATCH 07/11] perf tools report: Support running scripts for current time range

2019-02-24 Thread Andi Kleen
From: Andi Kleen When using the time sort key, add new context menus to run scripts for only the currently selected time range. Compute the correct range for the selection add pass it as the --time option to perf script. Signed-off-by: Andi Kleen --- tools/perf/ui/browsers/hists.c | 82 +++

[PATCH 10/11] perf tools: Add utility function to print ns time stamps

2019-02-24 Thread Andi Kleen
From: Andi Kleen Add a utility function to print nanosecond timestamps. Signed-off-by: Andi Kleen --- tools/perf/util/time-utils.c | 8 tools/perf/util/time-utils.h | 1 + 2 files changed, 9 insertions(+) diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index

[PATCH 11/11] perf tools report: Implement browsing of individual samples

2019-02-24 Thread Andi Kleen
From: Andi Kleen Now report can show whole time periods with perf script, but the user still has to find individual samples of interest manually. It would be expensive and complicated to search for the right samples in the whole perf file. Typically users only need to look at a small number of s

[PATCH 09/11] perf tools report: Support builtin perf script in scripts menu

2019-02-24 Thread Andi Kleen
From: Andi Kleen The scripts menu traditionally only showed custom perf scripts. Allow to run standard perf script with useful default options too. - Normal perf script - perf script with assembler (needs xed installed) - perf script with source code output (needs debuginfo) - perf script with

<    1   2   3   >