Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3268615pxk; Mon, 21 Sep 2020 09:16:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye6K4tn1RWc5QWg0JgmsTDJyipVWoJqUDYtY2on54+G+Kca0o8NvK+jbFb1+0OyxrXt86P X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr209690ejb.340.1600705004981; Mon, 21 Sep 2020 09:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600705004; cv=none; d=google.com; s=arc-20160816; b=LOpCBlPt/o1ABG25It4GGnf56FeClSEENZSG7ZRbkiPR0SDSJikkH0pbeDjjnTjZNN gHkjhnS7p/XGLlFiKTBOq6tHJtGS1hgSaBxLgk8OftmxYVcNfq8/ytSa3NrFKM5iq+vR ikYc+qd7FmxQxV0lM9LxPpLEaXzxtypCoh9xti6eB2EkhV7JE911nq4uzota1W96JQlb UEm5aZnx3MZdgWSCbg0lFIlaIoRU8m+BancPiXaY6g19PSLTguzQeUhyaQKCl9vgA9hV WKRsrd+CSkfh0j59BZR5XMLWO2G/kDQBahiXzDlqbzhabSEctBD5o6Mbmh7jdM3PzuMW VfSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=rSiDIY+mBJXBx7mTEaoU7iUTrz5OuKwc6R4EdUzPFxQ=; b=Zy+GCuFhd3Wcj9N/VNhayz8bXcUq+4XZDS78dUtGvX2nCzXMcaH4IQgvdCkO4R8yeM mxi6yxfbkzFxq1OMH/f4XsHL7uF8cVOEP3mXiTvixYR2wu65NWs67Lw2qPOXIk7jUxUl ydwPcrO4Qn4azw5YLFe4iFxVbbDCtWrA9CnjMOgvlj5Qm8TNrVqX4CMrdLqeubV6UAqN P5iE7UEW6sK7qbwgdKz4jEq24L8p7fXU31sc1I+TOAQ1qIowHZj9VkM5uu3RmoTe5TLX rfK3J6wSxBz5tPYNLMhZgKiJk4S85xBy7/GBp+xVd2gUCK0k3kj8j53mfqx6CdgccZnS NBgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FOlph9vP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si8533633ejt.743.2020.09.21.09.16.20; Mon, 21 Sep 2020 09:16:44 -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=@gmail.com header.s=20161025 header.b=FOlph9vP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbgIUQPW (ORCPT + 99 others); Mon, 21 Sep 2020 12:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbgIUQPV (ORCPT ); Mon, 21 Sep 2020 12:15:21 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93AB8C061755 for ; Mon, 21 Sep 2020 09:15:21 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id l9so77836wme.3 for ; Mon, 21 Sep 2020 09:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rSiDIY+mBJXBx7mTEaoU7iUTrz5OuKwc6R4EdUzPFxQ=; b=FOlph9vPpLg7Qs+DqdBZs6dhzlOsW8G8sPt/Z6iDZR/iwWMXUgsTrrH3+DFfed2ptg MC5qh32BgeRFrVp9mhJlRPwwUz7WgpXOanAvIdJ7j/SILhqQsIbmU8sHwMztmh/TFMdP xBGQ5NvApAIYmRg/3VRdJLA+dFtDyyyN5bv/Ohx/txkS1JGzzV0eE+yVJ5M0GWYhFnnQ r0uxV5VwalBiNRhOL0MCCmDu3zGmuN0mOVTanH2+goKU9Mt8o8W+TFrCj4BNEYufNQJv h7E/bGoHIqh6xxr1XJrrR60bNcSqOS8bQiENjSFd7WAESx7ehqia4nVncKDqlxbOG0XZ BQGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rSiDIY+mBJXBx7mTEaoU7iUTrz5OuKwc6R4EdUzPFxQ=; b=ZPx7pBDfzqD3B0AVLktxxFJZQn8lM81Q1pb/yn5Y+2+2It/cr1iQ20nR1/N318dniG 3vDcIkFAavFDoFk3u+8SLnVYIg+VHbNRxOMinTNNPlAarn1c0Uu6C+94MvIj3KF5yahU 6/1gpjt3y3xDVEzbYWXEsPsPlwt+WFgH5ZyLX5Q2iMQ6PdVsz6Igm7w49lfMYSw/BmVJ Ly0RdHx+9MtfF6KdjgerN2fWK197IEg6LvU2SFE/wxyprzhTBnWGN1unSSJ7BW1adQT4 HPu93sRHAjYSzRJz1KdCtJ/WYXQD/+V0N3ncktENhnPCfn5QdJ7ME+OREMg8QqY+Z+v7 90sg== X-Gm-Message-State: AOAM532NkJzHY7LGhRvleNBovF1d47liPRdG5d/GC6UhAHxufCrjwxuZ MEG24PI3ZaBMl/JWjhvR/9Q= X-Received: by 2002:a1c:e256:: with SMTP id z83mr134592wmg.33.1600704920224; Mon, 21 Sep 2020 09:15:20 -0700 (PDT) Received: from ziggy.stardust ([213.195.113.201]) by smtp.gmail.com with ESMTPSA id i26sm115868wmb.17.2020.09.21.09.15.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 09:15:19 -0700 (PDT) Subject: Re: [PATCH v3 1/9] soc: mediatek: cmdq: add address shift in jump To: Dennis YC Hsieh , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com, HS Liao References: <1594136714-11650-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1594136714-11650-2-git-send-email-dennis-yc.hsieh@mediatek.com> From: Matthias Brugger Message-ID: Date: Mon, 21 Sep 2020 18:15:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <1594136714-11650-2-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2020 17:45, Dennis YC Hsieh wrote: > Add address shift when compose jump instruction > to compatible with 35bit format. > > Change since v1: > - Rename cmdq_mbox_shift() to cmdq_get_shift_pa(). > > Signed-off-by: Dennis YC Hsieh Now pushed to v5.9-next/soc Thanks! > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c > index dc644cfb6419..9faf78fbed3a 100644 > --- a/drivers/soc/mediatek/mtk-cmdq-helper.c > +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c > @@ -329,7 +329,8 @@ int cmdq_pkt_finalize(struct cmdq_pkt *pkt) > > /* JUMP to end */ > inst.op = CMDQ_CODE_JUMP; > - inst.value = CMDQ_JUMP_PASS; > + inst.value = CMDQ_JUMP_PASS >> > + cmdq_get_shift_pa(((struct cmdq_client *)pkt->cl)->chan); > err = cmdq_pkt_append_command(pkt, inst); > > return err; >