Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2639271lqp; Mon, 25 Mar 2024 05:22:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnM9q8Bazvaod4rDomQlwhm8R2nC56SeuOt81Pp1PEBS/kk6927d7HR973FWNoMsQ0UbfPSiod4kDt/c+xxr8k4V3Ik1wmuZGwHVHVWg== X-Google-Smtp-Source: AGHT+IH0OCZIRUtUvrQx104HeQmBDksl/vF8wWlNdqmVi2AxjUOa37IwP6nWiRTPNFry/UVMF/h1 X-Received: by 2002:a05:6358:3a03:b0:17f:5b3d:1611 with SMTP id g3-20020a0563583a0300b0017f5b3d1611mr7723919rwe.11.1711369337858; Mon, 25 Mar 2024 05:22:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711369337; cv=pass; d=google.com; s=arc-20160816; b=s2guLpvv/uuQpfn8TM17f/DM/9BXO6ji27azNsUFjXQFpqClPM0/N1sH7bSE5Ydw+m EdVjscyEDUaRYVcQPJchs38JqU9tbxOufowXbQ3r61WdtEhhg+sc4J+7xWCYp+Idi0cZ GqeK9AZvXLIFolTogySrQ3T1/oNnslObOJxXG5Kj0UDdGNyxy4CsbGrLl87KR11gFEU0 LodccH8nvrWN6zi+k1rObJSyFpLH0DhnKlwlTNU2Luvy7zs6vXZ+8CyRfMme75hoY47n BivA72g885h60GsOEaxFMDRsD3Qfje7VsHM2jSLtF/D1IC5OolJc/FsSfUsObKljI6Fe 30Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=RPiEj48KDcJmqB3zbNMJmIq6jw3YQzX8n++ebbQjH5g=; fh=Yk1EWzCllSZhbhHEq7C2oqUtk7ua55nBDIjd4yEVvrE=; b=ul0JYGxgZxMVWmYAZEzHWz9Wc6J1PsHlRsbgOum4F1pHciTyGHhirqLB6xrEWPPXDY JTXYuKtRupFaTASRhgnGlPW2IB2w3V4dVL7clx9axaIK/D8hp6XHodqYOXmIjwRd7HOc 5ug1BaIC/f8mZ1R+PYbTjrQNxxbunWWA3dJvnhSO4zgzP4XZUMsfYtDdR0TO6ruugGvl cJuBTX+24zm4lLsgpcIxi3UHSLaNJ+/2GH59YfvUHjo56xyk9Jf1K1EZV2HCQjK8Cjjg Zx8wVhShcbaWDJBz/VGdr/nQjorOPL2iWwv4GqDvSKh86ETBpBUB24KHjv24r8Nafp/3 Cndw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fbRJUv2x; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-116591-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a4-20020a63d404000000b005cde387778esi7437838pgh.368.2024.03.25.05.22.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 05:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116591-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=@gmail.com header.s=20230601 header.b=fbRJUv2x; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-116591-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 1E98729E05C for ; Mon, 25 Mar 2024 12:18:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CED414831A; Mon, 25 Mar 2024 08:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fbRJUv2x" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 237BC15EFDF; Mon, 25 Mar 2024 06:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711348880; cv=none; b=ILtTBJ4g5jf2Yq3383nnvsLvKvO51miidoBc9vopCYQ24j2rpppLwvU3jDUbRKX12xd7KnrzXoIi8GCL9TtgB1jqdjh9u+iN/+ucLjFJQA1SJGU8YO/T58ZiUAMoSCDeKvULomdhmtHZ0n1KCY0URMSM4S9Aa7Fjvz3vRTaMFI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711348880; c=relaxed/simple; bh=mELGYMOH7A8TPort+ryvunaY+WZx5lfgIl8yCl37ICA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bpkDyeGj2Jz8wHaID5uUWOAHmR1EkAWgK93jXZc2DcNHZg0TgPcTyfQNRb44yR4/t6sCDYVzaG83g4fCWNqa2TVZfj3XCSY2+sRDJl3tV/0vDCug3pACnCUKNrOMgIjoZmFZ/UI+IpNJbM5E9mkFrCmLRRbAc5UgHA4N2X4jTb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fbRJUv2x; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-513d4559fb4so5328714e87.3; Sun, 24 Mar 2024 23:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711348877; x=1711953677; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RPiEj48KDcJmqB3zbNMJmIq6jw3YQzX8n++ebbQjH5g=; b=fbRJUv2xrJ/esnNBdl2OUFWnCd9f/Ej1kVZ0KHAoUiyyc3WzGOfV/NkdZEu7lug+7Q adS79uGIR2sG323SjEI5bT2Jeg+wKc7NRlN9MBgsCR+0NinZvxOZQ2pB2AJjRBji83Sc 3K2lZK3i//cz+5BhbYRwKd4zI61Fqro+yULdXEN1rKBctaeioRtGBdsQWAEP+weKhQRf iaIn+aO6ivVjQaxqnR1EweB//mflt66IrWmQWe0mo8e2ugVxLHhGxMADsm04LWQ88bov estBL/oPkaYIZ78CD7OiKoq6uymM/PABfL2IqtQEBHHXbH1SGLCK1BCUS0H7F4mNnurW /rJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711348877; x=1711953677; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RPiEj48KDcJmqB3zbNMJmIq6jw3YQzX8n++ebbQjH5g=; b=PC5+oyxx37sSlV/ybUcHweaG78IT+pGCCVf2qONNr1KT5BiGYS1ZTrGgIzj9SOEZzs wHXj+jKg5SOzK06MLirkN3wmKZWAuGW2sjNEACxHTWd+zOUOrTXnd4uaY9LElkDU9wEl jmctWIiOh8vEhZtHBomunBADXSikayzCVBtyoSeNi6qL+fkw2ZMdG9kFYoFHDG0B+gHA 6XbYTdMNlSbiGe3uuw5ryJSAuRMd040L0x+8YtumykjN1Q3iJ5mMgW3KGEdZGoBp4DOL 8yHf9ewCEiGSTL3XbYvYlXIIcOACjywKH1bQOVsvJWK/CX/eQUGW76d6YUvpDJxwTRBh 5+xw== X-Forwarded-Encrypted: i=1; AJvYcCUMBlXataeKTMj1Ah4Rs95mFMkFkJJmOyguaiHW5wclwhh8WL49EhkhCDxfvjfsdjvtLUlUZydBC+WRsdS0Q0BYBRy40pPJ/Xwg2lBKyzJ8WpPWlBhuq7+nO4kkqAq50Np5iwvDE79eRXY= X-Gm-Message-State: AOJu0Yzw1OAhWBWlPZCmt95++mzb5kbouQQW8wOS5oLlIK1quonplS+P IFaO/W2tzQnONWJHjYTHfEHudHKJvFeLtRrAvasOjBW9RRjVuUG6Qw/Y7O1pLBQ= X-Received: by 2002:a19:e055:0:b0:513:952d:ac62 with SMTP id g21-20020a19e055000000b00513952dac62mr4358838lfj.52.1711348876964; Sun, 24 Mar 2024 23:41:16 -0700 (PDT) Received: from localhost.localdomain ([178.70.43.28]) by smtp.gmail.com with ESMTPSA id h12-20020a0565123c8c00b00515a411fd20sm828229lfv.105.2024.03.24.23.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:41:16 -0700 (PDT) From: Ivan Bornyakov To: Nas Chung , Jackson Lee , Mauro Carvalho Chehab , Philipp Zabel Cc: Ivan Bornyakov , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] Wave515 decoder IP support Date: Mon, 25 Mar 2024 09:40:55 +0300 Message-ID: <20240325064102.9278-1-brnkv.i1@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Initial support for Wave515 multi-decoder IP among other refinements. This was tested on FPGA prototype, so wave5_dt_ids[] was not expanded. ChangeLog: v1: https://lore.kernel.org/linux-media/20240318144225.30835-1-brnkv.i1@gmail.com/ v2: * 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" 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 | 3 +- .../platform/chips-media/wave5/wave5-hw.c | 296 +++++++++++++----- .../chips-media/wave5/wave5-regdefine.h | 5 + .../platform/chips-media/wave5/wave5-vdi.c | 27 +- .../chips-media/wave5/wave5-vpu-dec.c | 44 ++- .../platform/chips-media/wave5/wave5-vpu.c | 31 +- .../platform/chips-media/wave5/wave5-vpuapi.h | 4 +- .../chips-media/wave5/wave5-vpuconfig.h | 11 +- .../media/platform/chips-media/wave5/wave5.h | 1 + 9 files changed, 303 insertions(+), 119 deletions(-) -- 2.44.0