2020-11-28 04:25:55

by Mike Travis

[permalink] [raw]
Subject: [PATCH v2 0/5] x86/platform/uv: Move UV procfs leaves to sysfs


Duplicate the current UV procfs leaves to the uv_sysfs driver so they show
up under /sys/firmware/sgi_uv. Show a 'deprecated' warning message if
any of the old /proc/sgi_uv leaves are used.

These patches depend on the prior v3 patchset sent by Justin Ernst <[email protected]>
x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface
x86/platform/uv: Add and export uv_bios_* functions
x86/platform/uv: Add new uv_sysfs platform driver
x86/platform/uv: Update ABI documentation of /sys/firmware/sgi_uv/
x86/platform/uv: Update MAINTAINERS for uv_sysfs driver

v2: Updated to apply to v3 of dependency patch set listed above.

Mike Travis (5):
x86/platform/uv: Add kernel interfaces for obtaining system info.
x86/platform/uv: Add sysfs leaves to replace those in procfs
x86/platform/uv: Add sysfs hubless leaves
x86/platform/uv: Add deprecated messages to /proc info leaves
x86/platform/uv: Update sysfs document file

.../ABI/testing/sysfs-firmware-sgi_uv | 16 +++++
arch/x86/include/asm/uv/bios.h | 2 +
arch/x86/kernel/apic/x2apic_uv_x.c | 26 ++++++-
drivers/platform/x86/uv_sysfs.c | 70 ++++++++++++++++++-
4 files changed, 111 insertions(+), 3 deletions(-)

--
2.21.0


2020-11-28 04:58:13

by Mike Travis

[permalink] [raw]
Subject: [PATCH v2 5/5] x86/platform/uv: Update sysfs document file

Update sysfs Document file to include moved /proc leaves.

Signed-off-by: Mike Travis <[email protected]>
---
Documentation/ABI/testing/sysfs-firmware-sgi_uv | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-firmware-sgi_uv b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
index 50e25ce80fa2..b377f1470ba2 100644
--- a/Documentation/ABI/testing/sysfs-firmware-sgi_uv
+++ b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
@@ -7,10 +7,25 @@ Description:

Under that directory are a number of read-only attributes:

+ archtype
+ hub_type
+ hubless
partition_id
coherence_id
uv_type

+ The archtype entry contains the UV architecture type that
+ is used to select arch-dependent addresses and features.
+ If can be set via the OEM_ID in the ACPI MADT table or by
+ UVsystab entry both passed from UV BIOS.
+
+ The hub_type entry is used to select the type of hub which is
+ similar to uv_type but encoded in a binary format. Include
+ the file uv_hub.h to get the definitions.
+
+ The hubless entry basically is present and set only if there
+ is no hub. In this case the hub_type entry is not present.
+
The partition_id entry contains the partition id.
UV systems can be partitioned into multiple physical
machines, which each partition running a unique copy
@@ -24,6 +39,7 @@ Description:

The uv_type entry contains the hub revision number.
This value can be used to identify the UV system version:
+ "0.*" = Hubless UV ('*' is subtype)
"3.0" = UV2
"5.0" = UV3
"7.0" = UV4
--
2.21.0

2020-11-28 21:54:42

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH v2 5/5] x86/platform/uv: Update sysfs document file

On 11/27/20 7:42 PM, Mike Travis wrote:
> Update sysfs Document file to include moved /proc leaves.
>
> Signed-off-by: Mike Travis <[email protected]>
> ---
> Documentation/ABI/testing/sysfs-firmware-sgi_uv | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-firmware-sgi_uv b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
> index 50e25ce80fa2..b377f1470ba2 100644
> --- a/Documentation/ABI/testing/sysfs-firmware-sgi_uv
> +++ b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
> @@ -7,10 +7,25 @@ Description:
>
> Under that directory are a number of read-only attributes:
>
> + archtype
> + hub_type
> + hubless
> partition_id
> coherence_id
> uv_type
>
> + The archtype entry contains the UV architecture type that
> + is used to select arch-dependent addresses and features.
> + If can be set via the OEM_ID in the ACPI MADT table or by

It

> + UVsystab entry both passed from UV BIOS.
> +


thanks.
--
~Randy

2020-11-28 22:17:06

by Hans de Goede

[permalink] [raw]
Subject: Re: [PATCH v2 0/5] x86/platform/uv: Move UV procfs leaves to sysfs

Hi,

On 11/28/20 4:42 AM, Mike Travis wrote:
>
> Duplicate the current UV procfs leaves to the uv_sysfs driver so they show
> up under /sys/firmware/sgi_uv. Show a 'deprecated' warning message if
> any of the old /proc/sgi_uv leaves are used.
>
> These patches depend on the prior v3 patchset sent by Justin Ernst <[email protected]>
> x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface
> x86/platform/uv: Add and export uv_bios_* functions
> x86/platform/uv: Add new uv_sysfs platform driver
> x86/platform/uv: Update ABI documentation of /sys/firmware/sgi_uv/
> x86/platform/uv: Update MAINTAINERS for uv_sysfs driver

AS with the previous series this series touches files under both
x86/platform and drivers/platform/x86. Like last time this is best merged
in its entirety through the x86/tip tree (which also has the previous set).
Here is my ack for the drivers/platform/x86 bits being merged through the
x86/tip tree:

Acked-by: Hans de Goede <[email protected]>

Regards,

Hans





>
> v2: Updated to apply to v3 of dependency patch set listed above.
>
> Mike Travis (5):
> x86/platform/uv: Add kernel interfaces for obtaining system info.
> x86/platform/uv: Add sysfs leaves to replace those in procfs
> x86/platform/uv: Add sysfs hubless leaves
> x86/platform/uv: Add deprecated messages to /proc info leaves
> x86/platform/uv: Update sysfs document file
>
> .../ABI/testing/sysfs-firmware-sgi_uv | 16 +++++
> arch/x86/include/asm/uv/bios.h | 2 +
> arch/x86/kernel/apic/x2apic_uv_x.c | 26 ++++++-
> drivers/platform/x86/uv_sysfs.c | 70 ++++++++++++++++++-
> 4 files changed, 111 insertions(+), 3 deletions(-)
>

Subject: [tip: x86/platform] x86/platform/uv: Update sysfs documentation

The following commit has been merged into the x86/platform branch of tip:

Commit-ID: c9624cb7db1c418cbdc8fd2cde6835f83cd0f8a2
Gitweb: https://git.kernel.org/tip/c9624cb7db1c418cbdc8fd2cde6835f83cd0f8a2
Author: Mike Travis <[email protected]>
AuthorDate: Fri, 27 Nov 2020 21:42:27 -06:00
Committer: Borislav Petkov <[email protected]>
CommitterDate: Mon, 07 Dec 2020 21:19:20 +01:00

x86/platform/uv: Update sysfs documentation

Update sysfs documentation file to include moved /proc leaves.

Signed-off-by: Mike Travis <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
---
Documentation/ABI/testing/sysfs-firmware-sgi_uv | 16 ++++++++++++++++-
1 file changed, 16 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-firmware-sgi_uv b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
index 351b1f4..637c668 100644
--- a/Documentation/ABI/testing/sysfs-firmware-sgi_uv
+++ b/Documentation/ABI/testing/sysfs-firmware-sgi_uv
@@ -7,10 +7,25 @@ Description:

Under that directory are a number of read-only attributes::

+ archtype
+ hub_type
+ hubless
partition_id
coherence_id
uv_type

+ The archtype entry contains the UV architecture type that
+ is used to select arch-dependent addresses and features.
+ It can be set via the OEM_ID in the ACPI MADT table or by
+ UVsystab entry both passed from UV BIOS.
+
+ The hub_type entry is used to select the type of hub which is
+ similar to uv_type but encoded in a binary format. Include
+ the file uv_hub.h to get the definitions.
+
+ The hubless entry basically is present and set only if there
+ is no hub. In this case the hub_type entry is not present.
+
The partition_id entry contains the partition id.
UV systems can be partitioned into multiple physical
machines, which each partition running a unique copy
@@ -24,6 +39,7 @@ Description:

The uv_type entry contains the hub revision number.
This value can be used to identify the UV system version::
+ "0.*" = Hubless UV ('*' is subtype)

"3.0" = UV2
"5.0" = UV3