From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 C5ECB8204E for ; Mon, 6 Feb 2017 19:33:08 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 06 Feb 2017 19:33:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,344,1477983600"; d="scan'208";a="222151692" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga004.fm.intel.com with ESMTP; 06 Feb 2017 19:33:07 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Tue, 7 Feb 2017 11:32:59 +0800 Message-Id: <20170207033305.609040-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH v3 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: Tue, 07 Feb 2017 03:33:08 -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. 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