All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: Artyom Tarasenko <atar4qemu@gmail.com>
Cc: qemu-ppc@nongnu.org, "Andreas Färber" <andreas.faerber@web.de>,
	"Hervé Poussineau" <hpoussin@reactos.org>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v3 09/10] raven: fix PCI bus accesses with size > 1
Date: Mon, 17 Mar 2014 22:28:40 +0000	[thread overview]
Message-ID: <53277718.8070800@ilande.co.uk> (raw)
In-Reply-To: <CACXAS8AZzUeKqmv1cXDNSxezQsv85ZJgYVVtbNeDaA3V6OEPsw@mail.gmail.com>

On 17/03/14 21:55, Artyom Tarasenko wrote:

> Hi Andreas,
>
> On Mon, Mar 17, 2014 at 8:59 PM, Andreas Färber<andreas.faerber@web.de>  wrote:
>>> this patch seems still be missing in master. Is it causing any problems?
>>
>> It does not apply without the preceding patches. Here's my cherry-pick
>> result:
>> [...]
>> I.e. we might change 1 ->  4 in the SysBus API, but would that work given
>> that endianness is being changed alongside?
>
> Yes, and that's the point of this patch. PCI configuration space is
> little-endian. With 1 byte access size, no byte swapping happens, so
> the bug is hidden.
> But on 32- and 16- bit accesses the bytes are swapped.
>
>> If either of you could submit a version limited to bug fixes or explain
>> why the whole refactoring is needed as bug fix and provide a bisectable
>> version, I can certainly apply it for -rc1 if my test cases continue
>> working.
>
> No refactoring is necessary: only be->le and 1->4, and this is a pure
> bugfix, which has no side effects because OHW seems to use 1 byte
> accesses only.

Yes, this is my understanding of the patch. However I also see that 
Hervé has just posted a revised raven patchset. If this patchset passes 
testing, I'd be inclined to apply it for 2.0 mainly because Hervé has 
done a great deal of testing on real OSs during development over the 
last 4 months and I'd bet that this fixes many more bugs than it would 
likely introduce.

Andreas, what's your test harness for PReP look like? Can you point us 
towards specific ISOs so that we can try these patches out?

>> BTW another unresolved issue that's been discussed is whether we should
>> change the default CPU for -M prep. I've been open to doing so for 2.0
>> but would like some pointer that such a machine did exist
>
> That's fair. I don't have any preference here though, as long as the
> necessary cpu can be selected via the command line.

I think I'd prefer to stick with the 600 series as I know there has been 
some talk of people wanting to run BeOS under QEMU, and given that OHW 
runs fine under an emulated 600 series processor then we should try and 
keep compatibility with that.

Given where we are time-wise, my preference would be to do the switch to 
OpenBIOS during the 2.1 cycle.

>> rather than just happens to work better with OpenBIOS.
>
> Oh, there is a compatible version of OpenBIOS available?! Are the
> binaries shared somewhere?

Yes - it's called git master ;) Make sure you apply Hervé's patcheset 
just posted to the list, plus the last 3 [RFC] OpenBIOS patches at 
http://repo.or.cz/w/qemu/hpoussin.git/shortlog/refs/heads/raven.

With those in place you should be able to launch something like this:

./qemu-system-ppc -M prep -cpu 750 -bios openbios-ppc

As I mentioned above, the main problem with switching is that OpenBIOS 
doesn't seem to (yet) work with the PReP machine's default 604 processor.


ATB,

Mark.

  parent reply	other threads:[~2014-03-17 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-10 22:46 [Qemu-devel] [PATCH v3 09/10] raven: fix PCI bus accesses with size > 1 Artyom Tarasenko
2014-02-10 22:55 ` [Qemu-devel] [Qemu-ppc] " Mark Cave-Ayland
2014-02-11 23:32   ` Andreas Färber
2014-03-16 22:27 ` [Qemu-devel] " Artyom Tarasenko
2014-03-17 19:59   ` Andreas Färber
2014-03-17 21:55     ` Artyom Tarasenko
2014-03-17 22:25       ` Hervé Poussineau
2014-03-19 22:44         ` Andreas Färber
2014-03-17 22:28       ` Mark Cave-Ayland [this message]
2014-03-19 22:47       ` Andreas Färber
  -- strict thread matches above, loose matches on Subject: below --
2013-11-04 23:09 [Qemu-devel] [PATCH v3 00/10] prep: improve Raven PCI host emulation Hervé Poussineau
2013-11-04 23:09 ` [Qemu-devel] [PATCH v3 09/10] raven: fix PCI bus accesses with size > 1 Hervé Poussineau

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=53277718.8070800@ilande.co.uk \
    --to=mark.cave-ayland@ilande.co.uk \
    --cc=andreas.faerber@web.de \
    --cc=atar4qemu@gmail.com \
    --cc=hpoussin@reactos.org \
    --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.