From patchwork Wed Nov 10 21:11:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 12613063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E457BC433F5 for ; Wed, 10 Nov 2021 21:13:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A44796124C for ; Wed, 10 Nov 2021 21:13:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A44796124C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:33108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkuu2-0006J8-T9 for qemu-devel@archiver.kernel.org; Wed, 10 Nov 2021 16:13:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkust-00043h-6z for qemu-devel@nongnu.org; Wed, 10 Nov 2021 16:11:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkusn-0002Vm-B6 for qemu-devel@nongnu.org; Wed, 10 Nov 2021 16:11:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636578708; 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; bh=E7esPeH43OkPq1e3R4CRv0INUgy8JDn6O2ef73H/8rg=; b=bSHMBH9P+V84JdIqlGSs9bRfAHYdUnP1Cyc6DmmEMfyBED3+wux16vBddFbfGEHzC2TEgg As4I9Z3Uzv0jF/bs7fJNYK+DFb40aWVhlejUlrYuXmVvBLzVXskbi4eaKOmN9n9ifVNCnk j6GeWt8UhjLbspnWhFF+7cZLKKK+Zmg= 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-34-NpjOjuMXN5yvLWL6_zB0cw-1; Wed, 10 Nov 2021 16:11:44 -0500 X-MC-Unique: NpjOjuMXN5yvLWL6_zB0cw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 10FCB18D6A34; Wed, 10 Nov 2021 21:11:44 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.37.153.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id B02DB197FC; Wed, 10 Nov 2021 21:11:42 +0000 (UTC) From: Igor Mammedov To: qemu-devel@nongnu.org Subject: [PATCH for 6.2 v2 0/5] Fix Q35 ACPI PCI Hot-plug I/O issues Date: Wed, 10 Nov 2021 16:11:35 -0500 Message-Id: <20211110211140.3057199-1-imammedo@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=imammedo@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=170.10.133.124; envelope-from=imammedo@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.699, 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-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ani@anisinha.ca, mapfelba@redhat.com, jusual@redhat.com, kraxel@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Changelog: v2: * simplify [1/5] and rename property to x-native-hotplug (CC stable) * [4/5] - rename function parameter to reflect actual action - drop local 'hotplug' variable and opencode statement * test with SeaBIOS/OVMF and Linux guest, Windows also works with SeaBIOS, can't install it in EFI mode on current master (it's stuck when formatting disk/or copying files to hdd). Attempt [1] to fix I/O allocation with the 'reserve-io' hint on each pcie-root-port resulted in regression [2-3]. This patchset aims to fix it by addressing the root cause of the problem - the disabled PCIe Slot HPC bit. [1] 'hw/pcie-root-port: Fix hotplug for PCI devices requiring IO' [2] https://gitlab.com/qemu-project/qemu/-/issues/641 [3] https://bugzilla.redhat.com/show_bug.cgi?id=2006409 CC: kraxel@redhat.com Igor Mammedov (1): pcie: rename 'native-hotplug' to 'x-native-hotplug' Julia Suvorova (4): hw/acpi/ich9: Add compat prop to keep HPC bit set for 6.1 machine type bios-tables-test: Allow changes in DSDT ACPI tables hw/i386/acpi-build: Deny control on PCIe Native Hot-plug in _OSC bios-tables-test: Update golden binaries include/hw/acpi/ich9.h | 1 + hw/acpi/ich9.c | 18 ++++++++++++++++++ hw/i386/acpi-build.c | 12 ++++++++---- hw/i386/pc.c | 2 ++ hw/i386/pc_q35.c | 9 +++++++-- hw/pci/pcie_port.c | 2 +- tests/data/acpi/q35/DSDT | Bin 8289 -> 8289 bytes tests/data/acpi/q35/DSDT.acpihmat | Bin 9614 -> 9614 bytes tests/data/acpi/q35/DSDT.bridge | Bin 11003 -> 11003 bytes tests/data/acpi/q35/DSDT.cphp | Bin 8753 -> 8753 bytes tests/data/acpi/q35/DSDT.dimmpxm | Bin 9943 -> 9943 bytes tests/data/acpi/q35/DSDT.dmar | Bin 0 -> 8289 bytes tests/data/acpi/q35/DSDT.ipmibt | Bin 8364 -> 8364 bytes tests/data/acpi/q35/DSDT.ivrs | Bin 8306 -> 8306 bytes tests/data/acpi/q35/DSDT.memhp | Bin 9648 -> 9648 bytes tests/data/acpi/q35/DSDT.mmio64 | Bin 9419 -> 9419 bytes tests/data/acpi/q35/DSDT.multi-bridge | Bin 8583 -> 8583 bytes tests/data/acpi/q35/DSDT.nohpet | Bin 8147 -> 8147 bytes tests/data/acpi/q35/DSDT.nosmm | Bin 0 -> 8289 bytes tests/data/acpi/q35/DSDT.numamem | Bin 8295 -> 8295 bytes tests/data/acpi/q35/DSDT.smm-compat | Bin 0 -> 8289 bytes tests/data/acpi/q35/DSDT.smm-compat-nosmm | Bin 0 -> 8289 bytes tests/data/acpi/q35/DSDT.tis.tpm12 | Bin 8894 -> 8894 bytes tests/data/acpi/q35/DSDT.tis.tpm2 | Bin 8894 -> 8894 bytes tests/data/acpi/q35/DSDT.xapic | Bin 35652 -> 35652 bytes 25 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 tests/data/acpi/q35/DSDT.dmar create mode 100644 tests/data/acpi/q35/DSDT.nosmm create mode 100644 tests/data/acpi/q35/DSDT.smm-compat create mode 100644 tests/data/acpi/q35/DSDT.smm-compat-nosmm