Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp662283pxj; Thu, 27 May 2021 08:53:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsjtbbAGzKHGYGO1juZHqbZ9/qd2fjb1yHkKdxPwgt6WzxlTWeuAU7KGWGZh/lXnxiY2cx X-Received: by 2002:a17:906:b4f:: with SMTP id v15mr2373681ejg.256.1622130781428; Thu, 27 May 2021 08:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622130781; cv=pass; d=google.com; s=arc-20160816; b=J6FfiDSzxYSwCrtTT5bHuv6SS4LnFz52gvhrUKSfVF2g2X1Zq3dKbGuI7wOFDOSDqr r3ROUvHBf/j8iLYAQT2CdzxO4gRkcqR2iC+3iCBYrxIbT/skR5n1xz4a5JfTA9GBFsdy 8gEd92nF5+Q4YudE/E45K9QziWz4IvyFFSC8QI9B0s/Rai9RYpL8Bp7K0AB7J5e6YrFv C03uuXMfzYO3PZJRwzrY8acMJ0/heV+VCT5B9kEDO2wRpEpiB5cDILSJFOJGPUvsrgy0 gEGedkuvhfNcHClmYK4nfITrBQyU4TJD3P5vSO35SmQFFeauRmctsYKPbsmg0+ZL+Kf5 msMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=poBoznlKclT7OVyqjX+EPspeaHTBbocMQsmvW4nROls=; b=MzJXHC7rinZ5hKhM3Bw7/c7gz0a27hj3Y2kr4uWnM81cKcRvldh1JiEVIFkXnS68hZ OP6uCCnMOfiyGq8EHP7j4R1OKGfGdslptUL9Tno1dlQgRbQioa/tKYwz+JT+l+3ainPR nrKfhB+VybvB2bn2TkwMytTaq0X0PyzUIGO/UV+Ju89msL1covwxiBW3tYSTB9bxX0Qi IJdjnX0avxIhzK7OWTI1Pr+mcXw3hbxc1xXAPNr3KG+YdBCJeVoYsWOrT7WwwweXSQMu qaMvOGm3NCElk8i3K1w46XixCYPWlVwkGJgLm5hLSsd5Cp+7yI1xjLnea4YYH4U31a7d DNFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=DPUtwxTM; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si2692891edp.349.2021.05.27.08.52.36; Thu, 27 May 2021 08:53:01 -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=@Nvidia.com header.s=selector2 header.b=DPUtwxTM; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234432AbhE0Lyk (ORCPT + 99 others); Thu, 27 May 2021 07:54:40 -0400 Received: from mail-mw2nam12on2072.outbound.protection.outlook.com ([40.107.244.72]:6784 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234430AbhE0Lyi (ORCPT ); Thu, 27 May 2021 07:54:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iYSUoJ9h3avMQ/SRfE4rr73XT7AY11mvf3znG08XoFJ5pky2UhKPQmuubb6XUxIo8U7xyD16z0O9PTLy6eCuWpIPSEVBzd+sd4afkmly328dblXa16IbXwwpz/aeG0bwcAJ3VTjd6ydDkgEX5ebrx4f98wTx3uwiqmIGaftm7fH1fNv6fjfPoKTnTZ9Qp4CTxloOjQ3+lXhI6b/Ml3sDnQbbko9GJ+Om3WCmy5RjFyO7uJsTuiWNOgCYeqXEqeW1iEJNYC6+u2EfQxbXTRDo2ZoWyI8MsCZEutJZP0O0B52gi3w10EtDU3x0IPJ7kvMgfSggClqykxbWnp+qZnLrcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=poBoznlKclT7OVyqjX+EPspeaHTBbocMQsmvW4nROls=; b=nivNTuuAKf7JtODZh7xUWKhERgJDcRUQ2o1QsGOREKqWHi+sZ8QYpoZ9GrGZp0zcHjBhh6sj5YdRb+pUE2JtDEGN8j3ZfJTCn2KliwFx/p3yOPrYz62zpBOOgtxe6nL37NDxL6KbAVXIvs9DWPaun9imy79azh095t3N4d3ZEB3th0IUry+8DvLB+fFKwTr3StnoO/435bNSASPEIp3cWcCZVRMjuIEMIJ84ezewEmClrMfG63aOpMjwuXyy1yAltdXGm0NZs0uqHwWL68IuH8txQRgi3dA3mBJH1dI1CDNWfOZkipiIVngRqasz28yEOA49aIo9bibpudfAHzxhtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=poBoznlKclT7OVyqjX+EPspeaHTBbocMQsmvW4nROls=; b=DPUtwxTMbOrWe1m7G35gWQ55VbWdpPDyyxiArSNLJU2WZcGJS8BAqzAw+qn2f/dS+Gu91E2D1u+9KhN2w/KKWdYq+xmI3fWk+ld8hLR9JH29y2ehgtIl/l7z6jJvP49h4Ksej5pDfpipii98HaOjmp44LuWOfbpmuGQrqnZ7w1dZM5cdM0Ic/3egI9XQwfJPQT/Pwzb5htv/nKXYXLyfkxTfUsQtRAmUYbpf6LTIlYmjfQgtyroP3E7anC07BkcGZ4+DxvtTkVrKaSX2CjWjgw4SFQuppJEkWfKSehYGTOWCUz4L4oLbN6dRFLxh+f0NKx289cGpXfxZxoS74wUQfg== Received: from DM5PR18CA0080.namprd18.prod.outlook.com (2603:10b6:3:3::18) by DM6PR12MB3737.namprd12.prod.outlook.com (2603:10b6:5:1c5::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Thu, 27 May 2021 11:53:04 +0000 Received: from DM6NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:3:3:cafe::3a) by DM5PR18CA0080.outlook.office365.com (2603:10b6:3:3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Thu, 27 May 2021 11:53:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT064.mail.protection.outlook.com (10.13.172.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4129.25 via Frontend Transport; Thu, 27 May 2021 11:53:04 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 May 2021 11:53:02 +0000 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 May 2021 11:53:02 +0000 Received: from buildserver-hdc-comms.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 May 2021 04:52:58 -0700 From: Om Prakash Singh To: , , , , CC: , , , , , Om Prakash Singh Subject: [RESEND PATCH V1 2/5] PCI: tegra: Fix MSI-X programming Date: Thu, 27 May 2021 17:22:43 +0530 Message-ID: <20210527115246.20509-3-omp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210527115246.20509-1-omp@nvidia.com> References: <20210527115246.20509-1-omp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9fd129b-e75e-4a28-1651-08d92105fc58 X-MS-TrafficTypeDiagnostic: DM6PR12MB3737: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:327; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xegRNsU5lPTsdmjOJLZHSFcPY/CIK1jQnhmGdcD41eizudW3GLeJeJZ2WMN43HjgARGrlUvO9dUGfpdJWy7o5C5rYirJ1wAH6h0DxQFZ630aiV+znYvwxHF9OY0zK8YQR8o0GBwDkb2oCQaFiVm2ghQHK0plDtZwB6T35kYe28/foURs/n7KOyCvf6DHAFy0NK54OIGuwSib8rLnF8NixXCsAfh90THaVFJt/wVGwqWmwtLhSB1c+DEtZ2PTtk2CWzL5wBYVln6uMfoy86mkJIITV6eF/otKABcei0jMutEjn4r4GINMryecr5FOSojiGNx2nV3w6bVNxFPv43IkQWIkRY2yYryWzuM5YlCBNpQKCV0cfRijhbfFACNn1/IN051hZaGnst5uu95eSxDUOPePgJV5TkHHbkgtULNHtltkpOMYGv4LSQ1cKuKG1LBcsqHjRT0At30e+TCgqSTIbZsBt3ovWEgzTXSV5kuFMpTQeSkuJTR9AuRkoQpvLCvUgOuhLGChpqgVoCxWQruVKlbw/m6k54h9XthU2f91eu0SuBAdnBAkeKT2q3VRpq03kZs2ViBTgsPSLPPJ9aXO5jqY4l+bx6fUTMgZqt5X/6QUT9kzRf/nZswPd52SHwf/1mwX7Lx4NS3PJwEtlpQrDP+17hkSYCO+x7T2P20Erus= X-Forefront-Antispam-Report: CIP:216.228.112.34;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid03.nvidia.com;CAT:NONE;SFS:(4636009)(136003)(346002)(39860400002)(376002)(396003)(46966006)(36840700001)(186003)(26005)(54906003)(336012)(2616005)(47076005)(1076003)(316002)(36906005)(478600001)(110136005)(426003)(5660300002)(8936002)(107886003)(7696005)(82310400003)(82740400003)(86362001)(83380400001)(8676002)(356005)(4326008)(36860700001)(36756003)(70586007)(2906002)(6636002)(7636003)(70206006)(6666004);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2021 11:53:04.0710 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9fd129b-e75e-4a28-1651-08d92105fc58 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.34];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3737 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lower order MSI-X address is programmed in MSIX_ADDR_MATCH_HIGH_OFF DBI register instead of higher order address. This patch fixes this programming mistake. Signed-off-by: Om Prakash Singh --- drivers/pci/controller/dwc/pcie-tegra194.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index c51d666c9d87..58fc2615014d 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -1863,7 +1863,7 @@ static void pex_ep_event_pex_rst_deassert(struct tegra_pcie_dw *pcie) val = (ep->msi_mem_phys & MSIX_ADDR_MATCH_LOW_OFF_MASK); val |= MSIX_ADDR_MATCH_LOW_OFF_EN; dw_pcie_writel_dbi(pci, MSIX_ADDR_MATCH_LOW_OFF, val); - val = (lower_32_bits(ep->msi_mem_phys) & MSIX_ADDR_MATCH_HIGH_OFF_MASK); + val = (upper_32_bits(ep->msi_mem_phys) & MSIX_ADDR_MATCH_HIGH_OFF_MASK); dw_pcie_writel_dbi(pci, MSIX_ADDR_MATCH_HIGH_OFF, val); ret = dw_pcie_ep_init_complete(ep); -- 2.17.1