From patchwork Fri Sep 29 03:20:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 114487 Delivered-To: patch@linaro.org Received: by 10.140.104.133 with SMTP id a5csp312813qgf; Thu, 28 Sep 2017 20:27:47 -0700 (PDT) X-Received: by 10.98.87.219 with SMTP id i88mr5961575pfj.81.1506655667833; Thu, 28 Sep 2017 20:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506655667; cv=none; d=google.com; s=arc-20160816; b=DsPgOBshKm73zyxu5cdey0OL0MFDEaB1DMp1jVMASJ0MISquCSQGrRL09xrhLRNxvi vd23LSBCQU7bTYyeRX8J8E1dEp+8i28QJzYWWF6VVY+N7igCp019O9MjEil65moEyXbQ LWCeuXGnelprFwXJNam4JE1uFVI//5B5R6JZUHg/XFo3ErMGnVz2165q3Gzu5a1cr+VU gqz6Jqjw27u2+zP7xm+m4x2w6LCpnY3z4k2Zn8JY5S1MeTVHZ+AYWZtomG6c8EXvTCWs vje0V03csGohj1Pq+WOfj8ZRn0Lt43IQ3rlzGOXIl3uFbihPuZUnKZYXNlJx+f2WrNmH L1hw== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=Td0nmYrNXPrJevFtvyPi4OvPScodJ7Y4iJqieeJwSGM=; b=IkSP7pV5gRBWNIJhHmGu2ukvBU5u89yzQEj2jeiCboxSPDjrFExVPcaPMIokZ4rEGO EkIgMDLyVfHeHQgZssbfe+MZcl4Y8NeDH2BCAv2EKFGka+vRhGtQjwLtZtKPZLzaj1Hr gvxAdJY13Wrd7kZknuOn6J+h/mBXVfy3RckBB3eRW5qWH8Q5kChcJ/tUCHvtYFbbxL40 euwt+8PHr8/jRmwZ5MDRg4Ivxr76LrWyURb1n7GVta0oecy7RvNXL+k3D6irucgrdHdY HRBbT6Sl2wTyXZG4eN1ijQ8rqu9+zgAMu1D/Wrmb7fwV9AoIE6YoYYxDaC99n1uZdmx2 7Hgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ddJplweO; 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 t29si2542874pfa.435.2017.09.28.20.27.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 20:27:47 -0700 (PDT) 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=ddJplweO; 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 D178E2095BB74; Thu, 28 Sep 2017 20:24:31 -0700 (PDT) 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:400e:c05::231; helo=mail-pg0-x231.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org 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) 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) 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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 = Configuration.SpaceDesp[Index].AddrRangeMin + PrivateData->ResAllocNode[Index].Length - 1; Configuration.SpaceDesp[Index].AddrLen = PrivateData->ResAllocNode[Index].Length; + Configuration.SpaceDesp[Index].AddrTranslationOffset = PrivateData->MemBase - PrivateData->PciRegionBase; } }