Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp479629pxa; Wed, 12 Aug 2020 06:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+70jnAOIsz2QThiuMNLhbfMcYO+5+BSt4mkfRRYRl2dBGH500t3wu50/5BwzuQ3wv/b8h X-Received: by 2002:a17:906:24d0:: with SMTP id f16mr30308584ejb.325.1597240677832; Wed, 12 Aug 2020 06:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597240677; cv=none; d=google.com; s=arc-20160816; b=f2LUF5jhlu7DtjrF98/KKjm6TJnaYtANJpzBiFWdMWM20B7jCwRh0pBsKx8MlKxm7T T60eDGj4tNIktPHoG44g02qKKa5cGpGTijgmUA+yAEzEdVQ60nghw3fKe7mvx0f33Ygb r1W08zchrN0bGQU4V8Bskp3Pr31A7DTTfGHUkyhVQE0GOwFblyeH/kDnTHMrPrj9+sgZ tILwitdBuXtW1YGeOplTNHXh8X6cE3M7cTI6l48b+5OnGqckobUxkpcG60+zYn3CKu/+ 2wlAYtQZP2wUocQEWScyMjI/P1EWjcIiO+PS3L6GzpkOq/oCtMbS0I6xfvS67nYrfqKl nJGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2z69xhc4c1iSWdvZ8pfgTasBETXtHulSpoY5RTze1CY=; b=R9QLBsC1K6UDPXPBg5FNyAL4Gcoy+ZK+5dJdT0fN5XcV8A3+8buVc/7DBBVybgzHsI l1ZfAtYiHaYHLPY35GAkieg7J4+tBbvAloDUk+5Vp1Kn/ff/ldKZWMl+UmTFrOgYVrvi YCGCd+CBmcop5ckI6GbcyGru6P2jLKJgSb5jPvwwMosfmvk3WzkgA4aqFDMhh9QOlS56 OHx3p/4OgS96SqdboqiqODAkn5fqZymkVR7l0EeBMHzCf+3dBoLD/30vN5l0jFV6mQLc ZbLIf/uF2pCHroSOPQa6VOqyfjXSVPy9CHakMVwuGR3/0E2Ml7YG2T4aMNVvvpTM3Oz8 wPYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si1323154eda.219.2020.08.12.06.57.34; Wed, 12 Aug 2020 06:57:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbgHLN4q (ORCPT + 99 others); Wed, 12 Aug 2020 09:56:46 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:44600 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbgHLN4o (ORCPT ); Wed, 12 Aug 2020 09:56:44 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id DEF02FB04; Wed, 12 Aug 2020 15:56:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d1YLBnojmT0o; Wed, 12 Aug 2020 15:56:38 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 8DD1A45770; Wed, 12 Aug 2020 15:56:37 +0200 (CEST) Date: Wed, 12 Aug 2020 15:56:37 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Tomi Valkeinen Cc: Swapnil Jakhade , airlied@linux.ie, daniel@ffwll.ch, Laurent.pinchart@ideasonboard.com, robh+dt@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, jonas@kwiboo.se, jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mparab@cadence.com, yamonkar@cadence.com, praneeth@ti.com, nsekhar@ti.com, jsarha@ti.com, sandor.yu@nxp.com Subject: Re: [PATCH v8 0/3] drm: Add support for Cadence MHDP DPI/DP bridge and J721E wrapper. Message-ID: <20200812135637.GA107602@bogon.m.sigxcpu.org> References: <1596713672-8146-1-git-send-email-sjakhade@cadence.com> <20200812083937.GA8816@bogon.m.sigxcpu.org> <3bcbbb0b-ee04-0f1e-6c54-97b01c552d82@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3bcbbb0b-ee04-0f1e-6c54-97b01c552d82@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Aug 12, 2020 at 01:47:42PM +0300, Tomi Valkeinen wrote: > Hi Guido, > > On 12/08/2020 11:39, Guido G?nther wrote: > > Hi, > > On Thu, Aug 06, 2020 at 01:34:29PM +0200, Swapnil Jakhade wrote: > >> This patch series adds new DRM bridge driver for Cadence MHDP DPI/DP > >> bridge. The Cadence Display Port IP is also referred as MHDP (Mobile High > >> Definition Link, High-Definition Multimedia Interface, Display Port). > >> Cadence Display Port complies with VESA DisplayPort (DP) and embedded > >> Display Port (eDP) standards. > > > > Is there any relation to the cadence mhdp ip core used inthe imx8mq: > > > > https://lore.kernel.org/dri-devel/cover.1590982881.git.Sandor.yu@nxp.com/ > > > > It looks very similar in several places so should that use the same driver? > > Cheers, > > -- Guido > > Interesting. > > So the original Cadence DP patches for TI SoCs did create a common driver with Rockchip's older mhdp > driver. And looks like the IMX series points to an early version of that patch ("drm/rockchip: > prepare common code for cdns and rk dpi/dp driver"). > > We gave up on that as the IPs did have differences and the firmwares used were apparently quite > different. The end result was very difficult to maintain, especially as (afaik) none of the people > involved had relevant Rockchip HW. Is the `struct mhdp_platform_ops` a leftover from that? Can that be dropped? > The idea was to get a stable DP driver for TI SoCs ready and upstream, and then carefully try to > create common parts with Rockchip's driver in small pieces. I wonder how imx8 would best blend into this? First thing will likely be to upstream the phy code in driveres/phy/ so a modified version of this bridge driver could call into that, then go and look for common patterns. > If the Rockchip and IMX mhdp have the same IP and same firmware, then they obviously should share > code as done in the series you point to. I'm pretty sure they use different firmware though - the imx8mq additionally supports HDMI with a different firmware on the same IP core (13.4 and 13.5 in the imx8mq ref manual). > Perhaps Cadence can clarify the differences between IMX, TI and > Rockchip IPs and FWs? That would be great! -- Guido > I'm worried that if there are IP differences, even if not great ones, and if the FWs are different > and developed separately, it'll be a constant "fix X for SoC A, and accidentally break Y for SoC B > and C", especially if too much code is shared. > > In the long run I'm all for a single driver (or large shared parts), but I'm not sure if we should > start with that approach. > > Tomi > > -- > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki >