[PATCH v10 21/27] drivers: firmware: psci: Add a helper to attach a CPU to its PM domain

2018-11-29 Thread Ulf Hansson
Introduce a new PSCI DT helper function, psci_dt_attach_cpu(), which takes a CPU number as an in-parameter and attaches the CPU's struct device to its corresponding PM domain. Additionally, the helper prepares the CPU to be power managed via runtime PM, which is the last step needed to enable the

[PATCH v10 19/27] drivers: firmware: psci: Add hierarchical domain idle states converter

2018-11-29 Thread Ulf Hansson
If the hierarchical CPU topology is used, but the OS initiated mode isn't supported, we rely solely on the regular cpuidle framework to manage the idle state selection. For this reason, introduce a new PSCI DT helper function, psci_dt_pm_domains_parse_states(), which converts the hierarchically

[PATCH v10 23/27] drivers: firmware: psci: Manage runtime PM in the idle path for CPUs

2018-11-29 Thread Ulf Hansson
When the hierarchical CPU topology layout is used in DT, let's allow the CPU to be power managed through its PM domain and via runtime PM. In other words, let's deploy runtime PM support to the PSCI driver during idle management of the CPU. Signed-off-by: Ulf Hansson --- Changes in v10:

[PATCH v10 26/27] arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916

2018-11-29 Thread Ulf Hansson
From: Lina Iyer In the hierarchical layout, we are creating power domains around each CPU and describes the idle states for them inside the power domain provider node. Note that, the CPU's idle states still needs to be compatible with "arm,idle-state". Furthermore, represent the CPU cluster as

[PATCH v10 24/27] drivers: firmware: psci: Support CPU hotplug for the hierarchical model

2018-11-29 Thread Ulf Hansson
When the hierarchical CPU topology is used and when a CPU has been put offline (hotplug), that same CPU prevents its PM domain and thus also potential master PM domains, from being powered off. This is because genpd observes the CPU's struct device to remain being active from a runtime PM point of

[PATCH v10 17/27] drivers: firmware: psci: Prepare to support PM domains

2018-11-29 Thread Ulf Hansson
Following changes are about to implement support for PM domains to PSCI. Those changes are mainly going to be implemented in a new separate file, hence a couple of the internal PSCI functions needs to be shared to be accessible. So, let's do that via adding new PSCI header file. Moreover, the

[PATCH v10 22/27] drivers: firmware: psci: Attach the CPU's device to its PM domain

2018-11-29 Thread Ulf Hansson
In order to allow the CPU to be power managed through a potential PM domain and the corresponding topology, it needs to be attached to it. For that reason, check if the PM domain data structures have been initiated for PSCI and if so, let's try to attach the CPU device to its PM domain. However,

[PATCH v10 27/27] arm64: dts: hikey: Convert to the hierarchical CPU topology layout

2018-11-29 Thread Ulf Hansson
To enable the OS to manage last-man standing activities for a CPU, while an idle state for a group of CPUs is selected, let's convert the Hikey platform into using the hierarchical CPU topology layout. Signed-off-by: Ulf Hansson --- Changes in v10: - New patch. ---

[PATCH v10 21/27] drivers: firmware: psci: Add a helper to attach a CPU to its PM domain

2018-11-29 Thread Ulf Hansson
Introduce a new PSCI DT helper function, psci_dt_attach_cpu(), which takes a CPU number as an in-parameter and attaches the CPU's struct device to its corresponding PM domain. Additionally, the helper prepares the CPU to be power managed via runtime PM, which is the last step needed to enable the

[PATCH v10 19/27] drivers: firmware: psci: Add hierarchical domain idle states converter

2018-11-29 Thread Ulf Hansson
If the hierarchical CPU topology is used, but the OS initiated mode isn't supported, we rely solely on the regular cpuidle framework to manage the idle state selection. For this reason, introduce a new PSCI DT helper function, psci_dt_pm_domains_parse_states(), which converts the hierarchically

[PATCH v10 23/27] drivers: firmware: psci: Manage runtime PM in the idle path for CPUs

2018-11-29 Thread Ulf Hansson
When the hierarchical CPU topology layout is used in DT, let's allow the CPU to be power managed through its PM domain and via runtime PM. In other words, let's deploy runtime PM support to the PSCI driver during idle management of the CPU. Signed-off-by: Ulf Hansson --- Changes in v10:

[PATCH v10 26/27] arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916

2018-11-29 Thread Ulf Hansson
From: Lina Iyer In the hierarchical layout, we are creating power domains around each CPU and describes the idle states for them inside the power domain provider node. Note that, the CPU's idle states still needs to be compatible with "arm,idle-state". Furthermore, represent the CPU cluster as

[PATCH v10 12/27] drivers: firmware: psci: Simplify state node parsing

2018-11-29 Thread Ulf Hansson
Instead of iterating through all the state nodes in DT, to find out how many states that needs to be allocated, let's use the number already known by the cpuidle driver. In this way we can drop the iteration altogether. Signed-off-by: Ulf Hansson --- Changes in v10: - New patch. ---

[PATCH v10 02/27] PM / Domains: Add support for CPU devices to genpd

2018-11-29 Thread Ulf Hansson
To enable a device belonging to a CPU to be attached to a PM domain managed by genpd, let's do a few changes to it, as to make it convenient to manage the specifics around CPUs. To be able to quickly find out what CPUs that are attached to a genpd, which typically becomes useful from a genpd

[PATCH v10 07/27] cpuidle: dt: Support hierarchical CPU idle states

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Currently CPU's idle states are represented in a flattened model, via the "cpu-idle-states" binding from within the CPU's device nodes. Support the hierarchical layout during parsing and validating of the CPU's idle states. This is simply done by calling the new OF helper,

[PATCH v10 12/27] drivers: firmware: psci: Simplify state node parsing

2018-11-29 Thread Ulf Hansson
Instead of iterating through all the state nodes in DT, to find out how many states that needs to be allocated, let's use the number already known by the cpuidle driver. In this way we can drop the iteration altogether. Signed-off-by: Ulf Hansson --- Changes in v10: - New patch. ---

[PATCH v10 02/27] PM / Domains: Add support for CPU devices to genpd

2018-11-29 Thread Ulf Hansson
To enable a device belonging to a CPU to be attached to a PM domain managed by genpd, let's do a few changes to it, as to make it convenient to manage the specifics around CPUs. To be able to quickly find out what CPUs that are attached to a genpd, which typically becomes useful from a genpd

[PATCH v10 07/27] cpuidle: dt: Support hierarchical CPU idle states

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Currently CPU's idle states are represented in a flattened model, via the "cpu-idle-states" binding from within the CPU's device nodes. Support the hierarchical layout during parsing and validating of the CPU's idle states. This is simply done by calling the new OF helper,

[PATCH v10 11/27] drivers: firmware: psci: Split psci_dt_cpu_init_idle()

2018-11-29 Thread Ulf Hansson
Let's split the psci_dt_cpu_init_idle() function into two functions, as to allow following changes to re-use some of the code. Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- Changes in v10: - None. --- drivers/firmware/psci/psci.c | 42

[PATCH v10 03/27] timer: Export next wakeup time of a CPU

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Knowing the sleep duration of CPUs, is known to be needed while selecting the most energy efficient idle state for a CPU or a group of CPUs. However, to be able to compute the sleep duration, we need to know at what time the next expected wakeup is for the CPU. Therefore, let's

[PATCH v10 04/27] PM / Domains: Add genpd governor for CPUs

2018-11-29 Thread Ulf Hansson
As it's now perfectly possible that a PM domain managed by genpd contains devices belonging to CPUs, we should start to take into account the residency values for the idle states during the state selection process. The residency value specifies the minimum duration of time, the CPU or a group of

[PATCH v10 05/27] dt: psci: Update DT bindings to support hierarchical PSCI states

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Update DT bindings to represent hierarchical CPU and CPU PM domain idle states for PSCI. Also update the PSCI examples to clearly show how flattened and hierarchical idle states can be represented in DT. Cc: Lina Iyer Signed-off-by: Lina Iyer Co-developed-by: Ulf Hansson

[PATCH v10 11/27] drivers: firmware: psci: Split psci_dt_cpu_init_idle()

2018-11-29 Thread Ulf Hansson
Let's split the psci_dt_cpu_init_idle() function into two functions, as to allow following changes to re-use some of the code. Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- Changes in v10: - None. --- drivers/firmware/psci/psci.c | 42

[PATCH v10 03/27] timer: Export next wakeup time of a CPU

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Knowing the sleep duration of CPUs, is known to be needed while selecting the most energy efficient idle state for a CPU or a group of CPUs. However, to be able to compute the sleep duration, we need to know at what time the next expected wakeup is for the CPU. Therefore, let's

[PATCH v10 04/27] PM / Domains: Add genpd governor for CPUs

2018-11-29 Thread Ulf Hansson
As it's now perfectly possible that a PM domain managed by genpd contains devices belonging to CPUs, we should start to take into account the residency values for the idle states during the state selection process. The residency value specifies the minimum duration of time, the CPU or a group of

[PATCH v10 05/27] dt: psci: Update DT bindings to support hierarchical PSCI states

2018-11-29 Thread Ulf Hansson
From: Lina Iyer Update DT bindings to represent hierarchical CPU and CPU PM domain idle states for PSCI. Also update the PSCI examples to clearly show how flattened and hierarchical idle states can be represented in DT. Cc: Lina Iyer Signed-off-by: Lina Iyer Co-developed-by: Ulf Hansson

[PATCH v10 16/27] drivers: firmware: psci: Prepare to use OS initiated suspend mode

2018-11-29 Thread Ulf Hansson
To enable the OS initiated mode, the CPU topology needs to be described using the hierarchical model in DT. When used, the idle state bits for the CPU are created by ORing the bits for PM domain's idle state. Let's prepare the PSCI driver to deal with this, via introducing a per CPU variable

[PATCH v10 16/27] drivers: firmware: psci: Prepare to use OS initiated suspend mode

2018-11-29 Thread Ulf Hansson
To enable the OS initiated mode, the CPU topology needs to be described using the hierarchical model in DT. When used, the idle state bits for the CPU are created by ORing the bits for PM domain's idle state. Let's prepare the PSCI driver to deal with this, via introducing a per CPU variable

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Josh Poimboeuf
On Thu, Nov 29, 2018 at 09:41:33AM -0800, Andy Lutomirski wrote: > > > On Nov 29, 2018, at 9:21 AM, Steven Rostedt wrote: > > > > On Thu, 29 Nov 2018 12:20:00 -0500 > > Steven Rostedt wrote: > > > > > >> r8 = return address > >> r9 = function to call > >> > > > > Bad example, r8 and r9 are

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Josh Poimboeuf
On Thu, Nov 29, 2018 at 09:41:33AM -0800, Andy Lutomirski wrote: > > > On Nov 29, 2018, at 9:21 AM, Steven Rostedt wrote: > > > > On Thu, 29 Nov 2018 12:20:00 -0500 > > Steven Rostedt wrote: > > > > > >> r8 = return address > >> r9 = function to call > >> > > > > Bad example, r8 and r9 are

Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC

2018-11-29 Thread Masayoshi Mizuma
On Thu, Nov 29, 2018 at 04:16:27PM +0800, Chao Fan wrote: > To fix the conflict between KASLR and memory-hotremove, memory > information in SRAT table is necessary. > > ACPI SRAT (System/Static Resource Affinity Table) can show the details > about memory ranges, including ranges of memory

Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC

2018-11-29 Thread Masayoshi Mizuma
On Thu, Nov 29, 2018 at 04:16:27PM +0800, Chao Fan wrote: > To fix the conflict between KASLR and memory-hotremove, memory > information in SRAT table is necessary. > > ACPI SRAT (System/Static Resource Affinity Table) can show the details > about memory ranges, including ranges of memory

Re: [PATCH v6 08/24] arm64: Unmask PMR before going idle

2018-11-29 Thread Mark Rutland
On Mon, Nov 12, 2018 at 11:56:59AM +, Julien Thierry wrote: > CPU does not received signals for interrupts with a priority masked by > ICC_PMR_EL1. This means the CPU might not come back from a WFI > instruction. > > Make sure ICC_PMR_EL1 does not mask interrupts when doing a WFI. > >

Re: remove the ->mapping_error method from dma_map_ops V2

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 8:23 AM Christoph Hellwig wrote: > > We can. At least in theory. The problem is that depending on the > crazy mapping from physical and kernel virtual address to dma addresses > these might be pages at pretty random places. Look at fun like >

Re: [PATCH v6 08/24] arm64: Unmask PMR before going idle

2018-11-29 Thread Mark Rutland
On Mon, Nov 12, 2018 at 11:56:59AM +, Julien Thierry wrote: > CPU does not received signals for interrupts with a priority masked by > ICC_PMR_EL1. This means the CPU might not come back from a WFI > instruction. > > Make sure ICC_PMR_EL1 does not mask interrupts when doing a WFI. > >

Re: remove the ->mapping_error method from dma_map_ops V2

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 8:23 AM Christoph Hellwig wrote: > > We can. At least in theory. The problem is that depending on the > crazy mapping from physical and kernel virtual address to dma addresses > these might be pages at pretty random places. Look at fun like >

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 09:35:11 -0800 Linus Torvalds wrote: > On Thu, Nov 29, 2018 at 9:13 AM Steven Rostedt wrote: > > > > No, we really do need to sync after we change the second part of the > > command with the int3 on it. Unless there's another way to guarantee > > that the full instruction

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 09:35:11 -0800 Linus Torvalds wrote: > On Thu, Nov 29, 2018 at 9:13 AM Steven Rostedt wrote: > > > > No, we really do need to sync after we change the second part of the > > command with the int3 on it. Unless there's another way to guarantee > > that the full instruction

My Humble Request

2018-11-29 Thread Abel Brent
Dear Friend, I am Abel Brent, a NATO soldier serving in Afghanistan. I and my Comrades, we are seeking your assistance to help us receive/invest our funds in your country in any lucrative business. Please if this proposal is acceptable by you, kindly respond back to me for more details.

My Humble Request

2018-11-29 Thread Abel Brent
Dear Friend, I am Abel Brent, a NATO soldier serving in Afghanistan. I and my Comrades, we are seeking your assistance to help us receive/invest our funds in your country in any lucrative business. Please if this proposal is acceptable by you, kindly respond back to me for more details.

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:21 AM, Steven Rostedt wrote: > > On Thu, 29 Nov 2018 12:20:00 -0500 > Steven Rostedt wrote: > > >> r8 = return address >> r9 = function to call >> > > Bad example, r8 and r9 are args, but r10 and r11 are available. > > -- Steve > >>push r8 >>jmp *r9 >>

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:21 AM, Steven Rostedt wrote: > > On Thu, 29 Nov 2018 12:20:00 -0500 > Steven Rostedt wrote: > > >> r8 = return address >> r9 = function to call >> > > Bad example, r8 and r9 are args, but r10 and r11 are available. > > -- Steve > >>push r8 >>jmp *r9 >>

[PATCH] Input: mouse: elan_i2c_core: Added support for ELAN0621 touchpad.

2018-11-29 Thread adam
From: Adam Wong Added the ability to detect the ELAN0621 touchpad found in some Lenovo laptops. Signed-off-by: Adam Wong --- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index

[PATCH] Input: mouse: elan_i2c_core: Added support for ELAN0621 touchpad.

2018-11-29 Thread adam
From: Adam Wong Added the ability to detect the ELAN0621 touchpad found in some Lenovo laptops. Signed-off-by: Adam Wong --- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index

Re: [PATCH] PCI: pciehp: Report degraded links via link bandwidth notification

2018-11-29 Thread Bjorn Helgaas
On Wed, Nov 28, 2018 at 06:08:24PM -0600, Alexandru Gagniuc wrote: > A warning is generated when a PCIe device is probed with a degraded > link, but there was no similar mechanism to warn when the link becomes > degraded after probing. The Link Bandwidth Notification provides this > mechanism. >

Re: [PATCH v6 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-29 Thread Schrempf Frieder
Hi Han, On 29.11.18 17:30, Han Xu wrote: > > >> -Original Message- >> From: Schrempf Frieder >> Sent: Thursday, November 29, 2018 5:54 AM >> To: Yogesh Narayan Gaur ; linux- >> m...@lists.infradead.org; boris.brezil...@bootlin.com; linux- >> s...@vger.kernel.org; Marek Vasut ; Mark

Re: [PATCH] PCI: pciehp: Report degraded links via link bandwidth notification

2018-11-29 Thread Bjorn Helgaas
On Wed, Nov 28, 2018 at 06:08:24PM -0600, Alexandru Gagniuc wrote: > A warning is generated when a PCIe device is probed with a degraded > link, but there was no similar mechanism to warn when the link becomes > degraded after probing. The Link Bandwidth Notification provides this > mechanism. >

Re: [PATCH v6 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-29 Thread Schrempf Frieder
Hi Han, On 29.11.18 17:30, Han Xu wrote: > > >> -Original Message- >> From: Schrempf Frieder >> Sent: Thursday, November 29, 2018 5:54 AM >> To: Yogesh Narayan Gaur ; linux- >> m...@lists.infradead.org; boris.brezil...@bootlin.com; linux- >> s...@vger.kernel.org; Marek Vasut ; Mark

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 9:13 AM Steven Rostedt wrote: > > No, we really do need to sync after we change the second part of the > command with the int3 on it. Unless there's another way to guarantee > that the full instruction gets seen when we replace the int3 with the > finished command. Making

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:29 AM, Linus Torvalds > wrote: > > On Thu, Nov 29, 2018 at 9:02 AM Andy Lutomirski wrote: >>> >>> - just restart the instruction (with the suggested "ptregs->rip --") >>> >>> - to avoid any "oh, we're not making progress" issues, just fix the >>> instruction

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 9:13 AM Steven Rostedt wrote: > > No, we really do need to sync after we change the second part of the > command with the int3 on it. Unless there's another way to guarantee > that the full instruction gets seen when we replace the int3 with the > finished command. Making

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:29 AM, Linus Torvalds > wrote: > > On Thu, Nov 29, 2018 at 9:02 AM Andy Lutomirski wrote: >>> >>> - just restart the instruction (with the suggested "ptregs->rip --") >>> >>> - to avoid any "oh, we're not making progress" issues, just fix the >>> instruction

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Jiri Kosina
On Thu, 29 Nov 2018, Andy Lutomirski wrote: > Does anyone know what the actual hardware semantics are? The SDM is not > particularly informative unless I looked at the wrong section. I don't think SDM answers all the questions there, unfortunately. I vaguely remember that back then when I was

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Jiri Kosina
On Thu, 29 Nov 2018, Andy Lutomirski wrote: > Does anyone know what the actual hardware semantics are? The SDM is not > particularly informative unless I looked at the wrong section. I don't think SDM answers all the questions there, unfortunately. I vaguely remember that back then when I was

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 9:02 AM Andy Lutomirski wrote: > > > > - just restart the instruction (with the suggested "ptregs->rip --") > > > > - to avoid any "oh, we're not making progress" issues, just fix the > > instruction yourself to be the right call, by looking it up in the > > "what needs to

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 9:02 AM Andy Lutomirski wrote: > > > > - just restart the instruction (with the suggested "ptregs->rip --") > > > > - to avoid any "oh, we're not making progress" issues, just fix the > > instruction yourself to be the right call, by looking it up in the > > "what needs to

Re: [PATCH v12 0/5] x86/boot/KASLR: Parse ACPI table and limit KASLR to choosing immovable memory

2018-11-29 Thread Masayoshi Mizuma
Hi Chao, Thank you for your continued working. Could you please build your patches before sending? Your patches depend on the following kconfig, so please build them under the config combination. RANDOMIZE_BASE MEMORY_HOTREMOVE EARLY_PARSE_RSDP KEXEC EFI Thanks, Masa On Thu, Nov 29, 2018 at

Re: [PATCH v12 0/5] x86/boot/KASLR: Parse ACPI table and limit KASLR to choosing immovable memory

2018-11-29 Thread Masayoshi Mizuma
Hi Chao, Thank you for your continued working. Could you please build your patches before sending? Your patches depend on the following kconfig, so please build them under the config combination. RANDOMIZE_BASE MEMORY_HOTREMOVE EARLY_PARSE_RSDP KEXEC EFI Thanks, Masa On Thu, Nov 29, 2018 at

Re: [PATCH 4.19 033/110] bfs: add sanity check at bfs_fill_super()

2018-11-29 Thread Tigran Aivazian
On Thu, 29 Nov 2018 at 17:10, Greg KH wrote: > Your patch has to apply on top of the existing one, so there's not an > issue here. > And might as well fix it now, as I can never count on a "future" patch > getting merged. It is already fixed, i.e. it applies cleanly against the existing (i.e.

Re: [PATCH 4.19 033/110] bfs: add sanity check at bfs_fill_super()

2018-11-29 Thread Tigran Aivazian
On Thu, 29 Nov 2018 at 17:10, Greg KH wrote: > Your patch has to apply on top of the existing one, so there's not an > issue here. > And might as well fix it now, as I can never count on a "future" patch > getting merged. It is already fixed, i.e. it applies cleanly against the existing (i.e.

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:07 AM, Peter Zijlstra wrote: > > On Thu, Nov 29, 2018 at 09:02:23AM -0800, Andy Lutomirski wrote: >>> On Nov 29, 2018, at 8:50 AM, Linus Torvalds >>> wrote: > >>> So no. Do *not* try to change %rsp on the stack in the bp handler. >>> Instead, I'd suggest: >>> >>> -

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Andy Lutomirski
> On Nov 29, 2018, at 9:07 AM, Peter Zijlstra wrote: > > On Thu, Nov 29, 2018 at 09:02:23AM -0800, Andy Lutomirski wrote: >>> On Nov 29, 2018, at 8:50 AM, Linus Torvalds >>> wrote: > >>> So no. Do *not* try to change %rsp on the stack in the bp handler. >>> Instead, I'd suggest: >>> >>> -

Re: [RFC] locking/rwsem: Avoid issuing wakeup before setting the reader waiter to nil

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 12:02:19PM -0500, Waiman Long wrote: > On 11/29/2018 11:06 AM, Peter Zijlstra wrote: > > Why; at that point we know the wakeup will happen after, which is all we > > require. > > > Thread 1  Thread 2  Thread 3 > >    

Re: [RFC] locking/rwsem: Avoid issuing wakeup before setting the reader waiter to nil

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 12:02:19PM -0500, Waiman Long wrote: > On 11/29/2018 11:06 AM, Peter Zijlstra wrote: > > Why; at that point we know the wakeup will happen after, which is all we > > require. > > > Thread 1  Thread 2  Thread 3 > >    

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 12:20:00 -0500 Steven Rostedt wrote: > r8 = return address > r9 = function to call > Bad example, r8 and r9 are args, but r10 and r11 are available. -- Steve > push r8 > jmp *r9 > > Then have the regs->ip point to that trampoline. > > -- Steve

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 12:20:00 -0500 Steven Rostedt wrote: > r8 = return address > r9 = function to call > Bad example, r8 and r9 are args, but r10 and r11 are available. -- Steve > push r8 > jmp *r9 > > Then have the regs->ip point to that trampoline. > > -- Steve

Re: [PATCH v3] thermal: qoriq: add multiple sensors support

2018-11-29 Thread Eduardo Valentin
On Wed, Nov 21, 2018 at 10:41:36AM +0100, Daniel Lezcano wrote: > On 21/11/2018 10:16, Andy Tang wrote: > > Hi Daniel, > > > > Thanks for your explanation. The problem is these two trees are not synced > > well. > > Let's take our driver(qoriq_thermal.c) for example. > > > > Git log on Rui's

Re: [PATCH v3] thermal: qoriq: add multiple sensors support

2018-11-29 Thread Eduardo Valentin
On Wed, Nov 21, 2018 at 10:41:36AM +0100, Daniel Lezcano wrote: > On 21/11/2018 10:16, Andy Tang wrote: > > Hi Daniel, > > > > Thanks for your explanation. The problem is these two trees are not synced > > well. > > Let's take our driver(qoriq_thermal.c) for example. > > > > Git log on Rui's

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 18:15:39 +0100 Peter Zijlstra wrote: > On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > > > If you make it conditional on CPL, do it for 32-bit as well, add > > comments, > > > and convince yourself that there isn’t a better solution > > (like pointing

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 18:15:39 +0100 Peter Zijlstra wrote: > On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > > > If you make it conditional on CPL, do it for 32-bit as well, add > > comments, > > > and convince yourself that there isn’t a better solution > > (like pointing

Re: [PATCH v3] thermal: qoriq: add multiple sensors support

2018-11-29 Thread Eduardo Valentin
On Wed, Nov 21, 2018 at 09:16:08AM +, Andy Tang wrote: > Hi Daniel, > > Thanks for your explanation. The problem is these two trees are not synced > well. > Let's take our driver(qoriq_thermal.c) for example. > > Git log on Rui's tree next branch: > 2dfef65 thermal: qoriq: Switch to SPDX

Re: [PATCH v3] thermal: qoriq: add multiple sensors support

2018-11-29 Thread Eduardo Valentin
On Wed, Nov 21, 2018 at 09:16:08AM +, Andy Tang wrote: > Hi Daniel, > > Thanks for your explanation. The problem is these two trees are not synced > well. > Let's take our driver(qoriq_thermal.c) for example. > > Git log on Rui's tree next branch: > 2dfef65 thermal: qoriq: Switch to SPDX

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > If you make it conditional on CPL, do it for 32-bit as well, add > comments, > and convince yourself that there isn’t a better solution > (like pointing IP at a stub that retpolines to the target by reading > the function

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > If you make it conditional on CPL, do it for 32-bit as well, add > comments, > and convince yourself that there isn’t a better solution > (like pointing IP at a stub that retpolines to the target by reading > the function

Re: [PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-29 Thread Thierry Reding
On Thu, Nov 29, 2018 at 01:55:02PM +0800, Wei Ni wrote: > On 28/11/2018 6:25 PM, Thierry Reding wrote: > > On Wed, Nov 28, 2018 at 01:44:37PM +0800, Wei Ni wrote: [...] > >> + bool ret = false; > >> + struct of_phandle_args sensor_specs; > >> + struct device_node *np, *sensor_np; > >> + > >> +

Re: [PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-29 Thread Thierry Reding
On Thu, Nov 29, 2018 at 01:55:02PM +0800, Wei Ni wrote: > On 28/11/2018 6:25 PM, Thierry Reding wrote: > > On Wed, Nov 28, 2018 at 01:44:37PM +0800, Wei Ni wrote: [...] > >> + bool ret = false; > >> + struct of_phandle_args sensor_specs; > >> + struct device_node *np, *sensor_np; > >> + > >> +

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 09:02:23 -0800 Andy Lutomirski wrote: > > Instead, I'd suggest: > > > > - just restart the instruction (with the suggested "ptregs->rip --") > > > > - to avoid any "oh, we're not making progress" issues, just fix the > > instruction yourself to be the right call, by

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Steven Rostedt
On Thu, 29 Nov 2018 09:02:23 -0800 Andy Lutomirski wrote: > > Instead, I'd suggest: > > > > - just restart the instruction (with the suggested "ptregs->rip --") > > > > - to avoid any "oh, we're not making progress" issues, just fix the > > instruction yourself to be the right call, by

Re: MPX is broken for 32bit programs on a 64bit host

2018-11-29 Thread Dave Hansen
On 11/29/18 6:17 AM, Sebastian Andrzej Siewior wrote: > This is broken since v4.12-rc1. This is known [1] since April this year. > Should I send a removal patch for MPX or is someone actually going to > fix this? Or do we wait for gcc-9 to be released? I've got a git tree prepared to do MPX

Re: MPX is broken for 32bit programs on a 64bit host

2018-11-29 Thread Dave Hansen
On 11/29/18 6:17 AM, Sebastian Andrzej Siewior wrote: > This is broken since v4.12-rc1. This is known [1] since April this year. > Should I send a removal patch for MPX or is someone actually going to > fix this? Or do we wait for gcc-9 to be released? I've got a git tree prepared to do MPX

Re: [PATCH v6 03/24] arm64: cpufeature: Add cpufeature for IRQ priority masking

2018-11-29 Thread Mark Rutland
On Mon, Nov 12, 2018 at 11:56:54AM +, Julien Thierry wrote: > Add a cpufeature indicating whether a cpu supports masking interrupts > by priority. > > The feature will be properly enabled in a later patch. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc:

[PATCH 02/11] efi/fdt: Indentation fix

2018-11-29 Thread Ard Biesheuvel
From: Julien Thierry Closing bracket seems to end a for statement when it is actually ending the contained if. Add some brackets to have clear delimitation of each scope. No functional change/fix, just fix the indentation. Signed-off-by: Julien Thierry Signed-off-by: Ard Biesheuvel ---

Re: [PATCH v6 03/24] arm64: cpufeature: Add cpufeature for IRQ priority masking

2018-11-29 Thread Mark Rutland
On Mon, Nov 12, 2018 at 11:56:54AM +, Julien Thierry wrote: > Add a cpufeature indicating whether a cpu supports masking interrupts > by priority. > > The feature will be properly enabled in a later patch. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc:

[PATCH 02/11] efi/fdt: Indentation fix

2018-11-29 Thread Ard Biesheuvel
From: Julien Thierry Closing bracket seems to end a for statement when it is actually ending the contained if. Add some brackets to have clear delimitation of each scope. No functional change/fix, just fix the indentation. Signed-off-by: Julien Thierry Signed-off-by: Ard Biesheuvel ---

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Josh Poimboeuf
On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > > > > On Nov 29, 2018, at 8:49 AM, Peter Zijlstra wrote: > > > > On Thu, Nov 29, 2018 at 10:33:42AM -0600, Josh Poimboeuf wrote: > >>> can't we 'fix' that again? The alternative is moving that IRET-frame and > >>> fixing

Re: [PATCH] Input: mouse: elan_i2c_core: Added support for ELAN0621 touchpad.

2018-11-29 Thread Greg KH
On Thu, Nov 29, 2018 at 11:30:19AM -0500, a...@adamwong.me wrote: > From: TheWongGuy > > Added the ability to detect the ELAN0621 touchpad found in some Lenovo > laptops. > > Signed-off-by: TheWongGuy I doubt that is the name on your passport :( Please use your "real" name, like you did for

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Josh Poimboeuf
On Thu, Nov 29, 2018 at 08:59:31AM -0800, Andy Lutomirski wrote: > > > > On Nov 29, 2018, at 8:49 AM, Peter Zijlstra wrote: > > > > On Thu, Nov 29, 2018 at 10:33:42AM -0600, Josh Poimboeuf wrote: > >>> can't we 'fix' that again? The alternative is moving that IRET-frame and > >>> fixing

Re: [PATCH] Input: mouse: elan_i2c_core: Added support for ELAN0621 touchpad.

2018-11-29 Thread Greg KH
On Thu, Nov 29, 2018 at 11:30:19AM -0500, a...@adamwong.me wrote: > From: TheWongGuy > > Added the ability to detect the ELAN0621 touchpad found in some Lenovo > laptops. > > Signed-off-by: TheWongGuy I doubt that is the name on your passport :( Please use your "real" name, like you did for

Re: [LKP] [block] 9d037ad707: BUG:unable_to_handle_kernel

2018-11-29 Thread Jens Axboe
On 11/29/18 10:05 AM, Christoph Hellwig wrote: > On Thu, Nov 29, 2018 at 05:20:31PM +0800, kernel test robot wrote: >> FYI, we noticed the following commit (built with gcc-7): >> >> commit: 9d037ad707ed6069fbea4e38e6ee37e027b13f1d ("block: remove >> req->timeout_list") >>

Re: [PATCH 4.19 033/110] bfs: add sanity check at bfs_fill_super()

2018-11-29 Thread Greg KH
On Thu, Nov 29, 2018 at 04:55:20PM +, Tigran Aivazian wrote: > On Thu, 29 Nov 2018 at 16:07, Greg KH wrote: > > On Thu, Nov 29, 2018 at 03:23:00PM +, Tigran Aivazian wrote: > > > Yes, of course I object to it. > > I can not apply a patch to the stable trees that are not in Linus's tree >

Re: [LKP] [block] 9d037ad707: BUG:unable_to_handle_kernel

2018-11-29 Thread Jens Axboe
On 11/29/18 10:05 AM, Christoph Hellwig wrote: > On Thu, Nov 29, 2018 at 05:20:31PM +0800, kernel test robot wrote: >> FYI, we noticed the following commit (built with gcc-7): >> >> commit: 9d037ad707ed6069fbea4e38e6ee37e027b13f1d ("block: remove >> req->timeout_list") >>

Re: [PATCH 4.19 033/110] bfs: add sanity check at bfs_fill_super()

2018-11-29 Thread Greg KH
On Thu, Nov 29, 2018 at 04:55:20PM +, Tigran Aivazian wrote: > On Thu, 29 Nov 2018 at 16:07, Greg KH wrote: > > On Thu, Nov 29, 2018 at 03:23:00PM +, Tigran Aivazian wrote: > > > Yes, of course I object to it. > > I can not apply a patch to the stable trees that are not in Linus's tree >

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 09:02:23AM -0800, Andy Lutomirski wrote: > > On Nov 29, 2018, at 8:50 AM, Linus Torvalds > > wrote: > > So no. Do *not* try to change %rsp on the stack in the bp handler. > > Instead, I'd suggest: > > > > - just restart the instruction (with the suggested "ptregs->rip

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 09:02:23AM -0800, Andy Lutomirski wrote: > > On Nov 29, 2018, at 8:50 AM, Linus Torvalds > > wrote: > > So no. Do *not* try to change %rsp on the stack in the bp handler. > > Instead, I'd suggest: > > > > - just restart the instruction (with the suggested "ptregs->rip

Re: [LKP] [block] 9d037ad707: BUG:unable_to_handle_kernel

2018-11-29 Thread Christoph Hellwig
On Thu, Nov 29, 2018 at 05:20:31PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 9d037ad707ed6069fbea4e38e6ee37e027b13f1d ("block: remove > req->timeout_list") > https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git mq-perf

Re: [LKP] [block] 9d037ad707: BUG:unable_to_handle_kernel

2018-11-29 Thread Christoph Hellwig
On Thu, Nov 29, 2018 at 05:20:31PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 9d037ad707ed6069fbea4e38e6ee37e027b13f1d ("block: remove > req->timeout_list") > https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git mq-perf

[PATCH v2 5/5] gpio: tegra186: Use valid mask instead of sparse number space

2018-11-29 Thread Thierry Reding
From: Thierry Reding While the sparse number space has the advantage of only providing (and therefore allocating) the GPIOs (and interrupts) that really exist for the given SoC, it also requires special cases in various callbacks. Using the valid masks for GPIOs and interrupts enables reusing

[PATCH v2 5/5] gpio: tegra186: Use valid mask instead of sparse number space

2018-11-29 Thread Thierry Reding
From: Thierry Reding While the sparse number space has the advantage of only providing (and therefore allocating) the GPIOs (and interrupts) that really exist for the given SoC, it also requires special cases in various callbacks. Using the valid masks for GPIOs and interrupts enables reusing

[PATCH v2 4/5] gpio: tegra186: Implement wake event support

2018-11-29 Thread Thierry Reding
From: Thierry Reding The GPIO controller doesn't have any controls to enable the system to wake up from low power states based on activity on GPIO pins. An extra hardware block that is part of the power management controller (PMC) contains these controls. In order for the GPIO controller to be

[PATCH v2 4/5] gpio: tegra186: Implement wake event support

2018-11-29 Thread Thierry Reding
From: Thierry Reding The GPIO controller doesn't have any controls to enable the system to wake up from low power states based on activity on GPIO pins. An extra hardware block that is part of the power management controller (PMC) contains these controls. In order for the GPIO controller to be

<    5   6   7   8   9   10   11   12   13   14   >