Received: by 2002:a19:6b17:0:0:0:0:0 with SMTP id d23csp1129545lfa; Thu, 29 Oct 2020 19:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6ubbNzKPsO8WRG+u44YqBFL3LxS2cCKOITjJv3qDBaRiXTlvNtg+OKlELvdHWpBNjyUFD X-Received: by 2002:a25:b126:: with SMTP id g38mr791225ybj.36.1604026252257; Thu, 29 Oct 2020 19:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604026252; cv=none; d=google.com; s=arc-20160816; b=pv4zZS+SsYOoEkKVJsQ7f0Imn1UE8rYC6G5P+DyW4xsOUNTaVr8GZN3L0GHnywI32O /JJWpqphV2PrtZg70GkvFilsA3V5Bx9MPg3x2t4oHnUV3v8WREE+qOfLUNQj2MUOFwNe KLemxagsAU6fIL5igSWK114vJEwkZoHVeFHrwrW5i+yy25Q6sV9v3S8z4zJgJnSbn2gD UMvrxgHedqOdP9D0dvP9iHG2kCD5yvAgUKXrckr7eShtmvNArNJVvv4fFE5zJfYs+pFL Lo8RUKKGlGprfYMVsVSv6IxH3AAiVaMWs9DLYmkz19lk9aQpRQ3SWkDJ9fkAkGQKwGS7 n2dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:to:subject :from; bh=FmrwINxJclrFtZ2V8qGpiDEFfJ1RfPUsjnlM8TkBO/g=; b=lodb4lq+4PyVgeQgodJPMxJ+xh1y2MdyHiVABuL8/wYv+p3a7wDh31B4bJPc40imlq ESLZ1AhRQjKuxYK27hXbL1F3Ue31ddn35XS3FQjoYZIWosdSaj7KMCgzdTrb0zhpDmIt XL8gVppYcQYlurx1R+cIolvO6+j3hQY4wgBSf1DKzwOTWfUYShq9qIQsW8e4NKKMY7hK MwUgW4GFjhwa9+A1J/yRuKGLoBiCAuNtyIRa6DwlO9Zt1Tt5VNSa4M5K3QVJP4Ptek36 I9Cl69tPdE2DKqaNLlEUWq1z/yx0iNi+bWyIfHOoCNVN9rWD0sR2Lp1Qfm3KKcEiTOmT YuiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c12si5046582ybs.138.2020.10.29.19.50.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Oct 2020 19:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:54238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYKV9-0005Is-Ir for alex.bennee@linaro.org; Thu, 29 Oct 2020 22:50:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYKUh-0005If-IL; Thu, 29 Oct 2020 22:50:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYKUf-0003U7-J4; Thu, 29 Oct 2020 22:50:23 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CMmxw0yrsz15L2G; Fri, 30 Oct 2020 10:50:12 +0800 (CST) Received: from [10.174.186.67] (10.174.186.67) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 30 Oct 2020 10:50:01 +0800 From: Ying Fang Subject: Question on UEFI ACPI tables setup and probing on arm64 To: QEMU Developers Message-ID: Date: Fri, 30 Oct 2020 10:50:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.186.67] X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.190; envelope-from=fangying1@huawei.com; helo=szxga04-in.huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 20:41:14 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "imammedo@redhat.com" , qemu-arm , philmd@redhat.com, "wangzhigang17@huawei.com" , Peter Maydell Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: 67gPyGfaVuc7 Hi, I have a question on UEFI/ACPI tables setup and probing on arm64 platform. Currently on arm64 platform guest can be booted with both fdt and ACPI supported. If ACPI is enabled, [1] says the only defined method for passing ACPI tables to the kernel is via the UEFI system configuration table. So AFAIK, ACPI Should be dependent on UEFI. What's more [2] says UEFI kernel support on the ARM architectures is only available through a *stub*. The stub populates the FDT /chosen node with some UEFI parameters describing the UEFI location info. So i dump /sys/firmware/fdt from the guest, it does have something like: /dts-v1/; / { #size-cells = <0x02>; #address-cells = <0x02>; chosen { linux,uefi-mmap-desc-ver = <0x01>; linux,uefi-mmap-desc-size = <0x30>; linux,uefi-mmap-size = <0x810>; linux,uefi-mmap-start = <0x04 0x3c0ce018>; linux,uefi-system-table = <0x04 0x3f8b0018>; bootargs = "BOOT_IMAGE=/vmlinuz-4.19.90-2003.4.0.0036.oe1.aarch64 root=/dev/mapper/openeuler-root ro rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap video=VGA-1:640x480-32@60me smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 crashkernel=1024M,high video=efifb:off video=VGA-1:640x480-32@60me"; linux,initrd-end = <0x04 0x3a85a5da>; linux,initrd-start = <0x04 0x392f2000>; }; }; But the question is that I did not see any code adding the uefi in fdt chosen node in *arm_load_dtb* or anywhere else. Qemu only maps the OVMF binary file into a pflash device. So I'm really confused on how UEFI information is provided to guest by qemu. Does anybody know of the details about it ? [1] https://www.kernel.org/doc/html/latest/arm64/arm-acpi.html [2] https://www.kernel.org/doc/Documentation/arm/uefi.rst Thanks. Ying