Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A07AC4707C for ; Mon, 15 Jan 2024 19:30:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.667557.1038939 (Exim 4.92) (envelope-from ) id 1rPSf7-0005qk-3L; Mon, 15 Jan 2024 19:30:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 667557.1038939; Mon, 15 Jan 2024 19:30:21 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rPSf7-0005qd-0s; Mon, 15 Jan 2024 19:30:21 +0000 Received: by outflank-mailman (input) for mailman id 667557; Mon, 15 Jan 2024 19:30:18 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rPSf4-0005qU-S1 for xen-devel@lists.xenproject.org; Mon, 15 Jan 2024 19:30:18 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rPSf4-0002NJ-E8; Mon, 15 Jan 2024 19:30:18 +0000 Received: from gw1.octic.net ([88.97.20.152] helo=[10.0.1.240]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rPSf4-0001l8-58; Mon, 15 Jan 2024 19:30:18 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=EdCsos4Y20o+AcER+dtgG8EPIIzby5DRvTAwOvQ9aAE=; b=qS+HejuoPnek084gGPVB2wA7+O mABXlb5I2ymmm+0umJsJGF2b99e6PvW+BfV6+my2eJ5y2yegEQogH9/jyN7QBOUIjiiLkpiVBse1F +7KYoL5kH7Iytli4yStMg1W+K+PSeIdzr986+uDpCcLlwgryIi67HFjQM1FjQ9S7S4fg=; Message-ID: Date: Mon, 15 Jan 2024 19:30:16 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] xen/arm64: head: Allow to use early printk while on 1:1 mapping Content-Language: en-GB To: Michal Orzel , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk References: <20240115124859.89218-1-michal.orzel@amd.com> <20240115124859.89218-3-michal.orzel@amd.com> From: Julien Grall In-Reply-To: <20240115124859.89218-3-michal.orzel@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Michal, On 15/01/2024 12:48, Michal Orzel wrote: > Take an example from commit 1ec3fe1f664f ("xen/arm32: head: Improve > logging in head.S") to add support for printing early boot messages > while running on identity mapping: > - define PRINT_SECT() macro to be able to specify a section for storing > a string. PRINT() will use .rodata.str and PRINT_ID() - .rodata.idmap. > This is necessary, because when running on identity mapping, the > strings need to be part of the first page that is mapped, > - move loading a runtime virtual UART address right after enabling MMU > (the corresponding steps repeated in {primary,secondary}_switched are > now consolidated in a single place), > - move early printk 'hex' string into .rodata.idmap and replace 'adr' > instruction in asm_putn with 'adr_l' to extend the addressable range, > - remove RODATA_STR() macro given no use. > > Signed-off-by: Michal Orzel I have tested with my upcoming series to get all pre-MMU code in a single page. Acked-by: Julien Grall Cheers, -- Julien Grall