From patchwork Wed May 11 16:00:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 67605 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp310783qge; Wed, 11 May 2016 09:20:12 -0700 (PDT) X-Received: by 10.55.0.137 with SMTP id t9mr4500533qkg.200.1462983611539; Wed, 11 May 2016 09:20:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 60si5717148qgf.15.2016.05.11.09.20.11; Wed, 11 May 2016 09:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 29CB36163F; Wed, 11 May 2016 16:20:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5E827616BE; Wed, 11 May 2016 16:05:33 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 831B8616BE; Wed, 11 May 2016 16:05:29 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by lists.linaro.org (Postfix) with ESMTPS id 6A3B46166F for ; Wed, 11 May 2016 16:01:32 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id n129so225956488wmn.1 for ; Wed, 11 May 2016 09:01:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U4FU8qbA5KJaqqtYmChaTu/jKOZNU98gKQzpbtnFwto=; b=W6F6Ldsdb391sz4tzgIDk1/OFJxgY2Luutiz+Nd0tVH9H690Kxsa0SaQrZxZhThvAe NANduVtP3sKmSk0xNIjpzrDzOND/xUHvVKV7+ljv6/FGijrFjyzILwGLvZSJUiLvS3id c2MI9I0GL65zpCDGVupZVPUo2Qd/BLUIfRScUL/SK4Tf1UGXOrf46dTGAIE8B/gA0iaz dSUezyxU2sWHYXcO8E9X4ES6aUmwAfobTqg69M3mREb/mHT/iSdK66z4JHgqafCdhQRJ MCFbEzKZ++PrCEIzquESfyCuV9qCr7nXtGMzNMa8TrlUF4K4x6nqe6f64GxVJ9kNUdUU Rm4Q== X-Gm-Message-State: AOPr4FVtywlhhjKRIWBcVXtr2sht3mfpW6fLq1ItCQE7se/LTPJsKMCYVRN0Kdp2MIG76Aje+08= X-Received: by 10.28.189.138 with SMTP id n132mr5352492wmf.34.1462982491609; Wed, 11 May 2016 09:01:31 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id f11sm36699133wmf.22.2016.05.11.09.01.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 09:01:30 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Wed, 11 May 2016 18:00:51 +0200 Message-Id: <1462982452-1316-11-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462982452-1316-1-git-send-email-ard.biesheuvel@linaro.org> References: <1462982452-1316-1-git-send-email-ard.biesheuvel@linaro.org> Cc: leo.duran@amd.com Subject: [Linaro-uefi] [PATCH 10/11] Platforms/AMD/SataControllerDxe: use different segment# from actual PCI root X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" The PCI emulation code uses the same PCI segment number as the actual PCIe root bridge. Since it does not expose any actual protocols related to root bridges, this is harmless but let's use segment# 1 regardless, to prevent any confusion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c b/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c index 1ba358dc0a15..f8bba7fc904a 100644 --- a/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c +++ b/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c @@ -424,7 +424,7 @@ PciEmulationEntryPoint ( // Unique device path. CopyMem(&Private->DevicePath, &PciIoDevicePathTemplate, sizeof(PciIoDevicePathTemplate)); - Private->DevicePath.AcpiDevicePath.UID = 0; + Private->DevicePath.AcpiDevicePath.UID = 1; // Copy protocol structure CopyMem(&Private->PciIoProtocol, &PciIoTemplate, sizeof(PciIoTemplate));