Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp330610ybf; Wed, 26 Feb 2020 14:03:30 -0800 (PST) X-Google-Smtp-Source: APXvYqztyxEvFWb+MPN5Mkb+onCsADw1mp/S30q9CcHYEEGYXtqWRsnoxlo4odBCNtfnF46bzTGS X-Received: by 2002:a05:6830:2159:: with SMTP id r25mr746531otd.352.1582754609976; Wed, 26 Feb 2020 14:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582754609; cv=none; d=google.com; s=arc-20160816; b=Tn9wJt30FX1Fg2n2+HmW1XHDGPhXjmQXeXT4FVZrdAj7+kW1OPeBgBmUu7nzdiXIA5 wpcNHqU8kqvr1Jdjz6XwT5iG8I/vpC9WuSLQyWU7y8mgNla6VxqGsrUeVtxBoLOliLj1 u3rlcDtiMyjQ49C/rutjvMke2Wd5wg02UXFQS6IfpdttRLmnT3NXCqnml1IiIIOptS6g FuKOVr/2zHSSkmKWWY+msO/Pz1kLoJe2R5hOtSzgLRFziFkZxLr2lA6JfPbSZf3reItO KrAYrP45NNcoe95y5LQ7OCrdEAK9B/KMaUt+M7wdyMzow1MsItKti3cd3E4E4QJjBgtW krlQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=ZS/qPggp5jjXTu7GJUiw1Fz88Ku+4WEdA5jMOcJXbBs=; b=i2EJ0XS7VnFeJrGg4bztzowHUooPXZ7IxAdPIZXL9/XWRTE3S+pr9MPZqwvGKJLk5k JyQ0US/mRWrhx7iWfigXpFgUNUABt4K76KgWwbuEZTjsAdIE3obB2xRHfct/8eXnh0u/ V9pHslAvNti2A2wpUHKZkaSdx4DlsGprj9axXpDAoknZ+3I+wrR86yJBuOcJIgVpGOWv UHg2wnk7grS8NMr5pC5JCSeBto0Rsgu3XHOheUUIEPORmNHOXMS9fgtCUY5PJETsI0om crkMIVz2jY+cpXxmC377BdCbquNWlnKnAVrp9M8auIryIAtaB+IW92G4wzRLWpJt6Ouh e3gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=av3G+Coy; 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=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u206si261130oia.224.2020.02.26.14.03.18; Wed, 26 Feb 2020 14:03:29 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=av3G+Coy; 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=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727867AbgBZWCX (ORCPT + 99 others); Wed, 26 Feb 2020 17:02:23 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:45025 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbgBZWCW (ORCPT ); Wed, 26 Feb 2020 17:02:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1582754542; x=1614290542; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9eRvqOxk9f0pqXk8BY9vVdeKP4ddTz7Ig8LSU/Egkzk=; b=av3G+CoyZE0r/Q3C2zarG5ogSVHHjiU7oJ3TD3r/1VWZWHAhLqFx0f7P RhOPevMr2xqn1MRnacqz1/HRnQkbfJ4/UhplnUVYare6xx5q+rNR5Gd+7 qlEXe2feiMF5kMZN5m2V8tBM6kmOwhFa0DlkzsiMW7XS2J/uDGstxJf76 1wnhLqURXLYihECcdEwxdEfB6nGHNIrsfU+AyLMdgm4HiMUE436Kob0TK fxn/tt/IxbMh/AROz+w39JinbkeNtk7ZY/eft4TN125LHWg8x9oXsQ7vd j048fUyPVSQhbtxwv1cYPWZ+57uRyPBJZ3KsUKEkqHmwD7zyMpSORb+cs A==; IronPort-SDR: 6xmHzpQcMqYCtM+wPcGFw0J6sx2aGwC1I3kR6dve4goCR4U8QhGufmCOPxXQ/CXPCgdgb/0igY ZzIHLnIqal+V0D1RVxzeZToyjlgCay5aQ9yFrBOw8i/YLzztSJXh2zx2j1o0Xh/NbiiCzRTwGW 36U7EI2A7Wr5SPQqVkg7RCfSgKOVHyVmRi5KAKunN+g8lRsoPHXnHgh/jOVHToBIX9VBOCw01+ w6MlJvrVXKOU0rPGYxBgkVZff7mdjzgO9heAayU/2LkyjZxkDZVZNBTMI4naDt6pv+DTXpykI1 s+o= X-IronPort-AV: E=Sophos;i="5.70,489,1574092800"; d="scan'208";a="132290717" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 27 Feb 2020 06:02:22 +0800 IronPort-SDR: 2Ep4OTrXCJjyfSeUBRz+fg5VMF/JC5ImKc881u5aeg7UmNcs6ekfoO5jba4VFa3MX2MVoAK1+A qxs/BsgNeMhoIkbDyXfApmklIR0XXMq1D3dEYCoo6gYxi+odJgom2AsTcNUNOXTSRFVTt+pqr/ jQ8YuLPsKIKAzs2NIYKS3D6aEg6/hr84uTouaR9zQvriERwRg1s0DmSJVigLK3BfGtiXzLVSbk On3iChxW82+cMrjKIz+iHBm3CWyWvjVqWHWczKw9bemU6bsO0QviAg3SBfGhLglSDHAFXo6b4e U3BcvYjXkJ+rcEc2un0uln56 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 13:54:46 -0800 IronPort-SDR: /01U1CpZGHnPJNwKNAUQk+Nj+9tnPO3Pc6OSUUQDLvreFfFJl3B8IPu8qctw5jXjM8m+BeFNmB mVz0CeD9WNJd12ZxigcdrSl/aBzmCePO10lDB660BYAm866o2xLMUhYmutXscs+Cq3pD/Z/s/x astm/m4gELs3MZrSCWt8dalBjh3AimiZOJjobq1qLof3uFk2IGJ1csqQzRaaXBPeOjAagjBlpk Nj28nIE2wT8woCGhpiGsQv+rzPjAbJgY0tBvK2XDBkCy7wWyZxjarooMyxJvslILjNtvxAOLPd gi4= WDCIronportException: Internal Received: from yoda.sdcorp.global.sandisk.com (HELO yoda.int.fusionio.com) ([10.196.158.80]) by uls-op-cesaip02.wdc.com with ESMTP; 26 Feb 2020 14:02:21 -0800 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Anup Patel , Palmer Dabbelt , Albert Ou , Alexios Zavras , Borislav Petkov , Daniel Jordan , "Eric W. Biederman" , Gary Guo , Geert Uytterhoeven , Greentime Hu , Greg Kroah-Hartman , Heiko Carstens , Jason Cooper , Kate Stewart , Kees Cook , linux-riscv@lists.infradead.org, Madhavan Srinivasan , Mao Han , Marc Zyngier , Michael Kelley , Mike Rapoport , Nick Hu , Palmer Dabbelt , Paul Walmsley , "Rafael J. Wysocki" , Steven Price , Sudeep Holla , Thomas Gleixner , Vincent Chen , Zong Li Subject: [PATCH v10 03/12] RISC-V: Add SBI v0.2 extension definitions Date: Wed, 26 Feb 2020 14:02:04 -0800 Message-Id: <20200226220213.27423-4-atish.patra@wdc.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200226220213.27423-1-atish.patra@wdc.com> References: <20200226220213.27423-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Anup Patel Reviewed-by: Palmer Dabbelt --- 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 5a3937792b8f..1c4bdcc3b817 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 -- 2.25.0