40p: remove pci_allow_0_address = true from 40p machine class
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 25 May 2018 21:15:23 +0000 (22:15 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 11 Jun 2018 23:33:52 +0000 (09:33 +1000)
commit875bad313580f99cc9642d2941d0dbeeadf4ef25
tree32a508300d336a8b800b54000497564c13353fd6
parent31085338293a1203187c6ef6dba9dfce14021189
40p: remove pci_allow_0_address = true from 40p machine class

The Linux sandalfoot zImage has an initialisation process which resets the
VGA controller by setting all the BAR addresses to zero to access the VGA
ioports at their legacy addresses.

Unfortunately setting the framebuffer BAR to address 0 makes the framebuffer
memory overlap the internal VGA memory causing accesses to fail, and so
prevents the kernel from switching successfully to text mode.

Since OpenHackWare configures the framebuffer BAR address outside of the legacy
VGA internal memory space, remove pci_allow_0_address from the 40p machine class
which causes the BAR reprogramming to zero to fail and so the VGA internal
memory can be accessed correctly again.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/prep.c