mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Denis Orlov <denorl2009@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] test: mips: add QEMU Malta 64le labgrid config
Date: Fri, 9 Jun 2023 09:21:56 +0200	[thread overview]
Message-ID: <f597258b-a7fb-af4e-323c-77c6ab5b5a61@pengutronix.de> (raw)
In-Reply-To: <CALHb5ujjPBenOtsmpfa-Y7LikNiAz4KK1bHOA7k3pQCjCM8n8A@mail.gmail.com>

On 09.06.23 09:14, Denis Orlov wrote:
> Hello Ahmad,
> 
> On Fri, 9 Jun 2023 at 09:36, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 07.06.23 06:59, Denis Orlov wrote:
>>> Signed-off-by: Denis Orlov <denorl2009@gmail.com>
>>> ---
>>>  test/mips/qemu-malta64el_defconfig.yaml | 22 ++++++++++++++++++++++
>>>  1 file changed, 22 insertions(+)
>>>  create mode 100644 test/mips/qemu-malta64el_defconfig.yaml
>>>
>>> diff --git a/test/mips/qemu-malta64el_defconfig.yaml b/test/mips/qemu-malta64el_defconfig.yaml
>>> new file mode 100644
>>> index 0000000000..22562d5b7a
>>> --- /dev/null
>>> +++ b/test/mips/qemu-malta64el_defconfig.yaml
>>> @@ -0,0 +1,22 @@
>>> +targets:
>>> +  main:
>>> +    drivers:
>>> +      QEMUDriver:
>>> +        qemu_bin: qemu
>>> +        machine: malta
>>> +        cpu: 5KEf
>>> +        memory: 256M
>>> +        bios: barebox-qemu-malta.img.swapped
>>> +        extra_args: ''
>>> +      BareboxDriver:
>>> +        prompt: 'barebox@[^:]+:[^ ]+ '
>>> +        bootstring: 'commandline:'
>>> +      BareboxTestStrategy: {}
>>> +    features:
>>> +      - virtio-pci
>>
>> Did you test virtio PCI? I don't see it enabled in the defconfig.
> 
> Nope, I didn't. I must have copied this from the 32-bit malta config
> file. However, I see that its defconfig also lacks VIRTIO_PCI, so should
> those be removed from both labgrid configs?
> 
> Besides, judging from the virtio PCI Kconfig option depends, there seem
> to be some issues with virtio PCI on MIPS without CONFIG_MMU set. Is the
> lack of VIRTIO_PCI option in 32-bit malta defconfig related to that?

Ah, right. test/emulate.pl reads virtio-pci feature to decide what Virt I/O
transport to use. Maybe the MMU incompatibility is fixed now with your
recent DMA rework or maybe we still have 1:1 mapping assumptions in the
virtio code itself. If you could give it a quick test with CONFIG_MMU=n
and see if it works, that would be great. Something like this should do it:

/usr/bin/qemu-system-mips64el -M malta -cpu 5KEf -m 256M \
   -bios barebox-qemu-malta.img.swapped -serial mon:stdio -trace file=/dev/null \
   -drive if=none,file=/src/barebox-rockchip/somealigned.img,format=raw,id=hd0 \
   -device virtio-blk-pci,disable-legacy=on,disable-modern=off,drive=hd0

(Above was generated by ./test/emulate.pl $config -n --blk=somealigned.img)

You should see a /dev/virtioblk* device if everything is enabled and working.

Cheers,
Ahmad

> 
> Regards,
> Denis
> 
>>
>>> +images:
>>> +  barebox-qemu-malta.img.swapped: !template "$LG_BUILDDIR/images/barebox-qemu-malta.img.swapped"
>>> +tools:
>>> +  qemu: /usr/bin/qemu-system-mips64el
>>> +imports:
>>> +  -  ../strategy.py
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
>> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




  reply	other threads:[~2023-06-09  7:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07  4:59 [PATCH 0/3] Add CI for MIPS64 Denis Orlov
2023-06-07  4:59 ` [PATCH 1/3] MIPS: add qemu-malta64el_defconfig Denis Orlov
2023-06-09  5:09   ` Antony Pavlov
2023-06-09  6:35   ` Ahmad Fatoum
2023-06-07  4:59 ` [PATCH 2/3] test: mips: add QEMU Malta 64le labgrid config Denis Orlov
2023-06-09  6:36   ` Ahmad Fatoum
2023-06-09  7:14     ` Denis Orlov
2023-06-09  7:21       ` Ahmad Fatoum [this message]
2023-06-09  9:17         ` Denis Orlov
2023-06-09  9:28           ` Ahmad Fatoum
2023-06-09  9:38             ` Denis Orlov
2023-06-09  9:41               ` Ahmad Fatoum
2023-06-07  4:59 ` [PATCH 3/3] ci: add a job for testing 64BIT MIPS with labgrid Denis Orlov
2023-06-09  6:38   ` Ahmad Fatoum
2023-06-09  7:58     ` Denis Orlov
2023-06-12  6:39 ` [PATCH 0/3] Add CI for MIPS64 Sascha Hauer

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=f597258b-a7fb-af4e-323c-77c6ab5b5a61@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=denorl2009@gmail.com \
    /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