Message ID | 20180627070443.42886-4-ming.huang@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp505833ljj; Wed, 27 Jun 2018 00:05:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGKLSA1mAyKKNTwo86aXPYgdjAOitGZY0FesZc7iFMYoSbDFopzlIoej6/I5ZgCRrx8g1b X-Received: by 2002:a63:2c9:: with SMTP id 192-v6mr4196548pgc.354.1530083101035; Wed, 27 Jun 2018 00:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530083101; cv=none; d=google.com; s=arc-20160816; b=T6Pyh0lVm4kXKrMg00RltxdQrntk1/5FOAX0eFcE+FVWkjIi12SuiWp4vNmISg2pZJ 3uvUCUf5d1+Lmy6NsA/5QJ2SJBF4mXz/rRmAMpLmGM6Mrkf+hkfcBfAeB00UrAIEYTXE TbSY1yvT0tQLK//SsNptCsIa4g5ke6n6RS+pioQlZtLKFFeW/5FYDKugwzHlBVsmxyd+ zD7jLBGNkUAATAHwTqy/apLZ+S+Kv7q5EHXYqq2TH1gH0/mqXSsBdhNglEK7+6fU/05i 8Fl9mcwjYOPbetsnAGlaBGLvLrDTzOfzn/4mAyt45RSsU6fQlYQYnAuCewHd56sjkYFR oGKA== 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:arc-authentication-results; bh=1WImzD11H6Gk60bK2v08yYBSiZjc5Td+wgiz/+WKy7g=; b=MlDj1WbmKeBG4gx7ND7KFEnNNECyojr5cp2dVNRDAfTkh7a2g9ADdEoZ60RLZutqVn auES7hvfES7IqqL1LB5lYUqvykTen/a1lnpqLfOQDer5vq5IwLlO8PBATWj6Xqa06wBl 9Nmzk80WZakuXFDdUaDFNw7JnUz2v7mzQnWz/0lt7ZVBbBlTsKs7kgw/3ZCYPMAV1isI msilL/5NIegCl1Td33WqQM8fHOH2V2uRtchDaxWYkGvn+PQ8hB5L6PYyNMbPg0O03KE5 XtXq5VFaGSC7/wtMhMYx3enVkh1z81g+7OQN5YU/vWlUjYet/T9HoKoGTDqnjmucIOZt v4Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KfiFwJJ9; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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: <edk2-devel-bounces@lists.01.org> Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id v18-v6si3440590plo.285.2018.06.27.00.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 00:05:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KfiFwJJ9; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 A7734202E540C; Wed, 27 Jun 2018 00:05:00 -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::242; helo=mail-pg0-x242.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (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 80266202E540B for <edk2-devel@lists.01.org>; Wed, 27 Jun 2018 00:04:59 -0700 (PDT) Received: by mail-pg0-x242.google.com with SMTP id o11-v6so532835pgv.4 for <edk2-devel@lists.01.org>; Wed, 27 Jun 2018 00:04:59 -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:in-reply-to:references; bh=buApLzbytp/eU+y5SkiUgXplzV/QuA5DH7Tx2BdUVg4=; b=KfiFwJJ9U3Ws4u8o32dCNBiMygFVDWhLGTB/ZidW481m0TWJpA59xsrMuAaGFAU/j8 4a936PktBwSdSu5ItB66QmqWXIpZblN27VJ67lE4PcLe5HbGKBhJp4DKckHbgLlLNdm+ DxjjC+6ORL97mzMKdhMscJxm9NGy4MgKkVYZw= 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=buApLzbytp/eU+y5SkiUgXplzV/QuA5DH7Tx2BdUVg4=; b=OS9i4PU1we8n2Se4h5mxCn00GXPSaSJb1zHmAeEGUXVeM8w/lbcnST7GDJLNU86uJh 6/O1jrPg9KdyD9aP9kTUxKA9Cj/tRa9il1Rf8nw3AdWU3azg6nL1UC+CMxqPsNJl4W+6 JkEwLnT0GPYC4RFETp8/cz0am8FH+D89xxKylDYrh+rPUzhqbB7ozinjLQiA0Nk8Bq1H Fgy+rKLoMaxHHX53EQxdvOIrNym2aWE5Q21wLWRlPSWxpPt+eJUt644oHDlKNcAtE1uF suPM6vsz+o7tJKt+9fdzg4OC1XyvlZE6FDDDl08dOwgpMC3mtEs3GL7qsJMool4SkeeB k66A== X-Gm-Message-State: APt69E1M4L1WvYd0sh/B/g992B29dQAmVAGb08xMmL/N8gdtOrBFV3GN fEKMyy5XrnyiwGRAEK/fQhPW3w== X-Received: by 2002:a65:5784:: with SMTP id b4-v6mr4158061pgr.315.1530083099232; Wed, 27 Jun 2018 00:04:59 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id q6-v6sm4128833pgc.21.2018.06.27.00.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 00:04:58 -0700 (PDT) From: Ming Huang <ming.huang@linaro.org> To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 27 Jun 2018 15:04:40 +0800 Message-Id: <20180627070443.42886-4-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180627070443.42886-1-ming.huang@linaro.org> References: <20180627070443.42886-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v1 3/6] Hisilicon/D0x: Fix SetAtuConfig1RW bug X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development <edk2-devel.lists.01.org> List-Unsubscribe: <https://lists.01.org/mailman/options/edk2-devel>, <mailto:edk2-devel-request@lists.01.org?subject=unsubscribe> List-Archive: <http://lists.01.org/pipermail/edk2-devel/> List-Post: <mailto:edk2-devel@lists.01.org> List-Help: <mailto:edk2-devel-request@lists.01.org?subject=help> List-Subscribe: <https://lists.01.org/mailman/listinfo/edk2-devel>, <mailto:edk2-devel-request@lists.01.org?subject=subscribe> Cc: huangming23@huawei.com, john.garry@huawei.com, Ming Huang <ming.huang@linaro.org>, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, guoheyi@huawei.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" <edk2-devel-bounces@lists.01.org> |
Series |
Improve D0x platforms and bug fix
|
expand
|
diff --git a/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c b/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c index e5f66eaa4a..3f894e8eec 100644 --- a/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c +++ b/Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c @@ -666,7 +666,7 @@ void SetAtuConfig1RW ( ) { UINTN RbPciBase = Private->RbPciBar; - UINT64 MemLimit = GetPcieCfgAddress (Private->Ecam, Private->BusLimit + 1, 0, 0, 0) - 1; + UINT64 MemLimit = GetPcieCfgAddress (Private->Ecam, Private->BusLimit, 0x1F, 0x07, 0xFFF); UINT64 Cfg1Base = GetPcieCfgAddress (Private->Ecam, Private->BusBase + 2, 0, 0, 0); MmioWrite32 (RbPciBase + IATU_OFFSET + IATU_VIEW_POINT, Index);