From patchwork Wed Mar 20 08:08:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 160649 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp519773jad; Wed, 20 Mar 2019 01:10:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYoE7UA7KxRBSRHOfOQtWX+jy57VGBezmuJOLNzGJIyHNWOwZrcf6vB5ZGcI6gAwOFxVHV X-Received: by 2002:a65:4108:: with SMTP id w8mr6106730pgp.236.1553069429131; Wed, 20 Mar 2019 01:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553069429; cv=none; d=google.com; s=arc-20160816; b=q2P/CcZppYwf2dFM31AFjlBhGFBhUqdZlktpEUhUrKdw27OmDYTgfm1NFPL+RMbt0H wBL7PiqUlt3EFCg/dcrUWn5U7vEMKxTiHsYqRsnnmKckzoNqQii6eMl/NxObKBTjx/0g FNxOmVZpm5h0eJH7CDiw5YM5Zri7QHFzuYHCHo8bm7eJPi4jVEBsMoYVCpv4TZbiz48A LtauO02klwmKFWBneWfnQw/Ijp+iKSsp00vJfTOtrWH4XJdJjef40WjqxNe3K2U+eXyz cfeZVvMl21SGJcoWEHRRB9hiqA/ygi2zi/iAiobZle8CzIlkJQvHs0kxDeMFlAXflotN +9OQ== 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=pj09kqIMCY8u+oPkSDPJF5MDuY4qeGNRNwPL/gqOZ1k=; b=pTIzKhTWvJhnUPIqf8muzs67hNS7Q0Pxw++xPyUgCgzadAO7GtJzIFIjmYnwZkKzO7 VX18Funnb6egdjdQbudvRFoeZp2qTWFgLyqDVRfeqQ8AYQc91WT+12U7p8kL/vtj6prm Q0xGPluUb6Kho5TCvPb/+1mix5NxXfKHv6SSPq15orPNu3CJDf+HpIygTEC7TpudDWO9 GUGnAm8HF3zYS33RrUooO9L7hw0zMq9R6lwSuJmJUpmdIkfnFDV7pYyaBk2npV7DM+Pj Wems6Q67rGzX/LOdHzfHq1CSTpYU4PE0lRbgqX+mKG5WJe3VT18HdfI7TO+XgqipEgF3 oHUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V3pPfgYQ; 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 62si1371494ple.393.2019.03.20.01.10.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 01:10:29 -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=V3pPfgYQ; 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 3F5F3211E093A; Wed, 20 Mar 2019 01:10:28 -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:4864:20::442; helo=mail-pf1-x442.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 69DD9211E0927 for ; Wed, 20 Mar 2019 01:10:27 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 9so1101605pfj.13 for ; Wed, 20 Mar 2019 01:10:27 -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=D2GO8YDi/c7moPsk5SNIntPWbx5jh74iUOgZv5Kf+Lc=; b=V3pPfgYQgISA3Ne9NTmVc8L+xmzSWSOVHyq46t2SVoiM6Q29Jv9S3iirbF5Q2nwdBG 6ciIAL08krubhrQRceNOoI25s8epoEVaGn5K1PHp8goEEBvMywtHfPYNsRxRFACLNILE lSlJbBpvL23FWcU+aY1sY/6wV8BGE4Iy14Yey2n8278a0qTz+VylrF/idmKRZ6PhkPFk 1OxKJO8yiQVZ7wN29J0v3Ns92/egN8TsY813K19O5VjhsIrzFNrEHp5JRhN8GalY3OEB fe36Bi+0qYffi9CHCDxtP6+Gm+GmrcdUY3sENe8mwVknt0r1kY3gw/vJgdkGM9NxeO3N zadA== 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=D2GO8YDi/c7moPsk5SNIntPWbx5jh74iUOgZv5Kf+Lc=; b=oERCtPg/QU6oYaKhW/E51tnPzBm4WDRCz4gK8nYh38RPMgo87kXIuImF2+16H6EKU0 hkazAptqUnXyILVTJe27xxbFRMXOOBodzjJWbieW1Fh6lhP+QFxode3ZM0li1fA/NnX5 5ROGGLDxL3NnUK9HLdTkZIZcDlHChBZXi1H807kmpOlUM72igeHN/xY5HcgAbNsVAkt1 bJ4oNKAB4fQysIXfF5qfSjOeJNFJh70XrlnZ6LuwqEXDdCrJnoZcgbnaBNKCtHha6gI/ KFeK4Sf+NgUnlFyO4nfzsbCqZd75BqNcogWnPQLN0PNzvkH35odZJWMT++Z2VYW0480s Ggpw== X-Gm-Message-State: APjAAAUbIiUWwW16eqAa6AndMjYlNbJEtTIZpUCXkKSJLEW69IhEmtQL qn45u6iMInv46pI34R1Mzjo/3Q== X-Received: by 2002:a63:4542:: with SMTP id u2mr6042556pgk.291.1553069427137; Wed, 20 Mar 2019 01:10:27 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id f9sm1602796pfd.10.2019.03.20.01.10.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 01:10:26 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 20 Mar 2019 16:08:28 +0800 Message-Id: <20190320080829.52003-18-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190320080829.52003-1-ming.huang@linaro.org> References: <20190320080829.52003-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 17/18] Hisilicon/D06: Fix USB crash issue(4079) 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, john.garry@huawei.com, xiaojun2@hisilicon.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" Last patch "Modify IORT" change revision id of node type 2 to 1, and 4.19 later kernel will judge the revision id to get root pci bridge DMA informations from IORT. As Hi1620 USB 2.0 don't support 64 bit DMA, but the DMA attribute get from IORT node type 2 is 64 bit. So add _DMA method in USB pci bridge 3 and pci bridge 8 to fix usb crash when usb device is present issue. https://bugs.linaro.org/show_bug.cgi?id=4079 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Hi1620/Hi1620AcpiTables/Dsdt/Hi1620Pci.asl | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Hi1620/Hi1620AcpiTables/Dsdt/Hi1620Pci.asl b/Silicon/Hisilicon/Hi1620/Hi1620AcpiTables/Dsdt/Hi1620Pci.asl index 6dc380f27fa2..c1083dc16a2a 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620AcpiTables/Dsdt/Hi1620Pci.asl +++ b/Silicon/Hisilicon/Hi1620/Hi1620AcpiTables/Dsdt/Hi1620Pci.asl @@ -375,6 +375,29 @@ Device (PCI2) PCI_OSC_SUPPORT () + Method(_DMA, 0, Serialized) + { + Return (ResourceTemplate() + { + QWORDMemory( + ResourceConsumer, + PosDecode, // _DEC + MinFixed, // _MIF + MaxFixed, // _MAF + Prefetchable, // _MEM + ReadWrite, // _RW + 0, // _GRA + 0x00000000, // _MIN + 0xFFFFFFFF, // _MAX + 0x00000000, // _TRA + 0x100000000, // _LEN + , + , + , + ) + }) + } + Method (_STA, 0x0, NotSerialized) { Return (0xf) @@ -1077,6 +1100,29 @@ Device (PCI8) Return (0xf) } + Method(_DMA, 0, Serialized) + { + Return (ResourceTemplate() + { + QWORDMemory( + ResourceConsumer, + PosDecode, // _DEC + MinFixed, // _MIF + MaxFixed, // _MAF + Prefetchable, // _MEM + ReadWrite, // _RW + 0, // _GRA + 0x00000000, // _MIN + 0xFFFFFFFF, // _MAX + 0x00000000, // _TRA + 0x100000000, // _LEN + , + , + , + ) + }) + } + Method (_PXM, 0, NotSerialized) { Return(0x02)