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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F2884C433F5 for ; Mon, 29 Nov 2021 21:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KxpL6vNOkWbr1lO3nlL5z6V1+Wq/sC86vfLWlOhm/Ps=; b=Lo9KCS6U3Z5Tya 5xjp1m4y7AO1jY9UyJpDlQW747UAqFDIoP/T2yrO3J1gDJscf6miLiByaHGJ8X1WvzH1snhPmKzex 9dds4vTu1WD0zfrGmUQvpDL6IBtxTTKsgx08AQv35TptaRXn/b6UHU5PNGQ+/9kNBPAFP7so3bLhv 9OesQ4W+Azc0QTP/L2VHz3h3JpQ/75FaZtkHGSC4RBhAumW1e5IMF6y3BOM3Am2vptwlgkPOouYa1 Xoe7D3wIhW2j8Tcg6fthT/G3cdZRAYDev80EoJt9AAfv9oJqMrWv2NkhXTl/GSPX5Y8CBdHaAPNBy lz+BxhpFxRwD4vz/yaiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrog1-002qw5-Ga; Mon, 29 Nov 2021 21:59:09 +0000 Received: from ms.lwn.net ([45.79.88.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrofy-002qv3-S5 for linux-snps-arc@lists.infradead.org; Mon, 29 Nov 2021 21:59:08 +0000 Received: from localhost (unknown [IPv6:2601:281:8300:104d::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 0F0752D3; Mon, 29 Nov 2021 21:59:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 0F0752D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1638223142; bh=Lj5RLnSCWzy6Mu2SbVwIEwUbaMwVgT5GO0EA8fW/XPk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=aoK1C7XM7/Rf0bPnomwmA+oa1AXk9qm+Y54NqdLQ3I/FdUL/F/jjv18ayn/CqJfOf U6VgU4eCcRzzUKaSVGS0knyWbBL/vvcNGMDCK6t6xtc7oxZ/JVpJEC2YTj+LO/mK0H /kFybj4rw18xYyx7aU+3k2O72UA+ivOCprtwSFeYOeQFiyQaZghsntHLdxnpWH9pCn +V0E1IV41N35JmxXN2wlZMpqUs50+FYgeJ362v1lwxPZoXDHfHjktJHBDKYOki8Rx7 dzi9o8GQBFmABkPMuvxHiYlzokkf0AjKydtdHEN/632Ms6LKGvZqB+UfW6+pI+6CtK YZyZ77oPqSQvQ== From: Jonathan Corbet To: Alexey Brodkin , linux-doc@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org, Alexey Brodkin , Randy Dunlap , Vineet Gupta Subject: Re: [PATCH v2] docs: Add documentation for ARC processors In-Reply-To: <20211112065059.7273-1-abrodkin@synopsys.com> References: <20211112065059.7273-1-abrodkin@synopsys.com> Date: Mon, 29 Nov 2021 14:59:01 -0700 Message-ID: <87fsresjx6.fsf@meer.lwn.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_135906_946029_EB735C9A X-CRM114-Status: GOOD ( 32.66 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org Alexey Brodkin writes: > ARC processors are supported in upstream kernel since v3.9 > and so far there was no documentation about them except some > Device Tree bindings. > > Fixing it with the simples set of docs now: > 1. Overview with pointers to other informational resources > 2. Autogenerated feature table > > Note though it's just the very beginning, there will be more > for sure given time as there're many things worth documenting > and in fact even contents itself is avaialble but just spread > in some other places. Now we'll try to keep all here and > then maintain it looking forward to match the state of development. > > Signed-off-by: Alexey Brodkin > Cc: Randy Dunlap > Cc: Vineet Gupta I've applied this set, but I have a couple of quibbles that it would be nice to see addressed... > Changes v1 -> v2: > * Spello "linux" -> "Linux" (Randy Dunlap) > > Documentation/arc/arc.rst | 81 ++++++++++++++++++++++++++++++++++ > Documentation/arc/features.rst | 3 ++ > Documentation/arc/index.rst | 17 +++++++ > Documentation/arch.rst | 1 + > MAINTAINERS | 1 + > 5 files changed, 103 insertions(+) > create mode 100644 Documentation/arc/arc.rst > create mode 100644 Documentation/arc/features.rst > create mode 100644 Documentation/arc/index.rst > > diff --git a/Documentation/arc/arc.rst b/Documentation/arc/arc.rst > new file mode 100644 > index 000000000000..249d03c6be8e > --- /dev/null > +++ b/Documentation/arc/arc.rst > @@ -0,0 +1,81 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +Linux kernel for ARC processors > +******************************* > + > +Other sources of information > +############################ > + > +Below are some resources where more information can be found on > +ARC processors and relevant open source projects. > + > +1. ``_ - Community portal for open source on ARC. > +Good place to start to find relevant FOSS projects, toolchain releases, > +news items and more. > + > +2. ``_ - > +Home for all development activities regarding open source projects for > +ARC processors. Some of the projects are forks of various upstream projects, > +where "work in progress" is hosted prior to submission to upstream projects. > +Other projects are developed by Synopsys and made available to community > +as open source for use on ARC Processors. > + > +3. ``_ - > +Official Synopsys ARC Processors website location, with access to some IP > +documentation (Programmer's Reference Manuals, AKA "PRM's", see > +``_) This manual requires registration (with a fair amount of information required) to get. That should at least be mentioned if we can't find a less obnoxious version out there. > +and commercial tools (Free nSIM, > +``_ and > +MetaWare Light Edition, ``_) > + > +Important note on ARC processors configurability > +################################################ > + > +ARC processors are highly configurable and several configurable options > +are supported in Linux. Some options are transparent to software > +(i.e cache geometries, some can be detected at runtime and configured > +and used accordingly, while some need to be explicitly selected or configured > +in the kernel's configuration utility (AKA "make menuconfig"). > + > +However not all configurable options are supported when an ARC processor > +is to run Linux. SoC design teams should refer to "Appendix E: > +Configuration for ARC Linux" in the ARC HS Databook for configurability > +guidelines. > + > +Following these guidelines and selecting valid configuration options > +up front is critical to help prevent any unwanted issues during > +SoC bringup and software development in general. > + > +Building the Linux kernel for ARC processors > +############################################ > + > +The process of kernel building for ARC processors is the same as for any other > +architecture and could be done in 2 ways: > + > +1. cross-compilation: process of compiling for ARC targets on a development > +host with a different processor architecture (generally x86_64/amd64). > + > +2. native compilation: process of compiling for ARC on a ARC platform > +(hardware board or a simulator like QEMU) with complete development environment > +(GNU toolchain, dtc, make etc) installed on the platform. These enumerated lists would render a lot more pleasantly if you actually formatted them as RST enumerated lists - with lines after the first indented. > +In both cases, up-to-date GNU toolchain for ARC for the host is needed. > +Synopsys offers prebuilt toolchain releases which can be used for this purpose, > +available from: > + > +1. Synopsys GNU toolchain releases: > +``_ > +2. Linux kernel compilers collection: > +``_ > +3. Bootlin's toolchain collection: ``_ These, in particular, render in a pretty ugly way. Thanks, jon _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc