From patchwork Sun Oct 9 18:35:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 613691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13F73C433FE for ; Sun, 9 Oct 2022 18:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230323AbiJIShI (ORCPT ); Sun, 9 Oct 2022 14:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbiJIShH (ORCPT ); Sun, 9 Oct 2022 14:37:07 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610BA255AE for ; Sun, 9 Oct 2022 11:37:05 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id a13so13317586edj.0 for ; Sun, 09 Oct 2022 11:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ACwGlN0BRnEYThscUK3CoIEB7lP8hoVucUxDhLzneEk=; b=7Jh07O8JCrk3g4JYofKrvove8Gd75W0CRlQ4alht4UdEcSJJqDACJIkLzAxtVjgAaa X2kw1yMLePc4yXQY9xNLlU1hdHMzv/atTQCVozbAoMI+fxZKuUB9K9ZTmhXOinF5rOeG zJU2fAmaulQ3B55LQ8ijUnURHLp8fVfhpubn/+a035+kwZymsOBx0sDcomDaXZx5fAEn 3cQzVl1cTnZRgeAVTKZ4QJGbBCwRr3YfnFkhYNXscZOpTvVmdUQxnbelEgFAvrrRsx5J X26+Dxox5YfgZz2Y8yHdpN+gPTVo3wocoqGJ54C2RYyLwsD8AfacZKNZr+sI9bx75O33 YBhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ACwGlN0BRnEYThscUK3CoIEB7lP8hoVucUxDhLzneEk=; b=Zm4NjLqRbxHffeuAYGeFa061QR7+aYirFznyNzeySEH7Fr7thCXeBmC46UtgAONruz bRJhn6X9QOmEoNGydxnzCC5jrR3YOZCy+zJGRrRNejB1zflLkY6FPbWJmFDTbfPQK4NZ Q4n1cOzHQQBVdgzcbAd0GEcrBQVVB7rrsgD1UY/dKJuhzxUpSmQImIf8fdoQ9ZOCBiTA XoYPCwQqPEON77jjCUryPoh0kkdXkuLF/UOtvBnyW823FjNs16dHNiILh2DzJdZU8fby urQImfNS3zZfDUq2TIYsydHA93U85+Gd8PlVz3zz5830Mwsm5JE/KYKQEnSlrHdbnhKe 2JKg== X-Gm-Message-State: ACrzQf0Xa9dhCIFZf/zSTHtsKC7Xl1BoKjG5H13c9JLP7wIQk38nU3bk Rs3Ubyh2vGzhhxE0zEFaLUnjlA== X-Google-Smtp-Source: AMsMyM5X2SgxWeDlvNs/2NvxgdONXqr+iN79eEHlJPeaCIRAMB2Om23eOUxGLRH/DY9y/Cv88rxuUg== X-Received: by 2002:a05:6402:2793:b0:45c:21f4:35a3 with SMTP id b19-20020a056402279300b0045c21f435a3mr849746ede.345.1665340623966; Sun, 09 Oct 2022 11:37:03 -0700 (PDT) Received: from sleipner.berto.se (p54ac5370.dip0.t-ipconnect.de. [84.172.83.112]) by smtp.googlemail.com with ESMTPSA id o14-20020a50fd8e000000b00459148fbb3csm5610050edt.86.2022.10.09.11.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Oct 2022 11:37:03 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH 0/3] media: rcar-vin: Add Gen3 scaler support Date: Sun, 9 Oct 2022 20:35:48 +0200 Message-Id: <20221009183551.1664631-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi, This series adds support for R-Car Gen3 VIN Up Down Scaler (UDS) on those SoCs that supports it. Patch 1/3 prepares the VIN driver selection rectangles to work with the media controller part of the driver. Patch 2/3 then do the plumbing to allow more then one scaler implementation. Finally patch 3/3 adds support for the Gen3 UDS scaler. The series is based on top of media-tree/master and is tested on both Gen3 and Gen2 without finding any regressions. Niklas Söderlund (3): media: rcar-vin: Do not cache remote rectangle media: rcar-vin: Store scaler in a function pointer media: rcar-vin: Add support for Gen3 UDS (Up Down Scaler) .../platform/renesas/rcar-vin/rcar-core.c | 22 +++- .../platform/renesas/rcar-vin/rcar-dma.c | 104 ++++++++++++++++-- .../platform/renesas/rcar-vin/rcar-v4l2.c | 93 ++++++++++++---- .../platform/renesas/rcar-vin/rcar-vin.h | 9 +- 4 files changed, 194 insertions(+), 34 deletions(-)