Re: [PATCH v2 00/11] kexec_file: Clean up purgatory load

2018-04-10 Thread Dave Young
On 03/23/18 at 10:41am, Philipp Rudo wrote: > Hi Andrew, > Hi Dave, > > i checked out linux-next with the patches and it looks good to me. Also made a > quick test and everything works fine. Thank you! Not sure if it is late about an ack :) Anyway, for the series: Acked-by: Dave Young Thanks

Re: [PATCH v2 20/21] gcc-plugins: enable GCC_PLUGINS for COMPILE_TEST

2018-04-10 Thread Kees Cook
On Mon, Apr 9, 2018 at 11:15 PM, Masahiro Yamada wrote: > Can you explain a bit more about GCC_PLUGIN_RANDSTRUCT_PERFORMANCE? > > IIUC, this option reduces the randomization. Correct: I don't want to do COMPILE_TEST buids with GCC_PLUGIN_RANDSTRUCT_PERFORMANCE since it is effectively a subset of

Re: [RFC] UBIFS authentication

2018-04-10 Thread Sascha Hauer
On Mon, Apr 09, 2018 at 05:23:05PM +0200, David Gstir wrote: > Hi Sascha, > > > On 09.04.2018, at 11:59, Sascha Hauer wrote: > > > > Hi David, > > > > On Wed, Jan 17, 2018 at 04:19:14PM +0100, David Gstir wrote: > >> Hi everybody! > >> > >> ### Index Authentication > >> > >> Through UBIFS' co

Re: [PATCH v9 00/10] sched/cpuidle: Idle loop rework

2018-04-10 Thread Rafael J. Wysocki
On Monday, April 9, 2018 5:58:32 PM CEST Thomas Ilsche wrote: > > --ms020002070802070802040704 > Content-Type: text/plain; charset=utf-8; format=flowed > Content-Language: en-US > Content-Transfer-Encoding: quoted-printable > > On 2018-04-08 18:32, Rafael J. Wysocki wrote: > > The v9

Re: linux-next: build warning after merge of the pm tree

2018-04-10 Thread Rafael J. Wysocki
On Monday, April 9, 2018 3:24:38 AM CEST Stephen Rothwell wrote: > > --Sig_/QL=OZEguM./+7xhHdQruHaV > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: quoted-printable > > Hi Rafael, > > After merging the pm tree, today's linux-next build (arm > multi_v7_defconfig) produce

Re: [PATCH] pinctrl/samsung: Correct EINTG banks order

2018-04-10 Thread Krzysztof Kozlowski
On Sun, Apr 8, 2018 at 8:07 PM, Paweł Chmiel wrote: > All banks with GPIO interrupts should be at beginning > of bank array and without any other types of banks between them. > This order is expected by exynos_eint_gpio_irq, when doing > interrupt group to bank translation. > Otherwise, kernel NUL

Re: [PATCH] linux/kernel.h: Fix minor type in comment

2018-04-10 Thread Ingo Molnar
* Yuval Shaia wrote: > Signed-off-by: Yuval Shaia > --- > include/linux/kernel.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/kernel.h b/include/linux/kernel.h > index ce51455e2adf..a5b4ba3bdb61 100644 > --- a/include/linux/kernel.h > +++ b/include/li

RE: [PATCH v3 2/8] DT: reset: renesas,rzn1-reboot: document RZ/N1 reboot driver

2018-04-10 Thread Michel Pollet
Hi Rob, On 09 April 2018 21:10, Rob Herring wrote: > On Thu, Mar 29, 2018 at 08:46:58AM +0100, Michel Pollet wrote: > > The Renesas RZ/N1 Family (Part #R9A06G0xx) requires a driver as part > > of the sysctrl MFD to handle rebooting the CA7 cores. > > This documents the driver bindings. > > > > Si

Re: [PATCH 1/2] kobject: add kobject_read()

2018-04-10 Thread Greg Kroah-Hartman
On Tue, Apr 10, 2018 at 06:53:50AM +, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > We are counting kobject by using kobject_get/put(), but > not have kobject_read() which can be used to check count. > Let's add No, please do not. You should never care about this "count", and if

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-10 Thread Raslan, KarimAllah
On Mon, 2018-04-09 at 12:24 -0700, Jim Mattson wrote: > On Mon, Apr 9, 2018 at 1:37 AM, KarimAllah Ahmed wrote: > > > > > + /* > > +* Force a nested exit that guarantees that any state capture > > +* afterwards by any IOCTLs (MSRs, etc) will not capture a mix of L1 > > +

Re: [PATCH 2/2] of: add of_node_read()

2018-04-10 Thread Greg Kroah-Hartman
On Tue, Apr 10, 2018 at 06:54:13AM +, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > We are counting of node by using of_node_get/put(), but > not have of_node_read() which can be used to check count. > Let's add it Same objection as previous patch, please no. thanks, greg k-h

Re: Linux 3.18.104

2018-04-10 Thread Greg KH
diff --git a/Makefile b/Makefile index 2df4a1163714..2eae8b1039aa 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 103 +SUBLEVEL = 104 EXTRAVERSION = NAME = Diseased Newt diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet

Linux 3.18.104

2018-04-10 Thread Greg KH
I'm announcing the release of the 3.18.104 kernel. Only users who had build errors in 3.18.103 need to upgrade, this is a single-bugfix-only release. 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

Re: [PATCH] linux/kernel.h: Fix minor type in comment

2018-04-10 Thread Yuval Shaia
On Tue, Apr 10, 2018 at 09:06:26AM +0200, Ingo Molnar wrote: > > * Yuval Shaia wrote: > > > Signed-off-by: Yuval Shaia > > --- > > include/linux/kernel.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/linux/kernel.h b/include/linux/kernel.h > > index ce

Re: [PATCH] perf list: Add s390 support for detailed/verbose pmu event description

2018-04-10 Thread Thomas-Mich Richter
On 04/09/2018 04:18 PM, Mark Rutland wrote: > On Mon, Apr 09, 2018 at 03:03:32PM +0200, Thomas-Mich Richter wrote: >> On 04/09/2018 01:37 PM, Mark Rutland wrote: >>> On Mon, Apr 09, 2018 at 01:00:15PM +0200, Thomas Richter wrote: @@ -562,6 +562,12 @@ static int is_pmu_core(const char *name) >>

Re: [PATCH] tick-sched: avoid a maybe-uninitialized warning

2018-04-10 Thread Rafael J. Wysocki
On Monday, April 9, 2018 7:53:30 PM CEST Arnd Bergmann wrote: > On Mon, Apr 9, 2018 at 6:18 PM, Ingo Molnar wrote: > > > > * Arnd Bergmann wrote: > > > >> The use of bitfields seems to confuse gcc, leading to a false-positive > >> warning in all compiler versions: > >> > >> kernel/time/tick-sched

Re: [PATCH v4 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values

2018-04-10 Thread Manu Gautam
On 4/10/2018 1:48 AM, Rob Herring wrote: > On Thu, Mar 29, 2018 at 01:38:23PM -0700, Doug Anderson wrote: >> Hi, >> >> On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: >>> To improve eye diagram for PHYs on different boards of same SOC, >>> some parameters may need to be changed. Provide devi

[PATCH v1] linux/kernel.h: Fix minor typo in comment

2018-04-10 Thread Yuval Shaia
Signed-off-by: Yuval Shaia --- v1 ->v2: * Fix typo in commit message --- include/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index ce51455e2adf..a5b4ba3bdb61 100644 --- a/include/linux/kernel.h +++ b/in

Re: [PATCH] firmware: dmi_scan: Fix UUID length safety check

2018-04-10 Thread Mika Westerberg
On Mon, Apr 09, 2018 at 02:51:43PM +0200, Jean Delvare wrote: > The test which ensures that the DMI type 1 structure is long enough > to hold the UUID is off by one. It would fail if the structure is > exactly 24 bytes long, while that's sufficient to hold the UUID. > > I don't expect this bug to

Re: [PATCH v6 20/25] drivers: firmware: psci: Introduce psci_dt_topology_init()

2018-04-10 Thread Ulf Hansson
On 14 March 2018 at 18:38, Mark Rutland wrote: > On Wed, Mar 14, 2018 at 05:58:30PM +0100, Ulf Hansson wrote: >> In case the hierarchical layout is used in DT, we want to initialize the >> corresponding PM domain topology for the CPUs, by using the generic PM >> domain (aka genpd) infrastructure.

Re: [PATCH] f2fs: enlarge block plug coverage

2018-04-10 Thread Chao Yu
On 2018/4/10 12:10, Jaegeuk Kim wrote: > On 04/10, Chao Yu wrote: >> On 2018/4/10 2:02, Jaegeuk Kim wrote: >>> On 04/08, Chao Yu wrote: On 2018/4/5 11:51, Jaegeuk Kim wrote: > On 04/04, Chao Yu wrote: >> This patch enlarges block plug coverage in __issue_discard_cmd, in >> order to

[PATCH] f2fs: turn down IO priority of discard from background

2018-04-10 Thread Chao Yu
In order to interfere normal r/w IO, let's turn down IO priority of discard issued from background. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index aabe0d6b8307..5e708debeb9c 100644 --- a/fs/f2fs/segment

Re: [RFC] vhost: introduce mdev based hardware vhost backend

2018-04-10 Thread Jason Wang
On 2018年04月10日 12:57, Tiwei Bie wrote: On Tue, Apr 10, 2018 at 10:52:52AM +0800, Jason Wang wrote: On 2018年04月02日 23:23, Tiwei Bie wrote: This patch introduces a mdev (mediated device) based hardware vhost backend. This backend is an abstraction of the various hardware vhost accelerators (pot

[RESEND PATCH] rtc: tps65910: add bounds checking

2018-04-10 Thread 林上智
Since tm->tm_year is the offset relative to 1900, it needs to check for positive value to avoid overflow in YEARS_REG register. The system will hang at the following stage on the next boot when overflow has occurred. [2.221192] systemd[1]: Time has been changed This patch fixes the above han

Re: [f2fs-dev] [PATCH v3] f2fs: don't use GFP_ZERO for page caches

2018-04-10 Thread Chao Yu
On 2018/4/10 14:40, Jaegeuk Kim wrote: > On 04/10, Chao Yu wrote: >> On 2018/4/10 11:29, Jaegeuk Kim wrote: >>> Change log from v2: >>> - consider IO error case when dealing with metapage >>> - memset by fill_node_footer >>> >>> Change log from v1: >>> - don't memset for recovered page >>> >>>

Re: Linux 3.18.104

2018-04-10 Thread Harsh Shandilya
On 10 April 2018 12:43:46 PM IST, Greg KH wrote: >I'm announcing the release of the 3.18.104 kernel. > >Only users who had build errors in 3.18.103 need to upgrade, this is a >single-bugfix-only release. > >The updated 3.18.y git tree can be found at: > git://git.kernel.org/pub/scm/linux/k

[PATCH v4 2/3] arm64: usercopy: implement arch_within_stack_frames

2018-04-10 Thread kpark3469
From: James Morse This implements arch_within_stack_frames() for arm64 that should validate if a given object is contained by a kernel stack frame. Signed-off-by: James Morse Reviewed-by: Sahara Reviewed-by: Kees Cook --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/stacktrace.c

[PATCH v4 1/3] stacktrace: move arch_within_stack_frames from thread_info.h

2018-04-10 Thread kpark3469
From: Sahara Since the inlined arch_within_stack_frames function was placed within asm/thread_info.h, using stacktrace functions to unwind stack was restricted. Now in order to have this function use more abundant apis, it is moved to architecture's stacktrace.c. And, it is changed from inline to

[PATCH v4 3/3] x86: usercopy: reimplement arch_within_stack_frames with unwinder

2018-04-10 Thread kpark3469
From: Sahara The old arch_within_stack_frames which used the frame pointer is now reimplemented to use frame pointer unwinder apis. So the main functionality is same as before. Signed-off-by: Sahara --- arch/x86/include/asm/unwind.h | 5 arch/x86/kernel/stacktrace.c | 64 +

[PATCH v4 0/3] usercopy: reimplement arch_within_stack_frames

2018-04-10 Thread kpark3469
From: Sahara This series of patches introduce the arm64 arch_within_stack_frames implementation using stacktrace functions. Also the base code is moved from thread_info.h to stacktrace.h. x86 code is reimplemented to use frame pointer unwinder functions. Note: The code is still missing in case o

Re: [PATCH v2] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-04-10 Thread Felipe Balbi
Hi, Minas Harutyunyan writes: >>> Actually to fix this issue I updated condition of wait function >>> from: >>> !(dep->flags & DWC3_EP_END_TRANSFER_PENDING) >>> to: >>> !(dep->flags & DWC3_EP_END_TRANSFER_PENDING & DWC3_EP_ENABLED) >> >> you're not fixing anything. Yo

[PATCH v2] perf list: Add s390 support for detailed/verbose pmu event description

2018-04-10 Thread Thomas Richter
From: Thomas Richter Perf list with flags -d and -v print a description (-d) or a very verbose explanation (-v) of CPU specific counter events. These descriptions are provided with the json files in directory pmu-events/arch/s390/*.json. Display of these descriptions on s390 requires the corresp

Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can have only true / forse values. Since the return type of the tick_nohz_tick_stopped is also bool, variable tick_stopped nice to have data type as bool in place of int. Moreover, the executed instructions cost could be mi

Re: [PATCH 0/8] Input: support for latest Lenovo thinkpads (series 80)

2018-04-10 Thread Benjamin Tissoires
Hi KT, On Tue, Apr 10, 2018 at 7:45 AM, 廖崇榮 wrote: > Hi Benjamin, > > Thanks so much for your patch. > > I have tested them for Elan Gen5/Gen6(new) touchpad with SMbus/PS2. > It works fine in my thinkpad so far but I find an issue today after > lid-close/open. > > I am not sure if you can see it

[PATCH 2/2] usb: isp1760: Replace mdelay with msleep in isp1760_stop

2018-04-10 Thread Jia-Ju Bai
isp1760_stop() is never called in atomic context. The call chain ending up at isp1760_stop() is: [1] isp1760_stop() <- isp1760_shutdown() isp1760_shutdown() is set as ".shutdown" in struct hc_driver. isp1760_stop() is also set as ".stop" in hc_driver. These functions are not called in atomic cont

[PATCH 1/2] usb: isp1760: Replace mdelay with msleep in isp1760_init_core

2018-04-10 Thread Jia-Ju Bai
isp1760_init_core() is never called in atomic context. The call chains ending up at isp1760_init_core() are: [1] isp1760_init_core() <- isp1760_register() <- isp1760_plat_probe() [2] isp1760_init_core() <- isp1760_register() <- isp1761_pci_probe() isp1760_plat_probe() is set as ".probe" in struct

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-10 Thread Raslan, KarimAllah
On Mon, 2018-04-09 at 13:26 +0200, David Hildenbrand wrote: > On 09.04.2018 10:37, KarimAllah Ahmed wrote: > > > > From: Jim Mattson > > > > For nested virtualization L0 KVM is managing a bit of state for L2 guests, > > this state can not be captured through the currently available IOCTLs. In >

Re: [PATCH v3] i2c: i801: blacklist Host Notify on HP EliteBook G3 850

2018-04-10 Thread Jean Delvare
On Thu, 5 Apr 2018 14:38:24 -0400, Jason Andryuk wrote: > The HP EliteBook G3 850 has a weird bug where a subsequent cold boot > hangs while plugged in if Linux enables the Host Notify features of > i2c-i801. The cold boot hang depends on how the system boots. It does > not hang on UEFI Grub tex

Re: [PATCH v2 00/10] Add support for SAMA5D2 touchscreen

2018-04-10 Thread Quentin Schulz
Hi Jonathan and Eugen, On Fri, Mar 30, 2018 at 02:02:12PM +0100, Jonathan Cameron wrote: > On Tue, 27 Mar 2018 15:32:33 +0300 > Eugen Hristev wrote: > > > Hello, > > > > This patch series is a rework of my previous series named: > > [PATCH 00/14] iio: triggers: add consumer support > > > > In

Re: [PATCH] usb: typec: ucsi: fix tracepoint related build error

2018-04-10 Thread Heikki Krogerus
Hi Tobias, On Mon, Apr 09, 2018 at 01:40:53PM +0200, Tobias Regnery wrote: > You are right, building a defconfig, enable the UCSI driver and disable > CONFIG_FTRACE indeed builds without problems. So it must be some other > combination of config options. Attached is the randconfig which triggers >

Re: [PATCH] f2fs: set deadline to drop expired inmem pages

2018-04-10 Thread Chao Yu
Hi Jaegeuk, On 2018/4/8 16:13, Chao Yu wrote: > f2fs doesn't allow abuse on atomic write class interface, so except > limiting in-mem pages' total memory usage capacity, we need to limit > start-commit time as well, otherwise we may run into infinite loop > during foreground GC because target bloc

Re: [PATCH] xhci: Fix USB ports for Dell Inspiron 5775

2018-04-10 Thread Mathias Nyman
On 10.04.2018 07:56, Kai Heng Feng wrote: Hi Matthias, On Mar 18, 2018, at 11:11 PM, Kai-Heng Feng wrote: The Dell Inspiron 5775 is a Raven Ridge. The Enable Slot command timed out when a USB device gets plugged: [ 212.156326] xhci_hcd :03:00.3: Error while assigning device slot ID [ 212.

Re: Occasionally losing the tick_sched_timer

2018-04-10 Thread Thomas Gleixner
Nick, On Tue, 10 Apr 2018, Nicholas Piggin wrote: > We are seeing rare hard lockup watchdog timeouts, a CPU seems to have no > more timers scheduled, despite hard and soft lockup watchdogs should have > their heart beat timers and probably many others. > > The reproducer we have is running a KVM w

[PATCH v2] f2fs: turn down IO priority of discard from background

2018-04-10 Thread Chao Yu
In order to avoid interfering normal r/w IO, let's turn down IO priority of discard issued from background. Signed-off-by: Chao Yu --- v2: - correct commit message. fs/f2fs/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index aabe0d6b8307..5e7

[PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can only be true / false values. Since the return type of the tick_nohz_tick_stopped is also bool, variable tick_stopped nice to have data type as bool in place of int. Moreover, the executed instructions cost could be mini

[PATCH 5/5] dmaengine: sprd: Add 'device_config' and 'device_prep_slave_sg' interfaces

2018-04-10 Thread Baolin Wang
This patch adds the 'device_config' and 'device_prep_slave_sg' interfaces for users to configure DMA. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 48 1 file changed, 48 insertions(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma

Re: [PATCH 1/9] mtd: nand: qcom: use the ecc strength from device parameter

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Tue, 10 Apr 2018 11:39:35 +0530, Abhishek Sahu wrote: > On 2018-04-06 18:01, Miquel Raynal wrote: > > Hi Abhishek, > > > > On Wed, 4 Apr 2018 18:12:17 +0530, Abhishek Sahu > > wrote: > > > >> Currently the driver uses the ECC strength specified in > >> device tree. The ONFI

[PATCH 1/5] dmaengine: sprd: Define the DMA transfer step type

2018-04-10 Thread Baolin Wang
From: Eric Long Define the DMA transfer step type to make code more readable. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma

[PATCH 4/5] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-04-10 Thread Baolin Wang
There are some Spreadtrum special configuration for DMA controller, thus this patch adds one 'struct sprd_dma_config' structure for users to configure. Moreover this patch did some optimization for sprd_dma_config() and sprd_dma_prep_dma_memcpy() to prepare to configure DMA from users. Signed-off

[PATCH 2/5] dmaengine: sprd: Define the DMA data width type

2018-04-10 Thread Baolin Wang
Define the DMA data width type to make code more readable. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index af9c156..9f44d6f 100644 --- a/drivers/dma/s

[PATCH 3/5] dmaengine: sprd: Move DMA request mode and interrupt type into head file

2018-04-10 Thread Baolin Wang
From: Eric Long This patch will move the Spreadtrum DMA request mode and interrupt type into one head file for user to configure. And other special SPRD DMA configurations will be added in the following patches. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 14:39:35, Zhaoyang Huang wrote: > On Tue, Apr 10, 2018 at 2:14 PM, Michal Hocko wrote: > > On Tue 10-04-18 11:41:44, Zhaoyang Huang wrote: > >> On Tue, Apr 10, 2018 at 11:12 AM, Steven Rostedt > >> wrote: > >> > On Tue, 10 Apr 2018 10:32:36 +0800 > >> > Zhaoyang Huang wrote: > >

Re: [virtio-dev] Re: [RFC] vhost: introduce mdev based hardware vhost backend

2018-04-10 Thread Paolo Bonzini
On 10/04/2018 06:57, Tiwei Bie wrote: >> So you just move the abstraction layer from qemu to kernel, and you still >> need different drivers in kernel for different device interfaces of >> accelerators. This looks even more complex than leaving it in qemu. As you >> said, another idea is to impleme

RE: [PATCH v3] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-10 Thread Paul Durrant
> -Original Message- > From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: 09 April 2018 20:19 > To: Paul Durrant ; xen-de...@lists.xenproject.org; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Cc: Juergen Gross ; Thomas Gleixner > ; Ingo Molnar ; Stef

Re: [PATCH 1/9] mtd: nand: qcom: use the ecc strength from device parameter

2018-04-10 Thread Miquel Raynal
> Hi Abhishek, > > On Tue, 10 Apr 2018 11:39:35 +0530, Abhishek Sahu > wrote: > > > On 2018-04-06 18:01, Miquel Raynal wrote: > > > Hi Abhishek, > > > > > > On Wed, 4 Apr 2018 18:12:17 +0530, Abhishek Sahu > > > wrote: > > > > > >> Currently the driver uses the ECC strength specified

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Thomas Gleixner
On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: > From: John Zhao > > Variable tick_stopped returned by tick_nohz_tick_stopped > can have only true / forse values. Since the return type > of the tick_nohz_tick_stopped is also bool, variable > tick_stopped nice to have data type as bool in pl

Re: [RESEND PATCH] rtc: tps65910: add bounds checking

2018-04-10 Thread Alexandre Belloni
Hi, On 10/04/2018 15:24:17+0800, SZ Lin (林上智) wrote: > Since tm->tm_year is the offset relative to 1900, it needs to check for > positive value to avoid overflow in YEARS_REG register. > > The system will hang at the following stage on the next boot when overflow > has occurred. > > [2.22119

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-10 Thread jacopo mondi
Hi Christoph, On Mon, Apr 09, 2018 at 10:52:51AM -0700, Christoph Hellwig wrote: > On Mon, Apr 09, 2018 at 06:59:08PM +0200, Jacopo Mondi wrote: > > I'm still a bit puzzled on what happens if dma_mmap_from_dev_coherent() > > fails. > > Does a dma_mmap_from_dev_coherent() failure guarantee anyhow

Re: [PATCH] misc: tifm: Remove VLA

2018-04-10 Thread Arnd Bergmann
On Mon, Apr 9, 2018 at 11:07 PM, Laura Abbott wrote: > There's an ongoing effort to remove VLAs[1] from the kernel to eventually > turn on -Wvla. The single VLA can either take a value of 2 or 4 so switch > to the upper bound. > > [1] https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Laura Abb

[PATCH v4] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-10 Thread Paul Durrant
My recent Xen patch series introduces a new HYPERVISOR_memory_op to support direct priv-mapping of certain guest resources (such as ioreq pages, used by emulators) by a tools domain, rather than having to access such resources via the guest P2M. This patch adds the necessary infrastructure to the

Re: [PATCH] ipc/shm: fix use-after-free of shm file via remap_file_pages()

2018-04-10 Thread Kirill A. Shutemov
On Mon, Apr 09, 2018 at 01:36:35PM -0700, Eric Biggers wrote: > On Mon, Apr 09, 2018 at 01:12:32PM -0700, Davidlohr Bueso wrote: > > On Mon, 09 Apr 2018, Eric Biggers wrote: > > > > > It's necessary because if we don't hold a reference to sfd->file, then it > > > can be > > > a stale pointer when

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Rafael J. Wysocki
On Tue, Apr 10, 2018 at 9:33 AM, wrote: > From: John Zhao > > Variable tick_stopped returned by tick_nohz_tick_stopped > can have only true / forse values. Since the return type > of the tick_nohz_tick_stopped is also bool, variable > tick_stopped nice to have data type as bool in place of int.

Re: [PATCH v2 6/9] PCI: dwc: Define maximum number of vectors

2018-04-10 Thread Gustavo Pimentel
Hi Lorenzo, On 09/04/2018 17:03, Lorenzo Pieralisi wrote: > On Mon, Apr 09, 2018 at 10:41:15AM +0100, Gustavo Pimentel wrote: >> Adds a callback that defines the maximum number of vectors that can be use >> by the Root Complex. >> >> Since this is a parameter associated to each SoC IP setting, mak

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Zhaoyang Huang
On Tue, Apr 10, 2018 at 3:49 PM, Michal Hocko wrote: > On Tue 10-04-18 14:39:35, Zhaoyang Huang wrote: >> On Tue, Apr 10, 2018 at 2:14 PM, Michal Hocko wrote: >> > On Tue 10-04-18 11:41:44, Zhaoyang Huang wrote: >> >> On Tue, Apr 10, 2018 at 11:12 AM, Steven Rostedt >> >> wrote: >> >> > On Tue,

Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called

2018-04-10 Thread Baolin Wang
Hi Grygorii, On 10 April 2018 at 04:56, Grygorii Strashko wrote: > > > On 04/09/2018 01:40 AM, Baolin Wang wrote: >> Add one flag to indicate if the i2c controller has been in suspend state, >> which can prevent i2c accesses after i2c controller is suspended following >> system suspend. > > This

Re: [PATCH 1/9] mtd: nand: qcom: use the ecc strength from device parameter

2018-04-10 Thread Boris Brezillon
On Tue, 10 Apr 2018 09:55:58 +0200 Miquel Raynal wrote: > > Hi Abhishek, > > > > On Tue, 10 Apr 2018 11:39:35 +0530, Abhishek Sahu > > wrote: > > > > > On 2018-04-06 18:01, Miquel Raynal wrote: > > > > Hi Abhishek, > > > > > > > > On Wed, 4 Apr 2018 18:12:17 +0530, Abhishek Sahu > > >

Re: [PATCH] gpio: xra1403: Switch to a fixed upper bound for registers

2018-04-10 Thread Geert Uytterhoeven
Hi Laura, On Mon, Apr 9, 2018 at 11:07 PM, Laura Abbott wrote: > Geert Uytterhoeven pointed out that the number of register was a > fixed upper bound so there's no need to use a dynamically allocated > array in place of a VLA. Use the defined upper bound. > > Suggested-by: Geert Uytterhoeven > S

Re: [PATCH v2 0/2] clk: at91: Added more information logging

2018-04-10 Thread Boris Brezillon
Hi Marcin On Mon, 9 Apr 2018 20:15:51 -0400 Marcin Ziemianowicz wrote: > This is a series of patches which resolves set_rate() for the PLL not > having any effect and therefore the USB Host port not working. Also, a > few messages were added which may be helpful in the future when others > are w

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
On 2018-04-10 03:55 PM, Thomas Gleixner wrote: On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can have only true / forse values. Since the return type of the tick_nohz_tick_stopped is also bool, variable tick_stoppe

[RFC PATCH] vfio: Implement new Ioctl VFIO_IOMMU_GET_DIRTY_BITMAP

2018-04-10 Thread Yulei Zhang
Corresponding to the V4 migration patch set for vfio pci device, this patch is to implement the new ioctl VFIO_IOMMU_GET_DIRTY_BITMAP to fulfill the requirement for vfio-mdev device live migration, which need copy the memory that has been pinned in iommu container to the target VM for mdev device s

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: > On Tue, Apr 10, 2018 at 3:49 PM, Michal Hocko wrote: > > On Tue 10-04-18 14:39:35, Zhaoyang Huang wrote: > >> On Tue, Apr 10, 2018 at 2:14 PM, Michal Hocko wrote: [...] > >> > OOM_SCORE_ADJ_MIN means "hide the process from the OOM killer > >> > c

x86-tip.today (4cdf573) early instaboot

2018-04-10 Thread Mike Galbraith
Hi Ingo, FYI, my i4790 box reboots immediately.. or close enough to it that you see nothing at all before again meeting the bios splash. Master with the ~same config works fine. I haven't poked around yet (work). -Mike config-4.16.0.g4cdf573-tip-default.xz Description: application/xz

[PATCH 2/3] thermal: armada_thermal: Replace mdelay with msleep in armada375_init_sensor

2018-04-10 Thread Jia-Ju Bai
armada375_init_sensor() is never called in atomic context. armada375_init_sensor() is set as ".init_sensor" in struct armada_thermal_data. ".init_sensor" is called armada_thermal_probe(). armada_thermal_probe() is set as ".probe" in struct platform_driver. This function is not called in atomic con

[PATCH 1/3] thermal: armada_thermal: Replace mdelay with usleep_range in armada370_init_sensor

2018-04-10 Thread Jia-Ju Bai
armada370_init_sensor() is never called in atomic context. armada370_init_sensor() is set as ".init_sensor" in struct armada_thermal_data. ".init_sensor" is called armada_thermal_probe(). armada_thermal_probe() is set as ".probe" in struct platform_driver. This function is not called in atomic co

[PATCH 3/3] thermal: armada_thermal: Replace mdelay with usleep_range in armada380_init_sensor

2018-04-10 Thread Jia-Ju Bai
armada380_init_sensor() is never called in atomic context. armada380_init_sensor() is set as ".init_sensor" in struct armada_thermal_data. ".init_sensor" is called armada_thermal_probe(). armada_thermal_probe() is set as ".probe" in struct platform_driver. This function is not called in atomic con

Re: [PATCH v3] writeback: safer lock nesting

2018-04-10 Thread Wang Long
lock_page_memcg()/unlock_page_memcg() use spin_lock_irqsave/restore() if the page's memcg is undergoing move accounting, which occurs when a process leaves its memcg for a new one that has memory.move_charge_at_immigrate set. unlocked_inode_to_wb_begin,end() use spin_lock_irq/spin_unlock_irq() if

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
On 2018-04-10 04:00 PM, Rafael J. Wysocki wrote: On Tue, Apr 10, 2018 at 9:33 AM, wrote: From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can have only true / forse values. Since the return type of the tick_nohz_tick_stopped is also bool, variable tick_stopped nice to

[RFC] mm, slab: reschedule cache_reap() on the same CPU

2018-04-10 Thread Vlastimil Babka
cache_reap() is initially scheduled in start_cpu_timer() via schedule_delayed_work_on(). But then the next iterations are scheduled via schedule_delayed_work(), thus using WORK_CPU_UNBOUND. AFAIU there is thus no guarantee the future iterations will happen on the intended cpu, although it's prefer

Re: [PATCH] usb: typec: ucsi: fix tracepoint related build error

2018-04-10 Thread Tobias Regnery
On 09.04.18, Tobias Regnery wrote: > On 09.04.18, Heikki Krogerus wrote: > > On Mon, Apr 09, 2018 at 09:55:17AM +0200, Tobias Regnery wrote: > > > The ucsi driver defines several tracepoints, but the header file with the > > > tracepoint definition trace.h is only conditionally built depending on >

Re: [RFC 1/3] drm: Add DAMAGE_CLIPS property to plane

2018-04-10 Thread Lukasz Spintzyk
On 05/04/2018 01:49, Deepak Rawat wrote: From: Lukasz Spintzyk Optional plane property to mark damaged regions on the plane in framebuffer coordinates of the framebuffer attached to the plane. The layout of blob data is simply an array of drm_mode_rect with maximum array size limited by DRM_

[PATCH] mtd: spi-nor: cadence-quadspi: Add DMA support for direct mode reads

2018-04-10 Thread Vignesh R
Add support to use DMA over memory mapped reads in direct mode. This helps in reducing CPU usage from ~100% to ~10% when reading data from flash. For non-DMA'able/vmalloc'd buffers, driver just falls back to CPU based memcpy. Signed-off-by: Vignesh R --- drivers/mtd/spi-nor/cadence-quadspi.c | 9

Re: [RFC] UBIFS authentication

2018-04-10 Thread David Gstir
Hi Sascha, > On 10.04.2018, at 09:02, Sascha Hauer wrote: > > On Mon, Apr 09, 2018 at 05:23:05PM +0200, David Gstir wrote: >> Hi Sascha, >> >>> On 09.04.2018, at 11:59, Sascha Hauer wrote: >>> >>> Hi David, >>> >>> On Wed, Jan 17, 2018 at 04:19:14PM +0100, David Gstir wrote: Hi everybod

Re: [PATCH v2 7/9] trace_uprobe/sdt: Fix multiple update of same reference counter

2018-04-10 Thread Ravi Bangoria
Hi Oleg, On 04/09/2018 06:59 PM, Oleg Nesterov wrote: > On 04/04, Ravi Bangoria wrote: >> +static void sdt_add_mm_list(struct trace_uprobe *tu, struct mm_struct *mm) >> +{ >> +struct mmu_notifier *mn; >> +struct sdt_mm_list *sml = kzalloc(sizeof(*sml), GFP_KERNEL); >> + >> +if (!sml) >

RE: [PATCH 2/3] rpmsg: Only invoke announce_create for rpdev with endpoints

2018-04-10 Thread Loic PALLARDY
Hi Bjorn, > -Original Message- > From: Loic PALLARDY > Sent: Tuesday, April 03, 2018 11:13 AM > To: 'Bjorn Andersson' ; Ohad Ben-Cohen > > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > arm-...@vger.kernel.org > Subject: RE: [PATCH 2/3] rpmsg: Only invoke ann

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Michal Hocko
On Mon 09-04-18 10:58:15, Minchan Kim wrote: > Recently, I got a report like below. > > [ 7858.792946] [] __list_del_entry+0x30/0xd0 > [ 7858.792951] [] list_lru_del+0xac/0x1ac > [ 7858.792957] [] page_cache_tree_insert+0xd8/0x110 > [ 7858.792962] [] __add_to_page_cache_locked+0xf8/0x4e0 > [ 7858.

Re: [PATCH v2 1/2] clk: at91: Added more information logging.

2018-04-10 Thread Boris Brezillon
Hi Marcin, On Mon, 9 Apr 2018 20:16:21 -0400 Marcin Ziemianowicz wrote: > I noticed that when debugging some USB clocking issue that there weren't > many ways to tell what the state of the USB clocking system was. This > adds a few logging statements to see what the relevant code is trying to >

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Michal Hocko
On Mon 09-04-18 12:40:44, Matthew Wilcox wrote: > On Mon, Apr 09, 2018 at 11:38:27AM -0700, Jaegeuk Kim wrote: > > On 04/09, Minchan Kim wrote: > > > On Mon, Apr 09, 2018 at 04:14:03AM -0700, Matthew Wilcox wrote: > > > > On Mon, Apr 09, 2018 at 12:09:30PM +0900, Minchan Kim wrote: > > > > > On Sun

Re: Occasionally losing the tick_sched_timer

2018-04-10 Thread Nicholas Piggin
On Tue, 10 Apr 2018 09:42:29 +0200 (CEST) Thomas Gleixner wrote: > Nick, > > On Tue, 10 Apr 2018, Nicholas Piggin wrote: > > We are seeing rare hard lockup watchdog timeouts, a CPU seems to have no > > more timers scheduled, despite hard and soft lockup watchdogs should have > > their heart beat

Re: Linux 3.18.104

2018-04-10 Thread Greg KH
On Tue, Apr 10, 2018 at 12:58:11PM +0530, Harsh Shandilya wrote: > > > On 10 April 2018 12:43:46 PM IST, Greg KH wrote: > >I'm announcing the release of the 3.18.104 kernel. > > > >Only users who had build errors in 3.18.103 need to upgrade, this is a > >single-bugfix-only release. > > > >The up

Re: [PATCH v2 2/2] clk: at91: Fix for PLL set_rate changes not being actually written to PLL peripheral bits

2018-04-10 Thread Boris Brezillon
Hi Marcin, On Mon, 9 Apr 2018 20:16:49 -0400 Marcin Ziemianowicz wrote: > When a USB device is connected to the USB host port on the SAM9N12 then > you get "-62" error which seems to indicate USB replies from the device > are timing out. Looking around, I saw the USB bus was running at half > sp

[PATCH] tty: ipwireless: Replace GFP_ATOMIC with GFP_KERNEL in ipwireless_network_create

2018-04-10 Thread Jia-Ju Bai
ipwireless_network_create() is never called in atomic context. The call chain ending up at ipwireless_network_create() is: [1] ipwireless_network_create() <- config_ipwireless() <- ipwireless_attach() ipwireless_attach() is only set as ".probe" in struct pcmcia_driver. Despite never gett

Re: [PATCH v10 05/10] livepatch: Support separate list for replaced patches.

2018-04-10 Thread Petr Mladek
On Fri 2018-04-06 14:50:49, Josh Poimboeuf wrote: > On Mon, Mar 26, 2018 at 12:11:07PM +0200, Petr Mladek wrote: > > On Fri 2018-03-23 17:44:10, Josh Poimboeuf wrote: > > > On Fri, Mar 23, 2018 at 10:45:07AM +0100, Petr Mladek wrote: > > > > On Tue 2018-03-20 15:15:02, Josh Poimboeuf wrote: > > > >

[PATCH v4 1/8] arm: shmobile: Add the RZ/N1 arch to the shmobile Kconfig

2018-04-10 Thread Michel Pollet
Add the RZ/N1 Family (Part #R9A06G0xx) ARCH config to the rest of the Renesas SoC collection. Signed-off-by: Michel Pollet Reviewed-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-s

[PATCH v4 0/8] arm: Base support for Renesas RZN1D-DB Board

2018-04-10 Thread Michel Pollet
board .dts & Makefile changes together + Rebased on next-20180410 v3: + Fixes for suggestions by Geert Uytterhoeven + Removed SoC Specific renesas,r9a06g032-xxx, as it's not needed for now. + Kept renesas,rzn1 as a family/generic for this family. + Fixed a couple of the commit messag

[PATCH v4 5/8] dt-bindings: arm: Document the RZN1D-DB board

2018-04-10 Thread Michel Pollet
This documents the RZ/N1 bindings for the RZN1D-DB board. Signed-off-by: Michel Pollet --- Documentation/devicetree/bindings/arm/shmobile.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bin

[PATCH v4 2/8] arm: shmobile: Add the RZ/N1D (R9A06G032) to the shmobile Kconfig

2018-04-10 Thread Michel Pollet
Add the RZ/N1D SoC to the reset of the Renesas SoC Collection. Signed-off-by: Michel Pollet --- arch/arm/mach-shmobile/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 221fbcb..a80c0ed 100644 --- a/arch/arm/mach

[PATCH v4 4/8] dt-bindings: reset: renesas,rzn1-reboot: document RZ/N1 reboot driver

2018-04-10 Thread Michel Pollet
The Renesas RZ/N1 Family (Part #R9A06G0xx) requires a driver as part of the sysctrl MFD to handle rebooting the CA7 cores. This documents the driver bindings. Signed-off-by: Michel Pollet --- .../bindings/power/renesas,rzn1-reboot.txt | 23 ++ 1 file changed, 23 inser

KASAN: null-ptr-deref Read in xattr_getsecurity

2018-04-10 Thread syzbot
Hello, syzbot hit the following crash on upstream commit fd40ffc72e2f74c7db61e400903e7d50a88bc0b0 (Mon Apr 9 18:36:05 2018 +) selinux: fix missing dput() before selinuxfs unmount syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=9369930ca44f29e60e2d So far this crash happened

[PATCH v4 3/8] dt-bindings: mfd: renesas,rzn1-sysctrl: document RZ/N1 sysctrl node

2018-04-10 Thread Michel Pollet
The Renesas RZ/N1 Family (Part #R9A06G0xx) has a multi-function system controller. This documents the node used to encapsulate it's sub drivers. Signed-off-by: Michel Pollet --- .../bindings/mfd/renesas,rzn1-sysctrl.txt | 23 ++ 1 file changed, 23 insertions(+) crea

[PATCH v4 7/8] ARM: dts: Renesas RZN1D-DB Board base file

2018-04-10 Thread Michel Pollet
This adds a base device tree file for the RZN1-DB board, with only the basic support allowing the system to boot to a prompt. Only one UART is used, with only a single CPU running. Signed-off-by: Michel Pollet --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r9a06g032-rz

  1   2   3   4   5   6   7   8   9   10   >