Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 724D8C64ED8 for ; Fri, 24 Feb 2023 23:18:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjBXXSI (ORCPT ); Fri, 24 Feb 2023 18:18:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjBXXSG (ORCPT ); Fri, 24 Feb 2023 18:18:06 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60357199E9 for ; Fri, 24 Feb 2023 15:18:04 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id cp7-20020a17090afb8700b0023756229427so4429644pjb.1 for ; Fri, 24 Feb 2023 15:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=MX1R2gtpS7PTJMMj2XzkRK8QoMFOMXwlDnaBp/O//5Y=; b=c8tddRXKciU40CU2uGoIeK1kgI4zQGR73paZYrd7u3/ki3jB1M2TQ6uhzSu9wQvF3s kdEzKpS2EhXW7z3UEdPsrzvfqZr6laqZAFyEJgO4/kqWPvXc70YZhiLgtoPq8Hk3ls6U DFmnR+n6Wy7xuCLutA/EOXdBmeTXFC5dlMT/1LgpQ9MKsB5KXhZjlC43/bYknWGD9YPi JUkg6hzSv11lsoS/jk7xH64ddbg07hj9yYSwEHOskrh50Qfs2W7VuZAd7TXifAdpUfm6 5NQAWoZTrQLn55+j88OtXH6bdqMjvsza/oMvvkN8V5qvBBoHgSZHMu++tkEvu1xyaNIj fw0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MX1R2gtpS7PTJMMj2XzkRK8QoMFOMXwlDnaBp/O//5Y=; b=jNSEaPDKb1Utqnqv7/69xW5fDm7fDmxV9nXdbt5Ur9sR7owgqth5Xj7krNdsFVU43F iqyrusVYh6hy+o5nCb6QZ+J4Qsjp71uglzF4Elb1YKcPXLHLTN/FLWni4s8kgEAeXihy sA+HFtWtxLgKCXzp3QMs2GNpoLFbVOYlDPzAtyOxyP3o1o30/uAAmDigXu6AayVGh/Ra uxgoWyY19a5/FYtd4o8ASiutztDgyvz2MUhnIyJBrBqaxX/FQ5WNdFQfPZqTrQNN36h+ 6c4suIqONj2zSJzY8pPjCphORMWMQE1uwQmqZcNzY0BuUz3P8ppEpSELgHxRzhqjmZAe l23Q== X-Gm-Message-State: AO0yUKVXqMD1VBVZojYdG75pK573Gcy+ebVBuGv5OE4ambTsLcyliaDV Mn+olbMchGJzvkEgJ6Px5h952Q== X-Google-Smtp-Source: AK7set+FjlLmjlbXKl/hb0rF9jHxqpKdq7pxOc+XOmxKvvLljAbBnp9DR6wlnW/P8k+DlGKdRyPNkw== X-Received: by 2002:a05:6a20:7f9f:b0:cc:6728:f3da with SMTP id d31-20020a056a207f9f00b000cc6728f3damr6055852pzj.19.1677280683659; Fri, 24 Feb 2023 15:18:03 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id r19-20020a6560d3000000b00502ea97cbc0sm33732pgv.40.2023.02.24.15.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 15:18:03 -0800 (PST) Date: Fri, 24 Feb 2023 15:18:03 -0800 (PST) X-Google-Original-Date: Fri, 24 Feb 2023 15:17:19 PST (-0800) Subject: Re: [RFC 0/2] RISC-V: enable rust In-Reply-To: CC: Conor Dooley , linux-riscv@lists.infradead.org, Conor Dooley , ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, corbet@lwn.net, Paul Walmsley , nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev From: Palmer Dabbelt To: miguel.ojeda.sandonis@gmail.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Feb 2023 14:38:28 PST (-0800), miguel.ojeda.sandonis@gmail.com wrote: > On Fri, Feb 24, 2023 at 10:32 PM Palmer Dabbelt wrote: >> >> I'm fine with it, but IIRC the Rust support for most targets was pulled >> out as they weren't deemed ready to go yet. If the Rust folks are OK > > So we trimmed the original series from v8 to v9 as much as possible in > order to upstream things piece by piece, get maintainers involved, and > so on; i.e. they were not trimmed because they were not ready. OK, cool, that's way less scary. > Having said that, for the architectures support in particular, what we > had is indeed a prototype: each architecture we added was able to > compile, boot into QEMU, load the sample Rust modules, pass a few > tests, and so on in our CI, using a couple kernel configs. But that is > just the basic support, and it does not mean it works for other kernel > configs, all hardware, all security features, and so on. > > So it depends on how you want to approach it, whether you are > interested in the basic support or not, etc. In any case, I would > recommend having an expert on the architecture take a look to > double-check things look sane, run some tests on real hardware, etc. We generally take stuff pretty early in RISC-V land, for example we take a bunch of stuff that's just in the ISA but doesn't have any hardware yet. The good news is that we don't really have any of the complicated language-tied features in RISC-V land, so with any luck it's pretty straight-forward to flip on. >> turning on RISC-V support then it's fine with me, but I think it's >> really more up to them at this point. >> >> So >> >> Acked-by: Palmer Dabbelt >> >> in case folks want to take it via some Rust-related tree, but I'm also >> fine taking it via the RISC-V tree if that's easier. > > Thanks Palmer! We are trying to get maintainers of the different > subsystems/archs/... involved so that they maintain the different Rust > bits we are upstreaming, so ideally it would go through the RISC-V > tree. Works for me. I've got a few other things in the pipeline for this merge window so this probably won't make it, but I'll dig in after that. We've got a bunch of Rust-types floating around Rivos as well, so with any luck someone else will have some time to poke around. Having a full cycle in linux-next is probably the right way to go for this sort of thing anyway, as it's likely to shake out some long-tail issues. That'll also give us time to sort out the authorship issues, which we'd of course need to do before merging anything.