Re: [hatari-devel] IDE LBA-48 not working |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] IDE LBA-48 not working
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Wed, 14 Feb 2024 12:19:04 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1707909559; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=7weeX8aQrQ6uksHX9BE5BwAc3V+YwRjK+cvg4p+eNFI=; b=Qc+g8iyBrsKCUedZ4AAtn4mQJT/fRR11Cw+BCVblkWY3ioUy52vo0kIxDYyz2fOcd2 qci4CevTiHp33KcWftFNm+nbIzkpDIBedKld2XtUUGdZ+fJVw7iE1Q1gD8/W7FV+lnrQ y2581FiBw/RqTScYlUpZP0o23EQW/OzbkpPSvzT641oPqCKmgv1xp0D2XLqariPlgUd4 T6f+UrgTHIe/xNhXJVshp5v5B8rFlmE71lT/tJqKJ4qGyEW+Eu+ihdsGi46HPQcodC/A AE/f6Z97WyNnBVreJBMO/Ujys3OE+4BQi5uwcvf/NZEQGKRT3pLCNJ3RI5mJ79KyLzVP 11QQ==
- Arc-seal: i=1; a=rsa-sha256; t=1707909559; cv=none; d=strato.com; s=strato-dkim-0002; b=mLPJl2REzzQ9ejDqSQ4ha/GaI0+jZFcyc6wmoF4zhZetccImfvVwCQI4LHXv8fIG7B ZuM/1oPrzMBWctUCamrZtFxGP9OFmqG4z3/K4lYgtlxm8m/2L6iwooyiQ9GH2qsGPZ/F kZ+ksTtyL8MRg4LRzfnPcmxiR+pARb1NXoNEDKA2HX0pZCKHrxSEbIa8FIrrdFozzGdh vz774ZjLicsEZKmCVrLsvccxK4w6pUuq4s+uVBZkDeCsvggB1FIF7ozO8S+Ou8+R2oRC ou3sJ5jlBGtLHGULBGbP+ppI7MRCzu6dqV+In0AFAQCOxfFwtoybQuMRH3ro7RC1mnlg kSYw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1707909559; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=7weeX8aQrQ6uksHX9BE5BwAc3V+YwRjK+cvg4p+eNFI=; b=PZXWTeujFWNZVZuG8t9wjpDuBZDCaATWJ8cxn5PGQ9UoAmSNIdQIdjzh3C03raQd60 PukyxVAeUWulivT8L29R2EIE2qHTfL8k6uk6X7zbRGUbO4WTREcnwGzpXzcIk0aquW6M AbK/rTvH63bXJvTLY50FNJApfE91MyRlbrReY5f2eQBnzZLZ5J34hhsP6YsxCdaryxuX yV0u+Sp2uJeHJEIcCIM/FOwn0YuD5oYPjUl6zKAH3mg8c+RQnY8AtX3Sx+QbSe6CsI7U lR/PIup8Z029WXf0tvzb7uIBqirA0wh9OjAPGn/K6dLbzq+IghLP9UfKpDe884misx1Z IiZA==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1707909559; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=7weeX8aQrQ6uksHX9BE5BwAc3V+YwRjK+cvg4p+eNFI=; b=E5+2JdsVAKzgQExy9aV3WyoENEkCppEJ2wTkj0NCIJ2pjGMndeGtxcCISp6pFufAbF Ub7ic1IMu5FKjtm9w4Aw==
Hi,
Just an additional piece of information: For double-checking I verified
whether HDDRIVER still correctly uses LBA-48, and as far as I can tell it
does: I successfully tested LBA-48 with 3 SATA drives.
This means that there is most likely an issue with Hatari and LBA-48, indeed.
Best regards
Uwe
> Hi Uwe,
>
> On 12.2.2024 22.12, Uwe Seimet wrote:
> > Has anybody successfully tested LBA-48? As far as I can tell it does not
> > work.
>
> Thomas ported Qemu IDE hard disk code in (early) 2009 to Hatari. After
> that, I think most IDE testing (and hard disk image testing in general)
> probably has been done by you...
>
>
> > I created a drive image of about 250 GB and used it for an emulated
> > SCSI drive. With the SCSI drive there were no issues. Then I used the same
> > drive image for IDE and noticed that some of the data written by the SCSI
> > emulation were not present.
> > I investigated further and found that this appears to be related to the
> > LBA-48 mode. The last sector where Hatari returned the same data for (i.e.
> > the same for IDE and for SCSI) was sector 268435455, which is 2^28 - 1. This
> > is the last sector where LBA-28 still works. For sector 268435456 Hatari IDE
> > returns data, at least not those this sector actually contains. Hatari does
> > not even log that the sector was accessed. When writing to this sector it is
> > similar: There is no error, nothing is logged, but the data are not written.
>
> Maybe it's something that was not fully supported by 2009 Qemu code
> ported to Hatari?
>
> Hatari code has e.g. couple of FIXMEs about "HOB" bit handling, which
> may be related to LBA-48 mode handling(?).
>
> Looking at Qemu commit history, that was fixed in Qemu only in 2020:
> https://github.com/qemu/qemu/commit/be8c9423dec7bd0a0af7f57ecbbcb2718db72555
>
> And there's a fix to LBA-28 / LBA-48 detection in 2021:
> https://github.com/qemu/qemu/commit/46e018e9b741731842b93ce23a86fad60445969b
>
> Thomas?
>
>
> - Eero
>
>