Re: [PATCH v3 1/2] selinux: add brief info to policydb

2017-05-11 Thread Stephen Smalley
On Thu, 2017-05-11 at 08:56 -0700, Casey Schaufler wrote: > On 5/11/2017 5:59 AM, Sebastien Buisson wrote: > > Add policybrief field to struct policydb. It holds a brief info > > of the policydb, in the following form: > > <0 or 1 for enforce>:<0 or 1 for checkreqprot>:= > > Policy brief is compute

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi all, > > > > the test program attached below almost always results in one of the child > > processes being stuck in zap_pid_ns_processes(). When this happens, I can > > see from test logs that nr_h

Re: [alsa-devel] future of sounds/oss

2017-05-11 Thread Takashi Iwai
On Thu, 11 May 2017 11:15:11 +0200, Christoph Hellwig wrote: > > On Thu, May 11, 2017 at 10:46:47AM +0200, Takashi Iwai wrote: > > Yeah, I also started looking at it after reading the LWN article. > > The removal of set_fs() in ALSA part was already finished, and I'm > > currently brushing up the

Re: I'd like to donate a MacBook Pro

2017-05-11 Thread Alex Henrie
2017-05-11 5:16 GMT-06:00 Mathias Nyman : > Looks like there are a few people suffering from macbook xhci related issues > > From the bugs linked it looks like there are both some UEFI issues and a > non-responsive > usb device at boot. at least one USB device does not respond to a address > device

Re: [PATCH] usb-musb: keep VBUS on when device is disconnected

2017-05-11 Thread Tony Lindgren
* Bin Liu [170511 13:05]: > On Thu, May 11, 2017 at 12:38:11PM -0700, Tony Lindgren wrote: > > > > I wonder if just keeping VBUS on longer in OTG_STATE_A_WAIT_BCON > > solves this issue? > > We don't cut VBUS intentionally for host mode (when devctl=0x19). The > VBUS got cut in this case only be

Re: Lockdep splat involving all_q_mutex

2017-05-11 Thread Paul E. McKenney
On Thu, May 11, 2017 at 02:12:39PM -0600, Jens Axboe wrote: > On 05/10/2017 09:13 PM, Paul E. McKenney wrote: > > On Wed, May 10, 2017 at 08:55:54PM -0600, Jens Axboe wrote: > >> On 05/10/2017 04:34 PM, Paul E. McKenney wrote: > >>> Hello! > >>> > >>> I got the lockdep splat shown below during some

Re: [PATCH] usb-musb: keep VBUS on when device is disconnected

2017-05-11 Thread Tony Lindgren
* Tony Lindgren [170511 13:26]: > diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c > --- a/drivers/usb/musb/musb_dsps.c > +++ b/drivers/usb/musb/musb_dsps.c > @@ -270,6 +270,10 @@ static int dsps_check_status(struct musb *musb, void > *unused) > musb_writel(m

Re: [alsa-devel] future of sounds/oss

2017-05-11 Thread Linus Torvalds
On Thu, May 11, 2017 at 1:21 PM, Takashi Iwai wrote: > > Since no one cried against it so far, I'll try to smuggle the > following patch into 4.12. Can we instead just disable it with a one-liner that just makes SOUND_PRIME have a depends on n in it, so that you can't select it. Commentin

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in zap_pid_ns_processes(). When this happens, I can

Re: [alsa-devel] future of sounds/oss

2017-05-11 Thread Randy Dunlap
On 05/11/17 13:28, Linus Torvalds wrote: > On Thu, May 11, 2017 at 1:21 PM, Takashi Iwai wrote: >> >> Since no one cried against it so far, I'll try to smuggle the >> following patch into 4.12. > > Can we instead just disable it with a one-liner that just makes > SOUND_PRIME have a > > depe

Re: [PATCH] target: remove dead code

2017-05-11 Thread Tyrel Datwyler
On 05/09/2017 02:46 PM, Gustavo A. R. Silva wrote: > Local variable _ret_ is assigned to a constant value and it is never > updated again. Remove this variable and the dead code it guards. > > Addresses-Coverity-ID: 140761 > Signed-off-by: Gustavo A. R. Silva > --- Reviewed-by: Tyrel Datwyler

Re: [alsa-devel] future of sounds/oss

2017-05-11 Thread Takashi Iwai
On Thu, 11 May 2017 22:28:49 +0200, Linus Torvalds wrote: > > On Thu, May 11, 2017 at 1:21 PM, Takashi Iwai wrote: > > > > Since no one cried against it so far, I'll try to smuggle the > > following patch into 4.12. > > Can we instead just disable it with a one-liner that just makes > SOUND_PRIM

Re: [PATCH] usb-musb: keep VBUS on when device is disconnected

2017-05-11 Thread Bin Liu
On Thu, May 11, 2017 at 01:23:06PM -0700, Tony Lindgren wrote: > * Bin Liu [170511 13:05]: > > On Thu, May 11, 2017 at 12:38:11PM -0700, Tony Lindgren wrote: > > > > > > I wonder if just keeping VBUS on longer in OTG_STATE_A_WAIT_BCON > > > solves this issue? > > > > We don't cut VBUS intentiona

Re: [PATCH v3 1/2] selinux: add brief info to policydb

2017-05-11 Thread Casey Schaufler
On 5/11/2017 1:22 PM, Stephen Smalley wrote: > On Thu, 2017-05-11 at 08:56 -0700, Casey Schaufler wrote: >> On 5/11/2017 5:59 AM, Sebastien Buisson wrote: >>> Add policybrief field to struct policydb. It holds a brief info >>> of the policydb, in the following form: >>> <0 or 1 for enforce>:<0 or 1

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-11 Thread Pasha Tatashin
Have you measured that? I do not think it would be super hard to measure. I would be quite surprised if this added much if anything at all as the whole struct page should be in the cache line already. We do set reference count and other struct members. Almost nobody should be looking at our page

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached below almost always results in one of the ch

Re: [v2] Input: elan_i2c - check if device is there before really probing

2017-05-11 Thread Guenter Roeck
On Mon, May 08, 2017 at 05:45:53PM -0700, Dmitry Torokhov wrote: > Before trying to properly initialize the touchpad and generate bunch of > errors, let's first see it there is anything at the given address. If we > get error, fail silently with -ENXIO. > > Signed-off-by: Dmitry Torokhov Reviewe

[PATCH v2] sound: Disable the build of OSS drivers

2017-05-11 Thread Takashi Iwai
OSS drivers are left as badly unmaintained, and now we're facing a problem to clean up the hackish set_fs() usage in their codes. Since most of drivers have been covered by ALSA, and the others are dead old and inactive, let's leave them RIP. This patch is the first step: disable the build of OSS

[PATCH] staging: greybus: power_supply: replace kzalloc by kcalloc

2017-05-11 Thread JB Van Puyvelde
According to checkpatch.pl, kcalloc should be preferred to kzalloc with multiply. Signed-off-by: JB Van Puyvelde --- drivers/staging/greybus/power_supply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/power_supply.c b/drivers/staging/greybus/power_

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-11 Thread Pasha Tatashin
We should either keep memset() only for deferred struct pages as what I have in my patches. Another option is to add a new function struct_page_clear() which would default to memset() and to something else on platforms that decide to optimize it. On SPARC it would call STBIs, and we would do

[PATCH v7 01/23] drivers/fsi: Add fsi master definition

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Add a `struct fsi_master` to represent a FSI master controller. FSI master drivers register one of these structs to provide device-specific of the standard operations: read/write/term/break and link control. Includes changes from Edward A. James & Jeremy Kerr . Signed-off-by

[PATCH v7 00/23] FSI device driver implementation

2017-05-11 Thread Christopher Bostic
Implementation of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus and device models.

[PATCH v7 08/23] drivers/fsi: Set slave SMODE to init communication

2017-05-11 Thread Christopher Bostic
Set CFAM to appropriate ID so that the controlling master can manage link memory ranges. Add slave engine register definitions. Includes changes from Jeremy Kerr . Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley --- drivers/fsi/fsi-core.c | 75 +++

[PATCH v7 03/23] drivers/fsi: Add empty master scan

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr When a new fsi master is added, we will need to scan its links, and slaves attached to those links. This change introduces a little shell to iterate the links, which we will populate with the actual slave scan in a later change. Signed-off-by: Jeremy Kerr Signed-off-by: Chris

[PATCH v7 06/23] drivers/fsi: Set up links for slave communication

2017-05-11 Thread Christopher Bostic
Enable each link and send a break command, and try to detect a slave by reading from the SMODE register. Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley --- drivers/fsi/fsi-core.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --

[PATCH v7 05/23] drivers/fsi: Add slave & master read/write APIs

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Introduce functions to perform reads/writes on the slave address space; these simply pass the request on the slave's master with the correct link and slave ID. We implement these on top of similar helpers for the master. Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley

[PATCH v7 19/23] drivers/fsi: Add GPIO based FSI master

2017-05-11 Thread Christopher Bostic
Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decodes a slave response. Includes changes from Edward A. James and Jeremy Kerr . Signed-off-by: Edward A. James Signed-off-by: Jeremy Kerr

[PATCH v7 15/23] drivers/fsi: expose direct-access slave API

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Allow drivers to access the slave address ranges. Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-core.c | 26 -- include/linux/fsi.h| 12 2 files changed, 32 insertions(+)

[PATCH v7 22/23] drivers/fsi: Add hub master support

2017-05-11 Thread Christopher Bostic
Add an engine driver to expose a "hub" FSI master - which has a set of control registers in the engine address space, and uses a chunk of the slave address space for actual FSI communication. Additional changes from Jeremy Kerr . Signed-off-by: Christopher Bostic Signed-off-by: Jeremy Kerr Sign

[PATCH v7 23/23] drivers/fsi: Use asynchronous slave mode

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr For slaves that are behind a software-clocked master, we want FSI CFAMs to run asynchronously to the FSI clock, so set up our slaves to be in async mode. Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-core.c| 22 +

[PATCH v7 20/23] drivers/fsi/gpio: Add tracepoints for GPIO master

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Trace low level input/output GPIO operations. Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-master-gpio.c | 9 + include/trace/events/fsi_master_gpio.h | 68 ++ 2 files changed, 77 insertions(+)

[PATCH v7 17/23] drivers/fsi: Add error handling for slave

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr This change implements error handling in the FSI core, by cleaning up and retrying failed operations, using the SISC, TERM and BREAK facilities. Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-core.c | 121

[PATCH v7 21/23] drivers/fsi: Add SCOM FSI client device driver

2017-05-11 Thread Christopher Bostic
Create a simple SCOM engine device driver that reads and writes its control registers via an FSI bus. Includes changes from Edward A. James . Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley Signed-off-by: Edward A. James Signed-off-by: Jeremy Kerr --- drivers/fsi/Kconfig|

Re: [PATCH 4.4 00/60] 4.4.68-stable review

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 04:12:23PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.68 release. > There are 60 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

[PATCH v7 18/23] drivers/fsi: Document FSI master sysfs files in ABI

2017-05-11 Thread Christopher Bostic
From: Chris Bostic Add info for sysfs scan file in Documentaiton ABI/testing Signed-off-by: Christopher Bostic --- v7 - Rename scan file to 'rescan' - Add 'raw' file details - Add 'term' file details - Add 'break' file details - Update kernel version for each file to 4.12 --- Docum

[PATCH v7 12/23] drivers/fsi: Add documentation for GPIO bindings

2017-05-11 Thread Christopher Bostic
Add fsi master gpio device tree binding documentation. Includes changes from Jeremy Kerr . Signed-off-by: Christopher Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley Acked-by: Rob Herring --- .../devicetree/bindings/fsi/fsi-master-gpio.txt| 24 ++ 1 file

[PATCH v7 16/23] drivers/fsi: Add tracepoints for low-level operations

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Trace low level read and write FSI bus operations. Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-core.c | 27 +++--- include/trace/events/fsi.h | 127 + 2 fil

[PATCH v7 07/23] drivers/fsi: Implement slave initialisation

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Implement fsi_slave_init: if we can read a chip ID, create fsi_slave devices and register with the driver core. Includes changes from Christopher Bostic . Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley --- v7 - Change warning messag

[PATCH v7 13/23] drivers/fsi: Add client driver register utilities

2017-05-11 Thread Christopher Bostic
Add driver_register and driver_unregister wrappers for FSI. Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley --- drivers/fsi/fsi-core.c | 17 + include/linux/fsi.h| 12 2 files changed, 29 insertions(+) diff --git a/drivers/fsi/fsi-core.c b/drivers

[PATCH v7 14/23] drivers/fsi: Add sysfs files for FSI master & slave accesses

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr This change adds a 'raw' file for reads & writes, and a 'term' file for the TERM command, and a 'break' file for issuing a BREAK. Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley Signed-off-by: Christopher Bostic --- drivers/fsi/fsi-core.c | 116 ++

[PATCH v7 11/23] drivers/fsi: Add master unscan

2017-05-11 Thread Christopher Bostic
Allow a master to undo a previous scan. Should a master scan a bus twice it will need to ensure it doesn't double register any previously detected device. Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley v7 - Unscan when unregistering master - Remove leading '__'s from func

[PATCH v7 10/23] drivers/fsi: Add device read/write/peek API

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Christopher Bostic and Edward A. James . Signed-off-by: Edward A. James Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic

[PATCH v7 09/23] drivers/fsi: scan slaves & register devices

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Christopher Bostic . Signed-off-by: Jeremy Kerr Signed-off-by: Christopher Bostic Signed-off-by: Joel Stanley --- v7 - Use GEN_MASK for bitmask definit

Re: [PATCH] usb-musb: keep VBUS on when device is disconnected

2017-05-11 Thread Tony Lindgren
* Bin Liu [170511 13:47]: > On Thu, May 11, 2017 at 01:23:06PM -0700, Tony Lindgren wrote: > > > > Maybe try something like below, compile tested only. I don't > > think I have any USB modem here to test with. > > The patch below doesn't help. In device detach by the time > dsps_check_status() i

[PATCH v7 04/23] lib: Add crc4 module

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Add a little helper for crc4 calculations. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic

[PATCH v7 02/23] drivers/fsi: Add slave definition

2017-05-11 Thread Christopher Bostic
From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic Signed-off-by: Joel Stanley --- drivers/fsi/fsi-core.c | 10 ++ 1 file cha

Re: setting brightness as privileged operation?

2017-05-11 Thread Pavel Machek
On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > Hi, > I have just learned that my Xfce Power Manager cannot manipulate > brightness because I do not have policykit installed on my computer. > There is a reason for that (yeah it depends on systemd which I prefer > not have). > > While this is cle

Re: Re: [Intel-gfx] GPU hang with kernel 4.10rc3

2017-05-11 Thread Pavel Machek
On Mon 2017-01-23 10:39:27, Juergen Gross wrote: > On 13/01/17 15:41, Juergen Gross wrote: > > On 12/01/17 10:21, Chris Wilson wrote: > >> On Thu, Jan 12, 2017 at 07:03:25AM +0100, Juergen Gross wrote: > >>> On 11/01/17 18:08, Chris Wilson wrote: > On Wed, Jan 11, 2017 at 05:33:34PM +0100, Jue

Re: [PATCH 4.9 000/103] 4.9.28-stable review

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 04:11:29PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.28 release. > There are 103 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-11 Thread Aleksey Makarov
On 05/11/2017 11:41 AM, Sergey Senozhatsky wrote: On (05/11/17 17:24), Sergey Senozhatsky wrote: On (05/09/17 10:29), Sabrina Dubroca wrote: [..] That's caused a change of behavior in my qemu setup, with this cmdline root=/dev/sda1 console=ttyS1 console=ttyS0 Before, the kernel logs ap

Re: [PATCH 3.18 00/39] 3.18.53-stable review

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 03:02:35PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.53 release. > There are 39 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-11 Thread Aleksey Makarov
On 05/11/2017 02:32 PM, Sergey Senozhatsky wrote: On (05/11/17 17:41), Sergey Senozhatsky wrote: [..] Alexey, can we have preferred console at offset 0 (not at console_cmdline_cnt - 1) and restore the previous register_console() iteration order? btw, what if someone has configured the system

Re: [PATCH 4.4 16/60] x86/ioapic: Restore IO-APIC irq_chip retrigger callback

2017-05-11 Thread Thomas Gleixner
On Thu, 11 May 2017, Ben Hutchings wrote: > On Thu, 2017-05-11 at 16:12 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Ruslan Ruslichenko > > > > commit a9b4f08770b415f30f2fb0f8329a370c8f

Re: mtd:nor: unlock enhancement for cmdset0002

2017-05-11 Thread Honza Petrouš
Sorry for self-answering, but I forgot to add mtd maintainers and mtd-mailinglist. /Honza 2017-05-11 12:11 GMT+02:00 Honza Petrouš : > Hi, > > I'm not so much experienced in MTD area, so please correct me, if I'm wrong. > > NOR flashes supported by cmdset0002 (AMD & Fujitsu Standard Vendor Comman

Re: [PATCH] staging: greybus: power_supply: replace kzalloc by kcalloc

2017-05-11 Thread Rui Miguel Silva
Hi JB, Great! thanks for the patch, On Thu, May 11, 2017 at 10:58:56PM +0200, JB Van Puyvelde wrote: According to checkpatch.pl, kcalloc should be preferred to kzalloc with multiply. Signed-off-by: JB Van Puyvelde Reviewed-by: Rui Miguel Silva Cheers, Rui --- drivers/staging/greybus/powe

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-05-11 Thread Pavel Machek
On Fri 2017-04-21 14:08:04, Ville Syrjälä wrote: > On Fri, Apr 21, 2017 at 11:50:18AM +0200, Gerd Hoffmann wrote: > > On Fr, 2017-04-21 at 12:25 +0300, Ville Syrjälä wrote: > > > On Fri, Apr 21, 2017 at 09:58:24AM +0200, Gerd Hoffmann wrote: > > > > While working on graphics support for virtual mac

Re: [PATCH v4 2/2] x86/refcount: Implement fast refcount overflow protection

2017-05-11 Thread Josh Poimboeuf
On Tue, May 09, 2017 at 12:01:23PM -0700, Kees Cook wrote: > +#define _REFCOUNT_EXCEPTION \ > + ".pushsection .text.unlikely\n" \ > + "111:\tmovl $0x7fff, %[counter]\n" \ > + "112:\t" ASM_UD0 "\n" \ > +

Re: [PATCH 3.18 00/39] 3.18.53-stable review

2017-05-11 Thread Matthijs van Duin
On Thu, May 11, 2017 at 02:16:07PM -0700, Guenter Roeck wrote: > arch/arm/mach-omap2/omap-headsmp.S:60: Error: bad instruction `badr > r0,hyp_boot' > > I see "badr" used in later kernels, but not in v3.18. Does this possibly > require some secondary patches ? It was introduced in kernel 4.2 by

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in zap_pid_ns_processes(). When this happens, I can

Re: [PATCH v3 4/4] hwmon: (adt7475) add high frequency support

2017-05-11 Thread Chris Packham
On 11/05/17 15:45, Chris Packham wrote: > Systems using 4-wire fans usually require high frequency (22.5kHz) > output on the pwm. Add 22500 as a valid option in the pwmfreq_table. In > high frequency mode the low-order bit are ignored so they can safely be > set to 0. > > Signed-off-by: Chris Packh

[net-dsa-mv88e6xxx] question about potential use of uninitialized variable

2017-05-11 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1398130 I ran into the following piece of code at drivers/net/dsa/mv88e6xxx/chip.c:849: 849static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, 850struct mv88e6xxx_hw_stat *s, 8

[PATCH v4] backlight: report error on failure

2017-05-11 Thread Sudip Mukherjee
It is possible to update the backlight power and the brightness using the sysfs and on writing it either returns the count or if the callback function does not exist then returns the error code 'ENXIO'. We have a situation where the userspace client is writing to the sysfs to update the power and

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-11 Thread Tony Lindgren
* Nikita Yushchenko [170511 13:05]: > When pinctrl device registers, it automatically claims hogs, that is, > maps that pinctrl device serves for itself. > > It is possible that in addition to SoC's pinctrl device, other pinctrl > devices get registered. E.g. some gpio expander devies are registe

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> > Hi all, >> >> > >> >> > the test program attached below almo

Re: [PATCH 3.18 00/39] 3.18.53-stable review

2017-05-11 Thread Tony Lindgren
* Matthijs van Duin [170511 14:34]: > On Thu, May 11, 2017 at 02:16:07PM -0700, Guenter Roeck wrote: > > arch/arm/mach-omap2/omap-headsmp.S:60: Error: bad instruction `badr > > r0,hyp_boot' > > > > I see "badr" used in later kernels, but not in v3.18. Does this possibly > > require some secondar

[RFC PATCH] PCI: disable MSI/MSI-X before resetting

2017-05-11 Thread Brian Norris
Despite the claims in the associated comment block, it seems that clearing the command register is not enough to guarantee that no MSI interrupts get triggered during Function Level Reset. Through code instrumentation, I'm able to clearly trace cases like this: (0) reset a device: echo 1 >

Re: [PATCH v5 17/17] net: qualcomm: add QCA7000 UART driver

2017-05-11 Thread Lino Sanfilippo
Hi, On 10.05.2017 10:53, Stefan Wahren wrote: > +static int qcauart_netdev_init(struct net_device *dev) > +{ > + struct qcauart *qca = netdev_priv(dev); > + size_t len; > + > + /* Finish setting up the device info. */ > + dev->mtu = QCAFRM_MAX_MTU; > + dev->type = ARPHRD_ETHER

Re: [RFC PATCH v1 00/30] fs: inode->i_version rework and optimization

2017-05-11 Thread NeilBrown
On Thu, May 11 2017, J. Bruce Fields wrote: > On Wed, Apr 05, 2017 at 02:14:09PM -0400, J. Bruce Fields wrote: >> On Wed, Apr 05, 2017 at 10:05:51AM +0200, Jan Kara wrote: >> > 1) Keep i_version as is, make clients also check for i_ctime. >> >> That would be a protocol revision, which we'd defini

[PATCH] scsi: libfc: fix incorrect variable assingment

2017-05-11 Thread Gustavo A. R. Silva
Previous assignment was causing the use of the uninitialized variable _explan_ inside fc_seq_ls_rjt() function, which in this particular case is being called by fc_seq_els_rsp_send(). Addresses-Coverity-ID: 1398125 Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/libfc/fc_rport.c | 2 +- 1 fi

Re: [PATCH v3 3/3] drivers:power:twl4030-charger: remove nonstandard max_current sysfs attribute

2017-05-11 Thread Pavel Machek
On Fri 2017-04-14 20:25:57, H. Nikolaus Schaller wrote: > Signed-off-by: H. Nikolaus Schaller You should explain how to obtain equivalent functionality without that attribute. Pavel > --- > drivers/power/supply/twl4030_cha

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached below almost always results in one of the ch

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-11 Thread Thomas Garnier
On Tue, May 9, 2017 at 7:29 AM, Thomas Garnier wrote: > > On Tue, May 9, 2017 at 4:10 AM, Greg KH wrote: > > On Tue, May 09, 2017 at 08:56:19AM +0200, Ingo Molnar wrote: > >> > >> * Kees Cook wrote: > >> > >> > > There's the option of using GCC plugins now that the infrastructure was > >> > > up

handle_bad_irq and locking

2017-05-11 Thread Gregory Fong
Hi Thomas, I noticed that when you changed arm irq handling to use the generic implementation back in 2006 that you changed do_bad_IRQ() to the following: +#define do_bad_IRQ(irq,desc,regs) \ +do { \ + spin_lock(&desc->l

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> > Hi all, >> >> > >> >> > the test program attached below almo

[PATCH] drm/radeon: Unbreak HPD handling for r600+

2017-05-11 Thread Lyude
We end up reading the interrupt register for HPD5, and then writing it to HPD6 which on systems without anything using HPD5 results in permanently disabling hotplug on one of the display outputs after the first time we acknowledge a hotplug interrupt from the GPU. This code is really bad. But for

linux-next: error when fetching the target-bva tree

2017-05-11 Thread Stephen Rothwell
Hi Bart, Fetching the tagret-bva tree (git://git.kernel.org/pub/scm/linux/kernel/git/bvanassche/linux.git#for-next) today produces this error: fatal: Couldn't find remote ref refs/heads/for-next -- Cheers, Stephen Rothwell

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-11 Thread Linus Torvalds
On Thu, May 11, 2017 at 4:17 PM, Thomas Garnier wrote: > > Ingo: Do you want the change as-is? Would you like it to be optional? > What do you think? I'm not ingo, but I don't like that patch. It's in the wrong place - that system call return code is too timing-critical to add address limit check

Re: [PATCH v2] sound: Disable the build of OSS drivers

2017-05-11 Thread Randy Dunlap
On 05/11/17 13:58, Takashi Iwai wrote: > OSS drivers are left as badly unmaintained, and now we're facing a > problem to clean up the hackish set_fs() usage in their codes. Since > most of drivers have been covered by ALSA, and the others are dead old > and inactive, let's leave them RIP. > > Thi

[PATCH] fs: cifs: transport: Use time_after for time comparison

2017-05-11 Thread Karim Eshapa
Use time_after kernel macro for time comparison that has safety check. Signed-off-by: Karim Eshapa --- fs/cifs/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 4d64b5b..a7f5168 100644 --- a/fs/cifs/transport.c +++ b/f

[PATCH 4/4] drm/panel: Add the Raspberry Pi 7" touchscreen's panel.

2017-05-11 Thread Eric Anholt
The timings are those that the firmware defines as the baseline, which will be modified by the bridge/host as necessary to get the clocking to work. Signed-off-by: Eric Anholt --- drivers/gpu/drm/panel/panel-simple.c | 30 ++ 1 file changed, 30 insertions(+) diff --g

[PATCH 3/4] drm/bridge: Add support for the Raspberry Pi 7" Touchscreen.

2017-05-11 Thread Eric Anholt
This driver communicates with the Atmel microcontroller for sequencing the poweron of the TC358762 DSI-DPI bridge and controlling the backlight PWM. The following lines are required in config.txt, to keep the firmware from trying to bash our I2C lines and steal the DSI interrupts: disable_tou

[PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-11 Thread Eric Anholt
The Raspberry Pi 7" Touchscreen is a DPI touchscreen panel with DSI->DPI bridge and touchscreen controller integrated, that connects to the Raspberry Pi through its 15-pin "DSI" connector (some lines are DSI, some lines are I2C). This device is represented in the DT as three nodes (DSI device, I2C

[PATCH 1/4] drm/vc4: Adjust modes in DSI to work around the integer PLL divider.

2017-05-11 Thread Eric Anholt
BCM2835's PLLD_DSI1 divider doesn't give us many choices for our pixel clocks, so to support panels on the Raspberry Pi we need to set a higher pixel clock rate than requested and adjust the mode we program to extend out the HFP so that the refresh rate matches. Signed-off-by: Eric Anholt --- dr

[PATCH 0/4] Raspberry Pi Touchscreen bridge/panel drivers

2017-05-11 Thread Eric Anholt
Here's the rewrite of the Raspberry Pi display support to split out a bridge driver representing the toshiba+atmel pair. It depends on the panel-bridge layer I've submitted. The RPi DSI stack isn't completely working yet -- I've got some flickery pixels on the display where it seems some color va

Re: [PATCH v9 7/9] coresight: add support for CPU debug module

2017-05-11 Thread Leo Yan
On Thu, May 11, 2017 at 11:12:32AM -0600, Mathieu Poirier wrote: [...] > > +static int debug_probe(struct amba_device *adev, const struct amba_id *id) > > +{ > > + void __iomem *base; > > + struct device *dev = &adev->dev; > > + struct debug_drvdata *drvdata; > > + struct resource *res =

Re: [PATCH v6 3/5] test: add new driver_data load tester

2017-05-11 Thread AKASHI Takahiro
On Thu, May 11, 2017 at 08:26:29PM +0200, Luis R. Rodriguez wrote: > On Thu, May 11, 2017 at 07:46:27PM +0900, AKASHI Takahiro wrote: > > On Fri, Apr 28, 2017 at 03:45:35AM +0200, Luis R. Rodriguez wrote: > > > > > diff --git a/tools/testing/selftests/firmware/driver_data.sh > > > > > b/tools/test

Re: [PATCH v6 3/5] test: add new driver_data load tester

2017-05-11 Thread AKASHI Takahiro
On Thu, May 11, 2017 at 11:32:30AM -0700, Luis R. Rodriguez wrote: > On Thu, May 11, 2017 at 11:26 AM, Luis R. Rodriguez wrote: > > > > It would seems to make sense to me to only need to verify files when read > > for the first time, once its cache I don't see why we would re-verify them ? > > To

Re: [tip:smp/hotplug] trace/perf: Cure hotplug lock ordering issues

2017-05-11 Thread Steven Rostedt
On Sun, 23 Apr 2017 04:30:01 -0700 tip-bot for Thomas Gleixner wrote: > Commit-ID: 24db7a671bd5eea76b17138b976eb9a4072f1b7a > Gitweb: http://git.kernel.org/tip/24db7a671bd5eea76b17138b976eb9a4072f1b7a > Author: Thomas Gleixner > AuthorDate: Sun, 23 Apr 2017 12:17:13 +0200 > Committer:

[RESEND] bcache: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- drivers/md/bcache/closure.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/md/bcache/closure.c b/drivers/md/bcache/closure.c index 864e673..18

Re: [PATCH v2] ARM: dts: imx6sx-sdb: Remove OPP override

2017-05-11 Thread Shawn Guo
On Fri, May 05, 2017 at 02:00:17PM +0300, Leonard Crestez wrote: > The board file for imx6sx-sdb overrides cpufreq operating points to use > higher voltages. This is done because the board has a shared rail for > VDD_ARM_IN and VDD_SOC_IN and when using LDO bypass the shared voltage > needs to be a

[RESEND PATCH] bcache: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- drivers/md/bcache/closure.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/md/bcache/closure.c b/drivers/md/bcache/closure.c index 864e673..18

[RESEND PATCH] llist: Provide a safe version for llist_for_each

2017-05-11 Thread Byungchul Park
Sometimes we have to dereference next field of llist node before entering loop becasue the node might be deleted or the next field might be modified within the loop. So this adds the safe version of llist_for_each, that is, llist_for_each_safe. Signed-off-by: Byungchul Park Reviewed-by: "Huang, Y

[RESEND PATCH] fput: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park Reviewed-by: Oleg Nesterov --- fs/file_table.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/file_table.c b/fs/file_table.c index 6d982b5..3209da2 100644 -

[RESEND PATCH] sched: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- kernel/sched/core.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d01f9d0..8938125 100644 --- a/kernel/

[RESEND PATCH] vhost/scsi: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park Acked-by: Nicholas Bellinger --- drivers/vhost/scsi.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 253310c..

[RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- kernel/irq_work.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/irq_work.c b/kernel/irq_work.c index bcf107c..e2ebe8c 100644 --- a/kernel/irq_work.c +++ b/k

[RESEND PATCH] namespace.c: Don't reinvent the wheel but use existing llist API

2017-05-11 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- fs/namespace.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index b5b1259..5cb2229 100644 --- a/fs/namespace.c +++ b/fs/na

Re: [PATCH] Input: elantech - force a module ignore ABS mode

2017-05-11 Thread Dmitry Torokhov
On Mon, Dec 12, 2016 at 03:11:03PM +0800, KT Liao wrote: > One Elan sample which sample version is 0x74 and hw_version is 0x04 has a bug > in abs mode, so let it run in default mode > Signed-off-by: KT Liao Applied, thank you. > --- > drivers/input/mouse/elantech.c | 7 +++ > 1 file change

Re: [PATCH] Input: elan_i2c - Add new ic and modify some functions for new IC infomation Signed-off-by: KT Liao

2017-05-11 Thread Dmitry Torokhov
On Tue, Nov 22, 2016 at 02:43:26PM +0800, KT Liao wrote: Applied, thank you. Sorry for the delay. > --- > drivers/input/mouse/elan_i2c.h | 6 ++- > drivers/input/mouse/elan_i2c_core.c | 40 +-- > drivers/input/mouse/elan_i2c_i2c.c | 74 > +++

[RESEND PATCH v3] sched/deadline: Remove unnecessary condition in push_dl_task()

2017-05-11 Thread Byungchul Park
pick_next_pushable_dl_task(rq) has BUG_ON(rq->cpu != task_cpu(task)) when it returns a task other than NULL, which means that task_cpu(task) must be rq->cpu. So if task == next_task, then task_cpu(next_task) must be rq->cpu as well. Remove the redundant condition and make code simpler. By this pat

<    4   5   6   7   8   9   10   11   >