* [PATCH] hw/block/fdc: do not set SEEK status bit in multi track commands
@ 2023-08-12 8:59 Hervé Poussineau
2024-01-01 21:44 ` Hervé Poussineau
0 siblings, 1 reply; 3+ messages in thread
From: Hervé Poussineau @ 2023-08-12 8:59 UTC (permalink / raw)
To: John Snow, qemu-block; +Cc: qemu-devel, Hervé Poussineau
I don't understand when SEEK must be set or not, but it seems to fix Minix...
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1522
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
hw/block/fdc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
index d7cc4d3ec19..f627bbaf951 100644
--- a/hw/block/fdc.c
+++ b/hw/block/fdc.c
@@ -1404,7 +1404,6 @@ static int fdctrl_seek_to_next_sect(FDCtrl *fdctrl, FDrive *cur_drv)
} else {
new_head = 0;
new_track++;
- fdctrl->status0 |= FD_SR0_SEEK;
if ((cur_drv->flags & FDISK_DBL_SIDES) == 0) {
ret = 0;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/block/fdc: do not set SEEK status bit in multi track commands
2023-08-12 8:59 [PATCH] hw/block/fdc: do not set SEEK status bit in multi track commands Hervé Poussineau
@ 2024-01-01 21:44 ` Hervé Poussineau
2024-01-08 23:29 ` John Snow
0 siblings, 1 reply; 3+ messages in thread
From: Hervé Poussineau @ 2024-01-01 21:44 UTC (permalink / raw)
To: John Snow, qemu-block; +Cc: qemu-devel
Ping.
Le 12/08/2023 à 10:59, Hervé Poussineau a écrit :
> I don't understand when SEEK must be set or not, but it seems to fix Minix...
>
> Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1522
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
> hw/block/fdc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/block/fdc.c b/hw/block/fdc.c
> index d7cc4d3ec19..f627bbaf951 100644
> --- a/hw/block/fdc.c
> +++ b/hw/block/fdc.c
> @@ -1404,7 +1404,6 @@ static int fdctrl_seek_to_next_sect(FDCtrl *fdctrl, FDrive *cur_drv)
> } else {
> new_head = 0;
> new_track++;
> - fdctrl->status0 |= FD_SR0_SEEK;
> if ((cur_drv->flags & FDISK_DBL_SIDES) == 0) {
> ret = 0;
> }
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/block/fdc: do not set SEEK status bit in multi track commands
2024-01-01 21:44 ` Hervé Poussineau
@ 2024-01-08 23:29 ` John Snow
0 siblings, 0 replies; 3+ messages in thread
From: John Snow @ 2024-01-08 23:29 UTC (permalink / raw)
To: Hervé Poussineau; +Cc: qemu-block, qemu-devel
On Mon, Jan 1, 2024 at 4:45 PM Hervé Poussineau <hpoussin@reactos.org> wrote:
>
> Ping.
>
> Le 12/08/2023 à 10:59, Hervé Poussineau a écrit :
> > I don't understand when SEEK must be set or not, but it seems to fix Minix...
> >
> > Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1522
> > Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> > ---
> > hw/block/fdc.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/hw/block/fdc.c b/hw/block/fdc.c
> > index d7cc4d3ec19..f627bbaf951 100644
> > --- a/hw/block/fdc.c
> > +++ b/hw/block/fdc.c
> > @@ -1404,7 +1404,6 @@ static int fdctrl_seek_to_next_sect(FDCtrl *fdctrl, FDrive *cur_drv)
> > } else {
> > new_head = 0;
> > new_track++;
> > - fdctrl->status0 |= FD_SR0_SEEK;
> > if ((cur_drv->flags & FDISK_DBL_SIDES) == 0) {
> > ret = 0;
> > }
>
I'll be honest, I don't have the time to audit this and I don't have
the test suite necessary to prove that it's safe enough. Do you have
any suggestions for how we can prove or test this beyond 'works for
me'?
I could read the spec sheet for this controller until I'm blue in the
face, but it doesn't seem to necessarily correlate to how the
controller behaves IRL or with what real operating systems actually do
with that controller. I also don't have access to a physical
controller anymore to even begin to try and write my own hardware
probe for it.
We need a robust test suite for FDC behavior, but it seems unlikely
that anyone will want to actually write one (I sure don't). Are there
any good shortcuts to victory here?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-08 23:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 8:59 [PATCH] hw/block/fdc: do not set SEEK status bit in multi track commands Hervé Poussineau
2024-01-01 21:44 ` Hervé Poussineau
2024-01-08 23:29 ` John Snow
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).