Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp418329ybj; Tue, 5 May 2020 00:47:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLr9PKjB/S/2ZJdlt37SPU8QVzlXEnrItIfuEVtDV+/3M9BfBIbSXBHNfBeOgYMaCNQCHC6 X-Received: by 2002:a17:906:68cf:: with SMTP id y15mr1423399ejr.260.1588664824027; Tue, 05 May 2020 00:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588664824; cv=none; d=google.com; s=arc-20160816; b=IaYpkK2mi9DbZWBtVDVWxTNEATdGERPhWRA0lf8eFCxH24Bt8pfkRY02ZEtYf4WdKh LN14nXblK6hrJyCFT0d5j9l2ZohkTX21K0+iKS2a7hMk+unhHXRKZJhCp4kCHr3XOAex zBAOWTC5wkM6JFOJT48bK1tmZ5MjsF7dVv+D0s/JW25H8dLkhEdhIgmvsK4AK8CfvE+0 dAJXfnTowiXpwdfxfrO96Ra9tzz/kAylesNAYeOpayaOgcJsa/FATX0ZHuJv1uOecLQC r88e1RMEOPRZ/m7nWBWHUmluT2nmBTVHTsbhmSCp9ql1sdVayHWninM5EknUu3vQgt6G AvRw== 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=O2pv13qx7VFGbbGCBI+M8Dk49yxcXbYowJJnWYcKPyA=; b=RKuSU6bdDObL1mG9B8SiLaUnEolJ3Cfs0D7snnZTWFBZ3Bt5e71C8VJPXhoy+AiIkk 5Gue8QSEIW70vm1q81Q+uWdTJEvmlLfPLjjtczTynUtbCZBKn+ACBi7QS2C5YTqPwltb t95ST+9zOnKI5g+YgXOz2o39zGde9iPU8kPBgL1SdYyWuD24qZMBhnSS6386CSr2tvjU Z2MWgHePatKzBiZeJDsebslp35cRn2nuWIwV1we3/9ZzB1iLJgAQP5s8iRpe9pHZGaIS OqJh80MO96s9U8TLIpQr37g2tyM4bRB+PDvFAUwYVGPG8QDT+NOTh4/IpVD4hoeg/BfY 9RUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gTUcBPhX; 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 qq22si610944ejb.523.2020.05.05.00.46.41; Tue, 05 May 2020 00:47:04 -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=gTUcBPhX; 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 S1728520AbgEEHo7 (ORCPT + 99 others); Tue, 5 May 2020 03:44:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725915AbgEEHo6 (ORCPT ); Tue, 5 May 2020 03:44:58 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A960C061A10 for ; Tue, 5 May 2020 00:44:58 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id b6so446095plz.13 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=hMnrt2aKMxBu/kxs5+hxtlkqr9SAXWxcFoYC9pvtq46o8dbq3jJDYxhPBISAUPdQrT YIRgtHM8yTupF0BTTSYwLtlW03p4t00xJey/39mqjwPJXy+v8Tjv/n/8pFsouBgJC39U RLeC7X3EdDXDOP1G9vZnR0sdBf9hDJZemXeAuGzsA0OHhxk4rGY2tUIim61puQlifGTK nYMsEhlNrqxtoLXWP/3cGtt00HoKIDrjBHNtIoYt+LXOnF/674OaHHFfVfCyyZumOB0Z +rXYDKP1332g4Jqt8YsM7LJGNpMwVcEkOKLqYMgBbv2GG+OmHidM8eKUPFEqLLQPN62L 3ktQ== X-Gm-Message-State: AGi0PuZeNxz7BnBVl6RCI88bedmdKyjgq8AZWoUwBuU0cpgGMsQFbqFN f/DA9sH7USvMnWocntlrmOo2GZExBjg= 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 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 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 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 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(-) -- 2.26.2.526.g744177e7f7-goog