From patchwork Thu Jun 27 12:09:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zheng.dongxiong" X-Patchwork-Id: 13714307 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2152.outbound.protection.outlook.com [40.92.62.152]) (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 7B885154BE8; Thu, 27 Jun 2024 12:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.62.152 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719490205; cv=fail; b=hYWjIqRV9y3sUMhYjDoOjoe7ulkTr680QGSNnLjPCG54stq8igA/HdANCYHOenmUivwF3tUrQOgWONpaULf2Nr3SY85KHyeSdpew4dqa3fFHvISSRDp3oLNhpnQmaZ6fXbJ+EwLrcgKJOl3BeSRJ2LgS6xrcH/jI5a/xXDD9u1Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719490205; c=relaxed/simple; bh=/lYJeNCa440ckCAbiBKuMEotJOEQSOJMZumXJAtsNKo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=rY48KBT9wxl1jZCjQvs4eFj2p4A4hZ9nQf2NSr4gqOYleqDS+1VbgHWqQy72/vsK/sPMupziuKEGl9DlIGsBPf7TCuA+LC1YEyZBmsFje51FnftGA/McagmglFz3XE3i4gcAKjz4kGqzRIKm96OeRS3AVCLoLWP0W9h1zBZO484= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=OExd9x+i; arc=fail smtp.client-ip=40.92.62.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="OExd9x+i" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0IGx/hGnUEN6hUhRWsf9VWLL99NjH00+cnNW+cuEYd0n+Plf2sThew5fJc4m7FUzBKvpLyRFbiCl5aulyRJUaEMRU2pdvrOuXt3SuI9MQqbSioELooLS03Ixzn9t1QA45BarbGaH/Qi/CtfbIR5vITyho/EpWr0wEY7PMjL59Mv/Qv5NruP/7+EqrTcJ7YtPV6jK0WkgTeBX1HW3LJ3L7Sz/iJ8AAL/R0y/qn9UkOEdQ/2VmUU+0oAB56aAYtrkoSIvbmHGvofmC3tQEkYhqaAtqtfLUQCdeUgdc1EPC7MrUb1/5WyKtFCmQaK0zV61JFMHzzw60ljqPfunxHM//g== 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=e/I3G0oq+GfXcfUIg6o292lWiODPBPYER2+MOKhmtzU=; b=DkYgALcDdYBkO0VvE6vkbhIam4RXXR6v79wxxPWL5Ri2tYfryied87/gih+JyJXdJYk4Oj43jiGdi2cdd2O5eso42pm98blxEqL/iKxY8pxne8UHFyxts4yXwGTKhBDoMXIpvsd8emSa3D7Z3kYJsJiSCIY/epiHPSNZfXtCoTSX+43Tq6nJjMujIzSxpv1kT0SQ6g17Ek+SqhNX4nCn/58G660tAiWrv+Z6RMj7z7ZJVd+WSdrBv1DUqRKunfyB0Mpy+4CNqC3BL5OZ/5PEuWiWfzbrGs2dNMIpE91esLnN4n13wXoQhaHbdeo/MYE4LNNLOcWHwe+iDEf58RIZ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e/I3G0oq+GfXcfUIg6o292lWiODPBPYER2+MOKhmtzU=; b=OExd9x+il14crkZh1xnTW3mGvMPcdHGf9vbEmNJuDrq9gXhxOlmWemeyMGZhpEvXL67pXnRxiAkPDrNouDHqf0JLFWT7DZLKP3zttCxZ+OzQgazI/TwqhOmx5NYqc1y8Y5TqRzapjuwefomhQpq0nnkjHyagg4aLAWx1WdfIOP21FsL8Pd+m+CVDLrayQgpnQf3Y9nUC6ehGSI5RJtqkARJjzP9FKvqq0aEF8D/v2fBVb+yQ6qrBmnQK7aC7PhXm3DoSI9r3avC6An9gnAiW9CkueurH37YfW9yJuwZ3RCqk1lGWQrqhvlmtDsVcTtxfbNbf3aNzTrgSR/oBRzKwmQ== Received: from SYBP282MB2620.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:117::11) by SY7P282MB4753.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:273::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.35; Thu, 27 Jun 2024 12:09:59 +0000 Received: from SYBP282MB2620.AUSP282.PROD.OUTLOOK.COM ([fe80::aaba:e4e7:4639:7a7e]) by SYBP282MB2620.AUSP282.PROD.OUTLOOK.COM ([fe80::aaba:e4e7:4639:7a7e%7]) with mapi id 15.20.7698.033; Thu, 27 Jun 2024 12:09:59 +0000 From: "zheng.dongxiong" To: manivannan.sadhasivam@linaro.org, fancer.lancer@gmail.com, vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, "zheng.dongxiong" Subject: [PATCH 2/2] damengine: dw-edma: Add msi wartermark configuration Date: Thu, 27 Jun 2024 20:09:47 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240627120947.11677-1-zheng.dongxiong@outlook.com> References: <20240627120947.11677-1-zheng.dongxiong@outlook.com> X-TMN: [5W9/pyElRSqS/5bp+b6YduCcrXUw+J2l] X-ClientProxiedBy: SG2PR06CA0224.apcprd06.prod.outlook.com (2603:1096:4:68::32) To SYBP282MB2620.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:117::11) X-Microsoft-Original-Message-ID: <20240627120947.11677-2-zheng.dongxiong@outlook.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SYBP282MB2620:EE_|SY7P282MB4753:EE_ X-MS-Office365-Filtering-Correlation-Id: c547e5fc-8cf9-439b-97df-08dc96a210e2 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199028|3412199025|3430499032|440099028|1710799026; X-Microsoft-Antispam-Message-Info: omXv+AuvXV2H2QFxXo6Czh2ulCX05DmxExkglcnU5pnLkSsd3mI0A/S4AkHGjtMtT9669v3VkLuqGmro58Wj8EXKxW9BjDTWMrZq7vS4512UTYUEv9W/kJBoBPKzosl4PGyEi/F0WpHX+6vRrUNfxvoW5sM3gt8Vw2DRS7o17UiqmaIx3IgBj34QyUQaOzj8paB+IGUIb7OH+SthCHFAaHXFnhEJrHUHrPog5HgDi4f7KFkHbI0Kaby23sltz/3P1F3CdInkTTeBFEcGSZhB2wwETk9EOyPhEXAFA66oYCCF0fnMfiIIfVHNtDK+uKAX65P+k5jI7y4R6bDgghPya33vRXSGrjP5hinghx85qlxH4uSfOISASsILZJ5uBAy/3JIlslpGwDA3VotzLzaX+p4TZfoIzuyJ1h9aYdqH8T3pkBhT1fYyACg3Uthl5lMlzNYQHf0IKwKLlwxhK/Y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UMC30UGwENuMSv/T53TyoXdIKoonKKiU9zvSvNLFjmtZfB9O7x6KKO3OgsiZpGduXuBMXud0iihmsB8qIGq5TYGW6KxXgD49cJ1fOSyZNU3aJURRmCLuRxVQtR7xrCmIe7w1mmsB2hiNloV5sJs1x6AClJGWBbw8hRfvTL3RIwjx7PYkwUEf3uZXDwLNubLXwPtT4OvnUcvynlnM1LC32eS9pEKfzP3bF072ZGApMjJpLK1PRS7DU2P6WYuF0byAHQ5kRkKE1IPBAjJAybFfZ4wYaTPhmSuTesdxl3cUQrNRNUgEFPBWne/FbHuEPF1Ymr5gPLnnrsd34lzsw5D+vGM/CQp2Pdi3+d257sNMFT0RLCixAdtw9WWr7hiD86MafJ1XHUYQ2qWEvTXOp2QpPWGxdiCOqI+BmaUM6tnHOh X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c547e5fc-8cf9-439b-97df-08dc96a210e2 X-MS-Exchange-CrossTenant-AuthSource: SYBP282MB2620.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2024 12:09:59.4403 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY7P282MB4753 HDMA trigger wartermark interrupt, When use the RIE flag. PCIe RC will trigger AER, If msi wartermark addr is not configuration. This patch fix it by add msi wartermark configuration Signed-off-by: zheng.dongxiong --- drivers/dma/dw-edma/dw-hdma-v0-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c index d77051d1e..c4d15a7a7 100644 --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c @@ -280,6 +280,9 @@ static void dw_hdma_v0_core_ch_config(struct dw_edma_chan *chan) /* MSI done addr - low, high */ SET_CH_32(dw, chan->dir, chan->id, msi_stop.lsb, chan->msi.address_lo); SET_CH_32(dw, chan->dir, chan->id, msi_stop.msb, chan->msi.address_hi); + /* MSI watermark addr - low, high */ + SET_CH_32(dw, chan->dir, chan->id, msi_watermark.lsb, chan->msi.address_lo); + SET_CH_32(dw, chan->dir, chan->id, msi_watermark.msb, chan->msi.address_hi); /* MSI abort addr - low, high */ SET_CH_32(dw, chan->dir, chan->id, msi_abort.lsb, chan->msi.address_lo); SET_CH_32(dw, chan->dir, chan->id, msi_abort.msb, chan->msi.address_hi);