[PATCH] pinctrl: sunxi: fix a typo when merging A20 support to A10 driver

2017-12-28 Thread Icenowy Zheng
When merging A20 pinctrl support to A10 pinctrl driver, the I2C function of PI3 is wrongly written as "i2c3" (it should be "i2c4"). Fix this typo. Fixes: cad4e209c102 ("pinctrl: sunxi: add support of R40 to A10 pinctrl driver") Reported-by: Mark Kettenis Signed-off-by: Icenowy Zheng --- driver

[PATCH v2] lightnvm: pblk: clear flush point on completed writes

2017-12-28 Thread Hans Holmberg
Move completion of syncs and clearing of flush points to the write completion path - this ensures that the data has been comitted to the media before completing bios containing syncs. Signed-off-by: Hans Holmberg Signed-off-by: Javier González --- Changes since v1: * Fixed an off-by one issue

Re: [PATCH v4] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2017-12-28 Thread Jia Zhang
在 2017/12/28 下午8:24, Ingo Molnar 写道: > > * Jia Zhang wrote: > >> Instead of blacklisting all types of Broadwell processor when running >> a late loading, only BDW-EP (signature 0x406f1, aka family 6, model 79, >> stepping 1) with the microcode version less than 0x0b21 needs to >> be blackl

Re: niced tasks on SMT system

2017-12-28 Thread Mike Galbraith
On Thu, 2017-12-28 at 13:10 +0100, Pavel Machek wrote: > Hi! > > Ok, so I'm compiling, and I'd like to run a flight simulator. > > Flightgear normally does 20fps on my system... kinda low but playable. > > I have reniced make -j 5 fo kernel running. Scheduler gives 100% of > one of CPUs to Fligh

[PATCH] cifs: add .splice_write

2017-12-28 Thread Andrés Souto
add splice_write support in cifs vfs using iter_file_splice_write Signed-off-by: Andrés Souto --- fs/cifs/cifsfs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 8c8b75d3..ba2986bd 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -1068,

[PATCH v3 8/9] ufs: sysfs: flags

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS flags. The group adds "flags" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The flags are shown as boolean value ("true" or "false"). The full information about the UFS flags could be found at UFS specifications 2

[PATCH v3 6/9] ufs: sysfs: string descriptors

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS string descriptors. The group adds "string_descriptors" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The folder will contain 5 files that will show string values defined by the UFS spec: a manufacturer name, a pr

[PATCH v3 2/9] ufs: sysfs: interconnect descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS interconnect descriptor parameters. The group adds "interconnect_descriptor" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The parameters are shown as hexadecimal numbers. The full information about the parameters

[PATCH v3 7/9] ufs: sysfs: unit descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS unit descriptor parameters. The group adds "unit_descriptor" folder under the corresponding SCSI device sysfs entry (/sys/class/scsi_device/*/device/). The parameters are shown as hexadecimal numbers. The full information about the parameters co

[PATCH v3 9/9] ufs: sysfs: attributes

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS attributes. The group adds "attributes" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The attributes are shown as hexadecimal numbers. The full information about the attributes could be found at UFS specifications

[PATCH v3 4/9] ufs: sysfs: health descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS health descriptor parameters. The group adds "health_descriptor" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The parameters are shown as hexadecimal numbers. The full information about the parameters could be fo

[PATCH v3 5/9] ufs: sysfs: power descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS power descriptor parameters. The group adds "power_descriptor" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The parameters are shown as hexadecimal numbers. The full information about the parameters could be foun

[PATCH v3 0/9] ufs: sysfs: read-only access to device descriptors, attributes and flags

2017-12-28 Thread Stanislav Nijnikov
This patch introduces sysfs entries that will provide read-only access to device management data that could be received with UFS query requests. User-space applications will be able to read UFS device descriptors, flags and attributes. This will allow to get full UFS device configuration and its st

[PATCH v3 1/9] ufs: sysfs: device descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS device descriptor parameters. The group adds "device_descriptor" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The parameters are shown as hexadecimal numbers. The full information about the parameters could be fo

[PATCH v3 3/9] ufs: sysfs: geometry descriptor

2017-12-28 Thread Stanislav Nijnikov
This patch introduces a sysfs group entry for the UFS geometry descriptor parameters. The group adds "geometry_descriptor" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The parameters are shown as hexadecimal numbers. The full information about the parameters could b

rtc: sysfs: move sysfs interface to Documentation/ABI

2017-12-28 Thread Aishwarya Pant
Hi In Documentation/rtc.txt, there is a description of the sysfs interface which could be moved to Documentation/ABI. Would such a change be useful? The ABI documentation format looks like the following: What: (the full sysfs path of the attribute) Date: (date of creation) Ker

Re: BUG: workqueue lockup (2)

2017-12-28 Thread Dmitry Vyukov
On Thu, Dec 21, 2017 at 2:07 PM, Tetsuo Handa wrote: > Dmitry Vyukov wrote: >> On Wed, Dec 20, 2017 at 11:55 AM, Tetsuo Handa >> wrote: >> > Dmitry Vyukov wrote: >> >> On Tue, Dec 19, 2017 at 3:27 PM, Tetsuo Handa >> >> wrote: >> >> > syzbot wrote: >> >> >> >> >> >> syzkaller has found reproduce

[PATCH v4 05/15] dt-bindings: clock: Add jz4770-cgu.h header

2017-12-28 Thread Paul Cercueil
This will be used from the devicetree bindings to specify the clocks that should be obtained from the jz4770-cgu driver. Signed-off-by: Paul Cercueil --- include/dt-bindings/clock/jz4770-cgu.h | 57 ++ 1 file changed, 57 insertions(+) create mode 100644 include/d

[PATCH v4 14/15] devicetree/bindings: Add GCW vendor prefix

2017-12-28 Thread Paul Cercueil
Game Consoles Worldwide, mostly known under the acronym GCW, is the creator of the GCW Zero open-source video game system. Signed-off-by: Paul Cercueil Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) v2: It's 'Game Consoles

Re: INFO: task hung in cleanup_net

2017-12-28 Thread Dmitry Vyukov
On Tue, Dec 19, 2017 at 7:17 PM, David Ahern wrote: > On 12/19/17 5:47 AM, Dmitry Vyukov wrote: >> On Tue, Dec 19, 2017 at 1:33 PM, syzbot >> >> wrote: >>> Hello, >>> >>> syzkaller hit the following crash on >>> e40fd8d6b4d9f59b160faa1736f78fc07533ff37 >>> git://git.kernel.org/pub/scm/linux/kerne

Re: [PATCH v2 4/5] ARM: dts: Add support for emtrion emCON-MX6 series

2017-12-28 Thread Alexandre Belloni
On 26/12/2017 at 11:16:34 -0600, Rob Herring wrote: > On Fri, Dec 22, 2017 at 4:56 AM, Alexandre Belloni > wrote: > > + Philippe > > > > On 22/12/2017 at 11:43:33 +0100, Andreas Färber wrote: > >> >> I'll change it for v3 of this patch however it will end up like this: > >> >> //SPDX-License... >

[PATCH v4 12/15] MIPS: JZ4770: Work around config2 misreporting associativity

2017-12-28 Thread Paul Cercueil
From: Maarten ter Huurne According to config2, the associativity would be 5-ways, but the documentation states 4-ways, which also matches the documented L2 cache size of 256 kB. Signed-off-by: Maarten ter Huurne --- arch/mips/mm/sc-mips.c | 9 + 1 file changed, 9 insertions(+) v2: No

[PATCH v4 10/15] MIPS: ingenic: Add machine info for supported boards

2017-12-28 Thread Paul Cercueil
This makes sure that 'mips_machtype' will be initialized to the SoC version used on the board. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 + arch/mips/jz4740/Makefile | 2 +- arch/mips/jz4740/boards.c | 16 arch/mips/jz4740/setup.c | 34 +++

[PATCH v4 11/15] MIPS: ingenic: Initial JZ4770 support

2017-12-28 Thread Paul Cercueil
Provide just enough bits (clocks, clocksource, uart) to allow a kernel to boot on the JZ4770 SoC to a initramfs userspace. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4770.dtsi | 210 + arch/mips/jz4740/Kconfig | 6 + arch/mips/jz

[PATCH v4 08/15] MIPS: ingenic: Use common cmdline handling code

2017-12-28 Thread Paul Cercueil
From: Paul Burton jz4740_init_cmdline appends all arguments from argv (in fw_arg1) to arcs_cmdline, up to argc (in fw_arg0). The common code in fw_init_cmdline will do the exact same thing when run on a system where fw_arg0 isn't a pointer to kseg0 (it'll also set _fw_envp but we don't use it). R

[PATCH v4 09/15] MIPS: platform: add machtype IDs for more Ingenic SoCs

2017-12-28 Thread Paul Cercueil
Add a machtype ID for the JZ4780 SoC, which was missing, and one for the newly supported JZ4770 SoC. Signed-off-by: Paul Cercueil --- arch/mips/include/asm/bootinfo.h | 2 ++ 1 file changed, 2 insertions(+) v2: No change v3: No change v4: No change diff --git a/arch/mips/include/asm/bootinf

[PATCH v4 15/15] MIPS: ingenic: Initial GCW Zero support

2017-12-28 Thread Paul Cercueil
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused handheld game console, successfully kickstarted in ~2012, running Linux. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/Makefile | 1 + arch/mips/boot/dts/ingenic/gcw0.dts | 60 + a

[PATCH v4 13/15] MIPS: JZ4770: Workaround for corrupted DMA transfers

2017-12-28 Thread Paul Cercueil
From: Maarten ter Huurne We have seen MMC DMA transfers read corrupted data from SDRAM when a burst interval ends at physical address 0x1000. To avoid this problem, we remove the final page of low memory from the memory map. Signed-off-by: Maarten ter Huurne --- arch/mips/jz4740/setup.c |

[PATCH v4 07/15] MIPS: Setup boot_command_line before plat_mem_setup

2017-12-28 Thread Paul Cercueil
From: Paul Burton Platforms using DT will typically call __dt_setup_arch from plat_mem_setup. This in turn calls early_init_dt_scan. When CONFIG_CMDLINE is set, this leads to its value being copied into boot_command_line by early_init_dt_scan_chosen. If this happens before the code setting up boo

Re: WARNING in __wake_up_common

2017-12-28 Thread Mike Rapoport
On Thu, Dec 28, 2017 at 10:30:46AM +0100, Dmitry Vyukov wrote: > On Thu, Dec 28, 2017 at 10:20 AM, syzbot > wrote: > > Hello, > > > > syzkaller hit the following crash on > > 82bcf1def3b5f1251177ad47c44f7e17af039b4b > > git://git.cmpxchg.org/linux-mmots.git/master > > compiler: gcc (GCC) 7.1.1 201

[PATCH v4 06/15] clk: Add Ingenic jz4770 CGU driver

2017-12-28 Thread Paul Cercueil
Add support for the clocks provided by the CGU in the Ingenic JZ4770 SoC. Signed-off-by: Paul Cercueil Signed-off-by: Maarten ter Huurne --- drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/jz4770-cgu.c | 487 +++ 2 files changed, 488 insertions(

[PATCH v4 03/15] clk: ingenic: support PLLs with no bypass bit

2017-12-28 Thread Paul Cercueil
The second PLL of the JZ4770 does not have a bypass bit. This commit makes it possible to support it with the current common CGU code. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 3 ++- drivers/clk/ingenic/cgu.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) v2: No ch

[PATCH v4 02/15] clk: ingenic: Fix recalc_rate for clocks with fixed divider

2017-12-28 Thread Paul Cercueil
Previously, the clocks with a fixed divider would report their rate as being the same as the one of their parent, independently of the divider in use. This commit fixes this behaviour. This went unnoticed as neither the jz4740 nor the jz4780 CGU code have clocks with fixed dividers yet. Signed-of

Re: [PATCH v1] x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const"

2017-12-28 Thread Julia Lawall
On Thu, 28 Dec 2017, Ingo Molnar wrote: > > * Julia Lawall wrote: > > > > > [...] There does seem to be a few cases where the field actually does > > > > hold an > > > > integer. I guess this is not a problem? > > > > > > Could you point to such an example? > > > > drivers/thermal/intel_soc_d

[PATCH v4 04/15] clk: ingenic: Add code to enable/disable PLLs

2017-12-28 Thread Paul Cercueil
This commit permits the PLLs to be dynamically enabled and disabled when their children clocks are enabled and disabled. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 89 +++ 1 file changed, 74 insertions(+), 15 deletions(-) v2: No cha

[PATCH v2 1/9] dt-bindings: media: Add Renesas CEU bindings

2017-12-28 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi --- .../devicetree/bindings/media/renesas,ceu.txt | 85 ++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/renesas,ceu.txt diff --g

[PATCH v2 4/9] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2017-12-28 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi --- arch/arm/boot/dts/r7s72100.dtsi | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index ab9645a..b09b032 100644

Re: [PATCH IMPROVEMENT] block, bfq: limit sectors served with interactive weight raising

2017-12-28 Thread Holger Hoffstätte
On 12/28/17 12:19, Paolo Valente wrote: (snip half a tech report ;) So either this or the previous patch ("limit tags for writes and async I/O" can lead to a hard, unrecoverable hang with heavy writes. Since I couldn't log into the affected system anymore I couldn't get any stack traces, blk-mq d

[PATCH v4 01/15] clk: ingenic: Use const pointer to clk_ops in struct

2017-12-28 Thread Paul Cercueil
The CGU common code does not modify the pointed clk_ops structure, so it should be marked as const. Signed-off-by: Paul Cercueil Acked-by: Stephen Boyd --- drivers/clk/ingenic/cgu.h| 2 +- drivers/clk/ingenic/jz4780-cgu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) v2: Ne

[PATCH v2 0/9] Renesas Capture Engine Unit (CEU) V4L2 driver

2017-12-28 Thread Jacopo Mondi
Hello, second round for Renesas CEU driver. I have closed review comments received on v1 and tested again on RZ and SH4 platforms to capture images in all available output formats (NV16/61, NV12/21 and YUYV). The patch is now based on v4.15-rc4, with a few patches on top to help testing on Migo

[PATCH v4 00/15] Ingenic JZ4770 and GCW Zero support

2017-12-28 Thread Paul Cercueil
Hi, This is my v4 of my patch series to support the JZ4770 SoC from Ingenic as well as the GCW Zero handheld console. Not much changed since v3, I dropped the three serial-related patches (07-08-09/18) as I will submit them separately. The only other change is that I rebased the patch series on t

[PATCH v2 6/9] v4l: i2c: Copy ov772x soc_camera sensor driver

2017-12-28 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v2 9/9] media: i2c: tw9910: Remove soc_camera dependencies

2017-12-28 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera

[PATCH v2 7/9] media: i2c: ov772x: Remove soc_camera dependencies

2017-12-28 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Change image format colorspace to SRGB - Remove sizes crop from get_selection as driver can't scale - Add kernel doc to d

[PATCH v2 8/9] v4l: i2c: Copy tw9910 soc_camera sensor driver

2017-12-28 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v2 5/9] arch: sh: migor: Use new renesas-ceu camera driver

2017-12-28 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform sp

[PATCH v2 3/9] v4l: platform: Add Renesas CEU driver

2017-12-28 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach. T

[PATCH v2 2/9] include: media: Add Renesas CEU driver interface

2017-12-28 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi --- include/media/drv-intf/renesas-ceu.h | 20 1 file changed, 20 insertions(+) create mode 100644 include/media/drv-int

[PATCH] ARM: dts: sun8i: fix USB Ethernet of Orange Pi R1

2017-12-28 Thread Icenowy Zheng
Orange Pi R1 uses a Realtek RTL8152B USB Ethernet chip, which is easily seen on the board but not show in the schematics. A regulator for the power of the RTL8152B chip is hidden, which uses the same pin with the Wi-Fi regulator on the original Orange Pi Zero. Add this regulator back to the device

Re: [PATCH] pinctrl: sunxi: fix a typo when merging A20 support to A10 driver

2017-12-28 Thread Linus Walleij
On Thu, Dec 28, 2017 at 2:20 PM, Icenowy Zheng wrote: > When merging A20 pinctrl support to A10 pinctrl driver, the I2C function > of PI3 is wrongly written as "i2c3" (it should be "i2c4"). > > Fix this typo. > > Fixes: cad4e209c102 ("pinctrl: sunxi: add support of R40 to A10 pinctrl > driver")

Re: INFO: task hung in filemap_fault

2017-12-28 Thread Dmitry Vyukov
On Mon, Dec 18, 2017 at 3:52 PM, Tetsuo Handa wrote: > On 2017/12/18 17:43, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on 6084b576dca2e898f5c101baef151f7bfdbb606d >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC) 7.1.1 20170620

Re: WARNING in __wake_up_common

2017-12-28 Thread Dmitry Vyukov
On Thu, Dec 28, 2017 at 2:58 PM, Mike Rapoport wrote: > On Thu, Dec 28, 2017 at 10:30:46AM +0100, Dmitry Vyukov wrote: >> On Thu, Dec 28, 2017 at 10:20 AM, syzbot >> wrote: >> > Hello, >> > >> > syzkaller hit the following crash on >> > 82bcf1def3b5f1251177ad47c44f7e17af039b4b >> > git://git.cmpx

Re: [PATCH net-next 1/6] phy: add 2.5G SGMII mode to the phy_mode enum

2017-12-28 Thread Florian Fainelli
On 12/28/2017 02:06 AM, Antoine Tenart wrote: > Hi Andrew, > > On Thu, Dec 28, 2017 at 08:20:53AM +0100, Andrew Lunn wrote: >> On Wed, Dec 27, 2017 at 11:14:41PM +0100, Antoine Tenart wrote: >>> This patch adds one more generic PHY mode to the phy_mode enum, to allow >>> configuring generic PHYs

Re: rtc: sysfs: move sysfs interface to Documentation/ABI

2017-12-28 Thread Ozgur
28.12.2017, 17:22, "Ozgur" : > 28.12.2017, 16:31, "Aishwarya Pant" : >>  Hi Hello, >>  In Documentation/rtc.txt, there is a description of the sysfs >>  interface which could be moved to Documentation/ABI. >> >>  Would such a change be useful? >> >>  The ABI documentation format looks like the

[tip:locking/urgent] futex: Sanitize user address in set_robust_list()

2017-12-28 Thread tip-bot for Peter Zijlstra
Commit-ID: 8f3365e34f7519904d78d9fb6dd9e4bae606b9b5 Gitweb: https://git.kernel.org/tip/8f3365e34f7519904d78d9fb6dd9e4bae606b9b5 Author: Peter Zijlstra AuthorDate: Wed, 6 Dec 2017 22:40:08 +0100 Committer: Thomas Gleixner CommitDate: Thu, 28 Dec 2017 15:19:12 +0100 futex: Sanitize user

[GIT PULL 00/35] perf/core improvements and fixes

2017-12-28 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit faaf95677f33dac910b6cbe917cabea43c8c1616: Merge branch 'perf/urgent' into perf/core, to pick up fixes (2017-12-18 18:13:00 +0100) are available in the

[PATCH 01/35] perf stat: Define a structure for per-thread shadow stats

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao Perf has a set of static variables to record the runtime shadow metrics stats. While if we want to record the runtime shadow stats for per-thread, it will be the limitation. This patch creates a structure and the next patches will use this structure to update the runtime shadow sta

[PATCH 03/35] perf stat: Create the runtime_stat init/exit function

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao It mainly initializes and releases the rblist which is defined in struct runtime_stat. For the original rblist 'runtime_saved_values', it's still kept there for keeping the patch bisectable. The rblist 'runtime_saved_values' will be removed in later patch at switching time. Signe

[PATCH 04/35] perf stat: Update per-thread shadow stats

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao The functions perf_stat__update_shadow_stats() is called to update the shadow stats on a set of static variables. But the static variables are the limitations to be extended to support per-thread shadow stats. This patch lets the perf_stat__update_shadow_stats() support to update

[PATCH 10/35] perf stat: Remove --per-thread pid/tid limitation

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao Currently, if we execute 'perf stat --per-thread' without specifying pid/tid, perf will return error. root@skl:/tmp# perf stat --per-thread The --per-thread option is only available when monitoring via -p -t options. -p, --pidstat events on existing process id -t, -

[PATCH 09/35] perf thread_map: Enumerate all threads from /proc

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao This patch calls thread_map__new_all_cpus() to enumerate all threads from /proc if per-thread flag is enabled. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1512482591-4646-10-

[PATCH 11/35] perf stat: Resort '--per-thread' result

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao There are many threads reported if we enable '--per-thread' globally. 1. Most of the threads are not counted or counting value 0. This patch removes these threads. 2. We also resort the threads in display according to the counting value. It's useful for user to see the hottest thr

[PATCH 12/35] perf utils: Move is_directory() to path.h

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So that it can be used more widely, like in the next patch, when it will be used to fix a bug in 'perf test' handling of dirent.d_type == DT_UNKNOWN. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/

[PATCH 05/35] perf stat: Print per-thread shadow stats

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao The function perf_stat__print_shadow_stats() is called to print the shadow stats on a set of static variables. But the static variables are the limitations to support per-thread shadow stats. This patch lets the perf_stat__print_shadow_stats() support to print the shadow stats fro

[PATCH 06/35] perf stat: Remove a set of shadow stats static variables

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao In previous patches, we have reconstructed the code and let it not access the static variables directly. This patch removes these static variables. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http:/

[PATCH 19/35] perf annotate: Use perf_env when obtaining the arch name

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Paving the way to reuse these routines in other areas, like when generating errno tables. Cc: Adrian Hunter Cc: David Ahern Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Thomas Richter Cc: Wang Nan Link: https://lkml.kernel.org

[PATCH 28/35] perf test shell: Fix check open filename arg using 'perf trace'

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Michael Petlan Commit f231af789b11 ("perf test shell: Fix check open filename arg using 'perf trace' on s390x") added an exception for s390x to use openat() instead of open() in the test that intercepts a open syscall to look for the filename argument as obtained by the vfs_getname 'perf pr

[PATCH 26/35] perf probe: Support escaped character in parser

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Support the special characters escaped by '\' in parser. This allows user to specify versions directly like below. = # ./perf probe -x /lib64/libc-2.25.so malloc_get_state\\@GLIBC_2.2.5 Added new event: probe_libc:malloc_get_state (on malloc_get_state@GLIBC_

[PATCH 20/35] perf env: Adopt perf_env__arch() from the annotate code

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And use it in the libunwind case, with both passing a valid perf_env to extract the arch to be normalized from and passing NULL with the same semantic as in the annotate code: to get it from uname() uts.machine. Now the code to generate per arch errno translation t

[PATCH 24/35] perf probe: Find versioned symbols from map

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Commit d80406453ad4 ("perf symbols: Allow user probes on versioned symbols") allows user to find default versioned symbols (with "@@") in map. However, it did not enable normal versioned symbol (with "@") for perf-probe. E.g. = # ./perf probe -x /lib64/libc-2.25.s

[PATCH 30/35] perf s390: Always build with -fPIC

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner On s390, object files must be compiled with position-indepedent code in order to be incrementally linked or linked to shared libraries. Therefore, add -fPIC to the CFLAGS for s390 to ensure each object file is built properly. Reported-by: Jonathan Hermann Signed-off-by:

[PATCH 17/35] perf trace: Use generated syscall table on s390 too

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86. Signed-off-by: Hend

[PATCH 16/35] perf s390: Generate system call table from asm/unistd.h

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Committer testing: $ rm -rf /tmp/build/perf $ mkdir /tmp/build/perf $ make srctree=/home/acme/git/perf -C tools/perf/arch/s390 OUTP

[PATCH 22/35] perf probe: Cut off the version suffix from event name

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from automatic generated event name. This fixes wildcard event adding like below case; = # perf probe -x /lib64/libc-2.25.so malloc* Internal error: "malloc_get_state@GLIBC_2" is wrong event name. Error: Fai

[PATCH 32/35] perf probe arm64: Fix symbol fixup issues due to ELF type

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Kim Phillips On an arm64 machine running a CONFIG_RANDOMIZE_BASE=y kernel, perf kernel symbol resolution fails. Debugging saw symsrc_init calling the default elf__needs_adjust_symbols() where checks for an ET_DYN (3) ehdr.e_type failed when they should have succeeded. Fix by adopting powe

[PATCH 33/35] perf tool: Improve bash command line auto-complete for multiple events with comma

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao perf has perf-completion.sh to define command line auto-completion in bash/zsh. For record/stat -e it works for single events, but isn't working when specifying multiple events with comma. It would be very useful if it could be fixed to make it easier by supporting multiple events

[PATCH 35/35] perf tools: Auto-complete for events with ':'

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao It's a follow up patch for a previous patch "perf tool: Return all events as auto-completions after comma". With this patch, auto-completion can work well for events with a ':'. For example: root@skl:/tmp# perf stat -e block:block_ block:block_bio_backmerge block:block_rq_co

[PATCH 34/35] perf tools: Return all events as auto-completions after comma

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao It's a follow up for one previous patch "perf tool: Improve bash command line auto-complete for multiple events with comma." It fixes an issue that no events are displayed when is directly typed after comma. With this patch, now the result is: root@skl:/tmp# perf stat -e cpu-c

[PATCH] pinctrl: tegra: Delete two error messages for a failed memory allocation in tegra_pinctrl_probe()

2017-12-28 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 28 Dec 2017 15:15:08 +0100 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/tegra/pinctrl-tegra.c | 9 +++-- 1 file changed, 3 i

[PATCH 31/35] perf evsel: Enable ignore_missing_thread for pid option

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Mengting Zhang While monitoring a multithread process with pid option, perf sometimes may return sys_perf_event_open failure with 3(No such process) if any of the process's threads die before we open the event. However, we want perf continue monitoring the remaining threads and do not exit

[PATCH 29/35] Revert "perf s390: Always build with -fPIC"

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This one made x86 always build with -fPIC, when the intention was for s390 to be built that way, due to a rebase mistake. Reported-by: Hendrik Brueckner This reverts commit 1dc4ddf112a408e607a073d951b962b6c6e2bd6c. Signed-off-by: Arnaldo Carvalho de Melo --- to

[PATCH 27/35] perf evsel: Fix swap for samples with raw data

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa When we detect a different endianity we swap event before processing. It's tricky for samples because we have no idea what's inside. We treat it as an array of u64s, swap them and later on we swap back parts which are different. We mangle this way also the tracepoint raw data, wh

[PATCH 21/35] perf probe: Add warning message if there is unexpected event name

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu This improve the error message so that user can know event-name error before writing new events to kprobe-events interface. E.g. == #./perf probe -x /lib64/libc-2.25.so malloc_get_state* Internal error: "malloc_get_state@GLIBC_2" is an invalid event name.

[PATCH 23/35] perf probe: Add __return suffix for return events

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Add __return suffix for function return events automatically. Without this, user have to give --force option and will see the number suffix for each event like "function_1", which is not easy to recognize. Instead, this adds __return suffix to it automatically. E.g. ===

[PATCH 25/35] perf string: Add {strdup,strpbrk}_esc()

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu To support the special characters escaped by '\' in 'perf probe' event parser. Signed-off-by: Masami Hiramatsu Reviewed-by: Thomas Richter Acked-by: Ravi Bangoria Cc: Paul Clarke Cc: bhargavb Cc: linux-rt-us...@vger.kernel.org Link: http://lkml.kernel.org/r/151275052

[PATCH 18/35] perf annotate: Get the cpuid from evsel->evlist->env in symbol__annotate()

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce its function signature, since we get this from 'evsel' which is already one of its arguments. Cc: Adrian Hunter Cc: David Ahern Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Thomas Richter Cc: Wang Nan Link: https://l

[PATCH 13/35] perf test: Handle properly readdir DT_UNKNOWN

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Some system can return DT_UNKNOWN in readdir's struct dirent::d_type and we must handle it properly. In this case we can directly check if the entity we found is directory and skip it. Reported-by: Michael Petlan Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: P

[PATCH 15/35] tools include s390: Grab a copy of arch/s390/include/uapi/asm/unistd.h

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner Will be used for generating the syscall id/string translation table. Signed-off-by: Hendrik Brueckner Reviewed-by: Thomas Richter Cc: Jiri Olsa Cc: Michael Petlan Cc: linux-s...@vger.kernel.org LPU-Reference: 1512635281-20733-2-git-send-email-brueck...@linux.vnet.ibm.

[PATCH 14/35] perf perf: Remove duplicate includes

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Pravin Shedge These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives. Signed-off-by: Pravin Shedge Cc: David S. Miller Cc: Greg Kroah-Hartman Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Thomas Gleixner Lin

[PATCH 07/35] perf stat: Allocate shadow stats buffer for threads

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao After perf_evlist__create_maps() being executed, we can get all threads from /proc. And via thread_map__nr(), we can also get the number of threads. With the number of threads, the patch allocates a buffer which will record the shadow stats for these threads. The buffer pointer is

[PATCH 08/35] perf stat: Update or print per-thread stats

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao If the stats pointer in stat_config structure is not null, it will update the per-thread stats or print the per-thread stats on this buffer. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http://lkml.ke

[PATCH 02/35] perf stat: Extend rbtree to support per-thread shadow stats

2017-12-28 Thread Arnaldo Carvalho de Melo
From: Jin Yao Previously the rbtree was used to link generic metrics. This patches adds new ctx/type/stat into rbtree keys because we will use this rbtree to maintain shadow metrics to replace original a couple of static arrays for supporting per-thread shadow stats. Signed-off-by: Jin Yao Ack

Re: [PATCH v6 06/18] PCI: designware-ep: Add generic function for raising MSI irq

2017-12-28 Thread Kishon Vijay Abraham I
Hi Niklas, On Thursday 28 December 2017 01:36 PM, Kishon Vijay Abraham I wrote: > Hi Niklas, > > On Thursday 28 December 2017 03:59 AM, Niklas Cassel wrote: >> On Tue, Dec 26, 2017 at 06:20:54PM +0530, Kishon Vijay Abraham I wrote: >>> Hi Niklas, >> >> Hello Kishon >> >>> >>> On Wednesday 20 Dece

[PATCH v2] dt: psci: Update DT bindings to support hierarchical PSCI states

2017-12-28 Thread Ulf Hansson
From: Lina Iyer Update DT bindings to represent hierarchical CPU and CPU domain idle states for PSCI. Also update the PSCI examples to clearly show how flattened and hierarchical idle states can be represented in DT. Signed-off-by: Lina Iyer Signed-off-by: Ulf Hansson --- Changes in v2:

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-28 Thread Thomas Gleixner
On Thu, 28 Dec 2017, Alexandru Chirvasitu wrote: > On Thu, Dec 28, 2017 at 12:00:47PM +0100, Thomas Gleixner wrote: > > Ok, lets take a step back. The bisect/kexec attempts led us away from the > > initial problem which is the machine locking up after login, right? > > > > Yes; sorry about that..

[tip:locking/urgent 1/1] kernel/futex.c:3276:11: error: 'EMORON' undeclared; did you mean 'ELOOP'?

2017-12-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/urgent head: 8f3365e34f7519904d78d9fb6dd9e4bae606b9b5 commit: 8f3365e34f7519904d78d9fb6dd9e4bae606b9b5 [1/1] futex: Sanitize user address in set_robust_list() config: sparc64-allmodconfig (attached as .config) compiler:

Re: rtc: sysfs: move sysfs interface to Documentation/ABI

2017-12-28 Thread Aishwarya Pant
On Thu, Dec 28, 2017 at 05:23:33PM +0300, Ozgur wrote: > > > 28.12.2017, 17:22, "Ozgur" : > > 28.12.2017, 16:31, "Aishwarya Pant" : > >>  Hi > > Hello, > > >>  In Documentation/rtc.txt, there is a description of the sysfs > >>  interface which could be moved to Documentation/ABI. > >> > >>  Wo

Re: [PATCH net-next 5/6] arm64: dts: marvell: mcbin: enable the fourth network interface

2017-12-28 Thread Florian Fainelli
On 12/28/2017 02:05 AM, Antoine Tenart wrote: > Hi Andrew, > > On Thu, Dec 28, 2017 at 08:46:23AM +0100, Andrew Lunn wrote: >> On Wed, Dec 27, 2017 at 10:24:01PM +, Russell King - ARM Linux wrote: >>> On Wed, Dec 27, 2017 at 11:14:45PM +0100, Antoine Tenart wrote: +&cps_eth2 { >>

[PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2017-12-28 Thread Yury Norov
This patchset replaces bitmap_{to,from}_u32array with more simple and standard looking copy-like functions. bitmap_from_u32array() takes 4 arguments (bitmap_to_u32array is similar): - unsigned long *bitmap, which is destination; - unsigned int nbits, the length of destination bitmap, in bits; -

Re: [PATCH 4/5] Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove

2017-12-28 Thread Thomas Gleixner
On Fri, 8 Dec 2017, David Howells wrote: > #define INIT_CPU_TIMERS(s) \ > .cpu_timers = { \ > LIST_HEAD_INIT(s.cpu_timers[0]),\ > LIST_HEAD_INIT(s.cpu

<    2   3   4   5   6   7   8   9   >