* [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
@ 2013-12-25 14:17 David du Colombier
2014-01-09 21:28 ` David du Colombier
2014-01-15 16:15 ` [Qemu-devel] " Michael Tokarev
0 siblings, 2 replies; 6+ messages in thread
From: David du Colombier @ 2013-12-25 14:17 UTC (permalink / raw)
To: qemu-trivial; +Cc: David du Colombier
This notably fix IDE CD probing on the Plan 9 operating system,
which rely on the error register set by the Execute Device
Diagnostic command to detect drive configurations.
Thanks to Rémi Pommarel for reporting this issue.
Signed-off-by: David du Colombier <0intro@gmail.com>
---
hw/ide/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/core.c b/hw/ide/core.c
index e1f4c33..7783d58 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -1321,6 +1321,7 @@ static bool cmd_exec_dev_diagnostic(IDEState *s, uint8_t cmd)
s->status = 0; /* ATAPI spec (v6) section 9.10 defines packet
* devices to return a clear status register
* with READY_STAT *not* set. */
+ s->error = 0x01;
} else {
s->status = READY_STAT | SEEK_STAT;
/* The bits of the error register are not as usual for this command!
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
2013-12-25 14:17 [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01 David du Colombier
@ 2014-01-09 21:28 ` David du Colombier
2014-01-15 16:15 ` [Qemu-devel] " Michael Tokarev
1 sibling, 0 replies; 6+ messages in thread
From: David du Colombier @ 2014-01-09 21:28 UTC (permalink / raw)
To: qemu-trivial
> This notably fix IDE CD probing on the Plan 9 operating system,
> which rely on the error register set by the Execute Device
> Diagnostic command to detect drive configurations.
>
> Thanks to Rémi Pommarel for reporting this issue.
>
> Signed-off-by: David du Colombier <0intro@gmail.com>
> ---
> hw/ide/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/ide/core.c b/hw/ide/core.c
> index e1f4c33..7783d58 100644
> --- a/hw/ide/core.c
> +++ b/hw/ide/core.c
> @@ -1321,6 +1321,7 @@ static bool cmd_exec_dev_diagnostic(IDEState
> *s, uint8_t cmd) s->status = 0; /* ATAPI spec (v6) section 9.10
> defines packet
> * devices to return a clear status register
> * with READY_STAT *not* set. */
> + s->error = 0x01;
> } else {
> s->status = READY_STAT | SEEK_STAT;
> /* The bits of the error register are not as usual for this
> command!
Ping.
--
David du Colombier
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
2013-12-25 14:17 [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01 David du Colombier
@ 2014-01-15 16:15 ` Michael Tokarev
2014-01-15 16:15 ` [Qemu-devel] " Michael Tokarev
1 sibling, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2014-01-15 16:15 UTC (permalink / raw)
To: David du Colombier; +Cc: qemu-trivial, qemu-devel
25.12.2013 18:17, David du Colombier wrote:
> This notably fix IDE CD probing on the Plan 9 operating system,
> which rely on the error register set by the Execute Device
> Diagnostic command to detect drive configurations.
While this is a one-liner, I'm not sure it is "trivial enough", just because
it is not at all obvious we shuold clear error here and not somewhere else.
I mean, shouldn't s->error be cleared somewhere when next request is queued,
or something like that?
That's basically why I haven't applied this initially.
CC'ing qemu-devel.
Thanks,
/mjt
> Thanks to Rémi Pommarel for reporting this issue.
>
> Signed-off-by: David du Colombier <0intro@gmail.com>
> ---
> hw/ide/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/ide/core.c b/hw/ide/core.c
> index e1f4c33..7783d58 100644
> --- a/hw/ide/core.c
> +++ b/hw/ide/core.c
> @@ -1321,6 +1321,7 @@ static bool cmd_exec_dev_diagnostic(IDEState *s, uint8_t cmd)
> s->status = 0; /* ATAPI spec (v6) section 9.10 defines packet
> * devices to return a clear status register
> * with READY_STAT *not* set. */
> + s->error = 0x01;
> } else {
> s->status = READY_STAT | SEEK_STAT;
> /* The bits of the error register are not as usual for this command!
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
@ 2014-01-15 16:15 ` Michael Tokarev
0 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2014-01-15 16:15 UTC (permalink / raw)
To: David du Colombier; +Cc: qemu-trivial, qemu-devel
25.12.2013 18:17, David du Colombier wrote:
> This notably fix IDE CD probing on the Plan 9 operating system,
> which rely on the error register set by the Execute Device
> Diagnostic command to detect drive configurations.
While this is a one-liner, I'm not sure it is "trivial enough", just because
it is not at all obvious we shuold clear error here and not somewhere else.
I mean, shouldn't s->error be cleared somewhere when next request is queued,
or something like that?
That's basically why I haven't applied this initially.
CC'ing qemu-devel.
Thanks,
/mjt
> Thanks to Rémi Pommarel for reporting this issue.
>
> Signed-off-by: David du Colombier <0intro@gmail.com>
> ---
> hw/ide/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/ide/core.c b/hw/ide/core.c
> index e1f4c33..7783d58 100644
> --- a/hw/ide/core.c
> +++ b/hw/ide/core.c
> @@ -1321,6 +1321,7 @@ static bool cmd_exec_dev_diagnostic(IDEState *s, uint8_t cmd)
> s->status = 0; /* ATAPI spec (v6) section 9.10 defines packet
> * devices to return a clear status register
> * with READY_STAT *not* set. */
> + s->error = 0x01;
> } else {
> s->status = READY_STAT | SEEK_STAT;
> /* The bits of the error register are not as usual for this command!
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
2014-01-15 16:15 ` [Qemu-devel] " Michael Tokarev
@ 2014-02-01 9:50 ` Michael Tokarev
-1 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2014-02-01 9:50 UTC (permalink / raw)
To: David du Colombier; +Cc: qemu-trivial, qemu-devel
15.01.2014 20:15, Michael Tokarev wrote:
> 25.12.2013 18:17, David du Colombier wrote:
>> This notably fix IDE CD probing on the Plan 9 operating system,
>> which rely on the error register set by the Execute Device
>> Diagnostic command to detect drive configurations.
>
> While this is a one-liner, I'm not sure it is "trivial enough", just because
> it is not at all obvious we shuold clear error here and not somewhere else.
> I mean, shouldn't s->error be cleared somewhere when next request is queued,
> or something like that?
>
> That's basically why I haven't applied this initially.
>
> CC'ing qemu-devel.
I've applied this to qemu-trivial 3 weeks ago, and now this change has been
applied to the master branch, -- still without any additional comments, which
is somewhat troubling me, but here we go.
Thanks,
/mjt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01
@ 2014-02-01 9:50 ` Michael Tokarev
0 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2014-02-01 9:50 UTC (permalink / raw)
To: David du Colombier; +Cc: qemu-trivial, qemu-devel
15.01.2014 20:15, Michael Tokarev wrote:
> 25.12.2013 18:17, David du Colombier wrote:
>> This notably fix IDE CD probing on the Plan 9 operating system,
>> which rely on the error register set by the Execute Device
>> Diagnostic command to detect drive configurations.
>
> While this is a one-liner, I'm not sure it is "trivial enough", just because
> it is not at all obvious we shuold clear error here and not somewhere else.
> I mean, shouldn't s->error be cleared somewhere when next request is queued,
> or something like that?
>
> That's basically why I haven't applied this initially.
>
> CC'ing qemu-devel.
I've applied this to qemu-trivial 3 weeks ago, and now this change has been
applied to the master branch, -- still without any additional comments, which
is somewhat troubling me, but here we go.
Thanks,
/mjt
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-01 9:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 14:17 [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01 David du Colombier
2014-01-09 21:28 ` David du Colombier
2014-01-15 16:15 ` Michael Tokarev
2014-01-15 16:15 ` [Qemu-devel] " Michael Tokarev
2014-02-01 9:50 ` Michael Tokarev
2014-02-01 9:50 ` [Qemu-devel] " Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.