From patchwork Mon Nov 4 06:13:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Shengqing X-Patchwork-Id: 2006042 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=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-pci+bounces-15907-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xhh4l31g4z1xwK for ; Mon, 4 Nov 2024 17:14:15 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D1EF01C20A44 for ; Mon, 4 Nov 2024 06:14:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63BAE14E2FD; Mon, 4 Nov 2024 06:14:09 +0000 (UTC) X-Original-To: linux-pci@vger.kernel.org Received: from out28-132.mail.aliyun.com (out28-132.mail.aliyun.com [115.124.28.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18C3C6FC5; Mon, 4 Nov 2024 06:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.132 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730700849; cv=none; b=tJlWeeJNcKgPRHaIPQkroSN9Km8dddb4P6wR20Lcp0MRbrcp3J6jV5NzvywlofaI71f/eDJgcSbxjPSbFpKcUqqywXrY7BTVanyqxEwdVdLSCeB0FycWYBm6Ij6G5Vwlymx5JL6lPD8hgFtVIRZIMs56YpPrdwOFv2L6aQsqrNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730700849; c=relaxed/simple; bh=kKoSkfa/4XTZf97rbXAnkznukgIQZI507PfDIYlcIuo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=BtuM93HVO5WhvwPZksKbMDw1Hbkv3ggl9eSCK88qRVo1xbFk9Zq6YNBCvrpaNTaW5tysbzp1eI1jfWGiutisvwkz0vUWwd/+p0ZMCNxEcLMK2TX4chLFOX4gJp68d8SFDL+5r5YvUTebfJtF7W92AC1m87rZ+0M3G2zpXAlojLA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ttyinfo.com; spf=pass smtp.mailfrom=ttyinfo.com; arc=none smtp.client-ip=115.124.28.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ttyinfo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ttyinfo.com Received: from tzl..(mailfrom:zhoushengqing@ttyinfo.com fp:SMTPD_---.a.rFp-G_1730700835 cluster:ay29) by smtp.aliyun-inc.com; Mon, 04 Nov 2024 14:13:55 +0800 From: Zhou Shengqing To: "Rafael J . Wysocki" , Bjorn Helgaas , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, zhoushengqing@ttyinfo.com Subject: [PATCH] PRESERVE_BOOT_CONFIG function rev id doesn't match with spec. Date: Mon, 4 Nov 2024 06:13:42 +0000 Message-Id: <20241104061342.106865-1-zhoushengqing@ttyinfo.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Per PCI Firmware Specification Revision 3.3 Table 4-7 _DSM Definitions for PCI. Preserve PCI Boot Configuration Initial Revision ID is 2. But the code is 1. Signed-off-by: Zhou Shengqing --- drivers/pci/pci-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index af370628e583..7a4cad0c1f00 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -132,7 +132,7 @@ bool pci_acpi_preserve_config(struct pci_host_bridge *host_bridge) */ obj = acpi_evaluate_dsm_typed(ACPI_HANDLE(&host_bridge->dev), &pci_acpi_dsm_guid, - 1, DSM_PCI_PRESERVE_BOOT_CONFIG, + 2, DSM_PCI_PRESERVE_BOOT_CONFIG, NULL, ACPI_TYPE_INTEGER); if (obj && obj->integer.value == 0) return true;