From patchwork Mon Jun 26 12:43:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ani Sinha X-Patchwork-Id: 1799945 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BYNr9k5A; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QqSPm1Z5Dz20ZP for ; Mon, 26 Jun 2023 22:50:52 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDlZV-0008Pj-JZ; Mon, 26 Jun 2023 08:43:57 -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 1qDlZ9-0007WX-I6 for qemu-devel@nongnu.org; Mon, 26 Jun 2023 08:43:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDlZ8-0006s4-2Q for qemu-devel@nongnu.org; Mon, 26 Jun 2023 08:43:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687783413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YQi5DNpBee1TXBxFEGyYLPk0MTnw7h1zNgmbfk3WRkU=; b=BYNr9k5AQtunYuwKNL2M7EH4mNhBnrfZECmqijl8uzhmM+GV46Jlr3c+lrlCn9ZQ8JlEXt 7n+ro/6kMHB1WjQX+wX6AR8l1izj+zMEenm+3ghg+TQZxCB0cydiaSDYnEylBtdrHtAzvE 5bZuQfAHHmKGQqOHyaq+XSXFAxzheZY= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-538-csMAADPMNla7faJdQdiXoQ-1; Mon, 26 Jun 2023 08:43:31 -0400 X-MC-Unique: csMAADPMNla7faJdQdiXoQ-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-553d42a7069so2761533a12.1 for ; Mon, 26 Jun 2023 05:43:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687783410; x=1690375410; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YQi5DNpBee1TXBxFEGyYLPk0MTnw7h1zNgmbfk3WRkU=; b=fcMIZdwCCXtzdUFAbRS+rbXwX7YB+VXAtNAmpftr0lky+/FRkI02H/tHcT7Df6tz7o DzGtWonf9525/P3SoHuzwHTPMlZZ9rjuy3Ac70AiAxTSOVDI26wHr3Np8Wls2mpqJFLW XmWRKijMORHkjEIP9hJthjWXx1sUPmkqr4MraReotbEqnm8HmVOSKNmyT0E9FhEjCU9r QzwssqKUPt82opwp72oJIA6x9bLwbJlccBFDmupEUOiyLxTNMuh/9wLzFM1F+0ae5xAx UY3WuNH4/lyQDjEuIQ0d4Pvg8WSrJQxKOlHMbFymNbvrqEdh27FRlq0L4AVuf1zD3UWY 9Qqw== X-Gm-Message-State: AC+VfDyDRaKLfeUCofyclLlKjnmtNVcVGkN3Y9DCzDoQUpwHBlnwJGL8 TxQsgpC/FYA4KhY2Nr1GMmOW/YmEtu7rEKD8ou1PneI0e8fyUWcPBNO/QiMrWJ3mrONdYMAYyqi tJgj/nWhy51MHhdrp5qxjbeVRdbwmRm4jK49fppN8H1FZCTID0taH3rHkHaUjRjXmnDxcnhFx9T 8= X-Received: by 2002:a17:902:da81:b0:1b7:fae4:9867 with SMTP id j1-20020a170902da8100b001b7fae49867mr4582983plx.10.1687783410050; Mon, 26 Jun 2023 05:43:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41rXoJk/lXTgSQt3HRfv3WItXn2X7U9g/NHM5lOl2v4vQq50dFke3Rw2Sqe4Co0vCQlq8MUQ== X-Received: by 2002:a17:902:da81:b0:1b7:fae4:9867 with SMTP id j1-20020a170902da8100b001b7fae49867mr4582967plx.10.1687783409769; Mon, 26 Jun 2023 05:43:29 -0700 (PDT) Received: from localhost.localdomain ([115.96.139.77]) by smtp.googlemail.com with ESMTPSA id j22-20020a170902759600b001b3c892c367sm4111671pll.63.2023.06.26.05.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 05:43:29 -0700 (PDT) From: Ani Sinha To: qemu-devel@nongnu.org, "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha Subject: [PATCH v3 2/5] tests/acpi/bios-tables-test: use the correct slot on the pcie-root-port Date: Mon, 26 Jun 2023 18:13:03 +0530 Message-Id: <20230626124306.4572-3-anisinha@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230626124306.4572-1-anisinha@redhat.com> References: <20230626124306.4572-1-anisinha@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.133.124; envelope-from=anisinha@redhat.com; helo=us-smtp-delivery-124.mimecast.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, 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_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org PCIE ports only have one slot, slot 0. Hence, non-zero slots are not available for PCIE devices on PCIE root ports. Fix test_acpi_q35_tcg_no_acpi_hotplug() so that the test does not use them. Signed-off-by: Ani Sinha Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index ed1c69cf01..47ba20b957 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1020,9 +1020,9 @@ static void test_acpi_q35_tcg_no_acpi_hotplug(void) " -device pci-testdev,bus=nohprp,acpi-index=501" " -device pcie-root-port,id=nohprpint,port=0x0,chassis=3,hotplug=off," "multifunction=on,addr=8.0" - " -device pci-testdev,bus=nohprpint,acpi-index=601,addr=8.1" + " -device pci-testdev,bus=nohprpint,acpi-index=601,addr=0.1" " -device pcie-root-port,id=hprp2,port=0x0,chassis=4,bus=nohprpint," - "addr=9.0" + "addr=0.2" " -device pci-testdev,bus=hprp2,acpi-index=602" , &data); free_test_data(&data);