linux-next: Tree for Oct 9th

2017-10-09 Thread Mark Brown
For my birthday I've gone and got myself a linux-next tree: Changes since 20170929: The net-next and drm trees lost their build failures but the rcu tree gained one. I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (patches at http://www

Re: [PATCH v2 15/16] gpio: tegra: Use banked GPIO infrastructure

2017-10-09 Thread Grygorii Strashko
On 09/28/2017 04:56 AM, Thierry Reding wrote: > From: Thierry Reding > > Convert the Tegra GPIO driver to use the banked GPIO infrastructure, > which simplifies some parts of the driver. > > Signed-off-by: Thierry Reding > --- > drivers/gpio/Kconfig | 1 + > drivers/gpio/gpio-tegra.

Re: [PATCH 1/2] crypto: lrw - Fix an error handling path in 'create()'

2017-10-09 Thread walter harms
Am 08.10.2017 11:39, schrieb Christophe JAILLET: > All error handling paths 'goto err_drop_spawn' except this one. > In order to avoid some resources leak, we should do it as well here. > > Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher") > Signed-off-by: Christophe JAILLET > --- > cr

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-09 Thread Laura Abbott
On 10/05/2017 06:06 AM, Benjamin Gaignard wrote: > 2017-10-04 12:17 GMT+02:00 Mark Brown : >> On Tue, Oct 03, 2017 at 04:08:30PM -0700, Sandeep Patil wrote: >> >>> It is entirely possible and easy in android/ueventd to create those nodes >>> under "/dev/ion/". (assuming the heap 'subsystem' for th

Re: [PATCH] scsi: libiscsi: fix shifting of DID_REQUEUE host byte

2017-10-09 Thread Lee Duncan
On 10/09/2017 04:33 AM, Johannes Thumshirn wrote: > The SCSI host byte should be shifted left by 16 in order to have > scsi_decide_disposition() do the right thing (.i.e. requeue the command). > > Signed-off-by: Johannes Thumshirn > Fixes: 661134ad3765 ("[SCSI] libiscsi, bnx2i: make bound ep ch

Re: [kernel-hardening] [PATCH] lib/vsprintf: add default case to 'i' specifier

2017-10-09 Thread Tobin C. Harding
On Mon, Oct 09, 2017 at 09:16:09AM -0600, Tycho Andersen wrote: > On Mon, Oct 09, 2017 at 01:59:05PM +1100, Tobin C. Harding wrote: > > %pi leaks kernel addresses if incorrectly specified. > > > > Currently the printk specifier %pi (%pI) contains a switch statement > > without a default clause. Th

[PATCHSET] cgroup, writeback, btrfs: make sure btrfs issues metadata IOs from the root cgroup

2017-10-09 Thread Tejun Heo
Hello, btrfs has different ways to issue metadata IOs and may end up issuing metadata or otherwise shared IOs from a non-root cgroup, which can lead to priority inversion and ineffective IO isolation. This patchset makes sure that btrfs issues all metadata and shared IOs from the root cgroup by e

[PATCH 1/3] cgroup, writeback: replace SB_I_CGROUPWB with per-inode S_CGROUPWB

2017-10-09 Thread Tejun Heo
Currently, filesystem can indiate cgroup writeback support per superblock; however, depending on the filesystem, especially if inodes are used to carry metadata, it can be useful to indicate cgroup writeback support per inode. This patch replaces the superblock flag SB_I_CGROUPWB with per-inode S_

[PATCH 3/3] btrfs: ensure that metadata and flush are issued from the root cgroup

2017-10-09 Thread Tejun Heo
Issuing metdata or otherwise shared IOs from !root cgroup can lead to priority inversion. This patch ensures that those IOs are always issued from the root cgroup. This patch updates btrfs_update_iflags() to not set S_CGROUPWB on btree_inodes. This isn't strictly necessary as those inodes don't

[PATCH 2/3] cgroup, writeback: implement submit_bh_blkcg_css()

2017-10-09 Thread Tejun Heo
Add wbc->blkcg_css so that the blkcg_css association can be specified independently and implement submit_bh_blkcg_css() using it. This will be used to override cgroup membership on specific buffer_heads. Signed-off-by: Tejun Heo Cc: Jan Kara Cc: Jens Axboe --- fs/buffer.c | 12

[PATCH net-next] once: switch to new jump label API

2017-10-09 Thread Eric Biggers
From: Eric Biggers Switch the DO_ONCE() macro from the deprecated jump label API to the new one. The new one is more readable, and for DO_ONCE() it also makes the generated code more icache-friendly: now the one-time initialization code is placed out-of-line at the jump target, rather than at th

Re: Read-only `slaves` with shared subtrees?

2017-10-09 Thread Dawid Ciezarkiewicz
On Sun, Oct 8, 2017 at 5:15 PM, Ram Pai wrote: >> >> One thing that I don't plan to use, but might be worth thinking about is >> `slave + RW + STICKY` combination. If `master` mounts something RO, >> and `slave` >> is `RW + STICKY`, should the mount appear RW inside the slave? I don't >> find it

Re: [RESEND x2][PATCH 0/3] dwc2 fixes for edge cases on hikey

2017-10-09 Thread John Stultz
On Tue, Oct 3, 2017 at 2:58 AM, Minas Harutyunyan wrote: > > Could you please apply patch from Vardan Mikayelyan "usb: dwc2: Fix > dwc2_hsotg_core_init_disconnected()" submitted at 02/25/2017 > (https://marc.info/?l=linux-usb&m=148801589931039&w=2) instead of your > "usb: dwc2: Improve gadget stat

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-09 Thread David Rientjes
On Thu, 5 Oct 2017, Roman Gushchin wrote: > Traditionally, the OOM killer is operating on a process level. > Under oom conditions, it finds a process with the highest oom score > and kills it. > > This behavior doesn't suit well the system with many running > containers: > > 1) There is no fairn

Re: [PATCH v2 14/16] gpio: Add support for banked GPIO controllers

2017-10-09 Thread Grygorii Strashko
On 09/28/2017 04:56 AM, Thierry Reding wrote: > From: Thierry Reding > > Some GPIO controllers are subdivided into multiple logical blocks called > banks (or ports). This is often caused by the design assigning separate > resources, such as register regions or interrupts, to each bank, or some

Re: [PATCH v2 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-10-09 Thread Grygorii Strashko
On 10/06/2017 06:07 AM, Thierry Reding wrote: > On Thu, Sep 28, 2017 at 09:22:17AM -0500, Grygorii Strashko wrote: >> >> >> On 09/28/2017 04:56 AM, Thierry Reding wrote: >>> From: Thierry Reding >>> >>> Hi Linus, >>> >>> here's the latest series of patches that implement the tighter IRQ chip >>>

Re: [PATCH 1/4] kbuild: replace $(hdr-arch) with $(SRCARCH)

2017-10-09 Thread Doug Anderson
Hi, On Tue, Oct 3, 2017 at 8:56 PM, Masahiro Yamada wrote: > Since commit 5e53879008b9 ("sparc,sparc64: unify Makefile"), hdr-arch > and SRCARCH always match. > > Signed-off-by: Masahiro Yamada > --- > > Makefile | 21 + > scripts/Makefile.headersinst |

Re: [PATCH 2/4] kbuild: move "_all" target out of $(KBUILD_SRC) conditional

2017-10-09 Thread Doug Anderson
Hi, On Tue, Oct 3, 2017 at 8:56 PM, Masahiro Yamada wrote: > The first "_all" occurrence around line 120 is only visible when > KBUILD_SRC is unset. > > If O=... is specified, the working directory is relocated, then the > only second occurrence around line 193 is visible, that is not set > to PH

Re: [PATCH 3/4] kbuild: re-order the code to not parse unnecessary variables

2017-10-09 Thread Doug Anderson
Hi, On Tue, Oct 3, 2017 at 8:56 PM, Masahiro Yamada wrote: > The top Makefile is divided into some sections such as mixed targets, > config targets, build targets, etc. > > When we build mixed targets, Kbuild just invokes submake to process > them one by one. In this case, compiler-related varia

Re: [RFC PATCH 4/4] kbuild: evaluate cc-option and friends only when building kernel

2017-10-09 Thread Doug Anderson
Hi, On Tue, Oct 3, 2017 at 8:56 PM, Masahiro Yamada wrote: > diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include > index 9ffd3dd..222d0a2 100644 > --- a/scripts/Kbuild.include > +++ b/scripts/Kbuild.include > @@ -96,6 +96,13 @@ try-run = $(shell set -e;\ > fi;

Re: [PATCH net-next RFC 4/9] net: dsa: mv88e6xxx: add support for event capture

2017-10-09 Thread Levi Pearson
On Sun, Oct 8, 2017 at 9:06 AM, Richard Cochran wrote: >> +static int mv88e6xxx_ptp_enable_perout(struct mv88e6xxx_chip *chip, >> +struct ptp_clock_request *rq, int on) >> +{ >> + struct timespec ts; >> + u64 ns; >> + int pin; >> + int err; >> +

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-09 Thread Mark Brown
On Mon, Oct 09, 2017 at 02:25:47PM -0700, Laura Abbott wrote: > Anyway, to move this forward I think we need to see a proof of concept > of using selinux to protect access to specific heaps. Aren't Unix permissions enough with separate files or am I misunderstanding what you're looking to see a p

ATENCIÓN

2017-10-09 Thread Sistemas administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

Re: usb/sound: use-after-free in snd_usb_mixer_interrupt

2017-10-09 Thread Takashi Iwai
On Mon, 09 Oct 2017 19:50:39 +0200, Andrey Konovalov wrote: > > Hi! > > I've got the following report while fuzzing the kernel with syzkaller. > > On commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (4.14-rc4). > > gadgetfs: bound to dummy_udc driver > usb 1-1: new full-speed USB device number 2

[PATCH 1/2 v2] typec: tcpm: Validate source and sink caps

2017-10-09 Thread Badhri Jagan Sridharan
The source and sink caps should follow the following rules. This patch validates whether the src_caps/snk_caps adheres to it. 6.4.1 Capabilities Message A Capabilities message (Source Capabilities message or Sink Capabilities message) shall have at least one Power Data Object for vSafe5V. The Capa

Re: [PATCH 0/5] trace-cmd: Fixes for four small bugs plus minor cleanup

2017-10-09 Thread Michael Sartain
Ping? Were there any concerns with these or things needed to be done before they could be merged? Thanks. On Sat, Aug 12, 2017, at 11:30 AM, Michael Sartain wrote: > Thanks much. > -Mike > > --- > > Michael Sartain (5): > trace-cmd: Fix incorrect malloc size arg: *item instead of item > tr

[PATCH 2/2 v2] typec: tcpm: Only request matching pdos

2017-10-09 Thread Badhri Jagan Sridharan
At present, TCPM code assumes that local device supports variable/batt pdos and always selects the pdo with highest possible power within the board limit. This assumption might not hold good for all devices. To overcome this, this patch makes TCPM only accept a source_pdo when there is a matching s

[PATCH] bcache: mark expected switch fall-throughs in STRTO_H

2017-10-09 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Cc: Kent Overstreet Cc: Shaohua Li Cc: linux-bca...@vger.kernel.org Cc: linux-r...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- drivers/md/bcache/util.c | 7 +++ 1 file ch

[PATCH] gpiolib: drop irq_base field from gpio_chip struct

2017-10-09 Thread Grygorii Strashko
Hence, the last user of irq_base field was removed by commit b4c495f03ae3 ("gpio: mockup: use irq_sim") it can be removed safely. Signed-off-by: Grygorii Strashko --- include/linux/gpio/driver.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/d

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-10-09 Thread Grygorii Strashko
On 10/09/2017 02:57 PM, Linus Walleij wrote: On Mon, Oct 9, 2017 at 8:10 PM, Grygorii Strashko wrote: At the moment it was merged there were no user of irq_base except gpio-mockup.c. OK I feel calmer. And actually there are shouldn't as calling irq_create_mapping() in cycle will not guar

Re: [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps

2017-10-09 Thread Badhri Jagan Sridharan
Sorry about delay. Just sent the rebased patchset along with the comments addressed. Thanks & Regards, Badhri. On Mon, Sep 18, 2017 at 3:20 AM, Greg Kroah-Hartman wrote: > On Thu, Sep 07, 2017 at 06:22:13PM -0700, Badhri Jagan Sridharan wrote: >> The source and sink caps should follow the follow

Re: [PATCH 2/2] media: venus: venc: fix bytesused v4l2_plane field

2017-10-09 Thread Stanimir Varbanov
Hans, On 9.10.2017 15:31, Hans Verkuil wrote: On 09/10/17 14:24, Stanimir Varbanov wrote: This fixes wrongly filled bytesused field of v4l2_plane structure by include data_offset in the plane, Also fill data_offset and bytesused for capture type of buffers only. Signed-off-by: Stanimir Varban

[PATCH v11 1/9] x86/mm: setting fields in deferred pages

2017-10-09 Thread Pavel Tatashin
Without deferred struct page feature (CONFIG_DEFERRED_STRUCT_PAGE_INIT), flags and other fields in "struct page"es are never changed prior to first initializing struct pages by going through __init_single_page(). With deferred struct page feature enabled, however, we set fields in register_page_bo

Re: [PATCH 0/5] trace-cmd: Fixes for four small bugs plus minor cleanup

2017-10-09 Thread Steven Rostedt
On Mon, 9 Oct 2017 16:13:42 -0600 Michael Sartain wrote: > Ping? Were there any concerns with these or things needed to be > done before they could be merged? > Thanks for the ping, this fell back in the todo list of my emails. I'll look at it this week. -- Steve

[PATCH v11 2/9] sparc64/mm: setting fields in deferred pages

2017-10-09 Thread Pavel Tatashin
Without deferred struct page feature (CONFIG_DEFERRED_STRUCT_PAGE_INIT), flags and other fields in "struct page"es are never changed prior to first initializing struct pages by going through __init_single_page(). With deferred struct page feature enabled there is a case where we set some fields pr

[PATCH v11 5/9] mm: zero reserved and unavailable struct pages

2017-10-09 Thread Pavel Tatashin
Some memory is reserved but unavailable: not present in memblock.memory (because not backed by physical pages), but present in memblock.reserved. Such memory has backing struct pages, but they are not initialized by going through __init_single_page(). In some cases these struct pages are accessed

[PATCH v11 0/9] complete deferred page initialization

2017-10-09 Thread Pavel Tatashin
Changelog: v11 - v10 - Moved kasan_map_populate() implementation from common code into arch specific as discussed with Will Deacon. We do not need "mm/kasan: kasan specific map populate function" anymore, so only 9 patches left. v10 - v9 - Addressed new comments from Michal Hocko. - Sent "mm

[PATCH v11 8/9] mm: stop zeroing memory during allocation in vmemmap

2017-10-09 Thread Pavel Tatashin
vmemmap_alloc_block() will no longer zero the block, so zero memory at its call sites for everything except struct pages. Struct page memory is zero'd by struct page initialization. Replace allocators in sprase-vmemmap to use the non-zeroing version. So, we will get the performance improvement by

[PATCH v11 6/9] x86/kasan: add and use kasan_map_populate()

2017-10-09 Thread Pavel Tatashin
During early boot, kasan uses vmemmap_populate() to establish its shadow memory. But, that interface is intended for struct pages use. Because of the current project, vmemmap won't be zeroed during allocation, but kasan expects that memory to be zeroed. We are adding a new kasan_map_populate() fun

[PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-09 Thread Pavel Tatashin
During early boot, kasan uses vmemmap_populate() to establish its shadow memory. But, that interface is intended for struct pages use. Because of the current project, vmemmap won't be zeroed during allocation, but kasan expects that memory to be zeroed. We are adding a new kasan_map_populate() fun

[PATCH v11 3/9] sparc64: simplify vmemmap_populate

2017-10-09 Thread Pavel Tatashin
Remove duplicating code by using common functions vmemmap_pud_populate and vmemmap_pgd_populate. Signed-off-by: Pavel Tatashin Reviewed-by: Steven Sistare Reviewed-by: Daniel Jordan Reviewed-by: Bob Picco Acked-by: David S. Miller Acked-by: Michal Hocko --- arch/sparc/mm/init_64.c | 23

[PATCH v11 9/9] sparc64: optimized struct page zeroing

2017-10-09 Thread Pavel Tatashin
Add an optimized mm_zero_struct_page(), so struct page's are zeroed without calling memset(). We do eight to ten regular stores based on the size of struct page. Compiler optimizes out the conditions of switch() statement. SPARC-M6 with 15T of memory, single thread performance:

[PATCH v11 4/9] mm: defining memblock_virt_alloc_try_nid_raw

2017-10-09 Thread Pavel Tatashin
* A new variant of memblock_virt_alloc_* allocations: memblock_virt_alloc_try_nid_raw() - Does not zero the allocated memory - Does not panic if request cannot be satisfied * optimize early system hash allocations Clients can call alloc_large_system_hash() with flag: HASH_ZERO to specify

Re: [PATCH 2/5] trace-cmd: Fix NULL pointer being passed to memcpy

2017-10-09 Thread Steven Rostedt
On Sat, 12 Aug 2017 11:30:44 -0600 Michael Sartain wrote: > Signed-off-by: Michael Sartain > --- > trace-output.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/trace-output.c b/trace-output.c > index bfe6331..84b21b0 100644 > --- a/trace-output.c > +++ b/trace-o

Re: [PATCH 2/5] trace-cmd: Fix NULL pointer being passed to memcpy

2017-10-09 Thread Michael Sartain
On Mon, Oct 09, 2017 at 06:24:32PM -0400, Steven Rostedt wrote: > On Sat, 12 Aug 2017 11:30:44 -0600 > Michael Sartain wrote: > > > Signed-off-by: Michael Sartain > > --- > > trace-output.c | 6 +- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/trace-output.c b/tra

Re: [PATCH 3/5] trace-cmd: Add ULL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31

2017-10-09 Thread Steven Rostedt
On Sat, 12 Aug 2017 11:30:45 -0600 Michael Sartain wrote: > Signed-off-by: Michael Sartain > --- > kbuffer-parse.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kbuffer-parse.c b/kbuffer-parse.c > index 4e6e95e..dde642c 100644 > --- a/kbuffer-parse.c > +++ b/kbu

Re: [PATCH v2 0/5] Switch arm64 over to qrwlock

2017-10-09 Thread Jeremy Linton
Hi, On 10/06/2017 08:34 AM, Will Deacon wrote: Hi all, This is version two of the patches I posted yesterday: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534666.html I'd normally leave it longer before posting again, but Peter had a good suggestion to rework the lay

Re: [PATCH 4/5] trace-cmd: Use unsigned values in Hsieh's trace_hash fast hash function

2017-10-09 Thread Steven Rostedt
On Sat, 12 Aug 2017 11:30:46 -0600 Michael Sartain wrote: > Signed int values were being used where the original code used uint32_t types: > > http://www.azillionmonkeys.com/qed/hash.html > > Right shifting negative int values has implementation-defined and left > shifting > has undefined be

Re: [PATCH 5/5] trace-cmd: Remove unused view_width variable

2017-10-09 Thread Steven Rostedt
On Sat, 12 Aug 2017 11:30:47 -0600 Michael Sartain wrote: This is an annoying warning, but I've kept from doing this because it reminds me that I have an idea to actually use that variable someday. But I've just been procrastinating on doing that. ;-) -- Steve > Signed-off-by: Michael Sartain

Re: [PATCH 2/5] trace-cmd: Fix NULL pointer being passed to memcpy

2017-10-09 Thread Steven Rostedt
On Mon, 9 Oct 2017 16:27:10 -0600 Michael Sartain wrote: > > > - memcpy(option->data, data, size); > > > + > > > + /* Some IDs (like TRACECMD_OPTION_TRACECLOCK) pass NULL data */ > > > + if (data) > > > + memcpy(option->data, data, size); > > > > Is this a problem, as when this happens

[PATCH 1/3] Input: factor out and export input_device_id matching code

2017-10-09 Thread Dmitry Torokhov
Factor out and export input_match_device_id() so that modules may use it. It will be needed by joydev to blacklist accelerometers in composite devices. Signed-off-by: Dmitry Torokhov --- drivers/input/input.c | 83 +++ include/linux/input.h | 3 ++

[PATCH 3/3] Input: joydev - blacklist ds3/ds4/udraw motion sensors

2017-10-09 Thread Dmitry Torokhov
From: Roderick Colenbrander Introduce a device table used for blacklisting devices. We currently blacklist the motion sensor subdevice of THQ Udraw and Sony ds3/ds4. Signed-off-by: Roderick Colenbrander Signed-off-by: Dmitry Torokhov --- drivers/input/joydev.c | 70 +++

[PATCH 2/3] Input: allow matching device IDs on property bits

2017-10-09 Thread Dmitry Torokhov
Let's allow matching input devices on their property bits, both in-kernel and when generating module aliases. Signed-off-by: Dmitry Torokhov --- drivers/input/input.c | 3 ++- include/linux/input.h | 4 include/linux/mod_devicetable.h | 3 +++ scripts/mod/devicetab

Re: [PATCH] bitfield: Use __ffs64(x) to fix missing __ffsdi2()

2017-10-09 Thread kbuild test robot
Hi Geert, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc4] [cannot apply to next-20170929] [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/Geert-Uytterhoeven/bitfield-

Re: [PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-09 Thread Andrew Morton
On Sat, 7 Oct 2017 06:58:04 +0800 Yafang Shao wrote: > After disable periodic writeback by writing 0 to > dirty_writeback_centisecs, the handler wb_workfn() will not be > entered again until the dirty background limit reaches or > sync syscall is executed or no enough free memory available or >

Re: Warning on __wait_on_bit

2017-10-09 Thread Cong Wang
Hi, Tom On Sat, Sep 30, 2017 at 1:55 AM, Tom Green wrote: > Hi Tejun Cong Shaohua, > > I just observed the same problem in https://lkml.org/lkml/2016/12/9/373. It > seems to be exactly same as decribed in https://lwn.net/Articles/628628/. > Any progress? Thanks. Sorry for the delay, I was on vac

[PATCH v2] Userfaultfd: Add description for UFFD_FEATURE_SIGBUS

2017-10-09 Thread Prakash Sangappa
Userfaultfd feature UFFD_FEATURE_SIGBUS was merged recently and should be available in Linux 4.14 release. This patch is for the manpage changes documenting this API. Documents the following commit: commit 2d6d6f5a09a96cc1fec7ed992b825e05f64cb50e Author: Prakash Sangappa Date: Wed Sep 6 16:23:39

Re: [PATCH 0/3] arm64: cpuinfo: make /proc/cpuinfo more human-readable

2017-10-09 Thread Al Stone
On 09/27/2017 04:34 AM, Mark Rutland wrote: > On Tue, Sep 26, 2017 at 04:23:21PM -0600, Al Stone wrote: >> As ARMv8 servers get deployed, I keep getting the same set of questions >> from end-users of those systems: what do all the hex numbers mean in >> /proc/cpuinfo and could you make them so I d

[PATCH v3 4/5] uio: uio_pdrv_genirq: Add st,stm32f100 to dt compatible list

2017-10-09 Thread Chris Packham
The stm32f100 is a general purpose micro controller. Allow users to interact with one as a uio device. Signed-off-by: Chris Packham --- Changes in v3: - (replaces "uio: add default compatible string to uio_pdrv_genirq") - remove superfluous change suggested by checkpatch.pl - As suggested by Rob,

[PATCH v3 0/5] using uio_pdrv_genirq without module param

2017-10-09 Thread Chris Packham
I found myself about to add a driver that was a sub-optimal clone of uio_pdrv_genirq the only difference was that I didn't want to modify the args passed to the kernel by my bootloader. If uio_pdrv_genirq had a default of_match entry I could simply use that. This series attempts to implement this.

[PATCH v3 3/5] uio: dt-bindings: Add binding for "marvell,88e2040"

2017-10-09 Thread Chris Packham
The marvell,88e2040 is a N-BaseT Ethernet PHY which requires a userspace driver. The only kernel presence is an interrupt handler which uio_pdrv_genirq can provide. Signed-off-by: Chris Packham --- Changes in v3: - (replaces "uio: dt-bindings: document binding for uio-pdrv-genirq") - split the bi

[PATCH v3 2/5] uio: dt-bindings: Add binding for "st,stm32f100"

2017-10-09 Thread Chris Packham
The stm32f100 is a general purpose micro controller. Document a binding that allows a user-space driver to be implemented for these devices. Signed-off-by: Chris Packham --- Changes in v3: - (replaces "uio: dt-bindings: document binding for uio-pdrv-genirq") - split the bindings up into the devic

[PATCH v3 1/5] uio: dt-bindings: document existing binding for uio-pdrv-genirq

2017-10-09 Thread Chris Packham
Document the device tree bindings for the uio-prv-genirq driver. Provide some examples on how it can be used. Signed-off-by: Chris Packham --- Changes in v3: - New. Document existing binding first. .../devicetree/bindings/uio/uio-pdrv-genirq.txt| 27 ++ 1 file changed, 2

[PATCH v3 5/5] uio: uio_pdrv_genirq: Add "marvell,88e2040" to dt compatible list

2017-10-09 Thread Chris Packham
The marvell,88e2040 is a N-BaseT Ethernet PHY which requires a userspace driver. uio_pdrv_genirq can be used to provide interrupts to such a userspace driver. Signed-off-by: Chris Packham --- Changes in v3: - (replaces "uio: add default compatible string to uio_pdrv_genirq") - As suggested by Rob

[PATCH v6 02/14] platform/x86: dell-wmi: increase severity of some failures

2017-10-09 Thread Mario Limonciello
There is a lot of error checking in place for the format of the WMI descriptor buffer, but some of the potentially raised issues should be considered critical failures. If the buffer size or header don't match, this is a good indication that the buffer format changed in a way that the rest of the

[PATCH v6 00/14] Introduce support for Dell SMBIOS over WMI

2017-10-09 Thread Mario Limonciello
The existing way that the dell-smbios helper module and associated other drivers (dell-laptop, dell-wmi) communicate with the platform really isn't secure. It requires creating a buffer in physical DMA32 memory space and passing that to the platform via SMM. Since the platform got a physical memo

Re: [PATCH] bcache: mark expected switch fall-throughs in STRTO_H

2017-10-09 Thread Michael Lyle
On 10/09/2017 02:54 PM, Gustavo A. R. Silva wrote: In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Cc: Kent Overstreet Cc: Shaohua Li Cc: linux-bca...@vger.kernel.org Cc: linux-r...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva

[PATCH v6 01/14] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-09 Thread Mario Limonciello
Drivers properly using the wmibus can pass their wmi_device pointer rather than the GUID back to the WMI bus to evaluate the proper methods. Any "new" drivers added that use the WMI bus should use this rather than the old wmi_evaluate_method that would take the GUID. Signed-off-by: Mario Limoncie

[PATCH v6 14/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-09 Thread Mario Limonciello
It's important for the driver to provide a R/W ioctl to ensure that two competing userspace processes don't race to provide or read each others data. This userspace character device will be used to perform SMBIOS calls from any applications. It provides an ioctl that will allow passing the WMI ca

[PATCH v6 13/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-09 Thread Mario Limonciello
For WMI operations that are only Set or Query read or write sysfs attributes created by WMI vendor drivers make sense. For other WMI operations that are run on Method, there needs to be a way to guarantee to userspace that the results from the method call belong to the data request to the method c

[PATCH v6 09/14] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-09 Thread Mario Limonciello
This splits up the dell-smbios driver into two drivers: * dell-smbios * dell-smbios-smm dell-smbios can operate with multiple different dispatcher drivers to perform SMBIOS operations. Also modify the interface that dell-laptop and dell-wmi use align to this model more closely. Rather than a sin

[PATCH v3 2/2] KVM: VMX: Don't expose unrestricted_guest is enabled if ept is disabled

2017-10-09 Thread Wanpeng Li
From: Wanpeng Li SDM mentioned: "If either the “unrestricted guest” VM-execution control or the “mode-based execute control for EPT” VM- execution control is 1, the “enable EPT” VM-execution control must also be 1." However, we can still observe unrestricted_guest is Y after inserting the

[PATCH v3 1/2] KVM: X86: Processor States following Reset or INIT

2017-10-09 Thread Wanpeng Li
From: Wanpeng Li - XCR0 is reset to 1 by RESET but not INIT - XSS is zeroed by both RESET and INIT - BNDCFGU, BND0-BND3, BNDCFGS are zeroed by both RESET and INIT This patch does this according to SDM. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Jim Mattson Signed-off-by: Wanpeng Li --- v2 -> v3

Re: [PATCH] bitfield: Use __ffs64(x) to fix missing __ffsdi2()

2017-10-09 Thread Jakub Kicinski
On Mon, 9 Oct 2017 10:40:49 +0200, Geert Uytterhoeven wrote: > On most architectures[*], gcc turns __builtin_ffsll() into a call to > __ffsdi2(), which is not provided by any architecture, leading to > failures like: > > rcar-gen3-cpg.c:(.text+0x289): undefined reference to `__ffsdi2' > > To

[PATCH v6 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-09 Thread Mario Limonciello
The dell-smbios stack only currently uses an SMI interface which grants direct access to physical memory to the firmware SMM methods via a pointer. This dispatcher driver adds a WMI-ACPI interface that is detected by WMI probe and preferred over the SMI interface in dell-smbios. Changing this to

Re: [PATCH v2] Userfaultfd: Add description for UFFD_FEATURE_SIGBUS

2017-10-09 Thread Andrea Arcangeli
On Mon, Oct 09, 2017 at 03:45:51PM -0700, Prakash Sangappa wrote: > Userfaultfd feature UFFD_FEATURE_SIGBUS was merged recently and should > be available in Linux 4.14 release. This patch is for the manpage > changes documenting this API. > > Documents the following commit: > > commit 2d6d6f5a09a

[PATCH v6 08/14] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-09 Thread Mario Limonciello
Currently userspace tools can access system tokens via the dcdbas kernel module and a SMI call that will cause the platform to execute SMM code. With a goal in mind of deprecating the dcdbas kernel module a different method for accessing these tokens from userspace needs to be created. This is in

[PATCH v6 12/14] platform/x86: dell-smbios-smm: test for WSMT

2017-10-09 Thread Mario Limonciello
WSMT is as an attestation to the OS that the platform won't modify memory outside of pre-defined areas. If a platform has WSMT enabled in BIOS setup, SMM calls through dcdbas will fail. The only way to access platform data in these instances is through the WMI SMBIOS calling interface. Signed-of

[PATCH v6 07/14] platform/x86: dell-smbios: only run if proper oem string is detected

2017-10-09 Thread Mario Limonciello
The proper way to indicate that a system is a 'supported' Dell System is by the presence of this string in OEM strings. Allowing the driver to load on non-Dell systems will have undefined results. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 7 +++ 1 file change

[PATCH v6 10/14] platform/x86: dell-smbios: add filtering capability for requests

2017-10-09 Thread Mario Limonciello
There are some categories of tokens and SMBIOS calls that it makes sense to protect userspace from accessing. These are calls that may write to one time use fields or activate hardware debugging capabilities. They are not intended for general purpose use. This same functionality may be be later

[PATCH v6 06/14] platform/x86: wmi: Don't allow drivers to get each other's GUIDs

2017-10-09 Thread Mario Limonciello
The only driver using this was dell-wmi, and it really was a hack. The driver was getting a data attribute from another driver and this type of action should not be encouraged. Rather drivers that need to interact with one another should pass data back and forth via exported functions. Signed-off

[PATCH v6 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-09 Thread Mario Limonciello
All communication on individual GUIDs should occur in separate drivers. Allowing a driver to communicate with the bus to another GUID is just a hack that discourages drivers to adopt the bus model. The information found from the WMI descriptor driver is now exported for use by other drivers. Sign

[PATCH v6 03/14] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-09 Thread Mario Limonciello
Some cases the wrong type was used for errors and checks can be done more cleanly. Signed-off-by: Mario Limonciello Reviewed-by: Edward O'Callaghan Suggested-by: Andy Shevchenko --- drivers/platform/x86/dell-wmi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/d

[PATCH v6 04/14] platform/x86: dell-wmi: allow 32k return size in the descriptor

2017-10-09 Thread Mario Limonciello
Some platforms this year will be adopting 32k WMI buffer, so don't complain when encountering those. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86

Re: [PATCH v3 03/22] dt-bindings: arm: scmi: add ARM MHU specific mailbox client bindings

2017-10-09 Thread Rob Herring
On Mon, Oct 9, 2017 at 9:46 AM, Jassi Brar wrote: > On Mon, Oct 9, 2017 at 7:22 PM, Rob Herring wrote: >> On Fri, Oct 6, 2017 at 9:26 PM, Jassi Brar wrote: >>> On Fri, Oct 6, 2017 at 9:24 PM, Rob Herring wrote: On Fri, Oct 6, 2017 at 6:01 AM, Jassi Brar wrote: > On Fri, Oct 6, 2

Re: [PATCH] bitfield: Use __ffs64(x) to fix missing __ffsdi2()

2017-10-09 Thread kbuild test robot
Hi Geert, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc4] [cannot apply to next-20171009] [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/Geert-Uytterhoeven/bitfield

Re: [PATCH] cdc_ether: flag the u-blox TOBY-L2 and SARA-U2 as wwan

2017-10-09 Thread David Miller
From: Aleksander Morgado Date: Mon, 9 Oct 2017 14:05:12 +0200 > The u-blox TOBY-L2 is a LTE Cat 4 module with HSPA+ and 2G fallback. > This module allows switching to different USB profiles with the > 'AT+UUSBCONF' command, and provides a ECM network interface when the > 'AT+UUSBCONF=2' profile

Re: linux-next: manual merge of the cgroup tree with the net-next tree

2017-10-09 Thread Alexei Starovoitov
On Mon, Oct 09, 2017 at 07:38:36PM +0100, Mark Brown wrote: > Hi Tejun, > > Today's linux-next merge of the cgroup tree got a conflict in: > > kernel/cgroup/cgroup.c > > between commit: > > 324bda9e6c5ad ("bpf: multi program support for cgroup+bpf") > > from the net-next tree and commit: >

Re: [PATCH v2] net/core: Fix BUG to BUG_ON conditionals.

2017-10-09 Thread Alexei Starovoitov
On Mon, Oct 09, 2017 at 08:26:34PM +, Levin, Alexander (Sasha Levin) wrote: > On Mon, Oct 09, 2017 at 10:15:42AM -0700, Alexei Starovoitov wrote: > >On Mon, Oct 09, 2017 at 11:37:59AM -0400, Tim Hansen wrote: > >> Fix BUG() calls to use BUG_ON(conditional) macros. > >> > >> This was found using

Re: [PATCH 02/13] EDAC, altera: kill off ACCESS_ONCE()

2017-10-09 Thread Thor Thayer
On 10/09/2017 01:28 PM, Mark Rutland wrote: For several reasons, it is desirable to use {READ,WRITE}_ONCE() in preference to ACCESS_ONCE(), and new code is expected to use one of the former. So far, there's been no reason to change most existing uses of ACCESS_ONCE(), as these aren't currently ha

[GIT] Networking

2017-10-09 Thread David Miller
1) Fix object leak on IPSEC offload failure, from Steffen Klassert. 2) Fix range checks in ipset address range addition operations, from Jozsef Kadlecsik. 3) Fix pernet ops unregistration order in ipset, from Florian Westphal. 4) Add missing netlink attribute policy for nl80211 packet pat

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-09 Thread Paul E. McKenney
On Mon, Oct 09, 2017 at 10:16:37AM +0200, Peter Zijlstra wrote: > On Sat, Oct 07, 2017 at 11:28:57AM -0700, Paul E. McKenney wrote: > > But if you are saying that it would be good to have wait_for_completion() > > and complete() directly modeled at some point, no argument. In addition, > > I hope

Re: [PATCH v2] net/core: Fix BUG to BUG_ON conditionals.

2017-10-09 Thread Levin, Alexander (Sasha Levin)
On Mon, Oct 09, 2017 at 04:06:20PM -0700, Alexei Starovoitov wrote: >On Mon, Oct 09, 2017 at 08:26:34PM +, Levin, Alexander (Sasha Levin) wrote: >> On Mon, Oct 09, 2017 at 10:15:42AM -0700, Alexei Starovoitov wrote: >> >On Mon, Oct 09, 2017 at 11:37:59AM -0400, Tim Hansen wrote: >> >> Fix BUG()

Re: [PATCH v2] net/core: Fix BUG to BUG_ON conditionals.

2017-10-09 Thread David Miller
From: Alexei Starovoitov Date: Mon, 9 Oct 2017 16:06:20 -0700 >> For these archs, wouldn't it then be more efficient to use BUG_ON >> rather than BUG()? > > why more efficient? any data to prove that? It can completely eliminate a branch. For example on powerpc if you use BUG() then the code g

Re: [PATCH v4 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-09 Thread Andrew Morton
On Mon, 9 Oct 2017 17:13:43 -0400 Gargi Sharma wrote: > This patch replaces the current bitmap implemetation for > Process ID allocation. Functions that are no longer required, > for example, free_pidmap(), alloc_pidmap(), etc. are removed. > The rest of the functions are modified to use the IDR

Re: linux-next: manual merge of the drivers-x86 tree with the net-next tree

2017-10-09 Thread Darren Hart
On Mon, Oct 09, 2017 at 08:56:34PM +0100, Mark Brown wrote: > On Mon, Oct 09, 2017 at 10:43:01PM +0300, Mika Westerberg wrote: > > > If possible, I would rather move this chapter to be before "Networking > > over Thunderbolt cable". Reason is that it then follows NVM flashing > > chapter which is

Re: [PATCH v2] net/core: Fix BUG to BUG_ON conditionals.

2017-10-09 Thread Alexei Starovoitov
On Mon, Oct 09, 2017 at 11:15:40PM +, Levin, Alexander (Sasha Levin) wrote: > On Mon, Oct 09, 2017 at 04:06:20PM -0700, Alexei Starovoitov wrote: > >On Mon, Oct 09, 2017 at 08:26:34PM +, Levin, Alexander (Sasha Levin) > >wrote: > >> On Mon, Oct 09, 2017 at 10:15:42AM -0700, Alexei Starovoi

Re: [locking] 892ad5acca [ 12.849409] WARNING: bad unlock balance detected!

2017-10-09 Thread Linus Torvalds
On Mon, Oct 9, 2017 at 8:55 AM, Fengguang Wu wrote: > > 0day kernel testing robot got the below dmesg and the first bad commit is This makes no sense. > [ 12.849409] WARNING: bad unlock balance detected! > [ 12.850157] 4.12.0-00420-g892ad5a #1 Not tainted > [ 12.850870] ---

Re: [PATCH 2/6] ARM: sun8i: r40: add USB host port nodes for R40

2017-10-09 Thread Icenowy Zheng
于 2017年10月10日 GMT+08:00 上午5:03:40, Maxime Ripard 写到: >On Sun, Oct 08, 2017 at 04:29:02AM +, Icenowy Zheng wrote: >> From: Icenowy Zheng >> >> Allwinner R40 SoC features a USB OTG port and two USB HOST ports. >> >> Add support for the host ports in the DTSI file. >> >> The OTG controller

Re: [PATCH 3/6] ARM: sun8i: r40: add 5V regulator for Banana Pi M2 Ultra

2017-10-09 Thread Icenowy Zheng
于 2017年10月10日 GMT+08:00 上午5:04:07, Maxime Ripard 写到: >On Sun, Oct 08, 2017 at 04:29:03AM +, Icenowy Zheng wrote: >> On newer revisions of the Banana Pi M2 Ultra boards, the 5V power >output >> (used by HDMI, SATA and USB) is controller via a GPIO. >> >> Add the regulator node for it. >> >

  1   2   3   4   5   6   7   8   9   10   >