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=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 73F92C433ED for ; Fri, 9 Apr 2021 14:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5050660FF1 for ; Fri, 9 Apr 2021 14:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233836AbhDIOK6 (ORCPT ); Fri, 9 Apr 2021 10:10:58 -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.