Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp5060218pxy; Tue, 27 Apr 2021 20:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7H7l4b7CKsJ1EFt/8lXsaroAAVQh49wL8gESlUY+pSBqv41pfDNT3TksbDGDuo6rwuOfY X-Received: by 2002:a17:902:778f:b029:ec:d04d:4556 with SMTP id o15-20020a170902778fb02900ecd04d4556mr26725558pll.43.1619579372374; Tue, 27 Apr 2021 20:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619579372; cv=none; d=google.com; s=arc-20160816; b=sdKdlh4SDC6qG755nlWVhGb0WG6ZCIJuBeDINOo+irx+4NP8sBbMhxaZ4IHaAYqBFz mYPf/7rWERVxlTpw18+28XoxPeTDTtJqqerHHZhpl6NrXchWHtsKYTbDi1xe2QylGC/O EJZFBJ7pSqocQscUwQlP5Zv4Fuzr357bfRVUgyRQvC/Jr1jTkEiDzfCbIcjrQUy3R7OG FnPSvXvkzK6n1rO+2fEuHRvIW1zT8XotWl4L2YkiiHCXMWKNZbJlSFLtTjg8Z+0KeoDg 8m/taK7PqrNWzHLlZHB3L2VFakcLDgnBr8XtK2GDCZVJQ3xAq3pEFF0Py9MiRDJhqW1+ wydw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=xmdTijoDLORkIw+0S7iEnTgDeNz45rM1GzMm3pB0r3Q=; b=uucIt2U2vdX6epqSq32x34hQ8/AONBMxDLA1B4goc6GsYrLHnTxp9dlp6NNp3SjbhR cJipBYJ7BnJTITS5k5Yeg3+HDk5p8Cj6ntkNGvRqErHfPBk+nc+dTkHQ9oXCNMo8Uo3P loDltZEDhLAaUi0CESsXz/xR3DjLwW2ZokGilfXuDq+mAX8y+auCrIbEgiR07MsZ9n9V 2jIZzSVraGnruZ/5bqdYH8bmtp5SK8PFFeFnDALP9E0YeWcS1vSMeZQiUJ+S2SsGzwjr rVrZ9G1+02OTBoXw/AdQdDdndJNZnAWknBqdE2Le963q2FnIKK2nLp/eRdfXa9KT85Fa Wo7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E60PKqhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si971384pgi.580.2021.04.27.20.09.18; Tue, 27 Apr 2021 20:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E60PKqhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231727AbhD1DJO (ORCPT + 99 others); Tue, 27 Apr 2021 23:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbhD1DJM (ORCPT ); Tue, 27 Apr 2021 23:09:12 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 118FBC061574; Tue, 27 Apr 2021 20:08:27 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id d3-20020a9d29030000b029027e8019067fso55321850otb.13; Tue, 27 Apr 2021 20:08:27 -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=AcYKAz1naKouywA9ns3cs3gd74zzEUvqtThcJmUSW9pQKluEbBxgcbnUfbYwhbqtdK nB7BxVL5i6ngqj0oM5ldqPNr5/skbLMJTSE7jqs3yVT1cKaBE61xLu678xckgLoBe5gF 8RIWLOA0o1XvaBxREFClFfnVua4Det9gPSYG4XnqqkXPeJVz3+hOiwEC2fRayimJY6Hm Gl6iBQA3TEIf7p5GYE3BWwI5XeOtIsNOVs/GLBkfbB3Dq8t6MyDlAG9Aw4jv45ujyMAB t/QI+NyvIamYL3YjHdJU0v6gO8SIrQTNJDFYGv5LA4gok8z7ZTpgQcsx1YZzbUf84HhA TOtg== X-Gm-Message-State: AOAM532OzdWghaik89ZwTzHLcmjIYm5i1itwG1lE32zG6AnRryg7JtLh RorDhe8QSfU2eJAi0u2ds5M= 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) Sender: Guenter Roeck 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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