7i76e start up error

More
5 years 3 months ago #214935 by kelargo
Replied by kelargo on topic 7i76e start up error
I think this solved my problem:

added "iommu=soft" to /etc/default/grub and then ran grub-update. reboot.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=5,7 iommu=soft"

it doesnt seem to be appearing anymore.

I had previously noticed an iommu error during boot in dmesg. and perhaps that solved this networking issue?

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #214942 by kelargo
Replied by kelargo on topic 7i76e start up error
also, I disabled IPv6. as well as adding the "iommu=soft" grub boot parameter.

This is with no error. the "actual servo period" parameter is still 1000000.
Should change it, based upon this info?

$ halcmd show param *.tmax
Parameters:
Owner Type Dir Value Name
26 s32 RW 0 hm2_7i76e.0.read-request.tmax
26 s32 RW 3017165 hm2_7i76e.0.read.tmax
26 s32 RW 131794 hm2_7i76e.0.write.tmax
19 s32 RW 7955 motion-command-handler.tmax
19 s32 RW 76035 motion-controller.tmax
29 s32 RW 14800 pid.s.do-pid-calcs.tmax
29 s32 RW 20572 pid.x.do-pid-calcs.tmax
29 s32 RW 9509 pid.x2.do-pid-calcs.tmax
29 s32 RW 17131 pid.y.do-pid-calcs.tmax
29 s32 RW 12358 pid.z.do-pid-calcs.tmax
20 s32 RW 3089537 servo-thread.tmax

old syslog messages had this, before adding iommu=soft parameter:


lots of these - with every boot. now, the only message in syslog with iommu is the kernel boot command line.

Jul 15 17:07:31 linuxcnc kernel: [ 1.201918] iommu: Adding device 0000:00:01.0 to group 0
Jul 15 17:07:31 linuxcnc kernel: [ 1.202132] iommu: Adding device 0000:00:01.1 to group 1
Jul 15 17:07:31 linuxcnc kernel: [ 1.202324] iommu: Adding device 0000:00:01.2 to group 2
Jul 15 17:07:31 linuxcnc kernel: [ 1.202531] iommu: Adding device 0000:00:08.0 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.202558] iommu: Adding device 0000:00:08.1 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.202743] iommu: Adding device 0000:00:14.0 to group 4
Jul 15 17:07:31 linuxcnc kernel: [ 1.202770] iommu: Adding device 0000:00:14.3 to group 4
Jul 15 17:07:31 linuxcnc kernel: [ 1.203005] iommu: Adding device 0000:00:18.0 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203031] iommu: Adding device 0000:00:18.1 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203057] iommu: Adding device 0000:00:18.2 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203082] iommu: Adding device 0000:00:18.3 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203100] iommu: Adding device 0000:00:18.4 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203126] iommu: Adding device 0000:00:18.5 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203152] iommu: Adding device 0000:00:18.6 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203179] iommu: Adding device 0000:00:18.7 to group 5
Jul 15 17:07:31 linuxcnc kernel: [ 1.203392] iommu: Adding device 0000:01:00.0 to group 6
Jul 15 17:07:31 linuxcnc kernel: [ 1.203440] iommu: Using direct mapping for device 0000:01:00.0
Jul 15 17:07:31 linuxcnc kernel: [ 1.203475] iommu: Adding device 0000:01:00.1 to group 6
Jul 15 17:07:31 linuxcnc kernel: [ 1.203628] iommu: Adding device 0000:02:00.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203655] iommu: Adding device 0000:02:00.1 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203682] iommu: Adding device 0000:02:00.2 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203700] iommu: Adding device 0000:03:00.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203715] iommu: Adding device 0000:03:02.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203731] iommu: Adding device 0000:03:03.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203747] iommu: Adding device 0000:03:04.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203762] iommu: Adding device 0000:03:09.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203778] iommu: Adding device 0000:05:00.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203791] iommu: Adding device 0000:06:00.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203818] iommu: Adding device 0000:09:00.0 to group 7
Jul 15 17:07:31 linuxcnc kernel: [ 1.203835] iommu: Adding device 0000:0a:00.0 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.203851] iommu: Adding device 0000:0a:00.2 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.203866] iommu: Adding device 0000:0a:00.3 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.203881] iommu: Adding device 0000:0a:00.4 to group 3
Jul 15 17:07:31 linuxcnc kernel: [ 1.203896] iommu: Adding device 0000:0a:00.6 to group 3
Jul 15 17:08:00 linuxcnc kernel: [ 37.852989] amd_iommu_report_page_fault: 82 callbacks suppressed
Jul 15 17:08:01 linuxcnc kernel: [ 37.923023] amd_iommu_report_page_fault: 72 callbacks suppressed
Jul 15 17:08:52 linuxcnc kernel: [ 89.167960] amd_iommu_report_page_fault: 54 callbacks suppressed
Jul 15 17:08:52 linuxcnc kernel: [ 89.499898] amd_iommu_report_page_fault: 44 callbacks suppressed
Jul 15 17:09:04 linuxcnc kernel: [ 101.686369] amd_iommu_report_page_fault: 22 callbacks suppressed
Jul 15 17:09:05 linuxcnc kernel: [ 102.808462] amd_iommu_report_page_fault: 12 callbacks suppressed
Jul 15 17:09:44 linuxcnc kernel: [ 141.548610] amd_iommu_report_page_fault: 22 callbacks suppressed
Jul 15 17:09:44 linuxcnc kernel: [ 141.698430] amd_iommu_report_page_fault: 12 callbacks suppressed

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #214944 by PCW
Replied by PCW on topic 7i76e start up error
26 s32 RW 3017165 hm2_7i76e.0.read.tmax

Is pretty bad assuming a 3 or so GHz CPU, that's 1 ms...
(times on x86 are in CPU clocks)

Not sure what the problem is

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #214951 by kelargo
Replied by kelargo on topic 7i76e start up error
thank you for the input.

I tweak cpu speeds. get these values now.

# lsmod | grep cpu
cpufreq_powersave 16384 0
cpufreq_conservative 16384 0
cpufreq_userspace 16384 0
xt_tcpudp 16384 1
pcc_cpufreq 16384 0
acpi_cpufreq 24576 0
x_tables 45056 4 nft_compat,xt_tcpudp,ipt_REJECT,ip_tables


# cpupower frequency-set --governor userspace
Setting cpu: 0
Setting cpu: 1
Setting cpu: 2
Setting cpu: 3
Setting cpu: 4
Setting cpu: 5
Setting cpu: 6
Setting cpu: 7

# cpupower --cpu all frequency-set --freq 3700
Setting cpu: 0
Setting cpu: 1
Setting cpu: 2
Setting cpu: 3
Setting cpu: 4
Setting cpu: 5
Setting cpu: 6
Setting cpu: 7


after that - I get these values. better I hope? :)

papa@linuxcnc:~$ halcmd show param *.tmax
Parameters:
Owner Type Dir Value Name
26 s32 RW 0 hm2_7i76e.0.read-request.tmax
26 s32 RW 670847 hm2_7i76e.0.read.tmax
26 s32 RW 174492 hm2_7i76e.0.write.tmax
19 s32 RW 7955 motion-command-handler.tmax
19 s32 RW 65897 motion-controller.tmax
29 s32 RW 5920 pid.s.do-pid-calcs.tmax
29 s32 RW 18907 pid.x.do-pid-calcs.tmax
29 s32 RW 14874 pid.x2.do-pid-calcs.tmax
29 s32 RW 6364 pid.y.do-pid-calcs.tmax
29 s32 RW 6290 pid.z.do-pid-calcs.tmax
20 s32 RW 928811 servo-thread.tmax

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #214952 by kelargo
Replied by kelargo on topic 7i76e start up error
oh, I switch to "performance"

cpupower frequency-set --governor performance

papa@linuxcnc:~$ halcmd show param *.tmax
Parameters:
Owner Type Dir Value Name
26 s32 RW 0 hm2_7i76e.0.read-request.tmax
26 s32 RW 479298 hm2_7i76e.0.read.tmax
26 s32 RW 65046 hm2_7i76e.0.write.tmax
19 s32 RW 5180 motion-command-handler.tmax
19 s32 RW 41958 motion-controller.tmax
29 s32 RW 2294 pid.s.do-pid-calcs.tmax
29 s32 RW 4884 pid.x.do-pid-calcs.tmax
29 s32 RW 2590 pid.x2.do-pid-calcs.tmax
29 s32 RW 2368 pid.y.do-pid-calcs.tmax
29 s32 RW 2368 pid.z.do-pid-calcs.tmax
20 s32 RW 583231 servo-thread.tmax

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #214962 by tommylight

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.214 seconds
Powered by Kunena Forum