From nobody Mon May 6 10:00:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1506655668237730.7392591897626; Thu, 28 Sep 2017 20:27:48 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D178E2095BB74; Thu, 28 Sep 2017 20:24:31 -0700 (PDT) Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com [IPv6:2607:f8b0:400e:c05::231]) (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 AEE7220945B68 for ; Thu, 28 Sep 2017 20:24:30 -0700 (PDT) Received: by mail-pg0-x231.google.com with SMTP id v3so79236pgv.3 for ; Thu, 28 Sep 2017 20:27:46 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id r90sm5026657pfb.183.2017.09.28.20.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Sep 2017 20:27:45 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::231; helo=mail-pg0-x231.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qpe09XibnXNO42O5ThnoVdkZgB+oBL8rezZipqmYUvw=; b=ddJplweOJRqVtb4jLBfvcMAbkzqD84rfQ12Ud0Fs5LetXNQ3NUkW1uDOPjZ3nrcmh4 xuHHuKp30XDSOvsIZLp47U7hKo8jw1oqSW4oRs3veeMe5LDEAAqPqj1+BXTo9+PQpy1J xK8fBYCddzxSGAuF859SfkX8/Qws3xcFWKbng= 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; bh=qpe09XibnXNO42O5ThnoVdkZgB+oBL8rezZipqmYUvw=; b=a51vddtzO6JzZxAtiOclpOSEV17pVNsqik1Ukk+QX5PKZ5s6cLJTVGvMEPK17NxG0E i1oH3QjYRSIS4ZV3IbZMmcUxrO8NLwC6lF1t+Os3UJuuHCPBph6WQN9Zc67qn+YHXCGL vpoBkHe2W6/jqo5/ELh9DWyIbqN8zOIkfYzZXGcKQFBLY9IJuiRBZ2UlAxQ8p097waG4 ZaU5RdJrSak9yKKo1S5Gi7OLGsfIMmDyk7NSTdQG4txeZzDY1BmIorzPfKMObLZYJdCU 08zp5KCwl1JhG0WVtDk7a40HDAzyJhWlLgXT1x1DvOzit5ZHmeVz0+LMwmxAXDCP4fuB ZV2g== X-Gm-Message-State: AMCzsaUSlo/ZJitRalj8Msaz/UIhpTue7PIElwzFoRQ1xTkA40qKsULJ v0k4W+ZtaP8Gh4Qhibi43mK6Ng== X-Google-Smtp-Source: AOwi7QAA7yLdUsAvY34EsDUwI+fxQQGE+GERLqFcIjK3fs+dUTxrc0pJ3Oi4laDfmXRMhx6YxvWBpw== X-Received: by 10.84.218.131 with SMTP id r3mr48904pli.271.1506655665965; Thu, 28 Sep 2017 20:27:45 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 29 Sep 2017 11:20:48 +0800 Message-Id: <1506655248-56286-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [edk2] [PATCH edk2-platforms fix bug] Hisilicon/D03/D05: Add AddressTranslationOffset support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, ard.biesheuvel@linaro.org, zhangjinsong2@huawei.com, Yan Zhang , Heyi Guo , wanghuiqiang@huawei.com, guoheyi@huawei.com, waip23@126.com, mengfanrong@huawei.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Yan Zhang Assign valid value to AddressTranslationOffset to support address translation between domains of CPU and PCIe, which is need by GOP to enable frame buffer. This patch fix the bug: Kernel (4.12, without the vga driver) boot hang with kernel panic while kernel accesses UEFI GOP frame buffer. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yan Zhang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c b= /Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c index b57bd51..55b80aa 100644 --- a/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c +++ b/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c @@ -2316,6 +2316,7 @@ RootBridgeIoConfiguration ( } Configuration.SpaceDesp[Index].AddrRangeMax =3D Configuration.SpaceD= esp[Index].AddrRangeMin + PrivateData->ResAllocNode[Index].Length - 1; Configuration.SpaceDesp[Index].AddrLen =3D PrivateData->ResAllo= cNode[Index].Length; + Configuration.SpaceDesp[Index].AddrTranslationOffset =3D PrivateData= ->MemBase - PrivateData->PciRegionBase; } } =20 --=20 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel