From nobody Mon May 6 00:29:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1578325166; cv=none; d=zohomail.com; s=zohoarc; b=mgwxU+xUjj6dfxcBVXnRMO6JZZvviqeMB/YI39rDKFNY1p8jJFCV49UoegDj9OTyfFh8tR6TBDdcuFQpP8G70fUqdShHoZCqzITCbvq84wkHJiE+zoOLP6VY7v7qZJ3DdlMu1kz7X2UgOUmGQWSPhROVGi8xk9/UkAiM+/55/Vs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578325166; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=RALcAVMrFgZq7I9MBPW6YNVoQ1qjsckt124hKks9wk4=; b=T+a3Oplp6eC1ajtYEMASGWDqAa1jkgbAmSJ+FJ7oUGg3ZiKMXUVz32DTM7L7vU7aaptyGZWOt+QUxO3O5uEhP23hUZ4SiC1djg97h9Qu8PTtiy1HFo4zI8Cc8MW4oDA8mPmptvkYhVWcnoe1APP+w/YuKnaXQZjaegSr4Xq+vvg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578325166877337.55180915935944; Mon, 6 Jan 2020 07:39:26 -0800 (PST) Received: from localhost ([::1]:53758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioUTV-0006t3-P2 for importer@patchew.org; Mon, 06 Jan 2020 10:39:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36761) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioUHp-0006cF-Ie for qemu-devel@nongnu.org; Mon, 06 Jan 2020 10:27:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioUHm-000810-6c for qemu-devel@nongnu.org; Mon, 06 Jan 2020 10:27:21 -0500 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:43016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioUHm-000802-22 for qemu-devel@nongnu.org; Mon, 06 Jan 2020 10:27:18 -0500 Received: by mail-ot1-x341.google.com with SMTP id p8so35711823oth.10 for ; Mon, 06 Jan 2020 07:27:17 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id 17sm24243378oty.48.2020.01.06.07.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 07:27:16 -0800 (PST) Received: from t560.minyard.net (unknown [IPv6:2001:470:b8f6:1b:adc3:7c20:81:d62b]) by serve.minyard.net (Postfix) with ESMTPA id 6DB1D180050; Mon, 6 Jan 2020 15:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=RALcAVMrFgZq7I9MBPW6YNVoQ1qjsckt124hKks9wk4=; b=SrAP8wv92ItJK/zTkHiXJ17CcFOI0JnJSorhRxvx3KW4Yaq1m0w0uICyy8CU85ANF3 oV2QczP+04Duyy9N2JDHs4Ot2hQsg5Fs+jauN8fp3at9mEaES0iD5wL0dYVix6jMKuKO cqS5AJ9pIxtfpQlsh/cMPSAGHu9JJ87wrz1KHfQ+Z1XTLy6igsKnYFtp0PIqDvb9ULrN 3qY/sobDjT6VHJkRv4xtFh4vvjKDNA4OrgjTYF11j4hwj05LIPTU8F9mHsGoRJReC9DN K9T1duha0tXAPeT5WapO1AVxQNcNxizsqfGfdeXmczfzLAEI61PDij3eIGLPkJ2XLNFW G6zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=RALcAVMrFgZq7I9MBPW6YNVoQ1qjsckt124hKks9wk4=; b=EkA94BOorTGIEt02aYYy4TWqlkGq/DTZjgjT1ELgh9jLl4kiWPzIbIE2Upuvz4Pys6 my9EZWY/I4hRbvLjAITMOZSgFq7Hsw87QeWMqwR/aV2wlfKmyNrZzopd7Ml5Y9YF7xvx COLYN8F5Lh8ZBueS5Gi42VvEExNaWaa6r3GxjPKADoEMyS8R8Sf872yM4Z8Iscz66Pfr tod93vZEIP0o6Rg4z5mtm78go+kDugjG1e5arDX1uQgcPjapKQG0VX2jm3IIV+5Ok+17 jqIDhLWFvm2MdGHcYpv0nRgYc5ydJr+AygunAuMuDPKwuIKDriMsTBe+BOkSHt+RiK8v Tnfw== X-Gm-Message-State: APjAAAXu2e/U7gK+swQSaLByhvBbGaJcKNysMoOS1QzFFY0bmhHt+b7V 9Y756zxuDj7dl89IiMqxUw== X-Google-Smtp-Source: APXvYqxEbniKz152PhZQ33JLNRkyrjRQiyDHQsXhJG4B4TQM72cbaKmGbJWzt9R+IdHxmWTo792msw== X-Received: by 2002:a9d:3a65:: with SMTP id j92mr117482186otc.37.1578324436612; Mon, 06 Jan 2020 07:27:16 -0800 (PST) From: minyard@acm.org To: qemu-devel@nongnu.org Subject: [PATCH] i386:acpi: Remove _HID from the SMBus ACPI entry Date: Mon, 6 Jan 2020 09:27:05 -0600 Message-Id: <20200106152705.8258-1-minyard@acm.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::341 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Corey Minyard , "Michael S . Tsirkin" , Shannon Zhao , wanghaibin.wang@huawei.com, Igor Mammedov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Corey Minyard Per the ACPI spec (version 6.1, section 6.1.5 _HID) it is not required on enumerated buses (like PCI in this case), _ADR is required (and is already there). And the _HID value is wrong. Linux appears to ignore the _HID entry, but it confuses Windows. Signed-off-by: Corey Minyard Cc: Michael S. Tsirkin Cc: Igor Mammedov Reviewed-by: Igor Mammedov --- hw/i386/acpi-build.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 7b8da62d41..ab73a8f4c8 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1815,7 +1815,6 @@ static void build_smb0(Aml *table, I2CBus *smbus, int= devnr, int func) Aml *scope =3D aml_scope("_SB.PCI0"); Aml *dev =3D aml_device("SMB0"); =20 - aml_append(dev, aml_name_decl("_HID", aml_eisaid("APP0005"))); aml_append(dev, aml_name_decl("_ADR", aml_int(devnr << 16 | func))); build_acpi_ipmi_devices(dev, BUS(smbus), "\\_SB.PCI0.SMB0"); aml_append(scope, dev); --=20 2.17.1