Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1405669lqp; Mon, 15 Apr 2024 05:55:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkmvk6oX45YGTUG4ka4j8U4zn0updnq6BUwsq3ZGmSC5xD3w7F0gv0B6fga0ci/yOg7c630u5/xSbRilRd6cvBUfgJvitn20Xoo50A7A== X-Google-Smtp-Source: AGHT+IHTpx3SpBs6Ow9Kh6LotP4PaqQeaZ7rvqgr/M4eIeQrHsVg6SzmmGT00uhpPXPcN+tOCOPA X-Received: by 2002:a17:902:e84e:b0:1e3:cf18:7464 with SMTP id t14-20020a170902e84e00b001e3cf187464mr12208139plg.3.1713185706290; Mon, 15 Apr 2024 05:55:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713185706; cv=pass; d=google.com; s=arc-20160816; b=jSmPWry0kRPGaqMmDVaf+3I6yZ81/jYPj1HcHYHNKaPLA+knBcu4WsfckoIIBF193+ eCIHVnRPJ73GUQa7GnbwH5CRH2RP1JlXZclxpW0993cKUGZxVcvQbdQ6Gpjj1MI9zkee pV8QGVVv5x4RbyOZfL2iRrAd1xEyO+kF3V3+sz/wm53hzxe+thJba0e7PbEVHob2egl9 DJTZ8grGCa8rDBmrqvc7Y7q+3I2gViPdPr26FNTR710X6JyE8mS1uz66tX9yGdusDkNQ eB6pm4gAjKZz3jss5k1Uxc+4dpbjn5ebkLXBbi60bYfDEPQMXwWoqmH/N8t+MykfxKSQ CHog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9hsELz4u9tAzQb3B4uCPNWZPXeMP/1Jg/ICpr928Jco=; fh=eItu3IKyn8KXfCeP8GMYlmelTivNTBbjTtfGcUv9A4g=; b=QrjJb4lgfD94lifRMckhjyNRdCt+2bHKlLe77pW7FxoDkej7Ghik+ush2IndMNluVN BfUE+qFHjSipyxg8DIcaBX1FfAnLnSe86zh11lhqVBe7LhO6zHTSIHahyXi0IeQqbVxl lSN+5QPz3RX65BCwh0GIyUEd3CF8gb24xoaE+B3QKJvZzeXVAxQ7mjE+c90TNX4qxJHO forgbi6ufgC/VVJ3BmG35gXr+nOCms1R07KFFDNzqDQAcQXTsN9HdWUTeGkEEhJ3DAbW 5jSVExBCAH7LASYL0RFkoyrjK5+6/mu0kLQrPVwB5i/OF+Mbp6AnFrt4S1SBsIx4BJbZ 4kRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yxatIqoK; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-145118-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p1-20020a170902c70100b001e2408c6df1si7774877plp.354.2024.04.15.05.55.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:55:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145118-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yxatIqoK; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-145118-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 939452837FC for ; Mon, 15 Apr 2024 12:54:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71EE183CA0; Mon, 15 Apr 2024 12:49:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="yxatIqoK" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8E4480BFE; Mon, 15 Apr 2024 12:49:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185383; cv=none; b=Yy2vvCrsywViW19JkdtAxt40POW0kEzrIO6jgM5P4sOpEyBAq5wnqZoXwZ5xKcSeFYkaazQTzcQk3E78/hVN4Lly5S3RohRRojgW/h6PFgvVXcjUCRBHbVzGu6ahHZdk/lbTKVU7B1CGVDPeXuDkYbJ/yW7Le3TU8lV2R/ux1Mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185383; c=relaxed/simple; bh=LV17j8lVfsperCS+wGHMXoiZ0shCDUOI6KBK+CN55uU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uv0evNZGVKrE1mUmY/X2cB3+Ev4P1e0pZDXPb5ZLV0wdNCy8SBxv2GVcvTCTCnvEkuYTO6CZzqIj8Ff6SR15gtrRaUXePLR2AQgkcz0YvMr5HxrDgq4OyWGXfD+p1Fh5OKi/j3YIN4i6R2q5i7ZzhA1p/eycqRLZG8Yt6pJi+sY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=yxatIqoK; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713185379; bh=LV17j8lVfsperCS+wGHMXoiZ0shCDUOI6KBK+CN55uU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yxatIqoKZRdi1AUWhctz9vu5L3Y6vPDYY50NaG0uUrTo+f8BCuQQwHT+cRelofTDq onXsw2sIpVxm2OS5wbzIoUx0NMDYkUvZu99XSH3zcvIANjBpgmWhgMFfSB++eZVytH OH7BEd+bB7qeHqG37RQO4gjCYhy7ZydVovmApXI5KM91lRxDEvvTN7WGQnYSCPALXk U15AlAfk2nrwmWzG49dtvm8wHT+4V9TGza+7UdpjXJ3SkvG5MLQKPH5Wiedd3qy/os yA1KaSVJeU/SlqZoFCIWeLqqzHJLcPLSW2SCnbVTjiPzVE1csYMZFE+696kQqYUEI3 WBM8S+rukjyqQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 931A33781107; Mon, 15 Apr 2024 12:49:39 +0000 (UTC) Date: Mon, 15 Apr 2024 14:49:38 +0200 From: Sebastian Fricke To: Ivan Bornyakov Cc: Nas Chung , Jackson Lee , Mauro Carvalho Chehab , Philipp Zabel , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/5] Wave515 decoder IP support Message-ID: <20240415124938.o5j5er7osnb5ohdm@basti-XPS-13-9310> References: <20240415100726.19911-1-brnkv.i1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20240415100726.19911-1-brnkv.i1@gmail.com> Hey Ivan, On 15.04.2024 13:07, Ivan Bornyakov wrote: >Initial support for Wave515 multi-decoder IP among other refinements. >This was tested on FPGA prototype, so wave5_dt_ids[] was not expanded. > >fluster score for JCT-VC-HEVC_V1 testsuite with >GStreamer-H.265-V4L2-Gst1.0 decoder is 132/147 > >The issue with Main10 tests is that fluster expects decoded file to be >in yuv420p10le format while this driver decodes HEVC Main10 into 8-bit >yuv420p. Though result is looks alright to the naked eye, proper >decoding into yuv420p10le is to be added. > >The rest failed fluster tests are common with Wave521. > >ChangeLog: > v1: >https://lore.kernel.org/linux-media/20240318144225.30835-1-brnkv.i1@gmail.com/ > v2: >https://lore.kernel.org/linux-media/20240325064102.9278-1-brnkv.i1@gmail.com/ > * drop patch "dt-bindings: media: cnm,wave521c: drop resets restriction" > The only user of Wave5 in mainline is TI K3 boards, thus there is > no real need to alter dt-bindings > * in patch "media: chips-media: wave5: support decoding HEVC Main10 profile" > add check for flag "support_hevc10bit_dec" > * in patch "media: chips-media: wave5: support reset lines" move > reset_control_deassert() out of else branch, add > reset_control_assert() to probe error path. > * rework patch "media: chips-media: wave5: drop "sram-size" DT prop" > - don't move alloc/free form device open/close > - intead of exact configuration of reserved SRAM memory in DT and > allocating all of it, allocate all available SRAM memory up to > WAVE5_MAX_SRAM_SIZE from whatever pool provided. > * adjust patch "media: chips-media: wave5: support Wave515 decoder" > according to changes in patches > "media: chips-media: wave5: support decoding HEVC Main10 profile" and > "media: chips-media: wave5: drop "sram-size" DT prop" > v3: >https://lore.kernel.org/linux-media/20240405164112.24571-1-brnkv.i1@gmail.com/ > * reword patch "media: chips-media: wave5: separate irq setup routine" > a bit. > * in patch "media: chips-media: wave5: drop "sram-size" DT prop" > - move MAX_SRAM_SIZE define into match_data->sram_size > - add placeholders for validation that allocated SRAM memory is > enough to encode/decode bitstream of given resolution before > setting W5_USE_SEC_AXI and W5_CMD_ENC_PIC_USE_SEC_AXI registers > - reword accordingly > * in patch "media: chips-media: wave5: support Wave515 decoder" > - add comments around SRAM memory allocation/freeing about > Wave515 specifics > - add comments about BSOPTION_RD_PTR_VALID_FLAG bit in > W5_BS_OPTION register > - add W[AVE]521_ prefix to defines, for wich there are W[AVE]515_ > alternatieves > - add semi-magic Wave515 specific formulas to estimate SRAM usage > v4: > * rebase onto next-20240415, no functional changes Sorry for not finding the time for review, I'll work on it asap. But please don't send a full new series just for a rebase, as that just causes noise, I can very well rebase the series myself before a PR and if any hard conflicts appear they can be communicated. Greetings, Sebastian > >Ivan Bornyakov (5): > media: chips-media: wave5: support decoding HEVC Main10 profile > media: chips-media: wave5: support reset lines > media: chips-media: wave5: separate irq setup routine > media: chips-media: wave5: drop "sram-size" DT prop > media: chips-media: wave5: support Wave515 decoder > > .../platform/chips-media/wave5/wave5-helper.c | 8 +- > .../platform/chips-media/wave5/wave5-hw.c | 395 +++++++++++++----- > .../chips-media/wave5/wave5-regdefine.h | 5 + > .../platform/chips-media/wave5/wave5-vdi.c | 27 +- > .../chips-media/wave5/wave5-vpu-dec.c | 51 ++- > .../chips-media/wave5/wave5-vpu-enc.c | 2 +- > .../platform/chips-media/wave5/wave5-vpu.c | 35 +- > .../platform/chips-media/wave5/wave5-vpuapi.h | 3 + > .../chips-media/wave5/wave5-vpuconfig.h | 16 +- > .../media/platform/chips-media/wave5/wave5.h | 6 + > 10 files changed, 407 insertions(+), 141 deletions(-) > >-- >2.44.0 >