Mesa hm2/hm2_7i96s.0: error finishing read
15 Nov 2023 16:21 #285524
by PCW
Replied by PCW on topic Mesa hm2/hm2_7i96s.0: error finishing read
You can find the Ethernet IRQ by:
first do this as root so
sudo -i
then
grep eno1 /proc/interrupts
then cd to /proc/irq/#
Where # is the number in the first column of the grep result
then
echo '8" > smp_affinity
then
(and control D to go back to normal user)
first do this as root so
sudo -i
then
grep eno1 /proc/interrupts
then cd to /proc/irq/#
Where # is the number in the first column of the grep result
then
echo '8" > smp_affinity
then
(and control D to go back to normal user)
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
15 Nov 2023 20:33 #285539
by Unlogic
In short there are some nasty bugs in the driver for that network card which made their way into the kernel and the fix for them hasn't been included in the Debian 6.1/6.3 kernel yet from what I can see.
I ended up moving to an older hardware setup for now.
Replied by Unlogic on topic Mesa hm2/hm2_7i96s.0: error finishing read
I had major issues with this exact Elitedesk setup recently that I made a post about in my build thread here on the forum: forum.linuxcnc.org/12-milling/50559-opti...nc-conversion#284497[Rather than starting a new thread, I'll continue here...]
Starting to commission a new build and I'm getting the error finishing read problem crop up within seconds of starting LCNC and could use some help diagnosing.
PC: HP elitedesk 800 G2 mini
NIC: Intel i219LM
LCNC: 2.9 from ISO on LCNC home page
Kernel: 6.1.0-13 (haven't messed with this)
etc/network/interfaces:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 10.10.10.1
hardware-irq-coalesce-rx-usecs 0
Grub:
isolcpus=3 intel_pstate=disable processor.max_cstate=0 idle=poll cpufreq.default_governor=performance i915.enable_dc=0 ahci.mobile_lpm_policy=1 irqaffinity=0 nomodeset quiet
Good latency after fiddling with grub. Just copied the above from the latency thread, don't really understand the backstage stuff.
LCNC terminal output:
Warning: Spoiler!athe@lathe:~$ linuxcnc
LINUXCNC - 2.9.1
/usr/bin/linuxcnc: line 338: cd: $'/home/lathe/linuxcnc/configs\n.\n2)': No such file or directory
Machine configuration directory is '/home/lathe/linuxcnc/configs/LATHE_REV0 (DAY 2)'
Machine configuration file is 'LATHE_REV0.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
twopass:invoked with <> options
twopass:found ./01MAIN.hal
twopass:found ./02IO.hal
twopass:found ./03SPINDLE.hal
twopass:found ./04CONSOLE.hal
twopass:pass0: loadusr -W hal_manualtoolchange
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:16:84:f0
hm2_eth: discovered 7I96S
hm2/hm2_7i96s.0: Low Level init 0.15
hm2/hm2_7i96s.0: Smart Serial Firmware Version 43
Board hm2_7i96s.0.7i84.0.0 Hardware Mode 0 = standard
Board hm2_7i96s.0.7i84.0.0 Software Mode 0 = input_output
Board hm2_7i96s.0.7i84.0.0 Software Mode 1 = io_analog_fieldvoltage
Board hm2_7i96s.0.7i84.0.0 Software Mode 2 = io_encoder_analog
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 0 = nokeyboardnodisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoder
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalog
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalog
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 1 = nokeyboarddisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplay
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 2 = keyboard4by8nodisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode4by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode4by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode4by8
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 3 = keyboard4by8display
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode4by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode4by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode4by8
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 4 = keyboard8by8nodisplay
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode8by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode8by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode8by8
Board hm2_7i96s.0.7i73.0.1 Hardware Mode 5 = keyboard8by8display
Board hm2_7i96s.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode8by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode8by8
Board hm2_7i96s.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode8by8
hm2/hm2_7i96s.0: 51 I/O Pins used:
hm2/hm2_7i96s.0: IO Pin 000 (TB3-01): InM Input Module #0, pin in0 (Input)
hm2/hm2_7i96s.0: IO Pin 001 (TB3-02): InM Input Module #0, pin in1 (Input)
hm2/hm2_7i96s.0: IO Pin 002 (TB3-03): InM Input Module #0, pin in2 (Input)
hm2/hm2_7i96s.0: IO Pin 003 (TB3-04): InM Input Module #0, pin in3 (Input)
hm2/hm2_7i96s.0: IO Pin 004 (TB3-05): InM Input Module #0, pin in4 (Input)
hm2/hm2_7i96s.0: IO Pin 005 (TB3-06): InM Input Module #0, pin in5 (Input)
hm2/hm2_7i96s.0: IO Pin 006 (TB3-07): InM Input Module #0, pin in6 (Input)
hm2/hm2_7i96s.0: IO Pin 007 (TB3-08): InM Input Module #0, pin in7 (Input)
hm2/hm2_7i96s.0: IO Pin 008 (TB3-09): InM Input Module #0, pin in8 (Input)
hm2/hm2_7i96s.0: IO Pin 009 (TB3-10): InM Input Module #0, pin in9 (Input)
hm2/hm2_7i96s.0: IO Pin 010 (TB3-11): InM Input Module #0, pin in10 (Input)
hm2/hm2_7i96s.0: IO Pin 011 (TB3-13/TB3-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i96s.0: IO Pin 012 (TB3-15/TB3-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i96s.0: IO Pin 013 (TB3-17/TB3-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i96s.0: IO Pin 014 (TB3-19/TB3-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i96s.0: IO Pin 015 (TB3-21/TB3-22): OutM Output Module #0, pin Out-04 (Output)
hm2/hm2_7i96s.0: IO Pin 016 (TB3-23/TB3-24): OutM Output Module #0, pin Out-05 (Output)
hm2/hm2_7i96s.0: IO Pin 017 (TB1-02/TB1-03): StepGen #0, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 018 (TB1-04/TB1-05): StepGen #0, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 019 (TB1-08/TB1-09): StepGen #1, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 020 (TB1-10/TB1-11): StepGen #1, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 021 (TB1-14/TB1-15): StepGen #2, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 022 (TB1-16/TB1-17): StepGen #2, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 023 (TB1-20/TB1-21): StepGen #3, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 024 (TB1-22-TB1-23): StepGen #3, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 025 (TB2-02/TB2-03): StepGen #4, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 026 (TB2-04/TB2-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 027 (TB2-07/TB2-08): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i96s.0: IO Pin 028 (TB2-10/TB2-11): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i96s.0: IO Pin 029 (TB2-13/TB2-14): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i96s.0: IO Pin 030 (TB2-16/TB2-17): Smart Serial Interface #0, pin rx0 (Input)
hm2/hm2_7i96s.0: IO Pin 031 (TB2-18/TB2-19): Smart Serial Interface #0, pin tx0 (Output)
hm2/hm2_7i96s.0: IO Pin 032 (internal): Smart Serial Interface #0, pin txen0 (Output)
hm2/hm2_7i96s.0: IO Pin 033 (internal): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i96s.0: IO Pin 034 (P1-01/DB25-01): Smart Serial Interface #0, pin rx1 (Input)
hm2/hm2_7i96s.0: IO Pin 035 (P1-02/DB25-14): Smart Serial Interface #0, pin tx1 (Output)
hm2/hm2_7i96s.0: IO Pin 036 (P1-03/DB25-02): StepGen #8, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 037 (P1-04/DB25-15): StepGen #8, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 038 (P1-05/DB25-03): StepGen #7, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 039 (P1-06/DB25-16): StepGen #7, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 040 (P1-07/DB25-04): StepGen #6, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 041 (P1-08/DB25-17): StepGen #6, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 042 (P1-09/DB25-05): StepGen #5, pin Step (Output)
hm2/hm2_7i96s.0: IO Pin 043 (P1-11/DB25-06): StepGen #5, pin Direction (Output)
hm2/hm2_7i96s.0: IO Pin 044 (P1-13/DB25-07): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i96s.0: IO Pin 045 (P1-15/DB25-08): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i96s.0: IO Pin 046 (P1-17/DB25-09): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i96s.0: IO Pin 047 (P1-19/DB25-10): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i96s.0: IO Pin 048 (P1-21/DB25-11): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i96s.0: IO Pin 049 (P1-23/DB25-12): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i96s.0: IO Pin 050 (P1-25/DB25-13): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i96s.0: registered
creating ladder-state
note: MAXV max: 0.500 units/sec 30.000 units/min
note: LJOG max: 0.500 units/sec 30.000 units/min
note: LJOG default: 0.500 units/sec 30.000 units/min
note: jog_order='ZX'
note: jog_invert=set()
hm2/hm2_7i96s.0: error finishing read! iter=4596
hm2/hm2_7i96s.0: error finishing read! iter=4596
Ping times
Warning: Spoiler!lathe@lathe:~$ ping 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.214 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.121 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.121 ms
64 bytes from 10.10.10.10: icmp_seq=5 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=6 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=7 ttl=64 time=0.121 ms
64 bytes from 10.10.10.10: icmp_seq=8 ttl=64 time=0.122 ms
64 bytes from 10.10.10.10: icmp_seq=9 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=10 ttl=64 time=0.120 ms
^C
--- 10.10.10.10 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9215ms
rtt min/avg/max/mdev = 0.120/0.129/0.214/0.028 ms
Would trying a later kernel (6.3,6.4,etc.) help? I did see mention elsewhere here that there is a recently fixed bug related to Intel i219LM NICs...but don't know if that's related or when the fix will make it to kernels appropriate for LCNC.
ThxI
In short there are some nasty bugs in the driver for that network card which made their way into the kernel and the fix for them hasn't been included in the Debian 6.1/6.3 kernel yet from what I can see.
I ended up moving to an older hardware setup for now.
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
15 Nov 2023 21:01 #285543
by spumco
Replied by spumco on topic Mesa hm2/hm2_7i96s.0: error finishing read
@Unlogic - thank you. Your thread was what I referenced earlier about the kernel bug.
I'm hoping either
Really, really don't want to deal with installing another PC in my console. Again.
I'm hoping either
- New LAN cable, or (slim hope, but easy)
- PCW's suggestion to pin the IRQ, or
- PCW seems to be on 6.5... maybe that would help if I can figure out how to do it.
Really, really don't want to deal with installing another PC in my console. Again.
Please Log in or Create an account to join the conversation.
15 Nov 2023 21:15 #285545
by Unlogic
Replied by Unlogic on topic Mesa hm2/hm2_7i96s.0: error finishing read
If you figure out a workaround, please post an update.
I've been working with Linux since the late 90's and I couldn't get the Intel i219LM to work stable for any length of time with the current 12.2 Debian kernels.
Applying the patch from Intel manually and compiling a custom kernel would probably have done the job but I wanted to able to use the reqular "apt dist-upgrade" updates without any fuzz so I opted to not go that route.
I've been working with Linux since the late 90's and I couldn't get the Intel i219LM to work stable for any length of time with the current 12.2 Debian kernels.
Applying the patch from Intel manually and compiling a custom kernel would probably have done the job but I wanted to able to use the reqular "apt dist-upgrade" updates without any fuzz so I opted to not go that route.
Please Log in or Create an account to join the conversation.
15 Nov 2023 21:32 #285546
by rodw
Replied by rodw on topic Mesa hm2/hm2_7i96s.0: error finishing read
One way to get a later kernel would be to upgrade to Debian 13 = Trixie = Testing
I think its on kernel 6.5. get the amd64 version, then try running andy's install script
cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/
I think its on kernel 6.5. get the amd64 version, then try running andy's install script
cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
15 Nov 2023 22:07 #285547
by tommylight
Replied by tommylight on topic Mesa hm2/hm2_7i96s.0: error finishing read
Attachments:
Please Log in or Create an account to join the conversation.
15 Nov 2023 22:54 #285552
by spumco
Replied by spumco on topic Mesa hm2/hm2_7i96s.0: error finishing read
Update...
New cable - no joy butwas worth a try - Thanks Tommy
PCW's IRQ affinity - no change in behavior, but thanks for the braiin-dead instructions.
Screenshot of the read times attached... huge spikes.
Next step is a new kernel.
I've checked synaptics and the only kernel available with the bog-standard bookworm ISO install is 6.1.0-13.
Before I grease this thing and have a go with Trixie...
is there some other way to get the 6.5 kernel and patch? I fumbled around last night and added 'testing' and 'unstable' debian repos through synaptics, but none of the newer kernels appeared in the search results.
New cable - no joy butwas worth a try - Thanks Tommy
PCW's IRQ affinity - no change in behavior, but thanks for the braiin-dead instructions.
Screenshot of the read times attached... huge spikes.
Next step is a new kernel.
I've checked synaptics and the only kernel available with the bog-standard bookworm ISO install is 6.1.0-13.
Before I grease this thing and have a go with Trixie...
is there some other way to get the 6.5 kernel and patch? I fumbled around last night and added 'testing' and 'unstable' debian repos through synaptics, but none of the newer kernels appeared in the search results.
Please Log in or Create an account to join the conversation.
15 Nov 2023 22:59 #285553
by spumco
Replied by spumco on topic Mesa hm2/hm2_7i96s.0: error finishing read
Rod - where would I find Andy's install script? Didn't see it in the announcements or computers/installing sub-forums.One way to get a later kernel would be to upgrade to Debian 13 = Trixie = Testing
I think its on kernel 6.5. get the amd64 version, then try running andy's install script
cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
15 Nov 2023 23:21 #285554
by tommylight
packages.debian.org/bookworm-backports/a....1-rt-amd64/download
Replied by tommylight on topic Mesa hm2/hm2_7i96s.0: error finishing read
You are welcomed, always.New cable - no joy butwas worth a try - Thanks Tommy
Did you mind the spaces, there are two spaces between - - in my post, not having those turns empty when searched in synaptic.I've checked synaptics and the only kernel available with the bog-standard bookworm ISO install is 6.1.0-13.
Yes of course, you can use the same stuff i posted to search debian and pkgs.org, :is there some other way to get the 6.5 kernel and patch?
packages.debian.org/bookworm-backports/a....1-rt-amd64/download
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
15 Nov 2023 23:43 #285556
by spumco
Replied by spumco on topic Mesa hm2/hm2_7i96s.0: error finishing read
Tried 6.5, no joy. read error within 5 seconds of starting LCNC.
Next step is Trixie.
Next step is Trixie.
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds