Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.development > #9907

Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset

From Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam>
Newsgroups alt.os.development
Subject Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset
Date 2016-08-16 23:18 -0400
Organization Aioe.org NNTP Server
Message-ID <20160816231830.1478fd00@_> (permalink)
References <0931784f-b988-4291-9b47-02a6f66ff117@googlegroups.com>

Show all headers | View raw


On Tue, 16 Aug 2016 15:50:48 -0700 (PDT)
"Isaac D. Cohen" <8switchsoftware@gmail.com> wrote:

> A while ago I noticed that my ATA driver was detecting devices that
> don't actually exist.

Was this for real hardware or for Bochs?

> I have since then written a small utility that
> finds the ATA controllers on the PCI bus, and resets their devices.
> It then reads from the registers on the command block and prints the
> results on the screen (i.e. whether the drive exists and if so
> whether it is ATA or ATAPI).

This works correctly for real hardware?
I.e., did you test it on real hardware before running it on Bochs?

> 	First Slot:	Second Slot:
> 1:	ATA		ATA
> 2:	ATAPI		ATAPI
> 3:	ATA		ATAPI
> 4:	ATAPI		ATA
> 5:	No Drive	ATA
> 6:	No Drive	ATAPI
> 7:	ATA		No Drive
> 8:	ATAPI		No Drive
> 9:	No Drive	No Drive
> 
> 	First Slot:	Second slot:
> 1:	ATA		ATA
> 2:	ATAPI		ATAPI
> 3:	ATA		ATA
> 4:	ATAPI		ATAPI
> 5:	No Drive	No Drive
> 6:	ATAPI		No Drive
> 7:	ATA		ATA
> 8:	No Drive	ATAPI
> 9:	No Drive	No Drive
> 
> As you can see, the only three cases where it got it right, are 1, 2
> and 9.

I doubt this is of any use, but I noticed the upper "First Slot"
matches the lower "Second Slot".  Could they be reversed?  If so, then
only the readings for one slot would be bad or changing.

> [code]

...


Rod Pemberton

Back to alt.os.development | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-16 15:50 -0700
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-16 19:32 -0700
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam> - 2016-08-16 23:18 -0400
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-17 14:59 -0700
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-18 01:47 +0200
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-17 20:10 -0700
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-18 14:19 -0700
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-18 19:50 -0700
      Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset esthercohen11234@gmail.com - 2016-08-18 23:07 -0700
        Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-19 09:44 +0200
          Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-19 12:16 -0700
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-20 20:02 -0700
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-21 10:09 +0200
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-21 17:12 -0700
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam> - 2016-08-22 01:36 -0400
      Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-22 10:14 +0200
        Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset James Harris <james.harris.1@gmail.com> - 2016-08-22 13:11 +0100
          Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-22 19:33 +0200
            Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset James Harris <james.harris.1@gmail.com> - 2016-08-22 22:43 +0100
              Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-23 11:42 +0200
                Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-23 12:00 -0700
        Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset Bogus@Embarq.com (Steve) - 2016-08-22 13:24 +0000
        Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-22 18:46 +0200
          Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset Bogus@Embarq.com (Steve) - 2016-08-23 11:47 +0000
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-22 10:21 +0200
  Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-08-22 12:28 -0700
    Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "wolfgang kern" <nowhere@never.at> - 2016-08-23 11:06 +0200
      Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-08-23 11:54 -0700
        Re: ATA/ATAPI/Non Existent Drive gives wrong information after reset James Harris <james.harris.1@gmail.com> - 2016-08-24 08:24 +0100

csiph-web