From patchwork Fri Jul 5 10:57:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zheng.dongxiong" X-Patchwork-Id: 13724950 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2189.outbound.protection.outlook.com [40.92.62.189]) (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 E4AAC148823; Fri, 5 Jul 2024 10:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.62.189 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720177077; cv=fail; b=sykg0YK8ZOGfhlg6YP/BbIF/GvwjqZVgd7VnEErlzn0xMh2uOU/1zv7g8OzPC4etmeDusfTciiR95Kt+9naRwXR9E4YYjeKp5VXAfQhBjPgOp2yWkiS0+3hvl2fre72zjNCBHlpKGpwQcfX9wVvxNGYNEfNmz44e8Z4z2W+8E9s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720177077; c=relaxed/simple; bh=BEtXVKOMTxHhFjtZiDebB633PPUL2/4jNRjUEfOMPLU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=gogkoLHnk0p1DR97mHlfbEkc5WBkzRxnVR0+AYIuuLot1L0wplU3WP5THU/8GKuPadXI2jrLhSaTZiHhKfoI3fLO3VLl63BNadr4NsUbTUVCyfp4djknRn6aWOwByNNz45A/InX9tcm08AIr2e9gIAM0lMoMJsPbyFTbmYSiDNY= 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=cxVmuSMT; arc=fail smtp.client-ip=40.92.62.189 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="cxVmuSMT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xqx23E6j37OkYOcOOnJ+b/LyZL1C1kR/u48WWPKhRoGFBDT1vfVjn1feEDQsP/24cZ0dOsNzKUqFf0+bpkhY9BZb5u9jSKOC3B3Q53TkxJ7+xna0YSVO8IYTyZpuKHD8x4ijTz7qso1I2UNjUxzOvUXNVvVA8oFL5Y+gIFTaaj8Tfl3+Qv3iQp5CmJTiYNhTFIcOTJ47BxwQhyySVDoR0GSS8tfrk33RySWkWVhOTLBmAPPt1GMC220O9cEoH0BWalAiWYHEOCzRKVHOq6oXzdUiQtWmzw+0LFxrzMK7AdZvVtppd6FJSZWMh4NJsQgUAOkTgyN2PAn9UIqejpGcfA== 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=WUuzyZyPB6KbWl3hZON5Mq6rLG1d3867d6kuRsj7s4I=; b=BRvp3LoOWi9UUQLBX49BqZ2XAwb4D+CultpQygVpKR2sHAxDlNt1RYd4nT7PLHbgzDYc4mtySjlyAVNgZdPdaeN8f43SnKQrIwN7qMIW2+oXcf01mRB5b/7aA4DAuxT4ShyjvqVnjOcbeq7k1zbbpC1H/HvXOEXpD//v48EsRebkOb76St+b3YfuKvbxPQ3kKVSJ/7+QcYYKSTiIPqynXqyzwBYofiy58Q5OyFKqAZF/FQGT319kMqwPaLbJ95TPmda96Siy5B6wYuvLh/+Z9LZcs3JOhngsBUAhEuZsTIz9qaLK7qP1RGtZ2IxXdfaI1/t3RXJDycxJ1NBQGafPiw== 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=WUuzyZyPB6KbWl3hZON5Mq6rLG1d3867d6kuRsj7s4I=; b=cxVmuSMTQVGN5C7RJfprGcAW8PU2SCoPB8edS+hdXhpfCJvK0tjHD9qAcBF/6pIDtD9vue0cgYAcSYJvsmd1MX79dgAdnJDaRhBwPXiegkwK4HQ1oWUcCT+xLfpBKxM65PUz0A1BD2D6MEbwGkF9DCzN1Kk3BfXl0dQ4wLsEtZCzytdlviDZWWC3igGYw6LKiv2h9yjdlGVuS3wjzHoVcdvVDyLMeWP3c2ZeWdEK9wh4QJfn1XPAQM4MEvDxnHzlL/ZXYtIwwkoEekyo8F4lcCBv2KKvl1aGcdFT7ZCKmeAB/uBXch0/QUwD/MrBED69mkZrQ0ZZK0MFMN8Mtdo6hg== Received: from SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:133::8) by SYYP282MB0880.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:bc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.30; Fri, 5 Jul 2024 10:57:51 +0000 Received: from SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM ([fe80::ed78:8dd5:170a:bd04]) by SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM ([fe80::ed78:8dd5:170a:bd04%3]) with mapi id 15.20.7741.029; Fri, 5 Jul 2024 10:57:51 +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 RESEND 1/2] dmaengine: dw-edma: Move "Set consumer cycle" into first condition in dw_hdma_v0_core_start() Date: Fri, 5 Jul 2024 18:57:34 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [PvPdHy+SPVrL92oz5S99Cuc/TyQtK4of] X-ClientProxiedBy: SG2PR01CA0146.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::26) To SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:133::8) X-Microsoft-Original-Message-ID: <2682697510ff0d4bab484f003d45efe8d03017c6.1720176660.git.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: SY4P282MB2624:EE_|SYYP282MB0880:EE_ X-MS-Office365-Filtering-Correlation-Id: d284aa16-5e98-49f9-ab5e-08dc9ce15094 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199028|19110799003|8060799006|3430499032|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message-Info: YwxjL8KQQxneQvruTE5ZWdSPKbIY1ObofPgMC3tjgas7FBkkJQqdlyKei3og/JZdi+f7n2NxYQP3e3IcEq3NLZ3ZRfXLw9VYSXn0gIi4yfJ3D64RdMvZAGpxMGmYFQZhw82K85Yazc2Io5LjurbJeV3zMC3IiCXIvdwxjZ/A0etvQJ6OkJo9u+QSZ/smKzPTz9klAoc/3GOOJb5t8JCRmx8Y9QC1ZzzNi1iJgIyR2ZFqUvP5D+tRpwqUiwkCv0ouBkrBHFcV7t9P//HA2zaUiaUuJbtIeUXPEdcy4Jee6LA4+e7Zm473UMeUB8qhFtWe2tE1cPGvd9gcSbQ26wVOeWJ3sle+6IbnFEzurcTLVwn1/9Bj0coCMpQLkOrjGEIemmudvJSwr4/JkR1S+Ef2lLq6t5ZD5tsua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9jisLs5jKHyU8KGp/AUeDBVtOw0EBrJTfTk6WsvFo/ef+rQzk9DY9i+G4c8uK0FPjk+SodTIEER9DBHShT98JdX3f+9Aoo5/fK0ktwKEXVrOD5OChvLPSXQLwBd2SHoPxEERT9BPNztxy3NrHY+z1N5g12F3Ps8dej3dXmC5FHTgFxM3OL3FxCnRbOsI8xFhsodI4WOeq3J2u5LQKSzPLvnbc1/mGAyVl3808egLGR3ISvrnJmmDgDkgvFwOstLWqHH1X8b4AJDlH3uujg+t8HoHYqRPJGKK770mmagYmO4TuWmBwMYxLtFHY7ER1j7+KRv3oGWgWcxShyf6oUajYq3F24mBfJKhJziZPo17mCKQW3EosIt2GX40RTtYpQ/xkjw4faDu5sxIFE7WL3CFKVEJp7IjqbVm9fyA5vru9o3MnbB92NbmccAUYLouj23h0pxhA7w+bwVY648ZsC3HWeJXEhoo7AadPWfFqkhK21GUbdNwnPWDxeZoN9Mvh2hYr8JIrrc3D X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d284aa16-5e98-49f9-ab5e-08dc9ce15094 X-MS-Exchange-CrossTenant-AuthSource: SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2024 10:57:51.5678 (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: SYYP282MB0880 Two or more chunks are used in a transfer, Consumer cycle only needs to be set on the first transfer. Signed-off-by: zheng.dongxiong --- drivers/dma/dw-edma/dw-hdma-v0-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c index 10e8f0715..d77051d1e 100644 --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c @@ -262,10 +262,10 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) lower_32_bits(chunk->ll_region.paddr)); SET_CH_32(dw, chan->dir, chan->id, llp.msb, upper_32_bits(chunk->ll_region.paddr)); + /* Set consumer cycle */ + SET_CH_32(dw, chan->dir, chan->id, cycle_sync, + HDMA_V0_CONSUMER_CYCLE_STAT | HDMA_V0_CONSUMER_CYCLE_BIT); } - /* Set consumer cycle */ - SET_CH_32(dw, chan->dir, chan->id, cycle_sync, - HDMA_V0_CONSUMER_CYCLE_STAT | HDMA_V0_CONSUMER_CYCLE_BIT); dw_hdma_v0_sync_ll_data(chunk); From patchwork Fri Jul 5 10:57:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zheng.dongxiong" X-Patchwork-Id: 13724951 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2153.outbound.protection.outlook.com [40.92.62.153]) (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 E3CBE1487E7; Fri, 5 Jul 2024 10:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.62.153 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720177079; cv=fail; b=XJN2YApCykOll2442PA8O5UxLZFE1JbdeF/fZc9iYp4GV9T2e6EXCuYURhVAGEOtat4Ud4l1Pzo8Ehh4aQO0fnOSpVVBtDmQf/50icHXxJzs3GnoCkvj4Gz1G6In5iwzq4aPZmDc7enJqev2O6q6PmB5vJBYbLF/M1Pjp5tVTzw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720177079; c=relaxed/simple; bh=/lYJeNCa440ckCAbiBKuMEotJOEQSOJMZumXJAtsNKo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=hdOaGYr9lA7hQOzGhQnXqmm6XEOe1Jongln0wlviCVTl/eFaLZ2Y675WTqsee2/s0y8UVokqfC8W4fYynxPjNvV+PtE0T7FSVAdg0Zo7s73ODlF+O908mRIphRBtS3SkZ1NNS1/BPqS7MsgvFAzBHjEZOJktd079uv3YtGHEHiI= 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=Du/Ae7VV; arc=fail smtp.client-ip=40.92.62.153 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="Du/Ae7VV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdWMgKeUaUxPff52ILGjLCroaKn21mvNEITDaRKTnzQikquQJpVITvwRlwJ0KHkNVBcH+bzyyHpbFr0s3jJ0R73sWyrsffxCypOoIpxPWvliPB15RPNoJ5HToRD4RTt1SE2ALWWyymFgav6q++OzUfU9dk9jL+edseQ0LcA1i6RBxkpGYzOFJcScGesxvw23fw2VfbDHR4XJmZdsjoYamIJcnqnCvoxWSJD+LpmWNDud/CAREJnOF4LdfwMXApOM9MNH1ucTgo2WQ/CIK2BQNloeWpspbSyL+38f6u5H9i5C3q4GTqkMEVSXOldvy37744PBxRBh4CYofogZOfEkSA== 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=M8lmEq1nggIyYoUcVx206aE4TyxZ0JBExsMLPvE/W4tanUQBBofN34VDRNmzJkgQTFfddCdTjlGLOQms5saQJT3hy7+OLwQMyWXC1y/wUumXH2EpAP//E0FNPPUpddQpWS99jI8q3m5DX6N+vQ/Md6KeF5jq//Re2iChQQy3MLzoysLstf5BxqHuKzDWPLXttngZd9iItxF0eJI8UZfEo2zg2MYWseq82JET4lnAlLUhvw+w/3jDesH+safVAT45N6eduYvXFO8tLex4ci6xhJSXR0tIuISsZXx9JJ8H6sb7OoiZkIQCCSzDfiL7LtlUFHYMM0Apu4Lnd/QM6k0J0Q== 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=Du/Ae7VVkOKlxqIKXChgzK0eo/q6kGXH+MBuf2rCIC/WhywPQv/xDKVusv8dHj4SWzVvfRlKVP+h6gmj58OqBhOTZEM3WlhMWmT8xhtxGRbjoefIlWkf09ru4H3y0LS7tq0uX8DvkvIOOS+JT+ARvqNOHIdOAW0ADHDB8SwWKLcJeK5uQTPnDCVgg5j6ilpOv44wwro45iISBySCk7gWMoiyYJwSuE2lkOkMGa9YwkCA6Gxvq1ek3vHXdTfC/TaEfzY+rJH5UdJeTb+9DxQWc397M0w1h+wqOLuI6y4v6VDwO2cgtxEEj6hO2OHjvXgqkFlgL1LtVyLP2nN4z1d3Pg== Received: from SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:133::8) by SY6P282MB3992.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:1db::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.28; Fri, 5 Jul 2024 10:57:53 +0000 Received: from SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM ([fe80::ed78:8dd5:170a:bd04]) by SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM ([fe80::ed78:8dd5:170a:bd04%3]) with mapi id 15.20.7741.029; Fri, 5 Jul 2024 10:57:53 +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 RESEND 2/2] damengine: dw-edma: Add msi wartermark configuration Date: Fri, 5 Jul 2024 18:57:35 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [XLqajbpJrmCwqtYCPhMO5UX6jHzDlMNL] X-ClientProxiedBy: SG2PR01CA0146.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::26) To SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:133::8) X-Microsoft-Original-Message-ID: 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: SY4P282MB2624:EE_|SY6P282MB3992:EE_ X-MS-Office365-Filtering-Correlation-Id: 04bf034d-1bdc-4c13-8105-08dc9ce151a3 X-Microsoft-Antispam: BCL:0;ARA:14566002|8060799006|19110799003|461199028|3412199025|440099028|3430499032|1710799026; X-Microsoft-Antispam-Message-Info: ROa8xMVlh4o8Zf+mPmT+Zly5xvlvtSRzIdJBgjC5LYOc5Ma5XeEZVl55yH79TScXuv/hZ4EBKIavmxY3wOPZYY+gi8oS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uxh8QOvnzTjOrJP/i8YNmPMzc/kmfHP8CY4wMtvgdVJOX/pliuCTLdgjcXu43BEtfhL68Z/BpAw04Wxl/t86NlDGi9eZS1Y0iEnSTE4EyAVCOn4rnVjCffShveI+tTqzldJqCitMnYWdMU7laZ+5KzXTWh7YDSeFGDAn3FHSLOSS5u6FGT3MD9TplHR2vYr21IdtL4Wojf8B/OypXIrZiNIygRmZ5xYRyFRhfVedNomDnjwFi/6bn01pkQXDu7CIyo0nD8tkwPiJruEf6qNTmyvlm5RWLllWR8eVIinXgJGdEdxEDAGNVWGoFWa2jUv08ryc1FOOEprIVlOEGOucl/TyaUY4c3/D6HeaszC/90hf22IvU4DuJtSBWEefbE4zEirT4XqrR57GlfCMNUxV3VJwppdmOYXVCyLHXzpJ+J9K79SdFz1Rk+FyBT2WPldfDGAS8q/0LH/mTMupTNn2cz3p+AZwKeSeeh8vcK1uPrpZvgxzVauWTaGb+qo1UvGtBfTocDdf2Mof4/9KSpNN7DyqUYekmh5ZfaSOwT3OWITTwgA3cXLioygSHkiYuAhx1rvOoGLR5xxaFYIBx8oN60P7RRohtavOE8bRcZKjCvgc1oGd6ldxC3ZZfafkdtObx30P9sAXWCZAMxYnrt6ssxV2+vM+dUlNVVn797aLGV8Fl0BH2dMeAkNPVE3D8LolcgDn9YTTU2LooE1m3iEfqvancr+HjfkNVBtfd3TjQJ3hoYhGdX6Ydcg5Q3KYO52zmjejRH2tRXNI7RdmdQXB/Ev1Dmnb1M5iILdzPMW6bC5C9mGCOlrP1hIeX6dPY6B/CXpVEBfsFiNXwmbNX98z/gipMhOT/ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04bf034d-1bdc-4c13-8105-08dc9ce151a3 X-MS-Exchange-CrossTenant-AuthSource: SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2024 10:57:53.3492 (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: SY6P282MB3992 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);