Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kernelbump.git;a=commitdiff;h=3ef13d2f9303cfd5e1a7a5b5b131bd7242f2ba12
commit 3ef13d2f9303cfd5e1a7a5b5b131bd7242f2ba12 Author: DeX77 <[email protected]> Date: Thu Feb 23 17:59:28 2017 +0100 e1000e-3.3.5.3-12-x86_64 * fix build with kernel 4.10 diff --git a/source/network-extra/e1000e/FrugalBuild b/source/network-extra/e1000e/FrugalBuild index 18f01c3..9f9bd87 100644 --- a/source/network-extra/e1000e/FrugalBuild +++ b/source/network-extra/e1000e/FrugalBuild @@ -3,17 +3,21 @@ pkgname=e1000e pkgver=3.3.5.3 -pkgrel=11 +pkgrel=12 pkgdesc="Intel e1000e Ethernet adapter driver" archs=('x86_64') groups=('network-extra') _F_sourceforge_dirname="e1000" Finclude sourceforge kernel-module -_F_cd_path="$pkgname-$pkgver/src" -sha1sums=('03031b5be7e25808bd6dfe2672fc1347d86dd39b') +source+=("kernel-4.10.patch") +sha1sums=('03031b5be7e25808bd6dfe2672fc1347d86dd39b' \ + '766c96f3a8195ecf08ba7cdff9462f353f00f6a4') options+=('nostrip') build() { + Fpatchall + cd src/ + Fmake Ffilerel e1000e.ko $_F_kernelmod_dir/updates/drivers/net/ethernet/intel/e1000e/e1000e.ko Fbuild_kernelmod_scriptlet diff --git a/source/network-extra/e1000e/kernel-4.10.patch b/source/network-extra/e1000e/kernel-4.10.patch new file mode 100644 index 0000000..d8838bc --- /dev/null +++ b/source/network-extra/e1000e/kernel-4.10.patch @@ -0,0 +1,74 @@ +diff -Naur e1000e-3.3.5.3/src/netdev.c e1000e-3.3.5.3.new/src/netdev.c +--- e1000e-3.3.5.3/src/netdev.c 2016-11-09 17:39:01.000000000 +0100 ++++ e1000e-3.3.5.3.new/src/netdev.c 2017-02-23 17:57:39.000000000 +0100 +@@ -4833,24 +4833,24 @@ + /** + * e1000e_sanitize_systim - sanitize raw cycle counter reads + * @hw: pointer to the HW structure +- * @systim: cycle_t value read, sanitized and returned ++ * @systim: u64 value read, sanitized and returned + * + * Errata for 82574/82583 possible bad bits read from SYSTIMH/L: + * check to see that the time is incrementing at a reasonable + * rate and is a multiple of incvalue. + **/ +-static cycle_t e1000e_sanitize_systim(struct e1000_hw *hw, cycle_t systim) ++static u64 e1000e_sanitize_systim(struct e1000_hw *hw, u64 systim) + { + u64 time_delta, rem, temp; +- cycle_t systim_next; ++ u64 systim_next; + u32 incvalue; + int i; + + incvalue = er32(TIMINCA) & E1000_TIMINCA_INCVALUE_MASK; + for (i = 0; i < E1000_MAX_82574_SYSTIM_REREADS; i++) { + /* latch SYSTIMH on read of SYSTIML */ +- systim_next = (cycle_t)er32(SYSTIML); +- systim_next |= (cycle_t)er32(SYSTIMH) << 32; ++ systim_next = (u64)er32(SYSTIML); ++ systim_next |= (u64)er32(SYSTIMH) << 32; + + time_delta = systim_next - systim; + temp = time_delta; +@@ -4872,13 +4872,13 @@ + * e1000e_cyclecounter_read - read raw cycle counter (used by time counter) + * @cc: cyclecounter structure + **/ +-static cycle_t e1000e_cyclecounter_read(const struct cyclecounter *cc) ++static u64 e1000e_cyclecounter_read(const struct cyclecounter *cc) + { + struct e1000_adapter *adapter = container_of(cc, struct e1000_adapter, + cc); + struct e1000_hw *hw = &adapter->hw; + u32 systimel, systimeh; +- cycle_t systim; ++ u64 systim; + /* SYSTIMH latching upon SYSTIML read does not work well. + * This means that if SYSTIML overflows after we read it but before + * we read SYSTIMH, the value of SYSTIMH has been incremented and we +@@ -4899,8 +4899,8 @@ + systimel = systimel_2; + } + } +- systim = (cycle_t)systimel; +- systim |= (cycle_t)systimeh << 32; ++ systim = (u64)systimel; ++ systim |= (u64)systimeh << 32; + + if (adapter->flags2 & FLAG2_CHECK_SYSTIM_OVERFLOW) + systim = e1000e_sanitize_systim(hw, systim); +diff -Naur e1000e-3.3.5.3/src/ptp.c e1000e-3.3.5.3.new/src/ptp.c +--- e1000e-3.3.5.3/src/ptp.c 2016-11-09 17:39:01.000000000 +0100 ++++ e1000e-3.3.5.3.new/src/ptp.c 2017-02-23 17:57:36.000000000 +0100 +@@ -136,8 +136,8 @@ + unsigned long flags; + int i; + u32 tsync_ctrl; +- cycle_t dev_cycles; +- cycle_t sys_cycles; ++ u64 dev_cycles; ++ u64 sys_cycles; + + tsync_ctrl = er32(TSYNCTXCTL); + tsync_ctrl |= E1000_TSYNCTXCTL_START_SYNC | _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
