Ticket #985 (closed bug: fixed)

Opened 18 months ago

Last modified 8 months ago

IDE DMA problem under VMWare

Reported by: aldeck Owned by: marcusoverhagen
Priority: high Milestone: R1
Component: - General Version: R1 development
Cc: axeld, diver Blocked By:
Platform: All Blocking:

Description

I found two reproductible bugs related to IDE DMA under VMWare.

1) When trying to shutdown Haiku, the shutdown is stalling for several seconds on "Tidying things up a bit" showing no icon or indication of progress.

2) wget and ftp both stall randomly when downloading a file.

Setting "Disable IDE DMA" in the boot menu solves the two problems.

I'm attaching the serial output of a simple startup and shutdown session with and without IDE DMA enabled.

Attachments

IdeDmaEnabled.txt (40.1 kB) - added by aldeck 18 months ago.
IdeDmaDisabled.txt (39.8 kB) - added by aldeck 18 months ago.

Change History

Changed 18 months ago by aldeck

Changed 18 months ago by aldeck

follow-up: ↓ 4   Changed 18 months ago by axeld

Did you anything special before shutting down? Because while "tidying things up" it just syncs the HD caches. And that may take a while depending on how much you did before, since Haiku doesn't periodically write back the disk cache yet!

To 2): this has nothing to do with IDE DMA - it may just slow down the download. TCP isn't exactly finished yet, and that's one of its known problems.

  Changed 18 months ago by aldeck

No i just booted and immediately shut down without doing any file op. I thought you would knew about this issue because i saw it mentionned on several places.

About 2), ok fine, otherwise networking is working great so far, impressive job!

  Changed 18 months ago by marcusoverhagen

  • cc marcusoverhagen added

in reply to: ↑ 1   Changed 17 months ago by jonas.kirilla

I've compared syncing a fresh boot of Haiku (rev 20131 and some previous) in VMware Player / Windows XP / 2.4GHz Celeron to the same in Q (Qemu) / MacOS X / 1.4GHz G4, and while Haiku in VMware on the PC is a lot snappier than Haiku in Q on the Mac, syncing takes "normal" time in Q, whereas in VMware Player it takes much, much longer.

/bin/idestatus says:

Q on Mac: dma_status: dma enabled pio mode: 0 dma mode: 0x00

VMware Player on PC: dma_status: dma disabled after dma failure pio mode: 0 dma mode: 0x00

/bin/ideinfo:

Q: FLUSH CACHE: supported FLUSH CACHE EXT: supported

VMwarePlayer: FLUSH CACHE: not supported FLUSH CACHE EXT: not supported

There may be some other difference to the output of ideinfo that I haven't spotted.

  Changed 17 months ago by diver

  • cc diver added; marcusoverhagen removed

  Changed 17 months ago by diver

  • cc marcusoverhagen added

  Changed 17 months ago by marcusoverhagen

  • cc axeld added; marcusoverhagen removed
  • owner changed from axeld to marcusoverhagen
  • priority changed from normal to high

The IDE DMA implementation is faulty. I does write to wrong registers (reported in vmware logfiles), and trys to reset the devices in a strange way. I added some debug output for this problem in r19990.

  Changed 17 months ago by marcusoverhagen

  • status changed from new to assigned

  Changed 8 months ago by bonefish

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r22975.

Note: See TracTickets for help on using tickets.