Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2586189rbb; Wed, 28 Feb 2024 06:33:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0tk5gjU+A3A44RIuvmW2Az98uKPzUqCdZFAr0HTWHQOziX0dXsFI5otE1cMauJk1rn2cezHOT1d/GeSADJK2ewGrgbIKDmuU0gBXWag== X-Google-Smtp-Source: AGHT+IF3oOVr3QNupN2VGj0OjBHPKvMxgyPMqRLyiV0FpnTT9bJ1rUZ2NkS1AR8sYsphwhgKAGrr X-Received: by 2002:a05:6a20:c706:b0:1a1:864:65bc with SMTP id hi6-20020a056a20c70600b001a1086465bcmr3637267pzb.23.1709130814149; Wed, 28 Feb 2024 06:33:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709130814; cv=pass; d=google.com; s=arc-20160816; b=eU4xjUwgM/CDF3gyCA18ingxKgc0e+fVj1+i6zmIp2FUzoCCjyWapmiUqsK0mTopDT +vWiat9O3LPEFRj6F3b9A9CDH7sLgdMo1BvUIZrwnfGdlmfnR9zQFVvUbgEF7WV66mVo RX/GzJKY6wEzapaBAZReRn5235Aa5qF2qy+tk7FrTWAtvW/hOYvTsnZbaEGBbzpOqJgv ObILHuI/2ERgcsTR5ZXtYuRvLgCPFViTCro0M9+eQk7TJ+Ox2bb8jU73JaONI6Q9h+J2 E5xVUx2KzXXQVQy7nMEnZ9+327dTZozZDemF5k004FN5s8rMzEWJsmJ3kRkpndb1ib3Q QHVA== 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=3Qx3A+xXX4e1MRd4G68RT1Q+bW1auQBLREmBAiZjk/E=; fh=bzbCCYPiJdChBDH3fjd+V2d5sXEkxSBqD03Ybhk7/eY=; b=GRBvkb2ScJHS36D33d2TIaASxQRCOnbF/mio3t+sujQUyBtGADe16/foEFRddvcIrP fHifRJvTM93c9FHohNLeBZ3j+OnyCc+mBd8OfHFbic9X5TRikrHFDhQaqabYFRkbAZed TAvK47PMIj7JlH+3I40VY3SKCz1JY4i3DVSP7SNLKx+sSgtN2Mup4kOSpZhh2ZX56o0q 5gHvBkIruZjzQMq94A2nJXLHC8RSEh3OtOgOQWZg706NpWlwieMJFWGHPgCa6sqIfjiq PNnXlCST5o8YHlXK+WyEbxCievGoRnXcxl8f5ib110xENyzRfZWJNc/0mQL4vNOTeieF zBNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="yUr0DzH/"; 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-85165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j2-20020a056a00234200b006e541489cc7si4006603pfj.312.2024.02.28.06.33.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:33:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="yUr0DzH/"; 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-85165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85165-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F3972B267F9 for ; Wed, 28 Feb 2024 14:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E1BC15A496; Wed, 28 Feb 2024 14:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="yUr0DzH/" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 9E3F1159575; Wed, 28 Feb 2024 14:12:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129522; cv=none; b=mAmsxY9Qf82Sue5xJnjcdWNR/nZf19K9MN8UJ+ffIy2UfwVjo756b7jSc9rm72r1EFmbjeE1MbFYMuKCNAj+0A3++GQeREeQCjtq12HMtlIUVaXZw1zLnH6kfKb2kTHGpJKyD6AjuzS5BxAzjSiy9aOzBzQRnXt06NRNE4ghZMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129522; c=relaxed/simple; bh=kRwKT2nXdupHrKIrXRnblKe07oe3mgSb8bWO/XnoAsU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dfJFyt6ZHmXkOC0MlDumm+EDIDlkxae4zhNOrPTcB5PwRN99f2hqGtE6J8RDF9+g5uNhRMhbWRio1aMV0z8MTVgwGzBDeBsOb38ewfMpz2rHCL7+pgBchX99ho+J6ArXalbx60tOuS8FDREJWmQ+kti48PEjdn/cUxRt4GLuB1Q= 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=yUr0DzH/; arc=none smtp.client-ip=198.47.19.141 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41SEBgOX100500; Wed, 28 Feb 2024 08:11:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1709129502; bh=3Qx3A+xXX4e1MRd4G68RT1Q+bW1auQBLREmBAiZjk/E=; h=From:To:CC:Subject:Date; b=yUr0DzH/8KxOrWY3aRupsZ/UoxQxkRig1AHSfHemKamhnbr8XYMmF4xvn5HLxEOkj UJ4/tFXHwaZBNDUTX8s8EEFLebQeHvXGSiJkL78u5kIIy8cTwWOyBPmTjGx6ZZ9Vhx pRtr34t1QmCDFZqud22ogdAYlL6CEiVJt6WQ+WLY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41SEBgYC004703 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Feb 2024 08:11:42 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 28 Feb 2024 08:11:41 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.26) 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; Wed, 28 Feb 2024 08:11:41 -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 41SEBegS123204; Wed, 28 Feb 2024 08:11:41 -0600 From: Devarsh Thakkar To: , , , , , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 0/3] Add V4L2 M2M Driver for E5010 JPEG Encoder Date: Wed, 28 Feb 2024 19:41:37 +0530 Message-ID: <20240228141140.3530612-1-devarsht@ti.com> X-Mailer: git-send-email 2.39.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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/39c1197742cc858c38860e8cab61666d E5010 JPEG Encoder Manual tests : Performance: Link: https://gist.github.com/devarsht/2f9b30f28768d9f6e338fc5b7c1d1758 Functionality: Link: https://gist.github.com/devarsht/f12743405b285f47a0ce9b0f9681acd3 Compression Quality: Link: https://gist.github.com/devarsht/8fd9edbdbfda7b2f2fe464b17484ceaf Multi Instance: Link: https://gist.github.com/devarsht/dfcc17e85569bc05c62b069af82a289d 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 V5->V6 Range diff : https://gist.github.com/devarsht/c89180ac2b0d2814614f2b59d0705c19 .../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 | 1553 +++++++++++++++++ .../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, 3142 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 -- 2.39.1