[PATCH xorg-server] adds nouveau as standard driver for linux systems

Julien Cristau jcristau at debian.org
Sat Mar 19 03:46:50 PDT 2011


On Sat, Mar 19, 2011 at 00:58:58 +0100, Thomas Schneider wrote:

> nouveau+drm is since the linux kernel version 2.6.34 integrated by default.So since it supports more cards like fermi (sadly not old river nv03 cards) it would be best to set nouveau as standard
> 
> Signed-off-by: Thomas Schneider <maxmusterm at gmail.com>
> ---
>  hw/xfree86/common/xf86pciBus.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
> index 447b192..b20b2e4 100644
> --- a/hw/xfree86/common/xf86pciBus.c
> +++ b/hw/xfree86/common/xf86pciBus.c
> @@ -1123,7 +1123,12 @@ videoPtrToDriverList(struct pci_device *dev,
>  	    break;
>  	case 0x102b:		    driverList[0] = "mga";	break;
>  	case 0x10c8:		    driverList[0] = "neomagic"; break;
> -	case 0x10de: case 0x12d2:   driverList[0] = "nv";	break;
> +	case 0x10de: case 0x12d2:
> +	#ifdef __linux__
> +	driverList[0] = "nouveau";	break;
> +	#else
> +	driverList[0] = "nv";	break;
> +	#endif

nv should probably still be added as a fallback on linux.  Also, does
this mean the nouveau people will start doing proper ABI management for
libdrm_nouveau (i.e. bump SONAME when they break ABI, for a start)?

>  	case 0x1106:		    driverList[0] = "openchrome"; break;
>          case 0x1b36:		    driverList[0] = "qxl"; break;
>  	case 0x1163:		    driverList[0] = "rendition"; break;

Cheers,
Julien


More information about the xorg-devel mailing list