From patchwork Tue Nov 26 11:22:10 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: 845567 Delivered-To: patch@linaro.org Received: by 2002:a5d:6989:0:b0:382:43a8:7b94 with SMTP id g9csp155576wru; Tue, 26 Nov 2024 03:26:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWnvD/m9lKhrFelpCL461iulOfmCyA9SY7whrVjrwNqbTm6ONoIxhKKTx08kelRlsKNyQ6n6A==@linaro.org X-Google-Smtp-Source: AGHT+IHR3ygHtislBiHhVITXRvsO9xZ0abvkt8AljrAkv/kJBaE+f06+pSHG+t78AkWG67h6ASL3 X-Received: by 2002:a05:6214:2529:b0:6cb:ed27:145c with SMTP id 6a1803df08f44-6d856c4e895mr50898516d6.19.1732620366894; Tue, 26 Nov 2024 03:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732620366; cv=none; d=google.com; s=arc-20240605; b=GY3O5HU9QnaevXtXcF4r1FUsSi/LIjz2A+2OEMY/B/UJ633I+owHjFx5mafWOmgdh2 lYLaC4iGBlxYbOnirRRW/a+TMciZA/SaoA6D2Bg1M4i1dxyWCUkhLMH1hm+C4xJbHDds wcq6PY5mkdcd1+T7TZl4AYvkMjSQqtLN5qEwC87tgzg2pBaKOsUMAmWXzOZwa7YUMLI3 p8rSKlv+I5q+SdtuKogNhBbxT/dQRw3IVr4NTnhsb+893nSM7j1bfb+dmntImeVhGSeb zWBKgb1sYabh3bnod/uZf4Flcl9XmOJfFhNbJZgjuU4YG+hMwuovA4Zz3LZe9gXRos/W t7fg== 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=5+ncjcv7Qm8z1k3YSKR9YOc81bQXCEn50hblae0ujWI=; fh=siS/4HMv/4Bjpv+J3MqwgZ5TPB6jtxhL8giIGJt6+cQ=; b=T679GTtHUx8yAOb8gR6IwFCFZwNDAgQ7glJY35UTqc8NteegWhEb+iT5XSJA8PhrJc R6tgQQz9l4pfNnuQb7eulcBwYsJ22JN0tKDgInpbbahyPJFoUmEUOoXozIXPy4dPra7G aSh2NhCf7p+nvhSgdoRE1+zFcWbeNlj9Omb2mlhZ3/lDp97szKio6GMgZjUGx2EmKHGY yRKldYLIx1nsCIkxc+Zo6IbrOQzen53yBUoMEqXm6y6z/5Ho/kGGosju07FFIOeH5xod IFmnPY8IxB9kY03unUsxnWyYAPeQ0tAb0AO7peRabq28X79kIS/gbjDyy2lsPgH44Ckn kx+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPjTnidV; 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 6a1803df08f44-6d451b8be43si110899836d6.559.2024.11.26.03.26.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Nov 2024 03:26:06 -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=mPjTnidV; 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 1tFtgg-0007ws-TE; Tue, 26 Nov 2024 06:24:59 -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 1tFtff-0004cQ-P9 for qemu-devel@nongnu.org; Tue, 26 Nov 2024 06:23:56 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFtfc-0002ym-VX for qemu-devel@nongnu.org; Tue, 26 Nov 2024 06:23:55 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4316f3d3c21so48157995e9.3 for ; Tue, 26 Nov 2024 03:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732620230; x=1733225030; 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=5+ncjcv7Qm8z1k3YSKR9YOc81bQXCEn50hblae0ujWI=; b=mPjTnidVBAmieTlEBb3JK2OCO1rPpoTDuxdZndla7PRHQH2bsD2x6HV5LtV7Vo5T/x qf5pQMegmGDGMifh0OFa7xj5H2cK9pKHX3GxpGykMg7utWwOorvHjRMNHnyrxqfGrnaG ajDJRwJV84A+pHSGvIV3Wi82seXl3nqX0Xwmc0sBhxHrEaKageI0VR7p1gZxPTfSdJfn AiwY7Q6ESsiqPM+WI+K/qbmdyLDbLHNp9Bg6X+QW8APWOplHbPMAZzHFODOfekaGHShP B0RCJXUGjDj+XauBlYOKJkMTXWQG7SpYnx8FVBPXmrgl5OscSlp6aMWpggF7mqo4TbN8 NEoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732620230; x=1733225030; 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=5+ncjcv7Qm8z1k3YSKR9YOc81bQXCEn50hblae0ujWI=; b=QWldOePgPqcrnodbdoJoGshkcn7KI+2Yje2RVQWXxH3HaVY0LSxINtoQ9EmzmkJFMA gFGosGsJsa+Rl4/lxu5+k6jWR1hSxS/Ex825jbzUCEZpb68d1YSUxMEbl2awlBOD8I6Q PhXvPKkqsE86RgTil4ODCLcL9jCt7yvUdxn77wr84zFSTq4easB52dO3vopZvbFS+dkS tiCn5UenKrZ83j1eO21xne8O35RveXuA/KAm6daHcEuzc+MBKyh/ZQEWocHnSNr4HxOl lg5eVk1nHEf1QhzIlRBU5BXOtByvR9FzDWslw6CRj+hlkhPz2BdXfHWYfQzfEIRonMWN OGeQ== X-Gm-Message-State: AOJu0YzfNn+g6IrYHhh/ZJhBVxzTJVHOpQh8P8ArWyGomyNB3umj6Cdl zVMRWEyYLGLkWgPkZq9ElYSpa/d54dKfpHOS0aXzqUGaMFe8b16GApxCSyXsz0U2peYBcMPl9l2 l X-Gm-Gg: ASbGnctCe5D6UPz3LlenfSmEA5ta4+WzWW2tbrjhghlyKYzWNXUF2cyRDUs8Es9Sfto k7kku8JB+BaTZBMo4yoM1q3y8MfcNGHH+bzOWrDK1qZmw+QFU1Aw1pm2Yr3xfZKncOrofEExsJ7 kgEEwTHNjYzmPNAXFk6Yx/qIrlmr3nHho4ZjmjsHzYgrQcWU7uhZcavczXsmfigB4BecVYUo3Qm FwOWFR/MfYugTwvuGLOFy72SZXgBDnyOfV0BeDHrrN4zBaarJz19xarqgfDm8xceTu49BFc X-Received: by 2002:a05:600c:3d09:b0:434:a711:ace4 with SMTP id 5b1f17b1804b1-434a711b1acmr16755115e9.17.1732620230484; Tue, 26 Nov 2024 03:23:50 -0800 (PST) Received: from localhost.localdomain ([176.176.143.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434a8051ddesm9540385e9.8.2024.11.26.03.23.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Nov 2024 03:23:50 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Thomas Huth , "Michael S. Tsirkin" , qemu-riscv@nongnu.org, Marcel Apfelbaum , Peter Maydell , qemu-arm@nongnu.org, Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-10.0 v2 11/13] hw/arm/virt: Create GPEX host bridge without refuse-bar-at-addr-0 Date: Tue, 26 Nov 2024 12:22:10 +0100 Message-ID: <20241126112212.64524-12-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241126112212.64524-1-philmd@linaro.org> References: <20241126112212.64524-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 ARM virt and sbsa-ref machines set MachineClass::pci_allow_0_address (see commit 74de8c3568 "hw/arm/virt: Allow zero address for PCI IO space"), directly create the GPEX host bridge using the default 'false' value of the "refuse-bar-at-addr-0" property. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/sbsa-ref.c | 3 --- hw/arm/virt.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index f6cf43cf0c9..c232b933c07 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -647,8 +647,6 @@ static void create_pcie(SBSAMachineState *sms) int i; dev = qdev_new(TYPE_GPEX_HOST); - object_property_set_bool(OBJECT(dev), "refuse-bar-at-addr-0", - true, &error_fatal); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); /* Map ECAM space */ @@ -898,7 +896,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; diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 06affc3638b..f9ec3c22409 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1510,8 +1510,6 @@ static void create_pcie(VirtMachineState *vms) MachineClass *mc = MACHINE_GET_CLASS(ms); dev = qdev_new(TYPE_GPEX_HOST); - object_property_set_bool(OBJECT(dev), "refuse-bar-at-addr-0", - true, &error_fatal); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); ecam_id = VIRT_ECAM_ID(vms->highmem_ecam); @@ -3126,7 +3124,6 @@ static void virt_machine_class_init(ObjectClass *oc, void *data) #endif mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; - mc->pci_allow_0_address = true; /* We know we will never create a pre-ARMv7 CPU which needs 1K pages */ mc->minimum_page_bits = 12; mc->possible_cpu_arch_ids = virt_possible_cpu_arch_ids;