Re: ecryptfs: Restore support for both encrypted and unencrypted file names

2018-02-28 Thread Guenter Roeck
ping On Tue, Feb 13, 2018 at 02:36:08PM -0800, Guenter Roeck wrote: > Commit 88ae4ab9802e ("ecryptfs_lookup(): try either only encrypted or > plaintext name") was supposed to fix a situation where two files with > the same name and same inode could be created in ecryptfs. One of those > files had

Re: [PATCH] xen/pirq: fix error path cleanup when binding MSIs

2018-02-28 Thread Juergen Gross
On 28/02/18 10:19, Roger Pau Monne wrote: > Current cleanup in the error path of xen_bind_pirq_msi_to_irq is > wrong. First of all there's an off-by-one in the cleanup loop, which > can lead to unbinding wrong IRQs. > > Secondly IRQs not bound won't be freed, thus leaking IRQ numbers. > > Note th

Re: [PATCH v1 2/4] x86/pci: Re-use new dmi_get_bios_year() helper

2018-02-28 Thread Jean Delvare
On Wed, 28 Feb 2018 11:33:39 +0100, Rafael J. Wysocki wrote: > On Wed, Feb 28, 2018 at 11:29 AM, Andy Shevchenko > wrote: > > I would assume that no BIOS date is related to prehistoric firmwares and > > using _CRS would sound weird on them. > > Careful here. > > You seem to be assuming that t

Re: [PATCH] xen-netfront: Fix hang on device removal

2018-02-28 Thread Juergen Gross
On 28/02/18 13:23, Jason Andryuk wrote: > A toolstack may delete the vif frontend and backend xenstore entries > while xen-netfront is in the removal code path. In that case, the > checks for xenbus_read_driver_state would return XenbusStateUnknown, and > xennet_remove would hang indefinitely. Th

[GIT PULL] xfs: fixes for 4.16-rc4

2018-02-28 Thread Darrick J. Wong
Hi Linus, Here's the first round of bugfixes for 4.16. It should merge cleanly, but please let me know if it doesn't. --Darrick The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at:

Re: [PATCH v4 1/4] HID: add driver for Valve Steam Controller

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 8:43 PM, Rodrigo Rivas Costa wrote: > There are two ways to connect the Steam Controller: directly to the USB > or with the USB wireless adapter. Both methods are similar, but the > wireless adapter can connect up to 4 devices at the same time. > > The wired device will ap

Re: [PATCH] cpuidle/powernv : Restore different PSSCR for idle and hotplug

2018-02-28 Thread Akshay Adiga
On Mon, Feb 26, 2018 at 03:47:12PM +1100, Stewart Smith wrote: > Akshay Adiga writes: > > commit 1e1601b38e6e ("powerpc/powernv/idle: Restore SPRs for deep idle > > states via stop API.") uses stop-api provided by the firmware to restore > > PSSCR. PSSCR restore is required for handling special wa

[RFC PATCH 3/3] tpm: tpm_msleep() with finer granularity improves performance

2018-02-28 Thread Nayna Jain
When 'commit 9f3fc7bcddcb ("tpm: replace msleep() with usleep_range() in TPM 1.2/2.0 generic drivers")' was upstreamed, it replaced the msleep() calls with usleep_range(), but did not change the granularity of the calls. They're still defined in terms of msec. Test results show that refining the g

[PATCH 2/3] tpm: reduce poll sleep time between send() and recv() in tpm_transmit()

2018-02-28 Thread Nayna Jain
In tpm_transmit, after send(), the code checks for status in a loop with polling every 5msec. It is expected that the tpm might return earlier than 5msec, so it might be adding to unnecessary delay. This patch reduces the polling sleep time from 5msec to 1msec. After this change, performance on a

[PATCH 1/3] tpm: move TPM_POLL_SLEEP from tpm_tis_core.c to tpm.h

2018-02-28 Thread Nayna Jain
This patch moves TPM_POLL_SLEEP from tpm_tis_core.c to tpm.h, renaming it to TPM_TIMEOUT_POLL, to follow the existing enum naming conventions. Signed-off-by: Nayna Jain --- drivers/char/tpm/tpm.h | 3 ++- drivers/char/tpm/tpm_tis_core.c | 10 ++ 2 files changed, 4 insertions(+)

[PATCH 3/3] fixdep: do not ignore kconfig.h

2018-02-28 Thread Rasmus Villemoes
kconfig.h was excluded from consideration by fixdep by 6a5be57f0f00 (fixdep: fix extraneous dependencies) to avoid some false positive hits (1) include/config/.h (2) include/config/h.h (3) include/config/foo.h (1) occurred because kconfig.h contains the string CONFIG_ in a comment. However, since

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 10:39 AM, Thomas Gleixner wrote: > On Tue, 27 Feb 2018, Reinette Chatre wrote: >> On 2/27/2018 2:36 AM, Thomas Gleixner wrote: >>> On Mon, 26 Feb 2018, Reinette Chatre wrote: Moving to "exclusive" mode it appears that, when enabled for a resource group, all domain

[PATCH 1/3] fixdep: remove stale references to uml-config.h

2018-02-28 Thread Rasmus Villemoes
uml-config.h hasn't existed in this decade (87e299e5c750 - x86, um: get rid of uml-config.h). The few remaining UML_CONFIG instances are defined directly in terms of their real CONFIG symbol in common-offsets.h, so unlike when the symbols got defined via a sed script, anything that uses UML_CONFIG_

[PATCH 2/3] fixdep: remove some false CONFIG_ matches

2018-02-28 Thread Rasmus Villemoes
The string CONFIG_ quite often appears after other alphanumerics, meaning that that instance cannot be referencing a Kconfig symbol. Omitting these means make has fewer files to stat() when deciding what needs to be rebuilt - for a defconfig build, this seems to remove about 2% of the (wildcard ...

Re: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver

2018-02-28 Thread Thierry Reding
On Thu, Feb 08, 2018 at 03:30:26PM +0100, Philippe Cornu wrote: > This patch adds Raydium Semiconductor Corporation rm68200 > 5.5" 720x1280 TFT LCD panel driver (MIPI-DSI video mode). > > Signed-off-by: Philippe Cornu > --- > drivers/gpu/drm/panel/Kconfig | 8 + > drivers/gpu/d

Re: [PATCH v2 07/15] KVM: s390: Interfaces to configure/deconfigure guest's AP matrix

2018-02-28 Thread Tony Krowiak
On 02/28/2018 11:15 AM, Pierre Morel wrote: On 27/02/2018 15:28, Tony Krowiak wrote: Provides interfaces to assign AP adapters, usage domains and control domains to a KVM guest. A KVM guest is started by executing the Start Interpretive Execution (SIE) instruction. The SIE state description is

Re: [PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 04:49:51PM +0100, Vratislav Bendel wrote: > The function xfs_buftarg_isolate() used by xfs buffer schrinkers > to determine whether a buffer should be isolated and disposed > from LRU list, has inverted logic. > > Excerpt from xfs_buftarg_isolate(): > /* >

Re: Regression in IPMI on 4.15.6

2018-02-28 Thread Corey Minyard
On 02/28/2018 08:17 AM, Corey Minyard wrote: On 02/28/2018 07:53 AM, Corey Minyard wrote: On 02/27/2018 05:55 PM, Laura Abbott wrote: Hi, Fedora got a bug report of a crash in IPMI on 4.15.6 https://bugzilla.redhat.com/show_bug.cgi?id=1549316 Unfortunately, it's only a screenshot but it's fair

Re: [PATCH 4/7] x86/microcode: Do not upload microcode if CPUs are offline

2018-02-28 Thread Henrique de Moraes Holschuh
On Wed, 28 Feb 2018, Raj, Ashok wrote: > On Wed, Feb 28, 2018 at 10:11:56AM -0300, Henrique de Moraes Holschuh wrote: > > > Avoid loading microcode if any of the CPUs are offline, and issue a > > > warning. Having different microcode revisions on the system at any time > > > is outright dangerous.

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 01:58:53PM -0500, Waiman Long wrote: > On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: >

[PATCH v4 1/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree sca

[PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-28 Thread frowand . list
From: Frank Rowand The initial implementation of the of_find_node_by_phandle() cache allocates the cache using kcalloc(). Add an early boot allocation of the cache so it will be usable during early boot. Switch over to the kcalloc() based cache once normal memory allocation becomes available.

[PATCH v4 0/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree sca

[tip:x86/urgent] Documentation, x86, resctrl: Make text and sample command match

2018-02-28 Thread tip-bot for Li RongQing
Commit-ID: 30009746168da0f1f648881f77083c40e226a8a0 Gitweb: https://git.kernel.org/tip/30009746168da0f1f648881f77083c40e226a8a0 Author: Li RongQing AuthorDate: Tue, 27 Feb 2018 14:17:51 +0800 Committer: Thomas Gleixner CommitDate: Wed, 28 Feb 2018 19:59:05 +0100 Documentation, x86, res

Re: [PATCH net] virtio-net: disable NAPI only when enabled during XDP set

2018-02-28 Thread Ben Greear
On 02/28/2018 09:22 AM, David Miller wrote: From: Jason Wang Date: Wed, 28 Feb 2018 18:20:04 +0800 We try to disable NAPI to prevent a single XDP TX queue being used by multiple cpus. But we don't check if device is up (NAPI is enabled), this could result stall because of infinite wait in napi

[tip:irq/urgent] dt-bindings/irqchip/renesas-irqc: Document R-Car M3-N support

2018-02-28 Thread tip-bot for Geert Uytterhoeven
Commit-ID: 7998a4ecc61fbef5547afd379b8953b526709dd2 Gitweb: https://git.kernel.org/tip/7998a4ecc61fbef5547afd379b8953b526709dd2 Author: Geert Uytterhoeven AuthorDate: Mon, 26 Feb 2018 16:25:12 +0100 Committer: Thomas Gleixner CommitDate: Wed, 28 Feb 2018 19:55:43 +0100 dt-bindings/irqc

Re: [PATCH] Documentation: Update ncurses package names for menuconfig

2018-02-28 Thread Randy Dunlap
On 02/28/2018 09:39 AM, Arvind Prasanna wrote: > Hi Randy: > > On 02/27/2018 10:59 PM, Arvind Prasanna wrote: >> The package name is ncurses-devel for Redhat based distros >> and libncurses-devel for Debian based distros. > > The above lines are part of the commit message and the patch says to in

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: When minimum/maximum values are specified for a sysctl parameter

Re: [PATCH 3/3] mailbox: sunxi-msgbox: Add a new mailbox driver

2018-02-28 Thread Samuel Holland
On 02/28/18 12:14, Jassi Brar wrote: > On Wed, Feb 28, 2018 at 11:21 PM, Samuel Holland wrote: >> Hi, >> >> On 02/28/18 03:16, Jassi Brar wrote: >>> On Wed, Feb 28, 2018 at 7:57 AM, Samuel Holland wrote: >>> >>> +/* + * The message box hardware provides 8 unidirectional channels. A

Re: [PATCH v3 01/25] dt-bindings: soc: qcom: Add bindings for APR bus

2018-02-28 Thread Srinivas Kandagatla
On 22/02/18 10:03, Srinivas Kandagatla wrote: Also the versions of each service are independent to each other. Not sure I follow the last statement. Meaning firmware updates change the services? Sorry for not being clear, so the services like AFE, ASM, ADM have different version numbers for

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-28 Thread Doug Ledford
On Wed, 2018-02-28 at 11:50 +0200, Max Gurtovoy wrote: > > On 2/28/2018 2:21 AM, Bart Van Assche wrote: > > On 02/27/18 14:15, Max Gurtovoy wrote: > > > -static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc > > > *poll_wc) > > > +static int __ib_process_cq(struct ib_cq *cq, int b

Re: [PATCH V4 2/2] thermal: imx: add i.MX7 thermal sensor support

2018-02-28 Thread Leonard Crestez
On Sat, 2018-02-24 at 16:02 +0800, Anson Huang wrote: > This patch adds i.MX7 thermal sensor support, most > of the i.MX7 thermal sensor functions are same with > i.MX6 except the registers offset/layout, so we move > those registers offset/layout definitions to soc data > structure. > > i.MX7 use

Re: [RFC 2/4] mfd: add Gateworks System Controller core driver

2018-02-28 Thread Andrew Lunn
> + dev_err(&client->dev, ">> 0x%02x %d\n", reg, ret); > + return ret; > + } > + dev_dbg(&client->dev, ">> 0x%02x=0x%02x (%d)\n", reg, val, retry); > + > +return 0; Hi Tim There appears to be a few spaces vs tabs issues in this file. Andrew

Re: [PATCH v2 07/15] KVM: s390: Interfaces to configure/deconfigure guest's AP matrix

2018-02-28 Thread Tony Krowiak
On 02/27/2018 09:28 AM, Tony Krowiak wrote: Provides interfaces to assign AP adapters, usage domains and control domains to a KVM guest. A KVM guest is started by executing the Start Interpretive Execution (SIE) instruction. The SIE state description is a control block that contains the state in

Re: [RFT 0/7] firmware: enable caching of firmware for reboot optimization

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 08:03:26PM +0200, cantabile wrote: > On 28/02/18 01:20, Luis R. Rodriguez wrote: > > Cantabile, please give these patches a spin and let me know if it fixes > > your reported issue. They depend on other pending patches I have in line > > waiting to be merged so the easiest I

[PATCH v4 3/4] HID: steam: command to check wireless connection

2018-02-28 Thread Rodrigo Rivas Costa
The wireless adaptor does not tell if a device is already connected when steam_probe() is run. Use a command to request the connection status. Signed-off-by: Rodrigo Rivas Costa --- drivers/hid/hid-steam.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/hid/hid-stea

[PATCH v4 4/4] HID: steam: add battery device.

2018-02-28 Thread Rodrigo Rivas Costa
The wireless Steam Controller is battery operated, so add the battery device and power information. Signed-off-by: Rodrigo Rivas Costa --- drivers/hid/hid-steam.c | 141 +++- 1 file changed, 140 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hi

[PATCH v4 0/4] new driver for Valve Steam Controller

2018-02-28 Thread Rodrigo Rivas Costa
This patchset implements a driver for Valve Steam Controller, based on a reverse analysis by myself. This is reroll v4, changes since v3: * Add command to check the wireless connection status on probe, without waiting for a message (thanks to Clément Vuchener for the tip). * Removed the error

[PATCH v4 2/4] HID: steam: add serial number information.

2018-02-28 Thread Rodrigo Rivas Costa
This device has a feature report to send and receive commands. Use it to get the serial number and set the device's uniq value. Signed-off-by: Rodrigo Rivas Costa --- drivers/hid/hid-steam.c | 104 ++-- 1 file changed, 101 insertions(+), 3 deletions(-)

[PATCH v4 1/4] HID: add driver for Valve Steam Controller

2018-02-28 Thread Rodrigo Rivas Costa
There are two ways to connect the Steam Controller: directly to the USB or with the USB wireless adapter. Both methods are similar, but the wireless adapter can connect up to 4 devices at the same time. The wired device will appear as 3 interfaces: a virtual mouse, a virtual keyboard and a custom

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > >> When minimum/maximum values are specified for a sysctl parameter in > >> the ctl_table structure with proc_dointvec_m

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Thomas Gleixner
On Wed, 28 Feb 2018, Reinette Chatre wrote: > On 2/28/2018 9:59 AM, Thomas Gleixner wrote: > I hesitated doing something like this because during the review of this > series there was resistance to using sysfs files for multiple values. I > will proceed with your suggestion noting that it is tied w

Re: [PATCH] rcu: Clean up rcu_init_nohz() by removing unnecessary statements

2018-02-28 Thread Paul E. McKenney
On Wed, Feb 28, 2018 at 06:04:55PM +0900, Byungchul Park wrote: > Since the commit 44c65ff2e3b0(rcu: Eliminate NOCBs CPU-state Kconfig > options) made nocb-cpus identified only through the rcu_nocbs= boot > parameter, we don't have to care NOCBs CPU-state Kconfig options > anymore, which means now

[RFC PATCH v4 6/7] xen/pvh: Add memory map pointer to hvm_start_info struct

2018-02-28 Thread Maran Wilson
The start info structure that is defined as part of the x86/HVM direct boot ABI and used for starting Xen PVH guests would be more versatile if it also included a way to pass information about the memory map to the guest. This would allow KVM guests to share the same entry point. Signed-off-by: Ma

Re: [PATCH v3 08/10] gpio: Add gpio driver for Actions OWL S900 SoC

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 8:14 PM, Manivannan Sadhasivam wrote: > Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers > controlling the gpio shares the same register range with pinctrl block. > > GPIO registers are organized as 6 banks and each bank controls the > maximum of 32 gp

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Thomas Gleixner
Reinette, On Tue, 27 Feb 2018, Reinette Chatre wrote: > On 2/27/2018 2:36 AM, Thomas Gleixner wrote: > > On Mon, 26 Feb 2018, Reinette Chatre wrote: > >> A change to start us off with could be to initialize the schemata with > >> all the shareable and unused bits set for all domains when a new > >

Re: [PATCH v3 04/10] pinctrl: actions: Add Actions S900 pinctrl driver

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 8:14 PM, Manivannan Sadhasivam wrote: > Add pinctrl driver for Actions Semi S900 SoC. The driver supports > pinctrl, pinmux and pinconf functionalities through a range of registers > common to both gpio driver and pinctrl driver. > > Pinmux functionality is available only f

Re: [PATCH v3 01/22] nvmem: Document struct nvmem_config

2018-02-28 Thread Sean Wang
On Wed, 2018-01-03 at 12:00 -0800, Andrey Smirnov wrote: > Add a simple description of struct nvmem_config and its fields. > > Cc: Srinivas Kandagatla > Cc: Heiko Stuebner > Cc: Masahiro Yamada > Cc: Carlo Caione > Cc: Kevin Hilman > Cc: Matthias Brugger > Cc: cphe...@gmail.com > Cc: linux-k

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 9:59 AM, Thomas Gleixner wrote: > On Wed, 28 Feb 2018, Thomas Gleixner wrote: >> On Tue, 27 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: Let's look at the existing crtl/mon groups which are each represented by a directory alrea

Re: [RFC PATCH] Randomization of address chosen by mmap.

2018-02-28 Thread Matthew Wilcox
On Wed, Feb 28, 2018 at 08:13:00PM +0300, Ilya Smith wrote: > > It would be worth spelling out the "not recommended" bit some more > > too: this fragments the mmap space, which has some serious issues on > > smaller address spaces if you get into a situation where you cannot > > allocate a hole lar

Re: [PATCH 0/3] STM32 Extended TrustZone Protection driver

2018-02-28 Thread Robin Murphy
On 28/02/18 17:53, Mark Rutland wrote: [...] It is not about to "check" the DT but if Linux could get access to the hardware. Hardware block assignment to secure or non-secure world could change at runtime for example I2C block could be manage by secure OS for a trusted application and when it h

[RFC PATCH v4 7/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-02-28 Thread Maran Wilson
For certain applications it is desirable to rapidly boot a KVM virtual machine. In cases where legacy hardware and software support within the guest is not needed, Qemu should be able to boot directly into the uncompressed Linux kernel binary without the need to run firmware. There already exists

[RFC PATCH v4 0/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-02-28 Thread Maran Wilson
Sorry for the delay between this version and the last -- it was mostly due to holidays and everyone being focused on security bug mitigation issues. Here are the links to the previous email threads in case it is helpful: V3: https://lkml.org/lkml/2017/12/12/1230 V2: https://lkml.org/lkml/2017/12/

[RFC PATCH v4 4/7] xen/pvh: Move Xen specific PVH VM initialization out of common code

2018-02-28 Thread Maran Wilson
We need to refactor PVH entry code so that support for other hypervisors like Qemu/KVM can be added more easily. This patch moves the small block of code used for initializing Xen PVH virtual machines into the Xen specific file. This initialization is not going to be needed for Qemu/KVM guests. Mo

[RFC PATCH v4 2/7] xen/pvh: Move PVH entry code out of Xen specific tree

2018-02-28 Thread Maran Wilson
Once hypervisors other than Xen start using the PVH entry point for starting VMs, we would like the option of being able to compile PVH entry capable kernels without enabling CONFIG_XEN and all the code that comes along with that. To allow that, we are moving the PVH code out of Xen and into files

[RFC PATCH v4 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH

2018-02-28 Thread Maran Wilson
In order to pave the way for hypervisors other then Xen to use the PVH entry point for VMs, we need to factor the PVH entry code into Xen specific and hypervisor agnostic components. The first step in doing that, is to create a new config option for PVH entry that can be enabled independently from

[RFC PATCH v4 3/7] xen/pvh: Create a new file for Xen specific PVH code

2018-02-28 Thread Maran Wilson
We need to refactor PVH entry code so that support for other hypervisors like Qemu/KVM can be added more easily. The first step in that direction is to create a new file that will eventually hold the Xen specific routines. Signed-off-by: Maran Wilson --- arch/x86/pvh.c | 1 - arc

[RFC PATCH v4 5/7] xen/pvh: Move Xen code for getting mem map via hcall out of common file

2018-02-28 Thread Maran Wilson
We need to refactor PVH entry code so that support for other hypervisors like Qemu/KVM can be added more easily. The original design for PVH entry in Xen guests relies on being able to obtain the memory map from the hypervisor using a hypercall. When we extend the PVH entry ABI to support other hy

Re: [PATCH v2 11/11] test_firmware: test three firmware kernel configs using a proc knob

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 01:07:23AM -0800, Josh Triplett wrote: > On Wed, Feb 28, 2018 at 01:32:37AM +, Luis R. Rodriguez wrote: > > On Tue, Feb 27, 2018 at 03:18:15PM -0800, Kees Cook wrote: > > > On Fri, Feb 23, 2018 at 6:46 PM, Luis R. Rodriguez > > > wrote: > > > > Since we now have knobs

Re: [PATCH 00/10] Add Actions Semi S900 pinctrl and gpio support

2018-02-28 Thread Manivannan Sadhasivam
On Wed, Feb 28, 2018 at 11:18:56PM +0530, Manivannan Sadhasivam wrote: > This patchset adds pinctrl and gpio support for Actions Semi S900 SoC. > Pinctrl and gpio subsystems share the common set of register range but > implemented as individual drivers for making it less complex. > > Pinmux functi

I Hope You Get My Message This Time

2018-02-28 Thread Friedrich Mayrhofer
-- -- This is the second time i am sending you this mail.I, Friedrich Mayrhofer Donate $ 1,000,000.00 to You, Email Me personally for more details. Regards. Friedrich Mayrhofer

Re: [PATCH v2 4/6] x86: Consolidate PCI_MMCONFIG configs

2018-02-28 Thread Bjorn Helgaas
On Wed, Feb 28, 2018 at 05:45:37PM +0200, Andy Shevchenko wrote: > On Wed, Feb 28, 2018 at 8:34 AM, Jan Kiszka wrote: > > From: Jan Kiszka > > > > Not sure if those two worked by design or just by chance so far. In any > > case, it's at least cleaner and clearer to express this in a single > > co

Re: [PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread Frank Rowand
On 02/28/18 05:27, Chintan Pandya wrote: > > > On 2/15/2018 6:22 AM, frowand.l...@gmail.com wrote: > >> +static void of_populate_phandle_cache(void) >> +{ >> +    unsigned long flags; >> +    u32 cache_entries; >> +    struct device_node *np; >> +    u32 phandles = 0; >> + >> +    raw_spin_lock_

Re: [PATCH] drm/sun4i: init dclk_min_div & dclk_max_div inside encoder init functions

2018-02-28 Thread Giulio Benetti
Hi, Il 28/02/2018 17:34, Giulio Benetti ha scritto: Hi, Il 28/02/2018 16:55, Maxime Ripard ha scritto: Hi, On Wed, Feb 28, 2018 at 01:51:58PM +0100, Giulio Benetti wrote: sun4i_dclk_round_rate is called before sun4i_tcon_mode_set, so it finds dclk_min_div and dclk_max_div set to 0 and fails

[PATCH] powerpc/dma: remove unnecessary BUG()

2018-02-28 Thread Christophe Leroy
Direction is already checked in all calling functions in include/linux/dma-mapping.h and also in called function __dma_sync() So really no need to check it once more here. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/pow

[PATCH v3 02/10] arm64: dts: actions: Add pinctrl node for S900

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl nodes for Actions Semi S900 SoC Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index fee0c9557656..0156483f0f4d 100

[PATCH v3 10/10] MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries

2018-02-28 Thread Manivannan Sadhasivam
Add S900 pinctrl and gpio entries under ARCH_ACTIONS Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 640dabc4c311..d63793ee545e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1125,10 +1125,14 @@ F:

[PATCH v3 09/10] MAINTAINERS: Add reviewer for ACTIONS platforms

2018-02-28 Thread Manivannan Sadhasivam
Since I'll be working on improving support for ACTIONS platforms, adding myself as the reviewer. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a7f76eadae9..640dabc4c311 100644 --- a/MAINTAINERS +++ b/MAIN

[PATCH v3 04/10] pinctrl: actions: Add Actions S900 pinctrl driver

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl driver for Actions Semi S900 SoC. The driver supports pinctrl, pinmux and pinconf functionalities through a range of registers common to both gpio driver and pinctrl driver. Pinmux functionality is available only for the pin groups while the pinconf functionality is available for both

[PATCH v3 03/10] arm64: actions: Enable PINCTRL in platforms Kconfig

2018-02-28 Thread Manivannan Sadhasivam
Select PINCTRL for Actions Semi SoCs Signed-off-by: Manivannan Sadhasivam --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index fbedbd8f619a..bae1289bdc3f 100644 --- a/arch/arm64/Kconfig.platforms ++

[PATCH v3 08/10] gpio: Add gpio driver for Actions OWL S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers controlling the gpio shares the same register range with pinctrl block. GPIO registers are organized as 6 banks and each bank controls the maximum of 32 gpios. Signed-off-by: Manivannan Sadhasivam --- drivers/gpio/Kconfig

[PATCH v3 05/10] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/actions,owl-gpio.txt | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt diff --git a/Docume

[PATCH v3 07/10] arm64: dts: actions: Add gpio line names to Bubblegum-96 board

2018-02-28 Thread Manivannan Sadhasivam
Add gpio line names to Actions Semi S900 based Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 195 ++ 1 file changed, 195 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/ar

[PATCH v3 06/10] arm64: dts: actions: Add S900 gpio nodes

2018-02-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 6 +++ arch/arm64/boot/dts/actions/s900.dtsi | 48 +++ 2 files changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/actio

[PATCH v3 01/10] dt-bindings: pinctrl: Add bindings for Actions S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl bindings for Actions Semi S900 SoC Signed-off-by: Manivannan Sadhasivam --- .../bindings/pinctrl/actions,s900-pinctrl.txt | 178 + 1 file changed, 178 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/actions,s900-pinctrl.txt diff

[PATCH v3 00/10] Add Actions Semi S900 pinctrl and gpio support

2018-02-28 Thread Manivannan Sadhasivam
This patchset adds pinctrl and gpio support for Actions Semi S900 SoC. Pinctrl and gpio subsystems share the common set of register range but implemented as individual drivers for making it less complex. Pinmux functions are only accessible for pin groups while pinconf parameters are available for

Re: [PATCH 3/3] mailbox: sunxi-msgbox: Add a new mailbox driver

2018-02-28 Thread Jassi Brar
On Wed, Feb 28, 2018 at 11:21 PM, Samuel Holland wrote: > Hi, > > On 02/28/18 03:16, Jassi Brar wrote: >> On Wed, Feb 28, 2018 at 7:57 AM, Samuel Holland wrote: >> >> >>> +/* >>> + * The message box hardware provides 8 unidirectional channels. As the >>> mailbox >>> + * framework expects th

[GIT PULL] dma-mapping fixe for Linux 4.16

2018-02-28 Thread Christoph Hellwig
The following changes since commit a638af00b27266c09ab7ac69141e6f4ac6c00eff: Merge tag 'usb-4.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb (2018-02-22 12:13:01 -0800) are available in the git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-m

Re: [RFC] power/hibernate: Make passing hibernate offsets more friendly

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 7:43 PM, Mario Limonciello wrote: > Currently the only way to specify a hibernate offset for a swap > file is on the kernel command line. > > This makes some changes to improve: > 1) Add a new /sys/power/disk_offset that lets userspace specify > the offset and disk to use w

Re: [PATCH v2 05/15] s390: vfio-ap: base implementation of VFIO AP device driver

2018-02-28 Thread Cornelia Huck
On Wed, 28 Feb 2018 11:43:37 -0500 Tony Krowiak wrote: > On 02/28/2018 10:33 AM, Pierre Morel wrote: > > On 27/02/2018 15:28, Tony Krowiak wrote: (...) > >> diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig > >> index cbe1d97..9f23caf 100644 > >> --- a/arch/s390/Kconfig > >> +++ b/arch/s390/

[PATCH] X86/KVM: Update the exit_qualification access bits while walking an address

2018-02-28 Thread KarimAllah Ahmed
... to avoid having a stale value when handling an EPT misconfig for MMIO regions. MMIO regions that are not passed-through to the guest are handled through EPT misconfigs. The first time a certain MMIO page is touched it causes an EPT violation, then KVM marks the EPT entry to cause an EPT miscon

Re: [RFT 0/7] firmware: enable caching of firmware for reboot optimization

2018-02-28 Thread cantabile
On 28/02/18 01:20, Luis R. Rodriguez wrote: Cantabile, please give these patches a spin and let me know if it fixes your reported issue. They depend on other pending patches I have in line waiting to be merged so the easiest I thing I think is for you to test my 20180227-firmware-cache branch [0]

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Thomas Gleixner
On Wed, 28 Feb 2018, Thomas Gleixner wrote: > On Tue, 27 Feb 2018, Reinette Chatre wrote: > > On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > > > Let's look at the existing crtl/mon groups which are each represented by a > > > directory already. > > > > > > - Adding a 'size' file to the ctrl group

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Thomas Gleixner
On Tue, 27 Feb 2018, Reinette Chatre wrote: > On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > > Let's look at the existing crtl/mon groups which are each represented by a > > directory already. > > > > - Adding a 'size' file to the ctrl groups would be a natural extension > >which makes sense

[PATCH 3/3] ima: support platform keyring for kernel appraisal

2018-02-28 Thread Nayna Jain
Distros may sign the kernel images and, possibly, the initramfs with platform trusted keys. On secure boot enabled systems or embedded devices, these signatures are to be validated using keys on the platform keyring. This patch enables IMA-appraisal to access the platform keyring, based on a new K

[PATCH 2/3] keys: export find_keyring_by_name()

2018-02-28 Thread Nayna Jain
This patch exports the function find_keyring_by_name() to be used by other subsystems. Signed-off-by: Nayna Jain --- include/linux/key.h | 2 ++ security/keys/internal.h | 2 -- security/keys/keyring.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/key.

[PATCH 1/3] certs: define a trusted platform keyring

2018-02-28 Thread Nayna Jain
The kernel can be supplied in SEEPROM or lockable flash memory in embedded devices. Some devices may not support secure boot, but the kernel is trusted because the image is stored in protected memory. That kernel may need to kexec additional kernels, it may be used as a bootloader, for example, or

Re: [PATCH v2 4/5] ipc: Clamp msgmni and shmmni to the real IPCMNI limit

2018-02-28 Thread Waiman Long
On 02/27/2018 08:01 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:49:50PM -0500, Waiman Long wrote: >> diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c >> index 8ad93c2..e4ab272 100644 >> --- a/ipc/ipc_sysctl.c >> +++ b/ipc/ipc_sysctl.c >> @@ -41,12 +41,17 @@ static int proc_ipc_dointve

[PATCH 01/10] dt-bindings: pinctrl: Add bindings for Actions S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl bindings for Actions Semi S900 SoC Signed-off-by: Manivannan Sadhasivam --- .../bindings/pinctrl/actions,s900-pinctrl.txt | 178 + 1 file changed, 178 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/actions,s900-pinctrl.txt diff

[PATCH 2/2] drm/sun4i: add lvds mode_valid function

2018-02-28 Thread Giulio Benetti
mode_valid function is missing for lvds. Add it based on rgb model, also setting up dclk_min_div and dclk_max_div Signed-off-by: Giulio Benetti --- drivers/gpu/drm/sun4i/sun4i_lvds.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/gpu/drm/sun4

Re: [PATCH v2 3/5] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-28 Thread Waiman Long
On 02/27/2018 07:57 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:49:49PM -0500, Waiman Long wrote: >> Even with clamped sysctl parameters, it is still not that straight >> forward to figure out the exact range of those parameters. One may >> try to write extreme parameter values to see

[PATCH 1/2] drm/sun4i: increase lvds dclk max divisor

2018-02-28 Thread Giulio Benetti
At the moment both min and max dclk div are set to 7. This doesn't allow to have lower frequencies. Increase dclk_max_div to 18 to achieve 30Mhz. Signed-off-by: Giulio Benetti --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/

[PATCH 05/10] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/actions,owl-gpio.txt | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt diff --git a/Docume

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: >> When minimum/maximum values are specified for a sysctl parameter in >> the ctl_table structure with proc_dointvec_minmax() handler, > an > >> update >> to that parameter will fail with

Re: [PATCH 3/3] mailbox: sunxi-msgbox: Add a new mailbox driver

2018-02-28 Thread Samuel Holland
Hi, On 02/28/18 03:16, Jassi Brar wrote: > On Wed, Feb 28, 2018 at 7:57 AM, Samuel Holland wrote: > > >> +/* >> + * The message box hardware provides 8 unidirectional channels. As the >> mailbox >> + * framework expects them to be bidirectional >> > That is incorrect. Mailbox framework doe

Re: [PATCH 0/3] STM32 Extended TrustZone Protection driver

2018-02-28 Thread Mark Rutland
On Wed, Feb 28, 2018 at 08:53:28AM +0100, Benjamin Gaignard wrote: > 2018-02-27 20:46 GMT+01:00 Robin Murphy : > > On 27/02/18 19:16, Benjamin Gaignard wrote: > >> 2018-02-27 18:11 GMT+01:00 Mark Rutland : > >>> On Tue, Feb 27, 2018 at 03:09:23PM +0100, Benjamin Gaignard wrote: > > On ear

Re: [PATCH 1/3] dt-bindings: Add a binding for the sunxi message box

2018-02-28 Thread Samuel Holland
Hi, On 02/28/18 02:28, Maxime Ripard wrote: > On Tue, Feb 27, 2018 at 08:27:12PM -0600, Samuel Holland wrote: >> This mailbox hardware is present in several Allwinner sun8i and sun50i >> SoCs. Add a device tree binding for it. >> >> Signed-off-by: Samuel Holland >> --- >> .../devicetree/bindings

Re: [PATCH V2] scsi: core: use blk_mq_requeue_request in __scsi_queue_insert

2018-02-28 Thread Bart Van Assche
On Wed, 2018-02-28 at 16:55 +0800, Jianchao Wang wrote: > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index a86df9c..6fa7b0c 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -191,7 +191,8 @@ static void __scsi_queue_insert(struct scsi_cmnd *cmd, > in

[PATCH 10/10] MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries

2018-02-28 Thread Manivannan Sadhasivam
Add S900 pinctrl and gpio entries under ARCH_ACTIONS Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 640dabc4c311..d63793ee545e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1125,10 +1125,14 @@ F:

[PATCH 09/10] MAINTAINERS: Add reviewer for ACTIONS platforms

2018-02-28 Thread Manivannan Sadhasivam
Since I'll be working on improving support for ACTIONS platforms, adding myself as the reviewer. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a7f76eadae9..640dabc4c311 100644 --- a/MAINTAINERS +++ b/MAIN

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