From patchwork Tue May 5 07:44:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eizan Miyamoto X-Patchwork-Id: 11528355 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8227B14C0 for ; Tue, 5 May 2020 07:45:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 383422087E for ; Tue, 5 May 2020 07:45:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MOH9bVF+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="gTUcBPhX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 383422087E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lKt3R4uMOhW+b0GjiduoTXHRzoG+XYp8cudamdHQbno=; b=MOH9bVF+ieyS/z Rw3oMHIHVX2I7jrNNwVc52zhdsdFYaGhL+/ZNJmw3uFsmALxB+YiNofe2JzeJDdPUJ0DsSNUdrXOk eYTTW1mHuQOMuNMHv7jLxsl5m356CC1da2PYd0msPwsAe8iYvaw+K59pF8HzKaXD7ljOwEMfLw4Ul Ast879rzzgpvR057/99CSOsYArrAHgM5z9m2u8S4utENLEX0+Q2KA3tooo9kJmFNkfJHY9LKNNbAg D6ZzhxPA9cSzIN9Dr4pmSO9yN8pzz4lM5QTG1uBfc45HBL1bN6b04k+36jcIQu+xTPG9zFk5avZvS wSdN3DM/XXeehUK6cjOA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVsGG-0003tx-Dw; Tue, 05 May 2020 07:45:04 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVsGB-0003Xm-IU for linux-arm-kernel@lists.infradead.org; Tue, 05 May 2020 07:45:00 +0000 Received: by mail-pl1-x641.google.com with SMTP id u22so448598plq.12 for ; Tue, 05 May 2020 00:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O2pv13qx7VFGbbGCBI+M8Dk49yxcXbYowJJnWYcKPyA=; b=gTUcBPhXn7zwDJld52yMM64s04tMkXRJBQG1NWq/zYwXC6B1H01YZwAbf03E0N+d3a dsYVRX3mdZ9pP3VUEc1ki2liSb7gzB2RnSZzS39WlTfSWX5IENahsL6Ptt8mKz3pYpcg OyJfrpRgzQWKerlBIyhp3wbvemUv+0LOlwiCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O2pv13qx7VFGbbGCBI+M8Dk49yxcXbYowJJnWYcKPyA=; b=tFUReub4yVak7iEEr0xNfXsUFL/n7k4DEJPG4xbppm0zIM3iVim+kG3Lh8sn/GxE79 4URYPx8zuFJrdOrszH6K074bZOAEOrzd1Qu9jWTtM2TovM6YTDg3cSWmNh+tly8+n74y 6fBoC0SP/uiSeS5IBZxOH5sPSZIXd4b/553ghPMkpsRst/ZJYvhrzGHdeQjVHaIvgrbB I4S5hveQGR2x4rgWEj5g638eZ+cNEhf72A6z5NXwWyM/uLRkz82LNAIGLRPODrzrqB5b WvJ2gkVEuj4Emhlw7nCVSowH8ShCZC88FeBeHL8CKOv+lwX7G/olTTsRsMCJjnE1ADmT q+Xg== X-Gm-Message-State: AGi0PuYjrg7Ln0pFO0fVCDOzYOw3I6Q8uEtwqXdnj4tDe/C7gjDUye3W 9E964udgs8aTP6Yv0aXWfWDhbQ== X-Google-Smtp-Source: APiQypKEj76sEkdrmamm6pACw3UuGZqt7SISdTgTQwe/a0f+om4l4A/EzQV+B3BPoL0Bs/K056M7Kg== X-Received: by 2002:a17:902:8687:: with SMTP id g7mr1976063plo.59.1588664697580; Tue, 05 May 2020 00:44:57 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:a92f:c47d:76a8:b09e]) by smtp.gmail.com with ESMTPSA id j5sm1205741pfh.58.2020.05.05.00.44.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 May 2020 00:44:57 -0700 (PDT) From: Eizan Miyamoto X-Google-Original-From: Eizan Miyamoto To: LKML Subject: [PATCH v1 0/2] Refactor MDP driver and add dummy component driver Date: Tue, 5 May 2020 17:44:29 +1000 Message-Id: <20200505074431.242840-1-eizan@google.com> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200505_004459_605744_8621A892 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew-CT Chen , Minghsiu Tsai , Houlong Wei , Eizan Miyamoto , linux-mediatek@lists.infradead.org, Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This series depends on changes in https://patchwork.kernel.org/patch/11528171/ We are adding a dummy MDP component driver so that all the components are properly configured with IOMMUs and LARBs. This is required for us to get hardware video decode working in 4.19, and possibly newer kernels. Eizan Miyamoto (2): [media] mtk-mdp: add driver to probe mdp components [media] mtk-mdp: use pm_runtime in MDP component driver drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 186 +++++++++++++++--- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 33 +--- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 177 ++++++++++++----- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 1 + 4 files changed, 297 insertions(+), 100 deletions(-)