Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4153447pxb; Tue, 17 Nov 2020 12:45:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU62c1/E9ekVXALXL1k8q5XrTvQzVQy9YKXlhKanrKhFQGm9axOH8Gxfsc3t4z5nVUdwm/ X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr20767142ejc.178.1605645936416; Tue, 17 Nov 2020 12:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605645936; cv=none; d=google.com; s=arc-20160816; b=jORJU2/C+lcM/e3hApmpqKmK6xIWERCkQF/MtqeZAdfeXhYtNVaTNvdkXPLRQSo/pN vFNz+ojQe6iBWfzRKuCUQUQl7svoFnIH6WYRTqUu2xIRrYq4y6fJKgvjNKARj1YpenBQ pyYa+v8nB7bFP0Ae7aOacClnnm+06iPlf602Eka8fH01ZjVtS+uStHJeVkFgxmEBkbVe 2ee813PRP0PvDwwg/IQa/AL0fRSZid7HwGMD8ZMSF+a869rhJq/vuD824+3UkLWamYVo uHttfzCu6Zc+Q7oa+zXstLp64o/QBJFrKSP+/dIvGiC8S/MGXquR4FScLOe1jlKLjggx COtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iLaz1VrsAV7AO9kJ+YVo/WeEuCxDDAErV7dVJi7kBi4=; b=YzLthNs0jhBdemEU2OtO1HGOa2MM+WMF4fzFWdOLSydZjGcIr9c37eMLFw+y9BP8Lc aagaM1cWajo6giO7HwhpqNIM/xZA4idlvX01lSDwAXYVe+horFZJiXz0eTL0Q/oB1jAc 3tjB0pWtnA0/e02Iz8wvp8HII+F8Fu/ODi5AeqhXSjzeY37koVojsgDoS4OhNpylpe57 24nez6SrWwLkPLBCqXaQG0sFlEgfUxdr7HGciZxCLKKYLhUhISUB4NX+DZzAfJrfAj00 9yWZxUivBkeyVbgTp+xDEeCeqy58/zRw0DA6ia05RgYOGXVEeOzM7SndUPAl9CNe189p cBLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="LP/DHWDD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si6304214edw.282.2020.11.17.12.45.13; Tue, 17 Nov 2020 12:45:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="LP/DHWDD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729497AbgKQUn1 (ORCPT + 99 others); Tue, 17 Nov 2020 15:43:27 -0500 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:50036 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbgKQUnZ (ORCPT ); Tue, 17 Nov 2020 15:43:25 -0500 Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AHKbd41018603; Tue, 17 Nov 2020 20:42:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=iLaz1VrsAV7AO9kJ+YVo/WeEuCxDDAErV7dVJi7kBi4=; b=LP/DHWDDhLKJuzDM9PXNrNn3FHfBDEiiKSWP8EXmnM5B8NZmiBW23tCNs+udcxUBh8y6 6FquD4pvCJBWejmYS68odKBTuuW8iFkIjrFVrnbhTgqdP+0d9uuhqX9JyrP75Mz7tMga qZucZiiOnvtuvDAgk3K+zo94NbY6+FYOrwEh4Mv+lxEbP/81CgoQVqipeKbhPLV8Ncoa xQTX0QZ7NSq8dqEEIRslp7mV0Rd97h2gPXtrIF2uXSvgbJfgfMzQSN/r06iz6cC3qsPY 4NqeUUo4s0jVidxyK698Jx2HEyaJavIp9bhlU+lfslQLUE676/DVg9zaOS0dwKSz45aP aA== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0a-002e3701.pphosted.com with ESMTP id 34vm4g8sgp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 20:42:48 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 0177956; Tue, 17 Nov 2020 20:42:46 +0000 (UTC) Received: from dog.eag.rdlabs.hpecorp.net (dog.eag.rdlabs.hpecorp.net [128.162.243.181]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id E63744A; Tue, 17 Nov 2020 20:42:45 +0000 (UTC) Received: by dog.eag.rdlabs.hpecorp.net (Postfix, from userid 605001) id 7343A3003D746; Tue, 17 Nov 2020 14:42:45 -0600 (CST) From: Justin Ernst To: Borislav Petkov , Hans de Goede , Ingo Molnar , Mark Gross , Thomas Gleixner , Steve Wahl , x86@kernel.org Cc: Andy Shevchenko , Darren Hart , Dimitri Sivanich , "H . Peter Anvin" , Russ Anderson , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Cezary Rojewski , Ilya Dryomov , Jonathan Cameron , Mauro Carvalho Chehab , Vaibhav Jain , Justin Ernst Subject: [PATCH 1/5] x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface Date: Tue, 17 Nov 2020 14:42:20 -0600 Message-Id: <20201117204224.51230-2-justin.ernst@hpe.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201117204224.51230-1-justin.ernst@hpe.com> References: <20201117204224.51230-1-justin.ernst@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-17_09:2020-11-17,2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011170151 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Justin Ernst Reviewed-by: Steve Wahl --- 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 224ff0504890..1441dda8edf7 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 266773e2fb37..000000000000 --- 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 -#include -#include - -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); -- 2.26.2