Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp229064pxb; Wed, 18 Nov 2020 03:04:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCh2y6gLNHhVLj/xO21IH+O+1Yg4+6I97YsYfUD+XUCeoXcD9j389cE7HeiiUNrq68tgzu X-Received: by 2002:a17:906:1352:: with SMTP id x18mr22913566ejb.476.1605697448006; Wed, 18 Nov 2020 03:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605697447; cv=none; d=google.com; s=arc-20160816; b=g4UWTSR7R0K97oXSrq8DmiBveO7ldxvp5Hy0g+Pt6XjyXDk7ev6uZZgb4IStZ+LKI8 3bq8SZJ7AwdhTsC9Na1XNJsPJUUQdl4Nwt+F9NKz5cnHoE9iiURHuG/c1LAiNKiXNFu+ ohPuqeLtWmWkJ+nRHDS8XcYcdCZgMmy8xkOohA/2k2IOBthzV15xQHTua/jg07bQv/eE T6C3Ei6pHT2X0FgkFKggSZDm3zJfh27S5TZ3bGhVDcdkn1WHNWxdzflLR1NLS+YlYkn+ SimIGAYhQQuTQ6RRJbkDaaMY3zF379/KcH/kd7rvKPI8QqXhBTubpPpkOKTQFqnpaoui wqbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BHgwWsxqfyxpx05VciZN0+XFPaB0CWdQNUMluxEj1l4=; b=VnEfT0Ax0tvVHNXDWMV2On9FbuOtMQTLP/kBNN/WMRq5V9yd45K48NUP7GQAJchk13 RQhSxg6J8YgSRl8ds9uxh4faSIQ7i1jMA1O/fBok3rnb6vhGiDr1dF4F9iJCyJvfWSnP 94xOxXCaO9f4Gn9XsZjWfZyv45u01yZs7xjY0HuxBi+MCfvB7SxPkGP2atBoL3STl/d8 t+Fndt7eRlq3SIqoamhSy6en3lPLZahuNMzpnLTL0T2o5I8S4HU5wsFio3JMdx5RkeVv 6kl93w+9An/Tonr1ffvCqn0fu+xqC7n9nVq/nRIQduCwZlF//v1AppH4firZWd34e3yq wDSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HSz+H6qE; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu7si5572717ejb.217.2020.11.18.03.03.45; Wed, 18 Nov 2020 03:04:07 -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=@redhat.com header.s=mimecast20190719 header.b=HSz+H6qE; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbgKRLA6 (ORCPT + 99 others); Wed, 18 Nov 2020 06:00:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:25017 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgKRLA6 (ORCPT ); Wed, 18 Nov 2020 06:00:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605697257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BHgwWsxqfyxpx05VciZN0+XFPaB0CWdQNUMluxEj1l4=; b=HSz+H6qEexE/Iz8xX3bY+3V6g95fFYhOF+RFcPPdej1BQl1UuaMsAKwkrkdXdem6dqiA0r x8hY8CwOnUlCIt2Gobb5epDo7hu578HM4jZsDcTVmdDCJmvZE3TFd3v51RUmxXj9T1PykT GQ/DStfIJE7/dZPOkwk6yyn84yGZ6O8= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-38-NB_AZ69yOFWJa1KddD3mAw-1; Wed, 18 Nov 2020 06:00:54 -0500 X-MC-Unique: NB_AZ69yOFWJa1KddD3mAw-1 Received: by mail-ed1-f72.google.com with SMTP id c24so660092edx.2 for ; Wed, 18 Nov 2020 03:00:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BHgwWsxqfyxpx05VciZN0+XFPaB0CWdQNUMluxEj1l4=; b=KbXN478Exck2k51RJ0twtbHCTbdAvxmi8tx+bsj9E4cplFVz+EsdfaRfkFTcXoa5wT 9HO/x/EINpXQ/j/SPUKUCTwN7+D0q00BWnWxSiHEpXTfE0iECVc4sx4yg9U1V4bj741W +jj4DtwU1wgurweAmUvAFZwg+RSrQpdVmbJISSzGD/LZkv7ade5ON3l+lyYQVOzJ+Giz d9xTJDLA0RB4nr0Q014iUo4p7uNzfmmfzHiWLQ4KdPkabMb1QmE6NuqCM/g5pehGqrhU sNUTFLprUfP8PvURqNSpnW3Xfde5E4xd5pmmzoQh1al8c0TYQrcXJhaw8n4dCL8M4JyK u/RQ== X-Gm-Message-State: AOAM531QubrWts7/j8A2ixm8kK97qTLR6i8JXjWcco/uC8JbbcK69Kc2 x5oowICSeytt3zH79iUSVWlO2p6x26GBEf75hh1n23vdIelv0HGrrTf5LmqpxiEb5b8hYheSOIw dd6EumQlwr0cgot9LXZ2wTaKW X-Received: by 2002:a17:906:a856:: with SMTP id dx22mr24507874ejb.134.1605697252934; Wed, 18 Nov 2020 03:00:52 -0800 (PST) X-Received: by 2002:a17:906:a856:: with SMTP id dx22mr24507840ejb.134.1605697252666; Wed, 18 Nov 2020 03:00:52 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c0c-fe00-6c10-fbf3-14c4-884c.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:6c10:fbf3:14c4:884c]) by smtp.gmail.com with ESMTPSA id n12sm12766284ejs.19.2020.11.18.03.00.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Nov 2020 03:00:51 -0800 (PST) Subject: Re: [PATCH 0/5] Add uv_sysfs platform driver To: Justin Ernst , Borislav Petkov , 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 References: <20201117204224.51230-1-justin.ernst@hpe.com> From: Hans de Goede Message-ID: <99d26b0e-efd7-a32d-7be0-607c98ac2569@redhat.com> Date: Wed, 18 Nov 2020 12:00:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201117204224.51230-1-justin.ernst@hpe.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/17/20 9:42 PM, Justin Ernst wrote: > Introduce a new platform driver to gather topology information from UV systems > and expose that information via a sysfs interface at /sys/firmware/sgi_uv/. > > Justin Ernst (5): > 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 So patch 1/1 drops the existing /sys/firmware/sgi_uv/coherence_id /sys/firmware/sgi_uv/partition_id sysfs API, then according to patch 4/5 patch 3/5 reintroduces the /sys/firmware/sgi_uv/partition_id API, but the /sys/firmware/sgi_uv/coherence_id file is gone for ever ? I'm not sure what userspace bits (may) depend on this but without more info this looks like a clear violation of the do not break userspace APIs rule. So, based on this, I have to nack this series in its current state. Now if there is a strong believe there are 0 (not a few, but _zero_) users out there who rely on the /sys/firmware/sgi_uv/coherence_id file then this might be ok. But then there needs to be a technical analysis of why this is ok in the commit message of the patch dropping this sysfs file. Also the commit message of patch 1/5 should mention that /sys/firmware/sgi_uv/partition_id will be re-introduced later through another driver. Regards, Hans > > .../ABI/testing/sysfs-firmware-sgi_uv | 137 ++- > MAINTAINERS | 6 + > arch/x86/include/asm/uv/bios.h | 49 + > arch/x86/include/asm/uv/uv_geo.h | 103 +++ > arch/x86/platform/uv/Makefile | 2 +- > arch/x86/platform/uv/bios_uv.c | 54 ++ > arch/x86/platform/uv/uv_sysfs.c | 63 -- > drivers/platform/x86/Kconfig | 11 + > drivers/platform/x86/Makefile | 3 + > drivers/platform/x86/uv_sysfs.c | 853 ++++++++++++++++++ > 10 files changed, 1202 insertions(+), 79 deletions(-) > create mode 100644 arch/x86/include/asm/uv/uv_geo.h > delete mode 100644 arch/x86/platform/uv/uv_sysfs.c > create mode 100644 drivers/platform/x86/uv_sysfs.c > > > base-commit: 4ef8451b332662d004df269d4cdeb7d9f31419b5 >