Re: How to use designware-root-port and designware-root-host devices ?

2024-06-25 Thread Arthur Tumanyan
Hi, I ported DWC PCIE part from fsl-imx7.c to my new cusotm virt machine based on RISC-V "virt". It looks ok so far. Now i'm wondering whether there is a "standard/ready to use for most of cases" device tree description for the synopsis pcie host device ? Looking this way: https://mjmwired.net/k

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-21 Thread Thomas Huth
On 21/06/2024 11.16, Peter Maydell wrote: On Fri, 21 Jun 2024 at 08:07, Arthur Tumanyan wrote: Hi, I just tried to run mcimx7d-sabre machine this way: ${HOME}/cosim/usr/local/bin/qemu-system-arm -M mcimx7d-sabre -m 2G \ -kernel ${HOME}/cosim-arm/buildroot/output/images/uImage \ --in

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-21 Thread Peter Maydell
On Fri, 21 Jun 2024 at 08:07, Arthur Tumanyan wrote: > > Hi, > > I just tried to run mcimx7d-sabre machine this way: > > ${HOME}/cosim/usr/local/bin/qemu-system-arm -M mcimx7d-sabre -m 2G \ > -kernel ${HOME}/cosim-arm/buildroot/output/images/uImage \ > --initrd ${HOME}/cosim-arm/buildroot/

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-21 Thread Arthur Tumanyan
Hi, I just tried to run mcimx7d-sabre machine this way: ${HOME}/cosim/usr/local/bin/qemu-system-arm -M mcimx7d-sabre -m 2G \ -kernel ${HOME}/cosim-arm/buildroot/output/images/uImage \ --initrd ${HOME}/cosim-arm/buildroot/output/images/rootfs.cpio.gz \ -nographic \ -net nic -net user and

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-20 Thread Arthur Tumanyan
Thanks for the answers, I could move forward a bit more. I'm going/I need to to create a "virt" machine with designware PCI controller for simulation purposes. Will get back with progress in case anyone is interested in results. Thank you again for your time and support. Arthur On Thu, Jun 20, 202

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-20 Thread Peter Maydell
On Thu, 20 Jun 2024 at 18:34, Thomas Huth wrote: > > On 20/06/2024 10.28, Arthur Tumanyan wrote: > > From the other hand the device is declared as non pluggable: > > dc->user_creatable = false; > > Well, that means that you cannot use those with "-device". They can only be > instantiated via the

Re: How to use designware-root-port and designware-root-host devices ?

2024-06-20 Thread Thomas Huth
On 20/06/2024 10.28, Arthur Tumanyan wrote: Hi all, My question may sound stupid, however... Hi Arthur, no worries, the question how to use which device in QEMU can be quite tricky ;-) Currently I'm trying to make available designware-root-{port,host} devices  in linux when I run it in qem

How to use designware-root-port and designware-root-host devices ?

2024-06-20 Thread Arthur Tumanyan
Hi all, My question may sound stupid, however... Currently I'm trying to make available designware-root-{port,host} devices in linux when I run it in qemu. I try the following way to run: qemu-system-arm -M virt -m 2G \ -kernel images/Image \ -append "rootwait root=/dev/vda ro" \