Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1457597lqa; Mon, 29 Apr 2024 09:00:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWm1nrdNTTbugmPA5U7c6gCITDZ9tZZrtN8j3awjcdKSswAcvRWv6vE+/9VJyWWOm0cg0DBn9v/3tf1nC+tjZj1Mk1DP8vFqn5DHPPQHw== X-Google-Smtp-Source: AGHT+IEj3VYXGsOjoa/ZYbsmPZIdjgwyDHjoZ0g8wuWy2AL9GRovXk6opn5Cgbi+F772lejs2RdC X-Received: by 2002:a50:c314:0:b0:56e:966:be7c with SMTP id a20-20020a50c314000000b0056e0966be7cmr7884584edb.2.1714406406533; Mon, 29 Apr 2024 09:00:06 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y13-20020a50e60d000000b00571bb94168bsi13607323edm.170.2024.04.29.09.00.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 09:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=WjNBopH0; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-162637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B33B1F21D91 for ; Mon, 29 Apr 2024 16:00:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C06839F4; Mon, 29 Apr 2024 15:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="WjNBopH0" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2040.outbound.protection.outlook.com [40.107.14.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD261839F1; Mon, 29 Apr 2024 15:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.40 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714406325; cv=fail; b=jo/R0O6tCGOBr2+GwX3C9uUM7aKlCOmBJ0LeoDOIbTtk36Q5BHPckIYPnGXtEqhCYKxtOqpofvfU5OKvB7J3GmY0jXHFbZUo0bppTuFNj9a9y1WjENnTORdC0QQ0MBRMJDqmIdi+F6ciFONE07P1wj4nEZufnzFejyBLlYrGQac= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714406325; c=relaxed/simple; bh=wfLNholRfd5FiolFlawOQRgB6En09HWf2FQDj64KN+M=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=hzPtWIJj2b72vU048lZjTCtDaipMsNLPRql6Bi+sZpElIpJn22oPvculLO3FeuRoQigLoGuu5kEUpqeztElBZ4/6QZ+b0ZL0vibnCvuEqcn0752PT/lj0xV4UDG/r28y3K9HKkgtbsbYA8VR6r7aYxuABS6JvD7UsH3eBr5bjFM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=WjNBopH0; arc=fail smtp.client-ip=40.107.14.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IfcLJldZ5ApfKPTgSfdOxdohEz4C765oGhe/WBfAJXBnvR79T6FpqBVuhbKxYtf+P9WqWoyCrY1rJ7AhBRV3vP9+vYgkjQkrLAHVHFWBpF+NZIB5SnR9XHFkHmlvdW68XHuyAJqOGgjN67JJ41r9BCJrvW74E8by0iTf09fse8545pAQNN7rbUavO/GXVYcXujDYu8ZCV66odlu9jlE75UAG50A+itlut0qkyMD3uIiAtjqYiMDrDd+re29W4EbPEziao98HgVEqHkNHPrUY1xjBoQr5hCq7e9ICYjcu1yn9koXL/w68EY4CvraFY0Al7Pq0DENkMj9xLzft2SoY/w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5M353EzOKgI20Bw1YibZxDlrPVV163IfBhednIpD+DI=; b=Ywnbz9y+3DuYt9+Kxml7p76sTDU9XUEaTd5kBK0dDzs+LpUw9wjQtvPlN/yDzl6qt6DIPGYdrMw13AQ2cMWVhjdnJGmzOwD1PLEaQzbIDAdMQIb70fSHhE3OMMQtXB0zq9leFm3TxnX7qs+tByqGI0apPiN/haVdK/qthLK/xFoaQPykqglx5fiYia1cRTNXkYY1H9RDAuDbBOJ3NtsiMAz6Ufi4iKPffr0eFoWBy+X+MCm9CicIE1YgDgaWTKu9ZhtPOWP0t1K+pQV7QbVHJa6VcGRObQzRjoGJu6WJyt8xcNMGygX1Zqtldim+ZVqqHwzY+RLe2FHT5YmPNRZ1fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5M353EzOKgI20Bw1YibZxDlrPVV163IfBhednIpD+DI=; b=WjNBopH0FF8Zp9bSyiAdSVKH6i7rj/FT7ABaoJUNnEuviP4MA6iDBaRifLOFMw6pHmdXXqFbGQM6nOy00qyhAJrCUi1c6pJgsKvtDckCn98+DwWnzwxDpEFHAUWZBQGYhIUDP7R3Zr5986hmEtv4lfwH73NPko/+LzBIsTcMnnY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS8PR04MB8820.eurprd04.prod.outlook.com (2603:10a6:20b:42f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 15:58:39 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 15:58:39 +0000 Date: Mon, 29 Apr 2024 11:58:28 -0400 From: Frank Li To: Manivannan Sadhasivam Cc: Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , linux-pci@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, devicetree@vger.kernel.org, Jason Liu Subject: Re: [PATCH v3 02/11] PCI: imx6: Fix i.MX8MP PCIe EP can not trigger MSI Message-ID: References: <20240402-pci2_upstream-v3-0-803414bdb430@nxp.com> <20240402-pci2_upstream-v3-2-803414bdb430@nxp.com> <20240427092303.GG1981@thinkpad> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240427092303.GG1981@thinkpad> X-ClientProxiedBy: SJ0PR03CA0007.namprd03.prod.outlook.com (2603:10b6:a03:33a::12) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB8820:EE_ X-MS-Office365-Filtering-Correlation-Id: d5f4d3cf-9378-4468-18e5-08dc68653c5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|7416005|1800799015|52116005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?STkxOFVLY0JtMHdjREVKTFJNVDR3N2RNTm1DVVh2MlBsSVlTSUorekloUWJO?= =?utf-8?B?bkZ5RVNMb0pMbXJ5TkZ2amRST3JmZW1wUjBUY3Z4WlUydFRDYWNvQUY0ZGRn?= =?utf-8?B?citaRmIxQWdiMDN2ZjBkVEY0YkRmZGdKNXpjbnZLd1c2WlRJU1Vna0FoZFFr?= =?utf-8?B?ZDhBSFJ4TGx3WTNIVEZIQ1RXQlUwTXhIY242ODczN3RPbXQ5MkYwc0htcHAy?= =?utf-8?B?bGpQSHpTVElqK0tkbWhDWmhSZjJXVkZRd3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YOUF5Wk1Eck1VN0VtRmlaZTNrdjBBelE2?= =?utf-8?B?VzhSRlh2dzllcVRjMjV4eUF4dE1YQ0pwbVl5MGUxdmx2TmJESUZlK1V3T2M3?= =?utf-8?B?MGcyTzNFVWFRZlZhVGthcjFDWXRXTk9VRmI1ZTYwRDJXcG5BdHJwYjlOeXdv?= =?utf-8?B?SG9DdUFlM3VYMkhkcnl6L3MyaXFpOVY2ZWlGRkVQdndjTi9oVmhybFE2cDR0?= =?utf-8?B?WVk4SHpKTjBteDFsKzdFcXZIUUZOZmxpcUltTUZ1cWt0T2psY1BJTkh5Kzl2?= =?utf-8?B?QnFySWNqdmtWVHluT1pweXpXQ2hqaDBRRW15UXhldGZnaGcwcTQ3RXk1SkVs?= =?utf-8?B?TGRkSHQ0dlgrNFZhcEVtNWVjallTTEN5S1hMeGEya2tCOXd4RThLUURYczlW?= =?utf-8?B?WlphOGV0VjM2ZnovdUpaL1BGeG1keUtTbFQweDJLb1h1WUJSYkhnd1BBc0JN?= =?utf-8?B?RTJYemtCaEl6UC9VODYrTlVOYWdpTjV5MFpyMUJRTThQMG9MSTN5eU4zWVhY?= =?utf-8?B?YkZXaDUxQldURnR3ZlAxbXlWWVJXdk1nR3g4THJpV255UXA0OVFvUnZhMGZD?= =?utf-8?B?UE9wK2ZJdjkwU1RLZFkrc0c3MUlROXlpK3M0SHhXcnJNZGxJMlZPZXRLRDRD?= =?utf-8?B?cDFmbnZYVy9IcS9iL2o1dz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z25hazNGdWl1WlhMVHlGSm5McnIrdW55WkZONlRFUFY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ajhFcFFBVmlIZVQ3NUNqOUlqaG8wQ0ZIMzNQ?= =?utf-8?B?dU1pc1p2bmM4YTh1SEROalZlbXRZVy82VHVtR2tjYmNwNENNeWMwcXJ1Yjdp?= =?utf-8?B?YkkxYXBBRTlNdHZPU0gxOE9NdUkrZFVJeXQ4L04wbjRJcjFGaXJjR1BhNDNS?= =?utf-8?B?M1pndzZaU28zWUo1eTBhamgvNmw0a1Rxd2FWTVprMHRmdWxHQ3JFWFZzWW5z?= =?utf-8?B?WWNiVmlIVHl4V1Fja0o3eFVVVUU1aEYwckN3d1c1TGJ3emtYOXE4Y3QxbDRz?= =?utf-8?Q?wVdkNdOluGMjr72VwMcjTJov8?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5f4d3cf-9378-4468-18e5-08dc68653c5a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 15:58:39.4398 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0WNVhAlEBmrA+UMCtiUPM55zWdy3MiVZgt/JkdonnevIQ7t/xSbrhTCk/36Z8OwCNk/TVIuutBSsV7Za13v3vQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8820 On Sat, Apr 27, 2024 at 02:53:03PM +0530, Manivannan Sadhasivam wrote: > On Tue, Apr 02, 2024 at 10:33:38AM -0400, Frank Li wrote: > > From: Richard Zhu > > > > Fix i.MX8MP PCIe EP can't trigger MSI issue. > > There is one 64Kbytes minimal requirement on i.MX8M PCIe outbound > > region configuration. > > > > EP uses Bar0 to set the outboud region to configure the MSI setting. > > I don't understand this statement. How EP can use BAR0 for MSI? MSIs are > triggered using outbound window memory while BARs are mapped as inbound. > > - Mani Let's rewrite commit message. PCI: imx6: Fix i.MX8MP PCIe EP's occasional failure to trigger MSI i.MX8MP PCIe EP requires 64KB alignment. MSI triggering may fail if the outbound MSI memory region (ep->msi_mem) is not aligned to 64KB. In dw_pcie_ep_init(): ep->msi_mem = pci_epc_mem_alloc_addr(epc, &ep->msi_mem_phys, epc->mem->window.page_size); Set ep->page_size to match drvdata::epc_features::align since different SOCs have different alignment requirements. Frank > > > Set the page_size to "epc_features->align" to meet the requirement, > > let the MSI can be triggered successfully. > > > > Fixes: 1bd0d43dcf3b ("PCI: imx6: Clean up addr_space retrieval code") > > Signed-off-by: Richard Zhu > > Acked-by: Jason Liu > > Signed-off-by: Frank Li > > --- > > drivers/pci/controller/dwc/pci-imx6.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c > > index e43eda6b33ca7..6c4d25b92225e 100644 > > --- a/drivers/pci/controller/dwc/pci-imx6.c > > +++ b/drivers/pci/controller/dwc/pci-imx6.c > > @@ -1118,6 +1118,8 @@ static int imx6_add_pcie_ep(struct imx6_pcie *imx6_pcie, > > if (imx6_check_flag(imx6_pcie, IMX6_PCIE_FLAG_SUPPORT_64BIT)) > > dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); > > > > + ep->page_size = imx6_pcie->drvdata->epc_features->align; > > + > > ret = dw_pcie_ep_init(ep); > > if (ret) { > > dev_err(dev, "failed to initialize endpoint\n"); > > > > -- > > 2.34.1 > > > > -- > மணிவண்ணன் சதாசிவம்