Re: [PATCH 2/9] timers: provide a "modern" variant of timers

2017-05-21 Thread Christoph Hellwig
On Thu, May 18, 2017 at 10:57:31AM +0200, Arnd Bergmann wrote: > How expensive would it be to add another field to timer_list and > just have both pointers? That would add 4/8 bytes to every structure containing a timer, so I'd rather avoid it if possible. But one option might be to inflict this

Re: [PATCH 2/2] zram: do not count duplicated pages as compressed

2017-05-21 Thread Christoph Hellwig
On Wed, May 17, 2017 at 05:32:12PM +0900, Minchan Kim wrote: > Is block device(esp, zram which is compressed ram block device) okay to > return garbage when ongoing overwrite IO fails? > > O_DIRECT write 4 block "aaa.." -> success > read 4 block "aaa.." -> success > O_DIRECT write 4 block "bbb.."

Re: [PATCH] ALSA: sound/isa: constify snd_kcontrol_new structures

2017-05-21 Thread Takashi Iwai
On Wed, 17 May 2017 14:33:45 +0200, Bhumika Goyal wrote: > > On Wed, May 17, 2017 at 5:50 PM, Takashi Iwai wrote: > > On Wed, 17 May 2017 13:38:56 +0200, > > Bhumika Goyal wrote: > >> > >> Declare snd_kcontrol_new structures as const as they are only passed an > >> argument to the function snd_ct

Re: [PATCH 2/2] zram: do not count duplicated pages as compressed

2017-05-21 Thread Minchan Kim
On Sun, May 21, 2017 at 12:04:27AM -0700, Christoph Hellwig wrote: > On Wed, May 17, 2017 at 05:32:12PM +0900, Minchan Kim wrote: > > Is block device(esp, zram which is compressed ram block device) okay to > > return garbage when ongoing overwrite IO fails? > > > > O_DIRECT write 4 block "aaa.." -

[PATCH] drm/i915/gvt: remove redundant -Wall

2017-05-21 Thread Nick Desaulniers
This flag is already set in the top level Makefile of the kernel. Also, by having set CONFIG_DRM_I915_GVT, thereby appending -Wall to ccflags, you undo all the -Wno-* cflags previously set in the Make variable KBUILD_CFLAGS. For example: cc foo.c -Wall -Wno-format -Wall resets -Wformat. Signed

Re: [PATCH v5 17/32] x86/mm: Add support to access boot related data in the clear

2017-05-21 Thread Borislav Petkov
On Fri, May 19, 2017 at 03:50:32PM -0500, Tom Lendacky wrote: > The "worker" function would be doing the loop through the setup data, > but since the setup data is mapped inside the loop I can't do the __init > calling the non-init function and still hope to consolidate the code. > Maybe I'm missin

Re: [PATCH] input: move gpio mouse to managed api

2017-05-21 Thread Bram Vlerick
Hi Dmitry, I've updated the patch with your comments, unregistering first before freeing the gpios. In regards of your comment for the gpio-keys-polled update, I've just started with kernel dev and thought moving old drivers to the new managed api was a good start. So I don't really know how to s

Re: [lkp-robot] [waitid()] 75f64d68f9: Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode=

2017-05-21 Thread Al Viro
On Fri, May 19, 2017 at 02:08:20PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 75f64d68f9816a1c244b8685f056389b24d97e98 ("waitid(): switch copyout > of siginfo to unsafe_put_user()") > url: > https://github.com/0day-ci/linux/commits/Al-Viro/move-compat-

Re: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 07:35:21AM +0200, Lukas Wunner wrote: > On Sun, May 21, 2017 at 05:29:47AM +, Levy, Amir (Jer) wrote: > > On Sun, May 21 2017, 07:47 AM, Lukas Wunner wrote: > > > On Thu, May 18, 2017 at 05:39:08PM +0300, Mika Westerberg wrote: > > > > + > > > > + default: > > > >

Re: [patch v2 1/6] tty: export tty_open_by_driver

2017-05-21 Thread Greg Kroah-Hartman
On Sat, May 20, 2017 at 11:09:02PM -0700, Christoph Hellwig wrote: > On Mon, May 15, 2017 at 06:45:32PM +0100, Okash Khawaja wrote: > > This exports tty_open_by_driver so that it can be called from other places > > inside the kernel. The checks for null file pointer are based on Alan Cox's > > pa

Re: [PATCH] goldfish_pipe: use GFP_ATOMIC under spin lock

2017-05-21 Thread Michal Hocko
On Sun 21-05-17 00:45:46, Wei Yongjun wrote: > From: Wei Yongjun > > The function get_free_pipe_id_locked() is called from > goldfish_pipe_open() with a lock is held, so we should > use GFP_ATOMIC instead of GFP_KERNEL. Why is GFP_NOWAIT insufficient? Does this path needs an access to memory res

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 07:31:14AM +0200, Lukas Wunner wrote: > On Fri, May 19, 2017 at 01:28:36PM +0300, Mika Westerberg wrote: > > On Fri, May 19, 2017 at 12:07:10PM +0200, Lukas Wunner wrote: > > > Apple uses 0x30 to store a > > > serial number. Is this attribute number assigned by Intel to App

Re: [RFC] KVM: SVM: do not drop VMCB CPL to 0 if SS is not present

2017-05-21 Thread Roman Penyaev
On Sun, May 21, 2017 at 5:31 AM, Andy Lutomirski wrote: > On 05/19/2017 09:14 AM, Roman Penyaev wrote: >> >> Hi folks, >> >> After experiencing guest double faults (sometimes triple faults) on >> 3.16 guest kernels with the following common pattern: >> [cut] >> >> Further tracking of VMCB states

Re: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 10:40:41AM +0300, Mika Westerberg wrote: > On Sun, May 21, 2017 at 07:35:21AM +0200, Lukas Wunner wrote: > > On Sun, May 21, 2017 at 05:29:47AM +, Levy, Amir (Jer) wrote: > > > On Sun, May 21 2017, 07:47 AM, Lukas Wunner wrote: > > > > On Thu, May 18, 2017 at 05:39:08PM

RE: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Levy, Amir (Jer)
On Sun, May 21 2017, 11:00 AM, Mika Westerberg wrote: > On Sun, May 21, 2017 at 10:40:41AM +0300, Mika Westerberg wrote: > > On Sun, May 21, 2017 at 07:35:21AM +0200, Lukas Wunner wrote: > > > On Sun, May 21, 2017 at 05:29:47AM +, Levy, Amir (Jer) wrote: > > > > On Sun, May 21 2017, 07:47 AM, L

Re: [PATCH 00/24] Thunderbolt security levels and NVM firmware upgrade

2017-05-21 Thread mika.westerb...@linux.intel.com
On Sat, May 20, 2017 at 09:15:17AM +, Levy, Amir (Jer) wrote: > > I created a udev rule that will automatically authorize the dock and cable. > > #dell cable > > ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", > > ATTR{vendor}=="0xd4", ATTR{device}=="0xb051", ATTR{authorized}="1

[PATCH 0/3] zswap: Adjustments for three function implementations

2017-05-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 21 May 2017 10:20:03 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in zswap_pool_create() Improve a size determination in zswap_frontswap_init

Re: [PATCH v3 3/3] arm/arm64: signal SIBGUS and inject SEA Error

2017-05-21 Thread gengdongjiu
Hi James, sorry for the late response due to recently verify and debug the RAS solution. 2017-05-13 1:24 GMT+08:00, James Morse : > Hi gengdongjiu, > > On 05/05/17 13:31, gengdongjiu wrote: >> when guest OS happen an SEA, My current solution is shown below: >> >> (1) host EL3 firmware firstly

[PATCH 1/3] zswap: Delete an error message for a failed memory allocation in zswap_pool_create()

2017-05-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 May 2017 22:33:21 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[PATCH 2/3] zswap: Improve a size determination in zswap_frontswap_init()

2017-05-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 May 2017 22:44:03 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

[PATCH 3/3] zswap: Delete an error message for a failed memory allocation in zswap_dstmem_prepare()

2017-05-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 21 May 2017 09:29:25 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: [PATCH v3 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-21 Thread Christoph Hellwig
> + * > + * pci_irq_vector() below is able to handle entry differently > + * depending on MSI vs MSI-x case > + * >*/ One more instance of this comment left :) > pcie_capability_read_word(dev, PCI_EXP_FLAGS, ®16); >

Re: [PATCH 3/3] zswap: Delete an error message for a failed memory allocation in zswap_dstmem_prepare()

2017-05-21 Thread Wolfram Sang
Markus, can you please stop CCing me on every of those patches? > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Link: > http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings

Re: [PATCH 4.4-only] openvswitch: clear sender cpu before forwarding packets

2017-05-21 Thread kbuild test robot
Hi Anoob, [auto build test ERROR on v4.9-rc8] [also build test ERROR on next-20170519] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Anoob-Soman/openvswitch-clear-sender-cpu-before-forwarding-p

Re: [PATCH] rcu: mark debug_lockdep_rcu_enabled() as pure

2017-05-21 Thread Konstantin Khlebnikov
On 20.05.2017 19:42, Paul E. McKenney wrote: On Fri, May 19, 2017 at 10:03:59AM +0300, Konstantin Khlebnikov wrote: This allows to get rid of unneeded invocations. Function debug_lockdep_rcu_enabled() becomes really hot if several debug options are enabled together with CONFIG_PROVE_RCU. Hotte

[PATCH] sysfs: remove signedness from sysfs_get_dirent

2017-05-21 Thread Nick Desaulniers
sysfs_get_dirent is usually invoked with a string literal, which have the type char[]. While the toplevel Makefile disables -Wpointer-sign, other Makefiles like arch/x86/boot/compressed/Makefile redefine KBUILD_CFLAGS. Fixes the warning: In file included from arch/x86/boot/compressed/kaslr.c:17

is alpha jensen support dead?

2017-05-21 Thread Christoph Hellwig
Hi all, it seems like the Alpha Jense build (the only one using pci-noop.c) and thus being a different build than all the later PCI capable system has been broken since at least: commit 6aca0503847f6329460b15b3ab2b0e30bb752793 Author: Christian Borntraeger Date: Tue Feb 2 21:46:33 2016 -0800

[PATCH] PCI: fix whitespace in printk() to align log entries

2017-05-21 Thread Vincent Legoll
Remove the space character between "PCI" and the colon. This was printed before the patch: PCI : PCI BIOS area is rw and x. Use pci=nobios if you want it NX. Whereas other PCI printks are like that: $ dmesg | grep 'PCI:' [0.649178] PCI: MMCONFIG for domain [bus 00-7f] at [mem 0xf0

Re: [PATCH] kconfig: Check for libncurses before menuconfig

2017-05-21 Thread Masahiro Yamada
Hi Borislav, 2017-05-21 5:33 GMT+09:00 Borislav Petkov : > On Sun, May 21, 2017 at 04:38:35AM +0900, Masahiro Yamada wrote: >> Strange, I could not reproduce this. > > Remove libncurses5-dev or whatever it is called on your system and do: > > $ make menuconfig > HOSTCC scripts/kconfig/mconf.o

Re: [PATCH v3 3/3] arm/arm64: signal SIBGUS and inject SEA Error

2017-05-21 Thread gengdongjiu
2017-05-13 1:25 GMT+08:00, James Morse : > Hi gengdongjiu, > > On 10/05/17 09:44, gengdongjiu wrote: >> On 2017/5/9 1:28, James Morse wrote: > (hwpoison for KVM is a corner case as Qemu's memory effectively has two > users, > Qemu and KVM. This isn't the example of how user-space gets >

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-21 Thread Lukas Wunner
On Sun, May 21, 2017 at 10:48:19AM +0300, Mika Westerberg wrote: > On Sun, May 21, 2017 at 07:31:14AM +0200, Lukas Wunner wrote: > > On Fri, May 19, 2017 at 01:28:36PM +0300, Mika Westerberg wrote: > > > On Fri, May 19, 2017 at 12:07:10PM +0200, Lukas Wunner wrote: > > > > If there can be many attr

Re: zswap: Delete an error message for a failed memory allocation in zswap_dstmem_prepare()

2017-05-21 Thread SF Markus Elfring
> Markus, can you please stop CCing me on every of those patches? Yes, of course. >> Link: >> http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Did I interpret any information from your presentation slides in an inappropriate way? > And why do you

[PATCH v2] kconfig: Check for libncurses before menuconfig

2017-05-21 Thread Borislav Petkov
On Sun, May 21, 2017 at 06:15:53PM +0900, Masahiro Yamada wrote: > Could you change line 199 > > $(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog > > to > > $(addprefix $(obj)/, mconf.o $(lxdialog)): $(obj)/dochecklxdialog > > and send v2, please? Here it is: --- From: Borislav Pe

Re: [PATCH v6] mfd: Add Cherry Trail Whiskey Cove PMIC driver

2017-05-21 Thread Hans de Goede
Hi, On 20-05-17 21:26, Paul Gortmaker wrote: On Sat, May 20, 2017 at 3:21 PM, Paul Gortmaker wrote: On Mon, May 15, 2017 at 2:20 PM, Hans de Goede wrote: Hi, This is actually v7, with the following changes: Changes in v7: -Add explanation why this is a bool and why it selects i2c-designwar

RE: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Bernat, Yehezkel
> -Original Message- > From: Levy, Amir (Jer) > Sent: Sunday, May 21, 2017 11:07 > To: Mika Westerberg ; Lukas Wunner > > Cc: Greg Kroah-Hartman ; Andreas Noever > ; Jamet, Michael ; > Bernat, Yehezkel ; Andy Lutomirski > ; mario.limoncie...@dell.com; > jared.doming...@dell.com; Andy She

Re: zswap: Delete an error message for a failed memory allocation in zswap_dstmem_prepare()

2017-05-21 Thread Wolfram Sang
Markus, > > Markus, can you please stop CCing me on every of those patches? > > Yes, of course. Thanks! > >> Link: > >> http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf > > Did I interpret any information from your presentation slides in an > inap

Re: Using best practices for big software change possibilities

2017-05-21 Thread SF Markus Elfring
> Have you read my LWN article "Best practices for a big patch series"? > > https://lwn.net/Articles/585782/ Yes. >> This can also happen as a side effect if such a source code search pattern >> will point hundreds of places out for further software development >> considerations. >> How would

[GIT pull] irq fixes for 4.12

2017-05-21 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus A set of small fixes for the irq subsystem: - Cure a data ordering problem with chained interrupts - Three small fixlets for the mbigen irq chi

[GIT pull] scheduler fix for 4.12

2017-05-21 Thread Thomas Gleixner
Linus, please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus A single scheduler fix: Prevent idle task from ever being preempted. That makes sure that synchronize_rcu_tasks() which is ignoring idle t

Re: Using best practices for big software change possibilities

2017-05-21 Thread Wolfram Sang
> How do you think about to resolve them by additional means besides mail > exchange? That can work. E.g. meeting at conferences often solved mail communication problems. For now, I still wonder why you were unsure about grouping the changes into one patch? Maybe there is something to be learne

[PATCH v5 2/3] ARM: dts: twl4030: Add missing madc reference for bci subnode

2017-05-21 Thread H. Nikolaus Schaller
From: Marek Belisko The twl4030_charger driver expects an iio channel to detect the presence of an AC charger by looking at VAC (madc channel 11). This definition is missing in the device tree. Signed-off-by: Marek Belisko Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/twl4030.dtsi |

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

2017-05-21 Thread H. Nikolaus Schaller
Since we now support the standard 'input_current_limit' property by commit 3fb319c2cdcd ("power: supply: twl4030-charger: add writable INPUT_CURRENT_LIMIT property") we can now remove the nonstandard 'max_current' sysfs attribute. See Documentation/power/power_supply_class.txt line 125 Both ar

[PATCH v5 0/3] More fixes for twl4030 charger

2017-05-21 Thread H. Nikolaus Schaller
Changes V5: * reworked max_current removal patch (comments by Sebastian Reichel) * resubmit missing madc connection for AC power detection * resubmit patch for irq allocation and -EPROBE_DEFER * rebased on 4.12-rc1 Changes V4: * resent commit (original one did contain material not upstream) 2017-

[PATCH v5 3/3] drivers:power:twl4030-charger: add deferred probing for phy and iio

2017-05-21 Thread H. Nikolaus Schaller
This fixes an issue if both this twl4030_charger driver and phy-twl4030-usb are compiled as modules and loaded in random order. It has been observed on GTA04 and OpenPandora devices that in worst case the boot process hangs and in best case the AC detection fails with a warning. Therefore we add d

[RFC 1/3] DTS: gta04: add serdev nodes for w2sg00x4, w2cbw etc.

2017-05-21 Thread H. Nikolaus Schaller
Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 430b438e0ee9..45f0c109960f 100644 --- a/arch/arm/boot/dts/omap3-gta04.d

[RFC 3/3] misc: Add w2cbw003 (wifi/bluetooth) power control driver

2017-05-21 Thread H. Nikolaus Schaller
Add driver for Wi2Wi W2CBW003 WiFi and Bluetooth module where the Bluetooth interface is connected through uart. Uses the new serdev API to glue with tty and turn on/off the module if the tty port (/dev/ttyBTn) is opened. Note that this is only for the Bluetooth side. The WLAN (libertas) sdio dri

[RFC 0/3] misc: new serdev based drivers for w2sg00x4 GPS module and w2cbw003 wifi/bluetooth

2017-05-21 Thread H. Nikolaus Schaller
Since our proposed API was not acceptable and the new serdev API has arrived in 4.11 kernels, we finally took the challenge to update the w2sg and w2cbw drivers to use the serdev API. The approach is to write a "man in the middle" driver which is on one side a serdev client which directly contr

Re: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 08:07:08AM +, Levy, Amir (Jer) wrote: > On Sun, May 21 2017, 11:00 AM, Mika Westerberg wrote: > > On Sun, May 21, 2017 at 10:40:41AM +0300, Mika Westerberg wrote: > > > On Sun, May 21, 2017 at 07:35:21AM +0200, Lukas Wunner wrote: > > > > On Sun, May 21, 2017 at 05:29:47

[RFC 2/3] misc: Add w2sg0004 (gps receiver) power control driver

2017-05-21 Thread H. Nikolaus Schaller
Add driver for Wi2Wi W2SG0004/84 GPS module connected through uart. Use serdev API hooks to monitor and forward the UART traffic to /dev/BTn and turn on/off the module. It also detects if the module is turned on (sends data) but should be off, e.g. if it was already turned on during boot or powe

Re: Using best practices for big software change possibilities

2017-05-21 Thread SF Markus Elfring
>> How do you think about to resolve them by additional means besides mail >> exchange? > > That can work. I am curious to find out which other communication means could really help here. > E.g. meeting at conferences often solved mail communication problems. I find my resources too limited a

Re: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 09:55:55AM +, Bernat, Yehezkel wrote: > > > > -Original Message- > > From: Levy, Amir (Jer) > > Sent: Sunday, May 21, 2017 11:07 > > To: Mika Westerberg ; Lukas Wunner > > > > Cc: Greg Kroah-Hartman ; Andreas Noever > > ; Jamet, Michael ; > > Bernat, Yehezkel

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jonathan Cameron
On 17/05/17 16:28, Jan Kiszka wrote: This is an upstream port of an IIO driver for the TI ADC108S102 and ADC128S102. The former can be found on the Intel Galileo Gen2 and the Siemens SIMATIC IOT2000. For those boards, ACPI-based enumeration is included. Due to the lack of regulators under ACPI,

Re: [RFC 2/3] misc: Add w2sg0004 (gps receiver) power control driver

2017-05-21 Thread H. Nikolaus Schaller
> Am 21.05.2017 um 12:44 schrieb H. Nikolaus Schaller : > > Add driver for Wi2Wi W2SG0004/84 GPS module connected through uart. > > Use serdev API hooks to monitor and forward the UART traffic to /dev/BTn s/BTn/GPSn/ > and turn on/off the module. It also detects if the module is turned on (sen

Re: [PATCH v3] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-21 Thread Jonathan Cameron
On 20/05/17 19:36, Brian Masney wrote: On Sat, May 20, 2017 at 06:55:02PM +0100, Jonathan Cameron wrote: On 19/05/17 10:37, surenderpols...@gmail.com wrote: From: Surender Polsani Fixed the following checkpatch.pl warnings: octal permissions are more preferable than symbolic permissions Repl

[PATCH] KEYS: Delete an error message for a failed memory allocation in get_derived_key()

2017-05-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 21 May 2017 11:23:55 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[tip:x86/urgent] x86/boot: Use CROSS_COMPILE prefix for readelf

2017-05-21 Thread tip-bot for Rob Landley
Commit-ID: 3780578761921f094179c6289072a74b2228c602 Gitweb: http://git.kernel.org/tip/3780578761921f094179c6289072a74b2228c602 Author: Rob Landley AuthorDate: Sat, 20 May 2017 15:03:29 -0500 Committer: Thomas Gleixner CommitDate: Sun, 21 May 2017 13:04:27 +0200 x86/boot: Use CROSS_COMP

[PATCH] LSM: Make security_hook_heads a local variable.

2017-05-21 Thread Tetsuo Handa
A sealable memory allocator patch was proposed at http://lkml.kernel.org/r/20170519103811.2183-1-igor.sto...@huawei.com , and is waiting for a follow-on patch showing how any of the kernel can be changed to use this new subsystem. So, here it is for LSM hooks. The LSM hooks ("struct security_hook_

RE: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Bernat, Yehezkel
> -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: Sunday, May 21, 2017 13:47 > To: Bernat, Yehezkel > Cc: Levy, Amir (Jer) ; Lukas Wunner > ; Greg Kroah-Hartman ; > Andreas Noever ; Jamet, Michael > ; Andy Lutomirski ; > mario.limoncie...@dell.

Re: is alpha jensen support dead?

2017-05-21 Thread Meelis Roos
> Hi all, > > it seems like the Alpha Jense build (the only one using pci-noop.c) > and thus being a different build than all the later PCI capable > system has been broken since at least: > > commit 6aca0503847f6329460b15b3ab2b0e30bb752793 > Author: Christian Borntraeger > Date: Tue Feb 2 21:

Re: [PATCH v2 5/6] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-05-21 Thread Jan Kiszka
On 2017-05-18 19:43, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:59 PM, Jan Kiszka wrote: >> On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the >> rest is required to operate the UART. To allow modeling this case, >> expand the platform device data structure to specify a (

Re: [PATCH v2 1/6] gpio: exar: Fix passing in of parent PCI device

2017-05-21 Thread Jan Kiszka
On 2017-05-18 19:14, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:59 PM, Jan Kiszka wrote: >> This fixes reloading of the GPIO driver for the same platform device >> instance as created by the exar UART driver: First of all, the driver >> sets drvdata to its own value during probing and does

gpio-exar: Why filtering out Commtech devices?

2017-05-21 Thread Jan Kiszka
Hi Sudip, why do we carry if (pcidev->vendor != PCI_VENDOR_ID_EXAR) return -ENODEV; in gpio_exar_probe? This effectively prevents that EXAR_DEVICE(COMMTECH, COMMTECH_4222PCIE, pbn_exar_XR17V35x), EXAR_DEVICE(COMMTECH, COMMTECH_4224PCIE, pbn_exar_XR17V35x)

Re: [PATCH 18/24] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-21 Thread Mika Westerberg
On Sun, May 21, 2017 at 11:18:01AM +, Bernat, Yehezkel wrote: > Nothing that I'm aware of. OK. > Still, I like the idea of having a table-like construct somewhere in > the code to centralize the handling of various controller-specific > info (generation, DMA port, maybe more things in the fut

Re: [PATCH v2 2/3] iio: adc: at91-sama5d2_adc: add hw trigger and buffer support

2017-05-21 Thread Jonathan Cameron
On 17/05/17 12:35, Eugen Hristev wrote: On 17.05.2017 10:47, Peter Rosin wrote: On 2017-05-16 20:03, Jonathan Cameron wrote: As we are only left with one area of questions. +static const struct at91_adc_trigger at91_adc_trigger_list[] = { +{ +.name = "external-rising", +

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jan Kiszka
On 2017-05-21 12:47, Jonathan Cameron wrote: > On 17/05/17 16:28, Jan Kiszka wrote: >> This is an upstream port of an IIO driver for the TI ADC108S102 and >> ADC128S102. The former can be found on the Intel Galileo Gen2 and the >> Siemens SIMATIC IOT2000. For those boards, ACPI-based enumeration is

Re: [PATCH v2] iio: adc: bcm_iproc_adc: swap primary and secondary isr handler's

2017-05-21 Thread Jonathan Cameron
On 16/05/17 07:52, Raveendra Padasalagi wrote: The third argument of devm_request_threaded_irq() is the primary handler. It is called in hardirq context and checks whether the interrupt is relevant to the device. If the primary handler returns IRQ_WAKE_THREAD, the secondary handler (a.k.a. handle

Re: [PATCH -next] drm/vgem: Fix return value check in vgem_init()

2017-05-21 Thread Chris Wilson
On Sun, May 21, 2017 at 01:19:39AM +, Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function platform_device_register_simple() returns > ERR_PTR() and never returns NULL. The NULL test in the return value > check should be replaced with IS_ERR(). > > Fixes: 315f0242aa2b ("

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jonathan Cameron
On 21/05/17 12:59, Jan Kiszka wrote: On 2017-05-21 12:47, Jonathan Cameron wrote: On 17/05/17 16:28, Jan Kiszka wrote: This is an upstream port of an IIO driver for the TI ADC108S102 and ADC128S102. The former can be found on the Intel Galileo Gen2 and the Siemens SIMATIC IOT2000. For those boa

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jonathan Cameron
On 21/05/17 13:17, Jonathan Cameron wrote: On 21/05/17 12:59, Jan Kiszka wrote: On 2017-05-21 12:47, Jonathan Cameron wrote: On 17/05/17 16:28, Jan Kiszka wrote: This is an upstream port of an IIO driver for the TI ADC108S102 and ADC128S102. The former can be found on the Intel Galileo Gen2 an

Re: [PATCH] staging: ccree: add CRYPTO dependency

2017-05-21 Thread Gilad Ben-Yossef
On Fri, May 19, 2017 at 11:04 AM, Arnd Bergmann wrote: > A rare randconfig build error shows up when we have CONFIG_CRYPTO=m > in combination with a built-in CCREE driver: > > crypto/hmac.o: In function `hmac_update': > hmac.c:(.text.hmac_update+0x28): undefined reference to `crypto_shash_update'

Re: [PATCH 2/9] timers: provide a "modern" variant of timers

2017-05-21 Thread Arnd Bergmann
On Sun, May 21, 2017 at 9:00 AM, Christoph Hellwig wrote: > On Thu, May 18, 2017 at 10:57:31AM +0200, Arnd Bergmann wrote: >> How expensive would it be to add another field to timer_list and >> just have both pointers? > > That would add 4/8 bytes to every structure containing a timer, > so I'd ra

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jan Kiszka
On 2017-05-21 14:18, Jonathan Cameron wrote: > On 21/05/17 13:17, Jonathan Cameron wrote: >> On 21/05/17 12:59, Jan Kiszka wrote: >>> On 2017-05-21 12:47, Jonathan Cameron wrote: On 17/05/17 16:28, Jan Kiszka wrote: > This is an upstream port of an IIO driver for the TI ADC108S102 and

[PATCH 00/13] Linksys WRT3200ACM (Rango) support

2017-05-21 Thread Ralph Sennhauser
Hi everyone This series adds support for the latest model in Linksys WRT AC series of routers. The WRT3200ACM was released in October 2016 and the code name is Rango. As it comes with a flash chip twice as big the dts Imre Kaloz has written for OpenWrt isn't based on armada-385-linksys.dtsi to av

[PATCH 02/13] ARM: dts: armada-385-linksys: label nodes

2017-05-21 Thread Ralph Sennhauser
Add labels to nodes used by dependants. Also rename node gpio_keys to gpio-keys to mach the style of the rest of the file as well as the documented example. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 13/13] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-21 Thread Ralph Sennhauser
The Linksys WRT3200ACM (Rango) is the lates Armada-385 based router in the Linksys WRT AC Series which got released in October 2016. The file armada-385-linksys-rango.dts is loosly based off of a DTS authored by Imre Kaloz. As Rango is part of the armada-385-linksys family of boards use the armad

[PATCH 11/13] ARM: dts: armada-385-linksys: fixup button node names

2017-05-21 Thread Ralph Sennhauser
Buttons don't have a reg property; drop pseudo address and fixup names of individual button nodes. Also drop #address-cells and #size-cells properties. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH 03/13] ARM: dts: armada-385-linksys: flatten dependants

2017-05-21 Thread Ralph Sennhauser
Flatten dts of individual boards to match the new style used in armada-385-linksys.dtsi and for the Rango addition. * Caiman - Linksys WRT1200AC v1 & v2 * Cobra - Linksys WRT1900AC v2 * Shelby - Linksys WRT1900ACS v1 & v2 Signed-off-by: Ralph Sennhauser --- Notes: power and sata in &gpio_le

[PATCH 01/13] ARM: dts: armada-385-linksys: flatten dtsi

2017-05-21 Thread Ralph Sennhauser
Since the addition of the spi reference two styles are used. Use references instead of recreating the same structure over and over again. This helps to distinguish which are changes to the underlying nodes and which are new additions and helps helps maintainability in general. Verified the result

[PATCH 04/13] ARM: dts: armada-385-linksys: drop redundant properties in dependants

2017-05-21 Thread Ralph Sennhauser
Drop redundant declaration of #address-cells and #size-cells. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys-caiman.dts | 3 --- arch/arm/boot/dts/armada-385-linksys-cobra.dts | 3 --- arch/arm/boot/dts/armada-385-linksys-shelby.dts | 3 --- 3 files changed, 9 deletion

[PATCH 05/13] ARM: dts: armada-385-linksys: bm pools by label order

2017-05-21 Thread Ralph Sennhauser
Which pools we assing doesn't matter. Use the order which doesen't leave a chance for questions for first time readers. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/arma

[PATCH 06/13] ARM: dts: armada-385-linksys: usb3 label cleanup

2017-05-21 Thread Ralph Sennhauser
Now that we use the reference for the USB3.0 port update the node name and labels for the phy and vbus to match the label used by armada-38x.dtsi. Signed-off-by: Ralph Sennhauser --- Notes: Going by documentation regulator-name is only of informative nature so changing it should be a non i

[PATCH 07/13] ARM: dts: armada-385-linksys: drop leagcy DSA bindings

2017-05-21 Thread Ralph Sennhauser
The new ones work so there is little reason to keep the legacy bindings. Use the rework as the oportunity to drop the legacy node. Signed-off-by: Ralph Sennhauser --- Notes: There is little harm in keeping them but probably no value either, so use the cleanup series to get rid of them. ---

[PATCH 08/13] ARM: dts: armada-385-linksys: use binary unit prefixes

2017-05-21 Thread Ralph Sennhauser
Use IEEE 1541-2002 unit prefixes for sizes. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys

[PATCH 12/13] clk: mvebu: add support for 1866MHz variants

2017-05-21 Thread Ralph Sennhauser
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Noticed by the following warning: [0.00] Selected CPU frequency (16) unsupported Signed-off-by: Ralph Sennhauser --- drivers/clk/mvebu/armada-38x.c | 3 ++- 1 file changed, 2 insertio

[PATCH 10/13] ARM: dts: armada-385-linksys: group pins in pinctrl

2017-05-21 Thread Ralph Sennhauser
A pin group per node is sufficient, further specialisation only serves as documentation which can be a comment just as well. This simplifies configuring pins for nodes in dependants. Also use labels which end up right by the node they are intended for. Signed-off-by: Ralph Sennhauser --- arch/a

[PATCH 09/13] ARM: dts: armada-385-linksys: partition layout is board specific

2017-05-21 Thread Ralph Sennhauser
Move the partition layout to individual boards. The Linksys WRT 3200 ACM (Rango) comes with a 256MiB nand flash chip and different layout. Signed-off-by: Ralph Sennhauser --- Dismissed alternatives: a) Partition layouts as fragments for use with overlay. While the only alternative which mi

Re: [v4 1/1] mm: Adaptive hash table scaling

2017-05-21 Thread Pasha Tatashin
Hi Andi, Thank you for looking at this. I mentioned earlier, I would not want to impose a cap. However, if you think that for example dcache needs a cap, there is already a mechanism for that via high_limit argument, so the client can be changed to provide that cap. However, this particular p

Re: [PATCH V3] acpi: apei: check for pending errors when probing GHES entries

2017-05-21 Thread Borislav Petkov
On Thu, May 18, 2017 at 03:22:42PM -0600, Tyler Baicar wrote: > Check for pending errors when probing GHES entries. It is possible > that a fatal error is already pending at this point, so we should > handle it as soon as the driver is probed. This also avoids a > potential issue if there was an in

Re: [PATCH 02/24] thunderbolt: Do not try to read UID if DROM offset is read as 0

2017-05-21 Thread Andreas Noever
On Thu, May 18, 2017 at 4:38 PM, Mika Westerberg wrote: > At least Falcon Ridge when in host mode does not have any kind of DROM > available and reading DROM offset returns 0 for these. Do not try to > read DROM any further in that case. > > Signed-off-by: Mika Westerberg > Reviewed-by: Yehezkel

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jonathan Cameron
On 21/05/17 13:44, Jan Kiszka wrote: On 2017-05-21 14:18, Jonathan Cameron wrote: On 21/05/17 13:17, Jonathan Cameron wrote: On 21/05/17 12:59, Jan Kiszka wrote: On 2017-05-21 12:47, Jonathan Cameron wrote: On 17/05/17 16:28, Jan Kiszka wrote: This is an upstream port of an IIO driver for th

Re: linux-next 20170519 - semaphores broken

2017-05-21 Thread Manfred Spraul
Hi valdis, On 05/20/2017 10:18 PM, valdis.kletni...@vt.edu wrote: Seeing problems with programs that use semaphores. The one that I'm getting bit by is jackd. strace says: getuid()= 967 semget(0x282929, 0, 000)= 229376 semop(229376, [{0, -1, SEM

Re: [PATCH v6] iio: adc: Add support for TI ADC108S102 and ADC128S102

2017-05-21 Thread Jonathan Cameron
On 21/05/17 15:06, Jonathan Cameron wrote: On 21/05/17 13:44, Jan Kiszka wrote: On 2017-05-21 14:18, Jonathan Cameron wrote: On 21/05/17 13:17, Jonathan Cameron wrote: On 21/05/17 12:59, Jan Kiszka wrote: On 2017-05-21 12:47, Jonathan Cameron wrote: On 17/05/17 16:28, Jan Kiszka wrote: This

Re: [PATCH v2] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-21 Thread Jonathan Cameron
On 18/05/17 07:51, Maxime Ripard wrote: On Thu, May 18, 2017 at 08:36:07AM +0200, Quentin Schulz wrote: For the sake of DT binding stability, this IIO driver is a child of an MFD driver for Allwinner A10, A13 and A31 because there already exists a DT binding for this IP. The MFD driver has a DT

Re: [PATCH v7 01/26] ptrace,x86: Make user_64bit_mode() available to 32-bit builds

2017-05-21 Thread Borislav Petkov
On Fri, May 05, 2017 at 11:16:59AM -0700, Ricardo Neri wrote: > In its current form, user_64bit_mode() can only be used when CONFIG_X86_64 > is selected. This implies that code built with CONFIG_X86_64=n cannot use > it. If a piece of code needs to be built for both CONFIG_X86_64=y and > CONFIG_X86

Re: [PATCH v7 02/26] x86/mm: Relocate page fault error codes to traps.h

2017-05-21 Thread Borislav Petkov
On Fri, May 05, 2017 at 11:17:00AM -0700, Ricardo Neri wrote: > Up to this point, only fault.c used the definitions of the page fault error > codes. Thus, it made sense to keep them within such file. Other portions of > code might be interested in those definitions too. For instance, the User- > Mo

RE: [PATCH v3 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-21 Thread Gabriele Paoloni
Hi Christoph > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: 21 May 2017 09:33 > To: Gabriele Paoloni > Cc: bhelg...@google.com; helg...@kernel.org; Linuxarm; linux- > p...@vger.kernel.org; lu..

[PATCH 00/11 linux-next] super magic values consolidation

2017-05-21 Thread Fabian Frederick
This small patchset reorganizes magic.h and fixes filesystems which defined locally super magic values. Fabian Frederick (11): uapi: reorganize magic.h exofs: use magic.h ceph: use magic.h orangefs: use magic.h ubifs: use magic.h jfs: use magic.h ocfs2: use magic.h fuse: use magic.

[PATCH 02/11 linux-next] exofs: use magic.h

2017-05-21 Thread Fabian Frederick
Filesystems generally use SUPER_MAGIC values from magic.h instead of a local definition. Signed-off-by: Fabian Frederick --- fs/exofs/common.h | 6 +- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/exofs/common.h b/fs/exofs/common

[PATCH 01/11 linux-next] uapi: reorganize magic.h

2017-05-21 Thread Fabian Frederick
-Sort magic.h in alphabetical order as there were no real logic in this file. -Replace all spaces with tabs -Remove excessive comments for reiserfs Signed-off-by: Fabian Frederick --- include/uapi/linux/magic.h | 92 -- 1 file changed, 40 insertions(+)

[PATCH 03/11 linux-next] ceph: use magic.h

2017-05-21 Thread Fabian Frederick
Filesystems generally use SUPER_MAGIC values from magic.h instead of a local definition. Signed-off-by: Fabian Frederick --- fs/ceph/super.h| 4 +--- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ceph/super.h b/fs/ceph/super.h ind

  1   2   3   >