Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp116293imm; Mon, 1 Oct 2018 07:31:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV608qmv8ZDSfwVyYFzIcFoVkPZs2Z+MRDUo32a/7U1mZgq9BKDt9aXD4kemTmg89+X3MxDZT X-Received: by 2002:a63:5353:: with SMTP id t19-v6mr10275806pgl.199.1538404280229; Mon, 01 Oct 2018 07:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538404280; cv=none; d=google.com; s=arc-20160816; b=H+eZa9p4sF9ZYvJx3lGoZTHIMY22RQ9wYixBri30z0tlnTZCGxIu5GSjVAjj6WDAdD x62x8dtsPttrDifOrGrm3IuakIUrMspdxAz+eh4ZBaPwspkpbFx9HFQ1Af3TG8IAYj4A mgKTsucTBjnESbdmuc6AnCzr9uM/a/nQiiamduEmmHoj+six6OqelAYRVbrXLO6Ou1Jd mrZT0XlGSTa5IjdpbhPA2iH6/iBT+j3uL+lI+qPvq8nTtzNEKVWQGflpRLF0g6+DKqTq Nm+gHnH9GZqEvs3UTevQAbmUyxOaqQxRxV7aZwyN+BdR0//3SMNHRSFBl6VkloBxktZB /a+Q== 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; bh=ChWApLj41SHvi7aylF3dwTV20y/65nr1724kOYV7Ez8=; b=BNkZe6qBtflMgS7xfmTmT+qNHGJPiOx7wzbuIshTFH9CzTSqzo1CaqKT0OowhSIL18 aZeoCpubEocf7Z+e1zyvN5B4L+/yE0B+vAbbe2rdW9d/PH/kjrT2oK7IlmL94Zf+JGMS r40MzPYQ7HSKCRddJGnbH49e1U9hT/LR/mF+56GoS6tBWh1EWkyNvg+m6XRFueFOznZA xbEHdg9W0wvIER+zYSro+aru68K7VL8nCMaKUOKdmXsvitmXPkLfeg8quBmSuCBcAJPa LpTX1VKMPvRKrTFm8YAsgXVa96/P8RzSdtJgStuQiR2JNDO4ZjmRWQHzHNeBGloTJo9/ 4fXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNv77qP8; 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 e1-v6si12296142plt.223.2018.10.01.07.31.05; Mon, 01 Oct 2018 07:31:20 -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=cNv77qP8; 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 S1729452AbeJAVIu (ORCPT + 99 others); Mon, 1 Oct 2018 17:08:50 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38606 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729497AbeJAVIu (ORCPT ); Mon, 1 Oct 2018 17:08:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id a13-v6so3510429wrt.5 for ; Mon, 01 Oct 2018 07:30:43 -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=ChWApLj41SHvi7aylF3dwTV20y/65nr1724kOYV7Ez8=; b=cNv77qP8mUX6kUmAUSbbid/1RphiU7ydbG8uCMqkuGRUbLyb1Hj3zRCH0/ZPECQ7HR cPGA5or6D63edhTiBv6JfDUSiK2heZAvXqJ3HTRUDLk+WoN6d9Gdf2ypGc65vAPM4HEP GEGp7Z7/vj6Qi8BrTl9P3hkML2tCuky9PC0jQ= 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=ChWApLj41SHvi7aylF3dwTV20y/65nr1724kOYV7Ez8=; b=LPydVX+zF23fuk9lv8iKOik2Lfgb4vaRL1LLYjShO7VPTk22FWJBBgGiqQk4mm7uy9 9R9ZWSnYMfsrbJCQFAElx5sIbGj0FJHek84jo4JN6iKzSxwJIiPqskg6dJdJ06gRKLEx 6zb5ewNgCXa+Nk8Tk0us7vS1clpJ5pxdByEsZfuH3ykalab25A6csbiar/7FaE4oUHbx ar8Gqq/N0WKR5UJN5YOKNt5+azVCFQA/BZOrTQ92N68qi4xsXP9FxTd+4q3La1bLEQTb hKfVZal3xgOS6s/BqjjDggcxZmzDZDkjbZs/rMkE6my7dBSX7JYUmz5jzL27CdXIMtcA 84+w== X-Gm-Message-State: ABuFfoit39I5VYV1GYQBYhs9fh+0xm2AzT4QhmBtGoU3/AC2LkyAGp1/ i5TYmorAPJU6yzs9TdLf4tde6A== X-Received: by 2002:adf:d082:: with SMTP id y2-v6mr7076158wrh.314.1538404243054; Mon, 01 Oct 2018 07:30:43 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id w26-v6sm8409668wmi.27.2018.10.01.07.30.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 07:30:42 -0700 (PDT) Subject: Re: [PATCH v9 1/5] venus: firmware: add routine to reset ARM9 To: Alexandre Courbot , vgarodia@codeaurora.org Cc: Stanimir Varbanov , Hans Verkuil , Mauro Carvalho Chehab , robh@kernel.org, mark.rutland@arm.com, Andy Gross , Arnd Bergmann , bjorn.andersson@linaro.org, Linux Media Mailing List , LKML , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-media-owner@vger.kernel.org References: <1537314192-26892-1-git-send-email-vgarodia@codeaurora.org> <1537314192-26892-2-git-send-email-vgarodia@codeaurora.org> <97b94b9b-f028-cb8b-a3db-67626dc517ab@linaro.org> <175fcecf3be715d2a20b71746c648f1e@codeaurora.org> From: Stanimir Varbanov Message-ID: Date: Mon, 1 Oct 2018 17:30:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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, On 09/20/2018 06:31 AM, Alexandre Courbot wrote: > On Thu, Sep 20, 2018 at 2:55 AM Vikash Garodia wrote: >> >> On 2018-09-19 20:30, Stanimir Varbanov wrote: >>> Hi Alex, >>> >>> On 09/19/2018 10:32 AM, Alexandre Courbot wrote: >>>> On Wed, Sep 19, 2018 at 8:43 AM Vikash Garodia >>>> wrote: >>>>> >>>>> Add routine to reset the ARM9 and brings it out of reset. Also >>>>> abstract the Venus CPU state handling with a new function. This >>>>> is in preparation to add PIL functionality in venus driver. >>>>> >>>>> Signed-off-by: Vikash Garodia >>>>> --- >>>>> drivers/media/platform/qcom/venus/core.h | 2 ++ >>>>> drivers/media/platform/qcom/venus/firmware.c | 33 >>>>> ++++++++++++++++++++++++ >>>>> drivers/media/platform/qcom/venus/firmware.h | 11 ++++++++ >>>>> drivers/media/platform/qcom/venus/hfi_venus.c | 13 +++------- >>>>> drivers/media/platform/qcom/venus/hfi_venus_io.h | 7 +++++ >>>>> 5 files changed, 57 insertions(+), 9 deletions(-) >>>>> >>>>> diff --git a/drivers/media/platform/qcom/venus/core.h >>>>> b/drivers/media/platform/qcom/venus/core.h >>>>> index 2f02365..dfd5c10 100644 >>>>> --- a/drivers/media/platform/qcom/venus/core.h >>>>> +++ b/drivers/media/platform/qcom/venus/core.h >>>>> @@ -98,6 +98,7 @@ struct venus_caps { >>>>> * @dev: convenience struct device pointer >>>>> * @dev_dec: convenience struct device pointer for decoder device >>>>> * @dev_enc: convenience struct device pointer for encoder device >>>>> + * @no_tz: a flag that suggests presence of trustzone >>>> >>>> Looks like it suggests the absence of trustzone? >>>> >>>> Actually I would rename it as use_tz and set it if TrustZone is used. >>>> This would avoid double-negative statements like what we see below. >>> >>> I find this suggestion reasonable. >> >> Initially i planned to keep it as a positive flag. The reason behind >> keeping it >> as no_tz was to keep the default value of this flag to 0 indicating tz >> is present >> by default. >> I can switch it to use_tz though and set it in firmware_init after the >> presence of >> firmware node is checked. > > Making sure the flag is explicitly initialized instead of relying on > default initialization is another good reason to have that change > IMHO. :) Vikash, care to send a new version, or will fix that with follow up patches? -- regards, Stan