Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1528833pxb; Thu, 16 Sep 2021 09:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBn2wF8kzLv/i0IAYanhzuCeKMaTvShJAo+JMlZJ+v8dGACm+QijG6pu/FywgfmsT4b49N X-Received: by 2002:aa7:dd8c:: with SMTP id g12mr7341864edv.280.1631809065596; Thu, 16 Sep 2021 09:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809065; cv=none; d=google.com; s=arc-20160816; b=QU12Ovn8Uj4hkwcDAz7+CNn6aMKvMFqiLQXYZLt6h8t5UTnb2ijnkt21lnOnuakXeo zw7M4/MFSA9WTIVX/oSrT4iU25C/KwxOHq6xcdtKqrX1857+Vs54pxj+eYvL9KF7R56F zCWIPUSWWRy0+3ODSPzWrfEhJFlIOBaqUhXg9V1mnAtrxuCtypScQCc3ba7fuVxIoab9 J6pA3cFRNYEHeOFW+neHdLgCaSXv3B51yJRgMeLkOOeF8SkJLVDZtUyfg9Wv2sIdYNOG MGHFpeO/dRktzGW9FhmJGXZwMIogN5UZ40JAevr+l8OX6VbXRlH4G4MdNYYzRoz9cRco zRWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/WggylAm6FXKE89vxM3mimgvXW+167lCYf95gUYIC/M=; b=ASZsAc3wiBOW5i0WTWYLDrRD7gEle0251hFZupKsKywzep3p8bMA5YITOKFRQ/GfLb a7S3cTxYTKsKApgJME8f8yJs2dBzDQBf8orF/NjFhCu3DMInGPV1B0PaI1TmGyQpnfga uDFGnGi+iM299WGZOomJ7pCSrd/5DvrKUY4hiBzxJv/vBfEXzmHuDPOHdVR3UDlIcrvI QkUa0SVy2WSH5DTKEHFnltqyr5ZHmp9GZF9EcZ3l7I18ksKipT/1t3gF0kg4zbNM8jKa cefZHUV8urXCewtb84wD20LsiJOubL8/DrP8tVKhErNlKeC5zjVn6g0+XHtFYoGEz3M+ pM5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0sZ7cn3g; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si3980048ejc.450.2021.09.16.09.17.19; Thu, 16 Sep 2021 09:17:45 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=0sZ7cn3g; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbhIPQQJ (ORCPT + 99 others); Thu, 16 Sep 2021 12:16:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:48542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbhIPQJR (ORCPT ); Thu, 16 Sep 2021 12:09:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE4576135A; Thu, 16 Sep 2021 16:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808469; bh=wtgWkB59/aH0RLYlCMSJHaQwTUy6rp6/SEuuaohTqRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0sZ7cn3gkcPWV4UITl6NH/FHr0E5AMdCUtEdMwH2PS13fQbpfUWVQa3MBfZxVhd8o e0ED/9ad8+ZP4aXp1BWQR+TgE9CtWKXkP5mte2nfE4LwyDdCUXsWQUJLx68gO92bWU dAAnJ1/3yA9i5e6EgJ8YVkiEXt4YbHSCCrdfQlHw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yongqiang Niu , Nicolas Boichat , Jassi Brar , Sasha Levin Subject: [PATCH 5.10 101/306] soc: mediatek: cmdq: add address shift in jump Date: Thu, 16 Sep 2021 17:57:26 +0200 Message-Id: <20210916155757.511779390@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yongqiang Niu [ Upstream commit 8b60ed2b1674b78ebc433a11efa7d48821229037 ] Add address shift when compose jump instruction to compatible with 35bit format. Fixes: 0858fde496f8 ("mailbox: cmdq: variablize address shift in platform") Signed-off-by: Yongqiang Niu Reviewed-by: Nicolas Boichat Signed-off-by: Jassi Brar Signed-off-by: Sasha Levin --- 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-cmdq-mailbox.c index 5665b6ea8119..75378e35c3d6 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -168,7 +168,8 @@ static void cmdq_task_insert_into_thread(struct cmdq_task *task) dma_sync_single_for_cpu(dev, prev_task->pa_base, prev_task->pkt->cmd_buf_size, DMA_TO_DEVICE); prev_task_base[CMDQ_NUM_CMD(prev_task->pkt) - 1] = - (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); -- 2.30.2