From patchwork Thu Jun 20 06:00:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 805967 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp140008wrt; Wed, 19 Jun 2024 23:01:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVtZeSxGnhHud4Y39S7r7J8X4/KVfZyYK4W2JpW9GQGoPlYpPZmYx2vPnMjudP1uU+uos3mUblqkveLeRLduIfE X-Google-Smtp-Source: AGHT+IH5yRMLJ6SR0v3uy3nlJiZ9wlEeL8saffGWJGPFJ8qxpDhlJCWS4ycdELT8rt9VxH8eEUQY X-Received: by 2002:a05:620a:4496:b0:795:4cc8:6dba with SMTP id af79cd13be357-79bb3ecdf41mr478624685a.58.1718863283553; Wed, 19 Jun 2024 23:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718863283; cv=none; d=google.com; s=arc-20160816; b=q19SoK/EJcnpwq2Nr1rCjCPqictfTqzkUngm+xXMIe4LIkNkccGrYeXbply16jxpBd VQX72bK9XA3+s/G7sM01DoCFB3Lh6mGpsx3MR34UIBGg0b2Lx9G0YQsfi53vjrZvF+Ad pUn2+626P5hxgONMQnzQh70yccYlIH9bu999xhbkB98+zsTvoC9mnEt5S7jsPCy80W77 CChaF/GDP2B2a4CMOsFUP6bRyBlE7yoNg9T0X0+oWmyjaMR169/YHMvv51jwLrBXqSKN 9pdBoT+ogF/F7p/NyBCF2qbroIOaDH9DxI/onClElI5pi1AnclO6mqC0i4t0BAAvS4m3 5arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from; bh=yW7cNuHG57ahTZ6Z0a7Ck6lBhsGf7sVF2TrfDkE4dCw=; fh=sMw5wUJBWGBtSuNC/py39k2nZzHQbArBDjR2xR28Mfo=; b=WhLrM5TjC8BWGMH1ECCbtZChAWUk+Sir/ru5sV2yIg6pgZ7bzj1AiVmtrJpYTVE4yY 4hMti8lP6Ucs7yiwy3S2nTe/fHl3hRJZ0VbWpm61j5HkyWF5MSWXU7FLhikbw7QdV3AM d85Pi53aTIR9C46TFGixgT+ZGNXWtM05fQzyEgMD+ULxsLTOO5vQbH0ANsCyxp0uwsAT DHH2b8jgzzRg0fIF9iyWPY3tqTuJDqWQSOCMZ1A7vQXGlkWIF+RSqWaLXgSGoxR0ApOo Ka99B5OWuOVoFWMd4iTg2+o9jaRXnDCSb0OtbNPByXSrl8SuxaxBjveyJZVUpQ1ZEFJi iefA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-798aac9dc26si1617559785a.16.2024.06.19.23.01.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2024 23:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKAqc-0004D7-Ml; Thu, 20 Jun 2024 02:00:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKAqW-00043M-H0; Thu, 20 Jun 2024 02:00:32 -0400 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKAqV-0004f2-27; Thu, 20 Jun 2024 02:00:32 -0400 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 9872F2606D1; Thu, 20 Jun 2024 08:00:27 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id wdPHsOq95QPL; Thu, 20 Jun 2024 08:00:25 +0200 (CEST) Received: from applejack.lan (83.11.22.244.ipv4.supernova.orange.pl [83.11.22.244]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 39F7B26074C; Thu, 20 Jun 2024 08:00:25 +0200 (CEST) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: Peter Maydell , Leif Lindholm , Radoslaw Biernacki , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal , qemu-arm@nongnu.org, Marcin Juszkiewicz Subject: [PATCH v2 1/2] tests/avocado: use default amount of cores on sbsa-ref Date: Thu, 20 Jun 2024 08:00:13 +0200 Message-ID: <20240620060014.605563-2-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240620060014.605563-1-marcin.juszkiewicz@linaro.org> References: <20240620060014.605563-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org I was wondering why avocado tests passed with firmware which crashes when anyone else is using it. Turned out that amount of cores matters. Have to find out why still. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py index 6bb82f2a03..136b495096 100644 --- a/tests/avocado/machine_aarch64_sbsaref.py +++ b/tests/avocado/machine_aarch64_sbsaref.py @@ -75,8 +75,6 @@ def fetch_firmware(self): f"if=pflash,file={fs0_path},format=raw", "-drive", f"if=pflash,file={fs1_path},format=raw", - "-smp", - "1", "-machine", "sbsa-ref", ) From patchwork Thu Jun 20 06:00:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 805966 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp140007wrt; Wed, 19 Jun 2024 23:01:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU4aGqnUfYIUbTSiDaJKtNMr8650UkhG2Ke/0Zx4f3JXDA88B1T94aJjcIQJnsqVW8Q4QaAhr/GEelxofhOJWdk X-Google-Smtp-Source: AGHT+IEV5Zs7GjotD0Q1zeG2P1V5/NxT/dD3JQ9cFS8GTGIQG2O6e4TFprphaRE6gSSo+eLF/AcR X-Received: by 2002:a05:6830:450:b0:6f9:90ba:6646 with SMTP id 46e09a7af769-70075596e2dmr4756745a34.26.1718863283347; Wed, 19 Jun 2024 23:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718863283; cv=none; d=google.com; s=arc-20160816; b=cShNIFwWSia8DfExBX//ARFhymm3NYUJeXUhXuEaG6znDXIhyYX/USteH4KL3UNSk/ gasTNt71F8sG7ge+sCtx1Sj4CL3OyN9ptHNteAOwaEVEIBYarMKiI0qh98Lbfmj8Weg3 KuhMiR1DcJHa4A9tz/Rfa8+jAHamffLmvaDrjdQpOlSsDH1yfAPsowmpy9bwJEksUMR+ CpNsgllcQ6wb77lX38GeANfmGxeEbBWjnnlDALk8d/29VJCx6aNi3twU5pHvjGVSllZN sCFTuZlIvW1CkUNjwORu+Q0VZrCOd2d0xW5W7z+v9sFqMElBr/fSh6pkgfvwrgseX1Mt UEBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from; bh=njqU6ZtEZ9GEvXi4mg3rVyQh+AVKVYzFNstKdG9MPrU=; fh=sMw5wUJBWGBtSuNC/py39k2nZzHQbArBDjR2xR28Mfo=; b=ndnbPFhZXQfvFjEExOiVyqa/MTghDFe2GRCNy5PFeJT0owssC7wEwtwq6HGu6tnhR+ W5iBf6NfV16li0bu2x1GbGLsuct5c6s1mh1fgVtl5dzzPkOEBLQ1WDPmG34/QnoFhXzK Mh8iQjr37fWrkq/i0s/dDHzOSBLNtp0vgPcYl2BN0CA9I335myt1PXJmRLDFLo8puiLg pbabVl8Ecx5PL8tH2yRMtEUyWGXbXN0kYE4Cg75WX/rJtTcoceizf/FvAVQ/umzlxTNl kLt1kjz8H0QYoobZwx59CLG4+RTgATmEa0Nf4BnB9t0Acf603bmntXt1jTJ00LYRVg3O iX6Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b889cbsi153109696d6.568.2024.06.19.23.01.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2024 23:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKAqb-0004B3-I8; Thu, 20 Jun 2024 02:00:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKAqY-00046a-GK; Thu, 20 Jun 2024 02:00:36 -0400 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKAqW-0004hK-OD; Thu, 20 Jun 2024 02:00:34 -0400 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id EE8AF2619AC; Thu, 20 Jun 2024 08:00:28 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id coPoNOgnA0W0; Thu, 20 Jun 2024 08:00:27 +0200 (CEST) Received: from applejack.lan (83.11.22.244.ipv4.supernova.orange.pl [83.11.22.244]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 34F132619F3; Thu, 20 Jun 2024 08:00:25 +0200 (CEST) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: Peter Maydell , Leif Lindholm , Radoslaw Biernacki , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal , qemu-arm@nongnu.org, Marcin Juszkiewicz Subject: [PATCH v2 2/2] tests/avocado: update firmware for sbsa-ref Date: Thu, 20 Jun 2024 08:00:14 +0200 Message-ID: <20240620060014.605563-3-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240620060014.605563-1-marcin.juszkiewicz@linaro.org> References: <20240620060014.605563-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Update firmware to have graphics card memory fix from EDK2 commit c1d1910be6e04a8b1a73090cf2881fb698947a6e: OvmfPkg/QemuVideoDxe: add feature PCD to remap framebuffer W/C Some platforms (such as SBSA-QEMU on recent builds of the emulator) only tolerate misaligned accesses to normal memory, and raise alignment faults on such accesses to device memory, which is the default for PCIe MMIO BARs. When emulating a PCIe graphics controller, the framebuffer is typically exposed via a MMIO BAR, while the disposition of the region is closer to memory (no side effects on reads or writes, except for the changing picture on the screen; direct random access to any pixel in the image). In order to permit the use of such controllers on platforms that only tolerate these types of accesses for normal memory, it is necessary to remap the memory. Use the DXE services to set the desired capabilities and attributes. Hide this behavior under a feature PCD so only platforms that really need it can enable it. (OVMF on x86 has no need for this) With this fix enabled we can boot sbsa-ref with more than one cpu core. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py index 136b495096..e920bbf08c 100644 --- a/tests/avocado/machine_aarch64_sbsaref.py +++ b/tests/avocado/machine_aarch64_sbsaref.py @@ -37,18 +37,18 @@ def fetch_firmware(self): Used components: - - Trusted Firmware 2.11.0 - - Tianocore EDK2 stable202405 - - Tianocore EDK2-platforms commit 4bbd0ed + - Trusted Firmware v2.11.0 + - Tianocore EDK2 4d4f569924 + - Tianocore EDK2-platforms 3f08401 """ # Secure BootRom (TF-A code) fs0_xz_url = ( "https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/" - "20240528-140808/edk2/SBSA_FLASH0.fd.xz" + "20240619-148232/edk2/SBSA_FLASH0.fd.xz" ) - fs0_xz_hash = "fa6004900b67172914c908b78557fec4d36a5f784f4c3dd08f49adb75e1892a9" + fs0_xz_hash = "0c954842a590988f526984de22e21ae0ab9cb351a0c99a8a58e928f0c7359cf7" tar_xz_path = self.fetch_asset(fs0_xz_url, asset_hash=fs0_xz_hash, algorithm='sha256') archive.extract(tar_xz_path, self.workdir) @@ -57,9 +57,9 @@ def fetch_firmware(self): # Non-secure rom (UEFI and EFI variables) fs1_xz_url = ( "https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/" - "20240528-140808/edk2/SBSA_FLASH1.fd.xz" + "20240619-148232/edk2/SBSA_FLASH1.fd.xz" ) - fs1_xz_hash = "5f3747d4000bc416d9641e33ff4ac60c3cc8cb74ca51b6e932e58531c62eb6f7" + fs1_xz_hash = "c6ec39374c4d79bb9e9cdeeb6db44732d90bb4a334cec92002b3f4b9cac4b5ee" tar_xz_path = self.fetch_asset(fs1_xz_url, asset_hash=fs1_xz_hash, algorithm='sha256') archive.extract(tar_xz_path, self.workdir)