Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5617626rwd; Sun, 18 Jun 2023 15:50:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69tKPezBIClvpfqZiea4O7eia6DxSCxeoRmmeKZwI7/hKpKvnVXtr4O84s1Br6vxmQ3Bg3 X-Received: by 2002:a17:903:2341:b0:1ad:f138:b2f6 with SMTP id c1-20020a170903234100b001adf138b2f6mr10941002plh.16.1687128649280; Sun, 18 Jun 2023 15:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687128649; cv=none; d=google.com; s=arc-20160816; b=vVTgo+0JVIJ5c1xyxQY++CSDyWsxfkDAafw2O/Jj4XDW/17L4380OEvnU0c4/7y/sM NJo6SdR7K9TOiL1TS8/xjVOMu7NaeDYhlRYbmxjrJWQcHe5E8ygvkN4tiMdeJwpDIsx8 KZFrKk9gYCHnT1sF4tbsqzWOnsXfXWcU2VU1+/0wa/ZNbo0H+uzgk8wVfoDH8StyLMnz I/gm11R+vqjRZHWIu6RV880Wca6y9WLRwW+IrxCV3vaD8c1gNnLTlYalKOv50ynRO1xs m2h/dLm8z4YopY48kOcpjgY+nioLv+pVsxC/vEsyxqG68b20kjfUfdbyBxcTDRbMErG1 hm0g== 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=MHhQu46HJCs+E06mp8knd5RyBeyes00wowJAgVA0z4M=; b=aApErnZQbIIqEgbUE6xn53++/EdmyikisNejFAk/GJ3y+Rb60+otBo02khCqeiBC4x rsANWYifet8xRHhCW4UQ3LwBb76Y2V2ZhCL5SF3kq5KAn4H3QQVH5ykjjUtLw8/Rho2W g1Vsc6gF5woeTNz2iisJwTw7ozcGz80MPe0ODVE9nFyHWlIy72s745ZuR2vSsvjw6J3G oHr7K+y8Ty/wpu8nCs9yOsUyf2BWIonlwQZYFrTVjadSpWgpK/CaQINuGzMsQXUj2/w0 oQ6dOMRcpx2poS9b/4iBlahSK37oVpcp30IFHJ9wTqBkC+XeoAgKO5Bme0Yc/kIhv6Pl Ugvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Ff37c3lE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170903124800b001b04a6330a1si20807945plh.170.2023.06.18.15.50.33; Sun, 18 Jun 2023 15:50:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Ff37c3lE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjFRVsI (ORCPT + 99 others); Sun, 18 Jun 2023 17:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFRVsH (ORCPT ); Sun, 18 Jun 2023 17:48:07 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F001116; Sun, 18 Jun 2023 14:48:06 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b47742de92so5406031fa.0; Sun, 18 Jun 2023 14:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687124884; x=1689716884; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=MHhQu46HJCs+E06mp8knd5RyBeyes00wowJAgVA0z4M=; b=Ff37c3lEnLGYe9fmRivd775l5OlE78EW8E3bSOzUIFbhV+QXH1tNIQ473f358tgfUe n/cs7256PlSNejIojidAEMx5YPFK7ErXYc6/NbENxfqsho7nRN0S+sFncYIEcJhc1d3U EmXzs78qJoJ9EOfK6nwESUih/xkYsxmEe7wPZt0g8aMbV417b1rnmJmxfb10CcLsFyqK dGVJbBC8ZTRbrQmDhaNOMzZ8jRN1dzEcoHNBgaQ/QDiNUIZTVsWrt0yNzEH9U7MppKe1 JguPeUkhYpq4tC41kFrqCOKo7twwSyLTw3dUFDsexyabi5UKv9W83gWhXG822hrayiOZ 3wNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687124884; x=1689716884; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MHhQu46HJCs+E06mp8knd5RyBeyes00wowJAgVA0z4M=; b=fgJB9ytZtjewR9eYOUNVGWDdgyGXV+8LVaFwzzNPMi1Z0OHImxk6i1TQA8BV/YLrID 5KA3ZGnGPDkVwiVPWuBtoHRzdemKZMbcFPRQJd+TzLhzq20ex+Rtf/h0bC1Yq5yg/OSo DxokiqcdPw51DN+7E+1ZN1EolZ0VTuj5Mka0lDH44IMi7vhvYfCt6A+LNcIO9WZ/Xtez L5k3euurGavmD7ilDPX6vpH5jXv5PrjPFPyz8uVo5SQRXNfRHyrJegz4J2CnNdf2DIxq 5c3YEg/K8NR49OrHJUe+1WkGyoN4Y9fyuDJOjIvJPiQcbLf4TJDibvsy0ZslAtpCRrsO 67Wg== X-Gm-Message-State: AC+VfDwwpIl6nEA1iEjstgKwbSUaFp5AavwjJPzIuwL9MuwJpHju2yXj xQ/ESSyflrx2Ur/cKJNZjOw= X-Received: by 2002:a19:3844:0:b0:4f8:71bf:a25b with SMTP id d4-20020a193844000000b004f871bfa25bmr144284lfj.9.1687124884329; Sun, 18 Jun 2023 14:48:04 -0700 (PDT) Received: from mobilestation ([91.193.179.15]) by smtp.gmail.com with ESMTPSA id v13-20020ac2558d000000b004f84436217fsm1655796lfg.73.2023.06.18.14.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jun 2023 14:48:03 -0700 (PDT) Date: Mon, 19 Jun 2023 00:48:00 +0300 From: Serge Semin To: =?utf-8?B?S8O2cnk=?= Maincent Cc: Cai Huoqing , Manivannan Sadhasivam , Vinod Koul , Gustavo Pimentel , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: Re: [PATCH 3/9] dmaengine: dw-edma: Add HDMA remote interrupt configuration Message-ID: <20230618214800.5h4ni43vu2admho5@mobilestation> References: <20230609081654.330857-1-kory.maincent@bootlin.com> <20230609081654.330857-4-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230609081654.330857-4-kory.maincent@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 09, 2023 at 10:16:48AM +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. > > Signed-off-by: Kory Maincent > Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") > --- > > This patch is fixing a commit which is only in dmaengine tree and not > merged mainline. > --- > 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 da8663f45fdb..7bd1a0f742be 100644 > --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c > +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c > @@ -232,6 +232,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; Seems reasonable especially seeing there is a code with a similar semantic in the dw_hdma_v0_core_write_chunk() method. Reviewed-by: Serge Semin Just curious whether we really need to have the local IRQs left enabled for the remote device setup... The only case I have in mind is that it would be useful to signal a remote end-point host of such event in some application-specific environment. It sounds exotic but still possible. -Serge(y) > 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 >