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=-5.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 C1222C433DF for ; Wed, 14 Oct 2020 17:44:49 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 31D0621D7F for ; Wed, 14 Oct 2020 17:44:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="Cw6L94ok" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31D0621D7F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.6951.18160 (Exim 4.92) (envelope-from ) id 1kSkpF-0004wP-B4; Wed, 14 Oct 2020 17:44:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 6951.18160; Wed, 14 Oct 2020 17:44:33 +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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkpF-0004wI-8A; Wed, 14 Oct 2020 17:44:33 +0000 Received: by outflank-mailman (input) for mailman id 6951; Wed, 14 Oct 2020 17:44:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkpE-0004wD-12 for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 17:44:32 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 545f1002-d4f8-4083-bd26-9fe2f6bb09ab; Wed, 14 Oct 2020 17:44:31 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkp9-0002s4-5w; Wed, 14 Oct 2020 17:44:27 +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 1kSkp8-0001qI-UK; Wed, 14 Oct 2020 17:44:27 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkpE-0004wD-12 for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 17:44:32 +0000 X-Inumbo-ID: 545f1002-d4f8-4083-bd26-9fe2f6bb09ab Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 545f1002-d4f8-4083-bd26-9fe2f6bb09ab; Wed, 14 Oct 2020 17:44:31 +0000 (UTC) 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=9G9V5QVITeXFPoWuo/oZ2eGetGiHUKD9Hl5VI+jZpz4=; b=Cw6L94okPxWAvuaC0L7psMOOAH 6034AkhoeuFe9ZFkpvwv6ryfYrPuFgeyt3vGf/NZO1bujCgK/RpRsOsUhUee8rkdqYoCmtqjO3XWR NAAoCnFs/tAmzsYFe4xfUim2uuxrIQIB+OuyyNJ/I+fHVo9J0Wz+WyuDrsa0N+DSw3qs=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkp9-0002s4-5w; Wed, 14 Oct 2020 17:44:27 +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 1kSkp8-0001qI-UK; Wed, 14 Oct 2020 17:44:27 +0000 Subject: Re: [PATCH 0/4] xen/arm: Unbreak ACPI To: Stefano Stabellini Cc: Masami Hiramatsu , xen-devel@lists.xenproject.org, =?UTF-8?Q?Alex_Benn=c3=a9e?= , ehem+xen@m5p.com, bertrand.marquis@arm.com, andre.przywara@arm.com, Julien Grall , Volodymyr Babchuk References: <20200926205542.9261-1-julien@xen.org> <1a7b5a14-7d21-b067-a80b-27d963f9798a@xen.org> From: Julien Grall Message-ID: Date: Wed, 14 Oct 2020 18:44:24 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Hi, On 12/10/2020 20:02, Stefano Stabellini wrote: > On Sat, 10 Oct 2020, Julien Grall wrote: >> On 28/09/2020 07:47, Masami Hiramatsu wrote: >>> Hello, >> >> Hi Masami, >> >>> This made progress with my Xen boot on DeveloperBox ( >>> https://www.96boards.org/product/developerbox/ ) with ACPI. >>> >> >> I have reviewed the patch attached and I have a couple of remarks about it. >> >> The STAO table was originally created to allow an hypervisor to hide devices >> from a controller domain (such as Dom0). If this table is not present, then it >> means the OS/hypervisor can use any device listed in the ACPI table. >> >> Additionally, the STAO table should never be present in the host ACPI table. >> >> Therefore, I think the code should not try to find the STAO. Instead, it >> should check whether the SPCR table is present. > > Yes, that makes sense, but that brings me to the next question. > > SPCR seems to be required by SBBR, however, Masami wrote that he could > boot on a system without SPCR, which gets me very confused for two > reasons: > > 1) Why there is no SPCR? Isn't it supposed to be mandatory? Is it > because there no UART on Masami's system? I can't comment specically on Masami's system, but I can make two broad comments: 1) Not all the systems have to be compliant with the SBBR. But in theory, only systems passing the SBBR test can be claimed to be complained. This brings to the second point... 2) "Mandatory" is what the specs aim to enforce. In my experience, some of the vendors may bend the rule and still claim they are compliant. Even Linux documentation says that the SPCR is mandatory. But in the reality, the implementation will just ignore it. From my understanding of the code, Linux will only use it to discover the preferred console and enable earlycon. Without it, Linux will require the user to specify console=<...> or earlycon=<...>. The UART will then be discovered via the DSDT. > > 2) If there is no SPCR, how did Masami manage to boot Xen? > I take without any serial output? Just with the framebuffer? After his patch, Xen can boot without the SPCR. You will just see no logs. But I belive, he enabled earlyprintk for his platform. Cheers, -- Julien Grall