From patchwork Thu Aug 27 09:24:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 248446 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp9813ilg; Thu, 27 Aug 2020 02:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfbi5dLPbMND40yo/WdxzLHErm7XdvdJqv23D7KBp9dFkGET/S/PBNx6p685/DFO5RmzqN X-Received: by 2002:a50:cddd:: with SMTP id h29mr5754015edj.96.1598520395820; Thu, 27 Aug 2020 02:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598520395; cv=none; d=google.com; s=arc-20160816; b=fiCSFwcKnN4HRyt0tO5VGEXtlnGpJ/TiE6CmhNkUcM4tsY4/SNjpb/wALEjiCZTX9L CIgju481wJUX89i1ShkTs75gyq63BZLuFuo+5WNhtE/KOEcYdpVvVIyUBK0+xFmh/kg3 fEirBzEL54Hnc4DJA9VnSfwPXkFx/gWtqjbLMEJ81V8J1+lXUePkD0ucFqKpbXJfUZjC d1q5YncV4uPzkw5OKi1Tx1THdgtBTzdM+nYeLRfCHzvQIu6OgJFgPSf8NvsGkvJW87pt 5pv5qfmY11ttUBjMrDgCcc7FNTFT8P/cCFulEZQWn7QvqnSuVmq5EyFCHUC3vctJZOgO ymtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bfBeQ4kM5n/MF/SlgmWbcjE9LKSSGdHsds6HtvQPGhA=; b=a7esaC6MnPkdfBoCnMSkruQAatzodxZXLOY0yt4Mn4laZHJqLU5f8ch3Shpmhcx8UE rChAUe1GnNmyHKOg5tOROLPhQC6lkmBEqiyfjzG0LnHa4aqbGyFEW3fBzXZGZGJ5mf5D +dVJQ1mfHJIOHHwu1EHK5QFmhXcia2OqBDzNtU8TGDIlOmfzuTTj/AZw90qPI0NRK1bv b1tHSR6w2820AOzg9u3ZSZs4V0OEvW0Q+eJRSi776eZY8hbCcVJaZgjKKF+kWbnzsbz/ 11vLYpNzbGBJBK/Jev3qkNDnYvsolE3Jm2Z6zGuUFmN92SfIz9r1MRE8l53ut1tJSimO MQkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kOw7fZig; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 q23si1452881edb.548.2020.08.27.02.26.35; Thu, 27 Aug 2020 02:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-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=kOw7fZig; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 S1728502AbgH0JZC (ORCPT + 4 others); Thu, 27 Aug 2020 05:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbgH0JY5 (ORCPT ); Thu, 27 Aug 2020 05:24:57 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD23C061264 for ; Thu, 27 Aug 2020 02:24:56 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id l7so830401wrx.8 for ; Thu, 27 Aug 2020 02:24:56 -0700 (PDT) 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; bh=bfBeQ4kM5n/MF/SlgmWbcjE9LKSSGdHsds6HtvQPGhA=; b=kOw7fZigfkMlLvB1riABVgy9giPWYpxboJojvB4AmOW4Micbt6hEYBFFJZpfR7gLRE 1gRiezEEB8xnUoTXX8oUb74fJ8soYuJ7ErXFN0zv6+hnoH5c+ab91IsxUd6Kddx5tRik dbi/Z79jE++oX4NELth0VhWBQVLzFG/ubGkLN+m+3SMtmzHz7HTTWPLl8+rwzrLAH/5U CP0nc2K51vGDuuq+Vf2X4rjizYtJdaFKrKgA3bubeQMmxzxD1OPt/a1+HDWz0g7kEFCp 6fr5dV2+ui6/28s+ve2sGXmDnY5CV+wpS7/dpegLMJFfIYx5B4NUFeAn8RVaRyu83noR HguQ== 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; bh=bfBeQ4kM5n/MF/SlgmWbcjE9LKSSGdHsds6HtvQPGhA=; b=K3Vbw59wlw8XBIVUW0C6SYYGN5jhZGdBNgPkKBaNTCFRkjpOyLtGB5DPBfUhaMAeU0 Ajyla46JRwomgrWRTb720AbWFMQn33j+IAl+GBHzCxLeqlXHPIRiqM0BvsYbi0eNc2go f7J2DEfFjVFU2DddhVULhsKXQaBq9ArY+qTh12odM4jS3P1StEPTMoidkGxCYHW0Vdsp FrLcbRkWsoNfpfu85Qwl4KAeiovecCtpICwoiV3GdcgMSroQViVBX1q+SUhf40fWw4ri LzDsfEST56KT/pyYmZcp4d4rZpmQ4Fz/FDTNi+Uk+SZFgFF2vdw0J/sUS42dvRnlyaMb gmPg== X-Gm-Message-State: AOAM532xVlhm1xKlQjKBUSqAgYh8QHjYNaZhHWrorFdoiCOZg3PKdzH6 VCQWpEeBKop0rZaBGg8GtLs1/Q== X-Received: by 2002:adf:d849:: with SMTP id k9mr20505253wrl.115.1598520295424; Thu, 27 Aug 2020 02:24:55 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id z203sm4357330wmc.31.2020.08.27.02.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 02:24:54 -0700 (PDT) From: Stanimir Varbanov To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Dikshita Agarwal , Vikash Garodia , Stanimir Varbanov Subject: [PATCH 02/13] venus: Add more capabilities and VP9 profile/levels Date: Thu, 27 Aug 2020 12:24:06 +0300 Message-Id: <20200827092417.16040-3-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200827092417.16040-1-stanimir.varbanov@linaro.org> References: <20200827092417.16040-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add more caps and VP9 definitions for newer Venus versions. Signed-off-by: Stanimir Varbanov --- .../media/platform/qcom/venus/hfi_helper.h | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index 758c70ac26fd..116346fc64fe 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -364,6 +364,29 @@ #define HFI_HEVC_TIER_MAIN 0x1 #define HFI_HEVC_TIER_HIGH0 0x2 +#define HFI_VPX_PROFILE_MAIN 0x00000001 + +#define HFI_VPX_LEVEL_VERSION_0 0x00000001 +#define HFI_VPX_LEVEL_VERSION_1 0x00000002 +#define HFI_VPX_LEVEL_VERSION_2 0x00000004 +#define HFI_VPX_LEVEL_VERSION_3 0x00000008 + +/* VP9 Profile 0, 8-bit */ +#define HFI_VP9_PROFILE_P0 0x00000001 +/* VP9 Profile 2, 10-bit */ +#define HFI_VP9_PROFILE_P2_10B 0x00000004 + +#define HFI_VP9_LEVEL_1 0x00000001 +#define HFI_VP9_LEVEL_11 0x00000002 +#define HFI_VP9_LEVEL_2 0x00000004 +#define HFI_VP9_LEVEL_21 0x00000008 +#define HFI_VP9_LEVEL_3 0x00000010 +#define HFI_VP9_LEVEL_31 0x00000020 +#define HFI_VP9_LEVEL_4 0x00000040 +#define HFI_VP9_LEVEL_41 0x00000080 +#define HFI_VP9_LEVEL_5 0x00000100 +#define HFI_VP9_LEVEL_51 0x00000200 + #define HFI_BUFFER_INPUT 0x1 #define HFI_BUFFER_OUTPUT 0x2 #define HFI_BUFFER_OUTPUT2 0x3 @@ -553,7 +576,18 @@ struct hfi_bitrate { #define HFI_CAPABILITY_LCU_SIZE 0x14 #define HFI_CAPABILITY_HIER_P_HYBRID_NUM_ENH_LAYERS 0x15 #define HFI_CAPABILITY_MBS_PER_SECOND_POWERSAVE 0x16 +#define HFI_CAPABILITY_I_FRAME_QP 0x20 +#define HFI_CAPABILITY_P_FRAME_QP 0x21 +#define HFI_CAPABILITY_B_FRAME_QP 0x22 +#define HFI_CAPABILITY_RATE_CONTROL_MODES 0x23 +#define HFI_CAPABILITY_BLUR_WIDTH 0x24 +#define HFI_CAPABILITY_BLUR_HEIGHT 0x25 +#define HFI_CAPABILITY_SLICE_BYTE 0x27 +#define HFI_CAPABILITY_SLICE_MB 0x28 #define HFI_CAPABILITY_MAX_VIDEOCORES 0x2b +#define HFI_CAPABILITY_MAX_WORKMODES 0x2c +#define HFI_CAPABILITY_ROTATION 0x2f +#define HFI_CAPABILITY_COLOR_SPACE_CONVERSION 0x30 struct hfi_capability { u32 capability_type;