Solution fo "hm2 error finishing read" with no good PC

More
28 Oct 2024 17:09 #313380 by greg23_78
I need help because I don't know what to do with my PC.
At the moment linuxcnc displays ‘hm2 error finishing read’ every time I change the tool on my turret on my cnc lathe.
several weeks ago I had this message sometime.

below the latency of my pc and the ping for the ethernet.
 

I have disabled all the options that slow down latency in the bios/uefi.
I have followed the procedure to isolate a core for linuxcnc. and other procedure to reduce latency (IRQ affinity scripts / rt_setup).

but i have the problem ‘hm2 error finishing read’, is there any solution to remove this problem or the only solution is to replace the pc because nothing can be done?
 
Attachments:

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

More
28 Oct 2024 17:54 #313381 by PCW
The issue is the 5.835 ms maximum ping time (about 10X the usable maximum)

My guess is that you have a RealTek Ethernet interface on you PC which requires
and alternate driver (DKMS) be installed since the driver supplied with the 6.1 kernel has
real-time issues.

Instructions for this are in this thread:

forum.linuxcnc.org/27-driver-boards/5366...xcnc?start=20#310794

Before you do that is probably best to determine the actual Ethernet hardware with say:

lspci | grep -i ether



 
The following user(s) said Thank You: rodw

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

More
29 Oct 2024 10:44 #313423 by greg23_78
i did, but still the same.
i have done ping 10.10.10.10 during the nigh and i have lost some packet.

my hardware is Realtek RTL8111/RTL8168

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

More
29 Oct 2024 15:08 - 29 Oct 2024 15:09 #313438 by PCW
Have you added

pcie.aspm=0 r8168.eee_enable=0 pcie_aspm=off idle=poll

to the kernel command line? (via grub)
Sometimes that is needed also.

To make sure you are running the dkms driver, try running this script: 

 

File Attachment:

File Name: edriver.txt
File Size:0 KB


To run this, first

chmod +x edriver.txt

and then

./edriver.txt

(from the Downloads directory)

and paste the results here.

(not my script but nicely lists network drivers) 
Attachments:
Last edit: 29 Oct 2024 15:09 by PCW.

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

More
29 Oct 2024 15:49 #313442 by greg23_78
i added the same as the google doc "r8168.aspm=0 r8168.eee_enable=0 pcie_aspm=off loglevel=3"
i changed and add " pcie.aspm=0 r8168.eee_enable=0 pcie_aspm=off idle=poll" but still the same "hm2 error finishing read" (I restarted the PC)

 
Attachments:

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

More
29 Oct 2024 17:13 - 29 Oct 2024 17:20 #313446 by PCW
That looks like the standard realtek 8168 driver rather than the DKMS driver
so it sounds like the DKMS driver install did not work for some reason
Last edit: 29 Oct 2024 17:20 by PCW.

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

More
29 Oct 2024 17:53 #313448 by royka

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

More
30 Oct 2024 10:36 #313477 by rodw
Please follow steps 44-58 in the google doc on the other thread.
I don't think you have installed the r8168-dkms driver.

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

More
30 Oct 2024 17:06 #313500 by rajsekhar
IRQ to be set to last cpu. That had worked for me.

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

More
12 Nov 2024 10:08 #314309 by greg23_78
This are the screenshots when I try to install r8168-dkms.I did not delete the first installation at the start of the post
           
Attachments:

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

Time to create page: 1.047 seconds
Powered by Kunena Forum