Re: [v2] timers: Fix excessive granularity of new timers after a nohz idle

2017-08-23 Thread Thomas Gleixner
On Wed, 23 Aug 2017, jeffy wrote: > Hi guys, > > I was testing a arm64 based device(chromebook bob), and the kernel hang a > lot(during booting or suspending) on for-next(next-20170822) with this commit: > 71acb768f5b3 (timers: Fix excessive granularity of new timers after a nohz > idle) > > Aft

Re: [PATCH v8 2/2] mtd: spi-nor: Add spi-nor mtd resume handler

2017-08-23 Thread Cyrille Pitchen
Hi Kamal, Le 22/08/2017 à 22:45, Kamal Dasu a écrit : > Implemented and populated spi-nor mtd PM handlers for resume ops. > spi-nor resume op re-initializes spi-nor flash to its probed > state by calling the newly implemented spi_nor_init() function. > > Signed-off-by: Kamal Dasu > --- > driver

[PATCH] docs-rst: pdf: use same vertical margin on all Sphinx versions

2017-08-23 Thread Mauro Carvalho Chehab
Currently, on Sphinx up to version 1.4, pdf output uses a vertical margin of 1 inch. For upper versions, it uses a margin of 0.5 inches. That causes both page headers and footers to be very close to the margin of the sheet. Not all printers support writing like that. Also, there's no reason why t

linux-next: Tree for Aug 23

2017-08-23 Thread Stephen Rothwell
Hi all, Changes since 20170822: The net-next tree still had its build failure for which I reverted a commit. It also gained a conflict against the net tree. The slave-dma tree lost its build failure. Non-merge commits (relative to Linus' tree): 8264 8196 files changed, 453593 insertions(+), 1

Re: [PATCH v3] KVM: nVMX: Fix trying to cancel vmlauch/vmresume

2017-08-23 Thread Paolo Bonzini
On 22/08/2017 23:57, Wanpeng Li wrote: > 2017-08-23 0:09 GMT+08:00 Paolo Bonzini : >> On 22/08/2017 01:08, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 7 PID: 3861 at /home/kernel/ssd/kvm/arch/x86/kvm//vmx.c:11299 >>> nested_vmx_vmexit+0x17

Re: [PATCH v2] KVM: nVMX: Fix trying to cancel vmlauch/vmresume

2017-08-23 Thread Paolo Bonzini
On 21/08/2017 18:20, Radim Krčmář wrote: > 2017-08-18 07:11-0700, Wanpeng Li: >> From: Wanpeng Li >> >> [ cut here ] >> WARNING: CPU: 7 PID: 3861 at /home/kernel/ssd/kvm/arch/x86/kvm//vmx.c:11299 >> nested_vmx_vmexit+0x176e/0x1980 [kvm_intel] >> CPU: 7 PID: 3861 Comm: qemu

Re: [PATCH][v2] PM / Hibernate: Feed the wathdog when creating snapshot

2017-08-23 Thread Michal Hocko
On Wed 23-08-17 11:44:39, Chen Yu wrote: > On Tue, Aug 22, 2017 at 02:55:39PM +0200, Rafael J. Wysocki wrote: > > On Tuesday, August 22, 2017 5:20:02 AM CEST Chen Yu wrote: [...] > > > void mark_free_pages(struct zone *zone) > > > { > > > - unsigned long pfn, max_zone_pfn; > > > + unsigned long p

[PATCH RESEND v12 7/8] wireless: ipw2200: Replace PCI pool old API

2017-08-23 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin Acked-by: Stanislav Yakovlev --- Note: As requested by Kalle Valo, resend and add linux-wireless to Cc:

Re: [PATCH v2] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-23 Thread Linus Walleij
On Tue, Aug 15, 2017 at 6:59 AM, Dmitry Torokhov wrote: > When converting legacy board to use gpiod API() there might be several > lookup tables in board file, let's provide a way to register them all at > once. > > Reviewed-by: Andy Shevchenko > Reviewed-by: Mika Westerberg > Signed-off-by: Dm

Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()

2017-08-23 Thread Linus Walleij
On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter wrote: > The rza1_pctl->ports[] array has RZA1_NPORTS (12) elements. The > here > should be >= to prevent an out of bounds access. > > Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") > Signed-off-by: Dan Carpenter > > diff -

Re: [PATCH v3] serial: 8250_of: Add basic PM runtime support

2017-08-23 Thread Franklin S Cooper Jr
On 08/23/2017 01:34 AM, Sekhar Nori wrote: > On Monday 21 August 2017 10:29 PM, Franklin S Cooper Jr wrote: >> >> >> On 08/21/2017 07:20 AM, Sekhar Nori wrote: >>> On Thursday 17 August 2017 02:25 AM, Franklin S Cooper Jr wrote: 66AK2G UART instances are not apart of the ALWAYS_ON power doma

Re: [PATCH] gpio: zevio: make gpio_chip const

2017-08-23 Thread Linus Walleij
On Sun, Aug 20, 2017 at 8:27 PM, Bhumika Goyal wrote: > Make this const as it is only used as a copy operation. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Patch applied. Yours, Linus Walleij

[PATCH] doc: coresight: correct usage for '/dev/cpu_dma_latency'

2017-08-23 Thread Leo Yan
In the coresight CPU debug document it suggests to use 'echo' command to set latency request to /dev/cpu_dma_latency so can disable all CPU idle states, but in fact this doesn't work. This is because when the command 'echo' exits, it releases the device node's file descriptor and the kernel releas

Re: [PATCH v2 5/8] KVM: arm/arm64: vgic: Handle mapped level sensitive SPIs

2017-08-23 Thread Auger Eric
Hi Marc, On 04/07/2017 14:15, Marc Zyngier wrote: > Hi Eric, > > On 15/06/17 13:52, Eric Auger wrote: >> Currently, the line level of unmapped level sensitive SPIs is >> toggled down by the maintenance IRQ handler/resamplefd mechanism. >> >> As mapped SPI completion is not trapped, we cannot rely

Re: [PATCH v2] KVM: nVMX: Fix trying to cancel vmlauch/vmresume

2017-08-23 Thread Wanpeng Li
2017-08-23 15:13 GMT+08:00 Paolo Bonzini : > On 21/08/2017 18:20, Radim Krčmář wrote: >> 2017-08-18 07:11-0700, Wanpeng Li: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 7 PID: 3861 at /home/kernel/ssd/kvm/arch/x86/kvm//vmx.c:11299 >>> nested_vmx_vmexit+0x176

Re: [PATCH 0/3] add usb support for rv1108 SoCs

2017-08-23 Thread Heiko Stuebner
Am Montag, 21. August 2017, 16:39:25 CEST schrieb Frank Wang: > This serie adds USB related device nodes support for rv1108 SoCs, in addition, > Rockchip's rv1108-evb board has one usb otg controller and one usb host > controller, each controller connect with one usb-phy port through UTMI+ > interf

Re: [PATCH v2 3/5] dt-bindings: add rk3399-q7 SoM

2017-08-23 Thread Heiko Stuebner
Am Freitag, 18. August 2017, 21:34:43 CEST schrieb Klaus Goger: > RK3399-Q7 is a Qseven compatible system-on-module by Theobroma Systems. > > This adds the module and the EVK baseboard "Haikou" > > Signed-off-by: Klaus Goger applied for 4.14 with Rob's Ack Thanks Heiko

Re: [v2] timers: Fix excessive granularity of new timers after a nohz idle

2017-08-23 Thread jeffy
Hi Thomas, On 08/23/2017 03:01 PM, Thomas Gleixner wrote: On Wed, 23 Aug 2017, jeffy wrote: Hi guys, I was testing a arm64 based device(chromebook bob), and the kernel hang a lot(during booting or suspending) on for-next(next-20170822) with this commit: 71acb768f5b3 (timers: Fix excessive gra

Stable apply request [was: Bluetooth: bnep: fix possible might sleep error in bnep_session]

2017-08-23 Thread Jiri Slaby
On 06/27/2017, 07:32 PM, Marcel Holtmann wrote: >> It looks like bnep_session has same pattern as the issue reported in >> old rfcomm: >> >> while (1) { >> set_current_state(TASK_INTERRUPTIBLE); >> if (condition) >> break; >> // may c

Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()

2017-08-23 Thread Geert Uytterhoeven
On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter wrote: > The rza1_pctl->ports[] array has RZA1_NPORTS (12) elements. The > here > should be >= to prevent an out of bounds access. > > Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") > Signed-off-by: Dan Carpenter Reviewed-b

Re: [PATCH V8 net-next 00/22] Huawei HiNIC Ethernet Driver

2017-08-23 Thread Arnd Bergmann
On Mon, Aug 21, 2017 at 5:55 PM, Aviad Krawczyk wrote: > The patch-set contains the support of the HiNIC Ethernet driver for > hinic family of PCIE Network Interface Cards. > > The Huawei's PCIE HiNIC card is a new Ethernet card and hence there was > a need of a new driver. > > The current driver

Re: [PATCH v2 4/5] arm64: dts: add RK3399-Q7 (Puma) SoM

2017-08-23 Thread Heiko Stuebner
Am Freitag, 18. August 2017, 21:34:44 CEST schrieb Klaus Goger: > The RK3399-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 > connector) system-on-module from Theobroma Systems, featuring the > Rockchip RK3399. > > It provides the following feature set: > * up to 4GB DDR3 > * on-module SPI-

Re: [PATCH v2 05/19] perf, tools: Support weak groups

2017-08-23 Thread Jiri Olsa
On Tue, Aug 22, 2017 at 01:58:12PM -0700, Andi Kleen wrote: > On Tue, Aug 22, 2017 at 10:34:15AM +0200, Jiri Olsa wrote: > > On Fri, Aug 11, 2017 at 04:26:20PM -0700, Andi Kleen wrote: > > > > SNIP > > > > > diff --git a/tools/perf/Documentation/perf-list.txt > > > b/tools/perf/Documentation/per

[BUGFIX PATCH] staging: ccree: save ciphertext for CTS IV

2017-08-23 Thread Gilad Ben-Yossef
The crypto API requires saving the last blocks of ciphertext in req->info for use as IV for CTS mode. The ccree driver was not doing this. This patch fixes that. The bug was manifested with cts(cbc(aes)) mode in tcrypt tests. Fixes: 302ef8ebb4b2 ("Add CryptoCell skcipher support") Signed-off-by:

Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()

2017-08-23 Thread jmondi
Hi Linus, sorry for being late. With Geert's approval I guess my ack is not that necessary, but... On Wed, Aug 23, 2017 at 09:35:42AM +0200, Geert Uytterhoeven wrote: > On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter > wrote: > > The rza1_pctl->ports[] array has RZA1_NPORTS (12) elements. Th

Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-08-23 Thread Laurent Pinchart
Hi Hans, On Wednesday, 23 August 2017 09:52:00 EEST Hans Verkuil wrote: > On 08/22/2017 10:17 PM, Maxime Ripard wrote: > > On Tue, Aug 22, 2017 at 08:43:35AM +0200, Hans Verkuil wrote: > > +static int sun6i_video_link_setup(struct media_entity *entity, > > +

Re: [PATCH v2 5/5] arm64: dts: add Haikou baseboard with RK3399-Q7 SoM

2017-08-23 Thread Heiko Stuebner
Am Freitag, 18. August 2017, 21:34:45 CEST schrieb Klaus Goger: > Haikou is a Qseven and μQseven baseboard featuring PCIe, USB3 and a > video connector for MIPI-DSI/CSI and eDP adapter. > > This dts is for usage with the RK3399-Q7 SoM Puma. > > Signed-off-by: Klaus Goger applied for 4.14, after

Re: [PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-23 Thread Mickaël Salaün
On 23/08/2017 04:44, Alexei Starovoitov wrote: > On Mon, Aug 21, 2017 at 02:09:25AM +0200, Mickaël Salaün wrote: >> The goal of the program subtype is to be able to have different static >> fine-grained verifications for a unique program type. >> >> The struct bpf_verifier_ops gets a new optional

Re: [PATCH v4] mtd: spi-nor: add support for GD25Q256

2017-08-23 Thread Cyrille Pitchen
Hi Andy, Le 16/08/2017 à 05:40, Andy Yan a écrit : > Hi Cyrille: > > > On 2017年08月16日 00:04, Cyrille Pitchen wrote: >> Hi Andy, >> >> Le 25/07/2017 à 12:12, Andy Yan a écrit : >>> Add support for GD25Q256, a 32MiB SPI Nor >>> flash from Gigadevice. >>> >>> Signed-off-by: Andy Yan >>> >>> --- >>

Re: [BUGFIX PATCH] staging: ccree: save ciphertext for CTS IV

2017-08-23 Thread Stephan Mueller
Am Mittwoch, 23. August 2017, 09:41:11 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > > if (areq) { > + /* > + * The crypto API expects us to set the req->info to the last > + * ciphertext block. For encrypt, simply copy from the result. > + *

Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-23 Thread Maxime Ripard
Hi Florian, On Tue, Aug 22, 2017 at 11:35:01AM -0700, Florian Fainelli wrote: > >>> So I think what you are saying is either impossible or engineering-wise > >>> a very stupid design, like using an external MAC with a discrete PHY > >>> connected to the internal MAC's MDIO bus, while using the int

Re: [RFC PATCH 1/4] mm: madvise: read loop's step size beforehand in madvise_inject_error(), prepare for THP support.

2017-08-23 Thread Naoya Horiguchi
On Mon, Aug 14, 2017 at 09:52:13PM -0400, Zi Yan wrote: > From: Zi Yan > > The loop in madvise_inject_error() reads its step size from a page > after it is soft-offlined. It works because the page is: > 1) a hugetlb page: the page size does not change; > 2) a base page: the page size does not cha

Re: Do we really need d_weak_revalidate???

2017-08-23 Thread Ian Kent
On 23/08/17 10:54, Ian Kent wrote: > On 23/08/17 10:40, Ian Kent wrote: >> On 23/08/17 10:32, Ian Kent wrote: >>> On 23/08/17 09:06, NeilBrown wrote: On Mon, Aug 21 2017, Ian Kent wrote: >> >> A mount isn't triggered by kern_path(pathname, 0, &path). >> That '0' would need to

Re: possible circular locking dependency detected [was: linux-next: Tree for Aug 22]

2017-08-23 Thread Peter Zijlstra
On Wed, Aug 23, 2017 at 09:03:04AM +0900, Byungchul Park wrote: > On Tue, Aug 22, 2017 at 09:43:56PM +, Bart Van Assche wrote: > The report is talking about the following lockup: > > A work in a worker A task work on exit to user > -- --

Re: [PATCH] usb: reducing an usb-port auto-resume latency.

2017-08-23 Thread Mathias Nyman
On 23.08.2017 09:18, anshuman.gu...@intel.com wrote: From: Anshuman Gupta This patch will improve the variable auto-resume latency of an usb-port. When xhci gets a port status change event interrupt due to PORT_PLC (port link state transition), linux Host controller driver drives the resume si

[PATCH v2] pinctrl: rockchip: Add rv1108 recalculated iomux support

2017-08-23 Thread David Wu
The pins from GPIO1A0 to GPIO1B1 are special, need to recalculate iomux. And the register offset is larger than the u8 range, so changed to u32. Signed-off-by: David Wu --- drivers/pinctrl/pinctrl-rockchip.c | 68 +- 1 file changed, 67 insertions(+), 1 deletio

Re: [PATCH] staging: fsl-mc: move bus driver out of staging

2017-08-23 Thread Marc Zyngier
On 19/08/17 18:18, laurentiu.tu...@nxp.com wrote: > From: Stuart Yoder > > Move the source files out of staging into their final locations: > -include files in drivers/staging/fsl-mc/include go to include/linux/fsl > -irq-gic-v3-its-fsl-mc-msi.c goes to drivers/irqchip > -source in drivers/

Re: [PATCH 1/1] Revert "mfd: da9061: Fix to remove BBAT_CONT register from chip model"

2017-08-23 Thread Lee Jones
On Mon, 21 Aug 2017, Steve Twiss wrote: > On 21 August 2017 08:50, Lee Jones wrote: > > Hi Lee, > > > To: Steve Twiss > > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH 1/1] Revert "mfd: da9061: Fix to remove BBAT_CONT > > register from chip model

Re: [PATCH 3/3] mm: Count list_lru_one::nr_items lockless

2017-08-23 Thread Kirill Tkhai
On 22.08.2017 22:47, Vladimir Davydov wrote: > On Tue, Aug 22, 2017 at 03:29:35PM +0300, Kirill Tkhai wrote: >> During the reclaiming slab of a memcg, shrink_slab iterates >> over all registered shrinkers in the system, and tries to count >> and consume objects related to the cgroup. In case of mem

Re: [PATCH v3] irqchip: uniphier-aidet: add UniPhier AIDET irqchip driver

2017-08-23 Thread Marc Zyngier
On 23/08/17 02:31, Masahiro Yamada wrote: > UniPhier SoCs contain AIDET (ARM Interrupt Detector). This is intended > to provide additional features that are not covered by GIC. The main > purpose is to provide logic inverter to support low level and falling > edge trigger types for interrupt line

Re: [PATCH v2 3/3] vfio/pci: Don't probe devices that can't be reset

2017-08-23 Thread Jan Glauber
On Fri, Aug 18, 2017 at 09:55:53PM -0600, Alex Williamson wrote: > On Fri, 18 Aug 2017 08:57:09 -0700 > David Daney wrote: > > > On 08/18/2017 07:12 AM, Alex Williamson wrote: [...] > > You previously rejected the idea to silently ignore bus reset requests > > on buses that do not support it.

Re: [GIT PULL] workqueue fixes for v4.13-rc3

2017-08-23 Thread Geert Uytterhoeven
Hi Tejun, On Mon, Aug 7, 2017 at 7:06 PM, Tejun Heo wrote: > On Mon, Aug 07, 2017 at 02:18:51PM +0200, Geert Uytterhoeven wrote: >> This triggers on m68k, which doesn't have SMP. >> Haven't tried it yet on any other system due to holidays. > > That's weird. Can you please apply the following pat

Re: [PATCH] trace: adjust code layout in get_recursion_context

2017-08-23 Thread Ingo Molnar
* Peter Zijlstra wrote: > diff --git a/kernel/events/internal.h b/kernel/events/internal.h > index 486fd78eb8d5..981e4163e16c 100644 > --- a/kernel/events/internal.h > +++ b/kernel/events/internal.h > @@ -206,16 +206,15 @@ static inline unsigned long perf_aux_size(struct > ring_buffer *rb) >

Re: [PATCH v3] serial: 8250_of: Add basic PM runtime support

2017-08-23 Thread Sekhar Nori
On Wednesday 23 August 2017 12:49 PM, Franklin S Cooper Jr wrote: > > > On 08/23/2017 01:34 AM, Sekhar Nori wrote: >> On Monday 21 August 2017 10:29 PM, Franklin S Cooper Jr wrote: >>> >>> >>> On 08/21/2017 07:20 AM, Sekhar Nori wrote: On Thursday 17 August 2017 02:25 AM, Franklin S Cooper J

Re: [PATCH] x86/ioapic: Correctly print IRTE's index field when enabling INTR

2017-08-23 Thread Ingo Molnar
* raymond pang wrote: > When enabling interrupt remap, IOAPIC's RTE contains interrupt_index > field of IRTE. And this field is composed of index and index2 member of > struct IR_IO_APIC_route_entry. Make io_apic_print_entries() correctly > print interrupt index field. > > Signed-off-by: Raymon

linux-next-20170823 failed to build for arm64/defconfig

2017-08-23 Thread Shawn Lin
Hi Thierry and Stephen, commit 67e04d1ab19b0cc6d87ca7c44b058edf678bc3a3 Author: Thierry Reding Date: Tue Aug 15 15:41:10 2017 +0200 drm/tegra: dc: Trace register accesses Add tracepoint events for display controller register accesses. Signed-off-by: Thierry Reding introduce t

Re: [PATCH] gpio: twl6040: remove unneeded forward declaration

2017-08-23 Thread Linus Walleij
On Tue, Aug 22, 2017 at 7:33 PM, Masahiro Yamada wrote: > There is no reference to twl6040gpo_chip before its definition. > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Walleij

[PATCH] MIPS: Revert "MIPS: Fix race on setting and getting cpu_online_mask"

2017-08-23 Thread Matt Redfearn
Commit 6f542ebeaee0 ("MIPS: Fix race on setting and getting cpu_online_mask") effectively reverted commit 8f46cca1e6c06 ("MIPS: SMP: Fix possibility of deadlock when bringing CPUs online") and thus has reinstated the possibility of deadlock. The commit was based on testing of kernel v4.4, where th

[PATCH 0/6] ALSA: core: Fine-tuning for some function implementations

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 10:05:43 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): pcm: Use common error handling code in _snd_pcm_new() pcm: Adjust nine function calls together with a variable assignment pcm: Ad

Re: [PATCH v3] pinctrl: aspeed: Fix ast2500 strap register write logic

2017-08-23 Thread Linus Walleij
On Wed, Aug 23, 2017 at 1:54 AM, Andrew Jeffery wrote: > On Tue, 2017-08-22 at 14:52 +0200, Linus Walleij wrote: >> > On Tue, Aug 15, 2017 at 6:21 PM, Yong Li wrote: >> >> > On AST2500, the hardware strap register(SCU70) only accepts write ‘1’, >> > to clear it to ‘0’, must set bits(write ‘1’) t

[PATCH 1/6] ALSA: pcm: Use common error handling code in _snd_pcm_new()

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 08:40:37 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/core/pcm.c | 30

Re: [patch 1/2] mm, compaction: kcompactd should not ignore pageblock skip

2017-08-23 Thread Vlastimil Babka
On 08/16/2017 01:39 AM, David Rientjes wrote: > Kcompactd is needlessly ignoring pageblock skip information. It is doing > MIGRATE_SYNC_LIGHT compaction, which is no more powerful than > MIGRATE_SYNC compaction. > > If compaction recently failed to isolate memory from a set of pageblocks, > there

Re: [PATCH] x86/boot: check overlap between kernel and EFI_BOOT_SERVICES_*

2017-08-23 Thread Baoquan He
Hi Naoya, On 07/28/17 at 06:48am, Naoya Horiguchi wrote: > > > > So I think of adding some assertion in the patch 1/2 to detect this > > > > overlap > > > > in extract_kernel() even for no KASLR case. > > > > > > EFI_BOOT_SERVICES_* memory are collected as e820 region of > > > E820_TYPE_RAM, how

[PATCH 2/6] ALSA: pcm: Adjust nine function calls together with a variable assignment

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 09:20:29 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- sound/core/pcm.c | 38 +++

Re: [PATCH] rtc: ds1307: add basic support for ds1341 chip

2017-08-23 Thread Linus Walleij
On Wed, Aug 23, 2017 at 7:38 AM, Nikita Yushchenko wrote: > This adds support for reading and writing date/time from/to ds1314 chip. > > Other functionality (alarms, inout clock, output clock) is not added > yet, because availability of that depends on chip connections. > > Signed-off-by: Nikita

Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-23 Thread David Hildenbrand
On 23.08.2017 08:06, Paul Mackerras wrote: > On Wed, Aug 23, 2017 at 01:43:08AM +, Nixiaoming wrote: >>> On 22.08.2017 17:15, David Hildenbrand wrote: On 22.08.2017 16:28, nixiaoming wrote: > miss kfree(stt) when anon_inode_getfd return fail so add check > anon_inode_getfd return

[PATCH 3/6] ALSA: pcm: Adjust 11 checks for null pointers

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 09:28:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

Re: [PATCH 3/3] mm: Count list_lru_one::nr_items lockless

2017-08-23 Thread Vladimir Davydov
On Wed, Aug 23, 2017 at 11:00:56AM +0300, Kirill Tkhai wrote: > On 22.08.2017 22:47, Vladimir Davydov wrote: > > On Tue, Aug 22, 2017 at 03:29:35PM +0300, Kirill Tkhai wrote: > >> During the reclaiming slab of a memcg, shrink_slab iterates > >> over all registered shrinkers in the system, and tries

[PATCH 4/6] ALSA: timer: Use common error handling code in alsa_timer_init()

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 09:30:41 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/core/timer.c | 10 ++ 1

[PATCH] mm/page_fault: Remove reduntant check for write access

2017-08-23 Thread Anshuman Khandual
Flags argument has been copied into vmf.flags and it does not seem to have changed in between. Hence a single write access check can be used for both PUD and PMD. Signed-off-by: Anshuman Khandual --- mm/memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/memory.c

Re: [PATCH v9 1/2] serio: PS/2 gpio bit banging driver for serio bus

2017-08-23 Thread Linus Walleij
On Mon, Aug 21, 2017 at 9:31 PM, Danilo Krummrich wrote: > +static int __ps2_gpio_write(struct serio *serio, unsigned char val) > +static int ps2_gpio_write(struct serio *serio, unsigned char val) I never like the random use of __prefixes as they have unclear semantics. I would name it somethin

[PATCH 5/6] ALSA: timer: Adjust a condition check in snd_timer_resolution()

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 09:45:06 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- sound/core/timer.c | 3 ++- 1 file changed

[PATCH 6/6] ALSA: timer: Adjust 13 checks for null pointers

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 09:54:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[tip:x86/apic] x86/ioapic: Print the IRTE's index field correctly when enabling INTR

2017-08-23 Thread tip-bot for raymond pang
Commit-ID: adfaf18334cbf16c563e4ebc67e968ea1b17ec51 Gitweb: http://git.kernel.org/tip/adfaf18334cbf16c563e4ebc67e968ea1b17ec51 Author: raymond pang AuthorDate: Tue, 22 Aug 2017 23:44:47 +0800 Committer: Ingo Molnar CommitDate: Wed, 23 Aug 2017 10:17:17 +0200 x86/ioapic: Print the IRTE'

Re: [RFC][PATCHv5 00/13] printk: introduce printing kernel thread

2017-08-23 Thread Sergey Senozhatsky
On (08/15/17 11:56), Sergey Senozhatsky wrote: > Sergey Senozhatsky (13): > printk: move printk_pending out of per-cpu > printk: introduce printing kernel thread > printk: add sync printk_emergency API > printk: add enforce_emergency parameter > printk: enable printk offloading > printk

Re: [PATCH 3/6] ALSA: pcm: Adjust 11 checks for null pointers

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:25:49 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 09:28:00 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the following.

[PATCH v1 0/3] Enable some devices for rk3328 evaluation board

2017-08-23 Thread cl
From: Liang Chen 1. enalbe sdio/sdmmc/emmc. 2. enable cpufreq. Liang Chen (3): arm64: dts: rockchip: add mmc nodes for rk3328 evaluation board cpufreq: rockchip: add support for rk3328 soc arm64: dts: rockchip: add cpu regulator for rk3328 evaluation board arch/arm64/boot/dts/rockchip/rk

[PATCH v1 2/3] cpufreq: rockchip: add support for rk3328 soc

2017-08-23 Thread cl
From: Liang Chen Add compatible rockchip,rk3328 to the machines table to launch cpufreq-dt driver for rk3328 soc. Signed-off-by: Liang Chen --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufr

Re: [PATCH 2/6] ALSA: pcm: Adjust nine function calls together with a variable assignment

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:24:34 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 09:20:29 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > ERROR: do not use assignment in if condition > > Thus fix the affected source code places

[PATCH v1 3/3] arm64: dts: rockchip: add cpu regulator for rk3328 evaluation board

2017-08-23 Thread cl
From: Liang Chen RK3328 Evaluation Board use rk805 pmic, and one of the DCDCs in rk805 is for cpu regulator, assign the cpu regulator, so the cpufreq can work fine. Signed-off-by: Liang Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a

Re: [PATCH 1/6] ALSA: pcm: Use common error handling code in _snd_pcm_new()

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:23:23 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 08:40:37 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle softwar

Re: [PATCH 5/6] ALSA: timer: Adjust a condition check in snd_timer_resolution()

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:28:41 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 09:45:06 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > ERROR: do not use assignment in if condition > > Thus fix the affected source code place.

Re: [PATCH 6/6] ALSA: timer: Adjust 13 checks for null pointers

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:29:52 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 09:54:42 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the following.

Re: [PATCH] drm/amdgpu: check memory allocation failure

2017-08-23 Thread Christian König
Am 23.08.2017 um 07:52 schrieb Christophe JAILLET: Check memory allocation failure and return -ENOMEM in such a case. 'num_post_dep_syncobjs' still has to be set to 0 before the test in order to have it initialized if 'amdgpu_cs_parser_fini()' is called to free resources. The calling graph woul

Re: [PATCH 4/6] ALSA: timer: Use common error handling code in alsa_timer_init()

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 10:27:14 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 09:30:41 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle softwar

Re: [patch 2/2] mm, compaction: persistently skip hugetlbfs pageblocks

2017-08-23 Thread Vlastimil Babka
On 08/16/2017 01:39 AM, David Rientjes wrote: > It is pointless to migrate hugetlb memory as part of memory compaction if > the hugetlb size is equal to the pageblock order. No defragmentation is > occurring in this condition. > > It is also pointless to for the freeing scanner to scan a pagebloc

[PATCH v1 1/3] arm64: dts: rockchip: add mmc nodes for rk3328 evaluation board

2017-08-23 Thread cl
From: Liang Chen Rockchip's rk3328 evaluation board has 3 mmc controllers for sdio/sdmmc/emmc, let's enable them. Signed-off-by: Liang Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 74 + 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/roc

Re: [PATCH 2/2 v7] printk: Add monotonic, boottime, and realtime timestamps

2017-08-23 Thread Petr Mladek
On Thu 2017-08-17 09:15:39, Prarit Bhargava wrote: > printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock > timestamp to printk messages. The local hardware clock loses time each > day making it difficult to determine exactly when an issue has occurred in > the kernel log, and

Re: [PATCH v4] mtd: spi-nor: add support for GD25Q256

2017-08-23 Thread Andy Yan
Hi Cyrille: On 2017年08月23日 15:46, Cyrille Pitchen wrote: Hi Andy, Le 16/08/2017 à 05:40, Andy Yan a écrit : Hi Cyrille: On 2017年08月16日 00:04, Cyrille Pitchen wrote: Hi Andy, Le 25/07/2017 à 12:12, Andy Yan a écrit : Add support for GD25Q256, a 32MiB SPI Nor flash from Gigadevice. Signed

[GIT PULL] GPIO fixes for v4.13

2017-08-23 Thread Linus Walleij
Hi Linus, here are the (hopefully) last GPIO fixes for v4.13. Details in the signed tag. Please pull them in! Yours, Linus Walleij The following changes since commit ef954844c7ace62f773f4f23e28d2d915adc419f: Linux 4.13-rc5 (2017-08-13 16:01:32 -0700) are available in the git repository at:

[PATCH v3] net: stmmac: Delete dead code for MDIO registration

2017-08-23 Thread Romain Perier
This code is no longer used, the logging function was changed by commit fbca164776e4 ("net: stmmac: Use the right logging functi"). It was previously showing information about the type if the IRQ, if it's polled, ignored or a normal interrupt. As we don't want information loss, I have moved this co

Re: linux-next-20170823 failed to build for arm64/defconfig

2017-08-23 Thread Thierry Reding
On Wed, Aug 23, 2017 at 04:19:55PM +0800, Shawn Lin wrote: > Hi Thierry and Stephen, > > commit 67e04d1ab19b0cc6d87ca7c44b058edf678bc3a3 > Author: Thierry Reding > Date: Tue Aug 15 15:41:10 2017 +0200 > > drm/tegra: dc: Trace register accesses > > Add tracepoint events for display con

Re: [PATCH v7 0/2] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-08-23 Thread Alexey Budankov
On 22.08.2017 23:21, Peter Zijlstra wrote: > On Fri, Aug 18, 2017 at 08:17:15AM +0300, Alexey Budankov wrote: >> Hi, > > Please don't post new versions in reply to old versions, that gets them > lost in thread sorted views. Accepted. Actually I followed these recommendations: https://git

Re: [PATCH v6 2/3]: perf/core: use context tstamp_data for skipped events on mux interrupt

2017-08-23 Thread Alexey Budankov
On 22.08.2017 23:47, Peter Zijlstra wrote: > On Thu, Aug 10, 2017 at 06:57:43PM +0300, Alexey Budankov wrote: >> The key thing in the patch is explicit updating of tstamp fields for >> INACTIVE events in update_event_times(). > >> @@ -1405,6 +1426,9 @@ static void update_event_times(struct perf_ev

[PATCH v2 3/4] docs-rst: pdf: use same vertical margin on all Sphinx versions

2017-08-23 Thread Mauro Carvalho Chehab
Currently, on Sphinx up to version 1.4, pdf output uses a vertical margin of 1 inch. For upper versions, it uses a margin of 0.5 inches. That causes both page headers and footers to be very close to the margin of the sheet. Not all printers support writing like that. Also, there's no reason why t

[PATCH v2 4/4] docs-rst: Allow Sphinx version 1.6

2017-08-23 Thread Mauro Carvalho Chehab
Now that the PDF building issues with Sphinx 1.6 got fixed, update the documentation and scripts accordingly. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 3 --- Documentation/doc-guide/sphinx.rst | 4 +--- scripts/sphinx-pre-install | 1 - 3 files change

[PATCH v2 1/4] media: fix pdf build with Spinx 1.6

2017-08-23 Thread Mauro Carvalho Chehab
Sphinx 1.6 generates some LaTeX code before each table, starting its own environment before calling tabulary, apparently to improve table layout. The problem is that such environment is incompatible with adjustbox. While, in thesis, it should be possible to override it or to redefine tabulary, I w

[PATCH v2 0/4] Fix problems with PDF output with Sphinx 1.6

2017-08-23 Thread Mauro Carvalho Chehab
This series have a few patches that fix Sphinx 1.6 builds. I've sent two of those patches before, individually, but it was not clear who should merge it. So, I ended by splitting the first patch into two ones: one touching just at the media book, and the last one touching Sphinx documentation and b

Re: [PATCH v2 6/8] KVM: arm/arm64: vgic: Implement forwarding setting

2017-08-23 Thread Auger Eric
Hi Christoffer, On 21/07/2017 15:13, Christoffer Dall wrote: > On Thu, Jun 15, 2017 at 02:52:38PM +0200, Eric Auger wrote: >> Implements kvm_vgic_[set|unset]_forwarding. >> >> Handle low-level VGIC programming and consistent irqchip >> programming. >> >> Signed-off-by: Eric Auger >> >> --- >> >>

[PATCH v2 2/4] media: dev-sliced-vbi.rst: fix verbatim font size on a table

2017-08-23 Thread Mauro Carvalho Chehab
On Sphinx 1.6, verbatim font is always \small. That causes a problem inside Sliced VBI services table, as it is too big for the box. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-sliced-vbi.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/media

Re: [BUGFIX PATCH] staging: ccree: save ciphertext for CTS IV

2017-08-23 Thread Gilad Ben-Yossef
On Wed, Aug 23, 2017 at 10:47 AM, Stephan Mueller wrote: > Am Mittwoch, 23. August 2017, 09:41:11 CEST schrieb Gilad Ben-Yossef: > > Hi Gilad, > >> >> if (areq) { >> + /* >> + * The crypto API expects us to set the req->info to the last >> + * ciphertext

Re: [PATCH] staging: fsl-mc: move bus driver out of staging

2017-08-23 Thread Laurentiu Tudor
On 08/23/2017 04:39 AM, Greg KH wrote: > On Sat, Aug 19, 2017 at 08:18:12PM +0300, laurentiu.tu...@nxp.com wrote: >> From: Stuart Yoder >> >> Move the source files out of staging into their final locations: >>-include files in drivers/staging/fsl-mc/include go to include/linux/fsl >>-irq

Re: DSA support for Micrel KSZ8895

2017-08-23 Thread Pavel Machek
Hi! > > Woojung is the expert here. His DSA driver for the 9477 is a nice > > clean driver. > > > > Have you compared the 8895 to the 9477. Are they similar? Could the > > existing 9477 be extended to support the 8895? > > > > Andrew > > Hi Pavel, > > I'll forward your email to our suppor

[BUGFIX PATCH v2] staging: ccree: save ciphertext for CTS IV

2017-08-23 Thread Gilad Ben-Yossef
The crypto API requires saving the last blocks of ciphertext in req->info for use as IV for CTS mode. The ccree driver was not doing this. This patch fixes that. The bug was manifested with cts(cbc(aes)) mode in tcrypt tests. Fixes: 302ef8ebb4b2 ("Add CryptoCell skcipher support") Signed-off-by:

Re: [PATCH V8 net-next 00/22] Huawei HiNIC Ethernet Driver

2017-08-23 Thread Aviad Krawczyk
Thanks, David! Thanks to all the reviewers! On 8/22/2017 8:58 PM, David Miller wrote: > From: Aviad Krawczyk > Date: Mon, 21 Aug 2017 23:55:46 +0800 > >> The patch-set contains the support of the HiNIC Ethernet driver for >> hinic family of PCIE Network Interface Cards. > > Series applied, than

Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-23 Thread David Hildenbrand
>>> + mutex_unlock(&kvm->lock); >>> + kvm_put_kvm(kvm); >>> + goto fail; >>> + } >>> + return ret; > > of simply > > if (!ret) if (ret >= 0) return ret; is of course what I meant :) > return 0; > > mutex_lock(&kvm->lock); >

Re: [PATCH] doc: coresight: correct usage for '/dev/cpu_dma_latency'

2017-08-23 Thread Sudeep Holla
On 23/08/17 08:23, Leo Yan wrote: > In the coresight CPU debug document it suggests to use 'echo' command > to set latency request to /dev/cpu_dma_latency so can disable all CPU > idle states, but in fact this doesn't work. > > This is because when the command 'echo' exits, it releases the devic

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

2017-08-23 Thread Marc Zyngier
On 18/07/17 22:43, Rob Herring wrote: > 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: Thomas Gleixner > Cc: Jason Cooper > C

[PATCH] staging:rtl8188eu:core Fix coding style Issues

2017-08-23 Thread Janani S
This patch solves the following warning shown by the checkpatch script WARNING: Comparisons should place the constants on the right side of the test Signed-off-by: Janani Sankara Babu --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH v5 0/4] Add support for ThunderX2 pmu events using json files

2017-08-23 Thread John Garry
On 22/08/2017 05:21, Ganapatrao Kulkarni wrote: Hi Arnaldo, Will, are there any comments on this series? Hi Ganapatrao, Is it possible to have vendor sub-folder in tools/perf/pmu-events/arch/arm64 folder (like arm64 device tree files)? We (HiSilicon) want to add support for our hip08 SoC,

  1   2   3   4   5   6   7   8   9   >