Bug 215689
Summary: | e1000e: regression for I219-V for kernel 5.14 onwards | ||
---|---|---|---|
Product: | Drivers | Reporter: | James (jahutchinson99) |
Component: | Network | Assignee: | drivers_network (drivers_network) |
Status: | NEW --- | ||
Severity: | high | CC: | amir.avivi, devora.fuxbrumer, dima.ruinskiy, sasha.neftin |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 5.15.x | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | Fix possible overflow for LTR decoding |
Description
James
2022-03-15 13:45:38 UTC
Created attachment 300613 [details]
Fix possible overflow for LTR decoding
Decoding should be: scale 0 - 1 (2^(5*0)) = 2^0 scale 1 - 32 (2^(5 *1))= 2^5 scale 2 - 1024 (2^(5 *2)) =2^10 scale 3 - 32768 (2^(5 *3)) =2^15 scale 4 – 1048576 (2^(5 *4)) = 2^20 scale 5 – 33554432 (2^(5 *4)) = 2^25 We need (not u16): u32 max_ltr_enc_d = 0; /* maximum LTR decoded by platform */ u32 lat_enc_d = 0; /* latency decoded */ When Link 1G LTR should be: LTR: RAW: 0x88b988b9 Non-Snoop(ns): 189440 Snoop(ns): 189440 Decoding should be: scale 0 - 1 (2^(5*0)) = 2^0 scale 1 - 32 (2^(5 *1))= 2^5 scale 2 - 1024 (2^(5 *2)) =2^10 scale 3 - 32768 (2^(5 *3)) =2^15 scale 4 – 1048576 (2^(5 *4)) = 2^20 scale 5 – 33554432 (2^(5 *4)) = 2^25 We need (not u16): u32 max_ltr_enc_d = 0; /* maximum LTR decoded by platform */ u32 lat_enc_d = 0; /* latency decoded */ When Link 1G LTR should be: LTR: RAW: 0x88b988b9 Non-Snoop(ns): 189440 Snoop(ns): 189440 Hi Sasha, I reported the issue originally, and have just been testing the proposed patch: v1-0001-e1000e-Fix-possible-overflow-in-LTR-decoding.patch I'm happy to report that this resolves the issue - my live tv streams via Tvheadend are back to normal operation with this patch in place :-) I can also see that the ltr is now being set with the correct value you'd anticipated: $ sudo cat /sys/kernel/debug/pmc_core/ltr_show SOUTHPORT_A LTR: RAW: 0x0 Non-Snoop(ns): 0 Snoop(ns): 0 SOUTHPORT_B LTR: RAW: 0x0 Non-Snoop(ns): 0 Snoop(ns): 0 SATA LTR: RAW: 0x883c Non-Snoop(ns): 0 Snoop(ns): 61440 GIGABIT_ETHERNET LTR: RAW: 0x88b988b9 Non-Snoop(ns): 189440 Snoop(ns): 189440 XHCI LTR: RAW: 0x8b54 Non-Snoop(ns): 0 Snoop(ns): 872448 ... Regards, James Hutchinson <jahutchinson99@googlemail.com> Thanks James (I will add the "Reported-by" tag) |