Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4067856pxu; Wed, 9 Dec 2020 07:36:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTDkz1/6qbBy3BlrPzP8W91UcE9y9WVCocrS95CQNHYBlyEpbie1RrVQ4tm4v69KGdo9DO X-Received: by 2002:a17:906:f0c3:: with SMTP id dk3mr2499320ejb.366.1607528196192; Wed, 09 Dec 2020 07:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607528196; cv=none; d=google.com; s=arc-20160816; b=wnn5GkbvSDs7pH/j/FPHW9hBRgqZC4l3+nO+U5nlfkvVZ4pcUrZ38wWP2UF2CR9iJj Ed0/vu+75az0w3Ee9hHN3HxV7K07gLA/O4gHls9aDxI/4J4m7HAAyuLaRu9wgHoxGOB9 XOINbGT0ilNbr3YLQzQ7dX/CkbONM8mbpSBDVV0U1O/t4k/k28/jxfr5RmAbBtwoygQN WHyXv4GNeFzWKRGSoEPEUffdlT7v7fA7LPStAEwWUXQoKzIIYRnF0fdtHHrCFsD2SDU+ 4xS/ElGZXjyrKpgVjB7MSoM53bFmUxkIzc2KEGbtSjCzfqY6Lp70R7AC6bdlh4wq0KTI 55xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2ZWfkWsUwDhwwCVbwkVU4GoRSyhe/cEsK0xBaK5yeb0=; b=nt/PxGYJBWyVIfFv8PxIygt1dd7yDJEBqHuEMRwz4g2AM+/LKD27nhKlRM5gGa9BK0 etPSH9GB7FHVtDZv7jGc0GVh9KD3ijV7yiQeCF9ESEKeMeuk6kkpO1ZelVKxCo0kZkc4 YzOqjGn5Rn43f+DWwCdqXm/gNSFqHqOFYIwS3+LnlU+0CoULPt2JUFSUajf+0iN2yaIU ILo3iUlnpWN71sGAi7+W2GVf2Otac4lcDVao1YtT++7pp8HS7xdc5G4CcRyi38XInUmX 9StSDg4kW14egWU4ysCBGzRhSRWNvGwEmfl0+ulDHvF3lS+9ZOLb1e3ceRahSqN0/+DO aVXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WslH8wEm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z41si974350ede.411.2020.12.09.07.36.13; Wed, 09 Dec 2020 07:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WslH8wEm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727956AbgLIPRS (ORCPT + 99 others); Wed, 9 Dec 2020 10:17:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:36212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbgLIPRR (ORCPT ); Wed, 9 Dec 2020 10:17:17 -0500 X-Gm-Message-State: AOAM531RIST/S5aqf2kLsrs2Mzfq/6yLWpZpW0LofL5rpzqIDE5e+K+4 59AYPAH/zWDf4tt3/5/Xnc11DV5G7X/dal+Mvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607526997; bh=lVUITqM3wBlLLCMwZfMJJE4f8P3aH4i3cxhdHeLKdwE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WslH8wEmlVpqaDl71ybxROkTosAnZP58mHbwXHmgn/KI38WaeTN8BA4JdV3C+xvMZ i8dJqxq4c8PUOBSMyxbpqx8/C7mXUlTwuHgkO5/2T8H1pF0jg44W5S/e0YTVLVPJ4W vKp/R/jS8Kc6l4iIpg1xEPhgGD1LRCe+vT4t98ZyYRG6aFZ7zuNyCL+Tjf8eieD7LR Dx29Fbf7NdBz9dNDzN3DvVPLjZr4ud8XY9X2E3/ylTSr2/ykw79GOgXsKahQC2ffT7 bL4JPdHOOFOJNZBiXfDfl3g9NmZCFCmvvxNLATGJAPxF2okXj3vGzIy3ws+XBnLrns Y45NeBVWeVS9g== X-Received: by 2002:adf:9567:: with SMTP id 94mr910638wrs.394.1607526995364; Wed, 09 Dec 2020 07:16:35 -0800 (PST) MIME-Version: 1.0 References: <1607141728-17307-1-git-send-email-yongqiang.niu@mediatek.com> <1607141728-17307-5-git-send-email-yongqiang.niu@mediatek.com> In-Reply-To: From: Chun-Kuang Hu Date: Wed, 9 Dec 2020 23:16:22 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1, 4/5] soc: mediatek: cmdq: add address shift in jump To: Nicolas Boichat Cc: Yongqiang Niu , Jassi Brar , lkml , Dennis YC Hsieh , CK Hu , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Bibby Hsieh , Matthias Brugger , linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Yongqiang: Nicolas Boichat =E6=96=BC 2020=E5=B9=B412=E6=9C=885= =E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8B=E5=8D=883:30=E5=AF=AB=E9=81=93=EF=BC= =9A > > On Sat, Dec 5, 2020 at 12:16 PM Yongqiang Niu > wrote: > > > > Add address shift when compose jump instruction > > to compatible with 35bit format. > > This looks reasonable, but task->cmdq->shift_pa is not new and was > introduced as part of mt6779 GCE support. > > Do you want to add a Fixes tag? > Fixes: 0858fde496f8 ("mailbox: cmdq: variablize address shift in platform= ") Add this fixes tag, and move this patch out of this series because this patch is related to all SoC whose shift_pa is not zero. Regards, Chun-Kuang. > > Reviewed-by: Nicolas Boichat > > > > > Signed-off-by: Yongqiang Niu > > --- > > drivers/mailbox/mtk-cmdq-mailbox.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-c= mdq-mailbox.c > > index 1c01fe0..5ed39f8 100644 > > --- a/drivers/mailbox/mtk-cmdq-mailbox.c > > +++ b/drivers/mailbox/mtk-cmdq-mailbox.c > > @@ -174,7 +174,8 @@ static void cmdq_task_insert_into_thread(struct cmd= q_task *task) > > dma_sync_single_for_cpu(dev, prev_task->pa_base, > > prev_task->pkt->cmd_buf_size, DMA_TO_DE= VICE); > > prev_task_base[CMDQ_NUM_CMD(prev_task->pkt) - 1] =3D > > - (u64)CMDQ_JUMP_BY_PA << 32 | task->pa_base; > > + (u64)CMDQ_JUMP_BY_PA << 32 | > > + (task->pa_base >> task->cmdq->shift_pa); > > dma_sync_single_for_device(dev, prev_task->pa_base, > > prev_task->pkt->cmd_buf_size, DMA_TO= _DEVICE); > > > > -- > > 1.8.1.1.dirty > > _______________________________________________ > > Linux-mediatek mailing list > > Linux-mediatek@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-mediatek > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek