OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 8:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [AHCI] identification data has no Model and Size on real hw
PostPosted: Sun Jan 22, 2023 9:35 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
Tested on real hardware. BIOS ahci version is set to ahci 2.0
Image
As you can see. the second last value is 0xA5 that means the identify data is correct.
But the Model name is filled with 0x20 and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero
Even the identify data doesn't looks right. but it reads the disk correctly
and the identication look working on VMware
Image

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [AHCI] identification data has no Model and Size on real
PostPosted: Sun Jan 22, 2023 9:43 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
Is there any way except identify the disk to get the size of disk? and Model?

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [AHCI] identification data has no Model and Size on real
PostPosted: Sun Jan 22, 2023 7:04 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5069
nifanfa wrote:
But the Model name is filled with 0x20

Your photo has too much information cut off to be certain, but it looks like the model name is "Hoodisk SSD" (6F 48 64 6F 73 69 20 6B 53 53 20 44).

nifanfa wrote:
and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero

Your photo has too much information cut off to tell what values are in these words.


Top
 Profile  
 
 Post subject: Re: [AHCI] identification data has no Model and Size on real
PostPosted: Sun Jan 22, 2023 11:46 pm 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
Octocontrabass wrote:
nifanfa wrote:
But the Model name is filled with 0x20

Your photo has too much information cut off to be certain, but it looks like the model name is "Hoodisk SSD" (6F 48 64 6F 73 69 20 6B 53 53 20 44).

nifanfa wrote:
and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero

Your photo has too much information cut off to tell what values are in these words.

thank you. i think my struct was wrong.

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [AHCI] identification data has no Model and Size on real
PostPosted: Mon Jan 23, 2023 12:31 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
i found that sometimes the Signature (offset 510) is not 0xA5 so on that time the Model name and maxlba will be invalid value

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [AHCI] identification data has no Model and Size on real
PostPosted: Mon Jan 23, 2023 12:43 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5069
You should still be able to read the model name and maximum LBA even when the Checksum Validity Indicator is not 0xA5. It sounds like there's a problem somewhere in your driver.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group