Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1646537pxb; Mon, 8 Mar 2021 02:56:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJwDx5r7//o6RXt3dx4jmd3ifrM/+y8VyOYmhy+iB6CaispDnHermCSXtEoBiRfaQtxqzU X-Received: by 2002:a17:906:ae96:: with SMTP id md22mr13935550ejb.409.1615200966112; Mon, 08 Mar 2021 02:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615200966; cv=none; d=google.com; s=arc-20160816; b=Ee5FNyViCctE1sU0o41x7ipi1EDdG3RLRW4yciPkOspO423d9MMSO1Q4YCTi/Czi8T iE4aN4gTB/4Nw5a3+OaRrDBRkT7dz4l8sIYS2MrgFrxmAGu7HOz+f1Slri29/YiszqaJ ogoaCZD+AVOcwsvUmuk5IEoSA2xdErwquGtnCAhH7xPfHJnqbqv9zgWVOkrW+ybTOU3e 2cvdH2Jt5LcLAAB57Nukbw6tGsvl4/4sGDvB7iW6gn01SIbL4JZc0j1lhMsltuBVOhLs q5m6XJUkI2S3dp+tP5rCvGbYFgEtMByYoXuWQlq4h4/CQw3MgLUU2qJSOP9aTd1VQYCZ sOSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ed2ZmyjgMuArkep/x+pkAPo7evPjB1BAFOc6v5tfSJ4=; b=v3AW1Ly+gSiUhcPsg+/Nb3Rs+I7fZg2ww3eEaiFiZDa8+fv4054jeX1qxd/sF97Ctu MHPFREbwqR6WMkKExYaJNMRSNH9sUJ1qhSjomAvHkob36dEUJjDr5ioWgE/67ZeWH/yg V0eT3yodsD6fCslkxD7IAWGxcaPE17k7y51ELkh+fGsrlyuxhYVWD4sPcGQuJyuIgvi6 zL4WHgE6vn+VgGeCQFDhc1HRoXVxkB8Z4/SvY3vULZ+5iFUGtW3afKG+8b+oM85tiI+D AdKSF7SBPAz1uaTk8YQAS2v6RiJx0ffyHYjJXOZuOxF1oSs5t91a3Vmn16yk4oQmGHKl Zp2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i5DDN26A; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si6968656edb.163.2021.03.08.02.55.43; Mon, 08 Mar 2021 02:56:06 -0800 (PST) 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=@linaro.org header.s=google header.b=i5DDN26A; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231452AbhCHKwp (ORCPT + 99 others); Mon, 8 Mar 2021 05:52:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbhCHKw3 (ORCPT ); Mon, 8 Mar 2021 05:52:29 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D2DC06174A for ; Mon, 8 Mar 2021 02:52:28 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id v13so13954387edw.9 for ; Mon, 08 Mar 2021 02:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ed2ZmyjgMuArkep/x+pkAPo7evPjB1BAFOc6v5tfSJ4=; b=i5DDN26Aj7bY9aXwfNceG+NhoTZBh+NU6hUF/EKYDC6mCxMGzFyBmTzQESYeydRhCA uSppQ2DS3VpD/t8ejN/f5KIMxoOycbCeLS7IaBOgNqXDUgugs+voyYawCtnzH67M/ljq gTXTmn3PPxpyM59Z2m+JcIR1DnUMZHx18wo2nCpUbnSkTytm9ZiSTbUb911czkyVzO67 DANktJwG/D6nddWMppt8f8xEVQUNV/sUlvpDceE5Mp8koEzSsUU5hbke/Ic3bJWOGSl2 TjanvsUTbskjUfVkwh7k/Si2eOOI7kZWsy7e16I/bOwNHsb5mKhdiKVsUi2FYTpI2v4i mLVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ed2ZmyjgMuArkep/x+pkAPo7evPjB1BAFOc6v5tfSJ4=; b=W+gZkhl1usf2CoNLyOhjgbqu6p4FX5y2VU5T9Hy5vp6ti9qzhrysWxGIUDceyGkaAq Sv2aFBTlTAl/bRdnuvQg833xCLYo2a1Qat3ePtFGph1ql6wyw5acla4brAUeE8myNtjZ IOY1DrKpopPcHcTe5cUTuiguYu6Dqv9JWKFQDE57OeaYgN5WDcOO1nkCfSk7XB6/lB/1 ysSNQrwrLBOsdUk4Rv7PvUyy7hpCzkGPbqtDoMDP2Rbz3mvuDJ0qEsNzOOWFaTIGuiLF VpohieivthwnCJZTxk5y37J7szUh3qgklqBSaaewdWmHvHn3G2vjzy1vaioaczOljH9+ u2yQ== X-Gm-Message-State: AOAM530Ys07UH7GIQp7iwd151us3kdsPwclx3QTqIOyoKyM09CAy/wpv kN2fK5yx2Ibaaagx4PHWkAGl0w== X-Received: by 2002:a05:6402:254f:: with SMTP id l15mr2366106edb.189.1615200747272; Mon, 08 Mar 2021 02:52:27 -0800 (PST) Received: from localhost.localdomain (95-43-196-84.ip.btc-net.bg. [95.43.196.84]) by smtp.gmail.com with ESMTPSA id y9sm6386297ejd.110.2021.03.08.02.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 02:52:27 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bryan.odonoghue@linaro.org, Stanimir Varbanov , stable@vger.kernel.org Subject: [PATCH 5/5] venus: hfi_cmds: Support plane-actual-info property from v1 Date: Mon, 8 Mar 2021 12:52:05 +0200 Message-Id: <20210308105205.445148-6-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210308105205.445148-1-stanimir.varbanov@linaro.org> References: <20210308105205.445148-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The property is supported from v1 and upwards. So move it to set_property_1x. Fixes: 01e869e78756 ("media: venus: venc: fix handlig of S_SELECTION and G_SELECTION") Cc: stable@vger.kernel.org # v5.12+ Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_cmds.c | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.c b/drivers/media/platform/qcom/venus/hfi_cmds.c index 4f7565834469..558510a8dfc8 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.c +++ b/drivers/media/platform/qcom/venus/hfi_cmds.c @@ -1039,6 +1039,18 @@ static int pkt_session_set_property_1x(struct hfi_session_set_property_pkt *pkt, pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hierp); break; } + case HFI_PROPERTY_PARAM_UNCOMPRESSED_PLANE_ACTUAL_INFO: { + struct hfi_uncompressed_plane_actual_info *in = pdata; + struct hfi_uncompressed_plane_actual_info *info = prop_data; + + info->buffer_type = in->buffer_type; + info->num_planes = in->num_planes; + info->plane_format[0] = in->plane_format[0]; + if (in->num_planes > 1) + info->plane_format[1] = in->plane_format[1]; + pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info); + break; + } /* FOLLOWING PROPERTIES ARE NOT IMPLEMENTED IN CORE YET */ case HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS: @@ -1205,18 +1217,6 @@ pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt, pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cu); break; } - case HFI_PROPERTY_PARAM_UNCOMPRESSED_PLANE_ACTUAL_INFO: { - struct hfi_uncompressed_plane_actual_info *in = pdata; - struct hfi_uncompressed_plane_actual_info *info = prop_data; - - info->buffer_type = in->buffer_type; - info->num_planes = in->num_planes; - info->plane_format[0] = in->plane_format[0]; - if (in->num_planes > 1) - info->plane_format[1] = in->plane_format[1]; - pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info); - break; - } case HFI_PROPERTY_CONFIG_VENC_MAX_BITRATE: case HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER: case HFI_PROPERTY_PARAM_BUFFER_ALLOC_MODE: -- 2.25.1