Message ID | 20240215134641.3381478-1-devarsht@ti.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-67011-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp408109dyb; Thu, 15 Feb 2024 05:47:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUO3ghmlwnD6B1SFVDCiBn1b9yjO/t83Mrq+ng/fNMlMWmAvN2Wg9nGoSNH2wc0EVoh/afh/Q51y5ZCcc8N+tRVvYH7ow== X-Google-Smtp-Source: AGHT+IHOjXmELNYjkZf9ylvLv6kfQ0HXcraqH6rvKQ/gq/0lWjItWpQgtB+YZr3s6FPXdHdVVoOc X-Received: by 2002:a05:6a00:1255:b0:6e0:f752:b46a with SMTP id u21-20020a056a00125500b006e0f752b46amr1918460pfi.19.1708004858156; Thu, 15 Feb 2024 05:47:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708004858; cv=pass; d=google.com; s=arc-20160816; b=Kn9Q0+/qNlCmXCNHDdcQOYx4qAWMVpJb6Rh1uW0Zb4QX+H48U7G/GjYc4K/DLVeLpf qV0X7jqLQcmfiCl7usfYOgpJiE8/Yj25+ltlnAWKcQo2S1/kmgla/Ua6OV7bY4R239jV 8uYXFIzo8DsHWOeO/i0J0zGvtV9MBhNzEmJmsllkNabiTxdfVovBmNLExzT3H9w9upw6 3MDWS3nsifYD2qQj/8/gWDwB85TrP2sqR8rYnFIFqy5vvP60Siq9nEhCWSpwowT8N40W ByJMDokNyfKdtTG6FMbz6QZh/QcnYT2AtDsgUV/0J/x+5tgSAQ+K6SVdwQwLsmF1G+1r OJ4w== 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=sWYu0ow55pn/SH9vLWnXPNSZ+oQPaMa/h4E6Dx21FkI=; fh=X+DTtSLKO9hbmvHpiLUS0izXRphqF2INkyxKKDw/vdo=; b=TJiYzQGZGOe2I2SxzQQCavAYC7YNuZfNINRHudJmtgFYKYWFiYg9n4TEQo9AioTWoG qRegJK2vLoLWa1vhwO6LPue13XVlL0cSwuMuJzpgge+iDtxpdf+kHezoivMkKJHilDyY Q7nHLtbQ8DwNvK6345tu4P5Qm0mqm+R7wRA3VQD/KvT3mdd0GQ1hjug9Y3dbVmXsEyX1 Ef9OGpKDPU5qRuWQN94ABolVDO/SFW+q+l1HpAVyo2d75dgiSG0UajxS3b4qSAhvaFvs tTbPtxT0+7sawCyAOJZ9N8DHvsDo4u5uKgkk7+hU9q+/RI7DaapASXWx6elTBcQQOgJy 3pWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ic7rX9oz; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-67011-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67011-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cm23-20020a056a00339700b006e0977b2d56si1185245pfb.160.2024.02.15.05.47.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 05:47:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67011-ouuuleilei=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=@ti.com header.s=ti-com-17Q1 header.b=Ic7rX9oz; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-67011-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67011-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 6FC852840FF for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 13:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33516131E46; Thu, 15 Feb 2024 13:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Ic7rX9oz" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 8C03512BEAC; Thu, 15 Feb 2024 13:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004815; cv=none; b=YgMj9MYl5JutiIn1mF6asYmwBVug2XUHzkA0Ccy9DQmlh/zMC22TRsKuEz1iHqf672PP/fMQl/5hIsU3QQodMFrjYZzw+H5fo5qCuCuz1JeMI1XGXDWm6bVtloJcX36r1XGDsW1cIhRMrGA+5pXBhKCk49pcxHwxCimfGgYqdgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004815; c=relaxed/simple; bh=Jvck5V28EeMAtRRr4cd5+UtQYuoylrWAgA/9ubHgaTY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=vC/YuBmBxQW+MHj29tdze434d+fmLRJP5JYxUsMod9aKHLhECboYGYdDu1KtlVqTEv5TF4Urx3S+xFCD8wwViFFY3fH8gucaKEhzgcKzNxegBfyV4jWLZnp4TXo7g3/f8G2h3LVkHUE7UYK4Bidyo3lWLWp0R24YcLpsgcFT0SY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=Ic7rX9oz; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41FDkgtI007299; Thu, 15 Feb 2024 07:46:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708004802; bh=sWYu0ow55pn/SH9vLWnXPNSZ+oQPaMa/h4E6Dx21FkI=; h=From:To:CC:Subject:Date; b=Ic7rX9oz50azm9a5+FWIJxZAK9Jd+NVgXQPAeQQPJr1rrm39T3jJjnT3jUaa0d/at k5IpI7rii1gmgISxLFOwCWJLV9WZ4RGTpx6qcj2tKe/cvcxNl2cTqHeCBL8OERXGb3 xjUKXRC5zRI2OcYHHSeBxFlAwIJvg0mIOvOnQoi0= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41FDkgOA106764 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Feb 2024 07:46:42 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 15 Feb 2024 07:46:42 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 15 Feb 2024 07:46:42 -0600 Received: from localhost (ti.dhcp.ti.com [172.24.227.95] (may be forged)) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41FDkf4d052724; Thu, 15 Feb 2024 07:46:42 -0600 From: Devarsh Thakkar <devarsht@ti.com> To: <mchehab@kernel.org>, <robh@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <hverkuil-cisco@xs4all.nl>, <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <laurent.pinchart@ideasonboard.com>, <praneeth@ti.com>, <nm@ti.com>, <vigneshr@ti.com>, <a-bhatia1@ti.com>, <j-luthra@ti.com>, <b-brnich@ti.com>, <detheridge@ti.com>, <p-mantena@ti.com>, <vijayp@ti.com>, <devarsht@ti.com>, <andrzej.p@collabora.com>, <nicolas@ndufresne.ca>, <benjamin.gaignard@collabora.com>, <afd@ti.com> Subject: [PATCH v5 0/3] Add V4L2 M2M Driver for E5010 JPEG Encoder Date: Thu, 15 Feb 2024 19:16:38 +0530 Message-ID: <20240215134641.3381478-1-devarsht@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790972901874444251 X-GMAIL-MSGID: 1790972901874444251 |
Series |
Add V4L2 M2M Driver for E5010 JPEG Encoder
|
|
Message
Devarsh Thakkar
Feb. 15, 2024, 1:46 p.m. UTC
This adds support for V4L2 M2M based driver for E5010 JPEG Encoder which is a stateful JPEG encoder from Imagination technologies and is present in TI AM62A SoC. v4l2-compliance test : Link: https://gist.github.com/devarsht/7ad3d344e11e2c17befbf16bc079f817 E5010 JPEG Encoder Manual tests : Performance: Link: https://gist.github.com/devarsht/02397fa4ecee5104898cba67ff08dd4f Functionality: Link: https://gist.github.com/devarsht/b2c4f537d7b0f822dd4da28ffdd970c0 Compression Quality: Link: https://gist.github.com/devarsht/ef14fb216c9b5c484a712c94fffeb26b Multi Instance: Link: https://gist.github.com/devarsht/0e4949e72d55d0f608f7a28de5e2a4f9 Devarsh Thakkar (3): media: dt-bindings: Add Imagination E5010 JPEG Encoder media: jpeg: Add reference quantization and huffman tables media: imagination: Add E5010 JPEG Encoder driver --- Link to previous version of this series: V2: https://lore.kernel.org/all/20230727112546.2201995-1-devarsht@ti.com/ V3: https://lore.kernel.org/all/20230816152210.4080779-1-devarsht@ti.com/ V4: https://lore.kernel.org/all/20240205114239.924697-1-devarsht@ti.com/ V3->V4 Range diff : https://gist.github.com/devarsht/22a744d999080de6e813bcfb5a596272 V4->V5 Range diff : https://gist.github.com/devarsht/298790af819f299a0a05fec89371097b .../bindings/media/img,e5010-jpeg-enc.yaml | 75 + MAINTAINERS | 7 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/imagination/Kconfig | 12 + drivers/media/platform/imagination/Makefile | 3 + .../platform/imagination/e5010-core-regs.h | 585 +++++++ .../platform/imagination/e5010-jpeg-enc-hw.c | 267 +++ .../platform/imagination/e5010-jpeg-enc-hw.h | 42 + .../platform/imagination/e5010-jpeg-enc.c | 1552 +++++++++++++++++ .../platform/imagination/e5010-jpeg-enc.h | 169 ++ .../platform/imagination/e5010-mmu-regs.h | 311 ++++ include/media/jpeg-enc-reftables.h | 112 ++ include/media/jpeg.h | 4 + 14 files changed, 3141 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml create mode 100644 drivers/media/platform/imagination/Kconfig create mode 100644 drivers/media/platform/imagination/Makefile create mode 100644 drivers/media/platform/imagination/e5010-core-regs.h create mode 100644 drivers/media/platform/imagination/e5010-jpeg-enc-hw.c create mode 100644 drivers/media/platform/imagination/e5010-jpeg-enc-hw.h create mode 100644 drivers/media/platform/imagination/e5010-jpeg-enc.c create mode 100644 drivers/media/platform/imagination/e5010-jpeg-enc.h create mode 100644 drivers/media/platform/imagination/e5010-mmu-regs.h create mode 100644 include/media/jpeg-enc-reftables.h