Received: by 2002:a0c:90cc:0:0:0:0:0 with SMTP id p70csp1644049qvp; Mon, 27 Sep 2021 06:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeA+nFdrevLSe9bkv/ugy2JeYoT18S1vq/w+gL0aYDv4ffuGCFlWF0A+0POjn3vViNCieh X-Received: by 2002:a05:600c:206:: with SMTP id 6mr16263248wmi.114.1632750644503; Mon, 27 Sep 2021 06:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632750644; cv=none; d=google.com; s=arc-20160816; b=u9duGM5P88Vrkf5Kn/vVYM8I468xd68inNXt6Rvwtd8wRIUgMhGyIQQzZLpjc/wEoH 1qshHg/s/rZEPLSrJYFOARgdk71b/RS9u7p4AQba9fzRy1XBMcSLkw9utJDob8wm1vas Dt/1SzgeYIlXxQ5gTnQTI0ep9gxHttQoHQKLkwHDhRcIFAd0AaF1rsvCzXq0zEdXH1dl segjqjNndpNdirWPbuxGolwiTeBiDqaUmezDtElsNR67ql4OtYGmLEIzCO5pUy6nGwHA DgftfobbYU6MKtVgX+LrC07cImAz7JN7Z329DTQqy1KchF7exFC4Z1y5ltEMDoSwXJcM o8/A== 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 :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=0Fp7e0Pupmf9rRYDGH5MDdhZvQYuVVV9DiU/mxoz2zk=; b=RQXBgztU3ShJkMB3gQ4Gm56YnkP6tE5rzWTHtx/vKd3OJ2LJ5ZBs0YhOaHmFhACrCM Hote0OYVJKm0eCgqV5EMjPdqZjcNGBdNzExCuqijAGAaKAD3SFZIgCCg2hHLF9BgQRbF YCXlqkmmXqCGEzhSTa6i59s0LoCdBdrMYQiLVNeg26ewbz7MCciWcLQAxGVj50PB141A aWsij4RVRefeJlCTKgV8bVG2RYbSh8Vdkp9125cKJ7DKY/7Kje7fL6gWnQBFPF+b6OzD treLb17K310aVwQJEBwQ7BWc8cTg1QqNQZ1oDHGgrCKOkcRBpXJVG0MhlDjpQBvM5lJd b62A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bEe0JpcG; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r16si24514470wmq.83.2021.09.27.06.50.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Sep 2021 06:50:44 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bEe0JpcG; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:52210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUr1n-0006va-K3 for alex.bennee@linaro.org; Mon, 27 Sep 2021 09:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUqWX-0005de-AS for qemu-arm@nongnu.org; Mon, 27 Sep 2021 09:18:25 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUqWU-0002jI-NU for qemu-arm@nongnu.org; Mon, 27 Sep 2021 09:18:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632748701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0Fp7e0Pupmf9rRYDGH5MDdhZvQYuVVV9DiU/mxoz2zk=; b=bEe0JpcGd0kzHHcbr6F9vb+nqNU/RSH6RUEfg2xfwKxIFX8w+1GbGAjg7YQSKxihmxLDDO XtzzeQwmACw/pyeppOV1T2h5MUj+/KTeV/JvPBRIj3uxeS+4f/EHZByw7Rq0XF7LonPHcX AT+kXkIZjYt2SWLq21dXwCZiaOyPuSk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-205-f_iATHPfOZmgKWUQqG1I0w-1; Mon, 27 Sep 2021 09:18:20 -0400 X-MC-Unique: f_iATHPfOZmgKWUQqG1I0w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76EE019251A4; Mon, 27 Sep 2021 13:18:19 +0000 (UTC) Received: from laptop.redhat.com (unknown [10.39.194.179]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3C2611A7E9; Mon, 27 Sep 2021 13:18:14 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, mst@redhat.com, imammedo@redhat.com, philmd@redhat.com, peter.maydell@linaro.org, shannon.zhaosl@gmail.com, qemu-arm@nongnu.org, qemu-devel@nongnu.org, ardb@kernel.org, drjones@redhat.com Subject: [PATCH v3 3/3] bios-tables-test: Generate reference table for virt/DBG2 Date: Mon, 27 Sep 2021 15:17:32 +0200 Message-Id: <20210927131732.63801-4-eric.auger@redhat.com> In-Reply-To: <20210927131732.63801-1-eric.auger@redhat.com> References: <20210927131732.63801-1-eric.auger@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=eric.auger@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Received-SPF: pass client-ip=216.205.24.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: gshan@redhat.com Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: s+QsvkO6dpJ/ Add the DBG2 table generated with tests/data/acpi/rebuild-expected-aml.sh Signed-off-by: Eric Auger --- Tested by comparing the content with the table generated by EDK2 along with the SBSA-REF machine (code generated by DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c). I reused the Generic Address Structure filled by QEMU in the SPCR, ie. bit_width = 8 and byte access. While EDK2 sets bit_width = 32 and dword access. Also the name exposed by acpica tools is different: 'COM0' in my case where '\_SB.COM0' in SBSA-REF case? Here is the human readable content: [000h 0000 4] Signature : "DBG2" [Debug Port table type 2] [004h 0004 4] Table Length : 00000057 [008h 0008 1] Revision : 03 [009h 0009 1] Checksum : C8 [00Ah 0010 6] Oem ID : "BOCHS " [010h 0016 8] Oem Table ID : "BXPC " [018h 0024 4] Oem Revision : 00000001 [01Ch 0028 4] Asl Compiler ID : "BXPC" [020h 0032 4] Asl Compiler Revision : 00000001 [024h 0036 4] Info Offset : 0000002C [028h 0040 4] Info Count : 00000001 [02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 002B [02Fh 0047 1] Register Count : 01 [030h 0048 2] Namepath Length : 0005 [032h 0050 2] Namepath Offset : 0026 [034h 0052 2] OEM Data Length : 0000 [Optional field not present] [036h 0054 2] OEM Data Offset : 0000 [Optional field not present] [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0003 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 0022 [042h 0066 12] Base Address Register : [Generic Address Structure] [042h 0066 1] Space ID : 00 [SystemMemory] [043h 0067 1] Bit Width : 08 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 01 [Byte Access:8] [046h 0070 8] Address : 0000000009000000 [04Eh 0078 4] Address Size : 00001000 [052h 0082 5] Namepath : "COM0" --- tests/qtest/bios-tables-test-allowed-diff.h | 1 - tests/data/acpi/virt/DBG2 | Bin 0 -> 87 bytes 2 files changed, 1 deletion(-) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index 1910d154c2..dfb8523c8b 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1,2 +1 @@ /* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/virt/DBG2", diff --git a/tests/data/acpi/virt/DBG2 b/tests/data/acpi/virt/DBG2 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..23cd281683752a3ff628d042d2906169319013ac 100644 GIT binary patch literal 87 zcmZ>9ayJTRU|?WA}2A literal 0 HcmV?d00001 -- 2.26.3