[PATCH v4 0/4] crypto: add precalculated hash for zero message length

2015-12-17 Thread LABBE Corentin
Hello Some crypto drivers cannot process empty data message and so rely on precalculated hash. This patch series add precalculated hash in headers and make the drivers use them. Changes since v3 - Added missing Kconfig depends on SHA256 Changes since v2 - Added missing Kconfig depends on MD5/SHA

Re: [PATCH] net/macb: add proper header file

2015-12-17 Thread Nicolas Ferre
upport for resetting PHY using GPIO") > Cc: Gregory CLEMENT > Signed-off-by: Sudip Mukherjee This one is fixed and handled by Gregory here: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-December/394433.html Thanks a lot anyay, bye, > --- > > build log with next-20151217 is

[PATCH v4 2/4] crypto: niagara: Use precalculated hash from headers

2015-12-17 Thread LABBE Corentin
Precalculated hash for empty message are now present in hash headers. This patch just use them. Signed-off-by: LABBE Corentin --- drivers/crypto/Kconfig | 3 +++ drivers/crypto/n2_core.c | 33 ++--- 2 files changed, 9 insertions(+), 27 deletions(-) diff --git a/dr

[PATCH v4 1/4] crypto: hash: add zero length message hash for shax and md5

2015-12-17 Thread LABBE Corentin
Some crypto drivers cannot process empty data message and return a precalculated hash for md5/sha1/sha224/sha256. This patch add thoses precalculated hash in include/crypto. Signed-off-by: LABBE Corentin --- crypto/md5.c| 6 ++ crypto/sha1_generic.c | 7 +++ crypto/sha25

Re: [PATCH] net/macb: add proper header file

2015-12-17 Thread Gregory CLEMENT
proper device tree bindinsg too: http://marc.info/?l=linux-netdev&m=145034590619620&w=2 Thanks, Gregory > > Fixes: 5833e0526820 ("net/macb: add support for resetting PHY using GPIO") > Cc: Gregory CLEMENT > Signed-off-by: Sudip Mukherjee > --- > > b

Re: BUG_ON(!PageLocked(page)) in munlock_vma_page/migrate_pages/__block_write_begin

2015-12-17 Thread Dmitry Vyukov
On Tue, Dec 15, 2015 at 9:08 PM, Dmitry Vyukov wrote: > On Tue, Dec 15, 2015 at 8:42 PM, Johannes Weiner wrote: >> Hi Dmitry, >> >> On Tue, Dec 15, 2015 at 08:23:34PM +0100, Dmitry Vyukov wrote: >>>I am seeing lots of similar BUGs in different functions all pointing >>> to BUG_ON(!PageLocked(page

Re: [RFC PATCH urcu on mips, parisc] Fix: compat_futex should work-around futex signal-restart kernel bug

2015-12-17 Thread Mathieu Desnoyers
- On Dec 16, 2015, at 5:09 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > When testing liburcu on a 3.18 Linux kernel, 2-core MIPS (cpu model : > Ingenic JZRISC V4.15 FPU V0.0), we notice that a blocked sys_futex > FUTEX_WAIT returns -1, errno=ENOSYS when interrupted by a SA_R

use-after-free in skcipher_sock_destruct

2015-12-17 Thread Dmitry Vyukov
Hello, The following program triggers use-after-free in skcipher_sock_destruct: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include struct sockaddr_alg { unsigned short salg_family; charsalg_type[14]

bad page state due to PF_ALG socket

2015-12-17 Thread Dmitry Vyukov
Hello, The following program triggers multiple bugs including bad page state warnings and GPFs: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include void foo() { long r0 = syscall(SYS_socket, 0x26ul, 0x5ul, 0x0ul, 0, 0, 0); l

GPF in lrw_crypt

2015-12-17 Thread Dmitry Vyukov
Hello, The following program causes GPF in lrw_crypt: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include int main() { long r0 = syscall(SYS_socket, 0x26ul, 0x5ul, 0x0ul, 0, 0, 0); long r1 = syscall(SYS_mmap, 0x2000ul, 0x1ul, 0

use-after-free in hash_sock_destruct

2015-12-17 Thread Dmitry Vyukov
Hello, The following program causes use-after-free in hash_sock_destruct: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include struct sockaddr_alg { unsigned short salg_family; charsalg_type[14];

GPF in gf128mul_64k_bbe

2015-12-17 Thread Dmitry Vyukov
Hello, The following program causes GPF in gf128mul_64k_bbe: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include int main() { long r0 = syscall(SYS_socket, 0x26ul, 0x5ul, 0x0ul, 0, 0, 0); long r1 = syscall(SYS_mmap, 0x2000ul, 0x100

Re: [PATCH v4] of: fix declaration of of_io_request_and_map

2015-12-17 Thread Daniel Lezcano
On 12/08/2015 09:47 AM, Sudip Mukherjee wrote: We are having build failure with linux-next for sparc allmodconfig with the error messages: drivers/built-in.o: In function `meson6_timer_init': meson6_timer.c:(.init.text+0x5fe8): undefined reference to `of_io_request_and_map' drivers/built-in.o:

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2015-12-17 Thread Michal Hocko
On Wed 16-12-15 16:50:35, Andrew Morton wrote: > On Tue, 15 Dec 2015 19:36:15 +0100 Michal Hocko wrote: [...] > > +static void oom_reap_vmas(struct mm_struct *mm) > > +{ > > + int attempts = 0; > > + > > + while (attempts++ < 10 && !__oom_reap_vmas(mm)) > > + schedule_timeout(HZ/10);

[PATCH v2 0/1] rtc: Replace simple_strtoul by kstrtoul

2015-12-17 Thread LABBE Corentin
Hello Change since v1 - Replaced another simple_strtoul that I missed the first time LABBE Corentin (1): rtc: Replace simple_strtoul by kstrtoul drivers/rtc/rtc-sysfs.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.4.10 -- To unsubscribe from this list: send the li

[PATCH v2 1/1] rtc: Replace simple_strtoul by kstrtoul

2015-12-17 Thread LABBE Corentin
The simple_strtoul function is obsolete. This patch replace it by kstrtoul. Since kstrtoul is more strict, it permits to filter some invalid input that simple_strtoul accept. For example: echo '1022xxx' > /sys/devices/pnp0/00:03/rtc/rtc0/max_user_freq cat /sys/devices/pnp0/00:03/rtc/rtc0/max_user_

Re: [PATCH v4 04/19] clocksource: Add NPS400 timers driver

2015-12-17 Thread Daniel Lezcano
On 12/16/2015 02:10 AM, Noam Camus wrote: From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano C

Re: [PATCH v1 04/10] serial: mps2-uart: add MPS2 UART driver

2015-12-17 Thread Andy Shevchenko
On Tue, Dec 15, 2015 at 2:40 PM, Vladimir Murzin wrote: > On 12/12/15 23:39, Andy Shevchenko wrote: >> On Wed, Dec 2, 2015 at 11:33 AM, Vladimir Murzin >> wrote: >>> This driver adds support to the UART controller found on ARM MPS2 >>> platform. >> >> Just few comments (have neither time not big

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 11:52:38AM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > > +static inline void virtio_store_mb(bool weak_barriers, > > + __virtio16 *p, __virtio16 v) > > +{ > > +#ifdef CONFIG_SMP > > + if

Re: [RFC PATCH V2 1/8] irqdomain: Ensure type settings match for an existing mapping

2015-12-17 Thread Linus Walleij
On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > When mapping an IRQ, if a mapping already exists, then we simply return > the virual IRQ number. However, we do not check that the type settings for ^virtual Just that it isn't virtual, it's a Linux IRQ number, we actually use hwirq for the

Re: [RFC PATCH urcu on mips, parisc] Fix: compat_futex should work-around futex signal-restart kernel bug

2015-12-17 Thread Ed Swierk
I believe e967ef02 "MIPS: Fix restart of indirect syscalls" should be backported to all stable kernels. It would be a surprising coincidence if parisc suffers from the same problem. --Ed On Thu, Dec 17, 2015 at 4:54 AM, Mathieu Desnoyers wrote: > - On Dec 16, 2015, at 5:09 PM, Mathieu Desn

Re: [PATCH v4 3/5] PCI: qcom: Add Qualcomm PCIe controller driver

2015-12-17 Thread Stanimir Varbanov
Bjorn, thanks for the comments! On 12/16/2015 11:53 PM, Bjorn Helgaas wrote: > On Thu, Dec 03, 2015 at 03:35:22PM +0200, Stanimir Varbanov wrote: >> From: Stanimir Varbanov >> >> The PCIe driver reuse the Designware common code for host >> and MSI initialization, and also program the Qualcomm >>

Re: [RFC PATCH V2 3/8] genirq: Add runtime power management support for IRQ chips

2015-12-17 Thread Linus Walleij
On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: (Adding Rafael and linux-pm to To: list) > Some IRQ chips may be located in a power domain outside of the CPU > subsystem and hence will require device specific runtime power management. > In order to support such IRQ chips, add a pointer for a

Re: [RFC PATCH V2 4/8] irqchip/gic: Don't initialise chip if mapping IO space fails

2015-12-17 Thread Linus Walleij
On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > If we fail to map the address space for the GIC distributor or CPU > interface, then don't attempt to initialise the chip, just WARN and > return. > > Signed-off-by: Jon Hunter Reviewed-by: Linus Walleij Yours, Linus Walleij -- To unsubscr

[PATCH 0/4] Various R-Car PCIe patches

2015-12-17 Thread Phil Edworthy
The first patch removes code that is no longer used. The next two allow us to use runtim PM. The last patch is for PHY setup in order to get PCIe compliance apparently. For that last patch, I've been told that this is what I must set. Phil Edworthy (4): PCI: rcar: remove unused pci_sys_data stru

[PATCH 1/4] PCI: rcar: remove unused pci_sys_data structure in pcie-rcar

2015-12-17 Thread Phil Edworthy
Commit b3a72384fe29 ("ARM/PCI: Replace pci_sys_data->align_resource with global function pointer") removed the struct pci_sys_data dependency from the ARM pcibios functions, so remove it from this driver. Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 9 - 1 file changed

[PATCH 3/4] PCI: rcar: Add runtime PM support to pcie-rcar

2015-12-17 Thread Phil Edworthy
If runtime PM is enabled in the kernel config, simply enable the clocks once during probe. Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 44 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c

[PATCH 4/4] PCI: rcar: Add Gen2 PHY setup to pcie-rcar

2015-12-17 Thread Phil Edworthy
For PCIe compliance, the PHY registers need setting as per the manual. Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index

[PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2015-12-17 Thread Phil Edworthy
The R-Car PCIe host controller does not handle L1 ASPM. Instead, the hardware needs assistance to transition to L1. When the controller has received a PM_ENTER_L1 DLLP, we can't access a card's config regs until we have got it out of L1 link state. The host controller will handle this as long as it

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 12:22:22PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > > Seems to give a speedup on my box but I'm less sure about this one. E.g. as > > xchng faster than mfence on all/most intel CPUs? Anyone has an opinion? > > Wou

Re: [PATCH V2 07/10] ARM64, ACPI, PCI: I/O Remapping Table (IORT) initial support.

2015-12-17 Thread Tomasz Nowicki
On 17.12.2015 12:52, Tomasz Nowicki wrote: IORT shows representation of IO topology for ARM based systems. It describes how various components are connected together on parent-child basis e.g. PCI RC -> SMMU -> ITS. Initial support allows to: - register ITS MSI chip along with ITS translation ID

RE: [PATCH] mfd: da9063: Allow modular build

2015-12-17 Thread Opensource [Steve Twiss]
On 08 December 2015 13:56, Lee Jones wrote: > To: Geert Uytterhoeven > Subject: Re: [PATCH] mfd: da9063: Allow modular build > > On Mon, 07 Dec 2015, Geert Uytterhoeven wrote: > > > Allow support for the DA9063 PMIC to be modular, cfr. DA9062, which > > allows to decrease size of multi-platform

Re: [RFC PATCH V2 5/8] irqchip/gic: Return an error if GIC initialisation fails

2015-12-17 Thread Linus Walleij
On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > If the GIC initialisation fails, then currently we do not return an error > or clean-up afterwards. Although for root controllers, this failure may be > fatal anyway, for secondary controllers, it may not be fatal and so return > an error on f

Re: [PATCH v2 0/2] spi: davinci: fix spurious i/o error

2015-12-17 Thread Grygorii Strashko
On 12/10/2015 06:29 PM, Sekhar Nori wrote: This patch series fixes a spurious I/O error with DaVinci SPI. v2: - Update to handle DMA case - add a patch to use dev_err() for error reporting Sekhar Nori (2): spi: davinci: fix spurious i/o error spi: davinci: use dev_err() for error reportin

[PATCH v02 2/6] ARM: DTS: da850: Use the new DT bindings for the eDMA3

2015-12-17 Thread Peter Ujfalusi
Switch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3. With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with the old binding it was not possible for a driver to know which c

[PATCH v02 5/6] ARM: DTS: da850: Add node for mmc1

2015-12-17 Thread Peter Ujfalusi
da850 has two MMC controller, MMCSD1 is served by eDMA1 Signed-off-by: Peter Ujfalusi Tested-by: Sushaanth Srirangapathi --- arch/arm/boot/dts/da850.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 1538959f2853..3

[PATCH v02 6/6] ARM: DTS: da850: Enable DMA for SPI1

2015-12-17 Thread Peter Ujfalusi
Add the needed bindings so the SPI driver can use DMA with SPI1. Signed-off-by: Peter Ujfalusi Tested-by: Sushaanth Srirangapathi --- arch/arm/boot/dts/da850.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 31ca5768fccf

[PATCH v02 0/6] ARM: DTS: da850: eDMA new bindings and MMC/SPI DMA support

2015-12-17 Thread Peter Ujfalusi
Hi, Changes since v1: - Added tested by from Sushaanth Srirangapathi - Updated to use the non 16bit arrays [1] - memcpy channels are not reserved as requested by Sekhar - DMA memcpy is disabled for now Switch to use the new eDMA bindings and enable DMA for MMC0, SPI1. Add node for MMC1. [1] As

[PATCH v02 3/6] ARM: DTS: da850: Enable eDMA1

2015-12-17 Thread Peter Ujfalusi
The eDMA1 in da850 has only one TPTC and for example MMC1 is HW events are handled by it. Signed-off-by: Peter Ujfalusi Tested-by: Sushaanth Srirangapathi --- arch/arm/boot/dts/da850-enbw-cmc.dts | 4 arch/arm/boot/dts/da850-evm.dts | 4 arch/arm/boot/dts/da850.dtsi | 1

[PATCH v02 1/6] ARM: DTS: da850: fix edma0 reg space

2015-12-17 Thread Peter Ujfalusi
The size of the eDMA0 CC register space is 0x8000 and not 0x1. Signed-off-by: Peter Ujfalusi Tested-by: Sushaanth Srirangapathi --- arch/arm/boot/dts/da850.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi

[PATCH v02 4/6] ARM: DTS: da850: Enable DMA use for MMC0

2015-12-17 Thread Peter Ujfalusi
Add the needed bindings for MMC0 in order to be able to utilize the DMA instead of PIO mode. Signed-off-by: Peter Ujfalusi Tested-by: Sushaanth Srirangapathi --- arch/arm/boot/dts/da850.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/d

Re: [PATCH v2 1/1] rtc: Replace simple_strtoul by kstrtoul

2015-12-17 Thread Alexandre Belloni
On 17/12/2015 at 14:11:04 +0100, LABBE Corentin wrote : > The simple_strtoul function is obsolete. > This patch replace it by kstrtoul. > > Since kstrtoul is more strict, it permits to filter some invalid input that > simple_strtoul accept. For example: > echo '1022xxx' > /sys/devices/pnp0/00:03/r

Re: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2015-12-17 Thread Wolfram Sang
Hi Phil, > + /* Wait until we are in L1 */ > + while (!(val & L1FAEG)) > + val = rcar_pci_read_reg(pcie, PMSR); No timeout? Regards, Wolfram signature.asc Description: Digital signature

Re: [RFC PATCH V2 8/8] irqchip/gic: Add support for tegra AGIC interrupt controller

2015-12-17 Thread Linus Walleij
On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > Add a driver for the Tegra-AGIC interrupt controller which is compatible > with the ARM GIC-400 interrupt controller. (...) > +static const struct dev_pm_ops gic_pm_ops = { > + SET_RUNTIME_PM_OPS(gic_runtime_suspend, > +

Re: [PATCH 4/4] PCI: rcar: Add Gen2 PHY setup to pcie-rcar

2015-12-17 Thread Wolfram Sang
> + rcar_pci_write_reg(pcie, 0x000f0030, GEN2_PCIEPHYADDR); > + rcar_pci_write_reg(pcie, 0x00381203, GEN2_PCIEPHYDATA); > + rcar_pci_write_reg(pcie, 0x0001, GEN2_PCIEPHYCTRL); > + rcar_pci_write_reg(pcie, 0x0006, GEN2_PCIEPHYCTRL); > + > + rcar_pci_write_reg(pcie, 0x000

[PATCH v02 2/2] ARM: DTS: am437x: Use the new DT bindings for the eDMA3

2015-12-17 Thread Peter Ujfalusi
Switch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3 and enable the DMA even crossbar with ti,am335x-edma-crossbar. With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with th

[PATCH v02 1/2] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-17 Thread Peter Ujfalusi
Switch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3 and enable the DMA even crossbar with ti,am335x-edma-crossbar. With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with th

[PATCH v02 0/2] ARM: DTS: am33xx/am437x: Use the new eDMA bindings

2015-12-17 Thread Peter Ujfalusi
Hi, Changes since v1: - Updated to use the non 16bit arrays [1] - send the two patch as a series [1] As it has been discussed earlier: https://www.mail-archive.com/linux-omap@vger.kernel.org/msg122117.html the DT bindings has been changes compared to what we had in 4.4-rc1: the arrays now don't

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-17 Thread Peter Zijlstra
On Tue, Dec 08, 2015 at 05:57:00PM +0100, Peter Zijlstra wrote: > On Tue, Dec 08, 2015 at 06:42:01PM +0200, Alexander Shishkin wrote: > > > +void ___perf_event_disable(void *info) > > > > Only maybe change these to __perf_event_disable_locked() or something > > visually distinctive from the 'activ

[PATCH RFC] ARM64: Add cpu hotplug for device tree parking method

2015-12-17 Thread Pratyush Anand
This patch has been implemented for CPU hotplug support for device tree spin-table based parking method. While cpu is offlined, cpu_die is called and when it is brought online cpu_boot is called. So, cpu_boot must wake secondary and release pen, otherwise dynamic cpu offline/online will not work.

Re: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2015-12-17 Thread Geert Uytterhoeven
On Thu, Dec 17, 2015 at 2:30 PM, Wolfram Sang wrote: >> + /* Wait until we are in L1 */ >> + while (!(val & L1FAEG)) >> + val = rcar_pci_read_reg(pcie, PMSR); > > No timeout? And no cpu_relax() in each iteration. Gr{oetje,eeting}s,

Re: [PATCH V2 02/10] irqchip / GICv3: Add ACPI support for GICv3+ initialization

2015-12-17 Thread kbuild test robot
Hi Tomasz, [auto build test ERROR on v4.4-rc4] [also build test ERROR on next-20151217] [cannot apply to tip/irq/core v4.4-rc5] url: https://github.com/0day-ci/linux/commits/Tomasz-Nowicki/Introduce-ACPI-world-to-GICv3-ITS-irqchip/20151217-195910 config: arm-allyesconfig (attached as .config

Re: [PATCH 00/10] bpf samples: Uses libbpf in tools/lib to do BPF operations

2015-12-17 Thread Daniel Wagner
On 12/17/2015 11:09 AM, Wangnan (F) wrote: > On 2015/12/17 16:29, Daniel Wagner wrote: >> On 12/17/2015 08:03 AM, Daniel Wagner wrote: >> Patch number 2 didn't apply cleanly. > > Because I have another patch in my local tree which also modifis bpf > Makefile: > > http://lkml.kernel.org/g/14503166

Re: [PATCH v10 1/4] dt-binding:Documents of the mbigen bindings

2015-12-17 Thread Mark Rutland
On Thu, Dec 17, 2015 at 07:56:34PM +0800, MaJun wrote: > From: Ma Jun > > Add the mbigen msi interrupt controller bindings document. > > This patch based on Mark Rutland's patch > https://lkml.org/lkml/2015/7/23/558 > > Signed-off-by: Ma Jun > --- > Documentation/devicetree/bindings/arm/mbige

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:16:20PM +0200, Michael S. Tsirkin wrote: > On Thu, Dec 17, 2015 at 11:52:38AM +0100, Peter Zijlstra wrote: > > On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > > > +static inline void virtio_store_mb(bool weak_barriers, > > > +

Re: [PATCH v6 09/20] arm64:ilp32: share HWCAP between LP64 and ILP32

2015-12-17 Thread Arnd Bergmann
On Thursday 17 December 2015 10:54:47 Catalin Marinas wrote: > > > IIUC, we may have a problem with this. elf_hwcap is 64-bit long while > > > elf_info[n] is 32-bit (Elf32_Addr), so we truncate AT_HWCAP if we ever > > > go beyond bit 31. The above may need to look something like: > > > > > > #defi

Re: [PATCH 2/3] pwm: Add PWM driver for OMAP using dual-mode timers

2015-12-17 Thread Neil Armstrong
Hi Thierry, On 12/16/2015 05:27 PM, Thierry Reding wrote: > I've applied this with some coding style bikeshedding applied. Also I > think there's a timer leak in the probe function: Indeed, the coding style had some root for ameliorations ! Thanks ! I also missed this timer leak, thanks for the fix

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:26:29PM +0200, Michael S. Tsirkin wrote: > > Note that virtio_mb() is weirdly inconsistent with virtio_[rw]mb() in > > that they use dma_* ops for weak_barriers, while virtio_mb() uses > > smp_mb(). > > It's a hack really. I think I'll clean it up a bit to > make it more

Re: Add top down metrics to perf stat v2

2015-12-17 Thread Andi Kleen
On Thu, Dec 17, 2015 at 02:27:58AM -0800, Stephane Eranian wrote: > > S0-C1 2 4175583320.00 topdown-slots-retired > > (100.00%) > > S0-C1 2 1743329246 topdown-recovery-bubbles # > > 22.22% bad speculation

Re: [PATCH 05/10] perf, tools, stat: Basic support for TopDown in perf stat

2015-12-17 Thread Andi Kleen
> >> This is x86 specific. Why not just try it out and in case of error > >> suggest checking > >> if pinned system-wide events exist (such as NMI watchdog on x86). that > >> would > >> be more generic. > > > > That's really complicated, i would have to tear down all state and then > > resubmit al

Re: [PATCH v6 11/20] arm64:ilp32: support core dump generation for ILP32

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 12:42:37AM +0300, Yury Norov wrote: > diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h > index 8786ca5..4e2e3c0 100644 > --- a/arch/arm64/include/asm/elf.h > +++ b/arch/arm64/include/asm/elf.h [...] > +/* > + * struct elf_prstatus is defined in includ

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > I'm not sure I can explain your problem with this, but I figure its > worth a try. Did it make a difference? Also, does the syzkaller thing do cpu-hotplug during its runs? > --- > kernel/events/core.c | 15 +-- > 1 fi

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Dmitry Vyukov
On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra wrote: > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: >> I'm not sure I can explain your problem with this, but I figure its >> worth a try. > > Did it make a difference? > > Also, does the syzkaller thing do cpu-hotplug during its

Linux 3.18.25

2015-12-17 Thread Sasha Levin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm announcing the release of the 3.18.25 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be br

Re: [PATCH] net/macb: add proper header file

2015-12-17 Thread Sudip Mukherjee
On Thu, Dec 17, 2015 at 01:41:59PM +0100, Gregory CLEMENT wrote: > Hi Sudip, > > On jeu., déc. 17 2015, Sudip Mukherjee wrote: > > > mips allmodconfig build fails with the error: > > > > drivers/net/ethernet/cadence/macb.c: In function 'macb_probe': > > drivers/net/ethernet/cadence/macb.c:2908

Re: [PATCH RFC] ARM64: Add cpu hotplug for device tree parking method

2015-12-17 Thread Mark Rutland
On Thu, Dec 17, 2015 at 07:09:29PM +0530, Pratyush Anand wrote: > This patch has been implemented for CPU hotplug support for device tree > spin-table based parking method. > > While cpu is offlined, cpu_die is called and when it is brought online > cpu_boot is called. So, cpu_boot must wake secon

[PATCH v1 0/6] Support the rk3036 Kylin board

2015-12-17 Thread Caesar Wang
Kylin-board is based on RK3036 SOCs, add the initiation version for working. This series patches have the following decriptions: PATCH[1/6]: ARM: dts: fix the correct pinctrl control for rk3036 The pinctrl gpio pull up/down is incorrect since the rk3036 SoCs can't set the status in the internal.

[PATCH v1 1/6] ARM: dts: fix the correct pinctrl control for rk3036

2015-12-17 Thread Caesar Wang
The pinctrl gpio pull up/down is incorrect since the rk3036 SoCs can't set the status in the internal. We should keep the default status for enable the gpio status, In fact, the pull_none is the disable the gpio pull up/down. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- arch/arm/b

[PATCH v1 2/6] ARM: dts: add the lcdc and hdmi node for rk3036

2015-12-17 Thread Caesar Wang
The rk3036 support two overlay plane and one hwc plane, it support IOMMU, and its IOMMU same as rk3288's. Meanwhile, add the inno hdmi for HDMI display. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 61 +++ 1 file changed, 61 insertions(

[PATCH v1 3/6] ARM: dts: add the sdio/sdmmc node for rk3036

2015-12-17 Thread Caesar Wang
In general, the sdio/sdmmc is used by the wifi module and sd card. let's add the node for these function. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 72 +++ 1 file changed, 72 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi

[PATCH v1 5/6] ARM: dts: add the sound codec for kylin board

2015-12-17 Thread Caesar Wang
Support the rt5616 codec for kylin board, but we need enable the i2s firstly. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036-kylin.dts | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-k

[PATCH v1 4/6] ARM: dts: rockchip: add the kylin board for rk3036

2015-12-17 Thread Caesar Wang
This patchset is the initiation version to try work for kylin board. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3036-kylin.dts | 298 ++

[PATCH v1 6/6] ARM: dts: add the sdio node for kylin board

2015-12-17 Thread Caesar Wang
Let's enable the sdio for wifi module on kylin board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036-kylin.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 296139b..581e954 100644 ---

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:08:49PM +0100, Dmitry Vyukov wrote: > On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra wrote: > > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > >> I'm not sure I can explain your problem with this, but I figure its > >> worth a try. > > > > Did it make

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-17 Thread Alexander Shishkin
Peter Zijlstra writes: > On Tue, Dec 08, 2015 at 05:57:00PM +0100, Peter Zijlstra wrote: >> On Tue, Dec 08, 2015 at 06:42:01PM +0200, Alexander Shishkin wrote: >> > > +void ___perf_event_disable(void *info) >> > >> > Only maybe change these to __perf_event_disable_locked() or something >> > visu

Re: [PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-17 Thread Daniel Vetter
On Thu, Dec 17, 2015 at 01:03:53PM +0100, Heiko Stübner wrote: > Hi Mark, > > Am Donnerstag, 17. Dezember 2015, 18:32:31 schrieb Mark yao: > > On 2015年12月17日 18:00, Heiko Stübner wrote: > > > Am Donnerstag, 17. Dezember 2015, 11:01:07 schrieb Mark Yao: > > >> The series of patches coverting drm ro

[PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line

2015-12-17 Thread Benjamin Young
Made code more standard by fixing issue with _for_ loops not putting braces on the next line. Signed-off-by: Benjamin Young --- drivers/thunderbolt/tb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c index d2c3fe3..7bce49

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:26:17PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:08:49PM +0100, Dmitry Vyukov wrote: > > On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra > > wrote: > > > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > > >> I'm not sure I can explain y

Re: GPF in gf128mul_64k_bbe

2015-12-17 Thread Stephan Mueller
Am Donnerstag, 17. Dezember 2015, 14:00:23 schrieb Dmitry Vyukov: Hi Dmitry, >Hello, > >The following program causes GPF in gf128mul_64k_bbe: thank you very much for the bug reports. I will have a look into them. Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:16:20PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 11:52:38AM +0100, Peter Zijlstra wrote: > > > On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > > > > +static inline

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 03:02:12PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:26:29PM +0200, Michael S. Tsirkin wrote: > > > Note that virtio_mb() is weirdly inconsistent with virtio_[rw]mb() in > > > that they use dma_* ops for weak_barriers, while virtio_mb() uses > > > smp_mb(). >

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Dmitry Vyukov
On Thu, Dec 17, 2015 at 3:28 PM, Peter Zijlstra wrote: >> > >> I'm not sure I can explain your problem with this, but I figure its >> > >> worth a try. >> > > >> > > Did it make a difference? >> > > >> > > Also, does the syzkaller thing do cpu-hotplug during its runs? >> > >> > See my email on Dec

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Sergei Shtylyov
Hello. On 12/17/2015 3:53 AM, Krzysztof Kozlowski wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also

Re: [PATCH v6 13/20] arm64: ilp32: share aarch32 syscall wrappers to ilp32

2015-12-17 Thread Andreas Schwab
Yury Norov writes: > From: Jan Dakinevich > > statfs64, fstat64 and mmap_pgoff has wrappers that needed both by aarch32 and Typo: s/fstat64/fstatfs64/ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for s

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: > On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > > > > You could of course go fix that instead of mutilating things into > > sort-of functional state. > > Yes, we'd just need to touch all architectures, all for

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 03:39:10PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > > > > > > You could of course go fix that instead of mutilating things into > > > sort-of func

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:35:32PM +0100, Dmitry Vyukov wrote: > In short, I did not see use-after-frees but perf_event_open fuzzing > started hanging VMs very frequently, so testing is inconclusive. Right, I'll get back to staring at that one. Running your test case on bare metal got my machine

Re: [PATCH] virtio: use smp_load_acquire/smp_store_release

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 11:58:27AM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 12:29:03PM +0200, Michael S. Tsirkin wrote: > > +static inline __virtio16 virtio_load_acquire(bool weak_barriers, > > __virtio16 *p) > > +{ > > + if (!weak_barriers) { > > + rmb(); > > +

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-17 Thread Arnd Bergmann
On Thursday 17 December 2015 13:01:57 Wolfram Sang wrote: > On Mon, Dec 14, 2015 at 11:27:22PM +0100, Arnd Bergmann wrote: > > On Monday 14 December 2015 14:52:06 Wolfram Sang wrote: > > > > > What about not ifdeffing the inline function and keep the build error > > > > > whenever someone uses it w

[GIT PULL] clockevents for 4.5

2015-12-17 Thread Daniel Lezcano
Hi Thomas, this pull request is bigger than the other ones. It contains a lot of changes and cleanups in order to increase the compilation test coverage. - Add cosmetic changes on error and a memory leakage on failure at init time for the mediatek timer (Alexey Klimov) - Remove the useles

[char-misc-next v2 2/7] mei: wd: drop the watchdog code from the core mei driver

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin Instead of integrating the iAMT watchdog in the mei core driver we will create a watchdog device on the mei client bus and create a driver for it. This patch removes the watchdog code from the mei core driver. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkle

[char-misc-next 4/7] watchdog: mei_wdt: add status debugfs entry

2015-12-17 Thread Tomas Winkler
Add entry for dumping current watchdog internal state Signed-off-by: Tomas Winkler --- drivers/watchdog/mei_wdt.c | 84 ++ 1 file changed, 84 insertions(+) diff --git a/drivers/watchdog/mei_wdt.c b/drivers/watchdog/mei_wdt.c index 3c97deb70d90..a3f1c1

[char-misc-next v2 7/7] watchdog: mei_wdt: re-register device on event

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin For Intel SKL platform the ME device can inform the host via asynchronous notification that the watchdog feature was activated on the device. The activation doesn't require reboot. In that case the driver registers the watchdog device with the kernel. In the same manner th

Re: [PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-17 Thread Andy Shevchenko
On Wed, 2015-12-16 at 00:04 +0300, Sergei Ianovich wrote: > The patch adds support for 3 additional LP-8x4x built-in serial > ports. > > The device can also host up to 8 extension cards with 4 serial ports > on each card for a total of 35 ports. However, I don't have > the hardware to test extensi

[char-misc-next v2 5/7] mei: bus: whitelist the watchdog client

2015-12-17 Thread Tomas Winkler
The iAMT WD client has to be whitelisted sice it has two connections and is filtered out by number_of_connections fixup. Also the API has changed for BDW and SKL but firmware haven't updated the protocol version. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- V2: resend drive

[char-misc-next v2 6/7] watchdog: mei_wdt: register wd device only if required

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin For Intel Broadwell and newer platforms, the ME device can inform the host whether the watchdog functionality is activated or not. If the watchdog functionality is not activated then the watchdog interface can be not registered and eliminate unnecessary pings and hence low

[char-misc-next v2 1/7] mei: drop nfc leftovers from the mei driver

2015-12-17 Thread Tomas Winkler
We left few function prototypes in the header file after moving nfc logic to bus. Signed-off-by: Tomas Winkler --- V2: resend drivers/misc/mei/mei_dev.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 4250555d5e72..b54

[char-misc-next v2 0/7] mei: create proper iAMT watchdog driver

2015-12-17 Thread Tomas Winkler
Instead of integrating the iAMT watchdog within the mei core driver we will create a watchdog device on the mei client bus and create a proper watchdog driver for it. V2: 1. The watchdog device is no longer dynamically allocated in separate structure 2. Export device internal status via debugfs

[char-misc-next v2 3/7] watchdog: mei_wdt: implement MEI iAMT watchdog driver

2015-12-17 Thread Tomas Winkler
Create a driver with the generic watchdog interface for the MEI iAMT watchdog device. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- V2: The watchdog device is no longer dynamically allocated in separate structure Documentation/misc-devices/mei/mei.txt | 12 +- MAINTAINERS

Re: [PATCH V5 2/2] watchdog: Read device status through sysfs attributes

2015-12-17 Thread Guenter Roeck
On 12/17/2015 04:23 AM, Pratyush Anand wrote: This patch adds following attributes to watchdog device's sysfs interface to read its different status. * state - reads whether device is active or not * identity - reads Watchdog device's identity string. * timeout - reads current timeout. * timelef

<    1   2   3   4   5   6   7   8   9   >