From patchwork Mon Nov 25 14:05:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 845320 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1198155wru; Mon, 25 Nov 2024 06:08:36 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXOOLVBlL1EcuxKHyiJXbHIBPTfiYJw9uZsFr5PIqjfFQmYPvp3hwMANxBNF1cV4tbh7RzPJQ==@linaro.org X-Google-Smtp-Source: AGHT+IEPPZfYR+hb30qZ4r0dd8rb0n6LV44PtgSx+/b5jr0CLabjrdTFI6L6XjzWztddW+HdsP4J X-Received: by 2002:a05:6000:400b:b0:382:4f70:10cf with SMTP id ffacd0b85a97d-38260b6213cmr11392609f8f.20.1732543713946; Mon, 25 Nov 2024 06:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732543713; cv=none; d=google.com; s=arc-20240605; b=FYgykI4Yc/5cdpgcI3w1BsZ+hxAMZDuWeTNCKX5iILY2AiAW7tIToUestFPLOpXsWp WUQaR3++Lp60JmrzVgbQLufzcEYDfOzTEOjeERP0bi/0nwGrOATDo1wUIOT2wvYtlHyz BrsksqsNO1WjnSwdkx+kO0w20REv76KasUGLtSgPQZbjFBCf37+/SeXB7MoEdNU0kWdq nGdk+u4aiPYoWca2JwQBcdBYDuQ1Tedc9WVAB4Oq/UkJLLUP24VH0+WU8VSzFQ4JKlDP W+s0WhlZ7zyxAJI8jQjuU3D3FNRUHQUt4UewjIqk0Yn+xoej+WpTiTmYROt6eOduiXrS Lk5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:dkim-signature; bh=KEkIR2vBaISG4rMjnIPuSSQYyM7zelGC+1W4S9oVQCo=; fh=01MTBs686u0z/v+1HBxc617dy4wgnTfT5lmRb9hvZO0=; b=j9Z/Zfaf2WyC74Wd0GPK5Mqb6RaicKepyJqid7vo7ax+Kisxof9kfWrToogBl5qENE Ve6IjDSwlJAfpUTo7Qu/mDDmVnas5OK3SLEutDZISfDP0E2FSl16U+dzkQfW7F6dBm6S U97+CyvyGPVR+OsAzqqNYUsslV0fH+CuCGqv5ZyTgVYzrddAIyF0x1YIvoIXe2mf53a2 ei4D61YThVEH36c7MQiEQP/Dq04EnDO8VWtzaF+qJ5FVuSLNNDzgXcXoD2g0jTozx29d Jd2HiqFF9oWjpHaNAec2VACFTKijr7HkSUw0zATKTWm16sauw0jUxA10lWV4NctjgU+6 XcnA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rrKyp7u7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ffacd0b85a97d-385be992f8esi251300f8f.842.2024.11.25.06.08.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Nov 2024 06:08:33 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=rrKyp7u7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFZkK-0003Cr-Ud; Mon, 25 Nov 2024 09:07:24 -0500 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 1tFZk5-0002j9-6u for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:07:10 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFZk2-0006ik-Mn for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:07:08 -0500 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-53dd0cb9ce3so4089502e87.3 for ; Mon, 25 Nov 2024 06:07:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732543624; x=1733148424; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KEkIR2vBaISG4rMjnIPuSSQYyM7zelGC+1W4S9oVQCo=; b=rrKyp7u7YICai8X3vlghwFPBOkED+jmkXZAbNNLDG3uavXYgfoko0ILw0r2RCu28c3 L/bXqoB4HphOJB00tQqolx/jNuosXUrnCLf9Qcdi++0SEaXx3w34WXGGvaZEAb6Jd0/I VdblJew4XS5P95wg4NOq8SxrvRQIhuqnavxlPln5y8BGICW4SRX9DhACqAMxugvd4KMQ pirRxCiU8HvXhIcw5Hwjqsaj38YlWPado7HVRw7LGLK2WmOd3eloXUcRi2fw0nbuIUHt EuDkbZXZznenVF6kNzu89dB2ObKBiZMvFIwwLqbegjdZWpxp8Tt7ayRqPRoOCiZcFVgJ Hj0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732543624; x=1733148424; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KEkIR2vBaISG4rMjnIPuSSQYyM7zelGC+1W4S9oVQCo=; b=McChcKkw+5T5zbGiMQ+Yxrh0ySynDQQjiq/yy1Goep3324zkjn0vYeJwlwbAQmm/Jh 6COqsm9dLOG7Fp0WPGSxB/1iu7Y670SnLr+keJKjl4yICHHP0cdkJp65iYV62auOU06K MBYIZ2+NWi7lbAKQ40FhXEuM8i1PyjY25BdVitH5IPbPnOHhxb8V5J4XjjUVYdyFUaCZ aY4aL+Tf1YVYt17HcLNb94vDFb/Qr2WE/qKgWUkKDTKGPaNCKlFsDZgm5WaJMgIGTN7l qJUiCyKyr/v2gZXXyn4Bj/oGjSd1gEn+zbT8t3BinSqZn8RDyb14HqiTUnSCeXwha+g/ dfsA== X-Gm-Message-State: AOJu0YzszOq4WF0C9Zagf16WWSLDn4tulbqHirJoBpb4H+3qXv22F/oc Qqn21VEgn9Tj7xaUI01lS5ySMcgfmA6ih/bNDvqQT+T4CxtlKz1n7//pqoO5/T2qXWO4BdRs4fY c X-Gm-Gg: ASbGncssyzBn9UDeEkLKepyMlMqrJbt9X2nKkKt7XvKehVwqowjdD/ymHCW0dPMeL9T wum1AVE6mhh7CC6vF4ShR7gEaBlXVFkPv2OvmLXRbFXClXx3IdhQfQhB5//1oSXHyHitZaIxzCk ztAiE9fuBE+T7UtebSQjTrV8NieTvV+MRrWtxDJxFtzpwGNg3vYkMDOQvJ4mqFKV/PspGSEZuEv SKNCqrj60TZwqDkND+8QQ5EeO+uYAVfH0kdBRl4N+mbNAyVT8SVExahCklSGEWTx4pXBRSM X-Received: by 2002:a05:6512:3b0a:b0:53d:de48:7409 with SMTP id 2adb3069b0e04-53dde48744cmr2788380e87.0.1732543624453; Mon, 25 Nov 2024 06:07:04 -0800 (PST) Received: from localhost.localdomain ([176.176.170.239]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4348e272094sm84910365e9.7.2024.11.25.06.07.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 25 Nov 2024 06:07:03 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Marcin Juszkiewicz , Bin Meng , Alistair Francis , Harsh Prateek Bora , Zhao Liu , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Liu Zhiwei , Palmer Dabbelt , Marcel Apfelbaum , qemu-arm@nongnu.org, "Michael S. Tsirkin" , Nicholas Piggin , Leif Lindholm , Peter Maydell , qemu-riscv@nongnu.org, Weiwei Li , Radoslaw Biernacki , Thomas Huth , Yanan Wang , Eduardo Habkost , qemu-ppc@nongnu.org Subject: [PATCH-for-10.0 5/8] hw/arm/sbsa-ref: Set PCI_BUS_IO_ADDR0_ALLOWED flag on GPEX host bridge Date: Mon, 25 Nov 2024 15:05:32 +0100 Message-ID: <20241125140535.4526-6-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241125140535.4526-1-philmd@linaro.org> References: <20241125140535.4526-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=philmd@linaro.org; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 All SBSA-Ref machines set this flag in MachineClass. Directly set it to the GPEX bridge. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/sbsa-ref.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index e3195d5449..988a0a236e 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -647,6 +647,8 @@ static void create_pcie(SBSAMachineState *sms) int i; dev = qdev_new(TYPE_GPEX_HOST); + object_property_set_bool(OBJECT(dev), "allow-io-addr0-accesses", + true, &error_fatal); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); /* Map ECAM space */ @@ -896,7 +898,6 @@ static void sbsa_ref_class_init(ObjectClass *oc, void *data) mc->default_cpu_type = ARM_CPU_TYPE_NAME("neoverse-n2"); mc->valid_cpu_types = valid_cpu_types; mc->max_cpus = 512; - mc->pci_allow_0_address = true; mc->minimum_page_bits = 12; mc->block_default_type = IF_IDE; mc->no_cdrom = 1;