Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp210101imm; Mon, 1 Oct 2018 08:46:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Q7u0mP/aWDymBQzvHQ6lJLcksQkZ+5s8KbuFI9BXJOYlPegTKkIJA1dhzYpwSW6dgAR6i X-Received: by 2002:a63:3642:: with SMTP id d63-v6mr10794898pga.404.1538408798759; Mon, 01 Oct 2018 08:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538408798; cv=none; d=google.com; s=arc-20160816; b=orvmfAu276D3v+wM/TCetYhHY6TbrZyoadWuY3+QC3LXhDZWBcOfngG/HYTlLJSkOb GHhrphEcVJgvZRMVFscjseh/GAzkhZukexIdoEoc5oRyYOV6z2HTNVdiVMi/5Gv7Ex6C yW9gFK+Cv4fIiQMmoJOct0jbB/IUyOLIilZWLBNCWB09qVcs+PL7URJi8zYM5TrTLRXf SdCh6scfcHZUTCOsqghhfKCpYwHMfK06OZz9SBCqjC47qW/Z0CJw1sp/Q0F1uU9ymwIR W7U/3tgR568GN7TCkobgJzh7o1yuf4FiO6QqtA+9JGa9pIt1bnQ4dszmqTYpSZdaIZ3s RMvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=bYU50n1NpsSP7DJCSZQQbCVB9f4Ih0rSpCV410bdnbA=; b=tUw+iiAS1GiBpRjVHb5VZXQ4R4GcUD0C+f81mGTBgUE1XWvBWGCgo82NHIfT/NI+zO cQOVsQ2+jRbMJ9vQWInLb5qIEJUFmeeMQOKaL+qrVVgwhzAJl5SbuEl2w8Yzc7iR7vs9 OcStrUBoZMEDvW0Tb6lc9neAMhXhBkH5vTMm0Pwr5UqjpOSKa5MMzyX1LL0mzJdYyUI7 /6qnG/75HgF9P84PLLxUQX5Zg9hrsZDHu4Td0Sfwcm0tRjnbTnwGUyVIozaLaU3Lvohx 4OmHMT79u4UB0Puq/34wbRU4YVYPXPx87caYhOxCwAyegdZxk1m0QoYb3dl6DuyPLdYm C1Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=URa74D9s; dkim=pass header.i=@codeaurora.org header.s=default header.b=G3jgmTIm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35-v6si13241832pla.116.2018.10.01.08.46.23; Mon, 01 Oct 2018 08:46:38 -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=@codeaurora.org header.s=default header.b=URa74D9s; dkim=pass header.i=@codeaurora.org header.s=default header.b=G3jgmTIm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726238AbeJAWXN (ORCPT + 99 others); Mon, 1 Oct 2018 18:23:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44900 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeJAWXN (ORCPT ); Mon, 1 Oct 2018 18:23:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7254D60C1D; Mon, 1 Oct 2018 15:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538408688; bh=q15h+YKcFMqb3r1sNrIuc0XDQxrAwGjcUX9M7z0GYT0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=URa74D9sRuP4f7zQIWRxtYE/pUBgAA3cazDXxvNIHKDb98pnVW/gCoOxb4PGSQmHQ bgzn5qL6b/CYlNamv9zLmuK909+AQoXad6P/ECcVeSiFH+x6PmCDCsg33OdT9KJf7f Mqe/wzeXXPRnherj1Nmdc6kl51/2r2rMCQYlmSOg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id D998860C5F; Mon, 1 Oct 2018 15:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538408687; bh=q15h+YKcFMqb3r1sNrIuc0XDQxrAwGjcUX9M7z0GYT0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G3jgmTImJwdS5Oxram/LVwHzv6BF/ASNnfjmO4fXrWG1hIfTrm7oyN6mGKZtA4hIb lJaDZzjMuwcPIuFnvZKcrUP8S4EeKrN+xrYYk7M1wAo56ez+kf5O1iUJPziGSjnkU8 QHCWTMs9SvCPsVuwhTuz8YtW4Zhhbsasl3cyDuaQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Oct 2018 21:14:46 +0530 From: Vikash Garodia To: Stanimir Varbanov Cc: Alexandre Courbot , 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 Subject: Re: [PATCH v9 1/5] venus: firmware: add routine to reset ARM9 In-Reply-To: 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> Message-ID: X-Sender: vgarodia@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stanimir, On 2018-10-01 20:00, Stanimir Varbanov wrote: > 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? I will provide a new series with the suggested change. Thanks, Vikash