Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2930pxb; Fri, 20 Aug 2021 16:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRlxSMSO9b8I1RpL7vhDXiDiYsKD5oNT1edip4fa7JvdVjiWu1XD5v51JXk4mvBemGzByB X-Received: by 2002:a05:6638:168f:: with SMTP id f15mr19967838jat.85.1629502995917; Fri, 20 Aug 2021 16:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629502995; cv=none; d=google.com; s=arc-20160816; b=IdnKEXW+rw/hfMBP+EuFfL2bNK0kGW4qyrhzCmWxY3xCP2XLGRdhzBNQAuVlPqxn7S kls2Vu6oCq6muBGt17HgjkItGNkH4PBVBwQjhSBHPMm02pgohjRp2XMY3ivkQLVD0+K9 s6cXqzRtOxc49CNaTuNz93OJU5CzA2/oT8hiVbQv5zMn6lYaaK3GGKW3oru7aRHQsCub fJc1FGaPgDTA47orsGBgAAMJJKSmVKLPm752Wf+GnxTyoriQ5+FZ3CJa7xrqy+iQtIGJ 6PKfjrC/HP+i2ia5M5PM8ZFv3dm/Aw/98a7OtuOTJ+wGrfviWFZHtG6RkpxH8PwOxQB6 wMfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DAArTYGr1ftLzNi8ZBmULGh1LaqVxUfTESctpsYsuS0=; b=gyV5PaVm9jRWu0xYPCq8uScrHV2mdxL2o8G97MLL9q21Y8Bw1iCNuYxtY3EJ2chU+Q XSHf+6Fr49vHop9xscbzR/+PcfjviAx97wkxvC1v/SFuvPyY7eQCbY01WZo9xSbZTULf NXrNtTHSuBpMzLzjoGJnf57QtNgBUHCEVJ2NvbqylJ4Y0ts11XkcqV8lWv32ye8BdSiC Jqx/jimJWvRtnktwRrxoyfpqoNzlk70HE7YIMIMsIN3UH/eDSzvT6wEKopENudVCC+1O a6V8HktIudpYUsWzyW22mwDd/Ew9Pk4ouSfkbLLdwHVY1eQ656vm7DyPB4jpy3J9NHUl bP7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iutSkFHM; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si7877123ils.62.2021.08.20.16.43.02; Fri, 20 Aug 2021 16:43:15 -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=@kernel.org header.s=k20201202 header.b=iutSkFHM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240334AbhHTXi2 (ORCPT + 99 others); Fri, 20 Aug 2021 19:38:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:54950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231506AbhHTXi1 (ORCPT ); Fri, 20 Aug 2021 19:38:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EEBEE611AE; Fri, 20 Aug 2021 23:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629502669; bh=OxoHRSxJUs/DBlJkRYNoMKiQU91unoLQ5Gw7U19zjro=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iutSkFHMi5IM7UGKgwlUCO6Rvp8RsehZouuXbR0LnvuWxu7EGGjB3JznVkOLUDnTI ZnzSp7r8BVQBIyFRiM6bqLknfCxlnlg9JBv5SRUK+E7Qet3AtFhdqZtFj45uF91VqZ 0Snkc85VJijOSkdnI4tqD42gwqXoWHBRZ3uqp3K3ch9vJnmjCTRIxTpZv7nCAD2KKU reVkbWX7GIgfiZkRVQlmtqXQJqPc6xgOjVWPSCB9SdXWHMLG4FHUlJCv8swtDPhFz5 lPvjgTnqa7fE8qZ7e/nGHrIhDOBELVocOCSth2LrmeK2et+5tLIzYDtyNE07lEnmDe 2kQ2/mkDn6+0w== Received: by mail-ej1-f43.google.com with SMTP id bt14so23255895ejb.3; Fri, 20 Aug 2021 16:37:48 -0700 (PDT) X-Gm-Message-State: AOAM531o8ugh/Jm1rET93rUdtjTJOp6xjTXNQRsmNL0blQMUCJ4gLzZ6 H92rOqeUWWPUqvRay1G4sBQtepATNFp8wJRCdA== X-Received: by 2002:a17:906:81cb:: with SMTP id e11mr1673753ejx.310.1629502667599; Fri, 20 Aug 2021 16:37:47 -0700 (PDT) MIME-Version: 1.0 References: <20210818091847.8060-1-nancy.lin@mediatek.com> <20210818091847.8060-16-nancy.lin@mediatek.com> In-Reply-To: <20210818091847.8060-16-nancy.lin@mediatek.com> From: Chun-Kuang Hu Date: Sat, 21 Aug 2021 07:37:36 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 15/15] drm/mediatek: add mediatek-drm of vdosys1 support for MT8195 To: "Nancy.Lin" Cc: CK Hu , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Matthias Brugger , "jason-jh . lin" , Yongqiang Niu , DRI Development , "moderated list:ARM/Mediatek SoC support" , DTML , linux-kernel , Linux ARM , singo.chang@mediatek.com, srv_heupstream Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Nancy: Nancy.Lin =E6=96=BC 2021=E5=B9=B48=E6=9C=8818=E6= =97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=885:18=E5=AF=AB=E9=81=93=EF=BC=9A > > Add driver data of mt8195 vdosys1 to mediatek-drm and modify drm for > multi-mmsys support. The two mmsys (vdosys0 and vdosys1) will bring > up two drm drivers, only one drm driver register as the drm device. > Each drm driver binds its own component. The first bind drm driver > will allocate the drm device, and the last bind drm driver registers > the drm device to drm core. Each crtc path is created with the > corresponding drm driver data. Separate this patch to two patch. One is support two mmsys, and another one is support mt8195 vdosys1. Regards, Chun-Kuang. > > Signed-off-by: Nancy.Lin > --- > drivers/gpu/drm/mediatek/mtk_disp_merge.c | 4 + > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 25 +- > drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 3 +- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 15 + > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 372 ++++++++++++++++---- > drivers/gpu/drm/mediatek/mtk_drm_drv.h | 8 +- > 7 files changed, 354 insertions(+), 74 deletions(-) > >