All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: jsnow@redhat.com, kraxel@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH] hw/q35: fix floppy controller definition in ich9
Date: Mon, 01 Jun 2015 17:54:44 +0300	[thread overview]
Message-ID: <556C7234.6090300@redhat.com> (raw)
In-Reply-To: <556C6FFE.6000803@redhat.com>

On 06/01/2015 05:45 PM, Paolo Bonzini wrote:
>
>
> On 01/06/2015 16:13, Marcel Apfelbaum wrote:
>>
>>> In DSDT FDC0 declares the IO region as IO(Decode16, 0x03F2, 0x03F2,
>>> 0x00, 0x04).
>>> Use the same in lpc_ich9 initialization code.
>>> Now the floppy drive is detected correctly on Windows.
>>>
>>> Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
>>> ---
>>>    hw/isa/lpc_ich9.c | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
>>> index dba7585..bc9afc6 100644
>>> --- a/hw/isa/lpc_ich9.c
>>> +++ b/hw/isa/lpc_ich9.c
>>> @@ -494,7 +494,7 @@ static void ich9_lpc_machine_ready(Notifier *n,
>>> void *opaque)
>>>            /* lpt */
>>>            pci_conf[0x82] |= 0x04;
>>>        }
>>> -    if (memory_region_present(io_as, 0x3f0)) {
>>> +    if (memory_region_present(io_as, 0x3f2)) {
>>>            /* floppy */
>>>            pci_conf[0x82] |= 0x08;
>>>        }
>>>
>>
>> Hi,
>>
>> I cc-ed the developers involved in the mail thread:
>>      https://lists.gnu.org/archive/html/qemu-block/2015-05/msg01043.html
>> and the FDC maintainer. I hope I didn't miss anybody.
>>
>> I also have no knowledge of FDC, but I think the above patch is correct
>> and solves the problem of floppy disk missing in Windows for Q35 machines.
>
> The patch is okay, but the correct definition of the area is from 0x3F1
> to 0x3F7.
Can we do other fixes on top of this? This patch solves the actual Windows problem
and now we can use floppies for Q35.

Can I take this okay as a "Reviewed-by"? )
Thanks,
Marcel


>
> Paolo
>

  reply	other threads:[~2015-06-01 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 14:09 [Qemu-devel] [PATCH] hw/q35: fix floppy controller definition in ich9 Marcel Apfelbaum
2015-06-01 14:13 ` Marcel Apfelbaum
2015-06-01 14:45   ` Paolo Bonzini
2015-06-01 14:54     ` Marcel Apfelbaum [this message]
2015-06-01 14:57       ` Paolo Bonzini
2015-06-01 15:06         ` Marcel Apfelbaum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556C7234.6090300@redhat.com \
    --to=marcel@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.