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 EA92082011 for ; Sun, 5 Feb 2017 22:01:02 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP; 05 Feb 2017 22:01:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,340,1477983600"; d="scan'208";a="221736419" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga004.fm.intel.com with ESMTP; 05 Feb 2017 22:01:01 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Mon, 6 Feb 2017 14:00:53 +0800 Message-Id: <20170206060059.595976-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH v2 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: Mon, 06 Feb 2017 06:01:03 -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. 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 -1 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 | 37 ++++--- MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c | 2 +- MdePkg/Include/IndustryStandard/Pci22.h | 24 +++-- .../IncompatiblePciDeviceSupport.c | 13 +-- 5 files changed, 101 insertions(+), 83 deletions(-) -- 2.9.0.windows.1