Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4732798ybe; Mon, 16 Sep 2019 18:02:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYQBfzGvCjNxbGf7g/wIjkNBnz/KYPyDp8T2c0C1yDlULeI079ZINNMlpqoJXRWyLjeloU X-Received: by 2002:a17:907:20eb:: with SMTP id rh11mr2509011ejb.25.1568682164163; Mon, 16 Sep 2019 18:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568682164; cv=none; d=google.com; s=arc-20160816; b=bjROTkDbYR53Ww0Pg8JZkIuTC3dlKpOxrRaUBeWDF3/AngkZ351iOexia2ajrdcuut HZZDrodOpS3OSbbfB70PX2pS6gwwcREhGIbUe3EkzKTV2pOIi8veCtOOu0tXTfsrN/Mx nPBmbRyCmoTCfQ0rh9SX6b56Ezu3kpuvWfNxZ6m1Ik5RmK51VEcn8PLMIOocE1PgkNxn 9NRxHPsOQEXcB+pF/eFSTLDLO27GbLCjFHzOLzTKcfs2F2dyP7wY9SifQVeGnPGabGVc 8xQPUgxGRmFP9Opl2o+ld8WQMDpsn9qOXLocoggn/XKMNBCfkVh7JsZoFxzEnEZZYD6b x5jA== 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:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=AdVo7LJwpXxGdiKukHrvBHzKH1YWUhQ/gLti6NVZFSQ=; b=jgDkEV/fkpflCuPQDsf5AjcgdQSuGtdqDA1T8Glxzphe4Lk2J7US8DB5FvYmKY+zwS Aq3AzQqEwApInwlJqRYhj6EAQjY9HW2MbWvag2fI2viqh2HklnePIfCDlPtVXRwz9QeB 8k+MxNuI3mjJZL+Ckrwtge9OlesO1LHrtNit8PX/pmZAAmedxTfY20M9APtsVZDrhOKS vZ1KhRXvbP3FwAL5n1Pj0UgTr68TyvyGUuKgE0RRk71ZCkuSNvgfGSmQXhCl3JlAWhIt kdIpAW8ehY5SyJ5xlcNMxNzOPc/al+5z0af5v1fO5XefWFrplXOtP2pyRwY2BsBQNFpR MW/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=LZrKxyGH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si294984ejp.397.2019.09.16.18.02.20; Mon, 16 Sep 2019 18:02:44 -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; dkim=pass header.i=@sifive.com header.s=google header.b=LZrKxyGH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389671AbfIPQMP (ORCPT + 99 others); Mon, 16 Sep 2019 12:12:15 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41523 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389659AbfIPQMO (ORCPT ); Mon, 16 Sep 2019 12:12:14 -0400 Received: by mail-pg1-f196.google.com with SMTP id x15so261365pgg.8 for ; Mon, 16 Sep 2019 09:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=AdVo7LJwpXxGdiKukHrvBHzKH1YWUhQ/gLti6NVZFSQ=; b=LZrKxyGH0/HV9YHUDl83G8YKQ+qL7o8gEtUrt64wIBPuQYhehi42JAaBkF1XZo6hK/ wPRAk3O5gQ1lAV9maO77+23dkf09QyN/TSo8AQcATjF1N68GfcnTlGZepjG6oFz4yqR+ ir67CrtZ5eUI23gYDOWL0CTWGeGEc/cE1abVKcbF/rRvdclNGrTYg0deZF3ZzcxBuSpz wR/uY0gWUfU3z0wANf7kGst5R2CrLh942DOoJdbhrYuBH1GwSpufkqMKKZgF9LG4yRTh 354cKGjIHnbF31heviiPGw5Lkc4GDW/DstalSCbb8JC9m+XX/hXPsoJyfScsSVLKSOoB bFOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=AdVo7LJwpXxGdiKukHrvBHzKH1YWUhQ/gLti6NVZFSQ=; b=cnr+TfB4BKRuEv1CrpLTHy51vahXbMeDwmdFyKbZCAmFU52xzOk+5HIwO2MuxvlvmH Oaibs2LFNJTWXHMnZd6A8sY9CKTmX/KDILDhESodIxZQ/I1joMR5FA6XZqfYeZyXiWXj 9FPZ9Hrk0BfRX/zI8Vqh9OFsrvna17bbwO1HX/T7NSyOw+60SnSKrxRxuO3J3Zs8oi71 iSHln+/bf45nTDEh7euaHSIwpboNMo2HNNn7iHArDcIkoJV5DcKYcREgSmDIyyWzDw4T 2NxJ1zrmSGipjHfBfEpziM+4Yun80uhAQG1+AkOFlMmkBh9JPhJbFRzOsot1rCTiLpc/ aqIQ== X-Gm-Message-State: APjAAAWEmV1MVfMogHQRnAl1LTNOKtZuXnVyEWgHUVv+6itIC+aop9xz YZ+dPbOeZ8ZBfMBRLAs5e6hYaw== X-Received: by 2002:a17:90a:cc13:: with SMTP id b19mr483247pju.112.1568650334279; Mon, 16 Sep 2019 09:12:14 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id c64sm53631983pfc.19.2019.09.16.09.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 09:12:12 -0700 (PDT) Date: Mon, 16 Sep 2019 09:12:12 -0700 (PDT) X-Google-Original-Date: Mon, 16 Sep 2019 08:35:07 PDT (-0700) Subject: Re: [RFC PATCH 0/2] Add support for SBI version to 0.2 In-Reply-To: <20190916065446.GA6566@infradead.org> CC: aou@eecs.berkeley.edu, alankao@andestech.com, alexios.zavras@intel.com, anup@brainfault.org, Paul Walmsley , linux-kernel@vger.kernel.org, rppt@linux.ibm.com, Christoph Hellwig , Atish Patra , gary@garyguo.net, Greg KH , linux-riscv@lists.infradead.org, tglx@linutronix.de From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 15 Sep 2019 23:54:46 PDT (-0700), Christoph Hellwig wrote: > On Fri, Sep 13, 2019 at 08:54:27AM -0700, Palmer Dabbelt wrote: >> On Tue, Sep 3, 2019 at 12:38 AM hch@infradead.org wrote: >> >> > On Fri, Aug 30, 2019 at 11:13:25PM +0000, Atish Patra wrote: >> > > If I understood you clearly, you want to call it legacy in the spec and >> > > just say v0.1 extensions. >> > > >> > > The whole idea of marking them as legacy extensions to indicate that it >> > > would be obsolete in the future. >> > > >> > > But I am not too worried about the semantics here. So I am fine with >> > > just changing the text to v0.1 if that avoids confusion. >> > >> > So my main problems is that we are lumping all the "legacy" extensions >> > together. While some of them are simply a bad idea and shouldn't >> > really be implemented for anything new ever, others like the sfence.vma >> > and ipi ones are needed until we have hardware support to avoid them >> > and possibly forever for virtualization. >> > >> > So either we use different markers of legacy for them, or we at least >> > define new extensions that replace them at the same time. What I >> > want to avoid is the possibŃ–ly of an implementation using the really >> > legacy bits and new extensions at the same time. >> > >> >> Nominally we've got to replace these as well because we didn't include >> the length of the hart mask. > > Well, let's do that as part of definining the first real post-0.1 > SBI then, and don't bother defining the old ones as legacy at all. > > Just two different specs that don't interact except that we reserve > extension space in the new one for the old one so that one SBI spec > can implement both. Makes sense. We're getting finish with this "just go write everything down" exercise, so we can start actually doing things now :).