Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5526926ybv; Tue, 11 Feb 2020 17:52:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxbYtRhOdgdUUQTEfiFV9anTQ5PU+44ZZghhh8gxymviNR2QsRYXl/0GmU9oSLC4bXov4AO X-Received: by 2002:a9d:7498:: with SMTP id t24mr7661858otk.290.1581472345304; Tue, 11 Feb 2020 17:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581472345; cv=none; d=google.com; s=arc-20160816; b=iBT0vbZpK+VAD6JCO+2DBSyATvy5+kSdVo7/a5JN7f3Kv4PoIQx7F8a3VI9AOIQ5n0 s+E97fI53nbzbh+taGPWFIoiaAQ0LnCM0RrHIb9msT+sYA3NgCm2ZUU+usm9aQXThBql FDHmSXmf4dNkybZJaxQi3owH/l6k7IXKAb8Avse95b2870fe/+MQGcEpz8c9yFQiM2na oH3SkYWzv6rbBIDAzjoe+NgHHqCw7wOZptSrH9syoMJW7wXC/GRX4sBqGIhMpyGeULLm epnsA8KUscUqlHEKTBw2qa6yejsmWWlwrq7QtaRFvTOjELG1p/izhn6LB346Ij25eymm vQTA== 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=MxCh/FtZwJCnWho+0XKg48VZXKb3jpF+eSXQMmk+U70=; b=tg9ZRn+xYtQxsHAaAk+VJzR2YSee4dqq8zxaCVVCmliRsAePjSYm5rSXnhZnx27EAb KSJY8ipkHJkUzapMtn0YLH4jLjFbCedSQKJlCErioZP4z2gz8tl+d5HdLuafSQBUcsXV Fsbw5HjTL5XFRlU3VnWWAivXjpDVyVn0J15Mw9tlN95km8iI9xjHhQKGXKQom1MRucWv Dl4mjYdEvsCtcOYE27F2L/CLUz4VIRjILXrtmAEtL94TJE7iqet8x5RtEwdOdsmVzE40 Zj7XAHVfamzgZzE6PZMCT85YMI8zMr9Q0ERDTebX6UU5sqlfyB+9gNj69rMGoqQdweiW wUsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=LFVtQtiW; 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 l84si2488308oig.5.2020.02.11.17.52.01; Tue, 11 Feb 2020 17:52:25 -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=LFVtQtiW; 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 S1728257AbgBLBv4 (ORCPT + 99 others); Tue, 11 Feb 2020 20:51:56 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:60368 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728217AbgBLBvz (ORCPT ); Tue, 11 Feb 2020 20:51:55 -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=1581472315; x=1613008315; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HvujFwzpw9mkwEK+Mb1EePlXzqe88waJ7+oOaZrzSZk=; b=LFVtQtiWwakF/6UYsJaIeaArG7EOA/cNeb0+iUkYMf+Y0R9QfTXRtlsc yE2+EGRXDYvzkmaPIOc+hHYDCgG7Jmfh9lxjGmPvmmPpQL4F5WeMC0vM/ WJdiUTnJW9vInyF6Ydpdv8H4Oe3Q6XJ9C2uUtAiatAZQovgduwpubydKE VplZ8Pbn/rrh5EEsVj5EXVQ3O1pcckBKlC7btxoKMRS/2trWotyW76xhS fRhmW/G4AJyWcu0F6qhWOBzCNW8pdF7TM8F35yxk3BdgyuahRoZwzVIKC OWwcPBs4kG7todM9oCRj8essBubsbmrJUIIl02qkkkiLKdl8bHSwJH3K7 w==; IronPort-SDR: dR2yBFopTP8K8gdbWwkSOmg1war9jFF2uoipH66agFSaECZFEhlIxaW8E4HY378cdTJnWDlLfD TWTG6yPeryScY36/3OVanE05FK3cVNeB+BRmI1R2UAsDBRfs0dwExoKu/NcHiWkXwZ+Un2yE+I spKag0Kl2mRdNvq8b5mjXKqwy2sZOuHBedxwiHOa0NMvA/X4jh8egmFEkSTEHsO+6+4Ec+KqLP t3qbOaS5ocf0JpcopoTgfhmRzfXA9SnmqgJpGTxfWSbInaTCPk3YXZm6xO1MWULyjvLt9gra3e QLU= X-IronPort-AV: E=Sophos;i="5.70,428,1574092800"; d="scan'208";a="237648940" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 12 Feb 2020 09:51:54 +0800 IronPort-SDR: SZY3gvXbhiS400swzDdxktz3O3V9jvm3HBRXJEz6T9xV1P+77g034AuBWNK0XsF85V6crMRvjK 1JEgAK0/FUkeKpZgODwNb8ayulr9TOMk+4tc3mvFOBPIg4vQavOb4YYEwTS6Z9CAEN0pQypCsB O2JmXN/Js++UOEIP4e8XPLJXFqcdpQ7Cuvq0s9/6r1zMOxEY6azt83OQjhm4ysDX6UsQNKkWOq 4/unpKQCdf33PoKOo+8kaUol5mWQsPThAimv4sdYZoGFMIOosDeJHDZOzFoGSGQfYNGjfqb8lJ byWYK+T5DVAgmydfzIbRXlzO 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; 11 Feb 2020 17:44:44 -0800 IronPort-SDR: vKfKktzwYwi+ypxIVNxWzM/zlHW3uSimMaqbKtKbdKO70vA7bMVnMTUlPusid/gNySjqBhQfY1 Ra2m4bJ/rccO9FHpqT5A3PF21wEucKS8s/JaBLZu00mnop74izIk+AW7Ev4WEJAiL5EpFDshUh tQpBrWDm7lTfqXBy5wSNiX0hxvjSm9arjdHhjn04/TyOKh7zB8YQSJynzodWWdLl3tvwRrvp6k sKHN4gkHvnTokDWAuEQVJA6mryzk6RDG4N0+hDl61pehi60+EMEGabbs0crcLT2ABYIciemfFL dYc= WDCIronportException: Internal Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 11 Feb 2020 17:51:54 -0800 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Anup Patel , Palmer Dabbelt , Albert Ou , Allison Randal , Borislav Petkov , Daniel Lezcano , "Eric W. Biederman" , Geert Uytterhoeven , Heiko Carstens , Jason Cooper , Kees Cook , linux-riscv@lists.infradead.org, Mao Han , Marc Zyngier , Marek Szyprowski , Michael Ellerman , Mike Rapoport , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Vincent Chen Subject: [PATCH v8 03/11] RISC-V: Add SBI v0.2 extension definitions Date: Tue, 11 Feb 2020 17:48:14 -0800 Message-Id: <20200212014822.28684-4-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200212014822.28684-1-atish.patra@wdc.com> References: <20200212014822.28684-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 fbdb7443784a..e478368a47f3 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.24.0