Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6620763rwb; Wed, 18 Jan 2023 07:25:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtakkhiP1V+fUMGKHTLjxgtm40dEy6tYgn9rEM3BmM6Gd4AkdAk/S2CMQHYWNpG01pLYh5u X-Received: by 2002:a05:6a00:3390:b0:581:c0ee:3a5e with SMTP id cm16-20020a056a00339000b00581c0ee3a5emr8331129pfb.20.1674055532055; Wed, 18 Jan 2023 07:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674055532; cv=none; d=google.com; s=arc-20160816; b=og6XaMUsVBda0P8TDrXXPJD3FFPMlVbwndrb3wY5I2ZD/7CgHxnY5wMM8OSqnkd9eh f73kC3QoKtLQeGOx8ALzs/ZmGdJJWOY44PU3vQpPBV9xpxXN/5cdcoz1xGfvMhDDP/KG y1b9zhDcFyPYRj5/xgdBdVuo6ITYyq6xt1WNbeJGbHVnDqr3WFvoLqqmkVrKZQGPzR3q 211bsOgnvGZ0NmPpZK8oOzmBsqtztQ9wVJJLBmpqaVZSL9jzcYeAP8V3L7qgrm1QthPh 62redn2HXybc6fiUcM6IWpfsMmnAXNwD17WsNso6dn1QUeJRawb8SMuDS/54SkCgc47D mEfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZPAIFfeN/dKXaMxGL0E28WKC8ajWRLYrEZ3+YxPDbvE=; b=VLIAwMsiIlcUKLX07wR7g5FeOwfcmnn7smWuiX+iNQZRa4nPngPAREfXT0pwYRSePA BsZPTS/QZIaYHLSk2cHdAMq+mM23yLoIoMu0CWFioTqB+JE9IBPuge2X7tke0BYothoV 6hAPqFndYO5yBquqOLqIcsktdHnwWqK7Ah/D26H/G/zCXj6bsv34CQKBeEGICO2RB+tO zppbGRFjWLKAzz4lbNaJgT3lEBd0bG7pWYzVgdbC18uXg2xfNIiiCdEGuU+YlSXqx1C/ xaCyKCGLao0WECKAen1+7rsILTMYC1PZcdq/T8e9tZdl+hywdmUmX3QyDIApzGmGpmhv ZvEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dtCtxOH0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020aa78641000000b0057462551be5si15296743pfo.237.2023.01.18.07.25.26; Wed, 18 Jan 2023 07:25:32 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=dtCtxOH0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbjARPLB (ORCPT + 45 others); Wed, 18 Jan 2023 10:11:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbjARPKB (ORCPT ); Wed, 18 Jan 2023 10:10:01 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58BC630B24; Wed, 18 Jan 2023 07:09:57 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id i1so11361912pfk.3; Wed, 18 Jan 2023 07:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZPAIFfeN/dKXaMxGL0E28WKC8ajWRLYrEZ3+YxPDbvE=; b=dtCtxOH0Vyv35KHa3JOBZNfrWAavDhforlr/tlOUaJS4eNRkCkZ4b4fzUXmjbl3a3q c7OjB0emO8l3WJx68m6vMx5IGJMfjIynFs/tJ7RpnZMYQx2QsGY7YdDWEklR9HsmZgfB 4UrZOkC62gFhU+HhqyvkQQdZmkNeg3l6MmZa98at2vBGNHkxAG1UzVCT+U3n7jJGy+Wp P+q7mOQesr5JxW1aF5NWo9qmh3EfhhZEk0HKcdv5R1uapLuMj2pcIyrgnlcMTICGMUO/ nrlYwXcV050wJksXAFhQWL6Y2i5a+NiKJYgoUsl5Ruzgx2LEKNB8YHx6cZbBKM7ZDH2J b5WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZPAIFfeN/dKXaMxGL0E28WKC8ajWRLYrEZ3+YxPDbvE=; b=yW9lM3A+NhxKYlcbvnhrAG4MTBKq1zt6RG97IwnV93KdeUuoD3wLxP9jQ1jQGqOzEF tCFCcLn/2rO8gwYlcZPDywBGNfHyBugwI6qnKe3kxg7/yXAZBcnVNUgHkKo8CjWrpk6J qHAI8UpLkRhuIagOskR/ZNo0ZthiKdI+2xiziDw8u7TlB79dudABecU21K0SPSRaFX3H 2e1lpGVPgIczWx0HWm+XlgncpKYA/YsTaQJvl+Jjvm6T8EsjlkclJhj2o4qL5hO7hBYe 2VNKYAyLc4VGu/MNQfY99Z8YIxe/zCOrcUF19muZBGdMFfqNzjSGu2MlMKNV3kxQrfTi Vr5Q== X-Gm-Message-State: AFqh2koHKmcm15zcJE3bJOBhWy3eVvXany4xLF8FIh4taFjKTbGC9V4J pg6/5QnA1I8Qtexqi/2YuzSry8axSO6HZeEUT6HlMeiV X-Received: by 2002:a63:6482:0:b0:4cf:73ab:c13b with SMTP id y124-20020a636482000000b004cf73abc13bmr529068pgb.445.1674054596860; Wed, 18 Jan 2023 07:09:56 -0800 (PST) MIME-Version: 1.0 References: <20230103164359.24347-1-ysionneau@kalray.eu> <20230103164359.24347-2-ysionneau@kalray.eu> In-Reply-To: <20230103164359.24347-2-ysionneau@kalray.eu> From: Jeff Xie Date: Wed, 18 Jan 2023 23:09:45 +0800 Message-ID: Subject: Re: [RFC PATCH 01/25] Documentation: kvx: Add basic documentation To: Yann Sionneau Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Clement Leger , Guillaume Thouvenin Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Jan 4, 2023 at 1:04 AM Yann Sionneau wrote: > > Add some documentation for kvx arch and its Linux port. > > CC: Jonathan Corbet > CC: linux-doc@vger.kernel.org > CC: linux-kernel@vger.kernel.org > Co-developed-by: Clement Leger > Signed-off-by: Clement Leger > Co-developed-by: Guillaume Thouvenin > Signed-off-by: Guillaume Thouvenin > Signed-off-by: Yann Sionneau > --- > Documentation/kvx/kvx-exceptions.txt | 246 ++++++++++++++++++++++++ > Documentation/kvx/kvx-iommu.txt | 183 ++++++++++++++++++ > Documentation/kvx/kvx-mmu.txt | 272 +++++++++++++++++++++++++++ > Documentation/kvx/kvx-smp.txt | 36 ++++ > Documentation/kvx/kvx.txt | 268 ++++++++++++++++++++++++++ > 5 files changed, 1005 insertions(+) > create mode 100644 Documentation/kvx/kvx-exceptions.txt > create mode 100644 Documentation/kvx/kvx-iommu.txt > create mode 100644 Documentation/kvx/kvx-mmu.txt > create mode 100644 Documentation/kvx/kvx-smp.txt > create mode 100644 Documentation/kvx/kvx.txt [...] > +Virtual and physical memory > +=========================== > + > +The mapping used and the memory management is described in > +Documentation/kvx/kvx-mmu.txt. > +Our Kernel is compiled using virtual addresses that starts at > +0xffffff0000000000. But when it is started the kernel uses physical addresses. > +Before calling the first function arch_low_level_start() we configure 2 entries > +of the LTLB. > + > +The first entry will map the first 1G of virtual address space to the first > +1G of DDR: > + - TLB[0]: 0xffffff0000000000 -> 0x100000000 (size 512Mo) Maybe should change it to: - TLB[0]: 0xffffff8000000000 -> 0x100000000 (size 512Mo) As the PAGE_OFFSET = 0xffffff8000000000 [...] -- Thanks, JeffXie