Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6948208ybl; Wed, 15 Jan 2020 12:52:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxtkEAWbSUCePwigszZDSA6eCraTavWloyIJjA6lDPHmLF8qJLKH7a6ad3f5g+KR7IkF9m0 X-Received: by 2002:a9d:4796:: with SMTP id b22mr3860949otf.353.1579121552665; Wed, 15 Jan 2020 12:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579121552; cv=none; d=google.com; s=arc-20160816; b=t8/98mlQRUnifKkP7gHy79TbN8jdmZuvwH6ys/xTjwFk0la46qXwBMHOmFg37mkj+Z 46W3XpC3HW+l2Zh33sWE7aPNZbyTqIp/1GapidX46RLiI9wssAFs/ocT90WWtSD0uE3e m2mKehsj49z/D2277rW0FMpCI2X4+DRJdmXGQsdxhUHhDEw1MNjT3T9jtMCWSI4WTcA6 8dGOCO4Pdx/9ZeXOw3IoO45dOpyE9S2KWmB0Skv9jcWSWFSgiZRo12boDgRcm5YIC3ww ZznXJ9rDd8a+45og3/HFPdegwcuwuXCdLwuDSfiKMACghzs7RwWKqkDeQJBjv+XzKl+6 h+5A== 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:references:in-reply-to:to:from:cc:subject:date :dkim-signature; bh=BAybeIS2/ajSEOLd+vnWUzlDR+akOGV8mHEBsCROnyU=; b=KALS0JHA72wEkFIfhF0yl7SCmd4lnwti38/hSOXUEbPXJ32zTBGAe+wYPc05I32jwE zbikzd2y4sVfzblsEWaEoRhXJaHHeFUgWAe2WwGi8bCqEZf/kfBtVwBOHEWLUufw+IVy Y8uRK4MfTxjHQMzJ4OovNWttYQ2F+zWiBfXZ/2kjMrYXhUdJbh67XmTiMnAt0VTsBClY 5hIWa4EUdWDOTfFm1oFPTm1PZywx8C28C2RdbDNq9DraLlHcCy7i1E+9zBSfl4xvRmqf 49+KjM+7URqMGdmdWbDirRTnPRtehRs4QlMDxpr1hqt41EvPxJYENZmKKEwONzA/gdjp UZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e2dSAH5f; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x142si10275944oia.220.2020.01.15.12.52.20; Wed, 15 Jan 2020 12:52:32 -0800 (PST) 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=@google.com header.s=20161025 header.b=e2dSAH5f; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729222AbgAOUem (ORCPT + 99 others); Wed, 15 Jan 2020 15:34:42 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41717 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729203AbgAOUem (ORCPT ); Wed, 15 Jan 2020 15:34:42 -0500 Received: by mail-pg1-f195.google.com with SMTP id x8so8731287pgk.8 for ; Wed, 15 Jan 2020 12:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:cc:from:to:in-reply-to:references:message-id :mime-version:content-transfer-encoding; bh=BAybeIS2/ajSEOLd+vnWUzlDR+akOGV8mHEBsCROnyU=; b=e2dSAH5fPJyIZw22cC7PLbsbjrsWUxmd71pEWDIqEbRlFb0e7gxVMiUAj1mlmmxsl4 lLpVRcjiiNzs5/0oXso0mD4JwTDmuavlmq53dlVIvoBIyQVB/pHYH7KxhLR9ZTmfklJA yVeyjK6Ute/lTVEIM7KnhIMxpeFeCXhG9QMzntgdkYpDPkniboIT0eVflnNm9blWr3wq Bl3NQeuDsqfWCpj+PJxXUyzaqNgYfAzrsvDbP4muyebKDXyeA6Tz6yqFzou4BKRChDZn P9m4lZncpvnpQtgDPGpm7zBByspgsDpYTPKnlnDeQXfT2+LdHPpTwo01pALH2ulHJg5L 1Wtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:cc:from:to:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=BAybeIS2/ajSEOLd+vnWUzlDR+akOGV8mHEBsCROnyU=; b=aDbCbefJm1P1JZCtBZEbk4bsL/iAlX/q7BTYG4kuIg5U6p924D463ODWvhSNlE/HdB QCnOtOGB+prsdirgZoSXxyej79tCe/DGRdsJnHHZ1Hmt5aHwDD4Fp25FdicCOsFf3yFd n2a/2pIWJlOvMW+N+wXkYoWQ/+zEDVsRrKViHSmkzD8+9l+Tmn8ZhiTInssHZKKUh5LJ uiBan0SQhrsgZE+NBaHAHcQrodgYu2xzU+OY8ynmJEwmf/T16KWUtTxsZ3XxAComWQgv c7p24JgA8IpJ4+II3EgbXh5jguQpizi1lPdLRTqmhhqmr7aW2gLGfwBFrYYjQXYNpTuz 0OyA== X-Gm-Message-State: APjAAAVqfkJJKUUGlcKwjrIpdwM5e9mfbnGMfhr0cGXbdWexzk6bQ2J0 wEWrfuT0OqINZv2AeK8190Sh8GUOkSg= X-Received: by 2002:a63:a019:: with SMTP id r25mr33020793pge.400.1579120480702; Wed, 15 Jan 2020 12:34:40 -0800 (PST) Received: from localhost ([2620:0:1000:2514:7f69:cd98:a2a2:a03d]) by smtp.gmail.com with ESMTPSA id x18sm23212328pfr.26.2020.01.15.12.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 12:34:40 -0800 (PST) Date: Wed, 15 Jan 2020 12:34:40 -0800 (PST) X-Google-Original-Date: Wed, 15 Jan 2020 12:34:29 PST (-0800) Subject: Re: [PATCH v6 3/5] RISC-V: Add SBI v0.2 extension definitions CC: linux-kernel@vger.kernel.org, Atish Patra , aou@eecs.berkeley.edu, anup@brainfault.org, linux-riscv@lists.infradead.org, rppt@linux.ibm.com, Paul Walmsley , tglx@linutronix.de, atishp@atishpatra.org From: Palmer Dabbelt To: Atish Patra In-Reply-To: <20191218213918.16676-4-atish.patra@wdc.com> References: <20191218213918.16676-4-atish.patra@wdc.com> <20191218213918.16676-1-atish.patra@wdc.com> 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 Wed, 18 Dec 2019 13:39:16 PST (-0800), Atish Patra wrote: > Few v0.1 SBI calls are being replaced by new SBI calls that follows > v0.2 calling convention. > > This patch just defines these new extensions. > > Signed-off-by: Atish Patra > --- > arch/riscv/include/asm/sbi.h | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h > index 1aeb4bb7baa8..9612133213ba 100644 > --- a/arch/riscv/include/asm/sbi.h > +++ b/arch/riscv/include/asm/sbi.h > @@ -21,6 +21,9 @@ enum sbi_ext_id { > SBI_EXT_0_1_REMOTE_SFENCE_VMA_ASID = 0x7, > SBI_EXT_0_1_SHUTDOWN = 0x8, > SBI_EXT_BASE = 0x10, > + SBI_EXT_TIME = 0x54494D45, > + SBI_EXT_IPI = 0x735049, > + SBI_EXT_RFENCE = 0x52464E43, > }; > > enum sbi_ext_base_fid { > @@ -33,6 +36,24 @@ enum sbi_ext_base_fid { > SBI_EXT_BASE_GET_MIMPID, > }; > > +enum sbi_ext_time_fid { > + SBI_EXT_TIME_SET_TIMER = 0, > +}; > + > +enum sbi_ext_ipi_fid { > + SBI_EXT_IPI_SEND_IPI = 0, > +}; > + > +enum sbi_ext_rfence_fid { > + SBI_EXT_RFENCE_REMOTE_FENCE_I = 0, > + SBI_EXT_RFENCE_REMOTE_SFENCE_VMA, > + SBI_EXT_RFENCE_REMOTE_SFENCE_VMA_ASID, > + SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA, > + SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID, > + SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA, > + SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID, > +}; > + > #define SBI_SPEC_VERSION_DEFAULT 0x1 > #define SBI_SPEC_VERSION_MAJOR_SHIFT 24 > #define SBI_SPEC_VERSION_MAJOR_MASK 0x7f With or without SBI_EXT_RFENCE_*, depending on what we do with the spec: Reviewed-by: Palmer Dabbelt