Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2814839pxj; Mon, 10 May 2021 11:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYuSbMKhELbZelGuPs2TBKQjRw6q9uAzyshGWNVVkizIfCsSgiUEXxLnsuV5YxIdg+LUIL X-Received: by 2002:a17:906:8390:: with SMTP id p16mr26141410ejx.430.1620670718595; Mon, 10 May 2021 11:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620670718; cv=none; d=google.com; s=arc-20160816; b=kIxRLuV78hch2oaEgqnWHkdde3f88ew10iunB4RH//aiUkR9pKqMQ7pyF+2I+/v7AY 9UR95xEMaNF+JuzgQAZc5gXnFjAmbCDejwgo2VvXrYgpuG8Y1nNUYXpr9sdWc5q1HbxP x9Sxii8Xwqv851O6TxXypomVTFhD3XbpImkD6cxOkQgZGggKNvhVQNQTZMe3Nk73ECab KBpVevu8KlBtn3i5fvaR4nF8NP1+usYylURd1VyLBw7dkYM9jfv/6XjVyiNeth8pCT1I p0I6jHet2xB/BO7ZICodVXWLtgkG0jYCyVXrYguTuI4uISCDaHMRuhrewfmTMQ6qhtCI RMqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=U5oB8mfFZLEuy5Yg/E0zgF4iSW40BPLFycfVFKKLR18=; b=SPX895x/H7ONiTjEVDbJGxVI/PsKKJBHVAJOq+LdfSn96OPiF8FXRJWrQTeVVBXuwn hAuy7xKNhE7jvdaRJjPrf5blyZPeyBZHfvKCK2b3Li6nAm43iHxkPYX2f1L5JG0VPHse 4aGGdvyAx0MB9nwwZRaf99I7NewJ5P4TwnGggCZazsHkPZuc5nltwD42hi0mOP0DjMep y5DEhpryrzgqqXah4egxcbtv7RNR9vC8r03qIMWf8xpaEi6+A9ByXHx/mhlAY/xwdbjC 04NFaS1+K+CHdtr/+veZewARsCb+amUSt2w5tAzR59pvdu+0vgZzVguqwbk4UBPK4MQ2 vWYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=bOJV5SmQ; 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 w17si12313463ejb.702.2021.05.10.11.18.14; Mon, 10 May 2021 11:18:38 -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=@xen.org header.s=20200302mail header.b=bOJV5SmQ; 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 S232386AbhEJSQ3 (ORCPT + 99 others); Mon, 10 May 2021 14:16:29 -0400 Received: from mail.xenproject.org ([104.130.215.37]:33022 "EHLO mail.xenproject.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232282AbhEJSQ1 (ORCPT ); Mon, 10 May 2021 14:16:27 -0400 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: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=U5oB8mfFZLEuy5Yg/E0zgF4iSW40BPLFycfVFKKLR18=; b=bOJV5SmQ0O2K2VSbIDK/2BxZ2Q hA+OjDCuSuM4X73YxfSLnzK4PkvUYT13yWt3F9Kp4L/luL4z544C+SikxjoGEzsAhlfyw5WbInzbj BoLURVvENjwaKuMRzgEPeOb3k9kixOubpH6Ut322sIfARM84GOZ8pWvwuCQcPyNHUdZw=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lgAR5-000343-IE; Mon, 10 May 2021 18:15:19 +0000 Received: from [54.239.6.185] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lgAR5-00056p-BN; Mon, 10 May 2021 18:15:19 +0000 Subject: Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL) To: Christoph Hellwig Cc: f.fainelli@gmail.com, Stefano Stabellini , "xen-devel@lists.xenproject.org" , linux-kernel@vger.kernel.org, osstest service owner , Konrad Rzeszutek Wilk , Boris Ostrovsky , iommu@lists.linux-foundation.org References: <4ea1e89f-a7a0-7664-470c-b3cf773a1031@xen.org> <20210510084057.GA933@lst.de> From: Julien Grall Message-ID: <8b851596-acf7-9d3b-b08a-848cae5adada@xen.org> Date: Mon, 10 May 2021 19:15:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210510084057.GA933@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On 10/05/2021 09:40, Christoph Hellwig wrote: > On Sat, May 08, 2021 at 12:32:37AM +0100, Julien Grall wrote: >> The pointer dereferenced seems to suggest that the swiotlb hasn't been >> allocated. From what I can tell, this may be because swiotlb_force is set >> to SWIOTLB_NO_FORCE, we will still enable the swiotlb when running on top >> of Xen. >> >> I am not entirely sure what would be the correct fix. Any opinions? > > Can you try something like the patch below (not even compile tested, but > the intent should be obvious? > > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 16a2b2b1c54d..7671bc153fb1 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -44,6 +44,8 @@ > #include > #include > > +#include > + > /* > * We need to be able to catch inadvertent references to memstart_addr > * that occur (potentially in generic code) before arm64_memblock_init() > @@ -482,7 +484,7 @@ void __init mem_init(void) > if (swiotlb_force == SWIOTLB_FORCE || > max_pfn > PFN_DOWN(arm64_dma_phys_limit)) > swiotlb_init(1); > - else > + else if (!IS_ENABLED(CONFIG_XEN) || !xen_swiotlb_detect()) > swiotlb_force = SWIOTLB_NO_FORCE; > > set_max_mapnr(max_pfn - PHYS_PFN_OFFSET); I have applied the patch on top of 5.13-rc1 and can confirm I am able to boot dom0. Are you going to submit the patch? Thank you for your help! Best regards, -- Julien Grall