[PATCH 1/2] Replace magic for trusting the secondary keyring with #define

2018-08-16 Thread David Howells
From: Yannik Sembritzki Replace the use of a magic number that indicates that verify_*_signature() should use the secondary keyring with a symbol. Signed-off-by: Yannik Sembritzki Signed-off-by: David Howells cc: keyri...@vger.kernel.org cc: linux-security-mod...@vger.kernel.org --- certs/sy

[PATCH v2 0/3] docs/core-api: add memory allocation guide

2018-08-16 Thread Mike Rapoport
Hi, As Vlastimil mentioned at [1], it would be nice to have some guide about memory allocation. This set adds such guide that summarizes the "best practices". The changes from the RFC include additions and corrections from Michal and Randy. I've also added markup to cross-reference the kernel-do

[PATCH v2 3/3] docs: core-api: add memory allocation guide

2018-08-16 Thread Mike Rapoport
Signed-off-by: Mike Rapoport Acked-by: Michal Hocko --- Documentation/core-api/index.rst | 1 + Documentation/core-api/memory-allocation.rst | 124 +++ 2 files changed, 125 insertions(+) create mode 100644 Documentation/core-api/memory-allocation.rst diff

Re: [PATCH v4 3/3] irqchip: add a SiFive PLIC driver

2018-08-16 Thread kbuild test robot
Hi Christoph, I love your patch! Yet something to improve: [auto build test ERROR on tip/irq/core] [also build test ERROR on v4.18] [cannot apply to next-20180816] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[PATCH v2 2/3] dt-bindings: spi: Add Spreadtrum SPI controller documentation

2018-08-16 Thread Baolin Wang
From: Lanqing Liu This patch adds the binding documentation for Spreadtrum SPI controller device. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Changes from v1: - Remove the sprd,spi-interval property. --- Documentation/devicetree/bindings/spi/spi-sprd.txt | 26

[PATCH v2 3/3] spi: sprd: Add SPI driver for Spreadtrum SC9860

2018-08-16 Thread Baolin Wang
From: Lanqing Liu This patch adds the SPI controller driver for Spreadtrum SC9860 platform. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Changes from v1: - Enable the auto_runtime_pm of SPI core. - Remove the sprd_spi_setup() function. - Move the hardware SPI hardware initializ

[PATCH v2 1/3] spi: Introduce one new field to set word delay

2018-08-16 Thread Baolin Wang
For some SPI controllers, after each word size (specified by bits_per_word) transimission, the hardware need some delay to make sure the slave has enough time to receive the whole data. So introducing one new 'word_delay' field of struct spi_tansfer for slave devices to set this inter word delay t

Re: [PATCH 2/2] x86/numa_emulation: Introduce uniform split capability

2018-08-16 Thread Wei Yang
On Sat, May 26, 2018 at 05:56:57PM -0700, Dan Williams wrote: ... > >numa=fake=6 >available: 5 nodes (0-4) >node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 >node 0 size: 2648 MB >node 0 free: 2443 MB >node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 >node 1 si

Re: [PATCH 2/2] [FIXED v2] Replace magic for trusting the secondary keyring with #define

2018-08-16 Thread Vivek Goyal
On Thu, Aug 16, 2018 at 09:11:06AM +0800, Dave Young wrote: > On 08/16/18 at 12:07am, Yannik Sembritzki wrote: > > Signed-off-by: Yannik Sembritzki > > --- > >  arch/x86/kernel/kexec-bzimage64.c   | 2 +- > >  certs/system_keyring.c  | 3 ++- > >  crypto/asymmetric_keys/pkcs7_key

Re: [PATCH v1 2/5] mm/memory_hotplug: enforce section alignment when onlining/offlining

2018-08-16 Thread Oscar Salvador
On Thu, Aug 16, 2018 at 12:06:25PM +0200, David Hildenbrand wrote: > onlining/offlining code works on whole sections, so let's enforce that. > Existing code only allows to add memory in memory block size. And only > whole memory blocks can be onlined/offlined. Memory blocks are always > aligned to

Re

2018-08-16 Thread Baturina
My pleasure to notify of reaching you earlier but was unsuccessful which made me to initiate this email conversation again hoping that you will respond. Kindly get back to me in reply if you will allow me to trust you as my foundation manager. contact me via email for more details: yelenanikolo

Re: [PATCH 1/1] Preventive patch in the proc file-system to handle NULL check.

2018-08-16 Thread Alexey Dobriyan
On Thu, Aug 16, 2018 at 03:04:13PM +0530, Srikanth K H wrote: > If the make directory for "sys" interface fail's then its > dereferenced without even checking for its validity which > will lead to crash, hence added preventive code to check > for NULL and accordingly dereference. > --- a/fs/proc/p

Re: [PATCH] Fix kexec forbidding kernels signed with custom platform keys to boot

2018-08-16 Thread David Howells
Vivek Goyal wrote: > Now this patch changed it to trusting builtin_trusted_keys by default, > and all the other keys go to secondary_trusted_keys kerying. And that > probably explains why it broke. > > So checking for keys in both the keyrings makes sense to me. > > I am wondering why did we h

Re: [PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages

2018-08-16 Thread David Hildenbrand
On 16.08.2018 13:44, Stephen Rothwell wrote: > Hi David, > > On Thu, 16 Aug 2018 12:06:24 +0200 David Hildenbrand wrote: >> >> -static int __ref __offline_pages(unsigned long start_pfn, >> - unsigned long end_pfn) >> +/* Must be protected by mem_hotplug_begin() or a device_lock */ >>

Re: ptrace compile failure with gcc-8.2 on 32-bit powerpc

2018-08-16 Thread Michael Ellerman
Meelis Roos writes: > After upgrading my distro compiler to gcc-8.2, Linux fails to compile on > 32-bit powerpc (tested with 4.17, 4.18 and v4.18-7873-gf91e654474d4). Yeah I noticed this just yesterday. > CC arch/powerpc/kernel/ptrace.o > In file included from ./include/linux/bitmap.h:9,

Re: [PATCH 00/16] clk: at91: Rework DT bindings

2018-08-16 Thread Alexandre Belloni
On 27/07/2018 10:03:22-0700, Stephen Boyd wrote: > Quoting Alexandre Belloni (2018-07-17 15:27:41) > > This is the promised rework of the at91 PMC clocks driver. It is mainly > > necessary to remove the DTC warnings but it also complies with the CCF > > rule that there should be one node per contro

Re: [PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages

2018-08-16 Thread Stephen Rothwell
Hi David, On Thu, 16 Aug 2018 12:06:24 +0200 David Hildenbrand wrote: > > -static int __ref __offline_pages(unsigned long start_pfn, > - unsigned long end_pfn) > +/* Must be protected by mem_hotplug_begin() or a device_lock */ > +int offline_pages(unsigned long start_pfn, unsigned l

[PATCH] ia64/sn/hwperf: check seq_open return value to avoid NULL deref

2018-08-16 Thread Rasmus Villemoes
This code should check the return value of seq_open(); if it failed, file->private_data is NULL. But in that case we then need to dispose of objbuf to prevent a resource leak. Signed-off-by: Rasmus Villemoes --- arch/ia64/sn/kernel/sn2/sn_hwperf.c | 8 ++-- 1 file changed, 6 insertions(+), 2

RE: [RFC PATCH 1/2] dt-bindings: dmaengine: xilinx_dma: Add binding for Xilinx MCDMA IP

2018-08-16 Thread Radhey Shyam Pandey
Hi Rob, Thanks for the review. > -Original Message- > From: Rob Herring > Sent: Tuesday, August 14, 2018 9:43 PM > To: Radhey Shyam Pandey > Cc: vk...@kernel.org; mark.rutl...@arm.com; Michal Simek > ; dan.j.willi...@intel.com; Appana Durga Kedareswara > Rao ; l...@metafoo.de; dmaeng..

[PATCH] fix crash on ocfs2_duplicate_clusters_by_page

2018-08-16 Thread Larry Chen
ocfs2_duplicate_clusters_by_page may crash if an extent's page is dirty. When a page has not been written back, it is still in dirty state. If at that moment, ocfs2_duplicate_clusters_by_page is called against this page, the crash happens. To fix this bug, we can just unlock the page and wait the

Applied "ASoC: max98373: Added speaker FS gain cotnrol register to volatile." to the asoc tree

2018-08-16 Thread Mark Brown
The patch ASoC: max98373: Added speaker FS gain cotnrol register to volatile. has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Re: [PATCH v1 3/5] mm/memory_hotplug: check if sections are already online/offline

2018-08-16 Thread David Hildenbrand
On 16.08.2018 12:47, Oscar Salvador wrote: > On Thu, Aug 16, 2018 at 12:06:26PM +0200, David Hildenbrand wrote: > >> + >> +/* check if all mem sections are offline */ >> +bool mem_sections_offline(unsigned long pfn, unsigned long end_pfn) >> +{ >> +for (; pfn < end_pfn; pfn += PAGES_PER_SECTIO

[PATCH] PCI / ACPI / PM: Resume all bridges on suspend-to-RAM

2018-08-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit 26112ddc254c (PCI / ACPI / PM: Resume bridges w/o drivers on suspend-to-RAM) attempted to fix a functional regression resulting from commit c62ec4610c40 (PM / core: Fix direct_complete handling for devices with no callbacks) by resuming PCI bridges without drivers (

Re: [PATCH v4 0/7] Add support for MSCC Ocelot i2c

2018-08-16 Thread Jarkko Nikula
On 08/16/2018 11:45 AM, Alexandre Belloni wrote: Hello, Because the designware IP was not able to handle the SDA hold time before version 1.11a, MSCC has its own implementation. Add support for it and then add i2c on ocelot boards. I would expect patches 1 to 5 to go through the i2c tree and 6-

[PATCH] cpuidle: menu: Update stale polling override comment

2018-08-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The comment to explain why the menu governor uses idle state 1 instead of idle state 0 as the first one sometimes is stale (among other things it mentions a user setting not present any more), so update it. Signed-off-by: Rafael J. Wysocki --- drivers/cpuidle/governors/

Re: [RFC PATCH] ASoC: core: Optimise suspend/resume of DAPM widgets

2018-08-16 Thread Mark Brown
On Wed, Aug 15, 2018 at 07:48:47PM +0100, Jon Hunter wrote: > So then I made the following change to avoid scheduling the function > calls unnecessarily (which I think should be fine) ... > Please note that I am just using ktime_get() to log the time on entry > and exit from dapm_power_widgets()

Re: [PATCH v1 3/5] mm/memory_hotplug: check if sections are already online/offline

2018-08-16 Thread Oscar Salvador
On Thu, Aug 16, 2018 at 12:06:26PM +0200, David Hildenbrand wrote: > + > +/* check if all mem sections are offline */ > +bool mem_sections_offline(unsigned long pfn, unsigned long end_pfn) > +{ > + for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { > + unsigned long section_nr = pfn

Re: [PATCH v2] uio: ensure class is registered before devices

2018-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 16, 2018 at 12:34:50PM +0200, Alexandre Belloni wrote: > On 16/08/2018 12:04:13+0200, Greg Kroah-Hartman wrote: > > On Thu, Aug 16, 2018 at 10:34:38AM +0200, Alexandre Belloni wrote: > > > On 16/08/2018 10:01:12+0200, Greg Kroah-Hartman wrote: > > > > On Thu, Aug 16, 2018 at 09:39:41AM

[PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-16 Thread zhong jiang
of_find_device_by_node takes a reference to the struct device when it finds a match via get_device. but it fails to put_device in at91_pm_config_ws, for_each_matching_node_and_match will get and put the node properly, there is no need to call the of_put_node. Therefore, just call put_device instead

Re: [PATCH v2] uio: ensure class is registered before devices

2018-08-16 Thread Alexandre Belloni
On 16/08/2018 12:04:13+0200, Greg Kroah-Hartman wrote: > On Thu, Aug 16, 2018 at 10:34:38AM +0200, Alexandre Belloni wrote: > > On 16/08/2018 10:01:12+0200, Greg Kroah-Hartman wrote: > > > On Thu, Aug 16, 2018 at 09:39:41AM +0200, Alexandre Belloni wrote: > > > > When both uio and the uio drivers a

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-16 Thread Dietmar Eggemann
On 08/13/2018 05:01 PM, Patrick Bellasi wrote: On 13-Aug 16:06, Vincent Guittot wrote: On Mon, 13 Aug 2018 at 14:49, Patrick Bellasi wrote: On 13-Aug 14:07, Vincent Guittot wrote: On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi wrote: [...] Yes I agree that the current behavior is not comp

Re: [PATCH] RDMA/bnxt_re: QPLIB: Add and use #define dev_fmt(fmt) "QPLIB: " fmt

2018-08-16 Thread Selvin Xavier
On Sat, Aug 11, 2018 at 12:12 AM Joe Perches wrote: > > Consistently use the "QPLIB: " prefix for dev_ logging. > > Miscellanea: > > o Add missing newlines to avoid possible message interleaving > o Coalesce consecutive dev_ uses that emit a message header to > avoid < 80 column lengths and mist

Re: AArch64 boot failure on Hikey960 on latest master after "arm64: insn: Don't fallback on nosync path for general insn patching"

2018-08-16 Thread Will Deacon
Hi Tuomas, [+John] On Thu, Aug 16, 2018 at 02:38:51AM +0300, Tuomas Tynkkynen wrote: > Booting Linus's master of today with the usual arm64 defconfig fails for > me on the Hikey960 board. I've bisected it down to: > > commit 693350a7998018391852c48f68956cf0f855b2b9 (HEAD, refs/bisect/bad) > Autho

Re: [PATCH] arm/mach-at91/pm: Do not double put the device node

2018-08-16 Thread zhong jiang
On 2018/8/16 17:32, Claudiu Beznea wrote: > Hi Alexandre, > > On 14.08.2018 15:59, Alexandre Belloni wrote: >> On 14/08/2018 09:54:56+0800, zhong jiang wrote: >>> Device node iterators put the previous value of the index variable, >>> so an explicit put causes a double put. >>> >> While for_each_ma

Re: Keyboard lost after exit s2idle on ASUS UX433FN

2018-08-16 Thread Rafael J. Wysocki
On Thu, Aug 16, 2018 at 12:05 PM Chris Chiu wrote: > > On Thu, Aug 16, 2018 at 4:54 PM, Rafael J. Wysocki wrote: > > On Thu, Aug 16, 2018 at 10:18 AM Chris Chiu wrote: > >> > >> On Thu, Aug 16, 2018 at 3:26 PM, Rafael J. Wysocki > >> wrote: > >> > On Thu, Aug 16, 2018 at 4:45 AM Chris Chiu wr

Linux 4.9.120

2018-08-16 Thread Greg KH
I'm announcing the release of the 4.9.120 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.4.148

2018-08-16 Thread Greg KH
I'm announcing the release of the 4.4.148 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.4.148

2018-08-16 Thread Greg KH
diff --git a/Makefile b/Makefile index ee92a12e3a4b..9b795164122e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 147 +SUBLEVEL = 148 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi i

Linux 4.14.63

2018-08-16 Thread Greg KH
I'm announcing the release of the 4.14.63 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Linux 4.17.15

2018-08-16 Thread Greg KH
I'm announcing the release of the 4.17.15 kernel. All users of the 4.17 kernel series must upgrade. The updated 4.17.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.17.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.18.1

2018-08-16 Thread Greg KH
diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu index 9c5e7732d249..73318225a368 100644 --- a/Documentation/ABI/testing/sysfs-devices-system-cpu +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu @@ -476,6 +476,7 @@ What:

Linux 4.18.1

2018-08-16 Thread Greg KH
I'm announcing the release of the 4.18.1 kernel. All users of the 4.18 kernel series must upgrade. The updated 4.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.18.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 4.18 00/79] 4.18.1-stable review

2018-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 16, 2018 at 12:39:29AM -0400, Byron Stanoszek wrote: > On Wed, 15 Aug 2018, Greg Kroah-Hartman wrote: > > > On Wed, Aug 15, 2018 at 01:24:25PM -0400, Byron Stanoszek wrote: > > > Hi Greg & Thomas, > > > > > > I'd like to report a regression in Linux 4.18.1 regarding the L1TF > > > pa

Re: [PATCH 4.17 00/97] 4.17.15-stable review

2018-08-16 Thread Greg Kroah-Hartman
On Wed, Aug 15, 2018 at 03:31:51PM -0500, Dan Rue wrote: > On Tue, Aug 14, 2018 at 07:16:12PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.17.15 release. > > There are 97 patches in this series, all will be posted as a response > > to this one. If any

[PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages()

2018-08-16 Thread David Hildenbrand
Let's try to minimze the noise. Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index bbbd16f9d877..6fec2dc6a73d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -966,9 +966,

[PATCH v1 4/5] mm/memory_hotplug: onlining pages can only fail due to notifiers

2018-08-16 Thread David Hildenbrand
Onlining pages can only fail if a notifier reported a problem (e.g. -ENOMEM). online_pages_range() can never fail. Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index

Re: [PATCH] ALSA: info: Check for integer overflow in snd_info_entry_write()

2018-08-16 Thread Greg KH
On Wed, Aug 15, 2018 at 05:55:48PM -0700, Erick Reyes wrote: > Commit 4adb7bcbcb69 ("ALSA: core: Use seq_file for text proc file > reads") heavily refactored ALSA procfs and fixed the overflow as > a side-effect, so this fix only applies to kernels < 4.2 and > there is no upstream equivalent Thank

[PATCH v1 3/5] mm/memory_hotplug: check if sections are already online/offline

2018-08-16 Thread David Hildenbrand
Let's add some more sanity checking now that onlining/offlining code works completely on section basis. This will make sure that we will never try to online/offline sections that are already (or partially) in the desired state. Signed-off-by: David Hildenbrand --- include/linux/mmzone.h | 2 ++

[PATCH v1 0/5] mm/memory_hotplug: online/offline_pages refactorings

2018-08-16 Thread David Hildenbrand
While looking into onlining/offlining of subsections, I noticed that online/offlining code can in its current form only deal with whole sections and that onlining/offlining of sections that are already online/offline is problematic. So let's add some additional checks (that also serve as implicit d

[PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages

2018-08-16 Thread David Hildenbrand
Let's avoid this indirection and just call the function offline_pages(). Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 6a2726920ed2..090cf474de87 100644 -

[PATCH v1 2/5] mm/memory_hotplug: enforce section alignment when onlining/offlining

2018-08-16 Thread David Hildenbrand
onlining/offlining code works on whole sections, so let's enforce that. Existing code only allows to add memory in memory block size. And only whole memory blocks can be onlined/offlined. Memory blocks are always aligned to sections, so this should not break anything. online_pages/offline_pages wi

Re: Keyboard lost after exit s2idle on ASUS UX433FN

2018-08-16 Thread Chris Chiu
On Thu, Aug 16, 2018 at 4:54 PM, Rafael J. Wysocki wrote: > On Thu, Aug 16, 2018 at 10:18 AM Chris Chiu wrote: >> >> On Thu, Aug 16, 2018 at 3:26 PM, Rafael J. Wysocki wrote: >> > On Thu, Aug 16, 2018 at 4:45 AM Chris Chiu wrote: >> >> >> >> Hi, >> >> We recently hit a weird problem on the

Re: [PATCH v2] uio: ensure class is registered before devices

2018-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 16, 2018 at 10:34:38AM +0200, Alexandre Belloni wrote: > On 16/08/2018 10:01:12+0200, Greg Kroah-Hartman wrote: > > On Thu, Aug 16, 2018 at 09:39:41AM +0200, Alexandre Belloni wrote: > > > When both uio and the uio drivers are built in the kernel, it is possible > > > for a driver to re

Re: [PATCH 1/1] mmc: dw_mmc: hi3798cv200: add MMC_CAP_CMD23 capability

2018-08-16 Thread Igor Opaniuk
Hi Shawn, Will test it today with the change you suggested, in case if everything is OK will send v2 asap Thanks On 16 August 2018 at 11:01, Shawn Guo wrote: > On Wed, Aug 15, 2018 at 7:39 PM Igor Opaniuk wrote: >> >> Enable access to the RPMB on the on-board eMMC of the >> Poplar board. >> >>

Re: [PATCH] mm, page_alloc: actually ignore mempolicies for high priority allocations

2018-08-16 Thread Michal Hocko
On Wed 15-08-18 15:16:52, Andrew Morton wrote: [...] > From: Vlastimil Babka > Subject: mm, page_alloc: actually ignore mempolicies for high priority > allocations > > The __alloc_pages_slowpath() function has for a long time contained code > to ignore node restrictions from memory policies for

[PATCH 0/2] tracing: Fix document and blktrace

2018-08-16 Thread Masami Hiramatsu
Hi, Here are 2 small fixes for ftrace, one is documentation fix to add stacktrace action and another is blktrace fix so that user can set the current enablement parameter without an error. Thank you, --- Masami Hiramatsu (2): docs: tracing: Add stacktrace filter command tracing/blkt

RE: [GIT PULL] gcc-plugin updates for v4.19-rc1

2018-08-16 Thread David Laight
From: Linus Torvalds > Sent: 15 August 2018 21:19 ... > But if people run things on real machines, then BUG() is absolutely > the last thing you EVER want to do for "debugging". I'm not sure you want it on a live system either. Live systems are where the 'hard' bugs show up. I've just spent a cou

[PATCH 1/1] Preventive patch in the proc file-system to handle NULL check.

2018-08-16 Thread Srikanth K H
If the make directory for "sys" interface fail's then its dereferenced without even checking for its validity which will lead to crash, hence added preventive code to check for NULL and accordingly dereference. Signed-off-by: Srikanth K H --- fs/proc/proc_sysctl.c | 2 ++ 1 file changed, 2 inser

[PATCH] net: phy: add tracepoints

2018-08-16 Thread Tobias Waldekranz
Two tracepoints for now: * `phy_interrupt` Pretty self-explanatory. * `phy_state_change` Whenever the PHY's state machine is run, trace the old and the new state. Signed-off-by: Tobias Waldekranz --- drivers/net/phy/phy.c | 4 +++ include/trace/events/phy.h | 68 ++

Re: [PATCH] arm/mach-at91/pm: Do not double put the device node

2018-08-16 Thread Claudiu Beznea
Hi Alexandre, On 14.08.2018 15:59, Alexandre Belloni wrote: > On 14/08/2018 09:54:56+0800, zhong jiang wrote: >> Device node iterators put the previous value of the index variable, >> so an explicit put causes a double put. >> > > While for_each_matching_node_and_match will get and put the node >

Re: [PATCH] mm, page_alloc: actually ignore mempolicies for high priority allocations

2018-08-16 Thread Mel Gorman
On Wed, Aug 15, 2018 at 03:16:52PM -0700, Andrew Morton wrote: > From: Vlastimil Babka > Subject: mm, page_alloc: actually ignore mempolicies for high priority > allocations > > The __alloc_pages_slowpath() function has for a long time contained code > to ignore node restrictions from memory pol

[linux-next] Kernel panic while tetsing criu

2018-08-16 Thread Cyrill Gorcunov
Hi Eric! We're regularly running criu on linux-next and today kernel get panicing. --- [ 753.478579] BUG: unable to handle kernel NULL pointer dereference at 06a8 [ 753.479674] PGD 80011215f067 P4D 80011215f067 PUD 1134a8067 PMD 0 [ 753.480590] Oops: [#1] SMP PTI [ 753

Re: [PATCH] mm: introduce kvvirt_to_page() helper

2018-08-16 Thread Michal Hocko
On Thu 16-08-18 17:17:37, Li RongQing wrote: > The new helper returns address mapping page, which has several users > in individual subsystem, like mem_to_page in xfs_buf.c and pgv_to_page > in af_packet.c, after this, they can be unified Please add users along with the new helper. > > Signed-of

Re: [PATCH v3 1/2] iommu/arm-smmu-v3: fix unexpected CMD_SYNC timeout

2018-08-16 Thread Will Deacon
On Thu, Aug 16, 2018 at 04:21:17PM +0800, Leizhen (ThunderTown) wrote: > On 2018/8/15 20:26, Robin Murphy wrote: > > On 15/08/18 11:23, Zhen Lei wrote: > >> diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c > >> index 1d64710..3f5c236 100644 > >> --- a/drivers/iommu/arm-smmu-v3

[PATCH] mm: introduce kvvirt_to_page() helper

2018-08-16 Thread Li RongQing
The new helper returns address mapping page, which has several users in individual subsystem, like mem_to_page in xfs_buf.c and pgv_to_page in af_packet.c, after this, they can be unified Signed-off-by: Zhang Yu Signed-off-by: Li RongQing --- include/linux/mm.h | 8 1 file changed, 8 i

RE: Build failures with gcc 4.5 and older

2018-08-16 Thread David Laight
From: Linus Torvalds > Sent: 15 August 2018 17:34 > To: David Laight > Cc: Guenter Roeck; Linux Kernel Mailing List; Rik van Riel; Mike Galbraith; > Dave Hansen; Andrew Morton > Subject: Re: Build failures with gcc 4.5 and older > > On Wed, Aug 15, 2018 at 9:16 AM David Laight wrote: > > > > > >

Re: [GIT PULL] arm64: updates for 4.19

2018-08-16 Thread Will Deacon
Hi John, On Wed, Aug 15, 2018 at 04:55:15PM -0700, John Stultz wrote: > On Tue, Aug 14, 2018 at 4:36 AM, Will Deacon wrote: > > > > Please pull these arm64 updates for 4.19. Details in the tag, but please be > > aware that we've pulled in the x86/mm branch from -tip so that we can make > > use of

Re: [PATCH v3 12/14] sched/core: uclamp: add system default clamps

2018-08-16 Thread Pavan Kondeti
On Mon, Aug 06, 2018 at 05:39:44PM +0100, Patrick Bellasi wrote: > Clamp values cannot be tuned at the root cgroup level. Moreover, because > of the delegation model requirements and how the parent clamps > propagation works, if we want to enable subgroups to set a non null > util.min, we need to b

Re: [PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-16 Thread Lee Jones
On Tue, 07 Aug 2018, Richard Fitzgerald wrote: > While polling for BOOT_DONE the chip could NAK a read because it is > still booting, which would terminate the regmap_read_poll_timeout() > with an error. > > Instead implement a polling loop that ignores read errors so we > always poll until the c

Re: [PATCH 1/2] mfd: madera: Add register definitions for accessory detect

2018-08-16 Thread Lee Jones
On Tue, 07 Aug 2018, Richard Fitzgerald wrote: > Add some register definitions for accessory detection, used > by the extcon driver. > > Signed-off-by: Richard Fitzgerald > --- > include/linux/mfd/madera/registers.h | 51 > > 1 file changed, 51 insertions(+

Re: [PATCH v3 09/14] sched/core: uclamp: propagate parent clamps

2018-08-16 Thread Pavan Kondeti
On Mon, Aug 06, 2018 at 05:39:41PM +0100, Patrick Bellasi wrote: > In order to properly support hierarchical resources control, the cgroup > delegation model requires that attribute writes from a child group never > fail but still are (potentially) constrained based on parent's assigned > resources

Re: [PATCH] mfd: sm501: Set coherent_dma_mask when creating subdevices

2018-08-16 Thread Lee Jones
On Fri, 03 Aug 2018, Guenter Roeck wrote: > Instantiating the sm501 OHCI subdevice results in a kernel warning. > > sm501-usb sm501-usb: SM501 OHCI > sm501-usb sm501-usb: new USB bus registered, assigned bus number 1 > WARNING: CPU: 0 PID: 1 at ./include/linux/dma-mapping.h:516 > ohci_init+0x194/

Re: [PATCH v12 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-08-16 Thread Lee Jones
On Fri, 03 Aug 2018, Matti Vaittinen wrote: > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > Signed-off-by: Matti Vaittinen > Reviewed-by: Rob Herring > Acked-for-MFD-by: Lee Jones > --- > .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 62 > ++ > 1 file

Re: [PATCH v12 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-08-16 Thread Lee Jones
On Fri, 03 Aug 2018, Matti Vaittinen wrote: > ROHM BD71837 PMIC MFD driver providing interrupts and support > for three subsystems: > - clk > - Regulators > - input/power-key > > Signed-off-by: Matti Vaittinen > Reviewed-by: Enric Balletbo i Serra > --- > drivers/mfd/Kconfig | 13

Re: Keyboard lost after exit s2idle on ASUS UX433FN

2018-08-16 Thread Rafael J. Wysocki
On Thu, Aug 16, 2018 at 10:18 AM Chris Chiu wrote: > > On Thu, Aug 16, 2018 at 3:26 PM, Rafael J. Wysocki wrote: > > On Thu, Aug 16, 2018 at 4:45 AM Chris Chiu wrote: > >> > >> Hi, > >> We recently hit a weird problem on the ASUS laptop UX433FN with > >> latest Intel Core i7-8565U CPU on ker

Re: [PATCH V2] riscv: Convert uses of REG_FMT to %p

2018-08-16 Thread Petr Mladek
On Sun 2018-07-29 17:21:19, Andy Shevchenko wrote: > On Sat, Jul 28, 2018 at 7:39 PM, Joe Perches wrote: > > Use %p pointer output instead of REG_FMT and cast the unsigned longs to > > (void *) to avoid exposing kernel addresses. > > > > Miscellanea: > > > > o Convert pr_cont to printk(KERN_DEFAUL

[PATCH v4 2/7] i2c: designware: move #ifdef CONFIG_OF to the top

2018-08-16 Thread Alexandre Belloni
Move the #ifdef CONFIG_OF section to the top of the file, after the ACPI section so functions defined there can be used in dw_i2c_plat_probe. Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-platdrv.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) d

[PATCH v4 7/7] MIPS: dts: mscc: enable i2c on ocelot_pcb123

2018-08-16 Thread Alexandre Belloni
Enable the i2c controller on ocelot PCB123. While there are no i2c devices on the board itself, it can be used to control the SFP transceivers. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/

[PATCH v4 5/7] i2c: designware: add MSCC Ocelot support

2018-08-16 Thread Alexandre Belloni
The Microsemi Ocelot I2C controller is a designware IP. It also has a second set of registers to allow tweaking SDA hold time and spike filtering. Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-core.h| 3 ++ drivers/i2c/busses/i2c-design

[PATCH v4 1/7] i2c: designware: use generic table matching

2018-08-16 Thread Alexandre Belloni
Switch to device_get_match_data in probe to match the device specific data instead of using the acpi specific function. Suggested-by: Andy Shevchenko Acked-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-platdrv.c | 7 ++- 1 file changed, 2 insert

[PATCH v4 3/7] i2c: designware: allow IP specific sda_hold_time

2018-08-16 Thread Alexandre Belloni
Because some old designware IPs were not supporting setting an SDA hold time, vendors developed their own solution. Add a way for the final driver to provide its own SDA hold time handling. Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-commo

[PATCH v4 6/7] MIPS: dts: mscc: Add i2c on ocelot

2018-08-16 Thread Alexandre Belloni
Ocelot has an i2c controller, add it. There is only one possible pinmux configuration so add it as well. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mi

[PATCH v4 0/7] Add support for MSCC Ocelot i2c

2018-08-16 Thread Alexandre Belloni
Hello, Because the designware IP was not able to handle the SDA hold time before version 1.11a, MSCC has its own implementation. Add support for it and then add i2c on ocelot boards. I would expect patches 1 to 5 to go through the i2c tree and 6-7 through the mips tree once patch 4 has been revie

[PATCH v4 4/7] i2c: designware: document MSCC Ocelot bindings

2018-08-16 Thread Alexandre Belloni
Document bindings for the Microsemi Ocelot integration of the Designware I2C controller. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/i2c/i2c-designware.txt | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetr

[PATCH v4 1/3] i2c: imx: Fix race condition in dma read

2018-08-16 Thread Esben Haabendal
From: Esben Haabendal This fixes a race condition, where the DMAEN bit ends up being set after I2C slave has transmitted a byte following the dummy read. When that happens, an interrupt is generated instead, and no DMA request is generated to kickstart the DMA read, and a timeout happens after D

[PATCH v4 3/3] arm: dts: ls1021a: Enable I2C DMA support

2018-08-16 Thread Esben Haabendal
From: Esben Haabendal Gives substantial performance improvement for transfers larger than 16 bytes (DMA_THRESHOLD). Smaller transfers are unaffected. Signed-off-by: Esben Haabendal --- arch/arm/boot/dts/ls1021a.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/l

[PATCH v4 2/3] i2c: imx: Simplify stopped state tracking

2018-08-16 Thread Esben Haabendal
From: Esben Haabendal Always update the stopped state when busy status have been checked. This is identical to what was done before, with the exception of error handling. Without this change, some errors cause the stopped state to be left in incorrect state in i2c_imx_stop(), i2c_imx_dma_read(),

[RFC PATCH] platform/x86: asus-wmi: Simplify the keyboard brightness updating process

2018-08-16 Thread Jian-Hong Pan
The original asus-wmi queues a work which calls the ACPI/WMI methods to update the keyboard LED brightness. Similar drivers - acer-wmi, dell-wmi-led just call the ACPI/WMI methods directly without workqueues. This patch simplifies the keyboard brightness updating process which calls the kbd_led_u

Re: [PATCH 2/4] dt-bindings: phy-rockchip-inno-usb2: add documentation for extcon and utmi-avalid properties.

2018-08-16 Thread Enric Balletbo i Serra
Hi Rob, On 16/08/18 00:21, Rob Herring wrote: > On Wed, Aug 15, 2018 at 11:59:32AM +0200, Enric Balletbo i Serra wrote: >> Commit 98898f3bc83c8 ("phy: rockchip-inno-usb2: support otg-port for >> rk3399") introduces two new properties. The extcon property is used to >> detect the cable-state, and t

Re: [RFC PATCH 1/3] tracing: Add support for logging data to uncached buffer

2018-08-16 Thread Sai Prakash Ranjan
On 8/16/2018 8:29 AM, Steven Rostedt wrote: Sorry for the late reply, I actually wrote this email over a week ago, but never hit send. And the email was pushed back behind other windows. :-/ Thanks for the review Steven. And no problem on late reply, I was working on Will's comment about in

Re: [PATCH v2] uio: ensure class is registered before devices

2018-08-16 Thread Alexandre Belloni
On 16/08/2018 10:01:12+0200, Greg Kroah-Hartman wrote: > On Thu, Aug 16, 2018 at 09:39:41AM +0200, Alexandre Belloni wrote: > > When both uio and the uio drivers are built in the kernel, it is possible > > for a driver to register devices before the uio class is registered. > > How does this happe

Re: [PATCH 2/2] PCI: meson: add the Amlogic Meson PCIe phy driver

2018-08-16 Thread Jerome Brunet
On Thu, 2018-08-16 at 11:05 +0800, Hanjie Lin wrote: > > On 2018/8/14 18:41, Jerome Brunet wrote: > > On Tue, 2018-08-14 at 02:12 -0400, Hanjie Lin wrote: > > > From: Yue Wang > > > > > > The Meson-PCIE-PHY controller supports the 5-Gbps data rate > > > of the PCI Express Gen 2 specification and

Re: [PATCH v3 1/3] i2c: imx: Fix race condition in dma read

2018-08-16 Thread Uwe Kleine-König
On Thu, Aug 09, 2018 at 02:32:05PM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > This fixes a race condition, where the DMAEN bit ends up being set after > I2C slave has transmitted a byte following the dummy read. When that > happens, an interrupt is generated instead, and no DMA re

Re: [PATCH v3 2/3] i2c: imx: Simplify stopped state tracking

2018-08-16 Thread Uwe Kleine-König
On Thu, Aug 09, 2018 at 02:32:06PM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > Always update the stopped state when busy status have been checked. > This is identical to what was done before, with the exception of error > handling. > Without this change, some errors cause the stoppe

Re: [PATCH 2/2] [FIXED v2] Replace magic for trusting the secondary keyring with #define

2018-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 16, 2018 at 04:02:59PM +0800, Dave Young wrote: > On 08/16/18 at 09:43am, Yannik Sembritzki wrote: > > On 16.08.2018 03:11, Dave Young wrote: > > > Instead of fix your 1st patch in 2nd patch, I would suggest to > > > switch the patch order. In 1st patch change the common code to use >

[PATCH V5 06/10] mmc: sdhci: Disable auto-CMD23 if stuff bits is set in CMD23 argument

2018-08-16 Thread Chunyan Zhang
For version 4.10 and aboves, SDHCI_ARGUMENT2 is also used to indicate 32-bit number of blocks, so it doesn't support stuff bits in argument of CMD23, but only block count for the following command (CMD18/25). Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 10 ++ drivers/mmc/

Re: Keyboard lost after exit s2idle on ASUS UX433FN

2018-08-16 Thread Chris Chiu
On Thu, Aug 16, 2018 at 3:26 PM, Rafael J. Wysocki wrote: > On Thu, Aug 16, 2018 at 4:45 AM Chris Chiu wrote: >> >> Hi, >> We recently hit a weird problem on the ASUS laptop UX433FN with >> latest Intel Core i7-8565U CPU on kernel 4.18. The keyboard stops >> functioning after exit s2idle. It

[PATCH v4 1/3] virtio-balloon: remove BUG() in init_vqs

2018-08-16 Thread Wei Wang
It's a bit overkill to use BUG when failing to add an entry to the stats_vq in init_vqs. So remove it and just return the error to the caller to bail out nicely. Signed-off-by: Wei Wang Cc: Michael S. Tsirkin --- drivers/virtio/virtio_balloon.c | 10 +++--- 1 file changed, 7 insertions(+),

Re: [PATCH] gpio: 74x164: add lines-initial-states property

2018-08-16 Thread Linus Walleij
Hi David, On Wed, Aug 15, 2018 at 10:19 PM David Bauer wrote: > This adds the ability to define the initial state of each output line on > device probe. > > Signed-off-by: David Bauer (...) > Optional properties: > - enable-gpios: GPIO connected to the OE (Output Enable) pin. > +- lines-init

Re: [PATCH 3/5] arm64: dts: mt7622: fix ram size for rfb1

2018-08-16 Thread Sean Wang
On Wed, 2018-08-15 at 13:18 +0800, Ryder Lee wrote: > Fix ram size and sort nodes in alphabetical order. > The size of the ram should be selective range from 512 megabytes to 2 gigabytes depending on what the specific application is being run on the Soc and I actually thought 512 megabytes should

<    1   2   3   4   5   6   >