Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp232829imm; Mon, 21 May 2018 05:18:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpVq5KTp382eD7xq2Crzc7t3RiUoIaZ66xucwcI43tRwtoqKSyloBGL0Smr0QFP9YkK6QrV X-Received: by 2002:a62:e903:: with SMTP id j3-v6mr20004131pfh.196.1526905110538; Mon, 21 May 2018 05:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526905110; cv=none; d=google.com; s=arc-20160816; b=EtTzBi8Yn3wjlaZwbtliBN4pobuULX2a4oGL6G+NPp3jYjEHdyBS2qfoq6esvqmCTb qzVTA6rdAbdcjKLvgnu8XmVeKSpwt7rMRGHvGez45p6QtgeY9fWq7TN1R286WzclFMia Yz47Ksb4EdWP92kPYChNxFbZxO3ChKylF037zBno4Mc906zgDdAdIYGLsRMNs8THW9eS 2+5bSm9KBAExxO7KEN3RiERFXGtAnqN2rxE+ZcIjwtgfgYriErTto7csXWTUEiz6S5cZ rt2i9xHSZ0qy1Oq3T2S6ru25YTJios3/2p9WwGyH3IK6lPCFF+Ykh/eBmG2Brq5mpxLq pnAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=oxAI26+PYQH+Ex52rn+8kksQ3GFbvjK++t8bawcbXXI=; b=KjYnXAR+2+Wpxyjo4DrJGZqO7skQWaLeawVaDacgs3D8R9zyx8nmF4CbzhGqHJBCq8 /yRYHPy6Si493hCREhQAlTdoNbmkIjdI9dx7bZJfYksg85lHccag1hugGKSrfmtYv65z QyMMVVFrn5obeyBqQSk3bnsOTvykEyYKl100iF4Wv6x6dSlkpMpYt6WkfOQ3TNV76V8z XnRNoT/zXxTkgQR/ks0HGBwyirJLAImCj8FktnjN/9RLgHVIGIw1Cx+GumCTqADEQ+d7 PGczMNqty94paLJkvGY1cPA5hwRfts34ErcU8lUZ/pVB5v/Q83nJhlAkA9ZklAWxQwJY QiUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O197tZzf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71-v6si14222650pfi.74.2018.05.21.05.18.16; Mon, 21 May 2018 05:18:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O197tZzf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbeEUMRR (ORCPT + 99 others); Mon, 21 May 2018 08:17:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34645 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752645AbeEUMRM (ORCPT ); Mon, 21 May 2018 08:17:12 -0400 Received: by mail-wm0-f68.google.com with SMTP id a137-v6so11853010wme.1 for ; Mon, 21 May 2018 05:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oxAI26+PYQH+Ex52rn+8kksQ3GFbvjK++t8bawcbXXI=; b=O197tZzflyiYNDFpUyv6FYYdzr8mX6xsYdVAB1IShGGowoePmzNJ1rh90Z0oxstKa3 /ufb1O26IqBUuzeeJQxJGbLQ6MZFqlGDbfWXpJUJb0iHF9+u3t5/bPUuzT7vGmZM17ZB ysfwCgsQRtfTtKVzW0NFUszq0g7sdUyVrz2qs= 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=oxAI26+PYQH+Ex52rn+8kksQ3GFbvjK++t8bawcbXXI=; b=AjdG1+ztiQzd+TL7CJtHosSKc4AqrU6foSb7vmylOLo5xBwAfhb2DHxpq+hK1e1UC5 /Q2jlsbZ2lR91iwgifDJzwMv+9jH+ZaWbcG1bAOqvE6cR/AGxEH3cW6pcpjl1j+f1NNm iySwcePUe/82lVmrCV+FNA3Kso0GdiUoun2v+me72Ga1ymBPswGRU70aTVX8cj+C20ej 4nvBQqrV0LGQeGbKU8Vw3WL3GaMiJ1mH8OtamG24Y38x2Sa3Isrd15nTNjeqRAzXRFBp TxCfFBgeWh1R/pRUoRGG22I9lka6I73x+6pKKkNuw4bNOL58eDAat9e3IudcSV7NUTVU Ed/w== X-Gm-Message-State: ALKqPwedgHHZp0jnq0z6o0Qgiu3W5i16/w4vvEis6M63jvnQkUw5vS8O BapZFXdvUg4/21XX5C+OGZL98w== X-Received: by 2002:a1c:1305:: with SMTP id 5-v6mr11567513wmt.89.1526905031658; Mon, 21 May 2018 05:17:11 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id o9-v6sm13986452wrn.74.2018.05.21.05.17.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 05:17:10 -0700 (PDT) Subject: Re: [PATCH v2 07/29] venus: hfi_venus: add halt AXI support for Venus 4xx To: Tomasz Figa , Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-8-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: <642a4a69-70fb-c72d-5700-1c55755d3073@linaro.org> Date: Mon, 21 May 2018 15:17:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomasz, On 05/18/2018 05:23 PM, Tomasz Figa wrote: > On Tue, May 15, 2018 at 5:12 PM Stanimir Varbanov < > stanimir.varbanov@linaro.org> wrote: > >> Add AXI halt support for version 4xx by using venus wrapper >> registers. > >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/media/platform/qcom/venus/hfi_venus.c | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) > >> diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c > b/drivers/media/platform/qcom/venus/hfi_venus.c >> index 734ce11b0ed0..53546174aab8 100644 >> --- a/drivers/media/platform/qcom/venus/hfi_venus.c >> +++ b/drivers/media/platform/qcom/venus/hfi_venus.c >> @@ -532,6 +532,23 @@ static int venus_halt_axi(struct venus_hfi_device > *hdev) >> u32 val; >> int ret; > >> + if (hdev->core->res->hfi_version == HFI_VERSION_4XX) { >> + val = venus_readl(hdev, WRAPPER_CPU_AXI_HALT); >> + val |= BIT(16); > > Can we have the bit defined? > >> + venus_writel(hdev, WRAPPER_CPU_AXI_HALT, val); >> + >> + ret = readl_poll_timeout(base + > WRAPPER_CPU_AXI_HALT_STATUS, >> + val, val & BIT(24), > > Ditto. Sure will add defines. -- regards, Stan