9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Bug Report. Maybe DMA race on Abit BX6
@ 2003-08-20 17:47 Carl-Johan Kjellander
  2003-08-20 17:53 ` andrey mirtchovski
  0 siblings, 1 reply; 5+ messages in thread
From: Carl-Johan Kjellander @ 2003-08-20 17:47 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

Plan 9 seems to have trouble installing on Abit BX6 motherboards.
I've tried installing it on two Abit BX6 motherboards but the installations
always fails at the same place.

When doing mountfs and answering wipe plan 9 starts to wipe the partitions.
After 5-10 seconds the load goes up to max and nothing more happens.

I can run Plan 9 fine from the install cd and I've had it up for more than
a week, but I can't get it installed on the harddisk.

The chipset on the motherboard is Intel 82371AB (PIIX4) so it should be
supported, and maybe the DMA is to blame? Maybe a race condition.

Anyway, is it possible to force the kernel not to use DMA when booting?
Or is there another kernel I could try to get it installed.

please CC me since I'm not on the list.
/Carl-Johan Kjellander
--
begin 644 carljohan_at_kjellander_dot_com.gif
Y1TE&.#=A(0`F`(```````/___RP`````(0`F```"@XR/!\N<#U.;+MI`<[U(>\!UGQ9BGT%>'D2I
Y*=NX,2@OUF2&<827ILW;^822C>\7!!Z1,!K'B5(6H<SH-"E*TJ3%*/>QI6:7"A>Y?):D2^*U@NCV
R<MOQ=]V(B6>LZYD-_T1U<@3W]A4(^$-W4]A#V")W6#.R"$;IR'@).46BN7$9>5D``#L`

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3525 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Bug Report. Maybe DMA race on Abit BX6
  2003-08-20 17:47 [9fans] Bug Report. Maybe DMA race on Abit BX6 Carl-Johan Kjellander
@ 2003-08-20 17:53 ` andrey mirtchovski
  0 siblings, 0 replies; 5+ messages in thread
From: andrey mirtchovski @ 2003-08-20 17:53 UTC (permalink / raw)
  To: 9fans

On Wed, 20 Aug 2003, Carl-Johan Kjellander wrote:

> Anyway, is it possible to force the kernel not to use DMA when booting?
> Or is there another kernel I could try to get it installed.
>

you can configure the machine not to use DMA from the BIOS. also try 'cat
/dev/sdC0/ctl' to see whether it's on or off.

doing a 'echo dma off > /dev/sdC0/ctl' will disable dma

that assumes your disk is under /dev/sdC0 :)

andrey



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Bug Report. Maybe DMA race on Abit BX6
  2003-08-20 18:52 ` andrey mirtchovski
@ 2003-08-20 19:01   ` jmk
  0 siblings, 0 replies; 5+ messages in thread
From: jmk @ 2003-08-20 19:01 UTC (permalink / raw)
  To: 9fans

On Wed Aug 20 14:53:28 EDT 2003, mirtchov@cpsc.ucalgary.ca wrote:
> On Wed, 20 Aug 2003, Carl-Johan Kjellander wrote:
>
> > So there is a bug in the dma-handling for the Abit BX6 motherboard.
> >
>
> according to jmk, if there was a bug in the dma code, data corruption
> would be the most likely effect. however i've suffered only from race
> conditions in fossil with dma on
>
> andrey

The manifestation of DMA not being properly set up can range from
subtle data corruption to system hangs. The problem is almost always
caused by the BIOS setting the drive to a different DMA mode than
that set in the controller-dependent registers. Plan 9 currently
assumes the BIOS doesn't make that mistake, and that is why DMA
should never be enabled unless you are sure it will work OK. The
driver should someday be able to do this check and configure the
hardware correctly.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Bug Report. Maybe DMA race on Abit BX6
  2003-08-20 18:36 Carl-Johan Kjellander
@ 2003-08-20 18:52 ` andrey mirtchovski
  2003-08-20 19:01   ` jmk
  0 siblings, 1 reply; 5+ messages in thread
From: andrey mirtchovski @ 2003-08-20 18:52 UTC (permalink / raw)
  To: 9fans

On Wed, 20 Aug 2003, Carl-Johan Kjellander wrote:

> So there is a bug in the dma-handling for the Abit BX6 motherboard.
>

according to jmk, if there was a bug in the dma code, data corruption
would be the most likely effect. however i've suffered only from race
conditions in fossil with dma on

andrey



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [9fans] Bug Report. Maybe DMA race on Abit BX6
@ 2003-08-20 18:36 Carl-Johan Kjellander
  2003-08-20 18:52 ` andrey mirtchovski
  0 siblings, 1 reply; 5+ messages in thread
From: Carl-Johan Kjellander @ 2003-08-20 18:36 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 992 bytes --]

andrey mirtchovski wrote:
 > On Wed, 20 Aug 2003, Carl-Johan Kjellander wrote:
 >
 >  > Anyway, is it possible to force the kernel not to use DMA when booting?
 >  > Or is there another kernel I could try to get it installed.
 >  >
 >
 > you can configure the machine not to use DMA from the BIOS. also try 'cat
 > /dev/sdC0/ctl' to see whether it's on or off.
 >
 > doing a 'echo dma off > /dev/sdC0/ctl' will disable dma
 >
 > that assumes your disk is under /dev/sdC0 :)

Thanks! Getting another rc window up and turning off dma did the trick!
After that everything installed fine.

So there is a bug in the dma-handling for the Abit BX6 motherboard.

Please CC me
/Carl-Johan Kjellander
--
begin 644 carljohan_at_kjellander_dot_com.gif
Y1TE&.#=A(0`F`(```````/___RP`````(0`F```"@XR/!\N<#U.;+MI`<[U(>\!UGQ9BGT%>'D2I
Y*=NX,2@OUF2&<827ILW;^822C>\7!!Z1,!K'B5(6H<SH-"E*TJ3%*/>QI6:7"A>Y?):D2^*U@NCV
R<MOQ=]V(B6>LZYD-_T1U<@3W]A4(^$-W4]A#V")W6#.R"$;IR'@).46BN7$9>5D``#L`

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3525 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-20 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 17:47 [9fans] Bug Report. Maybe DMA race on Abit BX6 Carl-Johan Kjellander
2003-08-20 17:53 ` andrey mirtchovski
2003-08-20 18:36 Carl-Johan Kjellander
2003-08-20 18:52 ` andrey mirtchovski
2003-08-20 19:01   ` jmk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).