]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Fix the max snoop/no-snoop latency for 10M
authorSasha Neftin <sasha.neftin@intel.com>
Sun, 4 Jul 2021 07:11:41 +0000 (10:11 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 20 Aug 2021 15:38:01 +0000 (08:38 -0700)
commit44a13a5d99c71bf9e1676d9e51679daf4d7b3d73
tree2c034c750a6c646182bb7e8c037adc9cd4ba0185
parent691bd4d7761992914a0e83c27a4ce57d01474cda
e1000e: Fix the max snoop/no-snoop latency for 10M

We should decode the latency and the max_latency before directly compare.
The latency should be presented as lat_enc = scale x value:
lat_enc_d = (lat_enc & 0x0x3ff) x (1U << (5*((max_ltr_enc & 0x1c00)
>> 10)))

Fixes: cf8fb73c23aa ("e1000e: add support for LTR on I217/I218")
Suggested-by: Yee Li <seven.yi.lee@gmail.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/ich8lan.c
drivers/net/ethernet/intel/e1000e/ich8lan.h