Re: [PATCH xserver v2] xfree86: recognize primary BUS_PCI device in xf86IsPrimaryPlatform()

2016-09-14 Thread Laszlo Ersek
On 09/07/16 17:15, Hans de Goede wrote: > Hi, > > On 07-09-16 15:08, Laszlo Ersek wrote: >> The new platform bus code and the old PCI bus code overlap. Platform bus >> can handle any type of device, including PCI devices, whereas the PCI >> code >> can only hand

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-07 Thread Laszlo Ersek
On 09/07/16 11:54, Hans de Goede wrote: > Hi, > > On 06-09-16 22:32, Laszlo Ersek wrote: >> On 09/06/16 14:46, Hans de Goede wrote: >>> Hi, >>> >>> On 06-09-16 13:47, Laszlo Ersek wrote: >>>> Adding Matt and Ard >>>> >>>

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-07 Thread Laszlo Ersek
On 09/07/16 12:33, Hans de Goede wrote: > On 07-09-16 12:20, Laszlo Ersek wrote: >> On 09/07/16 11:54, Hans de Goede wrote: >>> Ah, see now we're getting somewhere, so maybe we just need to >>> teach xf86IsPrimaryPlatform to also accept devices marked >>>

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-07 Thread Laszlo Ersek
On 09/07/16 12:33, Hans de Goede wrote: > TL;DR: I believe that modifying the xf86IsPrimaryPlatform() > code to more or less mirror xf86IsPrimaryPci is the right thing > to do, please give this a try. Right, it works. I'll post the patch in a minute. Thanks! Laszlo

[PATCH xserver v2] xfree86: recognize primary BUS_PCI device in xf86IsPrimaryPlatform()

2016-09-07 Thread Laszlo Ersek
..@redhat.com> Cc: Hans de Goede <hdego...@redhat.com> Cc: Keith Packard <kei...@keithp.com> Cc: Marcin Juszkiewicz <mjuszkiew...@redhat.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- Notes: - F24 scratch build: <http://arm.koji.fedoraproject.org/koji/tas

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-06 Thread Laszlo Ersek
On 09/06/16 14:46, Hans de Goede wrote: > Hi, > > On 06-09-16 13:47, Laszlo Ersek wrote: >> Adding Matt and Ard >> >> On 09/06/16 00:32, Dave Airlie wrote: > > > >> Picking different primaries on different boots sounds perfectly >> acceptable t

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-06 Thread Laszlo Ersek
Adding Matt and Ard On 09/06/16 00:32, Dave Airlie wrote: > On 5 September 2016 at 22:39, Laszlo Ersek <ler...@redhat.com> wrote: >> On 09/04/16 11:01, Hans de Goede wrote: >>> HI, >>> >>> On 04-09-16 03:11, Laszlo Ersek wrote: >>>> Aarch64/K

Re: [PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-05 Thread Laszlo Ersek
On 09/04/16 11:01, Hans de Goede wrote: > HI, > > On 04-09-16 03:11, Laszlo Ersek wrote: >> Aarch64/KVM virtual machines cannot use emulated graphics cards with >> linear framebuffers, due to architectural cache coherency issues. (For >> this reason, "qemu-syst

[PATCH xserver 4/4] xfree86: promote one GPU screen if (NumScreens == 0 && NumGPUScreens > 0)

2016-09-03 Thread Laszlo Ersek
ics card, are preserved intact. Cc: Adam Jackson <a...@redhat.com> Cc: Dave Airlie <airl...@redhat.com> Cc: Keith Packard <kei...@keithp.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- hw/xfree86/common/xf86Bus.c | 19 --- hw/xfree86/man/xorg.conf

[PATCH xserver 2/4] xfree86: clarify xf86CallDriverProbe()'s effect on "xf86GPUScreens"

2016-09-03 Thread Laszlo Ersek
t.com> Cc: Keith Packard <kei...@keithp.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- hw/xfree86/common/xf86Bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 5b93940a2dbe..dc83e2dde

[PATCH xserver 3/4] xfree86: introduce the xf86PromoteLastGPUScreenToLastScreen() helper

2016-09-03 Thread Laszlo Ersek
This is a helper function that we'll use in the next patch. Cc: Adam Jackson <a...@redhat.com> Cc: Dave Airlie <airl...@redhat.com> Cc: Keith Packard <kei...@keithp.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- hw/xfree86/common/xf86.h | 1 + hw/xfree86/

[PATCH xserver 1/4] xfree86: fix obscure bug in xf86platformProbeDev()'s retval computation

2016-09-03 Thread Laszlo Ersek
In addition, remove the useless "continue" statement at the end of the "devList" loop body. Cc: Adam Jackson <a...@redhat.com> Cc: Dave Airlie <airl...@redhat.com> Cc: Keith Packard <kei...@keithp.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com>

[PATCH xserver 0/4] start up with QEMU's "virtio-gpu-pci" card

2016-09-03 Thread Laszlo Ersek
om> Cc: Dave Airlie <airl...@redhat.com> Cc: Keith Packard <kei...@keithp.com> Thanks! Laszlo Laszlo Ersek (4): xfree86: fix obscure bug in xf86platformProbeDev()'s retval computation xfree86: clarify xf86CallDriverProbe()'s effect on "xf86GPUScreens" xfree86: introduce