drm: Fix support for PCI domains
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 6 Aug 2010 03:55:10 +0000 (13:55 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 9 Aug 2010 22:20:20 +0000 (08:20 +1000)
(For some reason I thought that went in ages ago ...)

This fixes support for PCI domains in what should hopefully be a backward
compatible way along with a change to libdrm.

When the interface version is set to 1.4, we assume userspace understands
domains and the world is at peace. We thus pass proper domain numbers
instead of 0 to userspace.

The newer libdrm will then try 1.4 first, and fallback to 1.1, along with
ignoring domains in the later case (well, except on alpha of course)

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found