From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C085CC3A59F for ; Mon, 26 Aug 2019 23:33:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94C5A217F5 for ; Mon, 26 Aug 2019 23:33:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="EUv8rLmn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728216AbfHZXdc (ORCPT ); Mon, 26 Aug 2019 19:33:32 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:61044 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfHZXd3 (ORCPT ); Mon, 26 Aug 2019 19:33:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566862409; x=1598398409; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=c7HyBE9MxmHzkUFyuO44BKPtCDc7GbdgX0jFaQ0/3tk=; b=EUv8rLmncqsoi1+eqyTAtspdM8IRD/R7soVkUIL7b56Q+hUHEkW5XFxg NTD+ck30XO7Gny8pcDXMYv4HtogFuqGQfP610kLvmGYMTtvXo7VN2Q80v zvg7PMULXGSESZGnN30usY/r+S4ZrHYnIYX12giQ+NB9qP6TeTq2adCBt V45vT9pL7KGlgl01BKvxJG2YXyeVbo2A7eQkBqM5CAMiB6WVRq5liJhow dULmFJA/vr6t+FTwP2Q6sOjC4jZgjbCVC24LdLgYScM61DbWDP6SQ/a+E G18mglDo4YznCQq/dolBWjdA1VyeGbqKZuIJM1slpojios3ylQx9LsRtg w==; IronPort-SDR: eiRhv/ImHvqV5eo2bMw7mBwPC9jPPLUNa4cY1zB0/f7bF7p/WihWDl0HxhlX7oViJt4EO2wJ+Z Crk3Jd9npfQPDQXvoLFkiLLUp7efWIaPKN5l0/YEdxB0cd7Z4ing5FA1kM/jxI17SAgtJ4mq7l H0XPbdADeLLiHRZGSp+4uXlrZbebqDc2e1cL0dOoS7g/qthh8idWHT/LGfsLi+ChAl7xB07nDG jGEgETmsSO8B/dBl5HaUgeD03Xiyyvcb1d/PmNBW+1eUNOrFD6qCuMU1V80fH0XpOy1YAiW73F MmU= X-IronPort-AV: E=Sophos;i="5.64,435,1559491200"; d="scan'208";a="116718026" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 27 Aug 2019 07:33:27 +0800 IronPort-SDR: voUB7PV34RQJvMk2sTpSSIUufSJRfWTO+KpsR5aYmpp22oky624eppiNhWiOjJ0JpMsY2dnAQe Bs67gpV6S42GitHKJxrfjxJ4+GFg6FHi8THesfW2wIRmAYqZTmECiKPgwkpHZkRcQZWvy/44bH P+6q4bSpCVScWc0H7oDGJmM8rwRMbOonVB0+7TpEOZQ3OMIO58peYrDj8JTvvYXiR/N50dOtLD 3ww3QqPCjxgy+mFFTEia60KAPgXwB80tpqspwb1t3FOemN09SqnmkP+AZ58jsZ4bpyj7B+HR88 nMWiDlimWbs0H+ZTUDsPxQB+ Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 16:30:39 -0700 IronPort-SDR: 9Zd5jC5jSoaARYwrFGDSti3pbB6lV95YOCcz73lSwbo+WPdag1frpWP9ueLJKzk5qW84IRcSIg gqU0EwZtUo6rBWwZY4mBlFoz54S+JaxYhL6sn2qZS6QhKTGClyGt7aD6oIfJBA8957JeJOl1Ie V205cfZVDjfU2n4BhwdLOpNTeK44dXkO+whV6x/gR23XDg+ZgaA8Ie1ZPay3IEvj0sW7iiObOf g8vgyCN/8zcUz/VVPoP3ubRJPV0bIjatVXe5qrz6qC9NsZANvj2kau9OGfKxN7xQiSH5GRk7Fl eRw= 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; 26 Aug 2019 16:33:27 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Alan Kao , Albert Ou , Alexios Zavras , Anup Patel , Gary Guo , Greg Kroah-Hartman , linux-riscv@lists.infradead.org, Mike Rapoport , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner Subject: [RFC PATCH 0/2] Add support for SBI version to 0.2 Date: Mon, 26 Aug 2019 16:32:54 -0700 Message-Id: <20190826233256.32383-1-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 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 This patch series aims to add support for SBI specification version v0.2. It doesn't break compatibility with any v0.1 implementation. Internally, all the v0.1 calls are just renamed to legacy to be in sync with specification [1]. The patches for v0.2 support in OpenSBI are available at http://lists.infradead.org/pipermail/opensbi/2019-August/000422.html [1] https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc Atish Patra (2): RISC-V: Mark existing SBI as legacy SBI. RISC-V: Add basic support for SBI v0.2 arch/riscv/include/asm/sbi.h | 109 +++++++++++++++++++++++++---------- arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/sbi.c | 50 ++++++++++++++++ arch/riscv/kernel/setup.c | 2 + 4 files changed, 131 insertions(+), 31 deletions(-) create mode 100644 arch/riscv/kernel/sbi.c -- 2.21.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C737C3A5A6 for ; Mon, 26 Aug 2019 23:33:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 312FA2053B for ; Mon, 26 Aug 2019 23:33:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OYba+TYB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="BF7FLXm8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 312FA2053B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/ky2xn6JlTJt90VGd2+ovxZQjIa124Gb8LxJi9fcma0=; b=OYba+TYBaxnu2Q 6LVjGxHcFRTNw7M9nwgTMZ8MJU95VssdXqraQ6ZdLnHP+K+BRLWG0yosn2csu+QauD/1WkEoQCYyt 7T6zSwVlIUqiL7IUYcwo0dfixGP/YsfI3aIsEGZHQBtnYvi1BFJ8zMvrxS5kCFzuT5gEGOGI60mf/ n54FkynYTd4+n9RaJSJYlGOrJi2aBf2B4OrWMr3midh/qUuhwuYyArZ/FlCBgX6VGlrl3bg4feyCv YJzR/MTMJl9VsMru2regEIVScFnxHiTED+J1hpH23J2JBx/fWuikC8GNWbzk9mjmS4/bjjPRwOp2n bLavADWEG0WJJ0d0kBBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2OUX-000478-1G; Mon, 26 Aug 2019 23:33:41 +0000 Received: from esa6.hgst.iphmx.com ([216.71.154.45]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2OUQ-00042W-AC for linux-riscv@lists.infradead.org; Mon, 26 Aug 2019 23:33:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566862414; x=1598398414; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=c7HyBE9MxmHzkUFyuO44BKPtCDc7GbdgX0jFaQ0/3tk=; b=BF7FLXm8wLkVIGGaGhVfhNpjNj4v15ImSykU60cOGnHZKzoe30Ofqpin wNuheDgJD9DR9kWLyoqFx0P781SNr94rmnUNFr4b5ZWOs0H4ARF6AVruK F6YonAnq84bnhuBSoKvF9jdPF/aXps9IaADVO9DgSjXc7Jb0yMKsHMo2n hKue0HmM9X2mC5ybpbmqPza+0hFA73xhy3d6aFSmfmYj8MnMzAkK0vWPA RzJnrx2igSAcamZrpRxzW6EQxrccQHqgYYgPNj9sWcJCzfJCpyaijrjg5 Xy1LotQ/AULfwHeP9uWQ4I0rU6yRKM8SbjKyME0ujmyjOfrGRCJKvO5mj A==; IronPort-SDR: EEwTmwlVZT+8v8vfUq+sAZBjleSWg4TW/HA3iItDzIxGe2nKN4BBOPUf1peEM4mDMHQ+kglgw6 BxiV4MCONbh5rDXz/KmXj/M+usipzbA3y+1hTEMdIpS9kJe++BZpsrwavCDWhIdDqzLmFzpwY7 4QkR5XENLLBH8S6nBooRDMP4nn1L4dHC5ary3QUlo7wE7kh18bwMTPDogDnqfb1xO9FUxyn8lt raiMvAgVBxhQx8ZqK7hjMQK0wftqxG5YcWWeJWN5EqXGI9JQKapcJU5RjY3LP/xuR7THfl7iIl lwc= X-IronPort-AV: E=Sophos;i="5.64,435,1559491200"; d="scan'208";a="118308324" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 27 Aug 2019 07:33:27 +0800 IronPort-SDR: uVHwQtWM+Nv+JPOM7/PsC5iIdb1vBqpFq37BWGWlW1muoE4ZDWJ3/IdOZIjtF1hjehn99i6lcO O6SAOf3yV8Wvp9KxCNxg50SVd6gAk52C4QOmtAzsqMKUaT0mEgfg1jwdfhfArOjX+uMy8wmRpM YmfItZ8FbHFNUbQhdQCZ7btWqbs8Y6c9jaoEO2/Kgq0Gem3BgiXFfns1hFwewkHCn2DCnjgqmH ZFIo/AaFhmLXqEsWmpKRFyhrDFY0V5AR24zjEGB15qusrgO1H5fgwUG7xvZ2QDBWSetbt1jQSj uOoYiJ5xl6aTPMFC+Ai/jvg1 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 16:30:39 -0700 IronPort-SDR: 9Zd5jC5jSoaARYwrFGDSti3pbB6lV95YOCcz73lSwbo+WPdag1frpWP9ueLJKzk5qW84IRcSIg gqU0EwZtUo6rBWwZY4mBlFoz54S+JaxYhL6sn2qZS6QhKTGClyGt7aD6oIfJBA8957JeJOl1Ie V205cfZVDjfU2n4BhwdLOpNTeK44dXkO+whV6x/gR23XDg+ZgaA8Ie1ZPay3IEvj0sW7iiObOf g8vgyCN/8zcUz/VVPoP3ubRJPV0bIjatVXe5qrz6qC9NsZANvj2kau9OGfKxN7xQiSH5GRk7Fl eRw= 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; 26 Aug 2019 16:33:27 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/2] Add support for SBI version to 0.2 Date: Mon, 26 Aug 2019 16:32:54 -0700 Message-Id: <20190826233256.32383-1-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_163334_385948_6C6A44F2 X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Albert Ou , Alan Kao , Alexios Zavras , Anup Patel , Palmer Dabbelt , Mike Rapoport , Paul Walmsley , Atish Patra , Gary Guo , Greg Kroah-Hartman , linux-riscv@lists.infradead.org, Thomas Gleixner Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org This patch series aims to add support for SBI specification version v0.2. It doesn't break compatibility with any v0.1 implementation. Internally, all the v0.1 calls are just renamed to legacy to be in sync with specification [1]. The patches for v0.2 support in OpenSBI are available at http://lists.infradead.org/pipermail/opensbi/2019-August/000422.html [1] https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc Atish Patra (2): RISC-V: Mark existing SBI as legacy SBI. RISC-V: Add basic support for SBI v0.2 arch/riscv/include/asm/sbi.h | 109 +++++++++++++++++++++++++---------- arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/sbi.c | 50 ++++++++++++++++ arch/riscv/kernel/setup.c | 2 + 4 files changed, 131 insertions(+), 31 deletions(-) create mode 100644 arch/riscv/kernel/sbi.c -- 2.21.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv