Re: [PATCHv1, RFC 00/33] ext4: support of huge pages

2016-07-26 Thread Kirill A. Shutemov
On Tue, Jul 26, 2016 at 01:29:38PM -0400, Theodore Ts'o wrote: > On Tue, Jul 26, 2016 at 03:35:02AM +0300, Kirill A. Shutemov wrote: > > Here's the first version of my patchset which intended to bring huge pages > > to ext4. It's not yet ready for applying or serious use, but good enough > > to sho

[PATCH 10/12] staging: lustre: Rename jump labels in mgc_process_recover_log()

2016-07-26 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 26 Jul 2016 19:29:11 +0200 Adjust jump targets according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --gi

[PATCH 5/9] usb: gadget: f_midi: refactor state machine

2016-07-26 Thread Felipe F. Tonello
This refactor results in a cleaner state machine code and promotes consistency, readability, and maintanability of this driver. This refactor state machine was well tested and it is currently running in production code and devices. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/functio

[PATCH v2 0/9] Gadget endpoint request allocation and MIDI

2016-07-26 Thread Felipe F. Tonello
As discussed with Baolin Wang, Michal Nazarewicz and Felipe Balbi. I propose the forced buffer alignment of OUT endpoints USB requests. This is implemented by patches #1 and #2. That not just simplifies the driver code, but it also prevents nasty bugs when buflen is not aligned or even less than w

[PATCH 4/9] usb: gadget: f_midi: defaults buflen sizes to 512

2016-07-26 Thread Felipe F. Tonello
512 is the value used by wMaxPacketSize, as specified by the USB Spec. This makes sure this driver uses, by default, the most optimal value for IN and OUT endpoint requests. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 2 +- drivers/usb/gadget/legacy/gmidi.c| 2

[PATCH 6/9] usb: gadget: f_midi: drop substreams when disabling endpoint

2016-07-26 Thread Felipe F. Tonello
This change makes sure that the ALSA buffers are cleaned if an endpoint becomes disabled. Before this change, if the internal ALSA buffer did overflow, the MIDI function would stop sending MIDI to the host. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 27 +

Re: [PATCH] xtensa: Partially Revert "xtensa: Remove unnecessary of_platform_populate with default match table"

2016-07-26 Thread Rob Herring
On Tue, Jul 26, 2016 at 1:50 PM, Max Filippov wrote: > On Tue, Jul 26, 2016 at 01:01:32PM -0500, Rob Herring wrote: >> This partially reverts commit 69d99e6c0d62 keeping only the main >> purpose of the original commit which is the removal of >> of_platform_populate() call. The moving of of_clk_ini

[PATCH 12/12] staging: lustre: Delete an unnecessary variable initialisation in mgc_process_recover_log()

2016-07-26 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 26 Jul 2016 19:50:40 +0200 The variable "req" will eventually be set to an appropriate pointer from a call of the ptlrpc_request_alloc() function. Thus omit the explicit initialisation which became unnecessary with a previous update step. Signed-off-by: Markus Elf

[PATCH v2 7/9] usb: gadget: remove useless parameter in alloc_ep_req()

2016-07-26 Thread Felipe F. Tonello
This parameter was not really necessary and gadget drivers would almost always create an inline function to pass the same value to len and default_len. So this patch also removes duplicate code from few drivers. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_hid.c| 1

Re: [PATCH v2 7/9] usb: gadget: remove useless parameter in alloc_ep_req()

2016-07-26 Thread Felipe Ferreri Tonello
Forgot to mention, but changes from v1 is a typo alloc_ep_req(). On 26/07/16 20:18, Felipe F. Tonello wrote: > This parameter was not really necessary and gadget drivers would almost always > create an inline function to pass the same value to len and default_len. > > So this patch also removes d

Re: [PATCH] mm: Move readahead limit outside of readahead, and advisory syscalls

2016-07-26 Thread Kyle Walker
On Mon, Jul 25, 2016 at 4:47 PM, Andrew Morton wrote: > > Can this suffering be quantified please? > The observed suffering is primarily visible within an IBM Qradar installation. From a high level, the lower limit to the amount of advisory readahead pages results in a 3-5x increase in time neces

[PATCH 2/9] usb: gadget: align buffer size when allocating for OUT endpoint

2016-07-26 Thread Felipe F. Tonello
Using usb_ep_align() makes sure that the buffer size for OUT endpoints is always aligned with wMaxPacketSize (512 usually). This makes sure that no buffer has the wrong size, which can cause nasty bugs. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/u_f.c | 3 +++ 1 file changed, 3 inse

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-26 Thread Michael Kerrisk (man-pages)
Hello Andrew, On 26 July 2016 at 20:25, Andrew Vagin wrote: > On Tue, Jul 26, 2016 at 10:03:25AM +0200, Michael Kerrisk (man-pages) wrote: >> On 07/26/2016 04:54 AM, Andrew Vagin wrote: >> > On Mon, Jul 25, 2016 at 09:59:43AM -0500, Eric W. Biederman wrote: >> > > "Michael Kerrisk (man-pages)" w

[PATCH 3/9] usb: gadget: f_midi: remove alignment code for OUT endpoint

2016-07-26 Thread Felipe F. Tonello
The new version of alloc_ep_req() already aligns the buffer size to wMaxPacketSize on OUT endpoints. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/

Re: [lustre-devel] [PATCH 05/12] staging: lustre: Optimize error handling in class_register_type()

2016-07-26 Thread Oleg Drokin
On Jul 26, 2016, at 3:11 PM, Oleg Drokin wrote: > > On Jul 26, 2016, at 3:05 PM, SF Markus Elfring wrote: > >> From: Markus Elfring >> Date: Tue, 26 Jul 2016 14:23:23 +0200 >> >> Return a constant error code without storing it in the local variable "rc" >> after a failed memory allocation at

Re: [PATCH 10/32] x86/intel_rdt: Adds support to enable Code Data Prioritization

2016-07-26 Thread Nilay Vaish
On 12 July 2016 at 20:02, Fenghua Yu wrote: > From: Vikas Shivappa > > On Intel SKUs that support Code Data Prioritization(CDP), intel_rdt > operates in 2 modes - legacy cache allocation mode/default or CDP mode. > > When CDP is enabled, the number of available CLOSids is halved. Hence the > enab

Re: Why does BIOS assign memory to 16 byte BAR

2016-07-26 Thread Yinghai Lu
On Tue, Jul 26, 2016 at 8:43 AM, Bharat Kumar Gogada wrote: >> > > We have only one End point connected to our root port. >> > > >> > > Here is the log: >> > > [2.319289] nwl-pcie fd0e.pcie: Link is UP >> > > [2.319332] PCI host bridge /amba/pcie@fd0e ranges: >> > > [2.319349]

[PATCH] ASoC: dapm: Add a dummy snd_pcm_runtime to avoid NULL pointer access

2016-07-26 Thread Nicolin Chen
The SND_SOC_DAPM_PRE_PMU case would call startup()/hw_params() that might access substream->runtime through other functions. For example: Unable to handle kernel NULL pointer dereference at virtual address [] PC is at snd_pcm_hw_rule_add+0x24/0x1b0 LR is at snd_pcm_hw_constraint_list+0x20/0x2

[GIT PULL] Changes for 4.8

2016-07-26 Thread Juergen Gross
Hi Linus, please consider pulling a patch series for 4.8 from: https://github.com/jgross1/linux.git tags/for-linus-4-8 Unfortunately 2 of the 6 patches got no Acks as the maintainers didn't react in spite of multiple pings and resends. The core modification in the scheduler got an Ack from Pet

Re: [PATCH] xtensa: Partially Revert "xtensa: Remove unnecessary of_platform_populate with default match table"

2016-07-26 Thread Max Filippov
On Tue, Jul 26, 2016 at 02:13:52PM -0500, Rob Herring wrote: > >> I tried briefly running under QEMU, but didn't have success. If anyone has > >> up to date instructions that would be helpful as using these[1] didn't > >> seem to work. > > > > I think they're up to date. Another thing that need to

Re: [PATCH] s390/perf: fix 'start' address of module's map

2016-07-26 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 21, 2016 at 11:10:51AM +0800, Song Shan Gong escreveu: > At preset, when creating module's map, perf gets 'start' address by parsing > '/proc/modules', but it's module base address, isn't the start address of > '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and >

[PATCH 0/3] ntb: Asynchronous NTB devices support

2016-07-26 Thread Serge Semin
Currently developed NTB-bus supports AMD and Intel Non-transparent PCIe-bridges only. These bridges implement "synchronous" interfaces, which means that memory window translated addresses can be direcly specified from one side to another by writing to a corresponding value to a register. Unlike Int

[PATCH] serial: 8250_pci: Use symbolic constants for EXAR's MPIO registers

2016-07-26 Thread Jan Kiszka
Less magics that only require comments. Signed-off-by: Jan Kiszka --- drivers/tty/serial/8250/8250_pci.c | 42 +++--- include/uapi/linux/serial_reg.h| 13 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/drivers/tty/serial/8250/825

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-26 Thread Eric W. Biederman
Andrew Vagin writes: > On Mon, Jul 25, 2016 at 09:59:43AM -0500, Eric W. Biederman wrote: >> "Michael Kerrisk (man-pages)" writes: > > [snip] > >> [snip] >> >>> So, from my point of view, the important piece that was missing from >> >>> your commit message was the note to use readlink("/proc/sel

[PATCH 1/3] ntb: Add asynchronous devices support to NTB-bus interface

2016-07-26 Thread Serge Semin
Currently supported AMD and Intel Non-transparent PCIe-bridges are synchronous devices, so translated base address of memory windows can be direcly written to peer registers. But there are some IDT PCIe-switches which implement complex interfaces using Lookup Tables of translation addresses. Due to

[PATCH 3/3] ntb: Test client drivers for asynchronous NTB devices

2016-07-26 Thread Serge Semin
There are three drivers to independently test all interfaces implemented by the IDT 89HPES*NT* NTB driver. Doorbells are tested by new NTB Doorbell Pingpong client driver. It implements the so-named algorithm. Driver starts working from setting the peer doorbell of the last locally set doorbell bi

Re: staging: lustre: One function call less in class_register_type() after error detection

2016-07-26 Thread SF Markus Elfring
> But kobject_put() already checks for NULL, right? Yes. - Such an input parameter validation is performed by the function implementation. > you just submitted another batch about that in other area. I sent update suggestions because of this function property for two Linux software modules in t

Re: [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Jason Cooper
Hi William! On Tue, Jul 26, 2016 at 11:22:26AM -0700, william.c.robe...@intel.com wrote: > From: William Roberts > > This patch introduces the ability randomize mmap locations where the > address is not requested, for instance when ld is allocating pages for > shared libraries. It chooses to ran

Re: [LKP] More information please. Re: [fs] 54cc07a761: BUG: kernel test crashed

2016-07-26 Thread Eric W. Biederman
Fengguang Wu writes: > On Tue, Jul 26, 2016 at 09:52:40AM -0500, Eric W. Biederman wrote: >>Fengguang Wu writes: >>> On Mon, Jul 25, 2016 at 01:57:00PM -0500, Eric W. Biederman wrote: kernel test robot writes: >>[snip] > > [ 19.206454] VFS: Warning: trinity-c0 using old stat() cal

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21 16:49:21 2016 -0600 > >

RE: [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Roberts, William C
> -Original Message- > From: Jason Cooper [mailto:ja...@lakedaemon.net] > Sent: Tuesday, July 26, 2016 1:03 PM > To: Roberts, William C > Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; kernel- > harden...@lists.openwall.com; a...@linux-foundation.org; > keesc...@chromium.org

Re: staging: lustre: Optimize error handling in class_register_type()

2016-07-26 Thread SF Markus Elfring
> NAK. > when you do this, the next statement below breaks: I wonder about this conclusion. >> type = kzalloc(sizeof(*type), GFP_NOFS); >> if (!type) >> -return rc; >> +return -ENOMEM; >> >> type->typ_dt_ops = kzalloc(sizeof(*type->typ_dt_ops), GFP_NOFS); >

Re: [kernel-hardening] [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Rik van Riel
On Tue, 2016-07-26 at 11:22 -0700, william.c.robe...@intel.com wrote: > From: William Roberts > > This patch introduces the ability randomize mmap locations where the > address is not requested, for instance when ld is allocating pages > for > shared libraries. It chooses to randomize based on th

Re: [PATCH v2] i2c: i2c-cros-ec-tunnel: Reduce logging noise

2016-07-26 Thread Guenter Roeck
On Tue, Jul 26, 2016 at 11:20:31AM -0700, Doug Anderson wrote: > Hi, > > On Mon, Jul 25, 2016 at 1:58 PM, Guenter Roeck wrote: > > If an i2c access through i2c-cros-ec-tunnel returns an error, the following > > log message is seen on the console. > > > > cros-ec-i2c-tunnel ff20.spi:ec@0:i2c-t

Re: [PATCH v2 09/10] netns: Add a limit on the number of net namespaces

2016-07-26 Thread Eric W. Biederman
Andrei Vagin writes: > On Thu, Jul 21, 2016 at 9:40 AM, Eric W. Biederman > wrote: >> index 2c2eb1b629b1..a489f192d619 100644 >> --- a/net/core/net_namespace.c >> +++ b/net/core/net_namespace.c >> @@ -266,6 +266,16 @@ struct net *get_net_ns_by_id(struct net *net, int id) >> return peer;

RE: [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Roberts, William C
RESEND fixing mm-list email > > -Original Message- > > From: Jason Cooper [mailto:ja...@lakedaemon.net] > > Sent: Tuesday, July 26, 2016 1:03 PM > > To: Roberts, William C > > Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; kernel- > > harden...@lists.openwall.com; a...@

Re: [PATCH] serial: 8250_pci: Use symbolic constants for EXAR's MPIO registers

2016-07-26 Thread Greg Kroah-Hartman
On Tue, Jul 26, 2016 at 09:50:37PM +0200, Jan Kiszka wrote: > Less magics that only require comments. > > Signed-off-by: Jan Kiszka > --- > drivers/tty/serial/8250/8250_pci.c | 42 > +++--- > include/uapi/linux/serial_reg.h| 13 > 2 files changed

Re: [PATCH] s390/perf: fix 'start' address of module's map

2016-07-26 Thread Christian Borntraeger
On 07/26/2016 09:50 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 21, 2016 at 11:10:51AM +0800, Song Shan Gong escreveu: >> At preset, when creating module's map, perf gets 'start' address by parsing >> '/proc/modules', but it's module base address, isn't the start address of >> '.text' section

Re: [PATCH] pwm: cros_ec: add __packed to prevent padding

2016-07-26 Thread Guenter Roeck
On Tue, Jul 26, 2016 at 11:22:13AM -0700, Brian Norris wrote: > While the particular usage in question is likely safe (struct > cros_ec_command is 32-bit aligned, followed by <=32-bit fields), it's > been suggested this is not a great pattern to follow for the general > case -- for example, if we f

RE: [kernel-hardening] [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Roberts, William C
> -Original Message- > From: Rik van Riel [mailto:r...@redhat.com] > Sent: Tuesday, July 26, 2016 1:12 PM > To: kernel-harden...@lists.openwall.com; ja...@lakedaemon.net; linux- > m...@vger.kernel.org; linux-kernel@vger.kernel.org; akpm@linux- > foundation.org > Cc: keesc...@chromium.org;

[PATCH v3 0/7] Introduce the initify gcc plugin

2016-07-26 Thread Emese Revfy
I would like to introduce the initify gcc plugin. The kernel already has a mechanism to free up code and data memory that is only used during kernel or module initialization. This plugin will teach the compiler to find more such code and data that can be freed after initialization. It reduces memor

[PATCH v3 1/7] Move type casts into is_kernel_rodata

2016-07-26 Thread Emese Revfy
so that its parameter can be marked as nocapture. Signed-off-by: Emese Revfy --- mm/util.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/util.c b/mm/util.c index 662cddf..d95f10b 100644 --- a/mm/util.c +++ b/mm/util.c @@ -17,10 +17,10 @@ #include "internal.

Re: [PATCH] mmc: sdhci-esdhc-imx: avoid unused function warnings

2016-07-26 Thread Ulf Hansson
On 26 July 2016 at 14:32, Arnd Bergmann wrote: > The driver has just gained a slightly incorrect pm-sleep implementation that > causes > warnings when CONFIG_PM is set but CONFIG_PM_SLEEP is not: > > drivers/mmc/host/sdhci-esdhc-imx.c:1302:12: error: 'sdhci_esdhc_resume' > defined but not used [

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21 16:49:21 2016 -0600 >

[PATCH v3 2/7] Split up struct warn_args

2016-07-26 Thread Emese Revfy
to enable dataflow verification by the initify plugin. This allows marking warn_slowpath* parameters as nocapture and compile time verification of the related dataflows. Signed-off-by: Emese Revfy --- include/asm-generic/bug.h | 5 + kernel/panic.c| 32 --

Re: [PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-26 Thread Bjorn Helgaas
On Wed, Jul 27, 2016 at 12:13:14AM +0800, Rui Wang wrote: > IOAPICs present during system boot aren't added to ioapic_list, > thus are unable to be hot-removed. Fix it by calling > acpi_ioapic_add() during root bus enumeration. > > Signed-off-by: Rui Wang > --- > drivers/acpi/internal.h | 2 --

[PATCH v3 3/7] Constify some function parameters

2016-07-26 Thread Emese Revfy
Initify needs const pointer types, the initify plugin caught some __printf arguments that weren't const yet. Signed-off-by: Emese Revfy --- drivers/isdn/hisax/config.c | 16 drivers/isdn/hisax/hisax.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/d

Re: [PATCH 2/4] x86/ioapic: Fix setup_res() failing to get resource

2016-07-26 Thread Bjorn Helgaas
On Wed, Jul 27, 2016 at 12:13:15AM +0800, Rui Wang wrote: > setup_res() doesn't actually get any resoure because it mistakenly s/resoure/resource/ > checks the return value of acpi_dev_filter_resource_type(), which > returns 0 on success, and 1 on failure. Fix it by taking the return > value of n

[PATCH v3 4/7] Add the initify gcc plugin

2016-07-26 Thread Emese Revfy
The kernel already has a mechanism to free up code and data memory that is only used during kernel or module initialization. This plugin will teach the compiler to find more such code and data that can be freed after initialization. It has two passes. The first one tries to find all functions that

[PATCH v3 5/7] Mark functions with the __nocapture attribute

2016-07-26 Thread Emese Revfy
The nocapture gcc attribute can be on functions only. The attribute takes zero or more signed integer constants as parameters that specify the function parameters to initify when the passed arguments are of const char* type. A negative attribute parameter value means that the corresponding functio

Re: [PATCH 3/4] x86/ioapic: Fix lost ioapic resource after hot-removal and hotadd

2016-07-26 Thread Bjorn Helgaas
On Wed, Jul 27, 2016 at 12:13:16AM +0800, Rui Wang wrote: > ioapic resource at 0xfecx gets lost from /proc/iomem after > hot-removing and then hot-adding the ioapic devices. > > After system boot, in /proc/iomem: > fec0-fecf : PNP0003:00 > fec0-fec003ff : IOAPIC 0 > fec01000-fe

[PATCH v3 6/7] Mark a few functions with the printf attribute

2016-07-26 Thread Emese Revfy
This allows not only compile time format string checking but can also increase the coverage of the initify plugin. Signed-off-by: Emese Revfy --- drivers/scsi/esas2r/esas2r_log.h | 4 ++-- include/acpi/acpiosxf.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dr

[PATCH v3 7/7] Mark functions with the __unverified_nocapture attribute

2016-07-26 Thread Emese Revfy
This attribute disables the compile data flow verification of the designated nocapture parameters of the function. Use it only on function parameters that are difficult for the plugin to analyze. Signed-off-by: Emese Revfy --- include/linux/compiler-gcc.h | 1 + include/linux/compiler.h | 4

Re: [PATCHv2] builddeb: fix file permissions before packaging

2016-07-26 Thread Michal Marek
Dne 22.7.2016 v 14:46 Henning Schild napsal(a): > Builddep is not very explicit about file permissions. Actually the file > permissions in the package are largely influenced by the umask of the > user cloning the git and building the package. If that umask does not > set go+r the resulting linux-he

RE: [PATCH] ACPICA: cleanup method properly on error

2016-07-26 Thread Moore, Robert
/* Put the new state at the head of the walk list */ if (Thread) { AcpiDsPushWalkState (WalkState, Thread); } Is there any chance that Thread could be zero? > -Original Message- > From: Devel [mailto:devel-boun...@acpica.org] On Behalf Of Moore, Robert > Sent: Tu

Re: [PATCH] s390/perf: fix 'start' address of module's map

2016-07-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 26, 2016 at 10:14:18PM +0200, Christian Borntraeger escreveu: > On 07/26/2016 09:50 PM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 21, 2016 at 11:10:51AM +0800, Song Shan Gong escreveu: > >> At preset, when creating module's map, perf gets 'start' address by parsing > >> '/proc/mod

Re: Volunteering for BeFS maintainership

2016-07-26 Thread Luis de Bethencourt
On 26/07/16 18:56, Theodore Ts'o wrote: > On Tue, Jul 26, 2016 at 12:16:24AM +0100, Luis de Bethencourt wrote: >> >> I will wait a few days in case other people want to comment before. >> > > Sounds great! Do you have a git tree set up for your befs development? > Thank you :) Yes, I have the

[PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng

2016-07-26 Thread Maxime Ripard
Hi, Here is the previous A64 patches made by Andre [1], reworked to use the new sunxi-ng clock framework. This uses the current H3 clock code, as both are really similar. The first patches are just meant to rework slightly the H3 code, before introducing the A64-related patches. Some WiP stuff h

[PATCH 01/13] clk: sunxi-ng: mux: Rename mux macro to be consistent

2016-07-26 Thread Maxime Ripard
Rename the internal mux macro to be consistent with the other internal structure macros. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu_div.h | 2 +- drivers/clk/sunxi-ng/ccu_mp.h | 2 +- drivers/clk/sunxi-ng/ccu_mux.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) dif

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit 13523309495cdbd57a0d344c0d5d574987af007f >> > Auth

Re: [PATCH 10/32] x86/intel_rdt: Adds support to enable Code Data Prioritization

2016-07-26 Thread Shivappa Vikas
On Tue, 26 Jul 2016, Nilay Vaish wrote: On 12 July 2016 at 20:02, Fenghua Yu wrote: From: Vikas Shivappa On Intel SKUs that support Code Data Prioritization(CDP), intel_rdt operates in 2 modes - legacy cache allocation mode/default or CDP mode. When CDP is enabled, the number of available

[PATCH 09/13] arm64: sunxi: Kconfig: add essential pinctrl driver

2016-07-26 Thread Maxime Ripard
From: Andre Przywara The pinctrl driver is essential for the Allwinner SoCs to work. Add the driver's config symbol to the Kconfig entry to always compile it in. We can't use the arm approach to make the _driver's_ Kconfig symbol def_bool, because we lack the MACH_* symbols in arm64. Signed-off-

[PATCH 08/13] clk: sunxi-ng: Add A64 clocks

2016-07-26 Thread Maxime Ripard
Add the A64 CCU clocks set. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/clock/sunxi-ccu.txt| 1 + drivers/clk/sunxi-ng/Kconfig | 13 +- drivers/clk/sunxi-ng/Makefile | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-a64.h |

[PATCH 05/13] clk: sunxi-ng: sun8i: Rename H3 only clocks

2016-07-26 Thread Maxime Ripard
Add a suffix for the H3-only clocks to prepare the introduction of the A64 clocks. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 140 ++-- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c

[PATCH 11/13] Documentation: devicetree: add vendor prefix for Pine64

2016-07-26 Thread Maxime Ripard
From: Andre Przywara Signed-off-by: Andre Przywara Acked-by: Rob Herring [Maxime: Change title prefix to match the usual style] Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/b

[PATCH 03/13] clk: sunxi-ng: sun8i: Rename DDR and video plls

2016-07-26 Thread Maxime Ripard
In order to deal with the A64 that will have several video and ddr plls, rename the first ones to add an index. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit 13523309495cdbd57a0d344c0d5d574987af007f >> > Aut

[PATCH 06/13] clk: sunxi-ng: sun8i: Move fixed factors around

2016-07-26 Thread Maxime Ripard
Move the fixed factors clocks before the ccu_common list so that we can separate the clocks definitions and the registration part. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/

[PATCH 02/13] clk: sunxi-ng: mux: Add mux table support

2016-07-26 Thread Maxime Ripard
Add support for the table based muxes, and add macros to register them. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu_mux.c | 14 ++ drivers/clk/sunxi-ng/ccu_mux.h | 27 --- 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/drivers/cl

[PATCH 10/13] arm64: Kconfig: sunxi: add PINCTRL

2016-07-26 Thread Maxime Ripard
From: Andre Przywara Add required PINCTRL symbol to cover non-defconfig setups. Signed-off-by: Andre Przywara Signed-off-by: Maxime Ripard --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 4cc

[PATCH 04/13] clk: sunxi-ng: sun8i: Fix register offset

2016-07-26 Thread Maxime Ripard
Some registers offset were having one 0 too many compared to the others. Remove it. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c b/drivers/clk/sunxi-ng/ccu-sun8i

[PATCH 07/13] clk: sunxi-ng: sun8i: Prefix clock defines by SoC Name

2016-07-26 Thread Maxime Ripard
Since the A64 and H3 have a slightly different clock set, they will have different opaque clock numbers set as well. Make that obvious by using the SoC name in the defines. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3.dtsi | 62 - drivers/clk/sunxi-ng/ccu-sun8i-h

[PATCH 13/13] arm64: dts: add Pine64 support

2016-07-26 Thread Maxime Ripard
From: Andre Przywara The Pine64 is a cost-efficient development board based on the Allwinner A64 SoC. There are three models: the basic version with Fast Ethernet and 512 MB of DRAM (Pine64) and two Pine64+ versions, which both feature Gigabit Ethernet and additional connectors for touchscreens a

[PATCH 12/13] arm64: dts: add Allwinner A64 SoC .dtsi

2016-07-26 Thread Maxime Ripard
From: Andre Przywara The Allwinner A64 SoC is a low-cost chip with 4 ARM Cortex-A53 cores and the typical tablet / TV box peripherals. The SoC is based on the (32-bit) Allwinner H3 chip, sharing most of the peripherals and the memory map. Although the cores are proper 64-bit ones, the whole SoC i

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:31:00 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> > The following commit:

Re: [tip:x86/microcode] x86/microcode/intel: Fix initrd loading with CONFIG_RANDOMIZE_MEMORY=y

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 10:37 AM, tip-bot for Borislav Petkov wrote: > Commit-ID: efaad554b4ffae1840a2759e09e21325ddbc8b05 > Gitweb: http://git.kernel.org/tip/efaad554b4ffae1840a2759e09e21325ddbc8b05 > Author: Borislav Petkov > AuthorDate: Tue, 26 Jul 2016 11:51:38 +0200 > Committer: In

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

2016-07-26 Thread Darren Hart
Hi Linus, The following changes since commit 5edb56491d4812c42175980759da53388e5d86f5: Linux 4.7-rc3 (2016-06-12 07:20:35 -0700) are available in the git repository at: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git tags/platform-drivers-x86-v4.8-1 for you to fetch ch

Re: [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Nick Kralevich
My apologies in advance if I misunderstand the purposes of this patch. IIUC, this patch adds a random gap between various mmap() mappings, with the goal of ensuring that both the mmap base address and gaps between pages are randomized. If that's the goal, please note that this behavior has caused

Re: [PATCH V2 3/6] perf tools: add infrastructure for PMU specific configuration

2016-07-26 Thread Jiri Olsa
On Fri, Jul 22, 2016 at 12:24:48PM -0600, Mathieu Poirier wrote: SNIP > > diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y > > --- a/tools/perf/util/parse-events.y > > +++ b/tools/perf/util/parse-events.y > > @@ -602,12 +602,12 @@ PE_NAME array '=' PE_VALUE > >

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 10:29 AM, Michael Kerrisk (man-pages) wrote: > On 26 July 2016 at 18:52, Kees Cook wrote: >> On Tue, Jul 26, 2016 at 8:06 AM, Eric W. Biederman >> wrote: >>> "Michael Kerrisk (man-pages)" writes: >>> Hello Eric, I realized I had a question after the last m

Re: [PATCH] serial: 8250_pci: Use symbolic constants for EXAR's MPIO registers

2016-07-26 Thread Jan Kiszka
On 2016-07-26 22:14, Greg Kroah-Hartman wrote: > On Tue, Jul 26, 2016 at 09:50:37PM +0200, Jan Kiszka wrote: >> Less magics that only require comments. >> >> Signed-off-by: Jan Kiszka >> --- >> drivers/tty/serial/8250/8250_pci.c | 42 >> +++--- >> include/uapi/lin

Re: [PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-26 Thread Bjorn Helgaas
On Tue, Jul 26, 2016 at 03:19:32PM -0500, Bjorn Helgaas wrote: > On Wed, Jul 27, 2016 at 12:13:14AM +0800, Rui Wang wrote: > > IOAPICs present during system boot aren't added to ioapic_list, > > thus are unable to be hot-removed. Fix it by calling > > acpi_ioapic_add() during root bus enumeration.

[PATCH 6/6] drm/vc4: Fix oops when userspace hands in a bad BO.

2016-07-26 Thread Eric Anholt
We'd end up NULL pointer dereferencing because we didn't take the error path out in the parent. Fixes igt vc4_lookup_fail test. Signed-off-by: Eric Anholt Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.") Cc: sta...@vger.kernel.org --- drivers/gpu/drm/vc4/vc4_gem.c | 2 +- 1 f

[PATCH 5/6] drm/vc4: Fix overflow mem unreferencing when the binner runs dry.

2016-07-26 Thread Eric Anholt
Overflow memory handling is tricky: While it's still referenced by the BPO registers, we want to keep it from being freed. When we are putting a new set of overflow memory in the registers, we need to assign the old one to the last rendering job using it. We were looking at "what's currently runn

[PATCH 2/6] drm/vc4: Use drm_malloc_ab to fix large rendering jobs.

2016-07-26 Thread Eric Anholt
If you exceeded the size that kmalloc would return, you'd get a dmesg warning and an error from the job submit. We can handle much larger allocations with vmalloc, and drm_malloc_ab makes that decision. Fixes failure in piglit's scissor-many. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/

[PATCH 3/6] drm/vc4: Fix handling of a pm_runtime_get_sync() success case.

2016-07-26 Thread Eric Anholt
If the device was already up, a 1 is returned instead of 0. We were erroring out, leading the 3D driver to sometimes fail at screen initialization (generally with ENOENT returned to it). Signed-off-by: Eric Anholt Fixes: af713795c59f ("drm/vc4: Add a getparam ioctl for getting the V3D identity

[PATCH 0/6] vc4 miscellaneous v3d fixes

2016-07-26 Thread Eric Anholt
Here are a bunch of miscellaneous fixes for 3D I've come up with while doing a bunch of piglit runs. One has a new IGT test sent out, and I've got a test almost ready for large CLs. Eric Anholt (6): drm/vc4: Use drm_free_large() on handles to match its allocation. drm/vc4: Use drm_malloc_ab t

[PATCH 1/6] drm/vc4: Use drm_free_large() on handles to match its allocation.

2016-07-26 Thread Eric Anholt
If you managed to exceed the limit to switch to vmalloc, we'd use the wrong free. Signed-off-by: Eric Anholt Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.") Cc: sta...@vger.kernel.org --- drivers/gpu/drm/vc4/vc4_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> > The following commit:

[PATCH 4/6] drm/vc4: Free hang state before destroying BO cache.

2016-07-26 Thread Eric Anholt
The BO cache will complain if BOs are still allocated when we try to destroy it (since freeing those BOs would try to hit the cache). You could hit this if you were to unload the module after a GPU hang. Signed-off-by: Eric Anholt Fixes: 214613656b51 ("drm/vc4: Add an interface for capturing the

Re: [PATCH] Coccinelle: Script to replace allocate and memcpy with zalloc functions

2016-07-26 Thread Michal Marek
Dne 23.7.2016 v 23:00 Amitoj Kaur Chawla napsal(a): > This script finds instances of allocate and memcpy which can be > replaced with a direct call to zalloc equivalent of a function. > > Signed-off-by: Amitoj Kaur Chawla > --- > scripts/coccinelle/api/zalloc.cocci | 556 > +

Re: [PATCH 1/3] net: ethernet: ti: cpdma: fix lockup in cpdma_ctlr_destroy()

2016-07-26 Thread ivan.khoronzhuk
On 26.07.16 19:02, Grygorii Strashko wrote: On 07/23/2016 09:24 AM, Ivan Khoronzhuk wrote: On 22.07.16 16:58, Grygorii Strashko wrote: Fix deadlock in cpdma_ctlr_destroy() which is triggered now on cpsw module removal: cpsw_remove() - cpdma_ctlr_destroy() - spin_lock_irqsave(&ctlr->loc

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-26 Thread Andrew Vagin
On Tue, Jul 26, 2016 at 09:17:31PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Andrew, > > On 26 July 2016 at 20:25, Andrew Vagin wrote: > > On Tue, Jul 26, 2016 at 10:03:25AM +0200, Michael Kerrisk (man-pages) wrote: > >> On 07/26/2016 04:54 AM, Andrew Vagin wrote: > >> > On Mon, Jul 25, 2

Re: [PATCH] mmc: sdhci-esdhc-imx: avoid unused function warnings

2016-07-26 Thread Arnd Bergmann
On Tuesday, July 26, 2016 10:18:53 PM CEST Ulf Hansson wrote: > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c > > b/drivers/mmc/host/sdhci-esdhc-imx.c > > index 2bb326bbc34a..593e34053c4b 100644 > > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > > @@ -1

[GIT PULL] Power management changes for v4.8-rc1

2016-07-26 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.8-rc1 to receive the main part of power management material for v4.8-rc1 with top-most commit bc841e260c95608921809a2c7481cf6f03bec21a Merge branch 'pm-cpu' on top of commit 523d939ef98fd7126

Re: [PATCH] lkdtm: fix maybe-uninitialized warning

2016-07-26 Thread Arnd Bergmann
On Tuesday, July 26, 2016 8:21:37 AM CEST Kees Cook wrote: > On Tue, Jul 26, 2016 at 5:28 AM, Arnd Bergmann wrote: > > The do_usercopy_stack() function uses uninitialized stack data to initialize > > more of the stack, which causes a warning in some configurations (ARM > > allmodconfig): > > > >

Re: [PATCH v2 0/2] Fix issue with alternatives/paravirt patches

2016-07-26 Thread Josh Poimboeuf
On Thu, Jul 21, 2016 at 01:23:58AM -0400, Jessica Yu wrote: > Hi, > > A few months ago, Chris Arges reported a bug involving alternatives/paravirt > patching that was discussed here [1] and here [2]. To briefly summarize the > bug, patch modules that contained .altinstructions or .parainstructions

Re: [PATCH] [RFC] Introduce mmap randomization

2016-07-26 Thread Jason Cooper
Hi William, On Tue, Jul 26, 2016 at 08:13:23PM +, Roberts, William C wrote: > > > From: Jason Cooper [mailto:ja...@lakedaemon.net] > > > On Tue, Jul 26, 2016 at 11:22:26AM -0700, william.c.robe...@intel.com > > > wrote: > > > > Performance Measurements: > > > > Using strace with -T option and

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:53 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: >> On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki >> wrote: >> > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Raf

[GIT PULL] PNP update for v4.8-rc1

2016-07-26 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pnp-4.8-rc1 to receive a PNP subsystem update for v4.8-rc1 as commit 917c7fc264abb9c470486b157bc7252e53f68fbb PNP: make pnpbios core explicitly non-modular on top of commit a99cde438de0c4c0cecc1d1

<    1   2   3   4   5   6   7   >