Re: [PATCH] usb: Convert to using %pOF instead of full_name

2017-07-19 Thread Rob Herring
On Wed, Jul 19, 2017 at 2:40 AM, Felipe Balbi wrote: > > Hi, > > Rob Herring writes: >> Now that we have a custom printf format specifier, convert users of >> full_name to use %pOF instead. This is preparation to remove storing >> of the full path string for each node. >> >> Signed-off-by: Rob He

Re: [PATCH 1/1] mm/slub.c: add a naive detection of double free or corruption

2017-07-19 Thread Christopher Lameter
On Tue, 18 Jul 2017, Kees Cook wrote: > I think there are two issues: first, this should likely be under > CONFIG_FREELIST_HARDENED since Christoph hasn't wanted to make these > changes enabled by default (if I'm understanding his earlier review > comments to me). The second issue is what to DO wh

[PATCH 09/86] perf trace beauty: Allow accessing syscall args values in a syscall arg formatter

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For instance, fcntl's upcoming 'arg' formatter needs to look at the 'cmd' value to decide how to format its value, sometimes it is a file flags, sometimes an fd, a pointer to a structure, etc. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc:

[PATCH 08/86] perf trace beauty: Mask ignored fcntl 'arg' parameter

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo A series of fcntl cmds ignore the third argument, so mask it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-6vtl3zq1tauamrhm8o380...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 07/86] perf trace: Only build tools/perf/trace/beauty/ when building 'perf trace'

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As it calls functions in builtin-trace.c. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-bt3lhw1rvy3jzbsp2fvve...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Build |

[PATCH 06/86] perf trace beauty: Export the strarrays scnprintf method

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As we'll call it from the fcntl cmd scnprintf method, that needs to look at the cmd to mask the next fcntl argument when it is ignored. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-fzlvkhew5vb

[PATCH 05/86] tools: Update include/uapi/linux/fcntl.h copy from the kernel

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in the commit c75b1d9421f8 ("fs: add fcntl() interface for setting/getting write life time hints"). Silencing this perf build warning: Warning: include/uapi/linux/fcntl.h differs from kernel We already beautify the fcntl cmd argument, so an u

[PATCH 04/86] perf trace: Beautify linux specific fcntl commands

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were only beautifying (transforming from an integer to its name) the non-linux specific fcntl syscall cmd args, fix it: Before: # perf trace -e fcntl -p 2472 0.000 ( 0.017 ms): gnome-terminal/2472 fcntl(fd: 55, cmd: 1030) = 56 ^C# After: # trace -e

[PATCH 03/86] perf trace: Remove F_ from some of the fcntl command strings

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The initial ones already had that "F_" prefix stripped to make things shorter, some hadn't, do it now. We do this to make the 'perf trace' output more compact. At some point perhaps the best thing to do is to have the tool do this stripping automatically, letting t

Re: [PATCH 0/3] simulated interrupts

2017-07-19 Thread Thomas Gleixner
On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > 2017-07-19 14:25 GMT+02:00 Thomas Gleixner : > > On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > > > >> Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated > >> interrupts that can be 'fired' from process context when needed a

[PATCH 02/86] perf annotate: Implement visual marker for macro fusion

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Jin Yao For marking fused instructions clearly this patch adds a line before the first instruction of pair and joins it with the arrow of the jump to its target. For example, when "je" is selected in annotate view, the line before cmpl is displayed and joins the arrow of "je". │

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

2017-07-19 Thread Arnaldo Carvalho de Melo
Hi Ingo, Unusually big one, please conside pulling, details on the signed tag, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 4b1303d0b01440f224cf81493b7e8e43d9b4965e: perf symbols: Accept zero as the kernel base address (2017-07-12 11

[PATCH 01/86] perf annotate: Check for fused instructions

2017-07-19 Thread Arnaldo Carvalho de Melo
From: Jin Yao Macro fusion merges two instructions to a single micro-op. Intel core platform performs this hardware optimization under limited circumstances. For example, CMP + JCC can be "fused" and executed /retired together. While with sampling this can result in the sample sometimes being on

[PATCH] drivers: staging: comedi: Add ftrace support

2017-07-19 Thread Piotr Gregor
This patch originates from the need to measure latency introduced by driver for Amplicon's PCIE215 during interrupt handling. Added is a single ftrace event: /* * Tracepoint for calling from various places inside Comedi. * Takes simple id and prints it to the trace log if trace * events from Come

Re: [patch v3 2/5] acpi / boot: correct address space of __acpi_map_table()

2017-07-19 Thread Andy Shevchenko
On Wed, 2017-07-19 at 16:40 +0300, Yury Norov wrote: > On Wed, Jul 19, 2017 at 04:06:36PM +0300, yury norov wrote: > > I just found this patch in next tree, and it seems it breaks build > > for > > arm64, and probably for ia64: I think you found previous version (v1). _This_ patch (v3 of it) actu

Re: Kernel BUG at fs/namei.c:248

2017-07-19 Thread Al Viro
On Wed, Jul 19, 2017 at 03:54:54PM +0530, Naresh Kamboju wrote: > Linux version: > Linux version 4.13.0-rc1-00059-g74cbd96 (buildslave@x86-64-07) (gcc > version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)) #1 SMP PREEMPT Tue > Jul 18 19:09:37 UTC 2017 > > [ 1245.412625] kernel BUG at > /srv/oe/build/t

Re: [PATCH v6 3/3] clk: stm32h7: Add stm32h743 clock driver

2017-07-19 Thread Gabriel FERNANDEZ
Hi Vladimi, Many thanks for the code review On 07/18/2017 10:19 PM, Vladimir Zapolskiy wrote: > Hello Gabriel, > > On 07/18/2017 10:53 AM, gabriel.fernan...@st.com wrote: >> From: Gabriel Fernandez >> >> This patch enables clocks for STM32H743 boards. >> >> Signed-off-by: Gabriel Fernandez >> >

Re: [PATCH 1/9] mm, page_alloc: rip out ZONELIST_ORDER_ZONE

2017-07-19 Thread Michal Hocko
On Wed 19-07-17 11:33:49, Vlastimil Babka wrote: > On 07/14/2017 09:59 AM, Michal Hocko wrote: > > From: Michal Hocko > > > > Supporting zone ordered zonelists costs us just a lot of code while > > the usefulness is arguable if existent at all. Mel has already made > > node ordering default on 64

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-19 Thread Peter Zijlstra
On Tue, Jul 18, 2017 at 11:14:57AM +0800, Li, Aubrey wrote: > On 2017/7/18 3:23, Peter Zijlstra wrote: > > On Fri, Jul 14, 2017 at 09:26:19AM -0700, Andi Kleen wrote: > >>> And as said; Daniel has been working on a better predictor -- now he's > >>> probably not used it on the network workload you'

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-19 Thread Frederic Weisbecker
On Wed, Jul 12, 2017 at 08:56:51AM -0700, Paul E. McKenney wrote: > On Wed, Jul 12, 2017 at 01:54:51PM +0200, Peter Zijlstra wrote: > > On Tue, Jul 11, 2017 at 11:09:31AM -0700, Paul E. McKenney wrote: > > > On Tue, Jul 11, 2017 at 06:34:22PM +0200, Peter Zijlstra wrote: > > > > > > But I think we

Re: [patch v3 2/5] acpi / boot: correct address space of __acpi_map_table()

2017-07-19 Thread Yury Norov
On Wed, Jul 19, 2017 at 04:06:36PM +0300, yury norov wrote: > Hi Andy, > > > diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c > > index 09ddb3cd627a..6d5b1346268a 100644 > > --- a/arch/x86/kernel/acpi/boot.c > > +++ b/arch/x86/kernel/acpi/boot.c > > @@ -118,7 +118,7 @@ static

ACPI: IRQ x override to edge, high

2017-07-19 Thread Boszormenyi Zoltan
Hi, on two different Intel based POS machines where UARTs are crucial, I see such messages (4.11.7 now, seen with older kernels, too): [0.919239] ACPI: IRQ 4 override to edge, high [0.919334] pnp 00:02: Plug and Play ACPI device, IDs PNP0501 (active) [0.919697] ACPI: IRQ 3 override t

Re: [tip:irq/core] genirq/timings: Add infrastructure for estimating the next interrupt arrival time

2017-07-19 Thread Peter Zijlstra
On Sat, Jun 24, 2017 at 03:02:30AM -0700, tip-bot for Daniel Lezcano wrote: > + /* > + * The interrupt is considered stable enough to try to predict > + * the next event on it. > + */ > + irqs->valid = 1; > + > + /* > + * Online average algorithm: > + * > +

RE: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-19 Thread David Laight
From: Anatolij Gustschin > Sent: 19 July 2017 14:30 ... > >Stupid question, I know, but I cannot help thinking: If you have an > >EEPROM then why the h... don't you use an application specific device > >ID? > > It would make sense for adapter devices that you can buy and plug. > In my particular c

Re: [PATCH v3 1/3] of: overlay: add overlay unittest data for node names and symbols

2017-07-19 Thread Rob Herring
On Tue, Jul 18, 2017 at 10:52 PM, wrote: > From: Frank Rowand > > Add nodes and properties to overlay_base and overlay dts files to > test for >- incorrect existing node name detection when overlay node name > has a unit-address >- adding overlay __symbols__ properties to live tree

Re: [PATCH 3/3] platform/x86: Add Audio domain PG status events

2017-07-19 Thread Rajneesh Bhardwaj
On Mon, Jul 17, 2017 at 10:48:30AM +0530, Chakravarty, Souvik K wrote: > > > > -Original Message- > > From: Bhardwaj, Rajneesh > > Sent: Friday, July 14, 2017 5:24 PM > > To: platform-driver-...@vger.kernel.org > > Cc: dvh...@infradead.org; a...@infradead.org; linux- > > ker...@vger.kerne

Re: [PATCH v2] KVM: x86: Avoid guest page table walk when gpa_available is set

2017-07-19 Thread Brijesh Singh
On 07/19/2017 06:19 AM, Radim Krčmář wrote: 2017-07-17 16:32-0500, Brijesh Singh: Hi Paolo and Radim Any comments on this patch, I could not find it in 4.13-2 branch. Please let me know if you want to fix something, or want me to refresh and resend the patch. Sorry, I tried it during the m

Re: [PATCH 4/9] mm, memory_hotplug: drop zone from build_all_zonelists

2017-07-19 Thread Vlastimil Babka
On 07/14/2017 10:00 AM, Michal Hocko wrote: > From: Michal Hocko > > build_all_zonelists gets a zone parameter to initialize zone's > pagesets. There is only a single user which gives a non-NULL > zone parameter and that one doesn't really need the rest of the > build_all_zonelists (see 6dcd73d70

Re: [PATCH v7 1/3] perf: cavium: Support memory controller PMU counters

2017-07-19 Thread Jonathan Cameron
On Wed, 19 Jul 2017 14:08:45 +0200 Jan Glauber wrote: > Add support for the PMU counters on Cavium SOC memory controllers. > > This patch also adds generic functions to allow supporting more > devices with PMU counters. > > Properties of the LMC PMU counters: > - not stoppable > - fixed purpose

Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-19 Thread Anatolij Gustschin
On Wed, 12 Jul 2017 11:11:46 +0200 Bjørn Mork bj...@mork.no wrote: >Johan Hovold writes: >> On Tue, Jul 11, 2017 at 08:52:37AM +0200, Anatolij Gustschin wrote: >> >>> For devices with connected EEPROM some modes (including UART) are >>> configurable in the EEPROM. For devices without EEPROM the

Re: [PATCH 1/1] gpio: core: Decouple open drain/source flag with active low/high

2017-07-19 Thread Johan Hovold
On Fri, Apr 07, 2017 at 12:25:49PM +0200, Linus Walleij wrote: > On Thu, Apr 6, 2017 at 3:35 PM, Laxman Dewangan wrote: > > > Currently, the GPIO interface is said to Open Drain if it is Single > > Ended and active LOW. Similarly, it is said as Open Source if it is > > Single Ended and active HIG

Re: [PATCH] drivers: staging: comedi: Add ftrace support

2017-07-19 Thread Dan Carpenter
Everyone please delete this confidential email. Piotr is leakier than the Trump administration!

Re: [PATCH v2 2/2] pinctrl: sunxi: add support of R40 to A10 pinctrl driver

2017-07-19 Thread kbuild test robot
-A10-A20-pinctrl-driver/20170719-062420 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel config: arm-sunxi_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com

[PATCH] netvsc: Remove redundant use of ipv6_hdr()

2017-07-19 Thread Mohammed Gamal
This condition already uses an object of type ipv6hdr in the line above. Use the object directly instead of calling ipv6_hdr Signed-off-by: Mohammed Gamal --- drivers/net/hyperv/netvsc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/dri

Re: [PATCH 3/9] mm, page_alloc: do not set_cpu_numa_mem on empty nodes initialization

2017-07-19 Thread Vlastimil Babka
On 07/14/2017 10:00 AM, Michal Hocko wrote: > From: Michal Hocko > > __build_all_zonelists reinitializes each online cpu local node for > CONFIG_HAVE_MEMORYLESS_NODES. This makes sense because previously memory > less nodes could gain some memory during memory hotplug and so the local > node shou

Re: [PATCH v3 13/23] media: camss: Enable building

2017-07-19 Thread kbuild test robot
Hi Todor, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1] [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/commits/Todor-Tomov/Qualcomm-8x16-Camera-Subsystem-driver/20

Re: [PATCH] xen: xen-pciback: remove DRIVER_ATTR() usage

2017-07-19 Thread Juergen Gross
On 19/07/17 14:58, Greg KH wrote: > From: Greg Kroah-Hartman > > It's better to be explicit and use the DRIVER_ATTR_RW() and > DRIVER_ATTR_RO() macros when defining a driver's sysfs file. > > Bonus is this fixes up a checkpatch.pl warning. > > This is part of a series to drop DRIVER_ATTR() from

Re: [PATCH 2/9] mm, page_alloc: remove boot pageset initialization from memory hotplug

2017-07-19 Thread Vlastimil Babka
On 07/14/2017 09:59 AM, Michal Hocko wrote: > From: Michal Hocko > > boot_pageset is a boot time hack which gets superseded by normal > pagesets later in the boot process. It makes zero sense to reinitialize > it again and again during memory hotplug. > > Signed-off-by: Michal Hocko Acked-by:

re: [patch v3 2/5] acpi / boot: correct address space of __acpi_map_table()

2017-07-19 Thread yury norov
Hi Andy, > diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c > index 09ddb3cd627a..6d5b1346268a 100644 > --- a/arch/x86/kernel/acpi/boot.c > +++ b/arch/x86/kernel/acpi/boot.c > @@ -118,7 +118,7 @@ static u32 isa_irq_to_gsi[nr_irqs_legacy] __read_mostly = > { > * this is jus

PCI/IB: add support for pci driver attribute groups

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman Some drivers (specifically the nes IB driver), want to create a lot of sysfs driver attributes. Instead of open-coding the creation and removal of these files (and getting it wrong btw), it's a better idea to let the driver core handle all of this logic for us. So add a

Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-19 Thread Anatolij Gustschin
On Wed, 19 Jul 2017 10:59:34 +0200 Johan Hovold jo...@kernel.org wrote: ... >> > +static const struct mfd_cell ftdi_cells[] = { >> > + { .name = "ftdi-cbus-gpio", }, >> > + { .name = "ftdi-mpsse-i2c", }, >> > + { .name = "ftdi-mpsse-spi", }, >> > + { .name = "ftdi-fifo-fpp-mgr", }, >> > +}; >

[PATCH] xen: xen-pciback: remove DRIVER_ATTR() usage

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman It's better to be explicit and use the DRIVER_ATTR_RW() and DRIVER_ATTR_RO() macros when defining a driver's sysfs file. Bonus is this fixes up a checkpatch.pl warning. This is part of a series to drop DRIVER_ATTR() from the tree entirely. Cc: Boris Ostrovsky Cc: Juer

[PATCH 2/8] x86: math-emu: possible uninitialized variable use

2017-07-19 Thread Arnd Bergmann
When building the kernel with "make EXTRA_CFLAGS=...", this overrides the "PARANOID" preprocessor macro defined in arch/x86/math-emu/Makefile, and we run into a build warning: arch/x86/math-emu/reg_compare.c: In function ‘compare_i_st_st’: arch/x86/math-emu/reg_compare.c:254:6: error: ‘f’ may be u

[PATCH 8/8] x86: intel-mid: fix a format string overflow warning

2017-07-19 Thread Arnd Bergmann
We have space for exactly three characters for the index in "max7315_%d_base", but as gcc points out having more would cause an string overflow: arch/x86/platform/intel-mid/device_libs/platform_max7315.c: In function 'max7315_platform_data': arch/x86/platform/intel-mid/device_libs/platform_max731

[PATCH] DMA: ppc4xx: remove DRIVER_ATTR() usage

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman It's better to be explicit and use the DRIVER_ATTR_RW() and DRIVER_ATTR_RO() macros when defining a driver's sysfs file. Bonus is this fixes up a checkpatch.pl warning. This is part of a series to drop DRIVER_ATTR() from the tree entirely. Cc: Vinod Koul Cc: Dan Willi

[PATCH 7/8] x86: add PCI dependency for PUNIT_ATOM_DEBUG

2017-07-19 Thread Arnd Bergmann
The IOSF_MBI option requires PCI support, without it we get a harmless Kconfig warning when it gets selected by PUNIT_ATOM_DEBUG: warning: (X86_INTEL_LPSS && SND_SST_IPC_ACPI && MMC_SDHCI_ACPI && PUNIT_ATOM_DEBUG) selects IOSF_MBI which has unmet direct dependencies (PCI) This adds another depen

[PATCH 6/8] x86: add MULTIUSER dependency for KVM

2017-07-19 Thread Arnd Bergmann
KVM tries to select 'TASKSTATS', which had additional dependencies: warning: (KVM) selects TASKSTATS which has unmet direct dependencies (NET && MULTIUSER) Signed-off-by: Arnd Bergmann --- arch/x86/kvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/Kco

[PATCH 5/8] x86: silence build with "make -s"

2017-07-19 Thread Arnd Bergmann
Every kernel build on x86 will result in some output: Setup is 13084 bytes (padded to 13312 bytes). System is 4833 kB CRC 6d35fa35 Kernel: arch/x86/boot/bzImage is ready (#2) This shuts it up, so that 'make -s' is truely silent as long as everything works. Building without '-s' should produce un

Re: [PATCH] selftests: cpufreq: Check cpuinfo_cur_freq set as expected

2017-07-19 Thread Rafael J. Wysocki
On Wednesday, July 19, 2017 12:24:06 PM Viresh Kumar wrote: > On 18-07-17, 22:34, Leonard Crestez wrote: > > The semantics of scaling_cur_freq and cpuinfo_cur_freq are not very > > clear to me. > > cpuinfo_cur_freq reads the frequency right from hardware all the time > and so can be slow. It can o

[PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl

2017-07-19 Thread Arnd Bergmann
The x86 version of insb/insw/insl uses an inline assembly that does not have the target buffer listed as an output. This can confuse the compiler, leading it to think that a subsequent access of the buffer is uninitialized: drivers/net/wireless/wl3501_cs.c: In function ‘wl3501_mgmt_scan_confirm’:

[PATCH] arm64: defconfig: enable missing HWSPINLOCK

2017-07-19 Thread Georgi Djakov
The hardware spinlock drivers now depend on HWSPINLOCK (instead of selecting it), so we need to explicitly enable it after commit 35fc8a07d7f9 ("Make HWSPINLOCK a menuconfig to ease disabling") Without HWSPINLOCK, various drivers are left with unsatisfied dependencies and Qcom boards using shared

[PATCH 1/8] perf/x86: shut up false-positive -Wmaybe-uninitialized warning

2017-07-19 Thread Arnd Bergmann
The intialization function checks for various failure scenarios, but unfortunately the compiler gets a little confused about the possible combinations, leading to a false-positive build warning when -Wmaybe-uninitialized is set: arch/x86/events/core.c: In function ‘init_hw_perf_events’: arch/x86/e

[PATCH 3/8] x86: math-emu: avoid bogus -Wint-in-bool-context warning

2017-07-19 Thread Arnd Bergmann
gcc-7.1.1 produces this warning: arch/x86/math-emu/reg_add_sub.c: In function 'FPU_add': arch/x86/math-emu/reg_add_sub.c:80:48: error: ?: using integer constants in boolean context [-Werror=int-in-bool-context] This appears to be a bug in gcc-7.1.1, and I have reported it as PR81484. The compile

[PATCH 0/8] x86: randconfig warning fixes

2017-07-19 Thread Arnd Bergmann
Hi, I've gone through old patches of mine that I carried in my randconfig tree, to see which warnings are still present. Here is a set of fixes for arch/x86. Most of them were sent before at some point and missed out for one reason or another. Please have another look and apply what you like.

[PATCH] fbdev: uvesafb: remove DRIVER_ATTR() usage

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman It's better to be explicit and use the DRIVER_ATTR_RW() macro when defining a driver's sysfs file. Bonus is this fixes up a checkpatch.pl warning. This is part of a series to drop DRIVER_ATTR() from the tree entirely. Cc: Michal Januszewski Cc: Bartlomiej Zolnierkiewi

Re: [PATCH v6 1/3] clk: nxp: clk-lpc32xx: rename clk_gate_is_enabled()

2017-07-19 Thread Gabriel FERNANDEZ
Hi Vladimir, Many thanks for the code review. On 07/18/2017 09:48 PM, Vladimir Zapolskiy wrote: > Hello Gabriel, > > On 07/18/2017 10:53 AM, gabriel.fernan...@st.com wrote: >> From: Gabriel Fernandez >> >> We need to export clk_gate_is_enabled() from clk framework, then > first of all let's cla

[PATCH] SCSI: remove DRIVER_ATTR() usage

2017-07-19 Thread Greg KH
From: Greg Kroah-Hartman It's better to use the DRIVER_ATTR_RW() and DRIVER_ATTR_RO() macros to explicitly show that this is a read/write or read/only sysfs file. So convert the remaining SCSI drivers that use the old style to use the newer macros. Bonus is that this removes some checkpatch.pl

Re: [PATCH V3 0/9] cpufreq: transition-latency cleanups

2017-07-19 Thread Rafael J. Wysocki
On Wednesday, July 19, 2017 03:42:40 PM Viresh Kumar wrote: > Hi Rafael, > > This series tries to cleanup the code around transition-latency and its > users. Some of the old legacy code, which may not make much sense now, > is dropped as well. And some code consolidation is also done across > gove

Re: [PATCH v1] crypto: caam - set hwrng quality level

2017-07-19 Thread Horia Geantă
On 7/19/2017 10:45 AM, Oleksij Rempel wrote: > According documentation, it is NIST certified TRNG. > So, set high quality to let the HWRNG framework automatically use it. > > Signed-off-by: Oleksij Rempel > --- > drivers/crypto/caam/caamrng.c | 6 ++ > 1 file changed, 6 insertions(+) > > di

Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay

2017-07-19 Thread Greg KH
On Wed, Jul 19, 2017 at 05:36:28AM -0700, Joe Perches wrote: > On Wed, 2017-07-19 at 17:55 +0530, Jaya Durga wrote: > > Fix checkpatch issue: CHECK: usleep_range is preferred over udelay; > [] > > diff --git a/drivers/staging/speakup/speakup_keypc.c > > b/drivers/staging/speakup/speakup_keypc.c >

Re: [PATCH 0/3] simulated interrupts

2017-07-19 Thread Bartosz Golaszewski
2017-07-19 14:25 GMT+02:00 Thomas Gleixner : > On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > >> Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated >> interrupts that can be 'fired' from process context when needed and >> requested just like normal interrupts. This is useful

Re: [v2 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-07-19 Thread Gautham R Shenoy
Hi Nicholas, Michael, On Wed, Jul 19, 2017 at 10:07:05PM +1000, Michael Ellerman wrote: > Nicholas Piggin writes: > >> diff --git a/arch/powerpc/kernel/asm-offsets.c > >> b/arch/powerpc/kernel/asm-offsets.c > >> index a7b5af3..0262283 100644 > >> --- a/arch/powerpc/kernel/asm-offsets.c > >> +++

Re: [PATCH V2 net-next 21/21] net-next/hinic: Add select_queue and netpoll

2017-07-19 Thread Aviad Krawczyk
Hi Sergei, I meant that drivers/net/ethernet/huawei/* is all the dir under huawei dir. (I saw this style of '*' is used in the maintainers file) I will change it to drivers/net/ethernet/huawei/hinic/ in the next fix. Thanks for review, Aviad On 7/19/2017 2:34 PM, Sergei Shtylyov wrote: > On 7/19

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-07-19 Thread Viresh Kumar
On 17-07-17, 14:38, Ulf Hansson wrote: > On 21 June 2017 at 09:10, Viresh Kumar wrote: > > Some platforms have the capability to configure the performance state of > > their Power Domains. The performance levels are identified by positive > > integer values, a lower value represents lower performa

Re: [PATCH V2 net-next 20/21] net-next/hinic: Add ethtool and stats

2017-07-19 Thread Aviad Krawczyk
Hi Joe, I tried to be consistent with the comments before, that requested that we will use dev_err exclude some special cases for use netif. We will replace the dev_err(&netdev->dev,.. to netdev_err in the next fix. Thanks for review, Aviad On 7/19/2017 1:27 PM, Joe Perches wrote: > On Wed, 201

Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay

2017-07-19 Thread Joe Perches
On Wed, 2017-07-19 at 17:55 +0530, Jaya Durga wrote: > Fix checkpatch issue: CHECK: usleep_range is preferred over udelay; [] > diff --git a/drivers/staging/speakup/speakup_keypc.c > b/drivers/staging/speakup/speakup_keypc.c [] > @@ -28,7 +28,7 @@ > > #define DRV_VERSION "2.10" > #define SYNTH

Re: [PATCH 0/7] turbostat, Fix AMD output by making turbostat aware of nodes

2017-07-19 Thread Prarit Bhargava
Forgot to cc Len at his kernel.org address ... P. On 07/16/2017 04:49 PM, Prarit Bhargava wrote: > AMD family processors do not show all cores in the output of turbostat. This > occurs because AMD has multiple nodes per socket and enumerates cores > within each node from 0. For example, socket

Re: [PATCH] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2017-07-19 Thread Michael Ellerman
James Morse writes: > Hi Michael, > > On 17/07/17 11:17, Michael Ellerman wrote: >> James Morse writes: >>> compat_ptrace_request() lacks handlers for PTRACE_{G,S}ETSIGMASK, >>> instead using those in ptrace_request(). The compat variant should >>> read a compat_sigset_t from userspace instead o

[PATCH v3 3/3] Staging: iio: adc: ad7280a.c: Fixed Macro argument reuse

2017-07-19 Thread Jaya Durga
CHECK: Macro argument reuse 'addr' - possible side-effects? convert AD7280A_DEVADDR to ad7280a_devaddr static function to fix checkpath check v3: small style changes Signed-off-by: Jaya Durga --- drivers/staging/iio/adc/ad7280a.c | 21 + 1 file changed, 13 insertions(+), 8

[PATCH v3 2/3] Staging: iio: light: tsl2x7x_core.c: Replace symbolic permission with octal permission

2017-07-19 Thread Jaya Durga
Replace symbolic permissions with their octect representation to fix checkpatch warnings. Signed-off-by: Jaya Durga --- drivers/staging/iio/light/tsl2x7x_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/

[PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay

2017-07-19 Thread Jaya Durga
Fix checkpatch issue: CHECK: usleep_range is preferred over udelay; Signed-off-by: Jaya Durga --- drivers/staging/speakup/speakup_keypc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c ind

Re: [PATCH v2 1/4] time: rtc-lib: Add rtc_show_time(const char *prefix_msg)

2017-07-19 Thread Thomas Gleixner
On Wed, 19 Jul 2017, Prarit Bhargava wrote: > On 07/19/2017 03:23 AM, Thomas Gleixner wrote: > > There is another option to remedy this and the dmesg tooling issues: > > > > Instead of switching the time stamps in dmesg to a different clock we might > > as well have an optional secondary timestamp

Re: [PATCH v2 1/3] dmaengine: add DMA_PREP_CMD for non-Data descriptors.

2017-07-19 Thread Abhishek Sahu
On 2017-07-19 15:41, Vinod Koul wrote: On Mon, Jul 17, 2017 at 02:54:21PM +0530, Abhishek Sahu wrote: On 2017-06-26 18:19, Abhishek Sahu wrote: >Some of the DMA controllers are capable of issuing the commands >to peripheral by the DMA. These commands can be list of register >reads/writes and its

Re: [PATCH 0/3] simulated interrupts

2017-07-19 Thread Thomas Gleixner
On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated > interrupts that can be 'fired' from process context when needed and > requested just like normal interrupts. This is useful for testing and > development purposes. > > Curre

Re: [PATCH 4/9] m68k: allow NULL clock for clk_get_rate

2017-07-19 Thread Greg Ungerer
Hi Jonas, On 19/07/17 19:06, Jonas Gorski wrote: Hi Greg, On 18 July 2017 at 14:03, Greg Ungerer wrote: Hi Jonas, On 18/07/17 20:17, Jonas Gorski wrote: Make the behaviour of clk_get_rate consistent with common clk's clk_get_rate by accepting NULL clocks as parameter. Some device drivers r

[PATCH 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-07-19 Thread Bartosz Golaszewski
Implement a simple, irq_work-based framework for simulating interrupts. Currently the API exposes routines for initializing and deinitializing the simulator object, enqueueing the interrupts and retrieving the allocated interrupt numbers based on the offset of the dummy interrupt in the simulator s

[PATCH 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-07-19 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski --- Documentation/driver-model/devres.txt | 1 + include/linux/irq_sim.h | 4 kernel/irq_sim.c | 43

[PATCH 3/3] gpio: mockup: use irq_sim

2017-07-19 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 +- 2 files changed, 8 inser

[PATCH 0/3] simulated interrupts

2017-07-19 Thread Bartosz Golaszewski
Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated interrupts that can be 'fired' from process context when needed and requested just like normal interrupts. This is useful for testing and development purposes. Currently this code is reimplemented by every user. This series pr

Re: [PATCH v2 1/3] dmaengine: add DMA_PREP_CMD for non-Data descriptors.

2017-07-19 Thread Abhishek Sahu
On 2017-07-19 15:37, Vinod Koul wrote: On Mon, Jun 26, 2017 at 06:19:27PM +0530, Abhishek Sahu wrote: Some of the DMA controllers are capable of issuing the commands to peripheral by the DMA. These commands can be list of register reads/writes and its different from normal data reads/writes. Thi

Re: [PATCH 1/2] drivers: pwm: core: implement pwm mode

2017-07-19 Thread m18063
Hello Thierry, I know you may be very busy but do you have any resolution regarding this series and the one with title "[PATCH v2 0/2] extends PWM framework to support PWM dead-times" Thank you, Claudiu On 09.05.2017 15:15, Claudiu Beznea - M18063 wrote: > Extends PWM framework to support PWM mo

[PATCH v7 3/3] perf: cavium: Add Documentation

2017-07-19 Thread Jan Glauber
Document Cavium SoC PMUs. Signed-off-by: Jan Glauber --- Documentation/perf/cavium-pmu.txt | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/perf/cavium-pmu.txt diff --git a/Documentation/perf/cavium-pmu.txt b/Documentation/perf/ca

[PATCH v7 1/3] perf: cavium: Support memory controller PMU counters

2017-07-19 Thread Jan Glauber
Add support for the PMU counters on Cavium SOC memory controllers. This patch also adds generic functions to allow supporting more devices with PMU counters. Properties of the LMC PMU counters: - not stoppable - fixed purpose - read-only - one PCI device per memory controller Signed-off-by: Jan

[PATCH v7 0/3] Cavium ARM64 uncore PMU support

2017-07-19 Thread Jan Glauber
Add support for various PMU counters found on the Cavium ThunderX and OcteonTx SoC. The driver provides common "uncore" functions to avoid code duplication and support adding more device PMUs (like L2 cache) in the future. Patches are on top of 4.13-rc1. Changes to v6: - Make driver stand-alone

[PATCH v7 2/3] perf: cavium: Support transmit-link PMU counters

2017-07-19 Thread Jan Glauber
Add support for the transmit-link (OCX TLK) PMU counters found on Caviums SOCs with a processor interconnect. Properties of the OCX TLK counters: - per-unit control - fixed purpose - writable - one PCI device with multiple TLK units Signed-off-by: Jan Glauber --- drivers/perf/cavium_pmu.c | 216

Re: [v2 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-07-19 Thread Michael Ellerman
Nicholas Piggin writes: > On Wed, 19 Jul 2017 13:48:49 +0530 > "Gautham R. Shenoy" wrote: > >> From: "Gautham R. Shenoy" >> >> The stop4 idle state on POWER9 is a deep idle state which loses >> hypervisor resources, but whose latency is low enough that it can be >> exposed via cpuidle. >> >>

Re: [PATCH v7 3/3] IOMMU/PCI: Reserve IOVA for inbound memory for PCI masters

2017-07-19 Thread Oza Oza
Hi Robin, My apology for noise. I have taken care of your comments. but these whole patch-set, (specially PCI patch-set) inbound memory addition depends on Lorenzo's patch-set . So I will be posting version 8 patches for IOVA reservation soon after Lorenzo's patches are made in. Regards, Oza. O

[PATCH] pci: add missing __iomem cast

2017-07-19 Thread Carlos Palminha
Add missing __iomem annotation to fix sparse warning: - incorrect type in return expression (different address spaces) Signed-off-by: Carlos Palminha --- drivers/pci/rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/rom.c b/drivers/pci/rom.c index b6edb187d160

Re: [PATCH v2 1/4] time: rtc-lib: Add rtc_show_time(const char *prefix_msg)

2017-07-19 Thread Prarit Bhargava
On 07/19/2017 03:23 AM, Thomas Gleixner wrote: > On Tue, 18 Jul 2017, Mark Salyzyn wrote: >> On 07/18/2017 03:35 PM, Thomas Gleixner wrote: >>> There was some discussion about making the clock source for dmesg time >>> stamps selectable, so you can use MONOTONIC, REALTIME, BOOTTIME. The >>> patch

Re: [PATCH] powerpc: Convert to using %pOF instead of full_name

2017-07-19 Thread Michael Ellerman
Rob Herring writes: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Micha

Re: [PATCH 4.12 26/84] x86/xen/efi: Initialize only the EFI struct members used by Xen

2017-07-19 Thread Daniel Kiper
On Wed, Jul 19, 2017 at 01:19:58PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 19, 2017 at 01:12:14PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jul 19, 2017 at 12:37:47PM +0200, Daniel Kiper wrote: > > > Hey Greg, > > > > > > On Wed, Jul 19, 2017 at 11:43:32AM +0200, Greg Kroah-Hartman wrote:

Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-19 Thread Anatolij Gustschin
On Mon, 10 Jul 2017 14:52:10 +0200 Johan Hovold jo...@kernel.org wrote: >On Thu, Jul 06, 2017 at 10:49:16PM +0200, Anatolij Gustschin wrote: >> Add USB part with common functions for USB-GPIO/I2C/SPI master >> adapters. These allow communication with chip's control, transmit >> and receive endpoin

Re: [PATCH v12 6/8] mm: support reporting free page blocks

2017-07-19 Thread Wei Wang
On 07/19/2017 04:13 PM, Michal Hocko wrote: On Tue 18-07-17 10:12:14, Wei Wang wrote: [...] Probably I should have included the introduction of the usages in the log. Hope it is not too later to explain here: Yes this should have been described in the cover. OK, I will do it in the next vers

Re: [PATCH 2/2] Staging: iio: light: tsl2x7x_core.c: Replace symbolic permission with octal permission

2017-07-19 Thread Greg KH
On Tue, Jul 18, 2017 at 12:53:23PM +0530, Jaya Durga wrote: > Replace symbolic permissions with their > octect representation to fix checkpatch warnings. > > Signed-off-by: Jaya Durga > --- > drivers/staging/iio/light/tsl2x7x_core.c | 20 ++-- > 1 file changed, 10 insertions(+),

[PATCH v2 19/25] mtd: nand: qcom: support for read location registers

2017-07-19 Thread Abhishek Sahu
In EBI2, all codeword data will be read in FLASH_BUF_ACC buffer and ADM will copy the data from source (FLASH_BUF_ACC) to destination (memory for data read). In QPIC, there is no FLASH_BUF_ACC and all the codeword data will held in QPIC BAM FIFO buffers. It provides multiple READ_LOCATION register

Re: [PATCH 3/5] iommu/arm-smmu-v3: add IOMMU_CAP_BYPASS to the ARM SMMUv3 driver

2017-07-19 Thread Will Deacon
On Wed, Jul 19, 2017 at 05:09:05PM +0530, Anup Patel wrote: > On Wed, Jul 19, 2017 at 5:03 PM, Will Deacon wrote: > > On Wed, Jul 19, 2017 at 05:01:11PM +0530, Anup Patel wrote: > >> On Wed, Jul 19, 2017 at 4:55 PM, Will Deacon wrote: > >> > On Wed, Jul 19, 2017 at 04:53:04PM +0530, Anup Patel wr

[PATCH v2 25/25] mtd: nand: qcom: support for QPIC version 1.5.0

2017-07-19 Thread Abhishek Sahu
The current QCOM NAND driver only supports version 1.4.0 QCOM QPIC NAND controller. This patch adds the support for version 1.5.0 which contains some of the registers at different offsets. The driver data contains the register offset field which is being initialized with its corresponding register

Re: [PATCH 00/15] HMM (Heterogeneous Memory Management) v24

2017-07-19 Thread Yisheng Xie
Hi Jérôme On 2017/6/29 2:00, Jérôme Glisse wrote: > > Patchset is on top of git://git.cmpxchg.org/linux-mmotm.git so i > test same kernel as kbuild system, git branch: > > https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-v24 > > Change since v23 is code comment fixes, simplify kernel confi

[PATCH v2 24/25] dt-bindings: qcom_nandc: compatible string for version 1.5.0

2017-07-19 Thread Abhishek Sahu
A new compatible string has been added for QPIC NAND version 1.5.0. Since only register offsets are diffferent in version 1.5.0 so no new dts property is required for QPIC NAND version 1.5.0. Signed-off-by: Abhishek Sahu --- Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 4 +++- 1 file c

[PATCH v2 23/25] mtd: nand: qcom: change register offset defines with enums

2017-07-19 Thread Abhishek Sahu
The current driver defines the register offset with preprocessor macro which is defined crossponding to NAND controller version 1.4.0. This patch changes these macro with enumeration. It also adds mapping array which contains controller register offsets for each register offset enumeration. This ma

<    4   5   6   7   8   9   10   11   12   13   >