ppc/mac: More rework of the DBDMA emulation
commit77453882495b321404e874aa97bca1214160229d
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 17 Sep 2017 17:15:45 +0000 (17 18:15 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Sep 2017 03:05:41 +0000 (27 13:05 +1000)
tree5839763c6a2d9553b1d89104d031bc3b3cec15bb
parent3c0622897e260c5461dd73ddd16fb8055966ea72
ppc/mac: More rework of the DBDMA emulation

This completely reworks the handling of the control register
according to my understanding of the HW and the spec.

It should (hopefully ... still testing) fix a number of issues
most notably cases of MacOS hanging.

Also update dbdma_unassigned_rw() and dbdma_unassigned_flush() to
have the expected behaviour now that flush is handled slightly
differently.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/macio/mac_dbdma.c