gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Accessing host devices from gem5 simulator in FS mode.

AP
Ashan Peiris
Sun, Oct 8, 2023 5:55 PM

Hi,

Is there a way to access host devices (Eg : PCIE), from gem5 simulator in
FS mode?

In SE mode, we have access since it doesn't have its own OS and uses host
OS to run the simulation.

I need to get access to host devices similarly in FS mode as well.
Appreciate your help.

--
Thanks,
Ashan

Hi, Is there a way to access host devices (Eg : PCIE), from gem5 simulator in FS mode? In SE mode, we have access since it doesn't have its own OS and uses host OS to run the simulation. I need to get access to host devices similarly in FS mode as well. Appreciate your help. -- Thanks, Ashan
AP
Ashan Peiris
Mon, Oct 9, 2023 5:38 PM

Hi All,

Can anyone please give me a pointer to this?

On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris ashanprs@gmail.com wrote:

Hi,

Is there a way to access host devices (Eg : PCIE), from gem5 simulator in
FS mode?

In SE mode, we have access since it doesn't have its own OS and uses host
OS to run the simulation.

I need to get access to host devices similarly in FS mode as well.
Appreciate your help.

--
Thanks,
Ashan

--
Thanks,
Ashan

Hi All, Can anyone please give me a pointer to this? On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris <ashanprs@gmail.com> wrote: > Hi, > > Is there a way to access host devices (Eg : PCIE), from gem5 simulator in > FS mode? > > In SE mode, we have access since it doesn't have its own OS and uses host > OS to run the simulation. > > I need to get access to host devices similarly in FS mode as well. > Appreciate your help. > > -- > Thanks, > Ashan > -- Thanks, Ashan
GT
Giacomo Travaglini
Mon, Oct 9, 2023 7:20 PM

Hi Ashan,

In a FS simulation you would usually access a device with a driver. In general, it depends on the programming interface of your device.

Kind Regards

Giacomo

From: Ashan Peiris via gem5-users gem5-users@gem5.org
Date: Monday, 9 October 2023 at 18:41
To: gem5-users@gem5.org gem5-users@gem5.org
Cc: Ashan Peiris ashanprs@gmail.com
Subject: [gem5-users] Re: Accessing host devices from gem5 simulator in FS mode.
Hi All,

Can anyone please give me a pointer to this?

On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris <ashanprs@gmail.commailto:ashanprs@gmail.com> wrote:
Hi,

Is there a way to access host devices (Eg : PCIE), from gem5 simulator in FS mode?

In SE mode, we have access since it doesn't have its own OS and uses host OS to run the simulation.

I need to get access to host devices similarly in FS mode as well. Appreciate your help.

--
Thanks,
Ashan

--
Thanks,
Ashan
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Hi Ashan, In a FS simulation you would usually access a device with a driver. In general, it depends on the programming interface of your device. Kind Regards Giacomo From: Ashan Peiris via gem5-users <gem5-users@gem5.org> Date: Monday, 9 October 2023 at 18:41 To: gem5-users@gem5.org <gem5-users@gem5.org> Cc: Ashan Peiris <ashanprs@gmail.com> Subject: [gem5-users] Re: Accessing host devices from gem5 simulator in FS mode. Hi All, Can anyone please give me a pointer to this? On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris <ashanprs@gmail.com<mailto:ashanprs@gmail.com>> wrote: Hi, Is there a way to access host devices (Eg : PCIE), from gem5 simulator in FS mode? In SE mode, we have access since it doesn't have its own OS and uses host OS to run the simulation. I need to get access to host devices similarly in FS mode as well. Appreciate your help. -- Thanks, Ashan -- Thanks, Ashan IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
AP
Ashan Peiris
Mon, Oct 9, 2023 8:10 PM

Hi Giacomo*,*

Thanks for your reply.

In my host computer, if I do lspci it shows 20 connected controllers and
devices.

But in gem5 in FS mode it shows a single IDE as below.

root@gem5-host:~# lspci
00:04.0 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE
root@gem5-host:~#

Is this because not having drivers in Gem5 FS simulation? Can you please
comment?

My main target is to connect one of the pci devices from the host computer
in Gem5 FS mode. (from above mentioned 20).

On Mon, Oct 9, 2023 at 12:21 PM Giacomo Travaglini <
Giacomo.Travaglini@arm.com> wrote:

Hi Ashan,

In a FS simulation you would usually access a device with a driver. In
general, it depends on the programming interface of your device.

Kind Regards

Giacomo

*From: *Ashan Peiris via gem5-users gem5-users@gem5.org
*Date: *Monday, 9 October 2023 at 18:41
*To: *gem5-users@gem5.org gem5-users@gem5.org
*Cc: *Ashan Peiris ashanprs@gmail.com
*Subject: *[gem5-users] Re: Accessing host devices from gem5 simulator in
FS mode.

Hi All,

Can anyone please give me a pointer to this?

On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris ashanprs@gmail.com wrote:

Hi,

Is there a way to access host devices (Eg : PCIE), from gem5 simulator in
FS mode?

In SE mode, we have access since it doesn't have its own OS and uses host
OS to run the simulation.

I need to get access to host devices similarly in FS mode as well.
Appreciate your help.

--

Thanks,

Ashan

--

Thanks,

Ashan
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose the
contents to any other person, use it for any purpose, or store or copy the
information in any medium. Thank you.

--
Thanks,
Ashan

Hi Giacomo*,* Thanks for your reply. In my host computer, if I do lspci it shows 20 connected controllers and devices. But in gem5 in FS mode it shows a single IDE as below. root@gem5-host:~# lspci 00:04.0 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE root@gem5-host:~# Is this because not having drivers in Gem5 FS simulation? Can you please comment? My main target is to connect one of the pci devices from the host computer in Gem5 FS mode. (from above mentioned 20). On Mon, Oct 9, 2023 at 12:21 PM Giacomo Travaglini < Giacomo.Travaglini@arm.com> wrote: > Hi Ashan, > > > > In a FS simulation you would usually access a device with a driver. In > general, it depends on the programming interface of your device. > > > > Kind Regards > > > > Giacomo > > > > > > *From: *Ashan Peiris via gem5-users <gem5-users@gem5.org> > *Date: *Monday, 9 October 2023 at 18:41 > *To: *gem5-users@gem5.org <gem5-users@gem5.org> > *Cc: *Ashan Peiris <ashanprs@gmail.com> > *Subject: *[gem5-users] Re: Accessing host devices from gem5 simulator in > FS mode. > > Hi All, > > > > Can anyone please give me a pointer to this? > > > > On Sun, Oct 8, 2023 at 10:55 AM Ashan Peiris <ashanprs@gmail.com> wrote: > > Hi, > > > > Is there a way to access host devices (Eg : PCIE), from gem5 simulator in > FS mode? > > > > In SE mode, we have access since it doesn't have its own OS and uses host > OS to run the simulation. > > > > I need to get access to host devices similarly in FS mode as well. > Appreciate your help. > > > > -- > > Thanks, > > Ashan > > > > -- > > Thanks, > > Ashan > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. > -- Thanks, Ashan