Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-08 Thread Uwe Kleine-König
On Thu, Nov 08, 2018 at 03:21:44PM +, Vokáč Michal wrote: > Hi Uwe, > > On 7.11.2018 16:01, Uwe Kleine-König wrote: > >> Interesting idea. I just wonder why nobody else did not come up with such > >> a simple solution before. > > > > I think I mentioned it already in this thread, but it went

Re: [RFC PATCH v4 01/13] ktask: add documentation

2018-11-08 Thread Daniel Jordan
On Thu, Nov 08, 2018 at 10:26:38AM -0700, Jonathan Corbet wrote: > On Mon, 5 Nov 2018 11:55:46 -0500 > Daniel Jordan wrote: > > > Motivates and explains the ktask API for kernel clients. > > A couple of quick thoughts: > > - Agree with Peter on the use of "task"; something like "job" would be

Re: [RFC PATCH v4 01/13] ktask: add documentation

2018-11-08 Thread Jonathan Corbet
On Thu, 8 Nov 2018 11:15:53 -0800 Daniel Jordan wrote: > > - You have kerneldoc comments for the API functions, but you don't pull > > those into the documentation itself. Adding some kernel-doc directives > > could help to fill things out nicely with little effort. > > I thought this par

Re: [PATCH v2 3/4] of/property: Add of_fwnode_name()

2018-11-08 Thread Andy Shevchenko
On Thu, Nov 08, 2018 at 12:23:51PM -0600, Rob Herring wrote: > On Thu, Nov 8, 2018 at 10:52 AM Heikki Krogerus > wrote: > > > > This implements get_name fwnode op for DT. > > > > Signed-off-by: Heikki Krogerus > > --- > > drivers/of/property.c | 11 +++ > > 1 file changed, 11 insertions(

[GIT PULL] LED fixes for 4.20-rc2

2018-11-08 Thread Jacek Anaszewski
Hi Linus, Please pull LED fixes for 4.20-rc2. All three fixes are related to the newly added pattern trigger: - remove mutex_lock() from timer callback, which would trigger problems related to sleeping in atomic context, the removal is harmless since mutex protection turned out to be redunda

Re: [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h

2018-11-08 Thread Palmer Dabbelt
On Thu, 08 Nov 2018 11:07:00 PST (-0800), david.abdurachma...@gmail.com wrote: Fixes warning: 'struct module' declared inside parameter list will not be visible outside of this definition or declaration Signed-off-by: David Abdurachmanov --- arch/riscv/include/asm/module.h | 1 + 1 file change

Re: [PATCH] irq/irq_sim: add locking

2018-11-08 Thread Uwe Kleine-König
Hello Bartosz, On Thu, Nov 08, 2018 at 05:47:48PM +0100, Bartosz Golaszewski wrote: > Two threads can try to fire the irq_sim with different offsets and will > end up fighting for the irq_work asignment. To fix it: add a mutex and > lock it before firing. > > Suggested-by: Uwe Kleine-König > Sig

[PATCH] locking/atomics: Fix out-of-tree build

2018-11-08 Thread Borislav Petkov
From: Borislav Petkov Building a kernel out of tree with: make O=/tmp/b oldconfig cd /tmp/b make gives this: CALL/mnt/kernel/kernel/linux/scripts/atomic/check-atomics.sh /bin/bash: scripts/atomic/check-atomics.sh: No such file or directory make[3]: *** [/mnt/kernel/kernel/linux/./K

Re: [PATCH] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-08 Thread Anders Roxell
On Wed, 7 Nov 2018 at 20:36, Darren Hart wrote: > > On Fri, Nov 02, 2018 at 12:41:19PM +0100, Anders Roxell wrote: > > In today's merge_config.sh the order of the config fragment files dictates > > the output of a config option. With this approach we will get different > > .config files depending

[PATCH v3 0/3] ARM64: dts: meson-gxl: Add dts and bindings for Smartlabs SML-5442TW

2018-11-08 Thread Christian Hewitt
This series adds new bindings and a device-tree file for the Smartlabs SML-5442TW set-top box. v3 - change to Smartlabs LLC - removed sound node v2 - removed audio nodes - changes soundcard name to "meson-gx-audio" - added missing uart-has-rtscts; Christian Hewitt (3): dt-bindings: Add

[PATCH v2] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-08 Thread Anders Roxell
In today's merge_config.sh the order of the config fragment files dictates the output of a config option. With this approach we will get different .config files depending on the order of the config fragment files. So doing something like: $ ./merge/kconfig/merge_config.sh selftest.config drm.confi

[PATCH v3 3/3] ARM64: dts: meson-gxl: Add support for the Smartlabs SML-5442TW

2018-11-08 Thread Christian Hewitt
The Smartlabs SML-5442TW is broadly similar to the P231 reference design but with the following differences: - Yellow and Blue front-panel LEDs are available but disabled - Red/Green LED is used to signal off/on status - GPIOX_17 is set high to enable the QCA9377 wireless module - uart_AO can be a

[PATCH v3 1/3] dt-bindings: Add vendor prefix for Smartlabs LLC

2018-11-08 Thread Christian Hewitt
Smartlabs LLC are a professional integrator of Interactive TV solutions and IPTV/VOD devices (https://www.smartlabs.tv/en/about/). Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetre

[PATCH v3 2/3] dt-bindings: arm: amlogic: Add support for the Smartlabs SML-5442TW

2018-11-08 Thread Christian Hewitt
The SML-5442TW is an STB for O2 Czech IPTV/VOD and DVB-S based on the Amlogic P231 reference design using the S905D chipset. Specs: 2GB DDR3 RAM 8GB eMMC storage 10/100 Base-T Ethernet 802.11 a/b/g/n/ac + BT 4.1 HS sdio wireless module (QCA9377) 2x single colour and 1x dual colour LEDs on the fron

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2018-11-08 Thread Theodore Y. Ts'o
On Thu, Nov 08, 2018 at 09:33:47AM -0700, Jonathan Corbet wrote: > > > I thought there was a slot already scheduled on the refereed track, > > "Towards a Linux Kernel Mainainer Handbook" (Tuesday at 4:45pm) for > > this purpose? > > My expectation is that this will be an actual talk; it seemed ru

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-08 Thread David Woodhouse
On Thu, 2018-11-08 at 18:01 +, Nikunj Kela (nkela) wrote: > But we can hypothesise and handwave about it until the cows come home; > I'd like to see a real test of whether it actually makes a difference > that we care about. > > If it does, one option might be to just build

Re: RFC: userspace exception fixups

2018-11-08 Thread Sean Christopherson
On Tue, Nov 06, 2018 at 01:07:54PM -0800, Andy Lutomirski wrote: > > > > On Nov 6, 2018, at 1:00 PM, Dave Hansen wrote: > > > >> On 11/6/18 12:12 PM, Andy Lutomirski wrote: > >> True, but what if we have a nasty enclave that writes to memory just > >> below SP *before* decrementing SP? > > > >

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-08 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 8, 2018 at 5:14:58 PM GMT > To: Nadav Amit , h...@zytor.com , Ingo > Molnar > Cc: LKML , X86 ML , Sam > Ravnborg , Michal Marek , Thomas > Gleixner , Linux Kbuild mailing list > , Stephen Bates > Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using ma

[PATCH] kbuild/builddeb: Fix building .deb packages out-of-tree

2018-11-08 Thread Borislav Petkov
From: Borislav Petkov When building a .deb package with make O=/tmp/b oldconfig cd /tmp/b make bindeb-pkg the build fails with fakeroot -u debian/rules binary *** *** Configuration file ".config" not found! *** *** Please run some configurator (e.g. "make oldconfig" or *** "

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Thomas Gleixner
On Thu, 8 Nov 2018, Paul E. McKenney wrote: > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > On Thu, Nov 8, 2018 at 1:13 AM Peter Zijlstra wrote: > > > > > > On Thu, Nov 08, 2018 at 08:40:12AM +0100, Ingo Molnar wrote: > > > > > + - Cc: ``cc-ed-person `` > > > > > + > > > > > +

Re: [PATCH v3 1/3] x86: add support for Huawei WMI hotkeys.

2018-11-08 Thread Andy Shevchenko
On Thu, Nov 8, 2018 at 7:17 PM Ayman Bagabas wrote: > > This driver adds support for missing hotkeys on some Huawei laptops. > Currently, only Huawei Matebook X and Matebook X Pro is supported. > Thanks for an update, my comments below. > +config HUAWEI_LAPTOP > + tristate "Huawei WMI hot

Re: [PATCH v3 0/3] Huawei laptops

2018-11-08 Thread Andy Shevchenko
On Thu, Nov 8, 2018 at 7:17 PM Ayman Bagabas wrote: Is it supposed to go via PDx86 or ALSA tree? > Changes from v2: > * Support for Huawei MBX > * Style and formating issues > > [PATCH v3 1/3] > The first patch adds support for missing hotkeys on some models. > > [PATCH v3 2/3] > This one enable

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-08 Thread Logan Gunthorpe
On 2018-11-08 12:54 p.m., Nadav Amit wrote: > I don’t think the assembly stage needs to be done locally. gcc can still be > used to deploy the assembler. I am not too familiar with distcc, so I don’t > know whether the preprocessing supports multiple source-files, and whether > it has some stran

Re: [PATCH v8 2/2] overlayfs: override_creds=off option bypass creator_cred

2018-11-08 Thread Vivek Goyal
On Tue, Nov 06, 2018 at 03:01:15PM -0800, Mark Salyzyn wrote: > By default, all access to the upper, lower and work directories is the > recorded mounter's MAC and DAC credentials. The incoming accesses are > checked against the caller's credentials. Ok, I am trying to think of scenarios where ov

Re: [Patch v4 1/3] platform/x86: intel_pmc_core: Show Latency Tolerance info

2018-11-08 Thread Andy Shevchenko
On Thu, Nov 8, 2018 at 9:05 PM Rajneesh Bhardwaj wrote: > > This adds support to show the Latency Tolerance Reporting for the IPs on > the PCH as reported by the PMC. The format shown here is raw LTR data > payload that can further be decoded as per the PCI specification. > > This also fixes some

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Paul E. McKenney
On Thu, Nov 08, 2018 at 08:58:32PM +0100, Thomas Gleixner wrote: > On Thu, 8 Nov 2018, Paul E. McKenney wrote: > > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > > On Thu, Nov 8, 2018 at 1:13 AM Peter Zijlstra > > > wrote: > > > > > > > > On Thu, Nov 08, 2018 at 08:40:12AM +010

Re: RFC: userspace exception fixups

2018-11-08 Thread Andy Lutomirski
On Thu, Nov 8, 2018 at 11:54 AM Sean Christopherson wrote: > > On Tue, Nov 06, 2018 at 01:07:54PM -0800, Andy Lutomirski wrote: > > > > > > > On Nov 6, 2018, at 1:00 PM, Dave Hansen wrote: > > > > > >> On 11/6/18 12:12 PM, Andy Lutomirski wrote: > > >> True, but what if we have a nasty enclave th

Re: RFC: userspace exception fixups

2018-11-08 Thread Dave Hansen
On 11/8/18 12:05 PM, Andy Lutomirski wrote: > Hmm. The idea being that the SDK preserves RBP but not RSP. That's > not the most terrible thing in the world. But could the SDK live with > something more like my suggestion where the vDSO supplies a normal > function that takes a struct containing

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Theodore Y. Ts'o
On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > I know at least StGit mail does not grok that "#"notation. I've > stopped using it in favor of a "Fixes:" tag. I would think "Fixes:" is > preferred over "# " if only because it can be used to track > fixes to commits that have been

[PATCH for-4.20-fixes] cgroup: fix CSS_TASK_ITER_PROCS

2018-11-08 Thread Tejun Heo
CSS_TASK_ITER_PROCS implements process-only iteration by making css_task_iter_advance() skip tasks which aren't threadgroup leaders; however, when an iteration is started css_task_iter_start() calls the inner helper function css_task_iter_advance_css_set() instead of css_task_iter_advance(). As th

[PATCH 2/5] cgroup: implement __cgroup_task_count() helper

2018-11-08 Thread Roman Gushchin
The helper is identical to the existing cgroup_task_count() except it doesn't take the css_set_lock by itself, assuming that the caller does. Also, move cgroup_task_count() implementation into kernel/cgroup/cgroup.c, as there is nothing specific to cgroup v1. Signed-off-by: Roman Gushchin Cc: Te

[PATCH 0/5] freezer for cgroup v2

2018-11-08 Thread Roman Gushchin
This patchset implements freezer for cgroup v2. It provides similar functionality as v1 freezer, but the interface conforms to the cgroup v2 interface design principles, and it provides a better user experience: tasks can be killed, ptrace works, there is no separate controller, which has to be en

[PATCH 5/5] kselftests: cgroup: add freezer controller self-tests

2018-11-08 Thread Roman Gushchin
This patch implements six tests for the freezer controller for cgroup v2: 1) a simple test, which aims to freeze and unfreeze a cgroup with 100 processes 2) a more complicated tree test, which creates a hierarchy of cgroups, puts some processes in some cgroups, and tries to freeze and unfreeze diff

[PATCH 4/5] kselftests: cgroup: don't fail on cg_kill_all() error in cg_destroy()

2018-11-08 Thread Roman Gushchin
If the cgroup destruction races with an exit() of a belonging process(es), cg_kill_all() may fail. It's not a good reason to make cg_destroy() fail and leave the cgroup in place, potentially causing next test runs to fail. Signed-off-by: Roman Gushchin Cc: Shuah Khan Cc: Tejun Heo Cc: kernel-t.

[PATCH 3/5] cgroup: cgroup v2 freezer

2018-11-08 Thread Roman Gushchin
Cgroup v1 implements the freezer controller, which provides an ability to stop the workload in a cgroup and temporarily free up some resources (cpu, io, network bandwidth and, potentially, memory) for some other tasks. Cgroup v2 lacks this functionality. This patch implements freezer for cgroup v2

[PATCH 1/5] cgroup: rename freezer.c into legacy_freezer.c

2018-11-08 Thread Roman Gushchin
Freezer.c will contain an implementation of cgroup v2 freezer, so let's rename the v1 freezer to avoid naming conflicts. Signed-off-by: Roman Gushchin Cc: Tejun Heo Cc: kernel-t...@fb.com --- kernel/cgroup/Makefile| 2 +- kernel/cgroup/{freezer.c => legacy_freezer.c} | 0

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-08 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 8, 2018 at 8:00:33 PM GMT > To: Nadav Amit , h...@zytor.com , Ingo > Molnar > Cc: LKML , X86 ML , Sam > Ravnborg , Michal Marek , Thomas > Gleixner , Linux Kbuild mailing list > , Stephen Bates > Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using ma

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Thomas Gleixner
On Thu, 8 Nov 2018, Theodore Y. Ts'o wrote: > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > > > I know at least StGit mail does not grok that "#"notation. I've > > stopped using it in favor of a "Fixes:" tag. I would think "Fixes:" is > > preferred over "# " if only because it

Re: [PATCH 01/12] fs/locks: rename some lists and pointers.

2018-11-08 Thread J. Bruce Fields
On Mon, Nov 05, 2018 at 12:30:47PM +1100, NeilBrown wrote: > struct file lock contains an 'fl_next' pointer which > is used to point to the lock that this request is blocked > waiting for. So rename it to fl_blocker. > > The fl_blocked list_head in an active lock is the head of a list of > blocke

[RFC PATCH 00/12] locking/lockdep: Add a new class of terminal locks

2018-11-08 Thread Waiman Long
The purpose of this patchset is to add a new class of locks called terminal locks and converts some of the low level raw or regular spinlocks to terminal locks. A terminal lock does not have forward dependency and it won't allow a lock or unlock operation on another lock. Two level nesting of termi

[RFC PATCH 04/12] printk: Make logbuf_lock a terminal lock

2018-11-08 Thread Waiman Long
By making logbuf_lock a terminal lock, it reduces the performance overhead when lockdep is enabled. Signed-off-by: Waiman Long --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 1b2a029..6b63fda 100

[RFC PATCH 05/12] debugobjects: Mark pool_lock as a terminal lock

2018-11-08 Thread Waiman Long
By marking the internal pool_lock as a terminal lock, lockdep will be able to skip full validation to improve locking performance. Signed-off-by: Waiman Long --- lib/debugobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 7

[RFC PATCH 03/12] locking/lockdep: Add DEFINE_TERMINAL_SPINLOCK() and related macros

2018-11-08 Thread Waiman Long
Add new DEFINE_RAW_TERMINAL_SPINLOCK() and DEFINE_TERMINAL_SPINLOCK() macro to define a raw terminal spinlock and a terminal spinlock. Signed-off-by: Waiman Long --- include/linux/spinlock_types.h | 34 +++--- kernel/printk/printk_safe.c| 2 +- 2 files changed, 2

[RFC PATCH 02/12] locking/lockdep: Add a new terminal lock type

2018-11-08 Thread Waiman Long
A terminal lock is a lock where further locking or unlocking on another lock is not allowed. IOW, no forward dependency is permitted. With such a restriction in place, we don't really need to do a full validation of the lock chain involving a terminal lock. Instead, we just check if there is any

[RFC PATCH 09/12] lib/stackdepot: Make depot_lock a terminal spinlock

2018-11-08 Thread Waiman Long
By defining depot_lock as a terminal spinlock, it reduces the lockdep overhead when this lock is being used. Signed-off-by: Waiman Long --- lib/stackdepot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stackdepot.c b/lib/stackdepot.c index e513459..fb17888 100644 --- a

[RFC PATCH 08/12] debugobjects: Make object hash locks nested terminal locks

2018-11-08 Thread Waiman Long
By making the object hash locks nested terminal locks, we can avoid a bunch of unnecessary lockdep validations as well as saving space in the lockdep tables. Signed-off-by: Waiman Long --- lib/debugobjects.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/debugobjec

Re: [PATCH 1/3] gpio: mockup: fix indicated direction

2018-11-08 Thread Uwe Kleine-König
Hello Bartosz, On Thu, Nov 08, 2018 at 05:52:53PM +0100, Bartosz Golaszewski wrote: > Commit 3edfb7bd76bd ("gpiolib: Show correct direction from the > beginning") fixed an existing issue but broke libgpiod tests by > changing the default direction of dummy lines to output. The indicated commit on

[RFC PATCH 06/12] debugobjects: Move printk out of db lock critical sections

2018-11-08 Thread Waiman Long
The db->lock is a raw spinlock and so the lock hold time is supposed to be short. This will not be the case when printk() is being involved in some of the critical sections. In order to avoid the long hold time, in case some messages need to be printed, the debug_object_is_on_stack() and debug_prin

[RFC PATCH 07/12] locking/lockdep: Add support for nested terminal locks

2018-11-08 Thread Waiman Long
There are use cases where we want to allow 2-level nesting of one terminal lock underneath another one. So the terminal lock type is now extended to support a new nested terminal lock where it can allow the acquisition of another regular terminal lock underneath it. Signed-off-by: Waiman Long ---

[RFC PATCH 01/12] locking/lockdep: Rework lockdep_set_novalidate_class()

2018-11-08 Thread Waiman Long
The current lockdep_set_novalidate_class() implementation is like a hack. It assigns a special class key for that lock and calls lockdep_init_map() twice. This patch changes the implementation to make it more general so that it can be used by other special lock class types. A new "type" field is a

[RFC PATCH 12/12] mm/kasan: Make quarantine_lock a terminal lock

2018-11-08 Thread Waiman Long
By making quarantine_lock a terminal spinlock, it reduces the lockdep overhead when this lock is being used. Signed-off-by: Waiman Long --- mm/kasan/quarantine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/quarantine.c b/mm/kasan/quarantine.c index b209dba..c9d36

[RFC PATCH 10/12] locking/rwsem: Mark rwsem.wait_lock as a terminal lock

2018-11-08 Thread Waiman Long
The wait_lock in a rwsem is always acquired with IRQ disabled. For the rwsem-xadd.c implementation, no other lock will be called while holding the wait_lock. So it satisfies the condition of being a terminal lock. By marking it as terminal, the lockdep overhead will be reduced. Signed-off-by: Wai

Re: [PATCH 3/3] gpio: mockup: implement get_multiple()

2018-11-08 Thread Uwe Kleine-König
On Thu, Nov 08, 2018 at 05:52:55PM +0100, Bartosz Golaszewski wrote: > We already support set_multiple(). Implement get_multiple() as well. > > Signed-off-by: Bartosz Golaszewski Acked-by: Uwe Kleine-König -- Pengutronix e.K. | Uwe Kleine-König| Industri

[RFC PATCH 11/12] cgroup: Mark the rstat percpu lock as terminal

2018-11-08 Thread Waiman Long
By classifying the cgroup rstat percpu locks as terminal locks, it reduces the lockdep overhead when these locks are being used. Signed-off-by: Waiman Long --- kernel/cgroup/rstat.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup/rstat.c b/kernel/cgroup

[PATCH] IIO: extend dac/MCP4922 to MCP49x1 devices

2018-11-08 Thread Matt Walker
Extend the existing dual channel MCP4922 DAC driver to single channel MCP49x1 devices. These devices are simple and write only. The most significant bit of the transfer dictates what channel to write to. Although there is no danger in writing to the non existant channel in the single channel devic

KMSAN: uninit-value in linear_transfer (2)

2018-11-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7438a3b20295 kmsan: print user address when reporting info.. git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=15b4213340 kernel config: https://syzkaller.appspot.c

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Hi Baolin, Thanks for the review. On 11/07/2018 08:20 AM, Baolin Wang wrote: > Hi Jacek, > > On 7 November 2018 at 06:07, Jacek Anaszewski > wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> acco

Re: [PATCH 01/24] leds: class: Improve LED and LED flash class registration API

2018-11-08 Thread Jacek Anaszewski
Hi Dan, Thanks for the review. On 11/08/2018 06:50 PM, Dan Murphy wrote: > Jacek > > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: [...] >> >> /** >> - * of_led_classdev_register - register a new object of led_classdev class. >> + * led_classdev_register_ext - register a new object of led_c

Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:00 PM, Dan Murphy wrote: > Jacek > > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Introduce dedicated properties for conveying information about >> LED function and color. Mark old "label" property as deprecated. >> >> Signed-off-by: Jacek Anaszewski >> Cc: Baolin Wan

Re: [PATCH 10/24] leds: lp8860: Use led_compose_name()

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:16 PM, Dan Murphy wrote: > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Switch to using generic LED support for composing LED class >> device name. >> >> Signed-off-by: Jacek Anaszewski >> Signed-off-by: Dan Murphy >> --- >> drivers/leds/leds-lp8860.c | 38 ++

Re: [PATCH v4] perf: Support for Arm A32/T32 instruction sets in CoreSight trace

2018-11-08 Thread Mathieu Poirier
Hi Robert, On Wed, Nov 07, 2018 at 11:04:12AM +, Robert Walker wrote: > This patch adds support for generating instruction samples from trace of > AArch32 programs using the A32 and T32 instruction sets. > > T32 has variable 2 or 4 byte instruction size, so the conversion between > addresses

Re: [PATCH 12/24] leds: lm3692x: Use led_compose_name()

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:14 PM, Dan Murphy wrote: > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Switch to using generic LED support for composing LED class >> device name. >> >> Signed-off-by: Jacek Anaszewski >> Cc: Dan Murphy >> --- >> drivers/leds/leds-lm3692x.c | 39

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:06 PM, Dan Murphy wrote: > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> according to either a new pattern or the legacy >> patte

Re: [PATCH] irq/irq_sim: add locking

2018-11-08 Thread Bartosz Golaszewski
czw., 8 lis 2018 o 20:41 Uwe Kleine-König napisał(a): > > Hello Bartosz, > > On Thu, Nov 08, 2018 at 05:47:48PM +0100, Bartosz Golaszewski wrote: > > Two threads can try to fire the irq_sim with different offsets and will > > end up fighting for the irq_work asignment. To fix it: add a mutex and >

WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-v3-its.c

2018-11-08 Thread Qian Cai
Just booting up the latest git master (b00d209) on an aarch64 server and saw this. Not sure about the third warning (at kernel/cpu.c:315 lockdep_assert_cpus_held+0x50/0x60) relates to irqchip or not, but appended it to here anyway just in case. [0.00] WARNING: CPU: 0 PID: 0 at drivers/irqc

Re: [PATCH 03/24] leds: dt-bindings: Add LED_FUNCTION definitions

2018-11-08 Thread Jacek Anaszewski
Hi Rob, Thanks for the review. On 11/08/2018 04:13 PM, Rob Herring wrote: > On Tue, Nov 6, 2018 at 4:07 PM Jacek Anaszewski > wrote: >> >> Add common LED function definitions for use in Device Tree. >> The function names were extracted from existing dts files >> after eliminating oddities. >> >>

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Greg KH
On Thu, Nov 08, 2018 at 03:14:25PM -0500, Theodore Y. Ts'o wrote: > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > > > I know at least StGit mail does not grok that "#"notation. I've > > stopped using it in favor of a "Fixes:" tag. I would think "Fixes:" is > > preferred over "#

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Greg KH
On Thu, Nov 08, 2018 at 08:58:32PM +0100, Thomas Gleixner wrote: > On Thu, 8 Nov 2018, Paul E. McKenney wrote: > > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > > On Thu, Nov 8, 2018 at 1:13 AM Peter Zijlstra > > > wrote: > > > > > > > > On Thu, Nov 08, 2018 at 08:40:12AM +010

[PATCH v6 01/10] dt-bindings: fsi: Add P9 OCC device documentation

2018-11-08 Thread Eddie James
From: Eddie James Document the bindings for the FSI-attached POWER9 On-Chip Controller. Signed-off-by: Eddie James --- Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-o

Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties

2018-11-08 Thread Dan Murphy
Jacek On 11/08/2018 02:47 PM, Jacek Anaszewski wrote: > Dan, > > On 11/08/2018 07:00 PM, Dan Murphy wrote: >> Jacek >> >> On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >>> Introduce dedicated properties for conveying information about >>> LED function and color. Mark old "label" property as dep

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-08 Thread Greg KH
On Thu, Nov 08, 2018 at 01:06:15PM -0800, Greg KH wrote: > On Thu, Nov 08, 2018 at 08:58:32PM +0100, Thomas Gleixner wrote: > > On Thu, 8 Nov 2018, Paul E. McKenney wrote: > > > On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote: > > > > On Thu, Nov 8, 2018 at 1:13 AM Peter Zijlstra > >

Re: [PATCH 12/24] leds: lm3692x: Use led_compose_name()

2018-11-08 Thread Dan Murphy
Jacek On 11/08/2018 02:48 PM, Jacek Anaszewski wrote: > Dan, > > On 11/08/2018 07:14 PM, Dan Murphy wrote: >> On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >>> Switch to using generic LED support for composing LED class >>> device name. >>> >>> Signed-off-by: Jacek Anaszewski >>> Cc: Dan Murph

Re: [PATCH 2/3] gpio: mockup: add locking

2018-11-08 Thread Uwe Kleine-König
On Thu, Nov 08, 2018 at 05:52:54PM +0100, Bartosz Golaszewski wrote: > While no user reported any race condition problems with gpio-mockup, > let's be on the safe side and use a mutex when performing any changes > on the dummy chip structures. > > Suggested-by: Uwe Kleine-König > Signed-off-by: B

Re: RFC: userspace exception fixups

2018-11-08 Thread Sean Christopherson
On Thu, Nov 08, 2018 at 12:10:30PM -0800, Dave Hansen wrote: > On 11/8/18 12:05 PM, Andy Lutomirski wrote: > > Hmm. The idea being that the SDK preserves RBP but not RSP. That's > > not the most terrible thing in the world. But could the SDK live with > > something more like my suggestion where

Re: A different PD controller firmware problem?

2018-11-08 Thread Theodore Y. Ts'o
On Thu, Nov 08, 2018 at 06:00:59PM +, mario.limoncie...@dell.com wrote: > > Sortly after 12:30am US/Eastern, I got a low power warning on my > > system, and the battery power had dropped below 10%. Apparently the > > laptop was not accepting any charge any more. I tried doing a suspend > > to

[RFC PATCH 2/3] x86/static_call: Add x86 unoptimized static call implementation

2018-11-08 Thread Josh Poimboeuf
Add the x86 unoptimized static call implementation. For each key, it creates a permanent trampoline which is the destination for all static calls for the given key. The trampoline has a direct jump which gets patched by static_call_update() when the destination changes. Signed-off-by: Josh Poimb

[RFC PATCH 3/3] x86/static_call: Add optimized static call implementation for 64-bit

2018-11-08 Thread Josh Poimboeuf
Add the optimized static call implementation for x86-64. For each key, a temporary trampoline is created, named __static_call_tramp_. The trampoline has an indirect jump to the destination function. Objtool uses the trampoline naming convention to detect all the call sites. It then annotates th

[PATCH RFC 0/3] Static calls

2018-11-08 Thread Josh Poimboeuf
These patches are related to two similar patch sets from Ard and Steve: - https://lkml.kernel.org/r/20181005081333.15018-1-ard.biesheu...@linaro.org - https://lkml.kernel.org/r/20181006015110.653946...@goodmis.org The code is also heavily inspired by the jump label code, as some of the concepts a

[RFC PATCH 1/3] static_call: Add static call infrastructure

2018-11-08 Thread Josh Poimboeuf
Add a static call infrastructure. Static calls use code patching to hard-code function pointers into direct branch instructions. They give the flexibility of function pointers, but with improved performance. This is especially important for cases where retpolines would otherwise be used, as retpo

Re: [PATCH v2 3/4] of/property: Add of_fwnode_name()

2018-11-08 Thread Rob Herring
On Thu, Nov 8, 2018 at 1:25 PM Andy Shevchenko wrote: > > On Thu, Nov 08, 2018 at 12:23:51PM -0600, Rob Herring wrote: > > On Thu, Nov 8, 2018 at 10:52 AM Heikki Krogerus > > wrote: > > > > > > This implements get_name fwnode op for DT. > > > > > > Signed-off-by: Heikki Krogerus > > > --- > > >

kmemleak: Early log buffer exceeded (525980) during boot

2018-11-08 Thread Qian Cai
The maximum value for DEBUG_KMEMLEAK_EARLY_LOG_SIZE is only 4, so it disables kmemleak every time on this aarch64 server running the latest mainline (b00d209). # echo scan > /sys/kernel/debug/kmemleak  -bash: echo: write error: Device or resource busy Any idea on how to enable kmemleak there?

Re: [PATCH RFC 0/3] Static calls

2018-11-08 Thread Josh Poimboeuf
On Thu, Nov 08, 2018 at 03:15:50PM -0600, Josh Poimboeuf wrote: > - Does this feature have much value without retpolines? If not, should > we make it depend on retpolines somehow? I forgot Andy mentioned that we might be able to use this to clean up paravirt patching, in which case it would hav

Re: [PATCH] irq/irq_sim: add locking

2018-11-08 Thread Uwe Kleine-König
Hello, On Thu, Nov 08, 2018 at 09:55:02PM +0100, Bartosz Golaszewski wrote: > czw., 8 lis 2018 o 20:41 Uwe Kleine-König > napisał(a): > > > @@ -142,10 +143,14 @@ EXPORT_SYMBOL_GPL(devm_irq_sim_init); > > > */ > > > void irq_sim_fire(struct irq_sim *sim, unsigned int offset) > > > { > > > +

RE: [PATCH 21/23] dt-bindings: pci: Add NXP LX SoCs PCIe controller

2018-11-08 Thread Leo Li
> -Original Message- > From: Z.q. Hou > Sent: Tuesday, November 6, 2018 7:21 AM > To: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > l.subrahma

Re: [PATCH 10/12] fs/locks: create a tree of dependent requests.

2018-11-08 Thread J. Bruce Fields
On Mon, Nov 05, 2018 at 12:30:48PM +1100, NeilBrown wrote: > When we find an existing lock which conflicts with a request, > and the request wants to wait, we currently add the request > to a list. When the lock is removed, the whole list is woken. > This can cause the thundering-herd problem. > T

Re: [PATCH 00/12] Series short description

2018-11-08 Thread J. Bruce Fields
On Mon, Nov 05, 2018 at 12:30:47PM +1100, NeilBrown wrote: > Here is the respin on this series with the file_lock properly > initlized for unlock requests. > I found one that I had missed before - in locks_remove_flock() > The change makes this code smaller! > > Original series description: > > I

[PATCH] HID: hidraw: enforce minors_lock locking via lockdep

2018-11-08 Thread Jiri Kosina
From: Jiri Kosina lockdep is much more powerful enforcing the locking rules than code comments, so let's switch to it. Signed-off-by: Jiri Kosina --- drivers/hid/hidraw.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index

Re: [PATCH v4 12/18] arm64: dts: qcom: pms405: add gpios

2018-11-08 Thread Rob Herring
On Thu, Nov 8, 2018 at 12:41 PM Vinod Koul wrote: > > Add the GPIOs present on PMS405 chip. > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/pms405.dtsi | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi > b/arch/arm6

Re: [PATCH v4 01/18] arm64: dts: qcom: qcs404: add base dts files

2018-11-08 Thread Rob Herring
On Thu, Nov 8, 2018 at 12:40 PM Vinod Koul wrote: > > Add base dts files for QCS404 chipset along with cpu, timer, > gcc and uart2 nodes. > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/qcs404.dtsi | 175 > +++ > 1 file changed, 175 insertions(+) >

Re: RFC: userspace exception fixups

2018-11-08 Thread Dave Hansen
On 11/8/18 1:16 PM, Sean Christopherson wrote: > On Thu, Nov 08, 2018 at 12:10:30PM -0800, Dave Hansen wrote: >> On 11/8/18 12:05 PM, Andy Lutomirski wrote: >>> Hmm. The idea being that the SDK preserves RBP but not RSP. That's >>> not the most terrible thing in the world. But could the SDK live

[PATCH 3.18 001/144] selftests/efivarfs: add required kernel configs

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Lei Yang [ Upstream commit 53cf59d6c0ad3edc4f4449098706a8f8986258b6 ] add config file Signed-off-by: Lei Yang Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin Signed-off-

[PATCH 3.18 011/144] qlcnic: fix Tx descriptor corruption on 82xx devices

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Shahed Shaikh [ Upstream commit c333fa0c4f220f8f7ea5acd6b0ebf3bf13fd684d ] In regular NIC transmission flow, driver always configures MAC using Tx queue zero descriptor as a part of MAC learni

[PATCH 3.18 005/144] i2c: i2c-scmi: fix for i2c_smbus_write_block_data

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Edgar Cherkasov commit 08d9db00fe0e300d6df976e6c294f974988226dd upstream. The i2c-scmi driver crashes when the SMBus Write Block transaction is executed: WARNING: CPU: 9 PID: 2194 at mm/page_

[PATCH 3.18 008/144] net/ipv6: Display all addresses in output of /proc/net/if_inet6

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Barnhill <0xeff...@gmail.com> [ Upstream commit 86f9bd1ff61c413a2a251fa736463295e4e24733 ] The backend handling for /proc/net/if_inet6 in addrconf.c doesn't properly handle starting/stoppi

[PATCH 3.18 009/144] netlabel: check for IPV4MASK in addrinfo_get

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Sean Tranchetti [ Upstream commit f88b4c01b97e09535505cf3c327fdbce55c27f00 ] netlbl_unlabel_addrinfo_get() assumes that if it finds the NLBL_UNLABEL_A_IPV4ADDR attribute, it must also have the

[PATCH 3.18 010/144] net/usb: cancel pending work when unbinding smsc75xx

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Yu Zhao [ Upstream commit f7b2a56e1f3dcbdb4cf09b2b63e859ffe0e09df8 ] Cancel pending work before freeing smsc75xx private data structure during binding. This fixes the following crash in the dr

[PATCH 3.18 002/144] mfd: omap-usb-host: Fix dts probe of children

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren [ Upstream commit 10492ee8ed9188d6d420e1f79b2b9bdbc0624e65 ] It currently only works if the parent bus uses "simple-bus". We currently try to probe children with non-existing com

[PATCH 3.18 006/144] xhci: Dont print a warning when setting link state for disabled ports

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 1208d8a84fdcae6b395c57911cdf907450d30e70 upstream. When disabling a USB3 port the hub driver will set the port link state to U3 to prevent "ejected" or "safely removed" de

[PATCH 3.18 025/144] asix: Check for supported Wake-on-LAN modes

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c4ce446e33d7a0e978256ac6fea4c80e59d9de5f ] The driver currently silently accepts unsupported Wake-on-LAN modes (other than WAKE_PHY or WAKE_MAGIC) without reporting that to the user,

[PATCH 3.18 014/144] net: systemport: Fix wake-up interrupt race during resume

2018-11-08 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli [ Upstream commit 45ec318578c0c22a11f5b9927d064418e1ab1905 ] The AON_PM_L2 is normally used to trigger and identify the source of a wake-up event. Since the RX_SYS clock is no

<    7   8   9   10   11   12   13   14   >