From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 06282820B0 for ; Wed, 8 Feb 2017 01:43:02 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP; 08 Feb 2017 01:43:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="62555624" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga005.fm.intel.com with ESMTP; 08 Feb 2017 01:43:01 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Wed, 8 Feb 2017 17:42:57 +0800 Message-Id: <20170208094258.59568-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH v4 0/6] Fix PciBus to accept Spec values as BarIndex and Alignment X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 09:43:02 -0000 If a platform developer follows the PI spec to write an IncompatiblePciDeviceSupport driver, due to a spec complaince bug in PciBus driver, the IncompatiblePciDeviceSupport driver may not work as expected. The patches fix PciBus to follow Spec to accept Spec defined values. v2: Use DISABLE_NEW_DEPRECATED_INTERFACES to deprecate macros. v3: Use MAX_UINT64/MAX_UINTN to replace (UINT64)-1 and (UINTN)-1. v4: Deprecate PCI_ACPI_UNUSED and PCI_BAR_NOCHANGE. Ruiyu Ni (6): MdeModulePkg/PciSioSerialDxe: Use MAX_UINT8 instead of PCI_BAR_ALL MdeModulePkg/PciBus: Accept Spec values as BarIndex and Alignment MdeModulePkg/IncompatiblePciDevice: Do not use deprecated macros MdeModulePkg/IncompatiblePci: Use MAX_UINTN to match any IDs OvmfPkg/IncompatiblePci: Do not use deprecated macros MdePkg/Pci22.h: Deprecate out-of-Spec IncompatiblePciDevice macros .../IncompatiblePciDeviceSupport.c | 108 ++++++++++----------- .../Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 36 ++++--- MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c | 2 +- MdePkg/Include/IndustryStandard/Pci22.h | 24 +++-- .../IncompatiblePciDeviceSupport.c | 13 +-- 5 files changed, 100 insertions(+), 83 deletions(-) -- 2.9.0.windows.1