Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2032397pja; Thu, 26 Mar 2020 08:37:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vty0xBGiv8zk9lWtw7sQualTt+trihLTRuYdI0n/y23ZU1BLgMBRE0N9AXrR4J9rQMp5q07 X-Received: by 2002:a05:6830:2147:: with SMTP id r7mr808574otd.59.1585237062178; Thu, 26 Mar 2020 08:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585237062; cv=none; d=google.com; s=arc-20160816; b=ktSeaXBnKbT+udYqcDekmC9marIWdwZMPiE/zSV1oCopVqjVBr7lAthT/NDwznx7hv 7zzP7FDEtvChjswmbiZYKhFO/rsTLPtgwUisIICqsuW5B7pq6dOd33+calu3HG8nkeF+ On36pwa1FCJikbZgYNi9NqXAqmNOL6yo9Iq4l+eqGzaQYMb8C6g57cDGbWvDp3J4QnTx oYTGcNJMKeqeWf8S7tjflR3czeDMJla2gygEc0Rut+KrtdFxtN3It6MP/y8gzS4Lb/CP 6pe/+0rQXhZ+UrxCjXm2IIbTd37EWTe07mjLo+vAXdPkt6OcbmhvMQ/QXVgzp4rNyR/U cmMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=QpBB8pYOdGK9hg75PQG+19weQER/CWnGNCd7wQxPvU4=; b=kOMoKE868sPyzTKjLkBSTXyxEPhcr9fQ4WEuvDSldrecXUcKLixK9SMxyadpgoay5/ xTo14chc/dab4RELJYLlE3Drzf5fuRsgv0tx69c4VOJS/7F9DnvUNWlc3EdlHel4Oiv1 S4xITDfLxvOjc9FUq0D6z0UNRf4sZoasp3a+Qmxbz3ZPPYQlZgDI6VvrVa+SNuIzlsmN BrL9Adn8i8L5NfxtiehBr5GUoeZCMMwEf3R4iZvPemQvK3vbzx9jFeMmVtahnROJFZiR HO9Rl5PDpdZim5ZEIJ0ASfRKMwaq6S+BtX21x3jbR7eijGY5EYdmjFCFcsPaBraulTIO 6Y1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tc/r24/4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si1217429otj.33.2020.03.26.08.37.24; Thu, 26 Mar 2020 08:37:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tc/r24/4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728488AbgCZPdW (ORCPT + 99 others); Thu, 26 Mar 2020 11:33:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:45226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgCZPdV (ORCPT ); Thu, 26 Mar 2020 11:33:21 -0400 Received: from localhost (mobile-166-175-186-165.mycingular.net [166.175.186.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85D6B20714; Thu, 26 Mar 2020 15:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585236800; bh=rL2Y2Gw09fCtL1rPs0/4tgTFjsRoiwOhxSOS+UbuO0g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=tc/r24/4d4omGY37S1degx6anfIEBJljci+J+TuGPiIMwuYGmuO2+3C/UmF2nOkVD aTp5kG59TgMDMJ0FslHmA2/odVQzD3TJbhiIN/IECjRmXtivUcw5J4YFGCtSLq7H9D TRXkG4wvgU8L8KF9BUScx8g3rVReuXqjxKw52aXs= Date: Thu, 26 Mar 2020 10:33:18 -0500 From: Bjorn Helgaas To: Srinath Mannam Cc: Lorenzo Pieralisi , Florian Fainelli , Ray Jui , Andrew Murray , bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Roman Bacik Subject: Re: [PATCH 2/3] PCI: iproc: fix invalidating PAXB address mapping Message-ID: <20200326153318.GA11697@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585206447-1363-3-git-send-email-srinath.mannam@broadcom.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 12:37:26PM +0530, Srinath Mannam wrote: > From: Roman Bacik > > Second stage bootloader prior to Linux boot may use all inbound windows > including IARR1/IMAP1. We need to ensure all previous configuration of > inbound windows are invalidated during the initialization stage of the > Linux iProc PCIe driver. Add fix to invalidate IARR1/IMAP1 because it was > missed in previous patch. > > Fixes: 9415743e4c8a ("PCI: iproc: Invalidate PAXB address mapping") > Signed-off-by: Roman Bacik > --- > drivers/pci/controller/pcie-iproc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c > index 6972ca4..e7f0d58 100644 > --- a/drivers/pci/controller/pcie-iproc.c > +++ b/drivers/pci/controller/pcie-iproc.c > @@ -351,6 +351,8 @@ static const u16 iproc_pcie_reg_paxb_v2[IPROC_PCIE_MAX_NUM_REG] = { > [IPROC_PCIE_OMAP3] = 0xdf8, > [IPROC_PCIE_IARR0] = 0xd00, > [IPROC_PCIE_IMAP0] = 0xc00, > + [IPROC_PCIE_IARR1] = 0xd08, > + [IPROC_PCIE_IMAP1] = 0xd70, And paxb_v2_ib_map[] has a comment saying "IARR1/IMAP1 (currently unused)". Is that comment now wrong? > [IPROC_PCIE_IARR2] = 0xd10, > [IPROC_PCIE_IMAP2] = 0xcc0, > [IPROC_PCIE_IARR3] = 0xe00, > -- > 2.7.4 >