From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267686AbUIMRug (ORCPT ); Mon, 13 Sep 2004 13:50:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267709AbUIMRug (ORCPT ); Mon, 13 Sep 2004 13:50:36 -0400 Received: from rproxy.gmail.com ([64.233.170.196]:47818 "EHLO mproxy.gmail.com") by vger.kernel.org with ESMTP id S267686AbUIMRu2 (ORCPT ); Mon, 13 Sep 2004 13:50:28 -0400 Message-ID: <9e47339104091310503edce155@mail.gmail.com> Date: Mon, 13 Sep 2004 13:50:27 -0400 From: Jon Smirl Reply-To: Jon Smirl To: Alan Cox Subject: Re: radeon-pre-2 Cc: Dave Airlie , =?ISO-8859-1?Q?Felix_K=FChling?= , DRI Devel , lkml , Linus Torvalds In-Reply-To: <1095087860.14582.37.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9e47339104091011402e8341d0@mail.gmail.com> <1094853588.18235.12.camel@localhost.localdomain> <1094912726.21157.52.camel@localhost.localdomain> <1095074778.14374.41.camel@localhost.localdomain> <9e47339104091308063c394704@mail.gmail.com> <1095087860.14582.37.camel@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org How's this going to work with hotplug? Hotplug works by associating a device with a driver by the PCI ID table contained in the driver. Both the fbdev and DRI drivers currently contain the same PCI IDs for the cards that the chipsets they support. So when a card gets hotplugged, which driver do I load? If it's the VGA driver, then how do I tell the VGA driver that I want to use fbdev or DRM? What if I want a different one on each head? There is one VGA driver and multiple fbdev/DRM drivers, one for each chipset. I guess you need to build something into the VGA driver that gets the PCI ID tables out of the various fbdev/DRM drivers and combine them into a single table visible to hotplug. Then let the VGA driver take the hotplug event. The VGA driver can then search it's table and figure out which driver to initialize. What if I have two identical PCI video cards. Don't we need an initialization file to say load DRM on the one in slot 1 and fbdev on the one in slot 2? -- Jon Smirl jonsmirl@gmail.com