Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5355124ybg; Tue, 22 Oct 2019 01:49:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi0AOnQCBwHjZ0lPaUPyXKSYYC5NYF7Z5XuD869cJokfC9aHEJyflfgpp2HNZB3rSeXfAA X-Received: by 2002:a05:6402:51a:: with SMTP id m26mr29525235edv.298.1571734197195; Tue, 22 Oct 2019 01:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571734197; cv=none; d=google.com; s=arc-20160816; b=uiyQnzGt0QbQMxCNN2XHNzcEfG9JOnBInZFWlaswrl2Dsb9QIqLEnybJTOGI9qbARh 5P3t5vNCvhmu9/jXLC6PUuCgJwKsdkVw+bFSTTrsl7BaeDdesVv81OZVTheQrNQHQzA5 gAxkJLF6G0k/O/NoB89l/HZo1Q4RrqHgsH5B+dlFM3UyGuBtx6Tmxts0xXaLqhNDQ1Q/ m5U2gaFe9omn3i7j2rG43LYtCdn+1S8TZN5fvNvb1vhEHgaBUlAImdXP2PHVXmSSNp8O yrGlsGKZDftv8RBL4UPXO5V7vl/u539aDcoHvdBin3Cqbdti2gsjbWjliQ4rMaLLGoM6 iGwA== 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=MtL3YOiN71djeLoYB9yivNmcp6DZe3ZfGe1tUxOoKk8=; b=BSfZTF+0nxfrjibetFEfSSAnMl/tYi/dEPA7eZjpJsG/kVocmCYudHi3k8ko3bmzQX V5kMHSTGcpekVJk8qsILY3AmEefBUwoDUkimwCP3LCH/+ijwSwGx80MbxIry1zAD5ixm myuBvlhURssyGWPaB5dJ6D0ZPvmhx0CRl8R+xZL1pq1A9WlXk75qXI9Ls25GgO7cThdy mMfzMXJoShDnixeyWws2cUlkJebP1wXcHGC6fKXR8vmzgZX2HYsWXmplzaKP+yuRgetb kec1nvaNHSjIF5u09J+7lcDPQMbXAb/g+0/YCBSONMJ+1/h215iWUZu84UXRJnAbd31k dXPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nZdVxcSf; 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 t18si10462296eju.329.2019.10.22.01.49.32; Tue, 22 Oct 2019 01:49:57 -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=nZdVxcSf; 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 S2387961AbfJVIsm (ORCPT + 99 others); Tue, 22 Oct 2019 04:48:42 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:40170 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387575AbfJVIsl (ORCPT ); Tue, 22 Oct 2019 04:48:41 -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=MtL3YOiN71djeLoYB9yivNmcp6DZe3ZfGe1tUxOoKk8=; b=nZdVxcSfO3OODaDonUKkJDZp+ p/ojEa1+QNdV4Bar+TtDVx0SS/00km22RcUYQoZOh45qChHxG9hFOihQBSiJFSfHMz0k5g+ETpQCF D0P9k5sJzwS5JlHx8zOhs+jG/Ydc7HXmHlAtIpnTtsTvylN7nA6z1qZuV1tl7y3PKfkUg97E4Wo/k ff6wUb744sqaA2kix/oN5v08RmSNsQGzl9VgUWYWey+m6+CeJoAJvK91DRhsL6LCZxA5n3hRx5rrM 5b6PBXuuBB/bqjejOKT/VkIW/fOojFJgYYNWKTJ2+kvN654lhZ3zOrNMAgW2WPCSvRaqfzWuh6keh A21EgMV1A==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:45890) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iMpqC-00065m-AN; Tue, 22 Oct 2019 09:48:32 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iMpq6-0004PU-O5; Tue, 22 Oct 2019 09:48:26 +0100 Date: Tue, 22 Oct 2019 09:48:26 +0100 From: Russell King - ARM Linux admin To: Daniel Vetter Cc: Brian Starkey , nd , David Airlie , Liviu Dudau , "linux-kernel@vger.kernel.org" , "james qian wang (Arm Technology China)" , "dri-devel@lists.freedesktop.org" , Mihail Atanassov , Sean Paul Subject: Re: [RFC,3/3] drm/komeda: Allow non-component drm_bridge only endpoints Message-ID: <20191022084826.GP25745@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> <20191017114137.GC25745@shell.armlinux.org.uk> <20191022084210.GX11828@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191022084210.GX11828@phenom.ffwll.local> 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 Tue, Oct 22, 2019 at 10:42:10AM +0200, Daniel Vetter wrote: > On Thu, Oct 17, 2019 at 12:41:37PM +0100, Russell King - ARM Linux admin wrote: > > 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. > > I think the only patches that existed where for panel, and we only > discussed the bridge case. At least I can only find patches for panel,not > bridge, but might be missing something. I had a patches, which is why I raised the problem with the core: 6961edfee26d bridge hacks using device links but it never went further than an experiment at the time because of the problems in the core. As it was a hack, it never got posted. Seems that kernel tree (for the cubox) is still 5.2 based, so has a lot of patches and might need updating to a more recent base before anything can be tested. -- 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