Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3890575pxu; Tue, 20 Oct 2020 03:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxijn1L0ug+37UH3a2QPZYc48Rv9dhswPs3c4gbK4bbdHMqpeohaKy00f4wQaG57gMHkZU X-Received: by 2002:aa7:c305:: with SMTP id l5mr1940177edq.364.1603189027178; Tue, 20 Oct 2020 03:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603189027; cv=none; d=google.com; s=arc-20160816; b=GpwyTneJUip6ZMWDbIQWZmops+RvXOrv4JzjFp+UfF6i1osSk/lxRuUtRK8riDVy6R zkCa5e01lW9z/sl1OXBlM0Znor18KelDYKMBLXgX9UCU8TmgDHWM1nf+q53jauGPgC2r kmzFN5M9rx1d1Bg2o01EZ5Zp5UcG3CkObIRdxCMBxBXo8idnRtx6FSHAws18BLmaFsuE TW3eBJXYU0htDlR8rfJ+4KSZJldcVcjl9wtZF1ULOSiFM/LH0zycnKzpA4fLz9cPQgeX tL9KnbAFJ/2GDolME668fEgzxPY2Ans+Ws0S1m4UbIdL+Lh/9no6LWMUj7cstoU7tPe7 T0ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=TS5AoPVV1Gz5Y30jd5xdWJlQjaCcpnodCnfamrTG5IA=; b=k3K3WEgTs4+HXzW+D5S949LRJd4DPXGwoZLKLOtBzlGc9j1QdHQl0L39LvoHfrZkTU ye7bAxL2PAkBcn6x0FdFo7jXelP1h+pbTIcJoQ+afL+672pp9GZTA26t+Ah+gaj01KvT KcN9OymQQCkgrjfojW6+7vDej6QIgxQjcZEjdqry0MuzpZvDMK9cj6oSHL8wEauOdUWD WN2Yx2BSQX2mJWEXy3rKkpPaKeYnPrkSrgjBmftjtLN3fqmx9/4C5prjCJDyX0iVA0H1 6/vXEbo4j20vEnocYsH1+w17TdpbryrmqBe3zRCJFic/tm0y3MBCI4nh88noRoiFQrVH 6Qtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Hue27uv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk14si905868ejb.56.2020.10.20.03.16.45; Tue, 20 Oct 2020 03:17:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Hue27uv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733225AbgJTIIE (ORCPT + 99 others); Tue, 20 Oct 2020 04:08:04 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45778 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728807AbgJTIIE (ORCPT ); Tue, 20 Oct 2020 04:08:04 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09K87q5W050301; Tue, 20 Oct 2020 03:07:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1603181272; bh=TS5AoPVV1Gz5Y30jd5xdWJlQjaCcpnodCnfamrTG5IA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Hue27uv5bcWUKWp508j+p0ooMMqNQL4OO2WLEDrPCOggqVXwr8050WkTtHj1XwJKE C468UtwZV3B1Z/CTYvlxFjx48xLImJZUfAklHSGbyRxoKSwb28ykWKRDvW4dmV36bp gizleSzKCHcs8yKKLiArCTKWxcEerv+x6u7Ze2fY= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09K87qG7080464 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Oct 2020 03:07:52 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 20 Oct 2020 03:07:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 20 Oct 2020 03:07:52 -0500 Received: from [10.250.234.189] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09K87QtZ048612; Tue, 20 Oct 2020 03:07:30 -0500 Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops To: Lorenzo Pieralisi , "Z.q. Hou" CC: Rob Herring , Gustavo Pimentel , "linux-kernel@vger.kernel.org" , PCI , Bjorn Helgaas , Michael Walle , Ard Biesheuvel References: <20200928093911.GB12010@e121166-lin.cambridge.arm.com> <9ac53f04-f2e8-c5f9-e1f7-e54270ec55a0@ti.com> <67ac959f-561e-d1a0-2d89-9a85d5f92c72@ti.com> <20201019161311.GA9813@e121166-lin.cambridge.arm.com> From: Kishon Vijay Abraham I Message-ID: <55d655b2-ff61-e721-33de-0d3b2e693291@ti.com> Date: Tue, 20 Oct 2020 13:37:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201019161311.GA9813@e121166-lin.cambridge.arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lorenzo, On 19/10/20 9:43 pm, Lorenzo Pieralisi wrote: > On Mon, Oct 12, 2020 at 04:41:11AM +0000, Z.q. Hou wrote: > > [...] > >>>>> Yeah, I don't see any registers in the DRA7x PCIe wrapper for >>>>> disabling error forwarding. >>>> >>>> It's a DWC port logic register AFAICT, but perhaps not present in all >>> versions. >>> >>> Okay. I see there's a register PCIECTRL_PL_AXIS_SLV_ERR_RESP which has a >>> reset value of 0. >>> >>> It has four bit-fields, RESET_TIMEOUT_ERR_MAP, NO_VID_ERR_MAP, >>> DBI_ERR_MAP and SLAVE_ERR_MAP. I'm not seeing any difference in >>> behavior if I set all these bits. Maybe it requires platform support too. I'll >>> check this with our design team. >> >> In DWC v4.40a databook, there is a bit AMBA_ERROR_RESPONSE_GLOBAL >> which controls if enable the error forwarding. The *MAP bits only >> determine which error (SLVERR or DECERR) will be forwarded to AXI/AHB >> bus. > > I have not seen a follow-up to this but I would like to, still keen > on avoiding this patch if possible - if this is port logic it should > be common across controllers implementations I assume. > > Gustavo, Kishon ? Atleast in the TI DRA7 TRM, I could see only PCIECTRL_PL_AXIS_SLV_ERR_RESP and PCIECTRL_PL_AXIS_SLV_TIMEOUT register but no global error response bit. I'd have expected configuring SLV_ERR_RESP would have disabled error forwarding, but I don't see any change in behavior if I modify the value of PCIECTRL_PL_AXIS_SLV_ERR_RESP. TI PCIe controller in DRA7 is not directly connected to AXI/AHB but there is an intermediary bridge. So I suspect there is some issue on how the controller is integrated in TI platform. Since the board hangs, I couldn't get lot of visibility of controller state. Thanks Kishon