Hi Ali,

I am using the latest gem5 revision (10369) which includes the changes. It
appears that the PCI devices are recognized:

...
[    4.160650] PTP clock support registered
[    4.160722] Switched to clocksource arch_sys_counter
[    4.161368] NET: Registered protocol family 2
[    4.161414] TCP established hash table entries: 32768 (order: 6, 262144
bytes)
[    4.161461] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    4.161520] TCP: Hash tables configured (established 32768 bind 32768)
[    4.161524] TCP: reno registered
[    4.161526] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    4.161536] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    4.161559] NET: Registered protocol family 1
[    4.161589] RPC: Registered named UNIX socket transport module.
[    4.161590] RPC: Registered udp transport module.
[    4.161590] RPC: Registered tcp transport module.
[    4.161591] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    4.161593] PCI: CLS 0 bytes, default 64
[    4.161698] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    4.161748] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    4.162983] fuse init (API version 7.23)
[    4.163035] msgmni has been set to 8053
[    4.164283] io scheduler noop registered
[    4.164316] io scheduler cfq registered (default)
[    4.164355] clcd-pl11x: probe of 1c1f0000.clcd failed with error -22
[    4.164622] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.164802] pata_of_platform 1c1a0000.compact-flash: pio-mode
unspecified, assuming PIO0
[    4.164866] scsi0 : pata_platform
[    4.164900] ata1: PATA max PIO0 no IRQ, using PIO polling mmio cmd
0x1c1a0000 ctl 0x1c1a0100
*[    4.164942] e1000: Intel(R) PRO/1000 Network Driver - version
7.3.21-k8-NAPI*
*[    4.164943] e1000: Copyright (c) 1999-2006 Intel Corporation.*
*[    4.164951] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k*
*[    4.164952] e1000e: Copyright(c) 1999 - 2014 Intel Corporation.*
*[    4.164959] igb: Intel(R) Gigabit Ethernet Network Driver - version
5.0.5-k*
*[    4.164960] igb: Copyright (c) 2007-2014 Intel Corporation.*
[    4.164974] smc91x: not found (-19).
[    4.165012] usbcore: registered new interface driver usb-storage
[    4.165063] mousedev: PS/2 mouse device common for all mice
[    4.165194] usbcore: registered new interface driver usbhid
[    4.165195] usbhid: USB HID core driver
[    4.165211] TCP: cubic registered
[    4.165212] NET: Registered protocol family 17
^@[    4.760755] input: AT Raw Set 2 keyboard as
/devices/smb/smb:motherboard/smb:motherboard:iofpga@3
,00000000/1c060000.kmi/serio0/input/input0
[    6.660771] input: PS/2 Generic Mouse as
/devices/smb/smb:motherboard/smb:motherboard:iofpga@3
,00000000/1c070000.kmi/serio1/input/input2
[    6.660806] VFS: Cannot open root device "sda1" or unknown-block(0,0):
error -6
...

The only modification I made to gem5 is hardcoding the DTB file name for
the drivesys in /src/arch/arm/linux/system.cc since it was not picking it
up from the command line...

warn: Kernel supports device tree, but no DTB file specified
fatal: Expected a single ATAG memory entry but got 3
 @ tick 58402784
[initState:build/ARM/arch/arm/linux/system.cc, line 202]

Aside from that, I have not changed any other code. Am I using the correct
command line?

Thanks,

Ivan

On Mon, Sep 15, 2014 at 1:55 PM, Ali Saidi <sa...@umich.edu> wrote:

>  Hi Ivan,
>
> Can you show us more of the output. Does it recognize the PCI devices?
> What version of gem5 are you running. The patches required were just
> committed last week.
>
>
>
> Ali
>
>
>
> On 15.09.2014 02:08, Ivan Stalev via gem5-users wrote:
>
> Hi Ali and Andreas,
>
> When I try to boot the client-server system for arm64 with the latest gem5
> revision (10369) I get a kernel panic:
>
>  [    6.660806] VFS: Cannot open root device "sda1" or
> unknown-block(0,0): error -6
> [    6.660807] Please append a correct "root=" boot option; here are the
> available partitions:
> [    6.660809] Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
> [    6.660810] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.16.0-rc6 #2
> [    6.660810] Call trace:
> [    6.660811] [<ffffffc000087fb4>] dump_backtrace+0x0/0x130
> [    6.660813] [<ffffffc0000880f4>] show_stack+0x10/0x1c
> [    6.660814] [<ffffffc0004efcfc>] dump_stack+0x74/0xb8
> [    6.660815] [<ffffffc0004ef054>] panic+0xe0/0x218
> [    6.660816] [<ffffffc000699e74>] mount_block_root+0x1d0/0x270
> [    6.660817] [<ffffffc00069a024>] mount_root+0x110/0x130
> [    6.660818] [<ffffffc00069a17c>] prepare_namespace+0x138/0x184
> [    6.660819] [<ffffffc000699ae8>] kernel_init_freeable+0x1b8/0x1dc
> [    6.660821] [<ffffffc0004ed428>] kernel_init+0x10/0xd4
> [    6.660822] ---[ end Kernel panic - not syncing: VFS: Unable to mount
> root fs on unknown-block(0,0)
>
> I built the kernel according to Ali's instructions. The command line I use
> is:
>
> ./build/ARM/gem5.fast -d m5out/dual-test configs/example/fs.py
> --machine-type=VExpress_EMM64
> --kernel=..path../linux-aarch64-gem5-4003908/vmlinux
> --dtb-filename=..path../rtsm_ve-aemv8a-5core.dtb --mem-size=4GB
> --cpu-type=atomic --cpu-clock=2GHz --dual
>
> What am I missing?
>
> Thanks,
>
> Ivan
>
> On Thu, Aug 28, 2014 at 2:29 PM, Ali Saidi via gem5-users <
> gem5-users@gem5.org> wrote:
>
>>  You should be able to get a new working kernel with PCIe support for
>> AArch64 like the following, however you’ll need all the patches that
>> Andreas just mentioned in an email to gem5-dev as committed next week.
>>
>> wget "
>> http://www.linux-arm.org/git?p=linux-aarch64-gem5.git;a=snapshot;h=400390889828685d432d38406cbd9c7afceeaa15;sf=tgz";
>> -O linux-aarch64-gem5.tgz
>> tar zxvf linux-aarch64-gem5.tgz
>> cd linux-aarch64-gem5-4003908
>> make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- gem5_defconfig
>> make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- -j4
>>
>> Thanks,
>> Ali
>>
>>
>>
>> From: Ali Saidi via gem5-users <gem5-users@gem5.org>
>> Reply-To: Ali Saidi <sa...@umich.edu>, gem5 users mailing list <
>> gem5-users@gem5.org>
>> Date: Saturday, August 23, 2014 at 2:21 PM
>> To: Ivan Stalev <ids...@psu.edu>, gem5 users mailing list <
>> gem5-users@gem5.org>
>>  Subject: Re: [gem5-users] ARMv8 Client-Server configuration
>>
>>
>>  You’re not going to have any support for PCIe device with that kernel.
>> We’re working on the last bit of debugging and polishing around a kernel
>> that will support it — I intended to have it out 2 weeks ago, but we’re
>> still diligently working and it should be out in the next couple of days.
>>
>> Ali
>>
>>
>>
>>
>>  On Aug 20, 2014, at 10:36 AM, Ivan Stalev <ids...@psu.edu> wrote:
>>
>>  Edit: I was using my own compiled kernel. I am now using the default
>> kernel, vmlinux-3.14-aarch64-vexpress-emm64, and it appears not to crash. I
>> will go ahead and test it out.
>>
>>
>> On Wed, Aug 20, 2014 at 11:19 AM, Ivan Stalev <ids...@psu.edu> wrote:
>>
>>> Hi Andreas,
>>>
>>> No problem, I figured it wasn't the 80 char README file patch :)
>>>
>>> I applied the 7 patches you posted this morning, but now when I run in
>>> dual mode, gem5 crashes with this:
>>>
>>>  panic: M5 panic instruction called at pc=0xffffffc00008a024.
>>>  @ tick 58408160
>>> [execute:build/ARM/arch/arm/generated/exec-ns.cc.inc, line 241403]
>>>
>>> The GDB backtrace from gem5.debug suggests that execution is somehow
>>> killed from a manually inserted breakpoint.
>>>
>>> This is also after I had to hardcode the DTB file name for the drivesys
>>> in /src/arch/arm/linux/system.cc since it was not picking it up from
>>> the command line...
>>>
>>>  warn: Kernel supports device tree, but no DTB file specified
>>> fatal: Expected a single ATAG memory entry but got 3
>>>  @ tick 58402784
>>> [initState:build/ARM/arch/arm/linux/system.cc, line 202]
>>>
>>> Can you share how you tested the client-server configuration?
>>>
>>> Thank you,
>>>
>>> Ivan
>>>
>>>
>>>
>>>
>>> On Wed, Aug 20, 2014 at 4:45 AM, Andreas Hansson <
>>> andreas.hans...@arm.com> wrote:
>>>
>>>>  Hi Ivan,
>>>>
>>>> Just following up on this one. I posted the patches yesterday morning,
>>>> but forgot to “Publish” then. Sorry about the misunderstanding. They are
>>>> all there now.
>>>>
>>>> Andreas
>>>>
>>>> From: Andreas Hansson via gem5-users <gem5-users@gem5.org>
>>>> Reply-To: Andreas Hansson <andreas.hans...@arm.com>, gem5 users
>>>> mailing list <gem5-users@gem5.org>
>>>> Date: Tuesday, 19 August 2014 18:48
>>>> To: Ivan Stalev <ids...@psu.edu>, gem5 users mailing list <
>>>> gem5-users@gem5.org>, Ali Saidi <sa...@umich.edu>
>>>>
>>>> Subject: Re: [gem5-users] ARMv8 Client-Server configuration
>>>>
>>>>  Hi Ivan,
>>>>
>>>> The patches are on the review board as of this morning (UK time).
>>>>
>>>> Comments are welcome as always.
>>>>
>>>> Andreas
>>>>
>>>> From: Ivan Stalev via gem5-users <gem5-users@gem5.org>
>>>> Reply-To: Ivan Stalev <ids...@psu.edu>, gem5 users mailing list <
>>>> gem5-users@gem5.org>
>>>> Date: Tuesday, 19 August 2014 18:44
>>>> To: Ali Saidi <sa...@umich.edu>
>>>> Cc: gem5 users mailing list <gem5-users@gem5.org>
>>>> Subject: Re: [gem5-users] ARMv8 Client-Server configuration
>>>>
>>>> Hi Ali,
>>>>
>>>> Have you had the chance to look at the issue or have some suggestions
>>>> as to which source files to look at?
>>>>
>>>> Thanks,
>>>>
>>>> Ivan
>>>>
>>>>
>>>> On Fri, Aug 8, 2014 at 8:34 PM, Ali Saidi <sa...@umich.edu> wrote:
>>>>
>>>>> Hi Ivan,
>>>>>
>>>>> The kernel that you’re using and the currently gem5 don’t support pci
>>>>> devices with arm64. I hope to remedy this within a week.
>>>>>
>>>>> Thanks,
>>>>> Ali
>>>>>
>>>>> On Aug 6, 2014, at 3:42 PM, Ivan Stalev via gem5-users <
>>>>> gem5-users@gem5.org> wrote:
>>>>>
>>>>> > Hi everyone,
>>>>> >
>>>>> > I am trying to run a client-server setup using arm64. I am using the
>>>>> (latest) linaro kernel (3.16) and disk image suggested on the GEM5
>>>>> downloads page. Simply building the kernel with defconfig (as recommended
>>>>> in the README) does not seem to setup the ethernet drivers. Running
>>>>> "ifconfig -a" only yields the loopback device/interface.
>>>>> >
>>>>> > I then opened up the .config (generated by defconfig) using
>>>>> menuconfig and enabled all the settings related to ethernet and re-built
>>>>> the kernel. After booting, "ifconfig -a" results in this:
>>>>> >
>>>>> > bond0     Link encap:Ethernet  HWaddr CA:FB:D0:02:D0:7E
>>>>> >           BROADCAST MASTER MULTICAST  MTU:1500  Metric:1
>>>>> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>> >           collisions:0 txqueuelen:0
>>>>> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>> >
>>>>> > dummy0    Link encap:Ethernet  HWaddr 02:58:3E:AF:F3:41
>>>>> >           BROADCAST NOARP  MTU:1500  Metric:1
>>>>> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>> >           collisions:0 txqueuelen:0
>>>>> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>> >
>>>>> > lo        Link encap:Local Loopback
>>>>> >           inet addr:127.0.0.1  Mask:255.0.0.0
>>>>> >           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>>>>> >           RX packets:8 errors:0 dropped:0 overruns:0 frame:0
>>>>> >           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>>>>> >           collisions:0 txqueuelen:0
>>>>> >           RX bytes:784 (784.0 B)  TX bytes:784 (784.0 B)
>>>>> >
>>>>> > I tried running the sample client-server rcS scripts and tried both
>>>>> dummy0 and bond0, but pings did not go through. From others' posts and
>>>>> sample rcS scripts, it seems that GEM5 expects eth0.
>>>>> >
>>>>> > Does anyone know if client-server is supported for arm64 in GEM5,
>>>>> and if so, how to get them to communicate? I am using the latest GEM5
>>>>> revision (10240).
>>>>> >
>>>>> > Thanks!
>>>>> >
>>>>>  > _______________________________________________
>>>>> > gem5-users mailing list
>>>>> > gem5-users@gem5.org
>>>>> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>>
>>>>>
>>>> -- 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.
>>>>
>>>> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>>>> Registered in England & Wales, Company No: 2557590
>>>> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1
>>>> 9NJ, Registered in England & Wales, Company No: 2548782
>>>>
>>>> -- 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.
>>>>
>>>> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>>>> Registered in England & Wales, Company No: 2557590
>>>> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1
>>>> 9NJ, Registered in England & Wales, Company No: 2548782
>>>>
>>>
>> -- 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.
>>
>> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>> Registered in England & Wales, Company No: 2557590
>> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>> Registered in England & Wales, Company No: 2548782
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> _______________________________________________
> gem5-users mailing 
> listgem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to