Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4615940pxb; Mon, 27 Sep 2021 23:15:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJNLcXdKjB4IQseaFwxtaoltU1CzDrQee86pokJo1OVqlEuDmu2VCVVm9IG2cxwfx6C8eK X-Received: by 2002:a17:90b:390:: with SMTP id ga16mr3546429pjb.185.1632809752621; Mon, 27 Sep 2021 23:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632809752; cv=none; d=google.com; s=arc-20160816; b=hBY4x8iYTkyHkC/qrtzxjbD+fsW5ML9fCRb5tzmuWLbSvGSMVFXkDqGSBlM+XciOfl woXR/LQpu1Avf5VYH2dT9ODzx5d60CEWtgMn3PlL79DmpAbmCoCLPZFERhP92CgFIDcS mpAwWd0wx+G79hRGncjXQ1S8i33S4tvFgPF2oEyC+H/7YjXpuP5Ylg8fwo64HT+2xZJI KIsPvte6o72uRdgXleRG9Zm0M96F6jztFhMNTN8A4Vp74bNPYQgdo/A0L87xhQcHfwSO xLA+Op/p96xFOzw9D3pgAjkmuFzInGSm87lZ0CY49RRBM+Dy5CSuR2sZ3Jhk2Tf3sMnF //Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Xl0BfBGgxrV775K+OAAR9ROcoUMbviR83515iJHs9Pg=; b=ZToy4HUGqu1dxNyNYzs6gknVvCsc6mmXrM0DM6F/z7mmXwb42m0kfsVAEPgzeJ3Vzr 38Tb9AQ59KozphnuMpGSUJXblQx34ZDj/eLmuMzZRaAK6Q3IL+rZvVp/sG1PsfFZMG1p iUu4xz6Jelxyg+SSpbsr//hnuwow8hC0SOcOeP/G+4jO/bhLWauABPfMIztAjKMUNJtl 3TFbEyF1QVy4QbWd7+WCBX7RVVCwuQ67/CiCeMzSERBcMIH7zjcOE5wI2DYei7+pQvPS qVFXcb6mi6RUbabUDyHWupP2WgrUCZ2r9mli+ZPnrFhuFdwT5SAkqe7LekQw3lOT/fYN eJzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=ZiY2B+ka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si25360180pln.38.2021.09.27.23.15.39; Mon, 27 Sep 2021 23:15:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=ZiY2B+ka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236713AbhI1GQf (ORCPT + 99 others); Tue, 28 Sep 2021 02:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234543AbhI1GQd (ORCPT ); Tue, 28 Sep 2021 02:16:33 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295A0C061575 for ; Mon, 27 Sep 2021 23:14:54 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id u32so8667565ybd.9 for ; Mon, 27 Sep 2021 23:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Xl0BfBGgxrV775K+OAAR9ROcoUMbviR83515iJHs9Pg=; b=ZiY2B+kaLqTnRMorpc1rM8lvjhYPPwu0524KzOYs7ONOS0oWDg8M6W4k9uWwhCtdRF m0CorqPXNUqxOQoT1Mk5EEviGajopuysCX6L2FoqEi9R722Sb/9j396aesS7T0ZESy7q 0h3anQ6wOSc1GsuDYvbe1hfFqZjo6wuVSGfag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Xl0BfBGgxrV775K+OAAR9ROcoUMbviR83515iJHs9Pg=; b=SI/nZawoyZe1g/sIDfHyVH3SxrygDI8XUCcR0m3EjMPkmDpWuODytK2+aOdYtpXRAL sbFwERwb4oLhtH3A2wn0I328si0qQxLsKiquw09/oDpQ41WiDaGC6rXE6bhAFAQG1sKN osnknLGsoMkiVYPPT1PNzQTPpHY/rkRbEaS4Qr2eBX7nkkuh+CVvMTnD3G5oA/rRKmJp 0eJyO0tGScbUupJjSPtI8H+nH4SOAj+7MAnoCpmyx/ehKXK7kgvDsxpBuAQlbiIjti5s Ghn6vZcnTqffOQbjTWTaA2SSAHUtf5laKZOu/OVOnsrYoDWkB6HhG761L2uQnqxvdRQn tqlg== X-Gm-Message-State: AOAM5315zmBk/lA4FaO8eIF3zwzJl4hNyDFJMqlTvEwyGn9vo/Gyhz/F /l9hPrd4q3E6577qYUZPI5MXvoIw5rj2ZE/mMGbS X-Received: by 2002:a05:6902:1549:: with SMTP id r9mr5059591ybu.204.1632809693291; Mon, 27 Sep 2021 23:14:53 -0700 (PDT) MIME-Version: 1.0 References: <20210923172107.1117604-1-guoren@kernel.org> <0790abcfa1174e0e9b5e7b185f87ced9@mailhost.ics.forth.gr> In-Reply-To: From: Atish Patra Date: Mon, 27 Sep 2021 23:14:42 -0700 Message-ID: Subject: Re: [PATCH V2 1/2] riscv: Add RISC-V svpbmt extension To: Greg Favor Cc: Anup Patel , Nick Kossifidis , Guo Ren , Palmer Dabbelt , Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , Philipp Tomsich , Christoph Hellwig , liush , wefu@redhat.com, =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , Drew Fustini , linux-riscv , "linux-kernel@vger.kernel.org List" , taiten.peng@canonical.com, Aniket Ponkshe , Heinrich Schuchardt , Gordan Markus , Guo Ren , Arnd Bergmann , Chen-Yu Tsai , Maxime Ripard , Daniel Lustig , Andrea Mondelli , Jonathan Behrens , Xinhaoqu , Bill Huffman , Allen Baum , Josh Scheid , Richard Trauben Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 27, 2021 at 9:49 PM Greg Favor wrote: > > On Mon, Sep 27, 2021 at 9:26 PM Atish Patra wrote= : >> >> IMHO, if we want to support this board in upstream, we should just >> clearly state that it is one time special exception >> for this board only because of the following reasons > > > I'm not quite following what the exception is? If RVI's policy is follow= ed for how software support for custom extensions (which D1 falls under) sh= ould be handled (as part of allowing such software to be upstreamed), then = that doesn't burden standard distros nor the community to maintain ongoing = support. I am a bit confused. As per our understanding, D1 doesn't fall under custom extensions because they have non-standard conflicting implementations of the PTE bits that violate the privilege specification (v1.12 with svpbmt & svnapot extension merged). Custom extensions can only be defined via satp mode (14-15). Am I missing something? > And this doesn't stop a custom Linux build from being provided to users = of the D1 board (like what any other vendor would need to do to support the= custom extensions on their hardware). A custom Linux build is already floating around for the users for the D1 board. Whether the upstream mainline kernel supports this board is the key question here. > > Or are you proposing that standard binary distros would have to support D= 1's custom extension? (And how would that even work if and when Svpbmt bec= omes required in some rev of the OS-A platform spec - at which point the D1= boards have a nonconforming extension that can't be disabled and thus conf= licts with required (Svpbmt) functionality?) I was suggesting to support D1 in the unified kernel image built from defconfig only if we decide to support it. standard binary distros(such as Fedora, RHEL, Suse, Ubuntu) anyways use custom config. They can always disable support for D1 if they want it. > > Greg > >> >> >> 1. The board design predates the patch acceptance policy. >> 2. We don't have enough affordable Linux compatible platforms today. >> 3. Allowing running an upstream kernel on D1 helps the RISC-V software >> ecosystem to grow. >> >> No more exceptions will be allowed in future for such hardware that >> violates the spec. Period. >> >> > Regards, >> > Anup >> >> >> >> -- >> Regards, >> Atish -- Regards, Atish