[OpenBIOS] [PATCH] mac: Don't set APPL, address properties on NewWorld

Howard Spoelstra hsp.cat7 at gmail.com
Thu Aug 4 13:56:13 CEST 2016


Great, that fixes the "regression". One thing I noticed while booting with
only the Leopard iso is that Qemu/OpenBios make the Leopard system profiler
show two ATA devices, both containing a QemuDVD drive. Perhaps that is the
reason a hard disk is not recognised?

On Thu, Aug 4, 2016 at 3:16 AM, Benjamin Herrenschmidt <
benh at kernel.crashing.org> wrote:

> They are created by the MacOS ROM and in some cases MacOS X to contain
> the *virtual* addresses of the BARs as mapped by the kernel.
>
> Having these already there with the wrong values causes the hangs
> with MacOS X 10.5 and the video driver.
>
> The reason is that the IONDRVFramebuffer code in OS X 10.5 won't replace
> those properties if they already exist, so the driver ends up accessing
> the addresses put in there by OpenBIOS which aren't valid mapped virtual
> addresses under OS X.
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
>  drivers/pci.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/pci.c b/drivers/pci.c
> index 0cdf0bf..9813086 100644
> --- a/drivers/pci.c
> +++ b/drivers/pci.c
> @@ -1029,10 +1029,9 @@ static void ob_pci_add_properties(phandle_t phandle,
>         }
>
>         pci_set_assigned_addresses(phandle, config, num_bars);
> -
> -       if (is_apple()) {
> +
> +       if (is_apple() && is_oldworld())
>                 pci_set_AAPL_address(config);
> -       }
>
>         PCI_DPRINTF("\n");
>  }
>
>
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/openbios/attachments/20160804/80add70a/attachment.html>


More information about the OpenBIOS mailing list