Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4182376ybl; Mon, 27 Jan 2020 18:31:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyoW5tpQQMeO4XyU14srmOZtUsnG4HbdS9PngSeq4zhiH/F+ALs/HIYq+270r0Nd6RrbG+O X-Received: by 2002:aca:b60a:: with SMTP id g10mr1443551oif.102.1580178703696; Mon, 27 Jan 2020 18:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580178703; cv=none; d=google.com; s=arc-20160816; b=soJaYPqXIWV+oIiAszl9fk0dWtiSAL1iYtsiGBoCZd4YcVT6OuiQn6Ez6+WFcm8U+P ifNO+vEgIDpLJDRlN8+gwYkCe0iXnT2ZR/qTTvLA2h3wmuM7L1kHocbL7DuVpo6Q3TKE jfaehqS+QJ+0ZW3TTDPvz/MC3jqcI6xaKjlQ+ztxHSu1brLx2mcTQTJ2QiYbf67pi3gW saFLgfqKTQ6pqBraI1Hqm1i9/dNKADLP2KCfV3vsrpH5MAY390hkCwdYnD91Lu3tt6Ii blMASQ5Xd4EbaTWTVznBjQpCKlJ0fT69VPv2NvaNOrzrbBfEsK2HQWyAncdaQANHhlVI HUuw== 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=CztnoQ+8TVn01fzxYsUCUhIp7LdfpLLUQQ5W8m1HRwcAElLFmNd4jLFZKk7FZVinbh zOZZCzHBbTu2QfNpvMsveQEiTlrBoNNHirQZ0ZmBF7ndGZDpjvnratEhJSZ3i98pH0+T 0q950WjhFiuhN7SQQyVdoBoQbXAWFGFGY9XNQhywXf3HyhtVTHRzRJ3BqkfaO3wjIZ8H S6IRBoRLj3Vr2rc7TzLyP9v3sVbfej5iaOvNo3nbizVqStAk2FP6A6c6sZOyu7yyd3zA aSK8uo2xmEbtk+rn/jJ7MVxVd3wOss1WH02ryTCpGKIqqihR2wCN5PVvSHELPCYYCOMY 2fhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=CjSW1qUa; 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 s22si4270650oij.35.2020.01.27.18.31.27; Mon, 27 Jan 2020 18:31:43 -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=CjSW1qUa; 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 S1726772AbgA1C2J (ORCPT + 99 others); Mon, 27 Jan 2020 21:28:09 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:43151 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgA1C2J (ORCPT ); Mon, 27 Jan 2020 21:28:09 -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=1580178489; x=1611714489; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HvujFwzpw9mkwEK+Mb1EePlXzqe88waJ7+oOaZrzSZk=; b=CjSW1qUab4V1q05u9rClX1ZLfaTwRa5VT4bJ1QvPh9DdQ8+rbtgJd/ji EqShK7RhM7bHkfv0oOhFn+HPA58N4oLKJgBkikY6VwrTEcEyGqIs7hIDE qysFRrdafFCx2Zy2VtLXwl+OwgnAUr/WF38xxyDut1NxbSJuljH0WjzIX DHcaAUkmGADaoy0toN/iya4JtiFUn3wChDlLO0VunWVGA/JJMuwaXXQQv goCkA0ctOQ1db6rT1ob1fmC5FJLeqNspJIeF++m/weJNIrSSBDfDVOxYq 0Zp1Ag4goIsIyYbZYsgj2NfJ12IkgYqyIpi4SmX9Klym0FSKKSUYC7fLK Q==; IronPort-SDR: eKAjDLgce5Y84HxUAXPA/AMqEot9Khn4lUY7u5JO92l2xDJJBZCwASbzaj+mzjDj+UFZ+zvqDT cH5WioKv/nVmF71GPbk2zTWoO90Tg0MGXXmJ4Z5POFpJkGoR75lTCXh3rkUdm+ci/ljKEAIhst HKvv+czwpqFcU1aUeWcgI1YcakQTUs4R+5z9BxrtbdZxf6iFKyLaiXKf8b/VX33hXE35EaMHkD 34sIVdMOSM3OvD6JYuSpSATyWrfCCaqFTrfho8gGTkkZA5vGRJCrD82KNsKxOuvJFeUqa8rI8n cAQ= X-IronPort-AV: E=Sophos;i="5.70,372,1574092800"; d="scan'208";a="132899386" 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; 28 Jan 2020 10:28:08 +0800 IronPort-SDR: G0jvzhw6MbGSDbDnLe6d7PhhvYoczKzKyFF/zjGcGTBYqK4Vu9Lp8c00Bq7X6S6syEv2hZqFGb 0n1HDp2+SpS1Iv4nHKp68OZXkWvTahQ2Yocc17IJZNwpZ076wUV8BVSiD9/263jU1a4LMjSQWZ IRn9rLLDf5AIAlvdabMvR6a/eeB85mPFhHgZWRVTjZkxrMpcBWl6FFZsh6aR0Q4PIst5mSTLYm Yh4U+hCzmC/fghaYbA62vhzAqAmBVSX2ZHAGs9eQ7hVXIRbisyJBxmIlXCGZTkVJ5XxuLLnoqm T4Go6VqIf6zsSMonLC/Mei/1 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2020 18:21:23 -0800 IronPort-SDR: jivIRt622RQuixUOnWng3LUuJnbJKVVQ7qUtWG71Bi5J48/9e8Mnl9BYKcQdKhqHgk7r3Mp9y+ jjn3B4NiG2HneNnX1rXIkI1M8omt7FDie45rn4J34qruD7wUpIsyKkvu5jkFiR7Xjrj/W9B0B1 fRAlDcnJFF32FP1PXXXlEmkvcHYV9F6V+y8FbTcmyFJIl3JmgTGY+rgPhiLk7OPujECPwFXOJp dXFxH+5yiBQy6SJM0pPhteEOaxxY/cWLVWsEBktvTgoywkvuD11kiL60cweP1OnEekKKFLiIN9 6sU= WDCIronportException: Internal Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip01.wdc.com with ESMTP; 27 Jan 2020 18:28:08 -0800 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Anup Patel , Palmer Dabbelt , Albert Ou , Borislav Petkov , "Eric W. Biederman" , Geert Uytterhoeven , Greentime Hu , Greg Kroah-Hartman , Heiko Carstens , Kees Cook , linux-riscv@lists.infradead.org, Mao Han , Mike Rapoport , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Vincent Chen , abner.chang@hpe.com, clin@suse.com, nickhu@andestech.com Subject: [PATCH v7 03/10] RISC-V: Add SBI v0.2 extension definitions Date: Mon, 27 Jan 2020 18:27:30 -0800 Message-Id: <20200128022737.15371-4-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200128022737.15371-1-atish.patra@wdc.com> References: <20200128022737.15371-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