From: "tip-bot2 for Justin Ernst" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Justin Ernst <justin.ernst@hpe.com>, Borislav Petkov <bp@suse.de>,
Steve Wahl <steve.wahl@hpe.com>,
Hans de Goede <hdegoede@redhat.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/platform] x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface
Date: Thu, 26 Nov 2020 18:20:45 -0000 [thread overview]
Message-ID: <160641484575.3364.16776997871843821538.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20201125175444.279074-2-justin.ernst@hpe.com>
The following commit has been merged into the x86/platform branch of tip:
Commit-ID: 8f061abbf543355d77fac5c23521b6b452da6310
Gitweb: https://git.kernel.org/tip/8f061abbf543355d77fac5c23521b6b452da6310
Author: Justin Ernst <justin.ernst@hpe.com>
AuthorDate: Wed, 25 Nov 2020 11:54:40 -06:00
Committer: Borislav Petkov <bp@suse.de>
CommitterDate: Thu, 26 Nov 2020 12:08:17 +01:00
x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface
Remove existing interface at /sys/firmware/sgi_uv/, created by
arch/x86/platform/uv/uv_sysfs.c
This interface includes:
/sys/firmware/sgi_uv/coherence_id
/sys/firmware/sgi_uv/partition_id
Both coherence_id and partition_id will be re-introduced via a
new uv_sysfs driver.
Signed-off-by: Justin Ernst <justin.ernst@hpe.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lkml.kernel.org/r/20201125175444.279074-2-justin.ernst@hpe.com
---
arch/x86/platform/uv/Makefile | 2 +-
arch/x86/platform/uv/uv_sysfs.c | 63 +--------------------------------
2 files changed, 1 insertion(+), 64 deletions(-)
delete mode 100644 arch/x86/platform/uv/uv_sysfs.c
diff --git a/arch/x86/platform/uv/Makefile b/arch/x86/platform/uv/Makefile
index 224ff05..1441dda 100644
--- a/arch/x86/platform/uv/Makefile
+++ b/arch/x86/platform/uv/Makefile
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_X86_UV) += bios_uv.o uv_irq.o uv_sysfs.o uv_time.o uv_nmi.o
+obj-$(CONFIG_X86_UV) += bios_uv.o uv_irq.o uv_time.o uv_nmi.o
diff --git a/arch/x86/platform/uv/uv_sysfs.c b/arch/x86/platform/uv/uv_sysfs.c
deleted file mode 100644
index 266773e..0000000
--- a/arch/x86/platform/uv/uv_sysfs.c
+++ /dev/null
@@ -1,63 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * This file supports the /sys/firmware/sgi_uv interfaces for SGI UV.
- *
- * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
- * Copyright (c) Russ Anderson
- */
-
-#include <linux/device.h>
-#include <asm/uv/bios.h>
-#include <asm/uv/uv.h>
-
-struct kobject *sgi_uv_kobj;
-
-static ssize_t partition_id_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
-{
- return snprintf(buf, PAGE_SIZE, "%ld\n", sn_partition_id);
-}
-
-static ssize_t coherence_id_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
-{
- return snprintf(buf, PAGE_SIZE, "%ld\n", sn_coherency_id);
-}
-
-static struct kobj_attribute partition_id_attr =
- __ATTR(partition_id, S_IRUGO, partition_id_show, NULL);
-
-static struct kobj_attribute coherence_id_attr =
- __ATTR(coherence_id, S_IRUGO, coherence_id_show, NULL);
-
-
-static int __init sgi_uv_sysfs_init(void)
-{
- unsigned long ret;
-
- if (!is_uv_system())
- return -ENODEV;
-
- if (!sgi_uv_kobj)
- sgi_uv_kobj = kobject_create_and_add("sgi_uv", firmware_kobj);
- if (!sgi_uv_kobj) {
- printk(KERN_WARNING "kobject_create_and_add sgi_uv failed\n");
- return -EINVAL;
- }
-
- ret = sysfs_create_file(sgi_uv_kobj, &partition_id_attr.attr);
- if (ret) {
- printk(KERN_WARNING "sysfs_create_file partition_id failed\n");
- return ret;
- }
-
- ret = sysfs_create_file(sgi_uv_kobj, &coherence_id_attr.attr);
- if (ret) {
- printk(KERN_WARNING "sysfs_create_file coherence_id failed\n");
- return ret;
- }
-
- return 0;
-}
-
-device_initcall(sgi_uv_sysfs_init);
next prev parent reply other threads:[~2020-11-26 18:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 17:54 [PATCH v3 0/5] x86/platform/uv: Add uv_sysfs platform driver Justin Ernst
2020-11-25 17:54 ` [PATCH v3 1/5] x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface Justin Ernst
2020-11-26 18:20 ` tip-bot2 for Justin Ernst [this message]
2020-11-25 17:54 ` [PATCH v3 2/5] x86/platform/uv: Add and export uv_bios_* functions Justin Ernst
2020-11-26 18:20 ` [tip: x86/platform] " tip-bot2 for Justin Ernst
2020-11-25 17:54 ` [PATCH v3 3/5] x86/platform/uv: Add new uv_sysfs platform driver Justin Ernst
2020-11-26 18:20 ` [tip: x86/platform] " tip-bot2 for Justin Ernst
2020-11-25 17:54 ` [PATCH v3 4/5] x86/platform/uv: Update ABI documentation of /sys/firmware/sgi_uv/ Justin Ernst
2020-11-26 18:20 ` [tip: x86/platform] " tip-bot2 for Justin Ernst
2020-12-01 13:05 ` tip-bot2 for Justin Ernst
2020-11-25 17:54 ` [PATCH v3 5/5] x86/platform/uv: Update MAINTAINERS for uv_sysfs driver Justin Ernst
2020-11-26 18:20 ` [tip: x86/platform] " tip-bot2 for Justin Ernst
2020-12-01 13:05 ` tip-bot2 for Justin Ernst
2020-11-26 10:39 ` [PATCH v3 0/5] x86/platform/uv: Add uv_sysfs platform driver Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160641484575.3364.16776997871843821538.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=bp@suse.de \
--cc=hdegoede@redhat.com \
--cc=justin.ernst@hpe.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=steve.wahl@hpe.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®