Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp200770rdg; Tue, 10 Oct 2023 08:01:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXUaMTi0hOU+znuOV65GUhFGe3NyZ6TISoCgIz8k7AOgtdELJhuSoh+z2FOmWiEIoKdn3v X-Received: by 2002:a05:6e02:1786:b0:351:22a2:bbe7 with SMTP id y6-20020a056e02178600b0035122a2bbe7mr26580761ilu.0.1696950079032; Tue, 10 Oct 2023 08:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696950079; cv=none; d=google.com; s=arc-20160816; b=ClT1OweK6D0ATJODhEROk/sSbK9tMn+PuAnJT0cm0gFu8vo5lI1dRhWwxfm8YGPm4L IwkMgml3l4HdH62zWO8Ezwd4X1SB/AcXaplvgjCryMI/Gt8syr0fjrsHKh1OQeuhg70z fo94owdXoZMxUCyJO9QM3mlhdFFdrpVOxS/VzO76Y4sEHEmi/7ZQQvKWpeg94XK4vTcx +MPXMAFC56uS3WNgldmHgpzMLesBDjLauC3HoWtPtiFUDvZd4WNNqlcaNVBZZRg5RrSQ 6iGr4uZtIge1jZneNggWHBCYFxho2JRcnei2ApoPaE7lk4Tsxi6ikSwMMrHKi46dxBif kQEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tszGywIMZOo9coNrdiNd4XTqj/+88WiCs67los6NTPA=; fh=iGITYTLkUpffsBmFWMcbbdH2WdkWddytQRmWKQfoV3Q=; b=RjTMI7ORnf7GQ/JNRlnrTKWSfmGD1TGXEOBQL5uRghqvZ7SHitaubqrLksKSS+aDni MEMcROvKTej/X8oSPIFaJLu8JHvG+ZzDZXR4sn/dDEx1uaPiVyEcRLmB7P6kPTpRik6s 0sSWtvHF3Nb6Dr/eS3LiMzdalpPE2Uv0+But0WuMG78TU+6+NoZdZcjlbjhugF4LxKdy nW6NUxuWuWuG5bBsulaiNTiiS4SllBylxyS37L8qAAGmLPEXg1trgImSbCru+i4hGt++ fC1Mmpuzo4UdmPMh1plNlY0S+QJFJapkG/AWpGj4vz9FHE8k5fJ5+t/E2c9EsOi/wob+ Sfjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CC2kdWe0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 36-20020a630f64000000b005649893593dsi12002831pgp.880.2023.10.10.08.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CC2kdWe0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8E6E080A416C; Tue, 10 Oct 2023 08:00:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233216AbjJJPAj (ORCPT + 99 others); Tue, 10 Oct 2023 11:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbjJJPAi (ORCPT ); Tue, 10 Oct 2023 11:00:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46213AC; Tue, 10 Oct 2023 08:00:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3E7AC433C7; Tue, 10 Oct 2023 15:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696950035; bh=8XxPnVDAlUJrH1PKK69qfWPgf4kWCU+iIBO+HjlBnjw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CC2kdWe0H2Mb+QzsYE3fmeZ8l8pLrsTgdR3fz+LWTflLfsnfTO/vjg+SnyjG5rPNG /mcfI5IUgRhf0j1kTTTR8oNb0l+dmZULKr0dxeE0AqnAm4g9Iu70dIBtyWPGPArL+N dslSZOz9XmL7yT+/OVk/+RRXf0LdY0aQDKPeO+q1V2a2XLfHU30g/fO2Xpr7xkr5PN 3cpehrRoxSLiB7YFxNnFuhB99uWblCs8kPV0A4U+jWmP1uf9LvSN9soeYGP2wyZpcB B37kP6PX7hzvyywQH4KJuYIfeDRlnEXNWXTEMPKXe1TBXb8BhnDSkfyoyf58eTyAHn vSREfAQgGOVDA== Date: Tue, 10 Oct 2023 20:30:22 +0530 From: Manivannan Sadhasivam To: =?iso-8859-1?Q?K=F6ry?= Maincent Cc: Cai Huoqing , Serge Semin , Vinod Koul , Gustavo Pimentel , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: Re: [PATCH v2 3/5] dmaengine: dw-edma: Add HDMA remote interrupt configuration Message-ID: <20231010150022.GM4884@thinkpad> References: <20231002131749.2977952-1-kory.maincent@bootlin.com> <20231002131749.2977952-4-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231002131749.2977952-4-kory.maincent@bootlin.com> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 08:00:49 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 02, 2023 at 03:17:47PM +0200, Köry Maincent wrote: > From: Kory Maincent > > Only the local interruption was configured, remote interrupt was left > behind. This patch fix it by setting stop and abort remote interrupts when > the DW_EDMA_CHIP_LOCAL flag is not set. > > Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") > Signed-off-by: Kory Maincent Acked-by: Manivannan Sadhasivam - Mani > Reviewed-by: Serge Semin > --- > drivers/dma/dw-edma/dw-hdma-v0-core.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c > index 0afafc683a9e..0cce1880cfdc 100644 > --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c > +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c > @@ -236,6 +236,8 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) > tmp = GET_CH_32(dw, chan->dir, chan->id, int_setup) | > HDMA_V0_STOP_INT_MASK | HDMA_V0_ABORT_INT_MASK | > HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_ABORT_INT_EN; > + if (!(dw->chip->flags & DW_EDMA_CHIP_LOCAL)) > + tmp |= HDMA_V0_REMOTE_STOP_INT_EN | HDMA_V0_REMOTE_ABORT_INT_EN; > SET_CH_32(dw, chan->dir, chan->id, int_setup, tmp); > /* Channel control */ > SET_CH_32(dw, chan->dir, chan->id, control1, HDMA_V0_LINKLIST_EN); > -- > 2.25.1 > -- மணிவண்ணன் சதாசிவம்