Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp5075642pxy; Tue, 27 Apr 2021 20:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTxy+3EpYNJSQwtrDbkAxHe5HMBAgLwG6cA4xF3CA9akhaE8e+94nmJ5bAa5FMa1OZRSNd X-Received: by 2002:a05:6402:204b:: with SMTP id bc11mr8376845edb.40.1619581144643; Tue, 27 Apr 2021 20:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619581144; cv=none; d=google.com; s=arc-20160816; b=K366iSsmoYl1Z3cgxHhQpr9A24kp1joRC66BX/g7n/8Z0HwxTQLFWP81WiL7aqMPTN 55iXPloJn7jMPiZIbnEE+H3dPHfDgTbUyBl7BMAWoKNZr+5VKDaQ55nHWv97nohZQNSv aiZeHNBX9IDUFDST0hPZ1M8Mfcii4FnAYphMZmVCk1lv0npw2lPXkiEpXW7jpiMfyWrD U1TKP/9JumwgjxTkhyHFLO4Z5rFtyXSzSzCoo/i3Swt+PpYfrdghiestmRkRJqrKzDyA gfLZlc8ZsUUs/4X12zjBmJExO+teBQwlUpZezQIdM+8TmxrPnXnaiHUNyxtlmOGS3hZ5 jQKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=pkolduBNLLIr5vIIXbQQOt2wpdaq8aKiRXOt5tHWv0k=; b=RDIVfu6JStwMzebfgO5H3SaYXZALfPihajb+Z8NQO69hLXZ1fOCaMiWF6e2qCcBafw cJk4DiZhWHc/AwWQCiJ2FusZiBOUlG7/oMu43PlNdJEQ3xhAzOhJ9O1gFsWB3pxdTtGb YY0iFP2P+CN9u2j3s6oIcnshG+/gKZly9OX76HyW/JEYPjo9yYcZXtvsH7aCzOTEJe36 ePorIEjP1drdckezhtYOdq9A7QYNqG2ZtOLYuOjBuURExEmDM0pHRL0CZMjLgFe0dfJe TC7ZnA3QjNN7pD8JLFXK+rhl7DO9Al3WSuPSLL3Jor4sf3Pj4JNvnGbivd1GIXfPAtgj 4Jyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=AQ8FCd36; 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 k15si1514599ejj.682.2021.04.27.20.38.41; Tue, 27 Apr 2021 20:39:04 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=AQ8FCd36; 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 S235609AbhD1DgN (ORCPT + 99 others); Tue, 27 Apr 2021 23:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235690AbhD1DgK (ORCPT ); Tue, 27 Apr 2021 23:36:10 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD24C06175F for ; Tue, 27 Apr 2021 20:35:22 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id t21so940171plo.2 for ; Tue, 27 Apr 2021 20:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=pkolduBNLLIr5vIIXbQQOt2wpdaq8aKiRXOt5tHWv0k=; b=AQ8FCd36kKveqrMIgf7gDWhpb3Z2GF9RhV+CpYRyHF3aTCzjysEv4uLA3Nc/ctIMr1 FPYLA4bAcRcw0su3LPEK77MXyoAK1/Y0Kawr+7hLLF5oY+4FkGXkSEvuPhWoN40Lw7pj MF0NKPcfpE+yM+YAm1UFH3Rh4SP/4nCVjmtJqeruOH2yFL67Pxcxu1nnAPBX227IDRen tfG9YMFGLaLIFrKrkCHETFFYXO3IS/QADhw2OmI1EnYSlDeeji820daFlYUT6Kni+/dw 2I/AOw8spRHZRiip3Gq186c8GufOHoaHt45x0NqHXlU3DHaIFkR4frwxh405j4erOK2O ftEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=pkolduBNLLIr5vIIXbQQOt2wpdaq8aKiRXOt5tHWv0k=; b=LkBAGrWJ4hGef3if24OiedQsKz53V+LU2BkdmuUsn8zcV8Yj5zfD86oSz7OQdV3k3f lspqxA+Qyf2zCkpBAWe2a5kEA4ITFyMyUuXMDszzxH34sad0Zz4cpw8CVkjuWDarrNnj Yhib6ngkolZumNUS17w5O7jHE2woDekwFQ6woVQ6Dkc991aOYPQjbINI+lQYXFE3if5n DS/VSY4nC/qb+KImPfE7qraplvK2v/MTBczhhFrmx/qr0Mfn8p6y5nGSGgk0/Zv6egSi KDLPJhpNnzDvvtvjiUrtXXCV6chHBdiGABTtzTOMr0AdrkbqZRO/eIwK4Pg1VviiiX91 R9fA== X-Gm-Message-State: AOAM5335lBajK+axGWSiZOcAoHfEpZwCvfU4BmjwMquXUIFdmpnNGnyZ tOeFmSvlmTEmflGKPvZgD+/h/w== X-Received: by 2002:a17:902:6b4c:b029:ec:a55f:f4e7 with SMTP id g12-20020a1709026b4cb02900eca55ff4e7mr28397654plt.72.1619580921559; Tue, 27 Apr 2021 20:35:21 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id b4sm3260291pfv.188.2021.04.27.20.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 20:35:21 -0700 (PDT) Date: Tue, 27 Apr 2021 20:35:21 -0700 (PDT) X-Google-Original-Date: Tue, 27 Apr 2021 20:35:19 PDT (-0700) Subject: Re: [PATCH v8] RISC-V: enable XIP In-Reply-To: <20210428030824.GA196954@roeck-us.net> CC: alex@ghiti.fr, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, vitaly.wool@konsulko.com From: Palmer Dabbelt To: linux@roeck-us.net Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Apr 2021 20:08:24 PDT (-0700), linux@roeck-us.net wrote: > 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' Sorry about that. I thought I'd fixed the last build, but I guess I managed to just miss these build failures in a spew of successes. I just sent out a patch to fix it.