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: Fri, 16 Feb 2024 17:48:39 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1708102135; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=SozaJeZFuq4FycCVDHoVF9Dzm0FaebcKq6K/nnbWN0c=; b=N/e5bajgKOMvZsX+MztvfoYNv9QNs70MPr9AH19UYPXNGXQ4/suiRiRo3qFX32i3Rm Fc2oYmlAqXO8HO/r1w/gfOc3JvEZccCuZqOhHjy2Pcd76ng7ueg/fAHrsVBf2Ipnt/dE UFJ3MclyyTrUJ5drZlLghwRljL2+Cb3RjOVFyGjeeydPSjfDj+OcoaTEOVgQODgaywaP btne/uwA2CqlmlRN/+hS1KJoeiCUE8sg56H0xTfM6R4atRUG9tfj4EEaJMJre/XNFV65 Tyvyiy2AAxDWDm5U54bnia+D7ZPgl+WW8gg6TbWmR0Z5SEoWeNhGMaQiZyiC+PlDPLnR 9Y2w==
- Arc-seal: i=1; a=rsa-sha256; t=1708102135; cv=none; d=strato.com; s=strato-dkim-0002; b=kVO1EUsjQKKsJObpKT24NdDrHV6A0XvTdqU2dpjO9LyybRV6qMBvWs/igb+Ce/2JfQ hyMIauuHBQWwoFvTMEO29P6K5JJUNZxiwJjHkiG/btdCP3HaGnYdfyJYoMGR5Rt7DqOW YCxtcpUe4FwkP6gad5CHIraOuZ0t7vi8QxrlmBmhN6OdwQ+7L++8oTE17Hnrknc7Wc9y +MYi2ZqWmcSfNcORL/RmGZ5YJ9Egp0ui6yy/CZ5LwmuHhB4Mz0Zk1a6qrCKEpu0HoQ7d SwFEtd7O54LJdAEm3gFvV3mpSfeAlfTNdHv7rA7cItFPYZgYPZWW6xi/w8zwSQputoVD B5mA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1708102135; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=SozaJeZFuq4FycCVDHoVF9Dzm0FaebcKq6K/nnbWN0c=; b=rPKNsgWR2krjeoHZoyUrcsGmQ6sfc4RoWYrmAOvOIq6N+kRw1egGj04xlXVwEglnrc I8G2VjwsUbwVohnTuVx/s2xYqOJ+sCAuTCfJhni3N0tSy2iMNG+xMHsc/0WEuqzgLzNu f7ssbrDxunCF1nVdU/js+pK4NWGROFG2X5IljW4+6m3Wob65ajf6W8PB6iiMQnt4dFVE Mu9DeYqpiIuSXoiG91S3B5YrHLOIC/iPBY+g4wKNvv4tr7xJ8aYA5HlNOg7ippqDY1JG RWjFaTnGEyvvZNlqr0rXApz/hFBQrjqadiXe9vLIGpCAzvKzC0X/geYO3bi4dN9zbQbR 5WWw==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1708102135; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=SozaJeZFuq4FycCVDHoVF9Dzm0FaebcKq6K/nnbWN0c=; b=SAUbLuIL48eL9ub/nzMi7Bkh/IUlGL6f7tUbtaLpVMlLaJcTVr1bWj+9swZAWLCgDq tPz1+j4kUdpTt3nCCMCQ==
Hi again,
good news: I stumbled upon the LBA issue because a user reported a problem
with HDDRIVER and his SATA hardware, which I could not reproduce even though
I tried it with several big drives.
I have now identified what was wrong, and after fixing it, LBA with Hatari
also appears to work. Nevertheless, IMHO it would still be good to port any
pending bugfixes in Qemu to Hatari. In my special case, I could not be sure
whether Hatari would qualify as a platform I could use for testing. Testing
LBA with a platform that has open LBA issues could be a waste of time ;-).
Best regards
Uwe
> Hi Eero,
>
> > Hatari code has e.g. couple of FIXMEs about "HOB" bit handling, which
> > may be related to LBA-48 mode handling(?).
>
> Yes, I noticed these, and they might indeed be related.
>
> > 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?
>
> Maybe these fixes can be merged. I can then test the result.
>
> Best regards
>
> Uwe
>
>