gem5-users@gem5.org

The gem5 Users mailing list

View all threads

ARM - syscall read still needs retry issue - how to fix it?

T
tomjosekallooran@gmail.com
Thu, Jun 30, 2022 9:54 AM

Hi,

When i am running dhrystone benchmark on arm model, it never gets completed. so i put the debug flags and i could see:

2821960548: system.cpu_cluster.cpus: T0 : syscall read still needs retry.

2821960548: read.wrapped_function_event: EventFunctionWrapped 83716 scheduled @ 2821993848

2821993848: read.wrapped_function_event: EventFunctionWrapped 83716 executed @ 2821993848

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2821993848: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2821993848: system.cpu_cluster.cpus: T0 : syscall read still needs retry.

2821993848: read.wrapped_function_event: EventFunctionWrapped 83717 scheduled @ 2822027148

2822027148: read.wrapped_function_event: EventFunctionWrapped 83717 executed @ 2822027148

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2822027148: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...

Can anyone please help me fix it?

Regards,

Tom

Hi, When i am running dhrystone benchmark on arm model, it never gets completed. so i put the debug flags and i could see: **`2821960548: system.cpu_cluster.cpus: T0 : syscall read still needs retry.`** **`2821960548: read.wrapped_function_event: EventFunctionWrapped 83716 scheduled @ 2821993848`** **`2821993848: read.wrapped_function_event: EventFunctionWrapped 83716 executed @ 2821993848`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.`** **`2821993848: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.`** **`2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.`** **`2821993848: system.cpu_cluster.cpus: T0 : syscall read still needs retry.`** **`2821993848: read.wrapped_function_event: EventFunctionWrapped 83717 scheduled @ 2822027148`** **`2822027148: read.wrapped_function_event: EventFunctionWrapped 83717 executed @ 2822027148`** **`2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.`** **`2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.`** **`2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.`** **`2822027148: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...`** Can anyone please help me fix it? Regards, Tom
GT
Giacomo Travaglini
Thu, Jun 30, 2022 10:16 AM

It seems like you are stuck with the read syscall.
I would debug/print from which file descriptor you are trying to read from and why the poll 1
Is returning zero.

Kind Regards

Giacomo

From: tomjosekallooran@gmail.com tomjosekallooran@gmail.com
Date: Thursday, 30 June 2022 at 10:56
To: gem5-users@gem5.org gem5-users@gem5.org
Subject: [gem5-users] ARM - syscall read still needs retry issue - how to fix it?

Hi,

When i am running dhrystone benchmark on arm model, it never gets completed. so i put the debug flags and i could see:

2821960548: system.cpu_cluster.cpus: T0 : syscall read still needs retry.

2821960548: read.wrapped_function_event: EventFunctionWrapped 83716 scheduled @ 2821993848

2821993848: read.wrapped_function_event: EventFunctionWrapped 83716 executed @ 2821993848

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2821993848: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2821993848: system.cpu_cluster.cpus: T0 : syscall read still needs retry.

2821993848: read.wrapped_function_event: EventFunctionWrapped 83717 scheduled @ 2822027148

2822027148: read.wrapped_function_event: EventFunctionWrapped 83717 executed @ 2822027148

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0.

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70.

2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000.

2822027148: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)...

Can anyone please help me fix it?

Regards,

Tom

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.

It seems like you are stuck with the read syscall. I would debug/print from which file descriptor you are trying to read from and why the poll [1] Is returning zero. Kind Regards Giacomo [1]: https://github.com/gem5/gem5/blob/stable/src/sim/syscall_emul.hh#L2637 From: tomjosekallooran@gmail.com <tomjosekallooran@gmail.com> Date: Thursday, 30 June 2022 at 10:56 To: gem5-users@gem5.org <gem5-users@gem5.org> Subject: [gem5-users] ARM - syscall read still needs retry issue - how to fix it? Hi, When i am running dhrystone benchmark on arm model, it never gets completed. so i put the debug flags and i could see: 2821960548: system.cpu_cluster.cpus: T0 : syscall read still needs retry. 2821960548: read.wrapped_function_event: EventFunctionWrapped 83716 scheduled @ 2821993848 2821993848: read.wrapped_function_event: EventFunctionWrapped 83716 executed @ 2821993848 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0. 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70. 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000. 2821993848: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)... 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0. 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70. 2821993848: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000. 2821993848: system.cpu_cluster.cpus: T0 : syscall read still needs retry. 2821993848: read.wrapped_function_event: EventFunctionWrapped 83717 scheduled @ 2822027148 2822027148: read.wrapped_function_event: EventFunctionWrapped 83717 executed @ 2822027148 2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 0 (0) as 0. 2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 1 (1) as 0x4a9f70. 2822027148: system.cpu_cluster.cpus.[tid:0]: Reading int reg 2 (2) as 0x2000. 2822027148: system.cpu_cluster.cpus: T0 : syscall Retrying read(0, 4890480, 8192)... Can anyone please help me fix it? Regards, Tom 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.