Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1430985ybb; Thu, 26 Mar 2020 00:08:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtVUT00909CCnE4LqFvUdofFU6bh9lc/sSSKKg77c9Y0fFiaw05sbxMtxJIUI6GDd2mn2fK X-Received: by 2002:aca:b308:: with SMTP id c8mr838828oif.106.1585206527808; Thu, 26 Mar 2020 00:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585206527; cv=none; d=google.com; s=arc-20160816; b=WcK7pE+ZtnCL0vURSkwFiRI91vsvvGaiZ+pJrhYPSAJhPNWYEnkQPMKPATf19Krcwx Yg2vXY++zKVBHqH0EXyUZ8TFBLtHBvHgfuodM/E4VPTMmvOWZUjOmyFjAk9EWli6jrgt ZCtvqnmfQdDdP4eBk0FPOi4MIaVswAWM9NhirIOgjcPhnnNlK1wcITjXd91MvqAsrWAk caprXwvSh5BBt23JfLilqAJ3M3DyIVRA9ledJ63wIsKVWM56J1GbqSNBQlpguo8tWabu 0ALIrk3AXwzxKIXcbkWeciNIx6LJE/OG2fmY/zR2l2kkDRBV9YyVJNJeXm/X/B227Z4d OQBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jPRrwsRUkZnW1BFu5Zfyz0cjxU3qvYq6Y7T8MRQYSdQ=; b=kn+3SwxFZadORwiAA1syGDi+nv1MwIBJTks0pAXNPpFqEqNNrwaX6RoV9CRLxNqrmW /g3G2M5NP/SO/VdrRAvWJXmJe92Y+DtJK1CW1fNqRA/6l3y1BP/AhzbqRdw68d8I6uu1 Bs1PQ+vyAijiEHNKyp74U9eqJg/AzsiskaCJaiYPSGYrY5e7zNc9jdFwwAedTJRiuj+X lzJrYyQjrfHVIjtAC3+bjVrBpmngAuZvzlE7KAU7k7/7G+UNHhI4vU5PM5UHmV/ljspR LLjsJgMFnAY0Zvu8Kx84GJH3uDV4JKk0bzNdddwVuUTHXIhnPFVeDysdWWAEZia7fy2I hXXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=efWdxf0x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 50si739761otv.259.2020.03.26.00.08.35; Thu, 26 Mar 2020 00:08:47 -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=@broadcom.com header.s=google header.b=efWdxf0x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbgCZHIK (ORCPT + 99 others); Thu, 26 Mar 2020 03:08:10 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34073 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727721AbgCZHIJ (ORCPT ); Thu, 26 Mar 2020 03:08:09 -0400 Received: by mail-wm1-f67.google.com with SMTP id 26so6661372wmk.1 for ; Thu, 26 Mar 2020 00:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jPRrwsRUkZnW1BFu5Zfyz0cjxU3qvYq6Y7T8MRQYSdQ=; b=efWdxf0xIIzGwlTo3B7F4lTNocP3UhjzgR/Sd9/0GFBKhpHka8s/Y9kODVon2GS7vJ pq9EHgDW6S9M0akfRcUHx/NMcDKKRj6juykMcA7D3uVqJmxsJ+efqUgMmf6D0sjPFBmO kqALyIdMWtBPhTz/J0uQ2VxJsTEyd22LRi0eI= 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=jPRrwsRUkZnW1BFu5Zfyz0cjxU3qvYq6Y7T8MRQYSdQ=; b=RII4xmcNXUyw/FBaI9tEsoZv91PBo9+Juln3Su6w0DCm16x6umSEsPGSV9YR0X998D tkuIHuAuPzWpe+95D3bf04a2TIC3jMwmV63EyWWh8bEHKO8BqiHTFq9ORknWXYg2R7cb uKXrpQinTQ/hij+2pinjQa3KzWJxeJ/+rv7wWiUWHVQsq93MK7wccRYJfuteOPI3DUEe DO5Ajl6EuuIM9vwuZSSttIbqRSuLgtU6bjmzFy6mTTekDpZ/oLVAqrDwgHTnc7voKoh3 Paik58v+aVcur7Ylz0OckbFmY6ixDdQmRrlgIIDQHXn2xqEFLof4wwQoBt0lidrZ6RWe EIrg== X-Gm-Message-State: ANhLgQ0U341px9u6mKomfFAH2yqruFErOA1LFbIMKt09yEm7cSJCBbOg Ju+7wav2xcdyRdYMllO8AQBXgw== X-Received: by 2002:a1c:7d08:: with SMTP id y8mr1529567wmc.67.1585206487385; Thu, 26 Mar 2020 00:08:07 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id u8sm2129446wrn.69.2020.03.26.00.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2020 00:08:06 -0700 (PDT) From: Srinath Mannam To: Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , Ray Jui , Andrew Murray Cc: 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: [PATCH 2/3] PCI: iproc: fix invalidating PAXB address mapping Date: Thu, 26 Mar 2020 12:37:26 +0530 Message-Id: <1585206447-1363-3-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1585206447-1363-1-git-send-email-srinath.mannam@broadcom.com> References: <1585206447-1363-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, [IPROC_PCIE_IARR2] = 0xd10, [IPROC_PCIE_IMAP2] = 0xcc0, [IPROC_PCIE_IARR3] = 0xe00, -- 2.7.4