[PATCH 1/3] vfio/pci: Pull BAR mapping setup from read-write path

2018-02-28 Thread Alex Williamson
This creates a common helper that we'll use for ioeventfd setup. Signed-off-by: Alex Williamson --- drivers/vfio/pci/vfio_pci_rdwr.c | 39 ++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git

[PATCH 1/3] vfio/pci: Pull BAR mapping setup from read-write path

2018-02-28 Thread Alex Williamson
This creates a common helper that we'll use for ioeventfd setup. Signed-off-by: Alex Williamson --- drivers/vfio/pci/vfio_pci_rdwr.c | 39 ++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c

[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

[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

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

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

[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 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 3 files

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

[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 --- include/linux/test_pmalloc.h | 24

[PATCH 4/7] Protectable Memory

2018-02-28 Thread Igor Stoppa
The MMU available in many systems running Linux can often provide R/O protection to the memory pages it handles. However, the MMU-based protection works efficiently only when said pages contain exclusively data that will not need further modifications. Statically allocated variables can be

[PATCH 4/7] Protectable Memory

2018-02-28 Thread Igor Stoppa
The MMU available in many systems running Linux can often provide R/O protection to the memory pages it handles. However, the MMU-based protection works efficiently only when said pages contain exclusively data that will not need further modifications. Statically allocated variables can be

[PATCH 3/7] struct page: add field for vm_struct

2018-02-28 Thread Igor Stoppa
When a page is used for virtual memory, it is often necessary to obtain a handler to the corresponding vm_struct, which refers to the virtually continuous area generated when invoking vmalloc. The struct page has a "mapping" field, which can be re-used, to store a pointer to the parent area.

[PATCH 3/7] struct page: add field for vm_struct

2018-02-28 Thread Igor Stoppa
When a page is used for virtual memory, it is often necessary to obtain a handler to the corresponding vm_struct, which refers to the virtually continuous area generated when invoking vmalloc. The struct page has a "mapping" field, which can be re-used, to store a pointer to the parent area.

[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

[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

[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 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 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 new API? BR, Jani. --

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: [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 > Subject: Re: [RFC] power/hibernate: Make passing

[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 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 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 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(-) diff --git

[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 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 net-next v2 3/5] net: phy: teranetics: Utilize generic functions

2018-02-28 Thread Florian Fainelli
Update teranetics_aneg_done() to use genphy_c45_aneg_done() instead of duplicating that code, and switch to gen10g_* functions where appropriate instead of maintaining identical copies doing nothing. Signed-off-by: Florian Fainelli --- drivers/net/phy/teranetics.c | 30

[PATCH net-next v2 3/5] net: phy: teranetics: Utilize generic functions

2018-02-28 Thread Florian Fainelli
Update teranetics_aneg_done() to use genphy_c45_aneg_done() instead of duplicating that code, and switch to gen10g_* functions where appropriate instead of maintaining identical copies doing nothing. Signed-off-by: Florian Fainelli --- drivers/net/phy/teranetics.c | 30

[PATCH 4/5] tpm: migrate tpm2_get_tpm_pt() 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_tpm_pt() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 63 + 1 file changed, 23

[PATCH 4/5] tpm: migrate tpm2_get_tpm_pt() 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_tpm_pt() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 63 + 1 file changed, 23 insertions(+), 40 deletions(-) diff

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

2018-02-28 Thread Florian Fainelli
We do the same thing as the generic function: nothing, so utilize it. Signed-off-by: Florian Fainelli --- drivers/net/phy/marvell10g.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/phy/marvell10g.c

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

2018-02-28 Thread Florian Fainelli
We do the same thing as the generic function: nothing, so utilize it. Signed-off-by: Florian Fainelli --- drivers/net/phy/marvell10g.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index

[PATCH net-next v2 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

[PATCH net-next v2 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 insertions(+), 15

[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 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 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 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 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 to completion), but instead

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 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 larger address. Remember it as > ‘right_vma’.

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

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

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

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

2018-02-28 Thread Moritz Fischer
Florian, On Wed, Feb 28, 2018 at 11:44 AM, Russell King wrote: > 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 >> --- >>

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

2018-02-28 Thread Moritz Fischer
Florian, On Wed, Feb 28, 2018 at 11:44 AM, Russell King wrote: > 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 +--

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

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

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 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 the phandle value is

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(-) > > diff --git

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 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 v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-28 Thread Thierry Reding
On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: > Add PWM mode to pwm_config() function. The drivers which uses pwm_config() > were adapted to this change. > > Signed-off-by: Claudiu Beznea > --- > arch/arm/mach-s3c24xx/mach-rx1950.c | 11

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

2018-02-28 Thread Thierry Reding
On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: > Add PWM mode to pwm_config() function. The drivers which uses pwm_config() > were adapted to this change. > > Signed-off-by: Claudiu Beznea > --- > arch/arm/mach-s3c24xx/mach-rx1950.c | 11 +-- > drivers/bus/ts-nbus.c

Re: [RFC 4/4] input: misc: Add Gateworks System Controller support

2018-02-28 Thread Tim Harvey
On Tue, Feb 27, 2018 at 8:54 PM, Dmitry Torokhov wrote: > Hi Tim, Hi Dmitry - thanks for the review! > > On Tue, Feb 27, 2018 at 05:21:14PM -0800, Tim Harvey wrote: >> Add support for dispatching Linux Input events for the various interrupts >> the Gateworks System

Re: [RFC 4/4] input: misc: Add Gateworks System Controller support

2018-02-28 Thread Tim Harvey
On Tue, Feb 27, 2018 at 8:54 PM, Dmitry Torokhov wrote: > Hi Tim, Hi Dmitry - thanks for the review! > > On Tue, Feb 27, 2018 at 05:21:14PM -0800, Tim Harvey wrote: >> Add support for dispatching Linux Input events for the various interrupts >> the Gateworks System Controller provides. >> >>

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,

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,

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: [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 4.4 095/108] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version

2018-02-28 Thread Brian Norris
Hi Greg, On Sat, Feb 17, 2018 at 7:24 AM, Greg Kroah-Hartman wrote: > On Sat, Feb 17, 2018 at 07:12:17AM -0800, Guenter Roeck wrote: >> On 02/17/2018 05:43 AM, Greg Kroah-Hartman wrote: >> > On Fri, Feb 16, 2018 at 10:52:20AM -0800, Guenter Roeck wrote: >> > > On Fri,

Re: [PATCH 4.4 095/108] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version

2018-02-28 Thread Brian Norris
Hi Greg, On Sat, Feb 17, 2018 at 7:24 AM, Greg Kroah-Hartman wrote: > On Sat, Feb 17, 2018 at 07:12:17AM -0800, Guenter Roeck wrote: >> On 02/17/2018 05:43 AM, Greg Kroah-Hartman wrote: >> > On Fri, Feb 16, 2018 at 10:52:20AM -0800, Guenter Roeck wrote: >> > > On Fri, Feb 16, 2018 at 10:10:44AM

[PATCH net-next 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. Florian Fainelli (5): net: phy: aquantia: Utilize genphy_c45_aneg_done() net: phy: Export gen10g_*

[PATCH net-next 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. Florian Fainelli (5): net: phy: aquantia: Utilize genphy_c45_aneg_done() net: phy: Export gen10g_*

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

[PATCH net-next 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 net-next 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

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

[PATCH net-next 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. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy-c45.c | 18 -- include/linux/phy.h | 8

[PATCH net-next 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. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy-c45.c | 18 -- include/linux/phy.h | 8 2 files changed, 20

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

2018-02-28 Thread Florian Fainelli
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(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c

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

2018-02-28 Thread Florian Fainelli
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(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index

[PATCH net-next 3/5] net: phy: teranetics: Utilize generic functions

2018-02-28 Thread Florian Fainelli
Update teranetics_aneg_done() to use genphy_c45_aneg_done() instead of duplicating that code, and switch to gen10g_* functions where appropriate instead of maintaining identical copies doing nothing. Signed-off-by: Florian Fainelli --- drivers/net/phy/teranetics.c | 30

[PATCH net-next 3/5] net: phy: teranetics: Utilize generic functions

2018-02-28 Thread Florian Fainelli
Update teranetics_aneg_done() to use genphy_c45_aneg_done() instead of duplicating that code, and switch to gen10g_* functions where appropriate instead of maintaining identical copies doing nothing. Signed-off-by: Florian Fainelli --- drivers/net/phy/teranetics.c | 30

[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

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

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 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 > > > firmwares and > > > using _CRS would sound

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

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

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

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: [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, of_find_node_by_phandle()

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