enabling bus-master IDE driver
Quoted 5 lines
Quoting zitu <[email protected]>:
Quoted 2 lines
Quoted 2 lines
Does that mean that the patch doesn't work? Do I have to do something
else
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
to make dma work?
I think this patch is almost complete for linux and solaris guests. Some more work/init is needed inside XP/NT/2K. Anyone around with this knowledge ?
answering to myself... :)
WIN_WRITEDMA_EXT&WIN_READDMA_EXTcases are not defined inhw/ide.c
Aha, and Windows uses these commands, on small HDDs <= 128GB ?
Quoted 6 lines
I have no idea where to start to write a patch for these... :(
Until these and the
atapi_dmaare set/defined, no dma should work IMHO. And this seems not to be OS dependant.Which means the linux figures I got were wrong ???
The *_EXT versions are apparently for HDDs with capacities >128GB, these need 48-bit LBA addresses to access the HDD space over the 128GB mark.
I guess that Solaris/Linux uses the commands with the smaller 28-bit LBA disk addresses for small disks with capacities <= 128GB.
An interesting experiment would be to setup a QEMU HDD image > 128GB, then try Solaris x86/Linux with such a big disk and check if it still works. Probably not.
Quoting Juergen Keil <[email protected]>:
Quoted 3 lines
Quoted 1 line
WIN_WRITEDMA_EXT&WIN_READDMA_EXTcases are not defined inhw/ide.cAha, and Windows uses these commands, on small HDDs <= 128GB ?
Apparently no... I realized after I wrote this email that WIN_WRITEDMA should be the right command to invoke,
Quoted 21 lines
Quoted 8 lines
I have no idea where to start to write a patch for these... :(
Until these and the
atapi_dmaare set/defined, no dma should work IMHO. And this seems not to be OS dependant.Which means the linux figures I got were wrong ???
The
*_EXTversions are apparently for HDDs with capacities >128GB, these need 48-bit LBA addresses to access the HDD space over the 128GB mark.I guess that Solaris/Linux uses the commands with the smaller 28-bit LBA disk addresses for small disks with capacities <= 128GB.
An interesting experiment would be to setup a QEMU HDD image > 128GB, then try Solaris x86/Linux with such a big disk and check if it still works. Probably not.
Quoted 5 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Quoting Juergen Keil <[email protected]>:
Quoted 3 lines
Quoted 1 line
WIN_WRITEDMA_EXT&WIN_READDMA_EXTcases are not defined inhw/ide.cAha, and Windows uses these commands, on small HDDs <= 128GB ?
I realized after I wrote this email that WIN_WRITEDMA should be the right command invoked. I added some printf, nope, it's never called.
WIN_READ on the contrary is always called. I'm poking around the command now to make it like it's DMA'ed.
Quoted 2 lines
The
*_EXTversions are apparently for HDDs with capacities >128GB, these need 48-bit LBA addresses to access the HDD space over the 128GB mark.
I wrote my previous email too soon, without experimenting much. I'll be more careful.
Zitu
--
Quoted 4 lines · zitu
Quoting Juergen Keil <[email protected]>:
Quoted 3 lines
Quoted 1 line
WIN_WRITEDMA_EXT&WIN_READDMA_EXTcases are not defined inhw/ide.cAha, and Windows uses these commands, on small HDDs <= 128GB ?
At least Linux 2.6 will use them on any capacity drive, if the drive has support for lba48. You can do bigger transfers that way, WIN_READDMA/WRITEDMA can only do 128kb at the time.
But qemu does not flag lba48 support, so neither Linux nor Windows should use the _EXT commands regardless.
Signature · 1 line
Jens Axboe
Quoted 1 line
From a clean and quick boot with shutdown of XP, this is the type of access
to a 512MB hdd image:
3028 WIN_READ
500 WIN_WRITE
1 WIN_SPECIFY
70 WIN_PACKETCMD
4 WIN_PIDENTIFY
1 WIN_IDLEIMMEDIATE
194 WIN_CHECKPOWERMODE1
1 WIN_FLUSH_CACHE
3 WIN_IDENTIFY
3 WIN_SETFEATURESNo DMA... How do I make the system recognize DMA capability then ? WIN_READ_DMA and WIN_WRITE_DMA exist, but never get called... :(
Zitu
--
Hi,
Maybe have a look with a drive information tool, to see what is reported, such as Sisoft Sandra...
Or capture the calls when you run this inside XP: http://support.microsoft.com/default.aspx?scid=kb;en-us;159560
Damien
Quoted 28 lines · zitu
Quoted 1 line
From a clean and quick boot with shutdown of XP, this is the type of access
to a 512MB hdd image:
3028
WIN_READ
500WIN_WRITE
1WIN_SPECIFY
70WIN_PACKETCMD
4WIN_PIDENTIFY
1WIN_IDLEIMMEDIATE
194WIN_CHECKPOWERMODE1
1WIN_FLUSH_CACHE
3WIN_IDENTIFY
3WIN_SETFEATURESNo DMA... How do I make the system recognize DMA capability then ?
WIN_READ_DMAandWIN_WRITE_DMAexist, but never get called... :(Zitu
--_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel