Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp350009pxa; Wed, 12 Aug 2020 03:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvW7lajoQZPVU3P6ZY9CF/60vmE6TWxWxS0A8sNezYmvnBj0uvdH10QgmblxHGmhvmqt1X X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr31869269ejh.50.1597229360206; Wed, 12 Aug 2020 03:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597229360; cv=none; d=google.com; s=arc-20160816; b=qGMmvjCJstlEkLV6e0jPBC9C+emyZOXUe0YsaYtgHsGKFaGBmQ18NEgL8r4jWJAq1q 1c3UhmDnRsS25HOR/sXgdxf8JqhMpQERCDsiHa9AQZ4xkGHe5nmiA+75/gnhVC7Qpm/t 2YikiKn8Z9ao0VbevdDMSuFbYJjqI8d72o6RhCgrqnxL7RO+BpsBlXZHQbKJZbvEe0Qt cGwTrgo8OZR80mdwv3u8ZfJXp7jHvU08qFp77Pu+naL1sj89YO3VijVJnfMnCvbvq1mF Ehhd1Xpb7+NhBtBATFt3Acgxz6M2foWJKPULmwJ93vPRLF6xeBQI8t/cppAQerZiKquX kzng== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=evki6dI5ts5KOmGlF8qCX59wMWhwGQMc/ZNVJhMADKg=; b=sYLEdcA5pBtN/w3fKLBS+XK7yxldUID7QnZ2ys2/oLUKhsggq3ai4dFqsLyi80Jy3B db3ZTCqQVAWM+pnxoM5++0H5P7mUQKIlcudW5Z+NA6MrrWZBFQCxeXEcTvlofv60xsk5 +KmZ3i03f4+MreN3bPDeI9M5v5Wfe5VyzntqvvHGidK0ozzKUiehtjo5T888aUf+Vxmh O3Nq0978xr9QPsDKKH/rr67DspNI8ypAs0UcOJpGmMZM40YZtF/X6AUY8QLR+dJ7XpT+ vVXfBnJpLQ/NjJXdco/AoUHtruBo7/6lrAvtnVSg70gY1XP3Ij36xZ+AbyLJy7s03sJ2 AmWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FLCDAVbv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si996062edy.599.2020.08.12.03.48.55; Wed, 12 Aug 2020 03:49:20 -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=@ti.com header.s=ti-com-17Q1 header.b=FLCDAVbv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbgHLKsV (ORCPT + 99 others); Wed, 12 Aug 2020 06:48:21 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:38822 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgHLKsV (ORCPT ); Wed, 12 Aug 2020 06:48:21 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07CAllRr030912; Wed, 12 Aug 2020 05:47:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1597229267; bh=evki6dI5ts5KOmGlF8qCX59wMWhwGQMc/ZNVJhMADKg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=FLCDAVbve+oTVJhXUk7KB9Nf1N8Y5hv2YdvDJfrw1FlDnAjzXHCfuyeJByBhGI5VC IRk6YOcrYOzn50dLMDMAAUNtsDpxbJe1ntKJBfo4mxBorMFfFWdsFwycdn86j+IJ8L ZGVk/Vu1l5zcx7oB8QZkFkIBnkfHCFzIrC1ZStKw= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 07CAll8W063305 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Aug 2020 05:47:47 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 12 Aug 2020 05:47:47 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 12 Aug 2020 05:47:47 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07CAlhX8025723; Wed, 12 Aug 2020 05:47:43 -0500 Subject: Re: [PATCH v8 0/3] drm: Add support for Cadence MHDP DPI/DP bridge and J721E wrapper. To: =?UTF-8?Q?Guido_G=c3=bcnther?= , Swapnil Jakhade CC: , , , , , , , , , , , , , , , , References: <1596713672-8146-1-git-send-email-sjakhade@cadence.com> <20200812083937.GA8816@bogon.m.sigxcpu.org> From: Tomi Valkeinen Message-ID: <3bcbbb0b-ee04-0f1e-6c54-97b01c552d82@ti.com> Date: Wed, 12 Aug 2020 13:47:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200812083937.GA8816@bogon.m.sigxcpu.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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. Perhaps Cadence can clarify the differences between IMX, TI and Rockchip IPs and FWs? 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