Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1608735ybj; Wed, 6 May 2020 01:43:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKHk+QEwoYkmmaO6q4tNA3HCF1JkuEnCctw7CfmQDmgVWvF1Po9fsklLBF8wF93I2SRxQYW X-Received: by 2002:a17:906:400a:: with SMTP id v10mr6186574ejj.300.1588754588918; Wed, 06 May 2020 01:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588754588; cv=none; d=google.com; s=arc-20160816; b=BwJdEBFEIJGoZuzdooeaHyEyHP7YPiAYUUjg4lEwWCc/hvk/39SFAiUHDsbaonabN8 YOqJxeAV66atWLz240gPt4V+J2+zsG4IF44xEFtElih/Av5TY8yCdjWlpXsqepS+r8a2 UO2elPZGNYXssrckhk49+63tFugpb/rq2MEWkf+ZjUo7XsdGllOlXzYkiZKJ/SEwJKKY 3FzzC/JsvkcWiS99QZgbcHUIUTblje1h/ALntVxQFL099t6C8k7Wfce4QD6PXz+VheN6 c+++11GZCbvVhqfJCq5HRQ2JxkvLnuGvdf783Sa2J1U51znqcHwQKKY36pJv4FwZxsrp 5f0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VkoYcVU7NbBeJg58Zqc5BWaG09vaVe4UBMU1LZjqb/g=; b=g7GZ39nf7FNTPNCsc8mGH07ekK9h+KW4o8CH2X/Qpd1sIpybt6AuZa5H7eLL7hfJu1 PCZ4tkfEdwE/+np+KsndastdRWy0DDC3Qx2RLHSRNcoM/oQnejnP2StGZ6/u5ZNXaNF0 J/gXjZy5WeBjsPjIApsccSi90SLSHU5GE22Wfuq2PFQBpzUUrR9hmr1wvuMXmRy/Qvx3 nRBtXBrdgmRVONXaiT9fWNXV31I1oiTDKAHNUCS+dYEyQEhvHvsaGPORYRnFE8wyBHQZ o1KsjXZhIHuHWWj70ARs0QFEYVv4GyYT2PS8DOKZRF8tXXlbfwUpbOK844NoJNUH94l3 19FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CIpRiYea; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si741977ejr.370.2020.05.06.01.42.45; Wed, 06 May 2020 01:43:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CIpRiYea; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728814AbgEFIlR (ORCPT + 99 others); Wed, 6 May 2020 04:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728362AbgEFIlQ (ORCPT ); Wed, 6 May 2020 04:41:16 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43690C061A0F for ; Wed, 6 May 2020 01:41:16 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id a4so804943pgc.0 for ; Wed, 06 May 2020 01:41:16 -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=VkoYcVU7NbBeJg58Zqc5BWaG09vaVe4UBMU1LZjqb/g=; b=CIpRiYea9WavKCCzFUX1KcmqQRqXAUfnUOpK6kYBI47aHAW2q68iHkQwQ9a53C4+mm bfI2CWK8Yr2OJlemlrTiq2q/w0fUesykOuoV/uPt11BXPFji9lBmU5tQeBjrbr3Fe8QU 3U+D2JeKqnISGbxkYsJdYFDrdMSz6AMv3TTmQ= 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=VkoYcVU7NbBeJg58Zqc5BWaG09vaVe4UBMU1LZjqb/g=; b=fHyLkvvRO85zQrP53L0xP+vDCS/+LOHcEHYDNUT6T613liCtxS7qp/HwrR1YnntQJo 6Gr3q+IJToevxI1uDe6wvndX/31kjD+fqZKzjXJR9OyMSvJVJMxV2tBhiBhrxMKLu+7x QvjvXQVwK47qhTp18Caedoc3jdqvocMxdDS/I1aE+ikqvnd4ZODL5vcOnS21JeVmLzjl BHFPAPug2LR4RAMmrs3PSg+qsFnC2Q2WY5mLm40H+rTxzeWLflZI7eCdaGU06g02fP+8 yKF3KMLdljyUxcn2MLAZtjl7BfwKdM9CHjNV6Qkvj8+KeOwg+ZIAtIXBNDyGpGqB7IKC uggg== X-Gm-Message-State: AGi0PuZTT02s5fQW8+MvJOM0LGtWHi71aZvg7BKQsw+WWggjKwUlU0hX H2pfGzD30OB5Bl8GoLSf/eRY4gZRXIc= X-Received: by 2002:a62:7f07:: with SMTP id a7mr4606572pfd.34.1588754475570; Wed, 06 May 2020 01:41:15 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:a92f:c47d:76a8:b09e]) by smtp.gmail.com with ESMTPSA id o21sm3986931pjr.37.2020.05.06.01.41.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 May 2020 01:41:15 -0700 (PDT) From: Eizan Miyamoto To: LKML Cc: Eizan Miyamoto , Andrew-CT Chen , Houlong Wei , Matthias Brugger , Mauro Carvalho Chehab , Minghsiu Tsai , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/2] Refactor MDP driver and add dummy component driver Date: Wed, 6 May 2020 18:40:37 +1000 Message-Id: <20200506084039.249977-1-eizan@chromium.org> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series depends on all changes in the series: https://patchwork.kernel.org/patch/11530275/ 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. Changes in v2: - remove empty mtk_mdp_comp_init - update documentation for enum mtk_mdp_comp_type - remove comma after last element of mtk_mdp_comp_driver_dt_match 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 | 172 ++++++++++++++--- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 32 +-- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 182 ++++++++++++------ drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 1 + 4 files changed, 286 insertions(+), 101 deletions(-) -- 2.26.2.526.g744177e7f7-goog