Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp103813lqg; Fri, 26 Apr 2024 09:53:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoOsntpBFM1zRSCaX3JKTdm7zknjBgB6QVvdB6WnIj1AXhZ3GDin70R76g/N5Q/EgKw/Mv6bcFw19xv/4+qOVACPymgq7rY27QXmOsKA== X-Google-Smtp-Source: AGHT+IGi95ZzmnWCGq+UNYbydbr8mbI+QsntEdvtnT+W5Icgk7ZGp6Ofszn9tUhG2X2HpVHMN5b1 X-Received: by 2002:ac8:7d44:0:b0:437:4dcb:ed0 with SMTP id h4-20020ac87d44000000b004374dcb0ed0mr3974597qtb.57.1714150438201; Fri, 26 Apr 2024 09:53:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714150438; cv=pass; d=google.com; s=arc-20160816; b=Tztwq8RKvDeM2HM3Szes2C4GaRv8lwO70dRbffWAUrndc+hGzchUI7rjuXVfQUNNB+ G2ZGmbAOOAkV5gL40aWXpLy5H2Dd06AIFOGmndG5bRXeb0OoQ6Id25E95rlda9SGnGOC gSyq6AARySe4wLFcEEgTO7rqXP6P3g11MKtGGWcaylJBM+5fT5PVPS8iw38NK5QxmWlZ Pj/tL5/BKP3PNbC2iuLaZzKye8sBt3+1npBesNSDX1onIsLOJ7LVnEtFcZn3FpzLKlxl p3oH8CY30gQYzVsdfILqb8aMAR10+H59XEU/acgQS6HlgjdiTsdA9Lwgy6bFibZ6hYL7 g40A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=/tH0xUsGf18CUyPzmfzA5om/1yVrV0fqCVYvG3wiqAk=; fh=eUFgDyrm9CeIHDgjHGcgkZXkkTjtoTgljjj+lVRE5iI=; b=yYBkkdyNxaWBzkb03m5ChCl+XjZ0chpcnGoIigRllBk1+AXG7ch3QGAesRONyG9yWl /yS5ciYbdzEe6/DLlpsg0NFCi6jKNPaLcGVCVRhlV6yJzerVwZhq5OVsV3SwiseJQzTU kjSD4z9JMzrbi8v2vYuyhBG2Y3HPc1Pq37RudVd+B/YEaHv6eSeCb3yFe2Re4wtYTMut WlhTDl9txmjSm/OnaP1ppa74X6WscNbel3joP1U5URjEC1ivUTULbko07TV7Yq3gcU8f QWdxBSY1QSgb85prBunEj9MGwmgAmlWB26RzsfkLykLxwaH0hnfGUeetYyvNeClY4ukm JGbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-160412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z10-20020ac87f8a000000b00439a382fd7bsi13350131qtj.462.2024.04.26.09.53.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 09:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-160412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E94051C22A16 for ; Fri, 26 Apr 2024 16:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1F9D158D93; Fri, 26 Apr 2024 16:53:50 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38A751DDD6; Fri, 26 Apr 2024 16:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150430; cv=none; b=kjz4KwnDYOl0xkvMeOEsJK6VRFOHZPo2pTXa8kry4LNwC1bABw357EQX/mDN3z8t0JbK66ptiZQpeeh9G1EWIXTPhRKU3VdTrWXJ6WeIcxWWI6ndni8IsLSs+QvYt+jm+KASlEMf57s/UMfDcaG28a09kJI4kJlo9XbYQGMGmqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150430; c=relaxed/simple; bh=qBWR0niH5zgeEw2mYz3NYV00URwQJyobXGWPG0AH2zs=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=t1wz7ObQMB/3Dsb/falXkVftVQfukWbxs+j9DLucVDHH1b/NOnAIryd0GK7uf0NaBWDoFfSrp/NNBryiusmx3C7uquD1LyPcHsEFo5HW+GnQTUoFVmpFjZF2i83RZtBBMDTxW1d7BB64d0SHiw5KElTE6HCJuPvtRfqYqr8NZHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VQzJL0WlTz6K6JG; Sat, 27 Apr 2024 00:51:14 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 33455140A70; Sat, 27 Apr 2024 00:53:43 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 26 Apr 2024 17:53:42 +0100 Date: Fri, 26 Apr 2024 17:53:41 +0100 From: Jonathan Cameron To: Dan Williams CC: , Sreenivas Bagalkote , Brett Henning , Harold Johnson , Sumanesh Samanta , , Davidlohr Bueso , "Dave Jiang" , Alison Schofield , Vishal Verma , "Ira Weiny" , , , Lorenzo Pieralisi , "Natu, Mahesh" , Subject: Re: RFC: Restricting userspace interfaces for CXL fabric management Message-ID: <20240426175341.00002e67@Huawei.com> In-Reply-To: <662bd36caae55_a96f2943f@dwillia2-mobl3.amr.corp.intel.com.notmuch> References: <20240321174423.00007e0d@Huawei.com> <66109191f3d6d_2583ad29468@dwillia2-xfh.jf.intel.com.notmuch> <20240410124517.000075f2@Huawei.com> <66284d5e8ac01_690a29431@dwillia2-xfh.jf.intel.com.notmuch> <20240425123344.000001a9@Huawei.com> <662a826dbeeff_b6e02943c@dwillia2-mobl3.amr.corp.intel.com.notmuch> <20240425182605.00005f22@Huawei.com> <662aae2fe4887_a96f294bf@dwillia2-mobl3.amr.corp.intel.com.notmuch> <20240426094550.00002e37@Huawei.com> <662bd36caae55_a96f2943f@dwillia2-mobl3.amr.corp.intel.com.notmuch> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Fri, 26 Apr 2024 09:16:44 -0700 Dan Williams wrote: > Jonathan Cameron wrote: > [..] > > To give people an incentive to play the standards game we have to > > provide an alternative. Userspace libraries will provide some incentive > > to standardize if we have enough vendors (we don't today - so they will > > do their own libraries), but it is a lot easier to encourage if we > > exercise control over the interface. > > Yes, and I expect you and I are not far off on what can be done > here. > > However, lets cut to a sentiment hanging over this discussion. Referring > to vendor specific commands: > > "CXL spec has them for a reason and they need to be supported." > > ...that is an aggressive "vendor specific first" sentiment that > generates an aggressive "userspace drivers" reaction, because the best > way to get around community discussions about what ABI makes sense is > userspace drivers. > > Now, if we can step back to where this discussion started, where typical > Linux collaboration shines, and where I think you and I are more aligned > than this thread would indicate, is "vendor specific last". Lets > carefully consider the vendor specific commands that are candidates to > be de facto cross vendor semantics if not de jure standards. > Agreed. I'd go a little further and say I generally have much more warm and fuzzy feelings when what is a vendor defined command (today) maps to more or less the same bit of code for a proposed standards ECN. IP rules prevent us commenting on specific proposals, but there will be things we review quicker and with a lighter touch vs others where we ask lots of annoying questions about generality of the feature etc. Given the effort we are putting in on the kernel side we all want CXL to succeed and will do our best to encourage activities that make that more likely. There are other standards bodies available... which may make more sense for some features. Command interfaces are not a good place to compete and maintain secrecy. If vendors want to do that, then they don't get the pony of upstream support. They get to convince distros to do a custom kernel build for them: Good luck with that, some of those folk are 'blunt' in their responses to such requests. My proposal is we go forward with a bunch of the CXL spec defined commands to show the 'how' and consider specific proposals for upstream support of vendor defined commands on a case by case basis (so pretty much what you say above). Maybe after a few are done we can formalize some rules of thumb help vendors makes such proposals, though maybe some will figure out it is a better and longer term solution to do 'standards first development'. I think we do need to look at the safety filtering of tunneled commands but don't see that as a particularly tricky addition - for the simple non destructive commands at least. Jonathan