[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

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

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

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

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

2018-02-28 Thread Akshay Adiga
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 wakeup. When special wakeup is completed, the core enters stop state based on restored PSSCR.

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

2018-02-28 Thread Andy Shevchenko
On Wed, 2018-02-28 at 20:21 +0100, Jean Delvare wrote: > 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 > > >

Re: [PATCH net-next 2/5] net: phy: Export gen10g_* functions

2018-02-28 Thread Russell King
On Wed, Feb 28, 2018 at 11:36:09AM -0800, Florian Fainelli wrote: > In order to remove a fair amount of duplication in the different 10G PHY > drivers, export all gen10g_* functions to be able to make use of those. The gen10g functions tend to be barely functional - for example,

[PATCH 7/7] Documentation for Pmalloc

2018-02-28 Thread Igor Stoppa
Detailed documentation about the protectable memory allocator. Signed-off-by: Igor Stoppa --- Documentation/core-api/index.rst | 1 + Documentation/core-api/pmalloc.rst | 111 + 2 files changed, 112 insertions(+) create mode

Re: [PATCH] tinydrm: add backlight dependency

2018-02-28 Thread Sean Paul
On Wed, Feb 28, 2018 at 02:40:48PM +0100, Arnd Bergmann wrote: > Calling devm_of_find_backlight directly means we get a link failure > without CONFIG_BACKLIGHT_CLASS_DEVICE: > > drivers/gpu/drm/tinydrm/mi0283qt.o: In function `mi0283qt_probe': > mi0283qt.c:(.text+0x684): undefined reference to

Re: [PATCH v2 08/15] KVM: s390: interface to enable AP execution mode

2018-02-28 Thread Tony Krowiak
On 02/28/2018 04:42 AM, David Hildenbrand wrote: On 27.02.2018 15:28, Tony Krowiak wrote: Introduces a new interface to enable AP interpretive execution (IE) mode for the KVM guest. When running with IE mode enabled, AP instructions executed on the KVM guest will be interpreted by the firmware

Re: [PATCH v2 13/15] KVM: s390: Configure the guest's CRYCB

2018-02-28 Thread Tony Krowiak
On 02/28/2018 04:49 AM, David Hildenbrand wrote: +static int vfio_ap_mdev_open(struct mdev_device *mdev) +{ + struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); + unsigned long events; + int ret; + + matrix_mdev->group_notifier.notifier_call =

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

2018-02-28 Thread Randy Dunlap
Hi, I think that you are missing my point, so let me start over and try to clarify it. In the patch description, it says "libncurses-devel" (not libncurses-dev). In the patch itself, it says libncurses-dev (not libncurses-devel). I suspect that one of these is incorrect. Which one is it?

[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

[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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

[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,

Clang build of arm64 kernel fails

2018-02-28 Thread Andrey Konovalov
Hi Marc! I've tried to pull in new upstream commits and the kernel build started failing for me with the following errors (see below). It seems that the reason is your commit "arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support". It seems that Clang doesn't like 32 bits registers being

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

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 9:04 PM, wrote: > 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,

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

2018-02-28 Thread Kees Cook
On Wed, Feb 28, 2018 at 9:13 AM, Ilya Smith wrote: >> On 27 Feb 2018, at 23:52, Kees Cook wrote: >> What are the two phases here? Could this second one get collapsed into >> the first? >> > > Let me explain. > 1. we use current implementation to get

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

2018-02-28 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Wednesday, February 28, 2018 12:11 PM > To: Limonciello, Mario > Cc: Rafael J . Wysocki ; ACPI Devel Maling List a...@vger.kernel.org>; LKML

RE: [PATCH v2 0/8] Decode IA32/X64 CPER

2018-02-28 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov [mailto:b...@suse.de] > Sent: Wednesday, February 28, 2018 11:36 AM > To: Ghannam, Yazen > Cc: Tony Luck ; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; ard.biesheu...@linaro.org;

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

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 >

[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:

[PATCH net-next v2 0/5] net: phy: Reduce duplication

2018-02-28 Thread Florian Fainelli
Hi all, This patch series reduces the duplication among 10G PHY drivers that just essentially stub most functions, but do that while replicating what the existing generic functions do. Changes in v2: - rename gen10g_soft_reset() to gen10g_no_soft_reset() to better illustrate what it does (or

[PATCH net-next v2 2/5] net: phy: Export gen10g_* functions

2018-02-28 Thread Florian Fainelli
In order to remove a fair amount of duplication in the different 10G PHY drivers, export all gen10g_* functions to be able to make use of those. While we are at it, rename gen10g_soft_reset() to gen10g_no_soft_reset() to illustrate what it does. Signed-off-by: Florian Fainelli

[PATCH 3/5] tpm: migrate tpm2_probe() to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_probe() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-)

[PATCH net-next v2 1/5] net: phy: aquantia: Utilize genphy_c45_aneg_done()

2018-02-28 Thread Florian Fainelli
The driver duplicates what the generic function does, so use the generic function intead. Signed-off-by: Florian Fainelli --- drivers/net/phy/aquantia.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/net/phy/aquantia.c

[PATCH 6/7] lkdtm: crash on overwriting protected pmalloc var

2018-02-28 Thread Igor Stoppa
Verify that pmalloc read-only protection is in place: trying to overwrite a protected variable will crash the kernel. Signed-off-by: Igor Stoppa --- drivers/misc/lkdtm.h | 1 + drivers/misc/lkdtm_core.c | 3 +++ drivers/misc/lkdtm_perms.c | 28

[PATCH 5/7] Pmalloc selftest

2018-02-28 Thread Igor Stoppa
Add basic self-test functionality for pmalloc. The testing is introduced as early as possible, right after the main dependency, genalloc, has passed successfully, so that it can help diagnosing failures in pmalloc users. Signed-off-by: Igor Stoppa ---

Re: [PATCH] of: Kconfig: OF_OVERLAY, select OF_EARLY_FLATTREE

2018-02-28 Thread Rob Herring
Sorry for the delay, been away for a few days. On Mon, Feb 19, 2018 at 12:24 AM, Frank Rowand wrote: > > On 02/18/18 17:46, Rob Herring wrote: > > On Sun, Feb 18, 2018 at 6:29 PM, wrote: > >> From: Frank Rowand > >> > >>

[BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-02-28 Thread Jernej Škrabec
Hi all, with todays linux-next (next-20180228), kernel on Allwinner H3 SoC crashes with dmesg like that: https://pastebin.com/raw/0D5JeaJ8 I bisected the kernel and first offending commit is: be7ee5f32a9a ("ASoC: soc-generic-dmaengine-pcm: replace platform to component") I know

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

2018-02-28 Thread Daniel Micay
The option to add at least one guard page would be useful whether or not it's tied to randomization. It's not feasible to do that in userspace for mmap as a whole, only specific users of mmap like malloc and it adds significant overhead vs. a kernel implementation. It could optionally let you

[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

[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

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

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

[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(+)

[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

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

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

2018-02-28 Thread Andrew Lunn
> + dev_err(>dev, ">> 0x%02x %d\n", reg, ret); > + return ret; > + } > + dev_dbg(>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

[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:

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

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

[PATCH net-next 4/5] net: phy: cortina: Utilize generic functions

2018-02-28 Thread Florian Fainelli
cortina_soft_reset() does the same thing as gen10g_soft_reset(), and cortina_config_aneg() is actually doing what gen10g_config_init() does for 10G capable PHYs. Signed-off-by: Florian Fainelli --- drivers/net/phy/cortina.c | 18 +++--- 1 file changed, 3

Re: [PATCH 8/9] drm/xen-front: Implement GEM operations

2018-02-28 Thread Boris Ostrovsky
On 02/27/2018 01:52 AM, Oleksandr Andrushchenko wrote: > On 02/27/2018 01:47 AM, Boris Ostrovsky wrote: >> On 02/23/2018 10:35 AM, Oleksandr Andrushchenko wrote: >>> On 02/23/2018 05:26 PM, Boris Ostrovsky wrote: On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: >> > +    ret =

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

2018-02-28 Thread Frank Rowand
On 02/28/18 11:31, Andy Shevchenko wrote: > On Wed, Feb 28, 2018 at 9:04 PM, wrote: > >> 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

Re: [PATCH net-next 5/5] net: phy: marvell10g: Utilize gen10g_soft_reset()

2018-02-28 Thread Russell King
On Wed, Feb 28, 2018 at 11:36:12AM -0800, Florian Fainelli wrote: > We do the same thing as the generic function: nothing, so utilize it. > > Signed-off-by: Florian Fainelli > --- > drivers/net/phy/marvell10g.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-)

Re: [PATCH v5 2/9] watchdog/hpwdt: Remove legacy NMI sourcing.

2018-02-28 Thread Jerry Hoemann
On Mon, Feb 26, 2018 at 05:29:55PM -0800, Guenter Roeck wrote: > On 02/26/2018 05:02 PM, Jerry Hoemann wrote: > > On Mon, Feb 26, 2018 at 06:32:30AM -0800, Guenter Roeck wrote: > > > On 02/26/2018 06:11 AM, Arnd Bergmann wrote: > > > > On Mon, Feb 26, 2018 at 4:22 AM, Jerry Hoemann

[PATCH 2/5] tpm: migrate tpm2_shutdown() to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_shutdown() to use it. In addition, removed the klog entry when tpm_transmit_cmd() fails because tpm_tansmit_cmd() already prints an error message. Signed-off-by: Jarkko Sakkinen

[PATCH 1/5] tpm: Trigger only missing TPM 2.0 self tests

2018-02-28 Thread Jarkko Sakkinen
From: Alexander Steffen My Nuvoton 6xx in a Dell XPS-13 has been intermittently failing to work (necessitating a reboot). The problem seems to be that the TPM gets into a state where the partial self-test doesn't return TPM_RC_SUCCESS (meaning all tests have run

[PATCH 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_random() to use it. In addition, removed remaining references to struct tpm2_cmd. All of them use it to acquire the length of the response, which can be achieved by using tpm_buf_length().

[PATCH 0/5] Migrate all TPM 2.0 commands to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, this patch set migrates all TPM 2.0 commands to use it. The next step after this is to migrate TPM 1.2 commands in a subsequent patch set. Finally, tpm_transmit_cmd() can take simply struct tpm_buf as its

[PATCH 1/7] genalloc: track beginning of allocations

2018-02-28 Thread Igor Stoppa
The genalloc library is only capable of tracking if a certain unit of allocation is in use or not. It is not capable of discerning where the memory associated to an allocation request begins and where it ends. The reason is that units of allocations are tracked by using a bitmap, where each bit

[PATCH 2/7] genalloc: selftest

2018-02-28 Thread Igor Stoppa
Introduce a set of macros for writing concise test cases for genalloc. The test cases are meant to provide regression testing, when working on new functionality for genalloc. Primarily they are meant to confirm that the various allocation strategy will continue to work as expected. The

[RFC PATCH v18 0/7] mm: security: ro protection for dynamic data

2018-02-28 Thread Igor Stoppa
This patch-set introduces the possibility of protecting memory that has been allocated dynamically. The memory is managed in pools: when a memory pool is turned into R/O, all the memory that is part of it, will become R/O. A R/O pool can be destroyed, to recover its memory, but it cannot be

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

2018-02-28 Thread Rob Herring
On Wed, Feb 28, 2018 at 2:19 PM, Andy Shevchenko wrote: > On Wed, Feb 28, 2018 at 9:44 PM, Frank Rowand wrote: >> On 02/28/18 11:31, Andy Shevchenko wrote: >>> On Wed, Feb 28, 2018 at 9:04 PM, wrote: > >>> The question

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

2018-02-28 Thread Konrad Rzeszutek Wilk
On Wed, Feb 28, 2018 at 10:28:00AM -0800, Maran Wilson wrote: > 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

[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

[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 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 +++

[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

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

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; >> + >> +   

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

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. > >

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: [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 10:39 AM, Thomas Gleixner wrote: > > I came up with this under the assumptions: > > > > 1) One locked region per resource group > > 2) Drop closid after locking > > I am also now working under these assumptions ... > > > Then the

Re: [PATCH v2 1/2] PCI: add vendor id for Altera

2018-02-28 Thread Bjorn Helgaas
s/PCI: add vendor id for Altera/PCI: Add Altera vendor ID/ On Wed, Feb 28, 2018 at 09:44:17AM +0100, Johannes Thumshirn wrote: > Add the Altera PCI Vendor id to pci_ids.h and remove the private > definitions from xillybus_pcie.c and altera-cvp.c. > > Signed-off-by: Johannes Thumshirn

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-28 Thread Jani Nikula
On Wed, 28 Feb 2018, Thierry Reding wrote: > Anyone that needs something other than normal mode should use the new > atomic PWM API. At the risk of revealing my true ignorance, what is the new atomic PWM API? Where? Examples of how one would convert old code over to the

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

2018-02-28 Thread Andy Shevchenko
On Wed, Feb 28, 2018 at 9:44 PM, Frank Rowand wrote: > On 02/28/18 11:31, Andy Shevchenko wrote: >> On Wed, Feb 28, 2018 at 9:04 PM, wrote: >> The question is why O(1) is so important? O(log(n)) wouldn't work? > > O(1) is not critical. It was

Re: [PATCH 2/5] tpm: migrate tpm2_shutdown() to use struct tpm_buf

2018-02-28 Thread Jason Gunthorpe
On Wed, Feb 28, 2018 at 09:58:15PM +0200, Jarkko Sakkinen wrote: > In order to make struct tpm_buf the first class object for constructing TPM > commands, migrate tpm2_shutdown() to use it. In addition, removed the klog > entry when tpm_transmit_cmd() fails because tpm_tansmit_cmd() already >

xhci: Not enough bandwidth for new device state

2018-02-28 Thread Waldemar Brodkorb
Hi, I am getting these messages from a Debian 9.3 system using Linux 4.9.x: [ 547.352746] usb 3-5.2: 3:1: usb_set_interface failed (-28) [ 548.352865] usb 3-5.3: Not enough bandwidth for new device state. [ 548.352868] usb 3-5.3: Not enough bandwidth for altsetting 1 I have connected a 7-Port

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 >

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

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

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

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

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] 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

Re: [PATCH 8/9] drm/xen-front: Implement GEM operations

2018-02-28 Thread Oleksandr Andrushchenko
On 02/28/2018 09:46 PM, Boris Ostrovsky wrote: On 02/27/2018 01:52 AM, Oleksandr Andrushchenko wrote: On 02/27/2018 01:47 AM, Boris Ostrovsky wrote: On 02/23/2018 10:35 AM, Oleksandr Andrushchenko wrote: On 02/23/2018 05:26 PM, Boris Ostrovsky wrote: On 02/21/2018 03:03 AM, Oleksandr

[PATCH 1/2 RFC] tools/memory-model: rename link and rcu-path to rcu-link and rb

2018-02-28 Thread Alan Stern
This patch makes a simple non-functional change to the RCU portion of the Linux Kernel Memory Consistency Model by renaming the "link" and "rcu-path" relations to "rcu-link" and "rb". The name "link" was an unfortunate choice, because it was too generic and subject to confusion with other

[PATCH 2/2 v2 RFC] tools/memory-model: redefine rb in terms of rcu-fence

2018-02-28 Thread Alan Stern
This patch reorganizes the definition of rb in the Linux Kernel Memory Consistency Model. The relation is now expressed in terms of rcu-fence, which consists of a sequence of gp and rscs links separated by rcu-link links, in which the number of occurrences of gp is >= the number of occurrences of

[PATCH 0/3] vfio/pci: ioeventfd support

2018-02-28 Thread Alex Williamson
A vfio ioeventfd will perform the pre-specified device write on triggering of an eventfd. When coupled with KVM ioeventfds, this feature allows a VM to trap a device page for virtualization, while also registering targeted ioeventfds to maintain performance of high frequency register writes

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

2018-02-28 Thread Tony Krowiak
On 02/28/2018 01:10 PM, Cornelia Huck wrote: 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

[GIT PULL] kselftest fixes update for 4.16-rc4

2018-02-28 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for 4.16-rc4. This kselftest fixes update for 4.16-rc4 consists of of fixes for various problems in test output, compile errors, and missing configs. Diff for the update is attached. thanks, -- Shuah

[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

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 > >> ---

  1   2   3   4   5   6   7   8   9   10   >