Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp880651ybg; Fri, 18 Oct 2019 08:43:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnEwMrC6VGpLHSbsSrhLiNIhpjfKpXGX1YDpD4z65l1RmspdS1Rq44ZFwEqhmUSXio/nx6 X-Received: by 2002:a05:6402:1507:: with SMTP id f7mr10438137edw.68.1571413413115; Fri, 18 Oct 2019 08:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413413; cv=none; d=google.com; s=arc-20160816; b=dyHB01whscR4uCZ3TrEfpcq/wtsXIItA1YQ2BkgwNkSRf/xe+L1LDTZDKnHkOzTRLv 2VN2GtZYiBxq2v23FtEL0FJonDZx0Z5D3ZIo0q5auvLtAu3tEjWJc5RHjDE3sF1gl2sk 9S0fStliK4MysUlugxCsyTsXQ2w6nmsXNru+L6F7j1qqKHFAFNRjU4rQII6Fy9NixlmT DrbOTAkYDgnBWtNHcIH/597cb2wN+7MwbLRHPztD0Bn8gEiv8x1R20Sl8qN7ZgWs8mJX 4kHH0GAV5boexgCs7nFa1WIxrXcvHCc+w9H8k2Ik4NUd5s82cW/v9+FL10oIz6Gq9O+X O6HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r+Q3LUtMArQNVtEuVWYwd/gVihapefhZ4NaqVNvBt2E=; b=dGtaVS9uo1quIe3bxu5EHj3zUG+d/Ku/G3S2ByU/BxlSs/ZuSmS+USzNUGp8VQCPcB obByIK1qkwOIPChN5C/3ADWiQ+zbJPFxTCDWMkhJ8t2FwK+XrozPBSNrP/Luot58c9Xh JjFDt0ut8mx2z/r84l8FCiA3N0k37kxZ+Rk5hEiKvgz7wCpneA0S0UT5qn2kJNquYaa/ +020BBa2TiDsV67DwXqPEydSjjRuaXEFVRwxfKMi0rRdAjkCefZFnZeKtAQRwzrvvTev OWt5Ft6rCBmEWRcfCGX7zeC2NSszAvYd/JPRM7OUNK2I0R5zzKibgP6W49x1YUifgezU P/WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=hexeKemy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x29si3903895eda.297.2019.10.18.08.43.10; Fri, 18 Oct 2019 08:43:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=hexeKemy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405944AbfJQLlw (ORCPT + 99 others); Thu, 17 Oct 2019 07:41:52 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:45290 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbfJQLlv (ORCPT ); Thu, 17 Oct 2019 07:41:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=r+Q3LUtMArQNVtEuVWYwd/gVihapefhZ4NaqVNvBt2E=; b=hexeKemyFMqhlYKddx44XfooO ELtD5P6CikyQA/uPSMsgDh168xhS/ZGfZvsdYe7ejUlXCHqn7hiTgMvxQbnIevboyZYnmCSL8rNP7 RNGfR6bpNVk3icaqReknuHl10R8mNZ2v9s2jNECTJFBfIkWH/jNYUt5ViLHw24S01p04vjk6mkKXC 9BwGEu4KoL4GH3HChYbLvEHagxKu0q4HjrD1iDMuGcs776AS1B4DouVgKnPxRATkTnzoayqU+U3sA 0tW2a5I1vMgIu+bl7wVgBUpLFtCI+dhGb+omZ6ZVmjFEf74WYwYZ2LV5iYa9Pl/DSlmz/ZEzugQyA dcZqZbeMw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:43854) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iL4A1-0000Ck-IQ; Thu, 17 Oct 2019 12:41:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iL49x-0008As-Nc; Thu, 17 Oct 2019 12:41:37 +0100 Date: Thu, 17 Oct 2019 12:41:37 +0100 From: Russell King - ARM Linux admin To: Brian Starkey Cc: "james qian wang (Arm Technology China)" , Mihail Atanassov , "dri-devel@lists.freedesktop.org" , David Airlie , Liviu Dudau , Maxime Ripard , "linux-kernel@vger.kernel.org" , nd , Sean Paul Subject: Re: [RFC,3/3] drm/komeda: Allow non-component drm_bridge only endpoints Message-ID: <20191017114137.GC25745@shell.armlinux.org.uk> References: <20191004143418.53039-4-mihail.atanassov@arm.com> <20191009055407.GA3082@jamwan02-TSP300> <5390495.Gzyn2rW8Nj@e123338-lin> <20191016162206.u2yo37rtqwou4oep@DESKTOP-E1NTVVP.localdomain> <20191017030752.GA3109@jamwan02-TSP300> <20191017082043.bpiuvfr3r4jngxtu@DESKTOP-E1NTVVP.localdomain> <20191017102055.GA8308@jamwan02-TSP300> <20191017104812.6qpuzoh5bx5i2y3m@DESKTOP-E1NTVVP.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191017104812.6qpuzoh5bx5i2y3m@DESKTOP-E1NTVVP.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 10:48:12AM +0000, Brian Starkey wrote: > On Thu, Oct 17, 2019 at 10:21:03AM +0000, james qian wang (Arm Technology China) wrote: > > On Thu, Oct 17, 2019 at 08:20:56AM +0000, Brian Starkey wrote: > > > On Thu, Oct 17, 2019 at 03:07:59AM +0000, james qian wang (Arm Technology China) wrote: > > > > On Wed, Oct 16, 2019 at 04:22:07PM +0000, Brian Starkey wrote: > > > > > > > > > > If James is strongly against merging this, maybe we just swap > > > > > wholesale to bridge? But for me, the pragmatic approach would be this > > > > > stop-gap. > > > > > > > > > > > > > This is a good idea, and I vote +ULONG_MAX :) > > > > > > > > and I also checked tda998x driver, it supports bridge. so swap the > > > > wholesale to brige is perfect. :) > > > > > > > > > > Well, as Mihail wrote, it's definitely not perfect. > > > > > > Today, if you rmmod tda998x with the DPU driver still loaded, > > > everything will be unbound gracefully. > > > > > > If we swap to bridge, then rmmod'ing tda998x (or any other bridge > > > driver the DPU is using) with the DPU driver still loaded will result > > > in a crash. > > > > I haven't read the bridge code, but seems this is a bug of drm_bridge, > > since if the bridge is still in using by others, the rmmod should fail > > > > Correct, but there's no fix for that today. You can also take a look > at the thread linked from Mihail's cover letter. > > > And personally opinion, if the bridge doesn't handle the dependence. > > for us: > > > > - add such support to bridge > > That would certainly be helpful. I don't know if there's consensus on > how to do that. > > > or > > - just do the insmod/rmmod in correct order. > > > > > So, there really are proper benefits to sticking with the component > > > code for tda998x, which is why I'd like to understand why you're so > > > against this patch? > > > > > > > This change handles two different connectors in komeda internally, compare > > with one interface, it increases the complexity, more risk of bug and more > > cost of maintainance. > > > > Well, it's only about how to bind the drivers - two different methods > of binding, not two different connectors. I would argue that carrying > our out-of-tree patches to support both platforms is a larger > maintenance burden. > > Honestly this looks like a win-win to me. We get the superior approach > when its supported, and still get to support bridges which are more > common. > > As/when improvements are made to the bridge code we can remove the > component bits and not lose anything. There was an idea a while back about using the device links code to solve the bridge issue - but at the time the device links code wasn't up to the job. I think that's been resolved now, but I haven't been able to confirm it. I did propose some patches for bridge at the time but they probably need updating. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up