Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp381767imm; Mon, 21 May 2018 07:32:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqj/SRRTs9ZqAX9Ik+GBqMlQFJk0jPysAWDBIhqlMMklHQPtyTJGdkn5Y8KpkHALd2cOBX+ X-Received: by 2002:a17:902:bb07:: with SMTP id l7-v6mr20928659pls.128.1526913148145; Mon, 21 May 2018 07:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526913148; cv=none; d=google.com; s=arc-20160816; b=h/I0P39DYu4lr8Cl80xGvu6H3dOiWuVHm1jp1ViWm9YXEF9f/FCptcJ1If6HYDmY4N So1A/R+OJmmm8mEVoTSX955E0OnGl9QwwsZIomiFsP/IlmzALE8VZmqMbTYTWQwCe8Od Y2BonoOlr0NPyXhE2Erv5oD23vdDfwgd2C2v6jMVpFnM/20PtJREy/hJRIP7CiwOEZPG p+ws4R5ZxjAspA8Oi9rPSVjQt24yxZ4qEOBWl8BOHOPWoldEY27QVixhk8a9D6f2BhBq 2dOIvj8kHE2cxr5uHLJKzzY41l2V1ZfOeX8DM+ayzRPK3QB6bxATlF1FOPWHdtg49ADp Innw== 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=PTtTryR0XaJbmBTIC0YVi9xoX19t6CSyuuWW5x89y7w=; b=w0ALfWcawdk3hO1/w7QI3kAIUD7FabqTgZAb5UzLFjmiFizfUQ1bcc/LmzOk3nVVOL UtAdoawy7l0oRTyqoYoATzbql+LG6Pmqc13LSfJOVzk8LbLUYtkSLHHagta1GyVOIwsL /RYV8wnJqIXO0ftAWSV6QPOeYuJala9qKRw41szaWfH3kV1Q/iuUMSksnUoZ8kOBAEAi vNsd4Qv7O6kbwdZnXq0Q0JHQXr5bnjJ95YMx378yrRcVHsIccyl0BIsjf9Bwo29nec+f wNnWLbiKevfmAAqAyKYevFUz6xtlvXnCqNg1c66hveMAuFkBgDUXsBrAI+3GwVJFm8tT Xtxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ajpjr/Xt; 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 z18-v6si14117173pfd.357.2018.05.21.07.32.13; Mon, 21 May 2018 07:32:28 -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=Ajpjr/Xt; 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 S1752743AbeEUObu (ORCPT + 99 others); Mon, 21 May 2018 10:31:50 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:43881 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752658AbeEUObn (ORCPT ); Mon, 21 May 2018 10:31:43 -0400 Received: by mail-wr0-f196.google.com with SMTP id r13-v6so3881894wrj.10 for ; Mon, 21 May 2018 07:31:42 -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=PTtTryR0XaJbmBTIC0YVi9xoX19t6CSyuuWW5x89y7w=; b=Ajpjr/XtZTe3Fw/JJy2BRzSVu1SjJGL78PwiZGR0pgOb0stdlatKJL13pYgQX/mQLB vITJOyVw6ZtoMq7JXuDukU6HEzYp0eC3JtYJB6G+MG+iZ7av1yGngW+RYuzKsoepSaG/ QUZKRAf1Sx0bUGLvE4442fOkU5g1DnsCbByvY= 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=PTtTryR0XaJbmBTIC0YVi9xoX19t6CSyuuWW5x89y7w=; b=EhObBb1qvvLLZ7lc61oXWfYwUTko8WUo7LkFqwJmtYO7ovyHsbKiOQdN4ygiaKeV+5 81r2O1i46tNZM+8oI1ZEEK4VyAGadpmSdlOBJHWuXgYuFlPRVpj8mA4HV+4dJ3AgrArq VwY/MAUeRCyywN4XqyETIphPYfnePGb03G1gN7/ofj5D7jGkQPU+caBSBkflxYuLjPRY MZAF/WxoqY3PD9iVTkHDS4TVOrn1x8ano7LK3qN0g4Tf/aRnN3GTIuBZnxLWBk5faLdj FJ0SAjFMjQmlavnrYzSJHJNtmKz7STleZ/KvgXCNxQnifklSHzTinY6ZnFocJILOO5g0 uuhw== X-Gm-Message-State: ALKqPwekLZsWFEOOHhgWsD3TvelACCuOESsOBybg++YTOxo5HXSLLmn9 QKex476+MGXKU1hBKDuRUjpwHQ== X-Received: by 2002:adf:8486:: with SMTP id 6-v6mr15444517wrg.148.1526913102356; Mon, 21 May 2018 07:31:42 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id s14-v6sm16021633wmb.5.2018.05.21.07.31.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 07:31:41 -0700 (PDT) Subject: Re: [PATCH v2 03/29] venus: hfi: update sequence event to handle more properties 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-4-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: Date: Mon, 21 May 2018 17:31:40 +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 04:53 PM, Tomasz Figa wrote: > On Tue, May 15, 2018 at 5:14 PM Stanimir Varbanov < > stanimir.varbanov@linaro.org> wrote: > >> HFI version 4xx can pass more properties in the sequence change >> event, extend the event structure with them. > >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/media/platform/qcom/venus/hfi.h | 9 ++++++ >> drivers/media/platform/qcom/venus/hfi_msgs.c | 46 > ++++++++++++++++++++++++++++ >> 2 files changed, 55 insertions(+) > >> diff --git a/drivers/media/platform/qcom/venus/hfi.h > b/drivers/media/platform/qcom/venus/hfi.h >> index 5466b7d60dd0..21376d93170f 100644 >> --- a/drivers/media/platform/qcom/venus/hfi.h >> +++ b/drivers/media/platform/qcom/venus/hfi.h >> @@ -74,6 +74,15 @@ struct hfi_event_data { >> u32 tag; >> u32 profile; >> u32 level; > > nit; Could we add a comment saying that it showed in 4xx? Sure, I can add a comment. > > [snip] > >> + case HFI_PROPERTY_CONFIG_VDEC_ENTROPY: >> + data_ptr += sizeof(u32); >> + entropy_mode = *(u32 *)data_ptr; >> + event.entropy_mode = entropy_mode; > > Is the |entropy_mode| local variable necessary? Isn't GCC smart enough ;) Sure, I can drop entropy_mode local variable. -- regards, Stan