qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Artyom Tarasenko <atar4qemu@gmail.com>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-block@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Aleksandar Markovic" <amarkovic@wavecomp.com>,
	"John Snow" <jsnow@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>
Subject: Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode
Date: Fri, 6 Mar 2020 13:36:53 +0100	[thread overview]
Message-ID: <CACXAS8DLFbcfE8gTX6fnr-3MmbtxHdR77oQet+RsFPFQC42AJQ@mail.gmail.com> (raw)
In-Reply-To: <57ff6676-5054-d3f6-f4fc-6ff02b09019f@ilande.co.uk>

Hi guys,

On Sun, Mar 1, 2020 at 6:54 PM Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk> wrote:
>
> On 01/03/2020 16:42, BALATON Zoltan wrote:
>
> >> The other part I'm not sure about is that I can't see how via_ide_set_irq() can ever
> >> raise a native PCI IRQ - comparing with my experience on cmd646, should there not be
> >> a pci_set_irq(d, level) at the end?
> >
> > According to my tests with several guests it seems the via-ide does not seem to use
> > PCI interrupts as described in the previous reply, only either legacy IRQ14 and 15 or
> > one ISA IRQ line set by a config reg in native mode (except on Pegasos2). This may be
> > due to how it's internally connected in the southbridge chip it's part of or some
> > other platform specific quirk, I'm not sure.
>
> I think this is the key part here: how does via-ide switch between legacy and native
> mode? For CMD646 this is done by setting a bit in PCI configuration space, and I'd
> expect to see something similar here.

I haven't read the complete discussion yet, but  checked how it's done
in OFW. OFW did definitely work on via boards. Surprisingly OFW
Switches all IDE boards into native mode the same way:

my-space 9 + dup " config-b@"  $call-parent
    05 or  swap  " config-b!"  $call-parent

HTH

-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


  parent reply	other threads:[~2020-03-06 12:37 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29 23:02 [PATCH 0/2] Implement "non 100% native mode" in via-ide BALATON Zoltan
2020-02-29 23:02 ` [PATCH 1/2] ide: Make room for flags in PCIIDEState and add one for legacy IRQ routing BALATON Zoltan
2020-03-01 11:32   ` Mark Cave-Ayland
2020-03-01 15:27     ` BALATON Zoltan
2020-03-02  8:10       ` Markus Armbruster
2020-03-02 19:13         ` Mark Cave-Ayland
2020-03-02 23:26           ` BALATON Zoltan
2020-02-29 23:02 ` [PATCH 2/2] via-ide: Also emulate non 100% native mode BALATON Zoltan
2020-03-01 11:35   ` Mark Cave-Ayland
2020-03-01 11:41     ` Mark Cave-Ayland
2020-03-01 16:42       ` BALATON Zoltan
2020-03-01 17:54         ` Mark Cave-Ayland
2020-03-01 18:32           ` BALATON Zoltan
2020-03-01 18:53             ` BALATON Zoltan
2020-03-01 19:40               ` Mark Cave-Ayland
2020-03-01 21:30                 ` BALATON Zoltan
2020-03-02 19:00                   ` Mark Cave-Ayland
2020-03-02 21:40                     ` BALATON Zoltan
2020-03-03 20:40                       ` Mark Cave-Ayland
2020-03-04  0:22                         ` BALATON Zoltan
2020-03-04 21:04                           ` Mark Cave-Ayland
2020-03-04 22:33                             ` BALATON Zoltan
2020-03-05 18:40                               ` Mark Cave-Ayland
2020-03-05 23:35                                 ` BALATON Zoltan
2020-03-06  0:21                                   ` BALATON Zoltan
2020-03-06  7:25                                     ` Mark Cave-Ayland
2020-03-06 12:40                                       ` BALATON Zoltan
2020-03-06 18:44                                         ` Mark Cave-Ayland
2020-03-06  7:03                                   ` Mark Cave-Ayland
2020-03-06 12:06                                     ` BALATON Zoltan
2020-03-06 18:42                                       ` Mark Cave-Ayland
2020-03-06 19:38                                         ` BALATON Zoltan
2020-03-06 20:36                                           ` Mark Cave-Ayland
2020-03-06 22:59                                             ` BALATON Zoltan
2020-03-07 11:09                                               ` Mark Cave-Ayland
2020-03-07 15:56                                                 ` BALATON Zoltan
2020-03-06 12:36           ` Artyom Tarasenko [this message]
2020-03-01 16:31     ` BALATON Zoltan

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=CACXAS8DLFbcfE8gTX6fnr-3MmbtxHdR77oQet+RsFPFQC42AJQ@mail.gmail.com \
    --to=atar4qemu@gmail.com \
    --cc=amarkovic@wavecomp.com \
    --cc=jsnow@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=philmd@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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 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).