All of lore.kernel.org
 help / color / mirror / Atom feed
From: BALATON Zoltan <balaton@eik.bme.hu>
To: John Snow <jsnow@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] hw/ide: Emulate SiI3112 SATA controller
Date: Tue, 19 Dec 2017 01:34:00 +0100 (CET)	[thread overview]
Message-ID: <alpine.BSF.2.21.1712190109110.9867@zero.eik.bme.hu> (raw)
In-Reply-To: <730aec0f-3f10-55ea-eb26-e5740c2fbfe2@redhat.com>

On Mon, 18 Dec 2017, John Snow wrote:
> On 12/18/2017 07:30 AM, BALATON Zoltan wrote:
>> On Mon, 18 Dec 2017, David Gibson wrote:
>>> On Sat, Dec 16, 2017 at 11:42:39PM +0100, BALATON Zoltan wrote:
>>>> This is a common generic PCI SATA controller that is also used in PCs
>>>> but more importantly guests running on the Sam460ex board prefer this
>>>> card and have a driver for it (unlike for other SATA controllers
>>>> already emulated).
>>>>
>>>> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
>>>
>>> I don't know enough about IDE to give this any more than a quick check
>>> for anything obviously bogus looking.? So,
>>>
>>> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
>>>
>>> John, can you take this through your tree, or should I take it through
>>> the ppc tree?
>>
>> I think he said before it can go via ppc tree:
>>
>> http://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg04480.html
>>
>
> Yep, I tend to use Acked-by to indicate that it's okay for you to stage.
> I'll give it another look-over in a minute, but I'm fine with adding the
> model in general, even if it's not quite complete just yet.

Maybe it's not complete yet but it should work to some degree. I've tested 
it with Linux on i386-softmmu and on PPC Sam460ex with u-boot and some 
guests (both on x86_64 host) and these could boot from an ide-cd model 
connected to this controller so at least basic PIO and UDMA modes should 
work. Maybe some more advanced features are missing but don't know if 
there are any drivers using those.

On i386 the bios does not have a driver so one cannot boot from this 
controller only, so I've tested it with -kernel and -initrd options but 
root filesystem was then read from CD connected to this controller and it 
could read it and start. I haven't tested it more than that though. Maybe 
the card's original option ROM that would allow booting from BIOS might 
not work with this device model but I think we could not distribute that 
anyway for legal reasons so I did not try that. On the Sam460ex which is 
my target for this the u-boot firmware has a driver and can boot from this 
controller as well as clients can use it.

As of now this patch only adds it to ppcemb and will only be created by 
default on the sam460ex machine so not very likely someone would try to 
use it on something else without recompiling QEMU.

Regards,
BALATON Zoltan

  reply	other threads:[~2017-12-19  0:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-16 22:42 [Qemu-devel] [PATCH v2] hw/ide: Emulate SiI3112 SATA controller BALATON Zoltan
2017-12-18  4:09 ` David Gibson
2017-12-18 12:30   ` [Qemu-devel] [Qemu-ppc] " BALATON Zoltan
2017-12-18 18:33     ` John Snow
2017-12-19  0:34       ` BALATON Zoltan [this message]
2017-12-19  1:18       ` David Gibson
2017-12-20  1:26         ` John Snow
2017-12-21  0:13 ` [Qemu-devel] " John Snow

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=alpine.BSF.2.21.1712190109110.9867@zero.eik.bme.hu \
    --to=balaton@eik.bme.hu \
    --cc=david@gibson.dropbear.id.au \
    --cc=jsnow@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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.