Re: [PATCH RFC 14/22] arm64: convert to arch_cpu_is_hotpluggable()

2023-11-30 Thread Russell King (Oracle)
On Tue, Nov 28, 2023 at 03:11:15PM +, Jonathan Cameron wrote: > On Tue, 07 Nov 2023 10:30:30 + > "Russell King (Oracle)" wrote: > > > Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than > > arch_register_cpu(). > > > > Sig

Re: [PATCH RFC 02/22] x86: intel_epb: Don't rely on link order

2023-11-28 Thread Russell King (Oracle)
On Tue, Nov 28, 2023 at 02:40:59PM +, Jonathan Cameron wrote: > On Tue, 07 Nov 2023 10:29:28 + > Russell King wrote: > > > From: James Morse > > > > intel_epb_init() is called as a subsys_initcall() to register cpuhp > > callbacks. The callbacks make u

Re: [PATCH RFC 01/22] arch_topology: Make register_cpu_capacity_sysctl() tolerant to late CPUs

2023-11-28 Thread Russell King (Oracle)
On Tue, Nov 28, 2023 at 02:37:22PM +, Jonathan Cameron wrote: > On Tue, 07 Nov 2023 10:29:23 + > Russell King wrote: > > > From: James Morse > > > > register_cpu_capacity_sysctl() adds a property to sysfs that describes > > the CPUs capacity. This is d

[PATCH 21/21] riscv: convert to use arch_cpu_is_hotpluggable()

2023-11-21 Thread Russell King (Oracle)
Convert riscv to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Acked-by: Palmer Dabbelt Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch/riscv/kernel/setup.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/riscv

[PATCH 19/21] LoongArch: convert to use arch_cpu_is_hotpluggable()

2023-11-21 Thread Russell King (Oracle)
Convert loongarch to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Also remove the export as nothing should be using arch_register_cpu() outside of the core kernel/acpi code. Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch/loongarch/kernel

[PATCH 16/21] x86/topology: convert to use arch_cpu_is_hotpluggable()

2023-11-21 Thread Russell King (Oracle)
Convert x86 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch/x86/kernel/topology.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/topology.c b/arch/x86

[PATCH 15/21] x86/topology: use weak version of arch_unregister_cpu()

2023-11-21 Thread Russell King (Oracle)
Since the x86 version of arch_unregister_cpu() is the same as the weak version, drop the x86 specific version. Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- Changes since RFC v3: * Adapt to removal of EXPORT_SYMBOL()s --- arch/x86/kernel/topology.c | 5 - 1 file changed

[PATCH 13/21] arm64: convert to arch_cpu_is_hotpluggable()

2023-11-21 Thread Russell King (Oracle)
Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Reviewed-by: Shaoqin Huang Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch/arm64/kernel/setup.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch

[PATCH 09/21] drivers: base: add arch_cpu_is_hotpluggable()

2023-11-21 Thread Russell King (Oracle)
Signed-off-by: Russell King (Oracle) --- drivers/base/cpu.c | 11 ++- include/linux/cpu.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 58bb86091b34..221ffbeb1c9b 100644 --- a/drivers/base/cpu.c +++ b/drivers/base

[PATCH 04/21] Loongarch: remove arch_*register_cpu() exports

2023-11-21 Thread Russell King (Oracle)
arch_register_cpu() and arch_unregister_cpu() are not used by anything that can be a module - they are used by drivers/base/cpu.c and drivers/acpi/acpi_processor.c, neither of which can be a module. Remove the exports. Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch

[PATCH 03/21] x86/topology: remove arch_*register_cpu() exports

2023-11-21 Thread Russell King (Oracle)
arch_register_cpu() and arch_unregister_cpu() are not used by anything that can be a module - they are used by drivers/base/cpu.c and drivers/acpi/acpi_processor.c, neither of which can be a module. Remove the exports. Reviewed-by: Gavin Shan Signed-off-by: Russell King (Oracle) --- arch/x86

[PATCH 00/21] Initial cleanups for vCPU hotplug

2023-11-21 Thread Russell King (Oracle)
Hi, Rather than posting the entire set of vCPU kernel patches, this is a subset of those patches which I hope will be able to be appropriately queued for the next merge window. I am also hoping that nothing here is covered by Rafael's concerns he alluded to in his response to the RFC v3 series. T

Re: [PATCH RFC 08/22] drivers: base: Implement weak arch_unregister_cpu()

2023-11-21 Thread Russell King (Oracle)
On Tue, Nov 07, 2023 at 10:29:59AM +, Russell King wrote: > From: James Morse > > Add arch_unregister_cpu() to allow the ACPI machinery to call > unregister_cpu(). This is enough for arm64, riscv and loongarch, but > needs to be overridden by x86 and ia64 who need to do mor

Re: [PATCH RFC 10/22] drivers: base: Move cpu_dev_init() after node_dev_init()

2023-11-21 Thread Russell King (Oracle)
On Mon, Nov 13, 2023 at 08:00:19AM +, Russell King (Oracle) wrote: > On Mon, Nov 13, 2023 at 10:58:46AM +1000, Gavin Shan wrote: > > > > > > On 11/7/23 20:30, Russell King (Oracle) wrote: > > > From: James Morse > > > > > > NUMA systems requi

Re: [PATCH 34/39] arm64: psci: Ignore DENIED CPUs

2023-11-20 Thread Russell King (Oracle)
On Mon, Nov 20, 2023 at 09:36:05AM +, Jianyong Wu wrote: > > > > -Original Message- > > From: Russell King > > Sent: 2023年11月20日 17:25 > > To: Jianyong Wu > > Cc: linux...@vger.kernel.org; loonga...@lists.linux.dev; > > linux-a...@v

Re: [PATCH 34/39] arm64: psci: Ignore DENIED CPUs

2023-11-20 Thread Russell King (Oracle)
On Thu, Nov 16, 2023 at 07:45:51AM +, Jianyong Wu wrote: > Hi Russell, > > One inline comment. ... > > Changes since RFC v2 > > * Add specification reference > > * Use EPERM rather than EPROBE_DEFER ... > > @@ -40,7 +40,7 @@ static int cpu_psci_cpu_boot(unsigned int cpu) { > > phys_addr

Re: [PATCH RFC 11/22] drivers: base: remove unnecessary call to register_cpu_under_node()

2023-11-15 Thread Russell King (Oracle)
On Mon, Nov 13, 2023 at 02:04:32PM +1000, Gavin Shan wrote: > On 11/7/23 20:30, Russell King (Oracle) wrote: > > Since "drivers: base: Move cpu_dev_init() after node_dev_init()", we > > can remove some redundant code. > > > > node_dev_init() will walk throug

Re: [PATCH RFC 05/22] ACPI: Move ACPI_HOTPLUG_CPU to be disabled on arm64 and riscv

2023-11-13 Thread Russell King (Oracle)
On Mon, Nov 13, 2023 at 10:29:39AM +1000, Gavin Shan wrote: > On 11/7/23 20:29, Russell King (Oracle) wrote: > > From: James Morse > > > > Neither arm64 nor riscv support physical hotadd of CPUs that were not > > present at boot. For arm64 much of the platform descript

Re: [PATCH RFC 10/22] drivers: base: Move cpu_dev_init() after node_dev_init()

2023-11-13 Thread Russell King (Oracle)
On Mon, Nov 13, 2023 at 10:58:46AM +1000, Gavin Shan wrote: > > > On 11/7/23 20:30, Russell King (Oracle) wrote: > > From: James Morse > > > > NUMA systems require the node descriptions to be ready before CPUs are > > registered. This is so that the node

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Russell King (Oracle)
On Thu, Nov 09, 2023 at 06:09:32PM +0800, Shaoqin Huang wrote: > Hi Russell, > > On 11/7/23 18:29, Russell King (Oracle) wrote: > > From: James Morse > > > > Three of the five ACPI architectures create sysfs entries using > > register_cpu() for present C

[PATCH RFC 22/22] riscv: convert to use arch_cpu_is_hotpluggable()

2023-11-07 Thread Russell King (Oracle)
Convert riscv to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Signed-off-by: Russell King (Oracle) --- arch/riscv/kernel/setup.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index

[PATCH RFC 20/22] LoongArch: convert to use arch_cpu_is_hotpluggable()

2023-11-07 Thread Russell King (Oracle)
Convert loongarch to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Also remove the export as nothing should be using arch_register_cpu() outside of the core kernel/acpi code. Signed-off-by: Russell King (Oracle) --- arch/loongarch/kernel/topology.c | 7 ++- 1

[PATCH RFC 17/22] x86/topology: convert to use arch_cpu_is_hotpluggable()

2023-11-07 Thread Russell King (Oracle)
Convert x86 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Signed-off-by: Russell King (Oracle) --- arch/x86/kernel/topology.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index

[PATCH RFC 16/22] x86/topology: use weak version of arch_unregister_cpu()

2023-11-07 Thread Russell King (Oracle)
Since the x86 version of arch_unregister_cpu() is the same as the weak version, drop the x86 specific version. Signed-off-by: Russell King (Oracle) --- Changes since RFC v3: * Adapt to removal of EXPORT_SYMBOL()s --- arch/x86/kernel/topology.c | 5 - 1 file changed, 5 deletions(-) diff

[PATCH RFC 14/22] arm64: convert to arch_cpu_is_hotpluggable()

2023-11-07 Thread Russell King (Oracle)
Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Signed-off-by: Russell King (Oracle) --- arch/arm64/kernel/setup.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index

[PATCH RFC 11/22] drivers: base: remove unnecessary call to register_cpu_under_node()

2023-11-07 Thread Russell King (Oracle)
be removed. Signed-off-by: Russell King (Oracle) --- drivers/base/node.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/base/node.c b/drivers/base/node.c index 493d533f8375..4d5ac7cf8757 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -867,7 +867

[PATCH RFC 09/22] drivers: base: add arch_cpu_is_hotpluggable()

2023-11-07 Thread Russell King (Oracle)
The differences between architecture specific implementations of arch_register_cpu() are down to whether the CPU is hotpluggable or not. Rather than overriding the weak version of arch_register_cpu(), provide a function that can be used to provide this detail instead. Signed-off-by: Russell King

[PATCH RFC 04/22] Loongarch: remove arch_*register_cpu() exports

2023-11-07 Thread Russell King (Oracle)
arch_register_cpu() and arch_unregister_cpu() are not used by anything that can be a module - they are used by drivers/base/cpu.c and drivers/acpi/acpi_processor.c, neither of which can be a module. Remove the exports. Signed-off-by: Russell King (Oracle) --- arch/loongarch/kernel/topology.c

[PATCH RFC 03/22] x86/topology: remove arch_*register_cpu() exports

2023-11-07 Thread Russell King (Oracle)
arch_register_cpu() and arch_unregister_cpu() are not used by anything that can be a module - they are used by drivers/base/cpu.c and drivers/acpi/acpi_processor.c, neither of which can be a module. Remove the exports. Signed-off-by: Russell King (Oracle) --- arch/x86/kernel/topology.c | 2

[PATCH RFC 00/22] Initial cleanups for vCPU hotplug

2023-11-07 Thread Russell King (Oracle)
Hi, Rather than posting the entire set of vCPU kernel patches, this is a subset of those patches which I hope will be able to be appropriately queued for the next merge window. I am also hoping that nothing here is covered by Rafael's concerns he alluded to in his response to the RFC v3 series. T

Re: [RFC PATCH v3 00/39] ACPI/arm64: add support for virtual cpuhotplug

2023-10-30 Thread Russell King (Oracle)
On Mon, Oct 30, 2023 at 04:41:19PM +, Miguel Luis wrote: > Hi Russell, > > Tested on QEMU, based on Salil's RFC v2 [1], running with KVM. > - boot > - hotplug up to 'maxcpus' > - hotunplug down to the number of boot cpus > - hotplug vcpus and migrate with vcpus offline > - hotplug vcpus and mi

Re: [RFC PATCH v3 00/39] ACPI/arm64: add support for virtual cpuhotplug

2023-10-24 Thread Russell King (Oracle)
On Tue, Oct 24, 2023 at 08:26:58PM +0200, Rafael J. Wysocki wrote: > On Tue, Oct 24, 2023 at 5:15 PM Russell King (Oracle) > wrote: > > > > Hi, > > > > I'm posting James' patch set updated with most of the review comments > > from his RFC v2 serie

Re: [RFC PATCH v3 00/39] ACPI/arm64: add support for virtual cpuhotplug

2023-10-24 Thread Russell King (Oracle)
On Tue, Oct 24, 2023 at 04:15:28PM +0100, Russell King (Oracle) wrote: > Hi, > > I'm posting James' patch set updated with most of the review comments > from his RFC v2 series back in September. Individual patches have a > changelog attached at the bottom of the commit

Re: [PATCH 38/39] cpumask: Add enabled cpumask for present CPUs that can be brought online

2023-10-24 Thread Russell King (Oracle)
On Tue, Oct 24, 2023 at 06:02:30PM +0200, Greg Kroah-Hartman wrote: > On Tue, Oct 24, 2023 at 04:19:24PM +0100, Russell King wrote: > > From: James Morse > > > > The 'offline' file in sysfs shows all offline CPUs, including those > > that aren't pre

[PATCH 09/39] drivers: base: remove unnecessary call to register_cpu_under_node()

2023-10-24 Thread Russell King (Oracle)
be removed. Signed-off-by: Russell King (Oracle) --- drivers/base/node.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/base/node.c b/drivers/base/node.c index 493d533f8375..4d5ac7cf8757 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -867,7 +867

[PATCH 01/39] parisc: simplify smp_prepare_boot_cpu()

2023-10-24 Thread Russell King (Oracle)
ince kernel/cpu.c::boot_cpu_init() already sets CPU 0 to be present and online, there is no need to do this again in smp_prepare_boot_cpu(). Remove this code, and simplify the printk(). Signed-off-by: Russell King (Oracle) --- arch/parisc/kernel/smp.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletio

[RFC PATCH v3 00/39] ACPI/arm64: add support for virtual cpuhotplug

2023-10-24 Thread Russell King (Oracle)
Hi, I'm posting James' patch set updated with most of the review comments from his RFC v2 series back in September. Individual patches have a changelog attached at the bottom of the commit message. Those which I have finished updating have my S-o-b on them, those which still have outstanding revie

[PATCH net-next] net: phylink: clarify where phylink should be used

2019-09-14 Thread Russell King
Update the phylink documentation to make it clear that phylink is designed to be used on the MAC facing side of the link, rather than between a SFP and PHY. Signed-off-by: Russell King --- Documentation/networking/sfp-phylink.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH net-next] doc: phy: document some PHY_INTERFACE_MODE_xxx settings

2019-06-21 Thread Russell King
There seems to be some confusion surrounding three PHY interface modes, specifically 1000BASE-X, 2500BASE-X and SGMII. Add some documentation to phylib detailing precisely what these interface modes refer to. Signed-off-by: Russell King --- This is in response to recent discussion, both public

[PATCH net-next v2 1/2] net: phylink: update mac_config() documentation

2019-02-22 Thread Russell King
-by: Russell King --- include/linux/phylink.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/phylink.h b/include/linux/phylink.h index f57059e4353f..6411c624f63a 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -149,6 +149,13 @@ int mac_link_state

[PATCH net-next v2 2/2] doc: add phylink documentation to the networking book

2019-02-22 Thread Russell King
Add some phylink documentation to the networking book detailing how to convert network drivers from phylib to phylink. Signed-off-by: Russell King --- v2: updated with comments from Randy and updated to apply to net-next Documentation/networking/index.rst | 1 + Documentation

Re: [PATCH 2/2] doc: add phylink documentation to the networking book

2019-02-22 Thread Russell King - ARM Linux admin
Hi Randy, Sorry for the delay. On Wed, Feb 13, 2019 at 08:00:29PM -0800, Randy Dunlap wrote: > On 2/5/19 7:58 AM, Russell King wrote: > > +uses in-band mode, where results from the PHYs negotiation are passed > > PHY's ... > &g

Re: [PATCH 1/2] net: phylink: update mac_config() documentation

2019-02-07 Thread Russell King - ARM Linux admin
On Wed, Feb 06, 2019 at 05:30:32PM -0800, David Miller wrote: > > These two patches do not apply cleanly to net nor net-next. > > Please send me something that does apply, and please always > clearly indicate which tree your changes are targetting. I've just tried this patch on current net-next,

[PATCH 2/2] doc: add phylink documentation to the networking book

2019-02-05 Thread Russell King
Add some phylink documentation to the networking book detailing how to convert network drivers from phylib to phylink. Signed-off-by: Russell King --- Version 2 adds the "Modes of operation" section, as it appears mvpp2 is non-conformant (which is, unfortunately, causing problems

[PATCH 1/2] net: phylink: update mac_config() documentation

2019-02-05 Thread Russell King
-by: Russell King --- include/linux/phylink.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 021fc6595856..606a121629a9 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -149,6 +149,13 @@ int mac_link_state

Re: [PATCH v7 0/3] clk: clkdev add managed lookup registrations

2019-01-31 Thread Russell King - ARM Linux admin
On Thu, Jan 31, 2019 at 03:24:52PM +0200, Matti Vaittinen wrote: > Hello All, > > On Fri, Dec 07, 2018 at 01:09:00PM +0200, Matti Vaittinen wrote: > > Series adds managed clkdev lookup interfaces and cleans few drivers > > > > Few clk drivers appear to be leaking clkdev lookup registrations at >

Re: [PATCH v5 1/9] clkdev: add managed clkdev lookup registration

2018-12-03 Thread Russell King - ARM Linux
Hi, On Mon, Dec 03, 2018 at 02:17:56PM +0200, Matti Vaittinen wrote: > diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c > index 9ab3db8b3988..68a1e55a60d2 100644 > --- a/drivers/clk/clkdev.c > +++ b/drivers/clk/clkdev.c > @@ -401,6 +401,25 @@ static struct clk_lookup *__clk_register_clkdev

Re: [PATCH v4 1/8] clk: clkdev/of_clk - add managed lookup and provider registrations

2018-11-30 Thread Russell King - ARM Linux
On Fri, Nov 30, 2018 at 12:50:22PM +0200, Matti Vaittinen wrote: > Hello Stephen, > > Thanks a bunch for taking the time and reviewing this! > > On Fri, Nov 30, 2018 at 12:54:10AM -0800, Stephen Boyd wrote: > > Quoting Matti Vaittinen (2018-11-13 03:55:58) > > > With MFD devices the clk propertie

Re: [PATCH v3 2/6] Disable instrumentation for some code

2018-04-03 Thread Russell King - ARM Linux
ode won't linkd with kernel image. > > > > Disable kasan check in the function unwind_pop_register > > because it doesn't matter that kasan checks failed when > > unwind_pop_register read stack memory of task. > > > > Reviewed-by: Russell King - ARM Linux >

Re: [PATCH v3 5/6] Initialize the mapping of KASan shadow memory

2018-04-02 Thread Russell King - ARM Linux
On Mon, Apr 02, 2018 at 02:08:13PM -0400, Nicolas Pitre wrote: > On Mon, 2 Apr 2018, Abbott Liu wrote: > > > index c79b829..20161e2 100644 > > --- a/arch/arm/kernel/head-common.S > > +++ b/arch/arm/kernel/head-common.S > > @@ -115,6 +115,9 @@ __mmap_switched: > > str r8, [r2]

[PATCH 09/11] sfp: fix sparse warning

2017-12-01 Thread Russell King
drivers/net/phy/sfp-bus.c:298:13: warning: context imbalance in 'sfp_bus_release' - wrong count at exit Signed-off-by: Russell King --- drivers/net/phy/sfp-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-b

[PATCH 11/11] phylink: convert to fwnode

2017-12-01 Thread Russell King
Convert phylink to fwnode, switching phylink_create() from taking a device_node to taking a fwnode_handle. This will allow other firmware systems to take advantage of sfp/phylink support. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 91

[PATCH 10/11] sfp: convert to fwnode

2017-12-01 Thread Russell King
Convert sfp-bus to use fwnode rather than device_node internally, so we can support more than just device tree firmware. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 3 ++- drivers/net/phy/sfp-bus.c | 14 +++--- include/linux/sfp.h | 7 --- 3 files changed, 13

[PATCH 08/11] sfp: add documentation for kernel APIs

2017-12-01 Thread Russell King
Add kernel-doc documentation for sfp kernel APIs, and link it into the networking kapi documentation under "Network device support". Signed-off-by: Russell King --- Documentation/networking/kapi.rst | 12 + drivers/net/phy/sfp-bus.c

[PATCH 07/11] phylink: add documentation for kernel APIs

2017-12-01 Thread Russell King
Add kernel-doc documentation for phylink kernel APIs, and link it into the networking kapi documentation under "Network device support". Signed-off-by: Russell King --- Documentation/networking/kapi.rst | 12 +++ drivers/net/phy/phylink.c

[PATCH 06/11] phylink: restart 802.3z negotiation when starting net device

2017-12-01 Thread Russell King
Restart 802.3z negotiation when the net device is brought up to ensure that the link partner has our current link modes. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c

[PATCH 02/11] phylink: merge SGMII and 802.3z handling

2017-12-01 Thread Russell King
The code handling SGMII and 802.3z is essentially the same, except that we assume 802.3z has no PHY. Re-organise the code such that these cases are merged, and exclude 802.3z mode from having a PHY attached. This results in the same link handling behaviour as before. Signed-off-by: Russell King

[PATCH 03/11] phylink: get rid of separate Cisco SGMII and 802.3z modes

2017-12-01 Thread Russell King
Since the handling of SGMII and 802.3z is now the same, combine the MLO_AN_xxx constants into a single MLO_AN_INBAND, and use the PHY interface mode to distinguish between Cisco SGMII and 802.3z. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 39

[PATCH 01/11] phy: add phy_interface_mode_is_8023z() helper

2017-12-01 Thread Russell King
Add and use phy_interface_mode_is_8023z() helper to identify the interface modes that use 802.3z negotiation. Use it in phylink's phylink_mac_an_restart(). Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 3 +-- include/linux/phy.h | 14 ++ 2 files change

[PATCH 05/11] phylink: remove phylink_init_eee()

2017-12-01 Thread Russell King
phylink_init_eee() serves no purpose, remove it. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 13 - include/linux/phylink.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 06c6ad0603ac..560486463930

[PATCH 04/11] phylink: add support for 2500baseX and 10GbaseKR

2017-12-01 Thread Russell King
Add support for handling the faster 2.5G and 10G link modes when used with SFP modules. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 34ecdb892f57..06c6ad0603ac 100644

Re: [PATCH v9 00/20] simplify crypto wait for async op

2017-10-17 Thread Russell King - ARM Linux
On Sun, Oct 15, 2017 at 10:19:45AM +0100, Gilad Ben-Yossef wrote: > Many users of kernel async. crypto services have a pattern of > starting an async. crypto op and than using a completion > to wait for it to end. > > This patch set simplifies this common use case in two ways: > > First, by separ

Re: [PATCH resend] Documentation: arm: Replace use of virt_to_phys with __pa_symbol

2017-07-17 Thread Russell King - ARM Linux
On Mon, Jul 17, 2017 at 01:44:45PM -0600, Jonathan Corbet wrote: > On Mon, 17 Jul 2017 15:39:28 +0200 > Geert Uytterhoeven wrote: > > > All low-level PM/SMP code using virt_to_phys() should actually use > > __pa_symbol() against kernel symbols. Update the documentation to move > > away from virt

Re: [PATCHv2 1/2] arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common

2017-02-03 Thread Russell King - ARM Linux
On Fri, Feb 03, 2017 at 01:08:40PM -0800, Kees Cook wrote: > On Fri, Feb 3, 2017 at 12:29 PM, Russell King - ARM Linux > wrote: > > On Fri, Feb 03, 2017 at 11:45:56AM -0800, Kees Cook wrote: > >> On Fri, Feb 3, 2017 at 9:52 AM, Laura Abbott wrote: > >> > diff --

Re: [PATCHv2 1/2] arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common

2017-02-03 Thread Russell King - ARM Linux
On Fri, Feb 03, 2017 at 11:45:56AM -0800, Kees Cook wrote: > On Fri, Feb 3, 2017 at 9:52 AM, Laura Abbott wrote: > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 99839c2..22ee01e 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -781,4 +781,32 @@ config VMAP_STACK > > the

Re: [RFC] tty: pl011: Work around stuck BUSY bit on QDF2400

2017-01-31 Thread Russell King - ARM Linux
) ^ uap->vendor->inv_fr; > return status & (uap->vendor->fr_busy | UART01x_FR_TXFF) ? > 0 : TIOCSER_TEMT; > } I'd much prefer the reg & mask == val approach, but the above makes that difficult. So for th

Re: [PATCH v3 1/8] arm: put types.h in uapi

2017-01-13 Thread Russell King - ARM Linux
On Fri, Jan 13, 2017 at 11:46:39AM +0100, Nicolas Dichtel wrote: > This header file is exported, thus move it to uapi. I'm taking this patch, but with the following commit log: Due to the way kbuild works, this header was unintentionally exported back in 2013 when it was created, despite it n

Re: [PATCH v3 1/8] arm: put types.h in uapi

2017-01-13 Thread Russell King - ARM Linux
On Fri, Jan 13, 2017 at 05:01:01PM +0100, Nicolas Dichtel wrote: > Please, do not remove the email subject when you reply. I restore it to > ease the thread follow-up. I mentioned it to David, and he says it's because the long list of recipients is breaking his mailer. I've already posed the ques

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-09 Thread Russell King - ARM Linux
eader-y += perf_regs.h > -header-y += posix_types.h > -header-y += ptrace.h > -header-y += setup.h > -header-y += sigcontext.h > -header-y += signal.h > -header-y += stat.h > -header-y += statfs.h > -header-y += swab.h > -header-y += unistd.h > genhdr-y += unistd-comm

Re: [PATCH v2 1/7] arm: put types.h in uapi

2017-01-09 Thread Russell King - ARM Linux
On Mon, Jan 09, 2017 at 12:33:02PM +0100, Arnd Bergmann wrote: > On Friday, January 6, 2017 10:43:53 AM CET Nicolas Dichtel wrote: > > > > diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h > > index a53cdb8f068c..c48fee3d7b3b 100644 > > --- a/arch/arm/include/asm/types.h > >

Re: [PATCH 7/8] uio: bind uio_dmem_genirq via OF

2016-07-15 Thread Russell King - ARM Linux
On Fri, Jul 15, 2016 at 02:34:02PM +0530, Anup Patel wrote: > +static int uio_dmem_genirq_alloc_platdata(struct platform_device *pdev) > +{ > + struct uio_dmem_genirq_pdata pdata; > + u32 dma_bits, regions; > + u32 sizes[MAX_UIO_MAPS]; > + int ret; > + > + memset(&pdata, 0, size

Re: [PATCH 11/12] kexec: allow architectures to override boot mapping

2016-05-12 Thread Russell King - ARM Linux
On Thu, May 12, 2016 at 02:26:27PM +0800, Baoquan He wrote: > On 04/28/16 at 10:28am, Russell King wrote: > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > > index 52a3a221bcb2..99cb9dac7909 100644 > > --- a/include/linux/kexec.h > > +++ b/include/linux/ke

Re: [PATCH 11/12] kexec: allow architectures to override boot mapping

2016-05-11 Thread Russell King - ARM Linux
I was going to send the patches to Andrew, but then I noticed this one has received no acks. What's the situation for this patch? On Thu, Apr 28, 2016 at 10:28:40AM +0100, Russell King wrote: > kexec physical addresses are the boot-time view of the system. For > certain ARM syste

Re: [PATCH 00/12] Fixing TI Keystone2 kexec

2016-05-11 Thread Russell King - ARM Linux
On Wed, May 11, 2016 at 05:13:38PM +0800, Dave Young wrote: > On 05/11/16 at 09:52am, Russell King - ARM Linux wrote: > > I think you're confusing things. DT doesn't contain the boot alias > > memory ranges - it's not a separate chunk of memory. It's an ali

Re: [PATCH 00/12] Fixing TI Keystone2 kexec

2016-05-11 Thread Russell King - ARM Linux
On Wed, May 11, 2016 at 04:29:23PM +0800, Dave Young wrote: > Hi, Russell > > On 04/28/16 at 10:26am, Russell King - ARM Linux wrote: > > These changes are required for TI Keystone2 kexec to be functional. TI > > Keystone2 has the run-time view of physical memory above 4GiB

Re: [PATCH 06/12] ARM: kexec: advertise location of bootable RAM

2016-05-03 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 08:26:00PM +0530, Pratyush Anand wrote: > Can you please also share git tree path of corresponding kexec-tools changes? On their way as a 32-patch series. I've found the userspace tools to be in particularly poor shape, so some of the patches are fixing that up. I can't be

Re: [PATCH 10/12] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t

2016-05-03 Thread Russell King - ARM Linux
On Tue, May 03, 2016 at 12:24:41PM +0800, Baoquan He wrote: > Could you please help tell why arm PAE kernel can be put above 4G? > Since the change is related to common code, I am curious about how > it's so different with other ARCHs. This is explained in the covering email to the series. The ex

Re: [PATCH 06/12] ARM: kexec: advertise location of bootable RAM

2016-05-02 Thread Russell King - ARM Linux
On Mon, May 02, 2016 at 01:04:28PM +0530, Pratyush Anand wrote: > On Sat, Apr 30, 2016 at 1:50 PM, Russell King - ARM Linux > wrote: > > On Sat, Apr 30, 2016 at 08:57:34AM +0530, Pratyush Anand wrote: > >> On Fri, Apr 29, 2016 at 11:30 PM, Russell King - ARM Linux > >&

Re: [PATCH 03/12] ARM: kexec: remove 512MB restriction on kexec crashdump

2016-04-30 Thread Russell King - ARM Linux
On Sat, Apr 30, 2016 at 09:06:19AM +0530, Pratyush Anand wrote: > On Fri, Apr 29, 2016 at 11:40 PM, Russell King - ARM Linux > wrote: > > On Fri, Apr 29, 2016 at 07:49:45PM +0530, Pratyush Anand wrote: > >> On Thu, Apr 28, 2016 at 2:57 PM, Russell King > >> wrote:

Re: [PATCH 06/12] ARM: kexec: advertise location of bootable RAM

2016-04-30 Thread Russell King - ARM Linux
On Sat, Apr 30, 2016 at 08:57:34AM +0530, Pratyush Anand wrote: > On Fri, Apr 29, 2016 at 11:30 PM, Russell King - ARM Linux > wrote: > > On Fri, Apr 29, 2016 at 08:26:00PM +0530, Pratyush Anand wrote: > >> Hi Russell, > >> > >> On Thu, Apr 28, 20

Re: [PATCH 03/12] ARM: kexec: remove 512MB restriction on kexec crashdump

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 07:49:45PM +0530, Pratyush Anand wrote: > On Thu, Apr 28, 2016 at 2:57 PM, Russell King > wrote: > > Signed-off-by: Russell King > > --- > > arch/arm/kernel/setup.c | 5 + > > 1 file changed, 1 insertion(+), 4 deletions(-) > > >

Re: [PATCH 11/12] kexec: allow architectures to override boot mapping

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 08:44:29PM +0530, Pratyush Anand wrote: > On Thu, Apr 28, 2016 at 2:58 PM, Russell King > wrote: > > kexec physical addresses are the boot-time view of the system. For > > certain ARM systems (such as Keystone 2), the boot view of the system >

Re: [PATCH 10/12] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 08:36:43PM +0530, Pratyush Anand wrote: > On Thu, Apr 28, 2016 at 2:58 PM, Russell King > wrote: > > diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c > > index 152da4a48867..9f1920d2d0c6 100644 > > --- a/kernel/ksysfs.c > > +++ b/kernel

Re: [PATCH 06/12] ARM: kexec: advertise location of bootable RAM

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 08:26:00PM +0530, Pratyush Anand wrote: > Hi Russell, > > On Thu, Apr 28, 2016 at 2:58 PM, Russell King > wrote: > > Advertise the location of bootable RAM to kexec-tools. kexec needs to > > know where it can place the kernel in RAM, and so be

[PATCH 11/12] kexec: allow architectures to override boot mapping

2016-04-28 Thread Russell King
nd up with six translation functions, which are reduced down to four that the architecture can override. Signed-off-by: Russell King --- include/linux/kexec.h | 38 ++ kernel/kexec.c| 3 ++- kernel/kexec_core.c | 26 +- 3

[PATCH 09/12] kexec: ensure user memory sizes do not wrap

2016-04-28 Thread Russell King
Ensure that user memory sizes do not wrap around when validating the user input, which can lead to the following input validation working incorrectly. Signed-off-by: Russell King --- kernel/kexec_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/kexec_core.c b/kernel

[PATCH 12/12] ARM: kexec: fix kexec for Keystone 2

2016-04-28 Thread Russell King
. Signed-off-by: Russell King --- arch/arm/include/asm/kexec.h| 24 arch/arm/kernel/machine_kexec.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/kexec.h b/arch/arm/include/asm/kexec.h index c2b9b4bdec00..1869af6bac5c 100644

[PATCH 10/12] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t

2016-04-28 Thread Russell King
for kexec-tools, as they already assume a 64-bit type when reading from this file. Signed-off-by: Russell King --- arch/ia64/kernel/machine_kexec.c | 2 +- include/linux/kexec.h| 2 +- kernel/kexec_core.c | 2 +- kernel/ksysfs.c | 4 ++-- 4 files

[PATCH 07/12] ARM: keystone: dts: add psci command definition

2016-04-28 Thread Russell King
: Keerthy Signed-off-by: Vitaly Andrianov Signed-off-by: Russell King --- This patch is already queued by Santosh, and only exists as part of this series for completeness. arch/arm/boot/dts/keystone.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/keystone.dtsi b

[PATCH 06/12] ARM: kexec: advertise location of bootable RAM

2016-04-28 Thread Russell King
Advertise the location of bootable RAM to kexec-tools. kexec needs to know where it can place the kernel in RAM, and so be executable when the system needs to jump into it. Advertise these areas in /proc/iomem with a "System RAM (boot alias)" tag. Signed-off-by: Russell King ---

[PATCH 08/12] kexec: don't invoke OOM-killer for control page allocation

2016-04-28 Thread Russell King
If we are unable to find a suitable page when allocating the control page, do not invoke the OOM-killer: killing processes probably isn't going to help. Signed-off-by: Russell King --- include/linux/kexec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/

[PATCH 04/12] ARM: provide arm_has_idmap_alias() helper

2016-04-28 Thread Russell King
Provide a helper to indicate whether we need to perform special handling for boot identity mapping aliases or not. Signed-off-by: Russell King --- arch/arm/include/asm/memory.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h

[PATCH 03/12] ARM: kexec: remove 512MB restriction on kexec crashdump

2016-04-28 Thread Russell King
Signed-off-by: Russell King --- arch/arm/kernel/setup.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 77b54c461c52..d9317eec1eba 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -943,7 +943,6

[PATCH 05/12] ARM: kdump: advertise boot aliased crash kernel resource

2016-04-28 Thread Russell King
Advertise a resource which describes where the crash kernel is located in the boot view of RAM. This allows kexec-tools to have this vital information. Signed-off-by: Russell King --- arch/arm/kernel/setup.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/kernel

[PATCH 02/12] ARM: provide improved virt_to_idmap() functionality

2016-04-28 Thread Russell King
-off-by: Russell King --- arch/arm/include/asm/memory.h | 33 ++--- arch/arm/mach-keystone/keystone.c | 7 +-- arch/arm/mm/idmap.c | 2 +- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/arch/arm/include/asm/memory.h b/arch/arm

[PATCH 01/12] ARM: kexec: fix crashkernel= handling

2016-04-28 Thread Russell King
ARM with the ARM specific parameters added. In the absence of any platform specific information, we allocate the crashkernel region from the first 512MB of physical memory. Update the kdump documentation to reflect this change. Signed-off-by: Russell King --- Documentation/kdump/kdump.txt | 13

[PATCH 00/12] Fixing TI Keystone2 kexec

2016-04-28 Thread Russell King - ARM Linux
These changes are required for TI Keystone2 kexec to be functional. TI Keystone2 has the run-time view of physical memory above 4GiB, but with a boot time alias below 4GiB which can only be used during the early boot. This means we need to translate run-time physical addresses (which the kernel u

[PATCH v2] ARM: kexec: fix crashkernel= handling

2016-04-07 Thread Russell King
ARM with the ARM specific parameters added. In the absence of any platform specific information, we allocate the crashkernel region from the first 512MB of physical memory. Update the kdump documentation to reflect this change. Signed-off-by: Russell King --- Documentation/kdump/kdump.txt | 13

Re: [PATCH] ARM: kexec: fix crashkernel= handling

2016-04-01 Thread Russell King - ARM Linux
On Wed, Mar 30, 2016 at 09:27:08AM -0400, Vivek Goyal wrote: > On Wed, Mar 30, 2016 at 02:05:30PM +0100, Russell King - ARM Linux wrote: > > On Wed, Mar 30, 2016 at 06:09:22PM +0530, Pratyush Anand wrote: > > > On 30/03/2016:09:46:38 AM, Dave Young wrote: > > > >

Re: [PATCH] ARM: kexec: fix crashkernel= handling

2016-03-30 Thread Russell King - ARM Linux
On Wed, Mar 30, 2016 at 06:09:22PM +0530, Pratyush Anand wrote: > On 30/03/2016:09:46:38 AM, Dave Young wrote: > > Hi, Russell > > > > A long standing issue, but nobody tried to do it. Thank you for bringing up. > > > > On 03/29/16 at 11:10am, Russell

  1   2   >