[PATCH v3 17/20] perf: Add a speculative page fault sw event

2017-09-08 Thread Laurent Dufour
Add a new software event to count succeeded speculative page faults. Signed-off-by: Laurent Dufour --- include/uapi/linux/perf_event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index

[PATCH v3 11/20] mm: Introduce __maybe_mkwrite()

2017-09-08 Thread Laurent Dufour
The current maybe_mkwrite() is getting passed the pointer to the vma structure to fetch the vm_flags field. When dealing with the speculative page fault handler, it will be better to rely on the cached vm_flags value stored in the vm_fault structure. This patch introduce a __maybe_mkwrite()

[PATCH v3 14/20] mm: Provide speculative fault infrastructure

2017-09-08 Thread Laurent Dufour
From: Peter Zijlstra Provide infrastructure to do a speculative fault (not holding mmap_sem). The not holding of mmap_sem means we can race against VMA change/removal and page-table destruction. We use the SRCU VMA freeing to keep the VMA around. We use the VMA seqcount to

[PATCH v3 07/20] mm: Cache some VMA fields in the vm_fault structure

2017-09-08 Thread Laurent Dufour
When handling speculative page fault, the vma->vm_flags and vma->vm_page_prot fields are read once the page table lock is released. So there is no more guarantee that these fields would not change in our back. They will be saved in the vm_fault structure before the VMA is checked for changes.

[PATCH v3 15/20] mm: Try spin lock in speculative path

2017-09-08 Thread Laurent Dufour
There is a deadlock when a CPU is doing a speculative page fault and another one is calling do_unmap(). The deadlock occurred because the speculative path try to spinlock the pte while the interrupt are disabled. When the other CPU in the unmap's path has locked the pte then is waiting for all

[PATCH v3 20/20] powerpc/mm: Add speculative page fault

2017-09-08 Thread Laurent Dufour
This patch enable the speculative page fault on the PowerPC architecture. This will try a speculative page fault without holding the mmap_sem, if it returns with VM_FAULT_RETRY, the mmap_sem is acquired and the traditional page fault processing is done. Support is only provide for BOOK3S_64

[PATCH v3 18/20] perf tools: Add support for the SPF perf event

2017-09-08 Thread Laurent Dufour
Add support for the new speculative faults event. Signed-off-by: Laurent Dufour --- tools/include/uapi/linux/perf_event.h | 1 + tools/perf/util/evsel.c | 1 + tools/perf/util/parse-events.c| 4 tools/perf/util/parse-events.l| 1 +

Re: [PATCH] media: default for RC_CORE should be n

2017-09-08 Thread Sean Young
On Fri, Sep 08, 2017 at 09:39:29AM -0700, Stephen Hemminger wrote: > The Linus policy on Kconfig is that the default should be no > for all new devices. I.e the user rebuild a new kernel from an > old config should not by default get a larger kernel. That might make sense for new config, but

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Andrew Lunn
> > So i would suggest one driver supporting all the different devices. > > There will be 5 drivers to support these devices: > > ksz9477.c - KSZ9893/KSZ9897/KSZ9567/KSZ9566/KSZ9477 > ksz8795.c - KSZ8795/KSZ8795/KSZ8765 > ksz8895.c - KSZ8895/KSZ8864 > ksz8863.c - KSZ8863/KSZ8873 > ksz8463.c -

Re: [PATCH v2 31/40] tracing: Allow whitespace to surround hist trigger filter

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 14:50 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:43 -0500 > Tom Zanussi wrote: > > > The existing code only allows for one space before and after the 'if' > > specifying the filter for a hist trigger. Add code to make that more >

Re: [PATCH v3 06/11] perf, tools, stat: Support JSON metrics in perf stat

2017-09-08 Thread Andi Kleen
> > PERF_CPUID=GenuineIntel-... > > > > See the mapfile.csv for valid codes > > > > But it's quite a few. > > yeah, I'm testing on the ones I have access and on a Skylake machine I'm > having > trouble, see below. > [root@seventh ~]# perf stat -vv --metric-only -M Summary -a sleep 1 The

Re: [PATCH v2 32/40] tracing: Add cpu field for hist triggers

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:44 -0500 Tom Zanussi wrote: > A common key to use in a histogram is the cpuid - add a new cpu > 'synthetic' field for that purpose. This field is named cpu rather > than $cpu or $common_cpu because 'cpu' already exists as a special > filter

[GIT PULL] VFIO updates for v4.14-rc1

2017-09-08 Thread Alex Williamson
Hi Linus, The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e: Linux 4.13-rc4 (2017-08-06 18:44:49 -0700) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.14-rc1 for you to fetch changes up to

Re: [PATCH v2 32/40] tracing: Add cpu field for hist triggers

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 15:08 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:44 -0500 > Tom Zanussi wrote: > > > A common key to use in a histogram is the cpuid - add a new cpu > > 'synthetic' field for that purpose. This field is named cpu rather > > than

[PATCH] media: rc: Use bsearch library function

2017-09-08 Thread Thomas Meyer
Replace self coded binary search, by existing library version. Signed-off-by: Thomas Meyer --- drivers/media/rc/rc-main.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/rc-main.c

[PATCH 3/3] [media] fsl-viu: Adjust six checks for null pointers

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:16:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus

Re: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Stephen Hemminger
On Fri, 8 Sep 2017 01:19:52 -0700 "Thomas Gleixner" wrote: > The rework of the IDT setup changed the way how unused system gates are > accounted. At the end of the gate initialization all unused gates in the > system vector area are set to the spurios handler and marked as

Re: [PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread Takashi Iwai
On Fri, 08 Sep 2017 18:06:25 +0200, grygorii tertychnyi wrote: > > Hi Greg, > > Could you please apply it for 4.4-stable. > This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 This vulnerability is just non-issue. You can't get it working practically; it requires a modified hardware of

Re: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Thomas Gleixner
On Fri, 8 Sep 2017, Stephen Hemminger wrote: > On Fri, 8 Sep 2017 01:19:52 -0700 > "Thomas Gleixner" wrote: > > > The rework of the IDT setup changed the way how unused system gates are > > accounted. At the end of the gate initialization all unused gates in the > > system

Re: [PATCH v2 0/2] enable hires timer to timeout datagram socket

2017-09-08 Thread David Miller
From: Eduardo Valentin Date: Fri, 8 Sep 2017 10:04:09 -0700 > However, this is a clear, the system call, from the net subsystem, > has changed in behavior across kernel versions. From application / > userspace perspective, changing the system call without clear > documentation

Re: [PATCH 2/2] mm, memory_hotplug: remove timeout from __offline_memory

2017-09-08 Thread Vlastimil Babka
On 09/04/2017 10:21 AM, Michal Hocko wrote: > From: Michal Hocko > > We have a hardcoded 120s timeout after which the memory offline fails > basically since the hot remove has been introduced. This is essentially > a policy implemented in the kernel. Moreover there is no way to

[PATCH v3 01/20] mm: Dont assume page-table invariance during faults

2017-09-08 Thread Laurent Dufour
From: Peter Zijlstra One of the side effects of speculating on faults (without holding mmap_sem) is that we can race with free_pgtables() and therefore we cannot assume the page-tables will stick around. Remove the reliance on the pte pointer. Signed-off-by: Peter

Re: [v3] HID: google: add google hammer HID driver

2017-09-08 Thread Guenter Roeck
On Thu, Sep 07, 2017 at 04:37:43PM +0800, Wei-Ning Huang wrote: > From: Wei-Ning Huang > > Add Google hammer HID driver. This driver allow us to control hammer > keyboard backlights and support future features. Since current hid-core > logic does not allow us to specify

Re: [RFC PATCH 0/3] kbuild: generate intermediate C files instead of copying _shipped files

2017-09-08 Thread Linus Torvalds
On Fri, Sep 8, 2017 at 10:22 AM, Linus Torvalds wrote: > > Of course, I only did a "make allmodconfig" to test the MODVERSIONS > case, I didn't actually install the modules. Is that error perhaps > only detected at install time? Oh, I take that back. I just got a

[GIT PULL] nfsd changes for 4.14

2017-09-08 Thread J. Bruce Fields
Please pull nfsd changes for 4.14 from git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.14 More RDMA work and some op-structure constification from Chuck Lever, and a small cleanup to our xdr encoding. --b. Chuck Lever (9): sunrpc: Const-ify instances of struct svc_xprt_ops

[PATCH v3 09/20] mm/migrate: Pass vm_fault pointer to migrate_misplaced_page()

2017-09-08 Thread Laurent Dufour
migrate_misplaced_page() is only called during the page fault handling so it's better to pass the pointer to the struct vm_fault instead of the vma. This way during the speculative page fault path the saved vma->vm_flags could be used. Signed-off-by: Laurent Dufour

Re: [PATCH 4.9 00/32] 4.9.49-stable review

2017-09-08 Thread Shuah Khan
On 09/08/2017 07:19 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.49 release. > There are 32 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. > > Responses

Re: [PATCH RFC 5/5] Add KSZ8795 SPI driver

2017-09-08 Thread Andrew Lunn
> Sorry about the formatting. It seems my e-mail system needs to be checked > to make sure it does not auto-format the contents again. I've never seen issues like this with git send-email. Please use it. Email problems generally happen with the client, not the backend. What client did you use to

[PATCH v2 2/2] ARM: dts: k2g-evm: Enable USB 0 and 1

2017-09-08 Thread Franklin S Cooper Jr
From: Roger Quadros Enable USB 0 which will be used as a host port and USB 1 which will be used in peripheral mode. Signed-off-by: Roger Quadros Signed-off-by: Murali Karicheri Signed-off-by: Franklin S Cooper Jr ---

Re: [PATCH] media: default for RC_CORE should be n

2017-09-08 Thread Stephen Hemminger
On Fri, 8 Sep 2017 19:52:47 +0100 Sean Young wrote: > On Fri, Sep 08, 2017 at 09:39:29AM -0700, Stephen Hemminger wrote: > > The Linus policy on Kconfig is that the default should be no > > for all new devices. I.e the user rebuild a new kernel from an > > old config should not by

[PULL REQUEST] i2c for 4.14

2017-09-08 Thread Wolfram Sang
Linus, For v4.14, I2C has the following changes: * new drivers for Spreadtrum I2C, Intel Cherry Trail Whiskey Cove SMBUS * quite some driver updates * cleanups for the i2c-mux subsystem * some subsystem-wide constification * further cleanup of include/linux/i2c For the latter topic, I applied a

Re: [PATCH v2 34/40] tracing: Add 'last error' error facility for hist triggers

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:46 -0500 Tom Zanussi wrote: > +static char *hist_err_str; > +static char *last_hist_cmd; > + > +static int hist_err_alloc(void) > +{ > + int ret = 0; > + > + last_hist_cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); > + if

[RFC PATCH v8 0/2] mmap: safely enable support for new flags

2017-09-08 Thread Dan Williams
Changes since v7 [1]: * rebase on the mid-merge-window state of the tree to pick up new mmap implementations. * expand the mmap operation handler conversion beyond 'struct file_operations' to include, 'struct etnaviv_gem_ops', 'struct dma_buf_ops', 'struct drm_driver', 'struct fb_ops', and

[PATCH 0/3] [media] Freescale VIU: Adjustments for five function implementations

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:28:12 +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 viu_of_probe() Improve two size

[PATCH] MAINTAINERS: update linuxpps mailing list

2017-09-08 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1c3feff..2f797bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10576,7 +10576,7 @@ F: drivers/net/ppp/ppp_* PPS SUPPORT M:

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
On Sat, Sep 9, 2017 at 1:42 AM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > >> Return the return value of a function directly, instead of first saving it >> in a variable and then returning it. This change was made using the following > > Your

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-08 Thread Jerome Glisse
On Fri, Sep 08, 2017 at 01:43:44PM -0600, Ross Zwisler wrote: > On Tue, Sep 05, 2017 at 03:20:50PM -0400, Jerome Glisse wrote: > <> > > Does HMAT support device hotplug ? I am unfamiliar with the whole inner > > working > > of ACPI versus PCIE. Anyway i don't see any issue with device memory also

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread Liam Breck
Howdy, On Fri, Sep 8, 2017 at 1:28 PM, H. Nikolaus Schaller wrote: > Hi Liam, > >> Am 08.09.2017 um 22:19 schrieb Liam Breck : >> >> Hi Nikolaus, >> >> On Fri, Sep 8, 2017 at 10:38 AM, H. Nikolaus Schaller >> wrote: >>> Hi Liam,

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-08 Thread Christopher Lameter
On Thu, 7 Sep 2017, David Rientjes wrote: > > It has *nothing* to do with zillions of tasks. Its amusing that the SGI > > ghost is still haunting the discussion here. The company died a couple of > > years ago finally (ok somehow HP has an "SGI" brand now I believe). But > > there are multiple

Re: [Outreachy kernel] [PATCH v2] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
On Sat, Sep 9, 2017 at 2:28 AM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > >> Merge the assignment and return statements to return the value >> directly. Done using coccinelle. >> >> @@ >> local idexpression ret; >> expression e; >> @@ >> >> -ret =

Re: [PATCH v3] tpm-dev-common: Reject too short writes

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 05:21:32PM +0200, Alexander Steffen wrote: > tpm_transmit() does not offer an explicit interface to indicate the number > of valid bytes in the communication buffer. Instead, it relies on the > commandSize field in the TPM header that is encoded within the buffer. >

Re: [RFC PATCH 0/3] kbuild: generate intermediate C files instead of copying _shipped files

2017-09-08 Thread Linus Torvalds
On Fri, Sep 8, 2017 at 11:39 AM, Linus Torvalds wrote: > > Strange. Does anybody see what the pattern to the failure is? Found it. Stupid special case for 'typeof()' that used is_reserved_word() in ways I hadn't realized. Fix committed. Linus

[PATCH v9] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
From: Jeffrey Chu Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Andy Lutomirski
On Fri, Sep 8, 2017 at 10:16 AM, Markus Trippelsdorf wrote: > On 2017.09.08 at 09:12 -0700, Andy Lutomirski wrote: >> On Fri, Sep 8, 2017 at 4:30 AM, Markus Trippelsdorf >> wrote: >> > On 2017.09.08 at 12:39 +0200, Markus Trippelsdorf wrote: >> >>

Re: [PATCH v3 08/13] xen/pvcalls: implement accept command

2017-09-08 Thread Stefano Stabellini
On Mon, 14 Aug 2017, Boris Ostrovsky wrote: > > > + > > > +ret = bedata->rsp[req_id].ret; > > > > You can just return bedata->rsp[req_id].ret; > > Or maybe not. The slot may get reused by the time you get to the end. Right! > > > > -boris > > > > > +/* read ret, then set this rsp

Re: [PATCH RFC 3/5] Add KSZ8795 switch driver

2017-09-08 Thread Pavel Machek
Hi! > > > + default: > > > + processed = false; > > > + break; > > > + } > > > + if (processed) > > > + *val = data; > > > +} > > > > Similar code will be needed by other drivers, right? > > Although KSZ8795 and KSZ8895 may use the same code, the other > chips will have

RE: [PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
You did not receive this email message in error. You are the intended recipient of this email message. Everything included in this email message do not contain confidential information from Cypress or its subsidiaries. Regards, -Jeffrey -Original Message- From:

[PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
Return the return value of a function directly, instead of first saving it in a variable and then returning it. This change was made using the following semantic patch by coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma

RE: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Tristram.Ha
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Friday, September 08, 2017 12:54 PM > To: Tristram Ha - C24268; muva...@gmail.com > Cc: and...@lunn.ch; pa...@ucw.cz; nathan.leigh.con...@gmail.com; > vivien.dide...@savoirfairelinux.com;

[PATCH] [media] pxa_camera: Delete an error message for a failed memory allocation in pxa_camera_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:05:14 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v2 40/40] tracing: Add trace_event_buffer_reserve() variant that allows recursion

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:52 -0500 Tom Zanussi wrote: > Synthetic event generation requires the reservation of a second event > while the reservation of a previous event is still in progress. The > trace_recursive_lock() check in ring_buffer_lock_reserve() prevents

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread H. Nikolaus Schaller
Hi Liam, > Am 08.09.2017 um 22:19 schrieb Liam Breck : > > Hi Nikolaus, > > On Fri, Sep 8, 2017 at 10:38 AM, H. Nikolaus Schaller > wrote: >> Hi Liam, >> I finally continues testing on OpenPandora. >> >>> Am 31.08.2017 um 22:19 schrieb Liam Breck

[PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-08 Thread YASUAKI ISHIMATSU
__remove_section() calls __remove_zone() to shrink zone and pgdat. But due to wrong castings, __remvoe_zone() cannot shrink zone and pgdat correctly if pfn is over 0x. So the patch fixes the following 3 wrong castings. 1. find_smallest_section_pfn() returns 0 or start_pfn which defined

Tracing Summit 2017 Schedule

2017-09-08 Thread Julien Desfossez
The schedule for the Tracing Summit 2017 that will be held in Prague, Czech Republic on October 27th, 2017 is now available online: http://tracingsummit.org/wiki/TracingSummit2017#Schedule If you want to attend and are not yet registered, please do it quickly as the room is already almost full.

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-08 Thread Dan Williams
On Thu, Sep 7, 2017 at 6:59 PM, Bob Liu wrote: > On 2017/9/8 1:27, Jerome Glisse wrote: [..] >> No this are 2 orthogonal thing, they do not conflict with each others quite >> the contrary. HMM (the CDM part is no different) is a set of helpers, see >> it as a toolbox, for

[PATCH 3/3] ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash

2017-09-08 Thread Franklin S Cooper Jr
From: Murali Karicheri K2G EVM has n25q128a13 SPI NOR flash on SPI1. Enable SPI1 in the DT node as well as add a subnode for the SPI NOR. Signed-off-by: Murali Karicheri Signed-off-by: Franklin S Cooper Jr ---

[PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property

2017-09-08 Thread Franklin S Cooper Jr
Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G unique clocks property usage. Signed-off-by: Franklin S Cooper Jr --- Documentation/devicetree/bindings/spi/spi-davinci.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Helge Deller
On 08.09.2017 08:18, Sergey Senozhatsky wrote: > On (09/07/17 16:05), Luck, Tony wrote: > [..] if (not_a_function_descriptor(ptr)) return ptr; >>> >>> I'm not sure if it's possible on ia64/ppc64/parisc64 >>> to reliably detect if it's a function descriptor or not. >> >>

Re: [PATCH] tpm: constify transmit data pointers

2017-09-08 Thread Arnd Bergmann
On Thu, Sep 7, 2017 at 6:24 PM, Jarkko Sakkinen wrote: > On Thu, Sep 07, 2017 at 03:30:45PM +0200, Arnd Bergmann wrote: >> > > Thank you Arnd. Do you mind if squash this to Colin's commit and your > signed-off-by to that one? Either way works, but if you merge

Re: [Outreachy kernel] [PATCH v2] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > Merge the assignment and return statements to return the value > directly. Done using coccinelle. > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; > > Signed-off-by: Srishti Sharma

Re: [PATCH v3 05/13] xen/pvcalls: implement connect command

2017-09-08 Thread Stefano Stabellini
On Sat, 12 Aug 2017, Boris Ostrovsky wrote: > On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > the active socket. > > > > Introduce fields in struct sock_mapping to keep track of active sockets. > > Introduce a

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-09-08 Thread Lucas De Marchi
Hi, On Tue, Aug 8, 2017 at 5:09 PM, Luis R. Rodriguez wrote: > On Wed, Aug 02, 2017 at 02:12:00AM +0200, Luis R. Rodriguez wrote: >> On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: >> > diff --git a/fs/exec.c b/fs/exec.c >> > index 62175cbcc801..004bb50a01fe

[GIT PULL] rpmsg updates for v4.14

2017-09-08 Thread Bjorn Andersson
The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://github.com/andersson/remoteproc tags/rpmsg-v4.14 for you to fetch changes up to ed43d098f9020d6669a00bd26fac807d5c19e202:

[PATCH v3] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
Merge the assignment and return statements to return the value directly. Done using coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma --- Changes in v3: -Edit commit message so that it respects 80

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Pavel Machek
Hi! > There will be 5 drivers to support these devices: > > ksz9477.c - KSZ9893/KSZ9897/KSZ9567/KSZ9566/KSZ9477 > ksz8795.c - KSZ8795/KSZ8795/KSZ8765 > ksz8895.c - KSZ8895/KSZ8864 Could we see the 8895 driver, please? > Out of topic I have a question to ask the community regarding the DSA >

Re: [PATCH] mmc: tegra: Mark 64 bit dma broken on Tegra186

2017-09-08 Thread Thierry Reding
On Fri, Sep 08, 2017 at 12:48:33PM -0700, Krishna Reddy wrote: > SDHCI controllers on Tegra186 support 40 bit addressing. > IOVA addresses are 48-bit wide on Tegra186. > SDHCI host common code sets dma mask as either 32-bit or 64-bit. > To avoid access issues when SMMU is enabled, disable 64-bit

[PATCH] mtd: oxnas_nand: Fix error handling in oxnas_nand_probe()

2017-09-08 Thread Alexey Khoroshilov
oxnas_nand_probe() does not disable clock on error paths. The patch adds disabling using devm interface. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/mtd/nand/oxnas_nand.c | 22 +++--- 1 file

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread H. Nikolaus Schaller
> Am 08.09.2017 um 22:57 schrieb Liam Breck : > > Howdy, > > On Fri, Sep 8, 2017 at 1:28 PM, H. Nikolaus Schaller > wrote: >> Hi Liam, >> >>> Am 08.09.2017 um 22:19 schrieb Liam Breck : >>> >>> Hi Nikolaus, >>> >>> On Fri,

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2017-09-08 Thread James Morris
On Fri, 8 Sep 2017, Paul Moore wrote: > Looks fine to me from a SELinux perspective. If Casey and John are > happy with this I can volunteer to pull it into the selinux/next tree > (once the merge window closes), otherwise if someone else wants to > merge this my ack is below. > As this

[PATCH 2/3] x86/topology: Avoid wasting 128k for package id array

2017-09-08 Thread Prarit Bhargava
From: Andi Kleen I was looking at large early boot allocations and noticed that since (1f12e32f x86/topology: Create logical package id) every 64bit system allocates a 128k array to convert logical package ids. This happens because the array is sized for MAX_LOCAL_APIC and

Re: HAVE_EFFICIENT_UNALIGNED_ACCESS on ARM32 (was: Alignment issues in zImage with Linux 4.12, LZ4 and GCC5.3)

2017-09-08 Thread Arnd Bergmann
On Thu, Sep 7, 2017 at 1:31 AM, Ard Biesheuvel wrote: > On 7 September 2017 at 00:18, Arnd Bergmann wrote: >> On Thu, Sep 7, 2017 at 12:48 AM, Ard Biesheuvel >> I see lots of unaligned helpers in the lz4 code, is this not what >> we hit? >> >> $ git

Re: [PATCH v2] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-09-08 Thread Jacek Anaszewski
Hi Andrew, Thanks for the patch. On 09/01/2017 07:38 AM, Andrew Jeffery wrote: > The PCA9552 lines can be used either for driving LEDs or as GPIOs. The > manual states that for LEDs, the operation is open-drain: > > The LSn LED select registers determine the source of the LED data. >

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > On Sat, Sep 9, 2017 at 1:42 AM, Julia Lawall wrote: > > > > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > > > >> Return the return value of a function directly, instead of first saving it > >> in a variable and then returning

Re: [PATCH v2 40/40] tracing: Add trace_event_buffer_reserve() variant that allows recursion

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 16:27 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:52 -0500 > Tom Zanussi wrote: > > > Synthetic event generation requires the reservation of a second event > > while the reservation of a previous event is still in progress. The > >

[PATCH 1/3] [media] s5p-mfc: Delete an error message for a failed memory allocation in s5p_mfc_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:25:17 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH 2/3] [media] s5p-mfc: Improve a size determination in s5p_mfc_alloc_memdev()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:30:09 +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

Re: [RFC v2 PATCH] x86/boot: Add the secdata section to the setup header

2017-09-08 Thread hpa
On September 8, 2017 2:45:10 AM PDT, Gary Lin wrote: >On Thu, Sep 07, 2017 at 02:16:21PM -0700, h...@zytor.com wrote: >> On September 7, 2017 2:44:51 AM PDT, Gary Lin wrote: >> >On Thu, Jun 01, 2017 at 08:46:26AM +, Ard Biesheuvel wrote: >> >> On 1 June 2017 at

Re: execve(NULL, argv, envp) for nommu?

2017-09-08 Thread Rob Landley
On 09/05/2017 08:12 PM, Rob Landley wrote: > On 09/05/2017 08:24 AM, Alan Cox wrote: honoring the suid bit if people feel that way. I just wanna unblock vfork() while still running this code. >> >> Would it make more sense to have a way to promote your vfork into a >> fork when you hit

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

2017-09-08 Thread Dan Carpenter
On Fri, Sep 08, 2017 at 10:27:27AM -0700, Badhri Jagan Sridharan wrote: > >> + > >> + for (i = 1; i < nr_pdo; i++) { > >> + if (pdo_type(pdo[i]) < pdo_type(pdo[i - 1])) { > >> + tcpm_log_force(port, > >> +" err:PDOs should be

[PATCH 2/2] mm, x86: Fix performance regression in get_user_pages_fast()

2017-09-08 Thread Kirill A. Shutemov
0-day found[1] performance regression that was tracked down to switching x86 to generic get_user_pages_fast(). The regression was caused by the fact that we now use local_irq_save() + local_irq_restore() in get_user_pages_fast() to disable interrupts. In x86 implementation local_irq_disable() +

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Borislav Petkov
On Fri, Sep 08, 2017 at 02:47:00PM -0700, Andy Lutomirski wrote: > Any chance you could test with CONFIG_DEBUG_VM=y? There are lots of > potentially useful assertions in that code. > > Can you also post your /proc/cpuinfo? And can you re-confirm that a > problematic guest kernel is causing

[PATCH 1/2] mm: Add infrastructure for get_user_pages_fast() benchmarking

2017-09-08 Thread Kirill A. Shutemov
Performance of get_user_pages_fast() is critical for some workloads, but it's tricky to test it directly. This patch provides /sys/kernel/debug/gup_benchmark that helps with testing performance of it. See tools/testing/selftests/vm/gup_benchmark.c for userspace counterpart. Signed-off-by:

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2017-09-08 Thread Casey Schaufler
On 9/8/2017 9:40 AM, Stephen Smalley wrote: > commit d178bc3a708f39cbfefc3fab37032d3f2511b4ec ("user namespace: usb: > make usb urbs user namespace aware (v2)") changed kill_pid_info_as_uid > to kill_pid_info_as_cred, saving and passing a cred structure instead of > uids. Since the secid can be

Re: [GIT PULL] First batch of KVM changes for v4.14

2017-09-08 Thread Linus Torvalds
On Fri, Sep 8, 2017 at 7:30 AM, Radim Krčmář wrote: > > Topic branch merges in s390 and powerpc > are already in mainline -- would you prefer to see the expected result > after merge instead of what `git request-pull` produces? So generally, if you do the test-merge anyway

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-08 Thread Theodore Ts'o
On Fri, Sep 08, 2017 at 02:48:51PM +1000, James Morris wrote: > > Mimi and Christoph worked together on this over several iterations -- I'll > let them respond. Mimi --- we should chat next week in LA. I've been working on a design internally at work which proposes a generic VFS-layer library

[PATCH] gpio: dwapb: Add wakeup source support

2017-09-08 Thread Hoan Tran
This patch supports irq_set_wake for dwapb gpio. It allows GPIOs to be configured as wakeup sources and wake the system from suspend. Signed-off-by: Hoan Tran --- drivers/gpio/gpio-dwapb.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 2/9] Implement containers as kernel objects

2017-09-08 Thread Paul Moore
On Fri, Aug 18, 2017 at 4:03 AM, Richard Guy Briggs wrote: > On 2017-08-16 18:21, Paul Moore wrote: >> On Mon, Aug 14, 2017 at 1:47 AM, Richard Guy Briggs wrote: >> > Hi David, >> > >> > I wanted to respond to this thread to attempt some constructive feedback,

Re: [PATCH v2 35/40] tracing: Reverse the order event_mutex/trace_types_lock are taken

2017-09-08 Thread Steven Rostedt
On Fri, 8 Sep 2017 15:41:36 -0400 Steven Rostedt wrote: > On Fri, 8 Sep 2017 15:31:35 -0400 > Steven Rostedt wrote: > > > On Tue, 5 Sep 2017 16:57:47 -0500 > > Tom Zanussi wrote: > > > > > Change the order event_mutex

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > Return the return value of a function directly, instead of first saving it in > a variable and then returning it. This change was made using the following Your commit message should respect the 80 character limit. The above is one very long line. >

[GIT PULL] platform-drivers-x86 for 4.14-1

2017-09-08 Thread Darren Hart
Hi Linus, The previously merged dell-wmi fix noted in the tag message causes a merge conflict which resolves easily by accepting the hunks from this tag. The following changes since commit 972777171f33f9932f51feebe42dbcc1b475d01a: platform/x86: wmi: Fix error handling in acpi_wmi_init()

Re: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Helge Deller
On 08.09.2017 08:23, Sergey Senozhatsky wrote: > On (09/06/17 22:27), Helge Deller wrote: >> This patch series fixes the wrong usages of the %pF and %pS printk format >> specifiers throughout the kernel code. >> >> Both specifiers have the same result on most architectures. But on ia64, >> ppc64

[PATCH] [media] tuners: mxl5005s: make arrays static const, reduces object code size

2017-09-08 Thread Colin King
From: Colin Ian King Don't populate the arrays RegAddr on the stack, instead make them static const. Makes the object code smaller by over 980 bytes: Before: textdata bss dec hex filename 64923 304 0 65227fecb

[PATCH] libnvdimm, btt: use %z format string modifier for size_t

2017-09-08 Thread Arnd Bergmann
We get a warning about an two incorrect format strings: drivers/nvdimm/btt.c: In function 'btt_map_init': include/linux/device.h:1472:23: error: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t {aka unsigned int}' [-Werror=format=] This changes the %lx

Re: [PATCH v2] tpm-dev-common: Reject too short writes

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 02:26:42PM +, alexander.stef...@infineon.com wrote: > > On Wed, Sep 06, 2017 at 02:19:28PM +, > > alexander.stef...@infineon.com wrote: > > > > On Wed, Sep 06, 2017 at 03:42:33PM +0300, Jarkko Sakkinen wrote: > > > > > On Mon, Sep 04, 2017 at 07:36:42PM +0200,

[PATCH 2/3] perf/x86/msr: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang Goldmont, Glodmont plus and Xeon Phi have MSR_SMI_COUNT as well. Signed-off-by: Kan Liang --- arch/x86/events/msr.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index

[PATCH 1/3] perf/x86/intel/cstate: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang Skylake server uses the same C-state residency events as Sandy Bridge. Denverton and Gemini lake use the same C-state residency events as Apollo Lake. Signed-off-by: Kan Liang --- arch/x86/events/intel/cstate.c | 4 1 file

[PATCH 3/3] perf/x86/intel/rapl: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang DENVERTON and GEMINI_LAKE support same RAPL counters as Apollo Lake. Signed-off-by: Kan Liang --- arch/x86/events/intel/rapl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/events/intel/rapl.c

Re: [PATCH v3 06/13] xen/pvcalls: implement bind command

2017-09-08 Thread Stefano Stabellini
On Sat, 12 Aug 2017, Boris Ostrovsky wrote: > On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > > Send PVCALLS_BIND to the backend. Introduce a new structure, part of > > struct sock_mapping, to store information specific to passive sockets. > > > > Introduce a status field to keep track of the

Re: [PATCH] tpm: constify transmit data pointers

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 10:58:55PM +0200, Arnd Bergmann wrote: > On Thu, Sep 7, 2017 at 6:24 PM, Jarkko Sakkinen > wrote: > > On Thu, Sep 07, 2017 at 03:30:45PM +0200, Arnd Bergmann wrote: > >> > > > > Thank you Arnd. Do you mind if squash this to Colin's commit

RE: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Yu, Fenghua
> From: Sergey Senozhatsky [mailto:sergey.senozhatsky.w...@gmail.com] > On (09/07/17 16:05), Luck, Tony wrote: > +static inline bool __mod_text_address(struct module *mod, > + unsigned long addr) { > + /* Make sure it's within the text section. */ > +

<    2   3   4   5   6   7   8   9   10   11   >