Re: [PATCH 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433

2016-12-07 Thread Chanwoo Choi
On 2016년 12월 07일 04:21, Krzysztof Kozlowski wrote: > On Fri, Dec 02, 2016 at 04:18:06PM +0900, Chanwoo Choi wrote: >> This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. >> Exynos5433 has the following AMBA AXI buses to translate data >> between DRAM and sub-blocks. >> >> Following list

Re: [PATCH 0/7] arm: Add livepatch support

2016-12-07 Thread Abel Vesa
On Wed, Dec 07, 2016 at 09:38:07AM +0800, zhouchengming wrote: > On 2016/12/7 1:06, Abel Vesa wrote: > >This is just an idea I've been trying out for a while now. > > > >Just in case somebody wants to play with it, this applies to > >linux-arm/for-next. > > > >Also please note that this was only t

Re: [PATCH 5/8] efi: Get the secure boot status [ver #4]

2016-12-07 Thread David Howells
David Howells wrote: > index d85b9625e836..c418ccc8c98e 100644 > --- a/arch/x86/boot/compressed/head_32.S > +++ b/arch/x86/boot/compressed/head_32.S > @@ -61,6 +61,7 @@ > > __HEAD > ENTRY(startup_32) > + movb$0, BP_secure_boot(%rsi) > #ifdef CONFIG_EFI_STUB > jmp prefe

Re: [PATCH 2/5] x86: remove idle_notifier

2016-12-07 Thread Thomas Gleixner
On Tue, 6 Dec 2016, Pavel Machek wrote: > > From: Len Brown > > > > Upon removal of the i7300_idle driver, the idle_notifer is unused. > > Actually... do we want to keep this this one? There's "cpu is loaded" > led trigger, which is implemented on arm but not on x86. > > I tried to patch proces

Re: [PATCH] dt: bindings: zx: Add header for PM domains specifiers

2016-12-07 Thread Shawn Guo
On Tue, Dec 06, 2016 at 08:21:51AM +0800, Baoyou Xie wrote: > This patch adds header with values used for ZTE 2967 > SoC's power domain driver. > > Signed-off-by: Baoyou Xie > --- > include/dt-bindings/arm/zte_pm_domains.h | 23 +++ Considering that we are adding power domain

[PATCH v3 3/3] tpm_crb: request and relinquish locality 0

2016-12-07 Thread Jarkko Sakkinen
Request and relinquish locality for the driver use in order to be a better citizen in a multi locality environment like TXT. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c | 73 -- 1 file changed, 64 insertions(+), 9 deletions(-) diff -

[PATCH v3 0/3] Locality support for tpm_crb

2016-12-07 Thread Jarkko Sakkinen
The tpm_crb driver should follow the policy of reserving and relinquishing the locality it uses when multiple localities are used, like when TXT is another locality. Jarkko Sakkinen (3): tpm_crb: map locality registers tpm_crb: encapsulate crb_wait_for_reg_32 tpm_crb: request and relinquish

[PATCH v3 2/3] tpm_crb: encapsulate crb_wait_for_reg_32

2016-12-07 Thread Jarkko Sakkinen
Encapsulated crb_wait_for_reg32() so that state changes in other CRB registers than TPM_CRB_CTRL_REQ_x can be waited. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers/

[PATCH v3 1/3] tpm_crb: map locality registers

2016-12-07 Thread Jarkko Sakkinen
In order to provide access to locality registers, this commits adds mapping of the head of the CRB registers, which are located right before the control area. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c | 89 +- 1 file changed, 57 ins

Re: [RFC PATCH 00/23] arm: defconfigs: use kconfig fragments

2016-12-07 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, December 06, 2016 11:03:34 AM Olof Johansson wrote: > On Tue, Dec 6, 2016 at 4:38 AM, Bartlomiej Zolnierkiewicz > wrote: > > Hi, > > > > This RFC patchset starts convertion of ARM defconfigs to use kconfig > > fragments and dynamically generate defconfigs. The goals of this > >

Re: [PATCH 4/7] arm: Add ftrace with regs support

2016-12-07 Thread Robin Murphy
Hi Abel, On 06/12/16 17:06, Abel Vesa wrote: > This adds __ftrace_regs_caller which, unlike __ftrace_caller, > adds register saving/restoring and livepatch handling if > the pc register gets modified by klp_ftrace_handler. > > Signed-off-by: Abel Vesa > --- > arch/arm/kernel/entry-ftrace.S | 49

Re: [PATCH 1/2] Documentation/core-api/device_link: Add initial documentation

2016-12-07 Thread Lukas Wunner
[got complaints on length of Cc: header, so trimming a bit] On Tue, Dec 06, 2016 at 02:41:50AM +0100, Luis R. Rodriguez wrote: > On Sun, Dec 04, 2016 at 01:10:04PM +0100, Lukas Wunner wrote: > > + > > +Device links > > + > > + > > +By default, the driver core only enforces

Re: [PATCH 1/1] net: wireless: intersil: fix improper return value

2016-12-07 Thread Kalle Valo
Pan Bian writes: > Function orinoco_ioctl_commit() returns 0 (indicates success) when the > call to orinoco_lock() fails. Thus, the return value is inconsistent with > the execution status. It may be better to return "-EBUSY" when the call > to orinoco_lock() fails. > > Bugzilla: https://bugzill

Re: [PATCH v4 6/7] IIO: add STM32 timer trigger driver

2016-12-07 Thread Daniel Thompson
On 07/12/16 11:00, Benjamin Gaignard wrote: 2016-12-07 11:50 GMT+01:00 Lee Jones : On Tue, 06 Dec 2016, Benjamin Gaignard wrote: [snip] + +static const char * const triggers0[] = { + TIM1_TRGO, TIM1_CH1, TIM1_CH2, TIM1_CH3, TIM1_CH4, NULL, +}; + +static const char * const triggers1[] = {

Re: [PATCH 15/16] drivers/fsi: Add documentation for GPIO bindings

2016-12-07 Thread Mark Rutland
On Tue, Dec 06, 2016 at 06:14:36PM -0600, Chris Bostic wrote: > From: Chris Bostic > > Add fsi master gpio device tree binding documentation Please see Documentation/devicetree/bindings/submitting-patches.txt. Specifically: * Please put binding documents earlier in the series than code imple

[PATCH] extcon: Restructure multi-line comments to follow codingstyle

2016-12-07 Thread Srikant Ritolia
Aligning all block comments in extcon subsystem as per linux coding style. Found using checkpatch.pl script. Signed-off-by: Srikant Ritolia --- drivers/extcon/extcon-max14577.c |6 -- drivers/extcon/extcon-max77693.c | 12 drivers/extcon/extcon-max77843.c | 24 ++

Re: [PATCH 4/4] KVM: x86: allow hotplug of VCPU with APIC ID over 0xff

2016-12-07 Thread Paolo Bonzini
On 02/12/2016 20:44, Radim Krčmář wrote: > LAPIC after reset is in xAPIC mode, which poses a problem for hotplug of > VCPUs with high APIC ID, because reset VCPU is waiting for INIT/SIPI, > but there is no way to uniquely address it using xAPIC. > > From many possible options, we chose the one t

Re: [PATCH v2] crypto: sun4i-ss: support the Security System PRNG

2016-12-07 Thread Herbert Xu
On Mon, Dec 05, 2016 at 01:57:38PM +0100, Corentin Labbe wrote: > > So how to expose PRNG to user space ? or more generally how to "use" a PRNG ? We do have the algif_rng interface. > I found hisi-rng, crypto4xx_ and exynos-rng which seems to be PRNG used as > hwrng. Thanks for checking. Patch

Re: [PATCH 4/7] arm: Add ftrace with regs support

2016-12-07 Thread Abel Vesa
On Wed, Dec 07, 2016 at 11:58:24AM +, Robin Murphy wrote: > Hi Abel, > > On 06/12/16 17:06, Abel Vesa wrote: > > This adds __ftrace_regs_caller which, unlike __ftrace_caller, > > adds register saving/restoring and livepatch handling if > > the pc register gets modified by klp_ftrace_handler. >

Re: [PATCH 05/16] drivers/fsi: Add fake master driver

2016-12-07 Thread Mark Rutland
On Tue, Dec 06, 2016 at 06:14:26PM -0600, Chris Bostic wrote: > From: Jeremy Kerr > > For debugging, add a fake master driver, that only supports reads, > returning a fixed set of data. > +config FSI_MASTER_FAKE > + tristate "Fake FSI master" > + depends on FSI > + ---help--- > +

[PATCH] extcon: palmas: Fail gracefully if invalid configuration

2016-12-07 Thread Roger Quadros
extcon-palmas must be child of palmas and expects parent's drvdata to be valid. Check for non NULL parent drvdata and fail if it is NULL. Not doing so will result in a NULL pointer dereference later in the probe() parent drvdata is NULL (e.g. misplaced extcon-palmas node in device tree). Signed-of

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread Roger Quadros
Hi, On 29/11/16 14:28, Roger Quadros wrote: > Hi, > > On 29/11/16 13:51, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >>> DCFG.DEVSPD == 0x3 is not valid and we need to set >>> DCFG.DEVSPD to 0x1 for full speed mode. >> >> seems like it has been made invalid somewhere between 1.73a

[PATCH 1/2] config: android-recommended: disable aio support

2016-12-07 Thread Amit Pundir
From: Daniel Micay The aio interface adds substantial attack surface for a feature that's not being exposed by Android at all. It's unlikely that anyone is using the kernel feature directly either. This feature is rarely used even on servers. The glibc POSIX aio calls really use thread pools. The

[PATCH 2/2] config: android-base: enable hardened usercopy and kernel ASLR

2016-12-07 Thread Amit Pundir
Enable CONFIG_HARDENED_USERCOPY and CONFIG_RANDOMIZE_BASE in Android base config fragment. Reviewed-at: https://android-review.googlesource.com/#/c/283659/ Reviewed-at: https://android-review.googlesource.com/#/c/278133/ Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 2 ++

[PATCH] arm/xen: Use alloc_percpu rather than __alloc_percpu

2016-12-07 Thread Julien Grall
The function xen_guest_init is using __alloc_percpu with an alignment which are not power of two. However, the percpu allocator never supported alignments which are not power of two and has always behaved incorectly in thise case. Commit 3ca45a4 "percpu: ensure requested alignment is power of two

Antw: 3.0.101: "blk_rq_check_limits: over max size limit."

2016-12-07 Thread Ulrich Windl
Hi again! Maybe someone can confirm this: If you have a device (e.g. multipath map) that limits max_sectors_kb to maybe 64, and then define an LVM LV using that multipath map as PV, the LV still has a larger max_sectors_kb. If you send a big request (read in my case), the kernel will complain:

Antw: 3.0.101: "blk_rq_check_limits: over max size limit."

2016-12-07 Thread Ulrich Windl
Hi again! An addition: Processes doing such I/O seem to be unkillable, and I also cannot change the queue parameters while this problem occurs (the process trying to write (e.g.: to queue/scheduler) is also blocked. The process status of the process doing I/O looks like this: # cat /proc/2762/s

[RFC] Re: Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses.

2016-12-07 Thread Pavel Machek
On Fri 2016-12-02 15:05:21, Lino Sanfilippo wrote: > Hi, > > > > > > There's nothing that protect stmmac_poll() from running concurently > > with stmmac_dma_interrupt(), right? > > > > could it be that there is also another issue concerned locking?: > The tx completion handler takes the xmit_l

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Jakub Kicinski
On Wed, 7 Dec 2016 12:23:56 +0100, Sebastian Frias wrote: > On 07/12/16 12:05, Jakub Kicinski wrote: > > On Wed, 7 Dec 2016 11:00:57 +0100, Sebastian Frias wrote: > >> On 07/12/16 09:42, Kalle Valo wrote: > >>> Sebastian Frias writes: > >>> > Introduce GENVALUE(msb, lsb, value) macro

[RESEND PATCH 3/3] net: stmmac: stmmac_platform: use correct setup function for gmac4

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel devicetree binding for stmmac states: - compatible: Should be "snps,dwmac-", "snps,dwmac" For backwards compatibility: "st,spear600-gmac" is also supported. Previously, when specifying "snps,dwmac-4.10a", "snps,dwmac" as your compatible string, plat_stmmacenet_data wo

[RESEND PATCH 1/3] bindings: net: stmmac: correct note about TSO

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel snps,tso was previously placed under AXI BUS Mode parameters, suggesting that the property should be in the stmmac-axi-config node. TSO (TCP Segmentation Offloading) has nothing to do with AXI BUS Mode parameters, and the parser actually expects it to be in the root node, not

Re: [PATCH v3 1/3] soc: zte: pm_domains: Prepare for supporting ARMv8 2967 family

2016-12-07 Thread Shawn Guo
On Wed, Dec 07, 2016 at 02:13:22PM +0800, Baoyou Xie wrote: > The ARMv8 2967 family (296718, 296716 etc) uses different value > for controlling the power domain on/off registers, Choose the > value depending on the compatible. > > Multiple domains are prepared for the family, this patch prepares >

Question about ctr mode 3des-ede IV len

2016-12-07 Thread Longpeng (Mike)
Hi Jussi and Herbert, I saw serveral des3-ede testcases(in crypto/testmgr.h) has 16-bytes IV, and the libgcrypt/nettle/RFC1851 said the IV-len is 8-bytes. Would you please tell me why these testcases has 16-bytes IV ? Thank you. :) -- Regards, Longpeng(Mike)

[RESEND PATCH 2/3] net: stmmac: dwmac-generic: add missing compatible strings

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel devicetree binding for stmmac states: - compatible: Should be "snps,dwmac-", "snps,dwmac" For backwards compatibility: "st,spear600-gmac" is also supported. Since dwmac-generic.c calls stmmac_probe_config_dt explicitly, another alternative would have been to remove al

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread Felipe Balbi
Hi, Roger Quadros writes: >>> Roger Quadros writes: DCFG.DEVSPD == 0x3 is not valid and we need to set DCFG.DEVSPD to 0x1 for full speed mode. >>> >>> seems like it has been made invalid somewhere between 1.73a and >>> 2.60a. Can you figure it out from Documentation why and when it wa

Re: [PATCH] extcon: palmas: Fail gracefully if invalid configuration

2016-12-07 Thread Chanwoo Choi
Hi Roger, Looks good to me. But I have some comment. How about changing the subject as following? - old : Fail gracefully if invalid configuration - new : Check the parent instance to prevent the NULL pointer error On 2016년 12월 07일 21:12, Roger Quadros wrote: > extcon-palmas must be child of pa

Re: [PATCH v2] crypto: sun4i-ss: support the Security System PRNG

2016-12-07 Thread Corentin Labbe
On Wed, Dec 07, 2016 at 08:09:00PM +0800, Herbert Xu wrote: > On Mon, Dec 05, 2016 at 01:57:38PM +0100, Corentin Labbe wrote: > > > > So how to expose PRNG to user space ? or more generally how to "use" a PRNG > > ? > > We do have the algif_rng interface. > So I must expose it as a crypto_rng ?

Antw: 3.0.101: "blk_rq_check_limits: over max size limit."

2016-12-07 Thread Ulrich Windl
Hi once more! I managed to get the call traces of involved processes: 1) The process doing read(): Dec 7 13:51:16 h10 kernel: [183809.594434] SysRq : Show Blocked State Dec 7 13:51:16 h10 kernel: [183809.594447] taskPC stack pid father Dec 7 13:51:16 h10 kernel: [1

Re: [PATCH RT] net: Have __napi_schedule_irqoff() disable interrupts on RT

2016-12-07 Thread Steven Rostedt
On Wed, 7 Dec 2016 10:10:40 +0100 Sebastian Andrzej Siewior wrote: > On 2016-12-06 17:50:30 [-0500], Steven Rostedt wrote: > > A customer hit a crash where the napi sd->poll_list became corrupted. > > The customer had the bnx2x driver, which does a > > __napi_schedule_irqoff() in its interrupt ha

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Heikki Krogerus
Hi Oliver, On Wed, Dec 07, 2016 at 10:46:48AM +0100, Oliver Neukum wrote: > On Fri, 2016-12-02 at 10:04 -0800, Guenter Roeck wrote: > > Hi, > > > At least for my part I very much concentrated on making sure that > > the user space ABI as well as the port driver API are sane and usable. > > Righ

Re: [PATCH 1/1] mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()

2016-12-07 Thread Cyrille Pitchen
Le 07/12/2016 à 07:21, Krzeminski, Marcin (Nokia - PL/Wroclaw) a écrit : > Hi Cyrille, > >> -Original Message- >> From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf >> Of Marek Vasut >> Sent: Wednesday, December 07, 2016 4:07 AM >> To: Cyrille Pitchen ; Cyrille Pitche

[PATCH 1/8] efi: use typed function pointers for runtime services table [ver #5]

2016-12-07 Thread David Howells
From: Ard Biesheuvel Instead of using void pointers, and casting them to correctly typed function pointers upon use, declare the runtime services pointers as function pointers using their respective prototypes, for which typedefs are already available. Signed-off-by: Ard Biesheuvel Signed-off-b

[PATCH 0/8] efi: Pass secure boot mode to kernel [ver #5]

2016-12-07 Thread David Howells
ernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=efi-secure-boot at tag: efi-secure-boot-20161207-2 Note that the patches are not terminal on the branch. David --- Ard Biesheuvel (1): efi: use typed function pointers for runtime services table David Howells (5):

[PATCH 2/8] x86/efi: Allow invocation of arbitrary runtime services [ver #5]

2016-12-07 Thread David Howells
Provide the ability to perform mixed-mode runtime service calls for x86 in the same way that commit 0a637ee61247bd4bed9b2a07568ef7a1cfc76187 ("x86/efi: Allow invocation of arbitrary boot services") provides the ability to invoke arbitrary boot services. Suggested-by: Lukas Wunner Signed-off-by: D

Re: [RFC PATCH v3 10/20] Add support to access boot related data in the clear

2016-12-07 Thread Matt Fleming
On Wed, 09 Nov, at 06:36:31PM, Tom Lendacky wrote: > Boot data (such as EFI related data) is not encrypted when the system is > booted and needs to be accessed unencrypted. Add support to apply the > proper attributes to the EFI page tables and to the early_memremap and > memremap APIs to identify

[PATCH 7/8] efi: Add EFI_SECURE_BOOT bit [ver #5]

2016-12-07 Thread David Howells
From: Josh Boyer UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit that can be passed to efi_enabled() to find out whether secure boot is enabled. This will be used by the SysRq+x handler, registered by the x86 arch, to find out whether secure boot mode is enabled so th

[PATCH 5/8] efi: Get the secure boot status [ver #5]

2016-12-07 Thread David Howells
Get the firmware's secure-boot status in the kernel boot wrapper and stash it somewhere that the main kernel image can find. The efi_get_secureboot() function is extracted from the arm stub and (a) generalised so that it can be called from x86 and (b) made to use efi_call_runtime() so that it can

[PATCH 6/8] efi: Disable secure boot if shim is in insecure mode [ver #5]

2016-12-07 Thread David Howells
From: Josh Boyer A user can manually tell the shim boot loader to disable validation of images it loads. When a user does this, it creates a UEFI variable called MokSBState that does not have the runtime attribute set. Given that the user explicitly disabled validation, we can honor that and no

[PATCH 3/8] arm/efi: Allow invocation of arbitrary runtime services [ver #5]

2016-12-07 Thread David Howells
efi_call_runtime() is provided for x86 to be able abstract mixed mode support. Provide this for ARM also so that common code work in mixed mode also. Suggested-by: Lukas Wunner Signed-off-by: David Howells --- arch/arm/include/asm/efi.h |1 + arch/arm64/include/asm/efi.h |1 + 2 fil

[PATCH 4/8] efi: Add SHIM and image security database GUID definitions [ver #5]

2016-12-07 Thread David Howells
Add the definitions for shim and image security database, both of which are used widely in various Linux distros. Signed-off-by: Josh Boyer Signed-off-by: David Howells Reviewed-by: Ard Biesheuvel --- include/linux/efi.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/

[PATCH 8/8] efi: Handle secure boot from UEFI-2.6 [ver #5]

2016-12-07 Thread David Howells
UEFI-2.6 adds a new variable, DeployedMode. If it exists, this must be 1 if we're to engage lockdown mode. Reported-by: James Bottomley Signed-off-by: David Howells --- drivers/firmware/efi/libstub/secureboot.c | 16 +++- include/linux/efi.h |4 2

[PATCH] kexec: add cond_resched into kimage_alloc_crash_control_pages

2016-12-07 Thread zhongjiang
From: zhong jiang A soft lookup will occur when I run trinity in syscall kexec_load. the corresponding stack information is as follows. [ 237.235937] BUG: soft lockup - CPU#6 stuck for 22s! [trinity-c6:13859] [ 237.242699] Kernel panic - not syncing: softlockup: hung tasks [ 237.248573] CPU:

Re: [RFC] Re: Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses.

2016-12-07 Thread Lino Sanfilippo
Hi, On 07.12.2016 13:31, Pavel Machek wrote: On Fri 2016-12-02 15:05:21, Lino Sanfilippo wrote: Hi, There's nothing that protect stmmac_poll() from running concurently with stmmac_dma_interrupt(), right? could it be that there is also another issue concerned locking?: The tx completion h

Re: [PATCH 10/10] virtio: enable endian checks for sparse builds

2016-12-07 Thread Michael S. Tsirkin
On Wed, Dec 07, 2016 at 07:25:51AM +0100, Johannes Berg wrote: > On Tue, 2016-12-06 at 17:41 +0200, Michael S. Tsirkin wrote: > > > It seems that there should be a better way to do it, > > but this works too. > > In some cases there might be: > > > --- a/drivers/s390/virtio/Makefile > > +++ b/dr

Re: [Question] New mmap64 syscall?

2016-12-07 Thread Florian Weimer
On 12/06/2016 07:54 PM, Yury Norov wrote: 3. Introduce new mmap64() syscall like this: sys_mmap64(void *addr, size_t len, int prot, int flags, int fd, struct off_pair *off); (The pointer here because otherwise we have 7 args, if simply pass off_hi and off_lo in registers.) I would prefer a bat

Re: [PATCH 07/12] PM / OPP: Update OPP users to put reference

2016-12-07 Thread Chanwoo Choi
Hi Viresh, [snip] > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c > index b0de42972b74..89add0d7c017 100644 > --- a/drivers/devfreq/devfreq.c > +++ b/drivers/devfreq/devfreq.c > @@ -111,18 +111,16 @@ static void devfreq_set_freq_table(struct devfreq > *devfreq) >

Re: [PATCH 0/4] UEFI: EFI_MEMORY_ATTRIBUTES_TABLE support for x86

2016-12-07 Thread Matt Fleming
On Tue, 06 Dec, at 11:15:59AM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > UEFI v2.6 introduces EFI_MEMORY_ATTRIBUTES_TABLE which describes memory > protections that may be applied to EFI Runtime code and data regions by > kernel. This helps kernel to map efi runtime regions more stric

Re: [PATCH 1/4] efi: Make EFI_MEMORY_ATTRIBUTES_TABLE initialization common across all architectures

2016-12-07 Thread Matt Fleming
On Tue, 06 Dec, at 11:16:00AM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > Since EFI_PROPERTIES_TABLE and EFI_MEMORY_ATTRIBUTES_TABLE deal with > updating memory region attributes, it makes sense to call > EFI_MEMORY_ATTRIBUTES_TABLE initialization function from the same place > as EFI_P

[PATCH] tracing/rb: init the CPU mask on allocation

2016-12-07 Thread Sebastian Andrzej Siewior
Before commit b32614c03413 ("tracing/rb: Convert to hotplug state machine") the allocated cpumask was initialized to the mask of ONLINE or POSSIBLE CPUs. After the CPU hotplug changes the buffer initialisation moved to trace_rb_cpu_prepare() but I forgot to initially set the cpumask to zero. This i

RE: [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-07 Thread Li, Liang Z
> Am 30.11.2016 um 09:43 schrieb Liang Li: > > This patch set contains two parts of changes to the virtio-balloon. > > > > One is the change for speeding up the inflating & deflating process, > > the main idea of this optimization is to use bitmap to send the page > > information to host instead of

Re: [PATCH 4/4] efi: Skip parsing of EFI_PROPERTIES_TABLE if EFI_MEMORY_ATTRIBUTES_TABLE is detected

2016-12-07 Thread Matt Fleming
On Tue, 06 Dec, at 11:16:03AM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > UEFI specification v2.6 recommends not to use > "EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA" > attribute of EFI_PROPERTIES_TABLE. Presently, this is the *only* bit > defined in EFI_PROPERTIES_

Re: [PATCH] extcon: Restructure multi-line comments to follow codingstyle

2016-12-07 Thread Chanwoo Choi
Hi Srikant, On 2016년 12월 07일 20:59, Srikant Ritolia wrote: > Aligning all block comments in extcon subsystem as per linux coding style. > Found using checkpatch.pl script. > > Signed-off-by: Srikant Ritolia > --- > drivers/extcon/extcon-max14577.c |6 -- > drivers/extcon/extcon-max77693

Re: [PATCH] MIPS: TXx9: Modernize printing of kernel messages

2016-12-07 Thread Atsushi Nemoto
On Wed, 7 Dec 2016 10:05:15 +0100, Geert Uytterhoeven wrote: > - Convert from printk() to pr_*(), > - Add missing continuations, to fix user-visible breakage, > - Drop superfluous casts (u64 has been unsigned long long on all > architectures for many years). Thank you. Good catch. R

IPV6_PKTINFO socket option

2016-12-07 Thread Renata Saiakhova
Hi all, I would like to use IPV6_PKTINFO option to specify an outgoing IPv6 address in sendmsg(). The socket is not bound neither to an address nor to an interface. Should I always specify ifindex together with source address? (according to rfc3542 : The kernel must verify that the requeste

Re: [PATCH 2/5] x86: remove idle_notifier

2016-12-07 Thread Pavel Machek
On Wed 2016-12-07 12:46:12, Thomas Gleixner wrote: > On Tue, 6 Dec 2016, Pavel Machek wrote: > > > From: Len Brown > > > > > > Upon removal of the i7300_idle driver, the idle_notifer is unused. > > > > Actually... do we want to keep this this one? There's "cpu is loaded" > > led trigger, which i

Re: [PATCH 10/39] Annotate hardware config module parameters in drivers/iio/

2016-12-07 Thread David Howells
Jonathan Cameron wrote: > I'm on a train so can't check the original thread right now (and will probably > forget to do so later!). I am guessing the new functions are introduced > earlier in the series? Yeah, patch 1 is a prerequisite for all the subsequent patches. > Hence for now I'll assume

[tip:smp/hotplug] tracing/rb: Init the CPU mask on allocation

2016-12-07 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: b18cc3de00ec3442cf40ac60787dbe0703b99e24 Gitweb: http://git.kernel.org/tip/b18cc3de00ec3442cf40ac60787dbe0703b99e24 Author: Sebastian Andrzej Siewior AuthorDate: Wed, 7 Dec 2016 14:31:33 +0100 Committer: Thomas Gleixner CommitDate: Wed, 7 Dec 2016 14:36:21 +0100 tracing/rb:

Re: [PATCH 23/39] Annotate hardware config module parameters in drivers/net/wireless/

2016-12-07 Thread David Howells
Kalle Valo wrote: > Via which tree are you planning to submit this, should I take it to > wireless-drivers or will someone else handle it? I didn't get the cover > letter so I have no idea. I'll see if I can get patch 1 (which defines the macros) in a window prior to the others - or maybe I can

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Sebastian Frias
On 07/12/16 13:38, Jakub Kicinski wrote: > On Wed, 7 Dec 2016 12:23:56 +0100, Sebastian Frias wrote: >> On 07/12/16 12:05, Jakub Kicinski wrote: >>> On Wed, 7 Dec 2016 11:00:57 +0100, Sebastian Frias wrote: On 07/12/16 09:42, Kalle Valo wrote: > Sebastian Frias writes: >

Perf hotplug lockup in v4.9-rc8

2016-12-07 Thread Mark Rutland
Hi all Jeremy noticed a kernel lockup on arm64 when the perf tool was used in parallel with hotplug, which I've reproduced on arm64 and x86(-64) with v4.9-rc8. In both cases I'm using defconfig; I've tried enabling lockdep but it was silent for arm64 and x86. I haven't yet tested earlier kernels

[PATCH] hotplug: make register and unregister notifier API symmetric

2016-12-07 Thread Michal Hocko
From: Michal Hocko Yu Zhao has noticed that __unregister_cpu_notifier only unregisters its notifiers when HOTPLUG_CPU=y while the registration might succeed even when HOTPLUG_CPU=n if MODULE is enabled. This means that e.g. zswap might keep a stale notifier on the list on the manual clean up duri

Re: [PATCH 0/4] UEFI: EFI_MEMORY_ATTRIBUTES_TABLE support for x86

2016-12-07 Thread Matt Fleming
On Tue, 06 Dec, at 11:15:59AM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > UEFI v2.6 introduces EFI_MEMORY_ATTRIBUTES_TABLE which describes memory > protections that may be applied to EFI Runtime code and data regions by > kernel. This helps kernel to map efi runtime regions more stric

Re: [PATCHv4 09/10] mm/usercopy: Switch to using lm_alias

2016-12-07 Thread Mark Rutland
On Tue, Dec 06, 2016 at 12:10:50PM -0800, Kees Cook wrote: > On Tue, Dec 6, 2016 at 10:18 AM, Mark Rutland wrote: > > On Tue, Nov 29, 2016 at 11:39:44AM -0800, Kees Cook wrote: > >> On Tue, Nov 29, 2016 at 10:55 AM, Laura Abbott wrote: > >> > > >> > The usercopy checking code currently calls __va

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Jakub Kicinski
On Wed, 7 Dec 2016 14:51:36 +0100, Sebastian Frias wrote: > On 07/12/16 13:38, Jakub Kicinski wrote: > > On Wed, 7 Dec 2016 12:23:56 +0100, Sebastian Frias wrote: > >> On 07/12/16 12:05, Jakub Kicinski wrote: > >>> On Wed, 7 Dec 2016 11:00:57 +0100, Sebastian Frias wrote: > On 07/12/16

Re: [PATCH 09/10] vsock/virtio: fix src/dst cid format

2016-12-07 Thread Stefan Hajnoczi
On Tue, Dec 06, 2016 at 05:41:02PM +0200, Michael S. Tsirkin wrote: > These fields are 64 bit, using le32_to_cpu and friends > on these will not do the right thing. > Fix this up. > > Cc: sta...@vger.kernel.org > Signed-off-by: Michael S. Tsirkin > --- > net/vmw_vsock/virtio_transport_common.c |

Re: [PATCH v3 2/3] soc: zte: pm_domains: Add support for zx296718 board

2016-12-07 Thread Shawn Guo
On Wed, Dec 07, 2016 at 02:13:23PM +0800, Baoyou Xie wrote: > This patch introduces the power domain driver of zx296718 > which belongs to zte's 2967 family. The 'board' in subject is not appropriate, as zx296718 is a SoC, not board. > > Signed-off-by: Baoyou Xie When you repost, tags like Rev

Re: [PATCH 07/10] vsock/virtio: add a missing __le annotation

2016-12-07 Thread Stefan Hajnoczi
On Tue, Dec 06, 2016 at 05:40:57PM +0200, Michael S. Tsirkin wrote: > guest cid is read from config space, therefore it's in little endian > format and is treated as such, annotate it accordingly. > > Signed-off-by: Michael S. Tsirkin > --- > net/vmw_vsock/virtio_transport.c | 2 +- > 1 file cha

Re: [PATCH 10/10] virtio: enable endian checks for sparse builds

2016-12-07 Thread Stefan Hajnoczi
On Tue, Dec 06, 2016 at 05:41:05PM +0200, Michael S. Tsirkin wrote: > __CHECK_ENDIAN__ isn't on by default presumably because > it triggers too many sparse warnings for correct code. > But virtio is now clean of these warnings, and > we want to keep it this way - enable this for > sparse builds. >

Re: [PATCH 08/10] vsock/virtio: mark an internal function static

2016-12-07 Thread Stefan Hajnoczi
On Tue, Dec 06, 2016 at 05:41:00PM +0200, Michael S. Tsirkin wrote: > virtio_transport_alloc_pkt is only used locally, make it static. > > Signed-off-by: Michael S. Tsirkin > --- > net/vmw_vsock/virtio_transport_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefa

[PATCH v3 0/6] net: stmmac: make DMA programmable burst length more configurable

2016-12-07 Thread Niklas Cassel
Make DMA programmable burst length more configurable in the stmmac driver. This is done by adding support for independent pbl for tx/rx through DT. More fine grained tuning of pbl is possible thanks to a DT property saying that we should NOT multiply pbl values by x8/x4 in hardware. All new DT pr

[PATCH v3 1/6] net: stmmac: return error if no DMA configuration is found

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel All drivers except pci glue layer calls stmmac_probe_config_dt. stmmac_probe_config_dt does a kzalloc dma_cfg. pci glue layer does kzalloc dma_cfg explicitly, so all current drivers does a kzalloc dma_cfg. Return an error if no DMA configuration is found, that way we can ass

[PATCH v3 2/6] net: stmmac: simplify the common DMA init API

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel Use struct stmmac_dma_cfg *dma_cfg as an argument rather than using all the struct members as individual arguments. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/common.h| 4 ++-- drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 13 +

Re: linux-next: build failure after merge of the pinctrl tree

2016-12-07 Thread Linus Walleij
On Tue, Dec 6, 2016 at 10:31 PM, Stephen Rothwell wrote: > Hi Linus, > > On Mon, 5 Dec 2016 10:00:38 +1100 Stephen Rothwell > wrote: >> >> After merging the pinctrl tree, today's linux-next build (arm >> multi_v7_defconfig) failed like this: >> >> drivers/gpio/gpio-pl061.c: In function 'pl061_ir

Re: [PATCH v5 2/4] drm: bridge: add support for TI ths8135

2016-12-07 Thread Laurent Pinchart
Hi Bartosz, Thank you for the patch. On Wednesday 07 Dec 2016 11:45:11 Bartosz Golaszewski wrote: > 2016-12-07 11:42 GMT+01:00 Bartosz Golaszewski : > > THS8135 is a configurable video DAC. Add DT bindings for this chip and > > use the dumb-vga-dac driver for now as no configuration is required t

[PATCH v3 3/6] net: stmmac: stmmac_platform: fix parsing of DT binding

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel commit 64c3b252e9fc ("net: stmmac: fixed the pbl setting with DT") changed the parsing of the DT binding. Before 64c3b252e9fc, snps,fixed-burst and snps,mixed-burst were parsed regardless if the property snps,pbl existed or not. After the commit, fixed burst and mixed burst a

[PATCH v3 4/6] net: stmmac: dwmac1000: fix define DMA_BUS_MODE_RPBL_MASK

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel DMA_BUS_MODE_RPBL_MASK is really 6 bits, just like DMA_BUS_MODE_PBL_MASK. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/dwmac1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h b/

[PATCH v3 5/6] net: stmmac: add support for independent DMA pbl for tx/rx

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel GMAC and newer supports independent programmable burst lengths for DMA tx/rx. Add new optional devicetree properties representing this. To be backwards compatible, snps,pbl will still be valid, but snps,txpbl/snps,rxpbl will override the value in snps,pbl if set. If the IP i

Re: [PATCH v5 3/4] ARM: dts: da850-lcdk: add the vga-bridge node

2016-12-07 Thread Laurent Pinchart
Hi Bartosz, Thank you for the patch. On Wednesday 07 Dec 2016 11:42:44 Bartosz Golaszewski wrote: > Add the vga-bridge node to the board DT together with corresponding > ports and vga connector. This allows to retrieve the edid info from > the display automatically. > > Signed-off-by: Bartosz Go

[PATCH v3 6/6] net: smmac: allow configuring lower pbl values

2016-12-07 Thread Niklas Cassel
From: Niklas Cassel The driver currently always sets the PBLx8/PBLx4 bit, which means that the pbl values configured via the pbl/txpbl/rxpbl DT properties are always multiplied by 8/4 in the hardware. In order to allow the DT to configure lower pbl values, while at the same time not changing beh

Re: [PATCH v2 0/5] perf report: Show inline stack

2016-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 07, 2016 at 01:38:29PM +0800, Jin, Yao escreveu: > So sorry, please ignore this v2 patch series. > > I missed the Arnaldo other comments which were added in the code. > > I will RESEND v2 patch series later. No problem, but in the future just bump the version, i.e. ask for me to disr

Re: [PATCH v5 3/4] ARM: dts: da850-lcdk: add the vga-bridge node

2016-12-07 Thread Bartosz Golaszewski
2016-12-07 15:25 GMT+01:00 Laurent Pinchart : > Hi Bartosz, > > Thank you for the patch. > > On Wednesday 07 Dec 2016 11:42:44 Bartosz Golaszewski wrote: >> Add the vga-bridge node to the board DT together with corresponding >> ports and vga connector. This allows to retrieve the edid info from >>

Re: Perf hotplug lockup in v4.9-rc8

2016-12-07 Thread Mark Rutland
On Wed, Dec 07, 2016 at 01:52:17PM +, Mark Rutland wrote: > Hi all > > Jeremy noticed a kernel lockup on arm64 when the perf tool was used in > parallel with hotplug, which I've reproduced on arm64 and x86(-64) with > v4.9-rc8. In both cases I'm using defconfig; I've tried enabling lockdep > b

Introducing overlayfs snapshots project

2016-12-07 Thread Amir Goldstein
Hi All, I am pleased to announce the overlayfs snapshots project. Overlayfs snapshots bring file level snapshots capability to any local file system. Project requirements: * Incremental read-only snapshots of directory sub-tree * Independent of underlying local file system * Snapshots use availab

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Sebastian Frias
On 07/12/16 15:02, Jakub Kicinski wrote: > On Wed, 7 Dec 2016 14:51:36 +0100, Sebastian Frias wrote: >> On 07/12/16 13:38, Jakub Kicinski wrote: >>> On Wed, 7 Dec 2016 12:23:56 +0100, Sebastian Frias wrote: On 07/12/16 12:05, Jakub Kicinski wrote: > On Wed, 7 Dec 2016 11:00:57 +0100, S

Re: [PATCH] tracing/rb: init the CPU mask on allocation

2016-12-07 Thread Tetsuo Handa
Sebastian Andrzej Siewior wrote: > Before commit b32614c03413 ("tracing/rb: Convert to hotplug state > machine") the allocated cpumask was initialized to the mask of ONLINE or > POSSIBLE CPUs. After the CPU hotplug changes the buffer initialisation > moved to trace_rb_cpu_prepare() but I forgot to

Re: [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for the entire section'

2016-12-07 Thread Will Deacon
On Wed, Dec 07, 2016 at 10:06:38AM +0100, Robert Richter wrote: > On 06.12.16 17:38:11, Will Deacon wrote: > > On Mon, Dec 05, 2016 at 03:42:14PM +, Ard Biesheuvel wrote: > > > On 2 December 2016 at 14:49, James Morse wrote: > > > > Patch "arm64: mm: Fix memmap to be initialized for the entire

[PATCH] PM: Fix bug in the error handling of async suspend

2016-12-07 Thread Sahitya Tummala
If async_suspend is enabled for parent and child devices, then PM framework has to ensure that parent's async suspend gets called only after child's async suspend is done. In case if child's async suspend fails with error, then parent's async suspend must not be invoked. The current code uses async

Re: [PATCH v9 00/12] Add Mediated device support

2016-12-07 Thread Gerd Hoffmann
Hi, > Will update a topic/gvt-next-kvmgt-2016-12-06 today, sorry for the > inconvenience :) Thanks, that brings us one step forward. Linux guest can see the device (in lspci). Trying to load i915.ko leads to kernel oopses on both guest and host though. So I guess the guest driver can't handl

Re: [PATCH v3] ARM: at91/dt: add dts file for sama5d36ek CMP board

2016-12-07 Thread Alexandre Belloni
Hi, On 21/11/2016 at 15:02:48 +0100, Alexandre Belloni wrote : > > Changes in v3: > > - Use a dual license scheme for DT files. > > - Use the proper model name and the compatible string to reflect > >the nature of this new "CMP" board. > > - Change name of wakeup property to "wakeup-source"

Re: linux-next: build failure after merge of the tip tree

2016-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 07, 2016 at 09:12:15AM +0100, Jiri Olsa escreveu: > On Wed, Dec 07, 2016 at 08:45:14AM +0100, Ingo Molnar wrote: > > SNIP > > > * Stephen Rothwell wrote: > > > > > Hi all, > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > failed like this: >

<    1   2   3   4   5   6   7   8   >