Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5519045pxj; Wed, 23 Jun 2021 03:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOjuYFsqprdgFucAmncK8cg5Z+86ZnFfnfich4HFsftkTlqR+1Tu5vXGMXCF2QBUGGlWut X-Received: by 2002:a17:907:62a5:: with SMTP id nd37mr9062746ejc.148.1624442826671; Wed, 23 Jun 2021 03:07:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624442826; cv=pass; d=google.com; s=arc-20160816; b=0NSWTxis7+c2Z4BqeI8j20QC+31+p4H9YZLZ7z8iqW8RL9UjMc4BAvv+E7zhC1Oo58 isktlPaagVgGjE+QvjUpEHuWOuqmJyIPt9ZULf6CJyrjq8MIi8gaktl8OW6JGILP9mxG CUcyQWVly6sa6xRloDaL93K/vWp+Ch6VkNoPRZqzaYPpK+kEKtp0lMiXt0jVAPfcbIeY j2qIssGomPaESO23muomIUSpBAj+2WqmOx6z44fHjMweNWjnvP1MsqbwcdLB7Qfu8mcE RKy9aE4FO9I104Y/CELhmbKx+EwgEyYu7tq2FlQh5vHYhKvgu2PylLDHEs+3hXRmWcsH Crzw== 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=xazu/TsVsCTn8lL338bBSD847Z1w1P6HYqCczQ3CoWI=; b=OkVA3CTS2tXCV6fFAbp9faOYwQiv+EF4l0Hvjo7yGZqzYaUIX6dJ8mV5PWpcDMHckI 9nMrym/nj2QAkQBCUNusJBzpLVY3x1csXZrVM9Jxy+IPehCkwj1YOIywUizsYRRFZXD+ /Fj645ZWAXLVMFSzoLSIJiCgZ28N3iP5N1RWM9F77tKdASYM5OB5jZxGBWiCawXgrI/l U2aagE7JYoBeMnUuidDlPMhYPYiItcTiRC0W4067YFpLkM4taTGFyFL7JPscr/oL9cT2 UdIRUSlBJi4coFRDXy8IBk/zoAifhavsFd+4FWfNyVMubrIpOUIfwh30hhqcFIsyk55g qvlw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=G5npGtGw; 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 ay24si24257228edb.162.2021.06.23.03.06.44; Wed, 23 Jun 2021 03:07:06 -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=G5npGtGw; 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 S230380AbhFWKIC (ORCPT + 99 others); Wed, 23 Jun 2021 06:08:02 -0400 Received: from mail-bn1nam07on2053.outbound.protection.outlook.com ([40.107.212.53]:58970 "EHLO NAM02-BN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230161AbhFWKIA (ORCPT ); Wed, 23 Jun 2021 06:08:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hNzaTxzFdfnnO9r5xRGWv4QAjHBOibMmMmXMa3Cuh6s2Ukf0pcYcwTXFOaKdFuyVXjeHyPCZTKw6sADgx0AaIhMGlO2aOrgGs6pMkdZwLIt4ImzefJSUAwSrlK8AoTys8v99c3zoqFab2jQkUqvLtCtZZfY75hSQs3nib712yDG1I0/q+cQbKEsFSI2sa4TvMDRtgjFZ+Au4G1ylC2Db/MQxrvSAcho3tgjKqCHoMWZVDPjcYSA76TtOxmajAmw/jqipEh2RvF3lm0qNri5L6IUEXxG0i4JYjskAVfCogHRt5Ilhgh4TAJ5Vb8Ekc4E0ux/gV9v1/E/sR44XhzEcbw== 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=xazu/TsVsCTn8lL338bBSD847Z1w1P6HYqCczQ3CoWI=; b=l35cLTb+86K21caDaFAnGt5Nxt2d0Y2xhGXEPfoUlLiH0wLg6TDEe+4i5EPRGEu05+KTBvlFCv5Lohlc8nVMxrgxXWkI8nuWuI011UhhbqLZyCRwsRa+WriLTlO4R+tX5ViSKXQZytNVRCaVzzlovWd9JaRvxIzzJxe9agS3NtKEKNaZxrucJjONbmrikdptoUcCv0HxYfLw0wWUJn9khdBfoPzBZKAAL/M3yqz2iawKsENk091lC0nSedzYUPOosS0xF6z+5AhE01WWPHRxO6EIrMbKghtFO+cWjBJYNRO9+UgXP1EbiWOJiv2KaIoWJYpRQ1hSENsYFVT2mFWuww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=vger.kernel.org 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=xazu/TsVsCTn8lL338bBSD847Z1w1P6HYqCczQ3CoWI=; b=G5npGtGwEXFsImJEvAbrht5upE43BWHTwGRaNOojze+lusOp0Ueg2IGzZIgIaF3uz88dkYrEdiZIyico/TBaZVFR1TN9cI1bzra3OPmQ7/TVp7GZMewsVSWER1k17Oe5i2jSCw2+cGmQujmLQoWWje0Nbz4oQ4JEgN+meoA5upJRXnUREsWuMTLoIsuubG4RgQwUYaz0ohpWfIw1UjybLRTsjK00qYabtP0u0WW/qQmH1V4uRuJQIJOHK7IZy+6N1NXC0X0us5qtJ0de6R9k8gcBEakohv/GtBWMJqvZamniiQ2y3g4Q7+SYnwL26rSRU5xEuWyy2W6JA2rr4xUkjA== Received: from MWHPR08CA0059.namprd08.prod.outlook.com (2603:10b6:300:c0::33) by BY5PR12MB3825.namprd12.prod.outlook.com (2603:10b6:a03:1a2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16; Wed, 23 Jun 2021 10:05:41 +0000 Received: from CO1NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:300:c0:cafe::8) by MWHPR08CA0059.outlook.office365.com (2603:10b6:300:c0::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Wed, 23 Jun 2021 10:05:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 CO1NAM11FT044.mail.protection.outlook.com (10.13.175.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4264.18 via Frontend Transport; Wed, 23 Jun 2021 10:05:40 +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; Wed, 23 Jun 2021 10:05:40 +0000 Received: from buildserver-hdc-comms.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 23 Jun 2021 10:05:36 +0000 From: Om Prakash Singh To: , , , , , , CC: , , , , , Om Prakash Singh Subject: [PATCH V3 2/5] PCI: tegra194: Fix MSI-X programming Date: Wed, 23 Jun 2021 15:35:22 +0530 Message-ID: <20210623100525.19944-3-omp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210623100525.19944-1-omp@nvidia.com> References: <20210623100525.19944-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: 05a13b50-208a-46a3-2d96-08d9362e750f X-MS-TrafficTypeDiagnostic: BY5PR12MB3825: 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: es80HArPhAJkxHW4dXTXGfOwnGcsHJxfFfcChbob2ZA+IftmDLciAZFahY1TMedI9pk9GG34LOIyhQwe5Ymbjb2kshec7eL/naKabwR8zinb9PozGsK4nXfSEAGGoFqCemG1evVyhZBV0fp0gh5xHVui9v6hv7wdc6ciUMljP1292aXnshVm/lUn0q6hbXBvp+R1PNz/s/NyDsLCPzmIO7CI7HJgNFUwiW7IEm+4/6bMPxn07qHBRVOInPuKkXkzSSh/cttoLIiO1XRIH0nuaNeaM1WRQ3TJcHhs5G2+VLsafWW2Yf/NYfAyPRtRau3nHIMT622KzdxE1LuVThHj7hsix4quKeLBU+fdDPgDKzp0RJr9Y3JwkB6fir6vPLsJQyatMBEdWYvoKb4leOD+nvbU6T57JFgjkNOQufYpJeBG3d4hJpxmJAoNVxQo7pmuLRWfRWaD4H0xRg3wd6vCc51gI6katzs0bJd/X0K/elErc0tfVGjDsNZ9pmKI5I+3bO4P/W5nBUvBJ/SgyluN8LA96b3lyrQS5Me+P5JtIb+GSFM+oZa3OyDhBHlvnqaeDXObh2enekGwxqQP2YKU77Njypp40TDe9W3As2yNGHO9K5fhFTUUAvhlr0+Z4ojycOK06XX4TjTjzEHVrKgtmjuUkkjyVVXhjp58kyQU6II= 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)(396003)(39860400002)(136003)(346002)(376002)(36840700001)(46966006)(7636003)(8936002)(7696005)(356005)(8676002)(83380400001)(36860700001)(110136005)(82740400003)(316002)(26005)(82310400003)(186003)(6636002)(47076005)(2906002)(36906005)(1076003)(426003)(2616005)(70206006)(70586007)(6666004)(86362001)(54906003)(478600001)(4326008)(36756003)(5660300002)(107886003)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2021 10:05:40.8820 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 05a13b50-208a-46a3-2d96-08d9362e750f 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: CO1NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB3825 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 Reviewed-by: Bjorn Helgaas Acked-by: Vidya Sagar --- 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 6f388523bffe..66e00b276cd3 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