All of lore.kernel.org
 help / color / mirror / Atom feed
* fu740 target
@ 2022-07-27 14:20 Ben Dooks
  2022-07-27 14:38 ` Bin Meng
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Dooks @ 2022-07-27 14:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-riscv

Is anyone working on adding a sifive-u74 core to the list of supported
CPU types? I was looking at full emulation of the Unmatched but at the
moment the best we have is sifive-u54 and I think that misses at least
two CSRs the sifive-u74 has.

Does anyone have plans to add the sifive-u74, and if not, would a plan
to add gradual support for it like adding CSRs 0x7c1 and 0x7c2 so we
can run an Unmatched U-boot SPL against it.

If not, is there a definitive U54->U74 set of public differnces around
we could use to start from? I'd like to be able to run a full Unmatched
image using qemu at some point to add to the current real-board testing
we're doing.

(I have a basic addition of the type and the two CSRs as a couple of
patches if that would help as a start)

-- 
Ben Dooks, ben@fluff.org, http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fu740 target
  2022-07-27 14:20 fu740 target Ben Dooks
@ 2022-07-27 14:38 ` Bin Meng
  2022-07-27 14:44   ` Ben Dooks
  0 siblings, 1 reply; 5+ messages in thread
From: Bin Meng @ 2022-07-27 14:38 UTC (permalink / raw)
  To: Ben Dooks, Frank Chang; +Cc: qemu-devel@nongnu.org Developers, open list:RISC-V

On Wed, Jul 27, 2022 at 10:24 PM Ben Dooks <qemu@ben.fluff.org> wrote:
>
> Is anyone working on adding a sifive-u74 core to the list of supported
> CPU types? I was looking at full emulation of the Unmatched but at the
> moment the best we have is sifive-u54 and I think that misses at least
> two CSRs the sifive-u74 has.
>
> Does anyone have plans to add the sifive-u74, and if not, would a plan
> to add gradual support for it like adding CSRs 0x7c1 and 0x7c2 so we
> can run an Unmatched U-boot SPL against it.

Adding 0x7c1/7c2 would be a vendor-specific CSR approach?

>
> If not, is there a definitive U54->U74 set of public differnces around
> we could use to start from? I'd like to be able to run a full Unmatched
> image using qemu at some point to add to the current real-board testing
> we're doing.
>
> (I have a basic addition of the type and the two CSRs as a couple of
> patches if that would help as a start)
>

I am not aware of anyone doing U74 modeling in QEMU, but SiFive folks
(+Frank) may have one downstream as I see they posted several bug
fixes in the existing U54 model.

Regards,
Bin


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fu740 target
  2022-07-27 14:38 ` Bin Meng
@ 2022-07-27 14:44   ` Ben Dooks
  2022-07-27 14:50     ` Bin Meng
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Dooks @ 2022-07-27 14:44 UTC (permalink / raw)
  To: Bin Meng, Ben Dooks, Frank Chang
  Cc: qemu-devel@nongnu.org Developers, open list:RISC-V

On 27/07/2022 15:38, Bin Meng wrote:
> On Wed, Jul 27, 2022 at 10:24 PM Ben Dooks <qemu@ben.fluff.org> wrote:
>>
>> Is anyone working on adding a sifive-u74 core to the list of supported
>> CPU types? I was looking at full emulation of the Unmatched but at the
>> moment the best we have is sifive-u54 and I think that misses at least
>> two CSRs the sifive-u74 has.
>>
>> Does anyone have plans to add the sifive-u74, and if not, would a plan
>> to add gradual support for it like adding CSRs 0x7c1 and 0x7c2 so we
>> can run an Unmatched U-boot SPL against it.
> 
> Adding 0x7c1/7c2 would be a vendor-specific CSR approach?

Part of the FU740 feature disable controls

>>
>> If not, is there a definitive U54->U74 set of public differnces around
>> we could use to start from? I'd like to be able to run a full Unmatched
>> image using qemu at some point to add to the current real-board testing
>> we're doing.
>>
>> (I have a basic addition of the type and the two CSRs as a couple of
>> patches if that would help as a start)
>>
> 
> I am not aware of anyone doing U74 modeling in QEMU, but SiFive folks
> (+Frank) may have one downstream as I see they posted several bug
> fixes in the existing U54 model.
> 
> Regards,
> Bin

Thanks

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fu740 target
  2022-07-27 14:44   ` Ben Dooks
@ 2022-07-27 14:50     ` Bin Meng
  2022-07-28  6:14       ` Alistair Francis
  0 siblings, 1 reply; 5+ messages in thread
From: Bin Meng @ 2022-07-27 14:50 UTC (permalink / raw)
  To: Ben Dooks
  Cc: Ben Dooks, Frank Chang, qemu-devel@nongnu.org Developers,
	open list:RISC-V

On Wed, Jul 27, 2022 at 10:44 PM Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>
> On 27/07/2022 15:38, Bin Meng wrote:
> > On Wed, Jul 27, 2022 at 10:24 PM Ben Dooks <qemu@ben.fluff.org> wrote:
> >>
> >> Is anyone working on adding a sifive-u74 core to the list of supported
> >> CPU types? I was looking at full emulation of the Unmatched but at the
> >> moment the best we have is sifive-u54 and I think that misses at least
> >> two CSRs the sifive-u74 has.
> >>
> >> Does anyone have plans to add the sifive-u74, and if not, would a plan
> >> to add gradual support for it like adding CSRs 0x7c1 and 0x7c2 so we
> >> can run an Unmatched U-boot SPL against it.
> >
> > Adding 0x7c1/7c2 would be a vendor-specific CSR approach?
>
> Part of the FU740 feature disable controls

Yep I know that. I was asking if you use a vendor-specific CSR
approach in QEMU to handle such cleanly.

>
> >>
> >> If not, is there a definitive U54->U74 set of public differnces around
> >> we could use to start from? I'd like to be able to run a full Unmatched
> >> image using qemu at some point to add to the current real-board testing
> >> we're doing.
> >>
> >> (I have a basic addition of the type and the two CSRs as a couple of
> >> patches if that would help as a start)
> >>
> >
> > I am not aware of anyone doing U74 modeling in QEMU, but SiFive folks
> > (+Frank) may have one downstream as I see they posted several bug
> > fixes in the existing U54 model.
> >

Regards,
Bin


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fu740 target
  2022-07-27 14:50     ` Bin Meng
@ 2022-07-28  6:14       ` Alistair Francis
  0 siblings, 0 replies; 5+ messages in thread
From: Alistair Francis @ 2022-07-28  6:14 UTC (permalink / raw)
  To: Bin Meng
  Cc: Ben Dooks, Ben Dooks, Frank Chang,
	qemu-devel@nongnu.org Developers, open list:RISC-V

On Thu, Jul 28, 2022 at 1:03 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Jul 27, 2022 at 10:44 PM Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> >
> > On 27/07/2022 15:38, Bin Meng wrote:
> > > On Wed, Jul 27, 2022 at 10:24 PM Ben Dooks <qemu@ben.fluff.org> wrote:
> > >>
> > >> Is anyone working on adding a sifive-u74 core to the list of supported
> > >> CPU types? I was looking at full emulation of the Unmatched but at the
> > >> moment the best we have is sifive-u54 and I think that misses at least
> > >> two CSRs the sifive-u74 has.

I don't know of anyone working on supporting it.

There previously was some work towards supporting vendor CSRs in QEMU.
We are open to the idea, it just has to be done correctly.

> > >>
> > >> Does anyone have plans to add the sifive-u74, and if not, would a plan
> > >> to add gradual support for it like adding CSRs 0x7c1 and 0x7c2 so we
> > >> can run an Unmatched U-boot SPL against it.

We are happy to have support added if you would like to send patches :)

> > >
> > > Adding 0x7c1/7c2 would be a vendor-specific CSR approach?
> >
> > Part of the FU740 feature disable controls
>
> Yep I know that. I was asking if you use a vendor-specific CSR
> approach in QEMU to handle such cleanly.
>
> >
> > >>
> > >> If not, is there a definitive U54->U74 set of public differnces around
> > >> we could use to start from? I'd like to be able to run a full Unmatched
> > >> image using qemu at some point to add to the current real-board testing
> > >> we're doing.

We (QEMU) would love that as well. Hopefully SiFive or someone from
the community can work towards that.

Alistair

> > >>
> > >> (I have a basic addition of the type and the two CSRs as a couple of
> > >> patches if that would help as a start)
> > >>
> > >
> > > I am not aware of anyone doing U74 modeling in QEMU, but SiFive folks
> > > (+Frank) may have one downstream as I see they posted several bug
> > > fixes in the existing U54 model.
> > >
>
> Regards,
> Bin
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-28  6:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 14:20 fu740 target Ben Dooks
2022-07-27 14:38 ` Bin Meng
2022-07-27 14:44   ` Ben Dooks
2022-07-27 14:50     ` Bin Meng
2022-07-28  6:14       ` Alistair Francis

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.