From: Russell King - ARM Linux Subject: Re: Kernel warning when mode setting with no connectors connected Date: Sun, 13 Apr 2014 17:29:15 +0100 Message-ID: <20140413162915.GC24070@n2100.arm.linux.org.uk> References: <20140412103229.GU16119@n2100.arm.linux.org.uk> <20140412212018.GW16119@n2100.arm.linux.org.uk> <20140412220430.GX16119@n2100.arm.linux.org.uk> <20140413084428.GQ9262@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from pandora.arm.linux.org.uk (gw-1.arm.linux.org.uk [78.32.30.217]) by gabe.freedesktop.org (Postfix) with ESMTP id A66BD6E1B7 for ; Sun, 13 Apr 2014 09:29:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140413084428.GQ9262@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Daniel Vetter , dri-devel List-Id: dri-devel@lists.freedesktop.org On Sun, Apr 13, 2014 at 10:44:28AM +0200, Daniel Vetter wrote: > On Sat, Apr 12, 2014 at 11:04:31PM +0100, Russell King - ARM Linux wrote: > > So we try to set a mode on CRTC 3 using encoder 8 and connector 9. > > However connector 9 is disconnected, so the connector has its > > encoder disassociated. The encoder is now not used, so the encoder > > is disabled. This then means that the CRTC is not being used by > > any encoder, so the CRTC gets disabled. > > That's a bit strange since userspace normally shouldn't attempt to set a > mode when nothing is connected, at least if you don't force a specific > configuration. In any case it sounds like you want > > commit e3d6ddb35f6221859b6054879d186e13a3af351e > Author: Daniel Vetter > Date: Tue Apr 1 22:15:00 2014 +0200 > > drm/crtc-helper: don't disable disconnected outputs > > I wonder whether we should put a cc: stable onto that one (maybe after a > bit more testing) since apparently userspace can force the kernel to do > stupid things if we auto-disable disconnected outputs. BTW... that commit looks like this: list_for_each_entry(connector, &dev->mode_config.connector_list, head) { if (!connector->encoder) continue; - if (connector->status == connector_status_disconnected) - connector->encoder = NULL; } Would you like to comment about the use of this loop once those two lines are deleted? ;-) -- FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.