Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12516702rwd; Fri, 23 Jun 2023 07:12:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5esCYVB16UerEwH53TpydlNDwbZRrEqTNfTCFmm47dNJjh3WN0GBvyeEDP5mofzZxpZDT2 X-Received: by 2002:a05:6e02:152:b0:340:8f2b:ad53 with SMTP id j18-20020a056e02015200b003408f2bad53mr21659982ilr.18.1687529522525; Fri, 23 Jun 2023 07:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687529522; cv=none; d=google.com; s=arc-20160816; b=Nugo8UHBrEasdNTo7vUxvZDXbu5NHG5ZhZLssq82brH/4IDfZaA1bN8WKI9w58HWcj J/75/SkTc9fbdVc8o9kh7CRCeRvbDCiRxS3TpaaQb9YmYGSewcOIGJNMPYkiMCQD3l5y sNRR0aqsyGNfkUOm/NFVlOnhBa+uKy13se6rBgu99dJbS3HK+a8ydv16zKtEhC38Sl42 iAVDLEUNDqpz8hJy5k15u+zacUcq8rDtPicFqaE1q230rpHwuQRoUuDZLuNxf3SxiNcC euASSh8j4Fh/PFZ23EDEf9189XJV2/q0AnpWWOpio80TOPtKpOc+SX9aC8WKwdyib3ZT rl/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=0VYk5thHtjT5xHEhK0kF75qNfppi8BiOgDVpWrdH7Kg=; b=ajuK31Rg9Rv/psPLOTK6woQ0XnmoYdOjbHf6ltpaS2HO6KcpzaHlJeXdF5AmIIn33M KCc0reRpp1kgmwDSW80fiwkCkKtD4IBP96Yuoywqde8vEGIU92oyYhdz8oaPySG80VmV QZ6QdirOWIYjmJCKArEK6mhDRSkCtTXnyWsc3f9vdpsJEPwO7PmmHx8Pj8FB56sg/Ik+ JGTmEqF88twGoqazkNBHlDd8QgKb0xxvR9KGotmK/Yl9jM+TqzKy3gpIYWzJgWQeZ73U U959xwNTFzX+OBF/39g6bUvdyoySoCwmXfnNd0T1AhnEyvcvqbsdVNbYthRLKiJCNBuc lGAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=WuljwBrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k125-20020a636f83000000b0053f1dbe4f18si4397853pgc.197.2023.06.23.07.11.49; Fri, 23 Jun 2023 07:12:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=WuljwBrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231332AbjFWNp7 (ORCPT + 99 others); Fri, 23 Jun 2023 09:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbjFWNp6 (ORCPT ); Fri, 23 Jun 2023 09:45:58 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75042273B; Fri, 23 Jun 2023 06:45:34 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 1ED08536; Fri, 23 Jun 2023 13:44:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 1ED08536 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1687527884; bh=0VYk5thHtjT5xHEhK0kF75qNfppi8BiOgDVpWrdH7Kg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WuljwBrLb3q7v9KVJXxZR3j9zD5T0xsQlCD1seXm4QydwyuxlAuACqMaGjsYwAIa7 8f/aUpwZ8DkY5Alhd8cJpFol3jtHmEsQT8bNuN9VAu13oqQXWyjRaWw5HRzq5L47Wt GaflwEdwsc+MjeNfJrTmfTbpd4qhezTNyf2Ri3QuNVK5QVyvd5XlrJHutS9Ec3E6JB CHOakbuHy6REm+gWaxhiCGzzMl5z8n4O/CEFP/qqcKqqP4HYAJzBEfVohRqFsSYdem Oeooau0Fy2Csa+YX2CpbNWHmBplbrmsmeA+1Do5Sqr2bmj50hzrkC5LC20TTO7fpGd D0ACXh5IXjgYQ== From: Jonathan Corbet To: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Andrew Jones , Conor Dooley , Sunil V L , Song Shuai , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti , Palmer Dabbelt Subject: Re: [PATCH v3 2/3] Documentation: riscv: Add early boot document In-Reply-To: <20230623095547.51881-2-alexghiti@rivosinc.com> References: <20230623095547.51881-1-alexghiti@rivosinc.com> <20230623095547.51881-2-alexghiti@rivosinc.com> Date: Fri, 23 Jun 2023 07:44:43 -0600 Message-ID: <87o7l6mgxg.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexandre Ghiti writes: > This document describes the constraints and requirements of the early > boot process in a RISC-V kernel. Some quick comments... > +The RISC-V kernel expects: > + > + * `$a0` to contain the hartid of the current core. > + * `$a1` to contain the address of the devicetree in memory. Single `backtick` quotes are probably not doing what you want. If you're looking for it to render in a monospace font, use ``double`` quotes instead. But I'd also encourage you to keep that to a minimum to avoid overly cluttering the plain-text document. [...] > +Virtual mapping installation > +---------------------------- > + > +The installation of the virtual mapping is done in 2 steps in the RISC-V kernel: > + > +1. :c:func:`setup_vm` installs a temporary kernel mapping in Please don't use :c:func:. If you just write setup_vm(), all the right magic will happen. > + :c:var:`early_pg_dir` which allows discovery of the system memory. Only the We also really just don't use :c:var: at all. Kerneldoc doesn't currently know about global variables...perhaps it should but that's not the way of things now. Thanks, jon