Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1386407pxf; Fri, 9 Apr 2021 07:14:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVK2dcyVBtdvaWmmbvnDf24/rpnSMAtkWQl2FNIYph5gZSsQDwerQO0CyeYTSsd6WcYB8q X-Received: by 2002:a05:6402:1bdc:: with SMTP id ch28mr17527374edb.202.1617977651134; Fri, 09 Apr 2021 07:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617977651; cv=none; d=google.com; s=arc-20160816; b=MEh1l5amrGZOZmnjTi1Q/t5gMdAbHIw3/zr/7TIyBPxcpSZ6uJ9vOvaGb7rkkNhTnc HJFKc4IGt3nEB1Idl1vVc5Ls1dFBWT9jEsXBS2EAEitowYWE+VMz7SRkUnCER1lNjneK lnC3qDiO9e1hMfdQJVY4H1asx0+MMWTJZB4Njdh9rPsWCI2PM6oAqkAjzq6qKfellvRH bOwKNEODEWSS38cmSxejz66YZOMeYENQ04/329L8rSkEjsdVMVaG3mQqp2aXtTkbrPpl flhIMBOdzqmyLr1yg3uLs5+refHghBMJeDYBzMq7AnCvpPYrLm5p7ayBXh9JAERm22sc H9mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fN8GTHnYb6PRqQ8ffJiwICPF/MXTfgce0XDLBvAfLrY=; b=EFltW6E/l10jxaEtg2ml6SLHR2WoAzvXiG84O7W9QUJMpDw8tin1lmqwZxJWT+ZFYs JGcicS89T09GaTPAQGjjFsyk8WzghYEAF0CIPn3BlSDEdt/BuVgx329vzi1doJUJ4OsK ORlvwrx9rXr4hb3+R0nC/rMQj6X3Gby/WGzHDUZtmtxWqOJCOMWPYVFeRXrVtsM0J+ov P76Wq04GdeEltlm2bIWWCYVYrZaWIBYGNjY6FSuY+HVdoRiIRp+pPqj8hmar+sgjVHJ9 IYKz8QMbW+CR1JQYuoSM3qRI9AWEShWNpc0wcFRFEUn2roF3/IMLS+ocTAwMiLxPUdXG WgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qTMmWpaG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si2104235ejg.321.2021.04.09.07.13.47; Fri, 09 Apr 2021 07:14:11 -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=@ibm.com header.s=pp1 header.b=qTMmWpaG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233729AbhDIOK5 (ORCPT + 99 others); Fri, 9 Apr 2021 10:10:57 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49666 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbhDIOK5 (ORCPT ); Fri, 9 Apr 2021 10:10:57 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 139E3fpi034753; Fri, 9 Apr 2021 10:10:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=fN8GTHnYb6PRqQ8ffJiwICPF/MXTfgce0XDLBvAfLrY=; b=qTMmWpaGAV6p4XkfMNZbXLagL7zbtA4E/nApBkLo/R+FqXlOOUy306U0qnq3HpWHi3mY BF+yZVUbrarrXikNDZjDZYzut+1PE/cye7+x1Wv4acODPwde5pFfl0H2kGUQYntAEgnw zrIMC81Janjk9LdUU+u/t5n23mSLSXTM5/FSR17+uuH/KjFWCNnxPalY7aYfvapUFQaL DLL6sKD4/S8thET48PN+gY3421jY1SF60A2dzhMojx92il550BNcCwL32vzjZWK38sUj x2Qrxqf1ImMIn3RT2fVpeFlyyU7IcSarVkYpQcorkPbZCPOvsWLCf+sAuI4ECRfEePNi nA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 37tr2ngtkh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Apr 2021 10:10:35 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 139E3npm035697; Fri, 9 Apr 2021 10:10:35 -0400 Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 37tr2ngtj7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Apr 2021 10:10:34 -0400 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 139E36Fk005937; Fri, 9 Apr 2021 14:10:32 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma01fra.de.ibm.com with ESMTP id 37rvmq9bkk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Apr 2021 14:10:32 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 139EA9Gx27525440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Apr 2021 14:10:09 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41B5C11C052; Fri, 9 Apr 2021 14:10:30 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 00BBE11C05E; Fri, 9 Apr 2021 14:10:29 +0000 (GMT) Received: from linux.ibm.com (unknown [9.145.82.136]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 9 Apr 2021 14:10:28 +0000 (GMT) Date: Fri, 9 Apr 2021 17:10:26 +0300 From: Mike Rapoport To: David Hildenbrand Cc: Alex Ghiti , 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 v7] RISC-V: enable XIP Message-ID: References: <20210409065115.11054-1-alex@ghiti.fr> <3500f3cb-b660-5bbc-ae8d-0c9770e4a573@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: QDSG-5_Koocokt--_7BVPuAJFHwl6ulJ X-Proofpoint-ORIG-GUID: sjncEtCvmTJ6p6qYWrqpBBcwCjEXFVaB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-09_06:2021-04-09,2021-04-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=729 spamscore=0 clxscore=1015 phishscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104090105 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 09, 2021 at 02:07:24PM +0200, David Hildenbrand wrote: > On 09.04.21 13:39, Alex Ghiti wrote: > > Hi David, > > I assume you still somehow create the direct mapping for the kernel, right? > So it's really some memory region with a direct mapping but without a memmap > (and right now, without a resource), correct? XIP kernel text is not a region in memory to begin with ;-) It resides in a flash and it is executed directly from there without being relocated to RAM. That's why it does not need neither direct mapping, nor struct pages. -- Sincerely yours, Mike.