| 6cb577dd | 09-Feb-2015 |
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> |
cuda.c: include adb_poll_timer in VMStateDescription
Make sure that we include the adb_poll_timer when saving the VM state for client OSs that use it, e.g. Darwin.
Signed-off-by: Mark Cave-Ayland <
cuda.c: include adb_poll_timer in VMStateDescription
Make sure that we include the adb_poll_timer when saving the VM state for client OSs that use it, e.g. Darwin.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| b981289c | 13-Jul-2014 |
Alexander Graf <agraf@suse.de> |
PPC: Cuda: Use cuda timer to expose tbfreq to guest
Mac OS X calibrates a number of frequencies on bootup based on reading tb values on bootup and comparing them to via cuda timer values.
The only
PPC: Cuda: Use cuda timer to expose tbfreq to guest
Mac OS X calibrates a number of frequencies on bootup based on reading tb values on bootup and comparing them to via cuda timer values.
The only variable we can really steer well (thanks to KVM) is the cuda frequency. So let's use that one to fake Mac OS X into believing the bus frequency is tbfreq * 4. That way Mac OS X will automatically calculate the correct timebase frequency.
With this patch and the patch set I posted earlier I can successfully run Mac OS X 10.2, 10.3 and 10.4 guests with -M mac99 on TCG and KVM.
Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 9397a7c8 | 26-May-2014 |
Alexander Graf <agraf@suse.de> |
macio: Fix timer endianness
The timer registers on our KeyLargo macio emulation are read as byte reversed from the big endian guest, so we better expose them endian reversed as well.
This fixes ini
macio: Fix timer endianness
The timer registers on our KeyLargo macio emulation are read as byte reversed from the big endian guest, so we better expose them endian reversed as well.
This fixes initial hickups of booting Mac OS X with -M mac99 for me.
Signed-off-by: Alexander Graf <agraf@suse.de> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
show more ...
|
| a0f9fdfd | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: Add timer handler for newworld mac-io
Mac OS X accesses fancy timer registers inside of the mac-io on bootup.
These really should be ticking at the mac-io bus frequency, but I don't see anyone
PPC: Add timer handler for newworld mac-io
Mac OS X accesses fancy timer registers inside of the mac-io on bootup.
These really should be ticking at the mac-io bus frequency, but I don't see anyone upset when we just make them as fast as we want to.
With this patch on top of my previous patch queue and latest OpenBIOS I am able to boot Mac OS X 10.4 with -M mac99.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 03ee3b1e | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: dbdma: Move processing to io
Soon we will introduce intermediate processing pauses which will allow the bottom half to restart a DMA request that couldn't be fulfilled yet.
For that to work, m
PPC: dbdma: Move processing to io
Soon we will introduce intermediate processing pauses which will allow the bottom half to restart a DMA request that couldn't be fulfilled yet.
For that to work, move the processing variable into the io struct which is what DMA providers work with.
While touching it, also change it into a bool
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| d2f0ce21 | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: dbdma: Move static bh variable to device struct
The DBDMA controller has a bottom half to asynchronously process DMA request queues.
This bh was stored as a gross static variable. Move it into
PPC: dbdma: Move static bh variable to device struct
The DBDMA controller has a bottom half to asynchronously process DMA request queues.
This bh was stored as a gross static variable. Move it into the device struct instead.
While at it, move all users of it to the new generic kick function.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| d1e562de | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: dbdma: Introduce kick function
The DBDMA engine really is running all the time, waiting for input. However we don't want to waste cycles constantly polling.
So introduce a kick function that d
PPC: dbdma: Introduce kick function
The DBDMA engine really is running all the time, waiting for input. However we don't want to waste cycles constantly polling.
So introduce a kick function that data providers can call to notify the DBDMA controller of new input.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| f2f963fd | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: dbdma: Move defines into header file
We usually keep struct and constant definitions in header files. Move them there to stay consistent and to make access to fields easier.
Signed-off-by: Ale
PPC: dbdma: Move defines into header file
We usually keep struct and constant definitions in header files. Move them there to stay consistent and to make access to fields easier.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 7eaba824 | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: dbdma: Allow new commands in RUN state
The DBDMA controller can not change its command stream while it's actively streaming data, true. But the fact that it's in RUN state doesn't actually indi
PPC: dbdma: Allow new commands in RUN state
The DBDMA controller can not change its command stream while it's actively streaming data, true. But the fact that it's in RUN state doesn't actually indicate anything. It could just as well be in WAIT while in RUN. And then it's legal to change commands.
This fixes a real world issue I've encountered with Mac OS X.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 33ce36bb | 29-Jun-2013 |
Alexander Graf <agraf@suse.de> |
PPC: Mac: Add debug prints in macio and dbdma code
The macio code is basically undebuggable as it stands today, with no debug prints anywhere whatsoever. DBDMA was better, but I needed a few more to
PPC: Mac: Add debug prints in macio and dbdma code
The macio code is basically undebuggable as it stands today, with no debug prints anywhere whatsoever. DBDMA was better, but I needed a few more to create reasonable logs that tell me where breakage is.
Add a DPRINTF macro in the macio source file and add a bunch of debug prints that are all disabled by default of course.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|