Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1087055ybe; Wed, 11 Sep 2019 09:10:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDRpAsbtIPXEFSDIiAX6zy9bd4IReBmRVgh6RdznrplneZT2R7J/WxVCQoA15lFlBsE7id X-Received: by 2002:a50:ed0f:: with SMTP id j15mr29633167eds.127.1568218214565; Wed, 11 Sep 2019 09:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568218214; cv=none; d=google.com; s=arc-20160816; b=ASoHEFlziUCiDRZIEuSZCRz6C7DcAuM4RH+1TmPEdKAliyWlnLLu5hmZ4qrYGbLn3O HsE0iwb02gWvh4mrHkjIrhlTiV5+DcBj2YcmaVbcjJKCWbBRVYLc4SNBZy605DBSx1EV sH0/0bTcarAgxsvmoXDqMNRdYv8osi9sLGiP8B9XUOQ4sb/vWCGI8A8kejugWhuSNb3F xLbS8Vzfbtz+bSaSaWH5kQ5NzlDWtont0N8RdxjTJwkuHMkLbebsE5tVv3G9rzsZl0a3 HkxkIm+Ld6ZemYjag4PetQkXH+i/yghjs2jt6PQz8o/NILx6hGXPQ1tvCD7EteW6rx6c alvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WACQ9V/5Il9TcNT5wjpnQN41qYBhhRXGAZkLnY7qJLE=; b=XurcBiRDly33Vg8H31qoBL/Pf+QXUk8S5lFqbVb6Xm/Cm9xfDVjAl+PF2nu8L3iRWW bEY75w/ybPstrvlP/wFVMqRsIK+VuAYlns/JIELCXhRxQIumor7O4SDHeGywQ220PvoL 053Vm2U1mkzwHtULLAyWdA17gJ/mVaskT7gG3OKfX3UDDItDdfOZ+i9Lq4LGXYZKKsg4 jCsUwukS924MqBO3A1gKpsN78Kx1vfVU8k1n7igYwIMrlyTXCr6kdMI/ByjWKMMTxKpP 8FhffTX0/cVvQLavJFRkDMrxqdMdueN/+DvEzq17Kpkjux3TKaLFxdWvwzz4irCkrJK/ /JYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a53si12758230edc.175.2019.09.11.09.09.50; Wed, 11 Sep 2019 09:10:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728894AbfIKQFb (ORCPT + 99 others); Wed, 11 Sep 2019 12:05:31 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:11590 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728818AbfIKQFa (ORCPT ); Wed, 11 Sep 2019 12:05:30 -0400 Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8BG1xOc026275; Wed, 11 Sep 2019 16:05:01 GMT Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 2uxxgjdyry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Sep 2019 16:05:01 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id A8B01A1; Wed, 11 Sep 2019 16:05:00 +0000 (UTC) Received: from [16.116.129.27] (unknown [16.116.129.27]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id A08DD47; Wed, 11 Sep 2019 16:04:58 +0000 (UTC) Subject: Re: [PATCH V2 5/8] x86/platform/uv: Add UV Hubbed/Hubless Proc FS Files To: Ingo Molnar Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Morton , Borislav Petkov , Christoph Hellwig , Dimitri Sivanich , Russ Anderson , Hedi Berriche , Steve Wahl , Justin Ernst , x86@kernel.org, linux-kernel@vger.kernel.org References: <20190910145839.604369497@stormcage.eag.rdlabs.hpecorp.net> <20190910145840.055590900@stormcage.eag.rdlabs.hpecorp.net> <20190911060456.GC104115@gmail.com> From: Mike Travis Message-ID: <1d7a8b2f-80e0-33bf-85f4-2de719747eeb@hpe.com> Date: Wed, 11 Sep 2019 09:05:28 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190911060456.GC104115@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-11_08:2019-09-11,2019-09-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 mlxscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1909110146 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/2019 11:04 PM, Ingo Molnar wrote: > > * Mike Travis wrote: > >> @@ -1596,7 +1687,7 @@ static void __init uv_system_init_hub(vo >> uv_nmi_setup(); >> uv_cpu_init(); >> uv_scir_register_cpu_notifier(); >> - proc_mkdir("sgi_uv", NULL); >> + uv_setup_proc_files(0); > > This slipped through previously: platform drivers have absolutely no > business mucking in /proc. > > Please describe the hardware via sysfs as pretty much everyone else does. > > Thanks, > > Ingo > If I was doing it now I definitely would put it in the sysfs realm. The problem is Jack did it back in (I think) 2007. The earliest commit I could find: commit a3d732f93785da17e0137210deadb4616f5536fc Author: Cliff Wickman Date: Mon Nov 10 16:16:31 2008 -0600 x86, UV: fix redundant creation of sgi_uv Impact: fix double entry creation in /proc And in the past 12 years probably a hundred user programs are now keying of the presence of /proc/sgi_uv to signal this is indeed a UV system. Changing the location of this node also affects all the UV utilities including those not written by us.