[gem5-users] Generic DMA Engine

2020-11-24 Thread Patrick Sheridan (psheridan) via gem5-users
Does anyone know if there exists a generic DMA engine that allows automated 
transfer of data from one memory range to another?

In dma_device.hh, there's DmaDevice, which looks like it provides a foundation, 
and there's DmaReadFifo which provides a good example, but stores the data 
internally in a fifo, rather than writing it out.

Before I go writing a class for what I assume would be a commonly used device, 
I just want to check that it doesn't already exist.

Thanks,
Patrick
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: How to use CommMonitor in gem5

2020-11-24 Thread Ayaz Akram via gem5-users
Hi,

1. I remember using CommMonitor with DerivO3CPU for a small example and the
output looked fine to me. Maybe someone else can point out if there is
something fundamentally broken.

2. You should be able to use gem5/util/decode_packet_trace.py to convert
the generated trace (after decompressing it) to human readable format. I
think the trace will generally have a time stamp, information about the
request, and physical address (as far as I remember).

3. I think you should be able to connect it between l1dcache and cpu the
same way you do between l2 cache and membus. For example, cpu's requestor
port should be connected with the comm monitor's responder port and
monitor's requestor port should be connected with dcache's responder port.

-Ayaz

On Sun, Nov 22, 2020 at 7:50 PM yujiecui--- via gem5-users <
gem5-users@gem5.org> wrote:

> I want to record the access details of the cache. I saw some answers,
> saying that CommMonitor can help. But no more details were found.
>
> I have some questions about CommMonitor?
>
> 1. First of all, can Commmonitor be used for DerivO3CPU or only
> TimingSimpleCPU? I tried it on DerivO3CPU and there was output. But
> somewhere I seem to hear that it cannot be used for DerivO3CPU.
>
> 2. My understanding of CommMonitor is that it is like a filter. The data
> flowing through it is recorded. For example, add commMonitor between l2 and
> membus,
>
>  system.monitor2 = CommMonitor()
>  system.monitor2.trace = MemTraceProbe(trace_file = "CT_mon2.trc.gz")
>  system.monitor2.slave = system.l2.mem_side
>  system.membus.slave = system.monitor2.master
>  system.l2.cpu_side = system.tol2bus.master
> The output format is :
>
>  11500: system.monitor2: Forwarded read request
>   77000: system.monitor2: Latency: 65500
>   77000: system.monitor2: Received read response
>  103000: system.monitor2: Forwarded read request
>  104000: system.monitor2: Forwarded read request
>  165000: system.monitor2: Latency: 62000
>  165000: system.monitor2: Received read response
>  17: system.monitor2: Latency: 66000
>  17: system.monitor2: Received read response
>  194500: system.monitor2: Forwarded read request
>  200500: system.monitor2: Forwarded read request
>  243000: system.monitor2: Latency: 48500
>  243000: system.monitor2: Received read response
>  249000: system.monitor2: Latency: 48500
>  249000: system.monitor2: Received read response
>  267500: system.monitor2: Forwarded read request
>  269500: system.monitor2: Forwarded read request
>  274000: system.monitor2: Forwarded read request
>
> The generated CT_mon2.trc.gz file is a binary file after decompression,
> what should I do to see the data inside? It would be better if I can output
> the address and data
>
> 3. How to use it between l1dcache and cpu?
>
> Thanks for all related answers. I also put the question on Stackoverflow.
> Below is the website.
> https://stackoverflow.com/questions/64962277/how-to-use-commmonitor-in-gem5
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Running gem5 with DRAMsim3

2020-11-24 Thread Mahyar Samani via gem5-users
Hey Yogeshwaran,

Since the gem5-20.1 release, it now supports DRAMSim3 integration so there
is no need for you to follow the instructions there. There is a readme file
in ext/dramsim3 that you can follow and build gem5 with DRAMSim3, also,
class DRAMSim3 inherits from AbstractMemory which will allow you to swap
any memory with DRAMSim3 models. To change the model you want to use in
DRAMSim3 you can just change the path to the .ini file you are  using by
changing param configFile.

Best Regards

On Tue, Nov 24, 2020 at 5:30 AM Yogeshwaran L via gem5-users <
gem5-users@gem5.org> wrote:

> Dear gem5 community,
>
> I am trying to integrate DRAMsim3 with gem5, and I was able to
> successfully build gem5 with DRAmsim3, following the instructions from
> https://github.com/umd-memsys/gem5/tree/dramsim3/ext/dramsim3.
>
> However, in the last step it is mentioned "Use --mem-type=dramsim3 and set
> the device and system configuration". But when I looked at the
> configuration script (simple.py) in part1 of learning_gem5 directory, there
> are many fields to be configured for memory.
>
> Can anyone point me to resources or offer any advice on how to use a
> different memory system(like DRAMsim3) with gem5 and configure the
> parameters in configuration script. Is it as straightforward as configuring
> the config script or should I do additional modifications?
>
> Thank you,
> Yogeshwaran
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s



-- 
Mahyar Samani (he/him/his)
Electrical and Computer Engineering Department
Research Assistant at *DArchR  (*2235 Kemper
Hall)
Secretary
ECE-GSA
Vice President
Iranian Student Association at UC Davis
University of California, Davis
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] how to add more than 1 ide disk in gem5 fullsystem

2020-11-24 Thread Liyichao via gem5-users

hi all:
 how to add more than 1 ide disks in gem5 fullsystem?

I want to see that sda sdb sdc ... in OS so that I can test some 
distribution application like ceph.





李翼超 charlie
Mobile:+86-15858232899
Email:liyic...@huawei.com


___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Running gem5 with DRAMsim3

2020-11-24 Thread Yogeshwaran L via gem5-users
Dear gem5 community,

I am trying to integrate DRAMsim3 with gem5, and I was able to successfully
build gem5 with DRAmsim3, following the instructions from
https://github.com/umd-memsys/gem5/tree/dramsim3/ext/dramsim3.

However, in the last step it is mentioned "Use --mem-type=dramsim3 and set
the device and system configuration". But when I looked at the
configuration script (simple.py) in part1 of learning_gem5 directory, there
are many fields to be configured for memory.

Can anyone point me to resources or offer any advice on how to use a
different memory system(like DRAMsim3) with gem5 and configure the
parameters in configuration script. Is it as straightforward as configuring
the config script or should I do additional modifications?

Thank you,
Yogeshwaran
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s