From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2532DC433B4 for ; Wed, 28 Apr 2021 03:08:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7BB47613F7 for ; Wed, 28 Apr 2021 03:08:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BB47613F7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1370D6B0036; Tue, 27 Apr 2021 23:08:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E6C36B006E; Tue, 27 Apr 2021 23:08:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA2666B0070; Tue, 27 Apr 2021 23:08:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0076.hostedemail.com [216.40.44.76]) by kanga.kvack.org (Postfix) with ESMTP id D01006B0036 for ; Tue, 27 Apr 2021 23:08:27 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 94ED24DDF for ; Wed, 28 Apr 2021 03:08:27 +0000 (UTC) X-FDA: 78080292654.10.2E85402 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) by imf27.hostedemail.com (Postfix) with ESMTP id 0A3B680192EA for ; Wed, 28 Apr 2021 03:08:04 +0000 (UTC) Received: by mail-ot1-f49.google.com with SMTP id 92-20020a9d02e50000b029028fcc3d2c9eso34709849otl.0 for ; Tue, 27 Apr 2021 20:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xmdTijoDLORkIw+0S7iEnTgDeNz45rM1GzMm3pB0r3Q=; b=E60PKqhPnsx1RoPd49Ttuy5V/jjnnjy4s9nvsECw8d9ngkX5kWx0bNYKmWs6Fvdg+9 dEQdLAg92vqDJvk74alawcgoe/uOPVPkB424s3heEtWZ+1whQi+3BIoUlVP6gYV9RBbR MZzJUct8HsbrHz3f8ZwhocvVgBUI3XDAPa0DAwWpOJGJkdA4UQdP774SGpiJVhtVtgxz MRUg9ZO5NCXqQW7r7c8U8+gELYFsS3tm2hAPto5ScBYU+3E6UYxKeHRZkJeU7mGu7mtj m9RUcnXpXLIvdMEf1ZHpwIekmZnkxhvnOQfddMT5+4kbq9fetdOFoipz6Lua6YTFuQx8 QuKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=xmdTijoDLORkIw+0S7iEnTgDeNz45rM1GzMm3pB0r3Q=; b=Z9UJWCY2fn728nJiCaqB3mcHfRvDQgKpB08pN8g5zlbqXEWmLM7JhIXJdxxEk1GUSB 5WHhGt+fQepfXFrIXWq+siLAlUkQ50bPpwQEFR99+8rb4m1p1EIg4irmObNda3Qsrbpg NSzbB9adjMcqnQ2l2hdMaGJMYRx+XinOCVwqr8SWArIHhdChJQUxjAC5SPsQdnpuvTZL gpIleZGOkWv5ANtlh2cI2kbB7EWVRBKc3RCCJ9Ww0sPIMorHaJgY9NB5Gbqg5b9wBTpY QXYxZ5QfJoJlThjDmegbK0+19tAgu74++tDXfq+bxCQ9N+8i1sn8JPYEIitpRyJct0Q9 SXFg== X-Gm-Message-State: AOAM532Yy3/aKsAlnGiGAxaM28C2Ehtk6U1eJsb0dXyc6TTH7qCqEaVx CInODleH7xcM7fQbpPUw7Y8= X-Google-Smtp-Source: ABdhPJzdcBqIFjDHQrLChMKxRJ/luB0o9IU9eSINrCUpaZi5mgzUz9WKvQPRptFeTxvyKw9TPhTvpQ== X-Received: by 2002:a9d:2de3:: with SMTP id g90mr12058195otb.274.1619579306483; Tue, 27 Apr 2021 20:08:26 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z2sm434333oto.24.2021.04.27.20.08.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Apr 2021 20:08:25 -0700 (PDT) Date: Tue, 27 Apr 2021 20:08:24 -0700 From: Guenter Roeck To: Alexandre Ghiti Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Vitaly Wool Subject: Re: [PATCH v8] RISC-V: enable XIP Message-ID: <20210428030824.GA196954@roeck-us.net> References: <20210413063514.23105-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210413063514.23105-1-alex@ghiti.fr> User-Agent: Mutt/1.9.4 (2018-02-28) X-Stat-Signature: 5jnhfdc1jsht1zcmm994hq1y47w8usyo X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 0A3B680192EA Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf27; identity=mailfrom; envelope-from=""; helo=mail-ot1-f49.google.com; client-ip=209.85.210.49 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619579284-68569 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Apr 13, 2021 at 02:35:14AM -0400, Alexandre Ghiti wrote: > From: Vitaly Wool > > Introduce XIP (eXecute In Place) support for RISC-V platforms. > It allows code to be executed directly from non-volatile storage > directly addressable by the CPU, such as QSPI NOR flash which can > be found on many RISC-V platforms. This makes way for significant > optimization of RAM footprint. The XIP kernel is not compressed > since it has to run directly from flash, so it will occupy more > space on the non-volatile storage. The physical flash address used > to link the kernel object files and for storing it has to be known > at compile time and is represented by a Kconfig option. > > XIP on RISC-V will for the time being only work on MMU-enabled > kernels. > > Signed-off-by: Alexandre Ghiti [ Rebase on top of "Move > kernel mapping outside the linear mapping" ] > Signed-off-by: Vitaly Wool > Reported-by: Naresh Kamboju In next-20210426, when building riscv:allnoconfig or riscv:tinyconfig: arch/riscv/kernel/setup.c: In function 'setup_arch': arch/riscv/kernel/setup.c:284:32: error: implicit declaration of function 'XIP_FIXUP' Guenter