From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CCC624BC04 for ; Wed, 5 Mar 2025 14:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741184569; cv=none; b=LZOUZjIKyws/qYB6P3/7c2h75zxwx8+V+cdiSEapRr+GR72SjNshcSr4KDGnMDbasiLGqX8g0oNjGCaUp/F9Aisc2HaqZg6CPn10d7ez0U8jaWee9rDmQxhZqQl2MLg52Cp6Pm6ycxG5d3QRl6SRyzSGOlfYtdBoko8nck3RPG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741184569; c=relaxed/simple; bh=AALPqvcYdPu/fCVh5D4pZZdU0PPcB5iUhjNbx3HZ620=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=lQQf5fDLrPi89p8Ncap7gva59JbCh0ShH/aOmDl1+LR8B5Ao4EEyaOUc8jZI7XCoPoECprPhtSyRuHPtHLNW04sNMI/h4nJAqy3zFTxtp6U19DzriIfF1dAfiHtgz75jedjolKfI90gkJ5xRiVGow8+uUsfYwi6QjfFSj28ooUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=beXjxic7; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="beXjxic7" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-438a39e659cso46815705e9.2 for ; Wed, 05 Mar 2025 06:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741184564; x=1741789364; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=lSyv7n07CeQN6+Dte2tX+sn3X8BMnYtDKpvbKeDUuO8=; b=beXjxic7ijorklMY2vS9QAfyD0PO88EenyjCpr8siL119joxL/npEIgh8UgQ484xT9 12HgcXcIFyGFju4mbhDdT0nPRlkZbqYLrwKBmU+X5gm01n8K49nvIA8n4U2l7C9fFf6m m7V025ox7qIML9YmVHwLlz+cS1nazOYwW92MFyTpautwUp+CSbT+JcT8GZYjTi6ETQXo mNUZZsbPKjb0gEZB4j0w3QYsLysXmcVue/hU3R8ZEp1TFQPhrj6pBVT3II/M/ugtaHHB yhsc4C4wrku5CGusLNaK7oifODyUht2RVaJ55baxunmLeguzAIHFpyNLpxc9A5hUF8fA tAJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741184564; x=1741789364; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=lSyv7n07CeQN6+Dte2tX+sn3X8BMnYtDKpvbKeDUuO8=; b=B4Tuv8NGTmx8MAiKscCElJcVS/bphrSPSdqX2mEKnzf3Pz/IK/vzfFkhFnp5Acw+Um RphttwhGXNswIO+KgZHcqJkeq0JCBrK7EKAJs5RGm02wGpGiUE3dT4jRgLIWhKZ18VeM N8aNv30O2aLq2tY80k/GJ3wF7pDvIitO3X94zN3hKt46v7UgjAXJYDAN1wNFBzn02TzN 7ZAEwQ/8hrTbX63TR5KGJN1eHLJID2vE8TA5CWGzm54vp1Rq8Qmi6zJHiza58gZ4zDBY GcmfCtmKuvI+Ob0levje1eIwYG6HpZfAEs/maIKj/9YH5cHc/iHbur0kgOK2sjZnGQk5 6NvA== X-Forwarded-Encrypted: i=1; AJvYcCW9ba0PJR9NoCMWgWo8+7QXe3pbaW0/1uqLBhZ+4aXuHwkoaUn1mSv4XXcwjuSF+blyrb7OrfNLjX3A+mRo@vger.kernel.org X-Gm-Message-State: AOJu0Yw0pCig5chwNhPYtbzuySaA814YsjkipUsw4TozGgVU4XI0s9Lw VAjXpgdDTZ70DYs6wWqU7FfUUbJToWsL56S679pzJkGfX1HsoAkH6K1gB12MHrw= X-Gm-Gg: ASbGncuXOoMHvm7Ahb362KryxxwUC4UzqXmWjuqG+Upv7wzegqilJ/XJuPtNdo55OMP O62hdm6EQ3YSHkDQUmgDufYGKzmMU2gEN5o1+CL2EwR0l1iXhEeOBltwWSt6BPsBiEwyRUxp59G euT/g/6oZlvwBT7AvWrY8Tz6SGLT8QEUYWy5x/cgVwaRQgHvd+NNGfz2qh3nXIAo2QsUh8LfkJk M4BQtDFHiu3k11oO41j1K7GB9sfN8SMjeuakGOR9VpPgqyMxkNtLICKYjRUgQ+Pmn8bBeRwyXj8 KY70+5rDsmuGBnsfGrDaO4yCbCGTH3OSFH8/Qg5vNpUmhedJDb0kT4xsG4pNop9ABvQR9xi5JdT p0gCCxvAc7NiLGRiTjhZMpg== X-Google-Smtp-Source: AGHT+IFB474KXfR5EAvEooEwHvPvIfuEC3OzGNc/14oi/JyC0//Cf/vNiQaW0zY3Obiz1lHAh1K7zg== X-Received: by 2002:a05:600c:190a:b0:43b:cbe2:ec0c with SMTP id 5b1f17b1804b1-43bd29c9377mr25131845e9.27.1741184564283; Wed, 05 Mar 2025 06:22:44 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:d001:4ab2:d11a:658b? ([2a01:e0a:982:cbb0:d001:4ab2:d11a:658b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43bd4292f0bsm18746375e9.15.2025.03.05.06.22.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Mar 2025 06:22:43 -0800 (PST) Message-ID: <6d88effc-2aed-4f92-89a7-17d48f43ccd3@linaro.org> Date: Wed, 5 Mar 2025 15:22:42 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [RFC PATCH 00/12] Add support for HEVC and VP9 codecs in decoder To: Dikshita Agarwal , quic_vgarodia@quicinc.com, quic_abhinavk@quicinc.com, mchehab@kernel.org Cc: hverkuil@xs4all.nl, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250305104335.3629945-1-quic_dikshita@quicinc.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAI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uJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20250305104335.3629945-1-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 05/03/2025 11:43, Dikshita Agarwal wrote: > Hi all, > > This patch series adds initial support for the HEVC(H.265) and VP9 > codecs in iris decoder. The objective of this work is to extend the > decoder's capabilities to handle HEVC and VP9 codec streams, > including necessary format handling and buffer management. > In addition, the series also includes a set of fixes to address issues > identified during testing of these additional codecs. > > I'm sharing this series as an RFC because compliance and conformance > testing are still in progress. > While initial functional tests show positive results, I would > appreciate early feedback on the design, implementation, and fixes > before moving to a formal submission. > > I plan to submit a formal patch series after completing all compliance > checks. Meanwhile, any feedback or suggestion to improve this work are > very welcome. > > Thanks, > Dikshita > > Dikshita Agarwal (12): > media: iris: Add HEVC and VP9 formats for decoder > media: iris: Add platform capabilities for HEVC and VP9 decoders > media: iris: Set mandatory properties for HEVC and VP9 decoders. > media: iris: Add internal buffer calculation for HEVC and VP9 decoders > media: iris: Skip destroying internal buffer if not dequeued > media: iris: Update CAPTURE format info based on OUTPUT format > media: iris: Add handling for corrupt and drop frames > media: iris: Avoid updating frame size to firmware during reconfig > media: iris: Avoid sending LAST flag multiple times > media: iris: Send V4L2_BUF_FLAG_ERROR for buffers with 0 filled length > media: iris: Fix handling of eos buffer during drain > media: iris: Add handling for no show frames I should be better to move patches 1, 2 & 3 at the end, after the patches adding support for specific hecv & h265 features, and please check that none of the patches breaks h264 at any time to keep bisectability. Neil Neil > > .../media/platform/qcom/iris/iris_buffer.c | 22 +- > drivers/media/platform/qcom/iris/iris_ctrls.c | 28 +- > .../platform/qcom/iris/iris_hfi_common.h | 1 + > .../qcom/iris/iris_hfi_gen1_command.c | 38 +- > .../qcom/iris/iris_hfi_gen1_defines.h | 4 + > .../qcom/iris/iris_hfi_gen1_response.c | 11 + > .../qcom/iris/iris_hfi_gen2_command.c | 129 +++++- > .../qcom/iris/iris_hfi_gen2_defines.h | 5 + > .../qcom/iris/iris_hfi_gen2_response.c | 56 ++- > .../media/platform/qcom/iris/iris_instance.h | 6 + > .../platform/qcom/iris/iris_platform_common.h | 25 +- > .../platform/qcom/iris/iris_platform_sm8250.c | 4 +- > .../platform/qcom/iris/iris_platform_sm8550.c | 141 ++++++- > drivers/media/platform/qcom/iris/iris_vb2.c | 3 +- > drivers/media/platform/qcom/iris/iris_vdec.c | 80 +++- > drivers/media/platform/qcom/iris/iris_vdec.h | 11 + > drivers/media/platform/qcom/iris/iris_vidc.c | 3 - > .../platform/qcom/iris/iris_vpu_buffer.c | 397 +++++++++++++++++- > .../platform/qcom/iris/iris_vpu_buffer.h | 46 +- > 19 files changed, 931 insertions(+), 79 deletions(-) >