From patchwork Fri Nov 16 06:57:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 151301 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp69998ljp; Thu, 15 Nov 2018 22:58:20 -0800 (PST) X-Google-Smtp-Source: AJdET5d13UyWWGfG/AAEDvshstlXmcYQXAiJog8SxS1Q00qk6k/DE0XmFAdZoZ2myFin/9yA/TAs X-Received: by 2002:a63:8f45:: with SMTP id r5mr8781094pgn.222.1542351500332; Thu, 15 Nov 2018 22:58:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542351500; cv=none; d=google.com; s=arc-20160816; b=nanx8RcO4YCflZyIrSV1XznP21IDlx9kVLRdRUVi5fnxwYNCxjQeigivlLYrHG1/Zy eANzp6g9+0EvDBJ12/gGqY0s4zLwX4Jf3Ze4cr04vbAuT18cDFccCGZNrLLFPMrMUPv4 sLDsjVKdj/ZJurxa+7nmE9VJPos2I3Sc5qjfrRJ4ty+MqImQbbzGCF46/BH6yAoh6X7Y a4nKb6fuan5TIQqtNKVfWYq/NLlVZl0Xa8X3wzPyM4ITkxQafp7YyezkPTPUAK6KOV+P XKW4/7WAtSGcvekcHm9pMTJH/sNLdKLjhHqFgI5EwZlIwBkVyUyF4PUTfu1w3SwONAHH +jPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=t1ZxNGs6ojHHZjGpMGPWQYoM2dgEXfnSgjgPwvr7Xas=; b=hV0RSYzijr5mEa2sCyodmymOnMfSzZJ0CjhFt9NlkqUD+wMcY5VU4q3pwehwp8t0Pm SNQh7JFdABPrRybE7+yj5+Wl1xwluUA4VMzvNrRVwfB+xQvVBOenIQUnuLSyKQCnR+tg AgPwSqF6biaSkuGpm3hm9ivMmPMZBGkMPBCEJK5hrbIMtMJpT9MZosOtetp5irkeGTPG YQwO+lBqyFWEi8sWNaZCiKg5nl5R40irPUGM/bErZsKU4CJhX0Y/9jyIp2AnPnSQv9Vh RAsvy4VbaJbg/eDz6ZrQ/PXcV/XfwqiP6IuuibUMlYO7J7xQaXPuvHj+2+3R/KARhvwa ksbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dcAJfB5f; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id o9-v6si20474655plk.434.2018.11.15.22.58.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Nov 2018 22:58:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dcAJfB5f; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E4DEB2119175D; Thu, 15 Nov 2018 22:58:10 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::643; helo=mail-pl1-x643.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7B3F021191751 for ; Thu, 15 Nov 2018 22:58:10 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id b5so4280676plr.4 for ; Thu, 15 Nov 2018 22:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tK+4zYcDHWFw00qSwOeoChYns3Wq3rGtdicSD9IL7Ho=; b=dcAJfB5fCYrDSzNFn9YjaOkf5upEAR83r2O0XvqbVpa941JbYQWueJ0kV+G3QsmLhL ECb+fXn/QuHqA272uhRVWAlUKjnHfbclDA7FGDI77kto/nuyKMROx5yXA64KLOaJU3H1 1STqaaeyCLBw3fI91/cGLghebC6Sa+yx3aVEU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tK+4zYcDHWFw00qSwOeoChYns3Wq3rGtdicSD9IL7Ho=; b=JZic3gDGn98P5LBDFszju03igY3DWfJhAxk1zENS1A6Bu9ZszRC2h6fNhClFaFMHX8 j9HCrpOfik0B7ebZ2gQkUejU+D30l0364/FGMdNONe/X/sEOcXCymLNnPOLX/xI1s3kw duIx1VubIMEd/G65q7IJIf7H1Lh9opPgOHk6KEzs6eM87lDkzpQzlxBF5MOczzjOBobX 4N98RBol6qKdrRvID8U6mas/75pZp6KT5hCHFCCup6vCADM4jp0FzGh3/YnAUNr6mHFo dnwu8KMA2ToRPUS2qiWtX9Mor2him3uGH340D3ga0OMO9IwaLGzx7Cx7X/qxI9SFiJTi skrQ== X-Gm-Message-State: AGRZ1gK5/70+d2kjdhMZfWOMUQIfdunEwQjbQpTsRhtngpHfezqqfRze Fubl30EMMt3Pr+onbWPxnqav7A== X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr9509300pld.63.1542351490238; Thu, 15 Nov 2018 22:58:10 -0800 (PST) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id h134sm2835905pfe.27.2018.11.15.22.58.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Nov 2018 22:58:09 -0800 (PST) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 16 Nov 2018 14:57:02 +0800 Message-Id: <20181116065702.30559-16-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20181116065702.30559-1-ming.huang@linaro.org> References: <20181116065702.30559-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 15/15] Hisilicon/D06: Correct HIDs/UIDs of PCI host bridges X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Synchronize PCI host bridges device path with the HIDs/UIDs used in the DSDT/SSDT for PCIe. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Platform/Hisilicon/D06/Library/PciHostBridgeLib/PciHostBridgeLib.c | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D06/Library/PciHostBridgeLib/PciHostBridgeLib.c b/Platform/Hisilicon/D06/Library/PciHostBridgeLib/PciHostBridgeLib.c index d1a436d9bcd2..d13178e9259d 100644 --- a/Platform/Hisilicon/D06/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/Platform/Hisilicon/D06/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -75,8 +75,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A04), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 2 }, { END_DEVICE_PATH_TYPE, @@ -99,8 +99,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A05), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 4 }, { END_DEVICE_PATH_TYPE, @@ -123,8 +123,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A06), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 5 }, { END_DEVICE_PATH_TYPE, @@ -147,8 +147,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A07), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 6 }, { END_DEVICE_PATH_TYPE, @@ -171,8 +171,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A08), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 8 }, { END_DEVICE_PATH_TYPE, @@ -195,8 +195,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A09), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 10 }, { END_DEVICE_PATH_TYPE, @@ -219,8 +219,8 @@ STATIC EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath [ENUM_HB_NUM] (UINT8)(sizeof (ACPI_HID_DEVICE_PATH) >> 8) } }, - EISA_PNP_ID(0x0A0A), // PCI - 0 + EISA_PNP_ID(0x0A03), // PCI + 11 }, { END_DEVICE_PATH_TYPE,