1# 2# This file is provided under a CDDLv1 license. When using or 3# redistributing this file, you may do so under this license. 4# In redistributing this file this license must be included 5# and no other modification of this header file is permitted. 6# 7# CDDL LICENSE SUMMARY 8# 9# Copyright(c) 1999 - 2008 Intel Corporation. All rights reserved. 10# 11# The contents of this file are subject to the terms of Version 12# 1.0 of the Common Development and Distribution License (the "License"). 13# 14# You should have received a copy of the License with this software. 15# You can obtain a copy of the License at 16# http://www.opensolaris.org/os/licensing. 17# See the License for the specific language governing permissions 18# and limitations under the License. 19# 20# 21# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22# Use is subject to license terms of the CDDLv1. 23# 24# 25 264.0.4 code drop from Intel on 1/30/2003 27======================================= 28 This version is used as the base for putback into both s10 and 29 s9u4. 30 31 Following changes were done to this code base before putting 32 back into solaris trees (S10 & S9U4): 33 34 1) Changes to e1000_hw.c to remove build warnings 35 36 + diff /home/naroori/grizzly/sources/e1000g/1_4.0.4/e1000_hw.c . 37 2616c2616 38 < phy_info->downshift = hw->speed_downgraded; 39 --- 40 > phy_info->downshift = (int)hw->speed_downgraded; 41 2684c2684 42 < phy_info->downshift = hw->speed_downgraded; 43 --- 44 > phy_info->downshift = (int)hw->speed_downgraded; 45 46 2) Changes to e1000g_dlpi.c for ipv6 plumbing problem and 47 problem with default MTU size of 2024. 48 49 + diff /home/naroori/grizzly/sources/e1000g/1_4.0.4/e1000g_dlpi.c . 50 313a314 51 > /* the following causes problem with ipv6 plumbing... 52 314a316 53 > */ 54 628c630,632 55 < if (Adapter->Shared.max_frame_size == FRAME_SIZE_UPTO_16K) 56 --- 57 > if (Adapter->Shared.max_frame_size == ETHERMTU) { 58 > } 59 > else if (Adapter->Shared.max_frame_size == FRAME_SIZE_UPTO_16K) { 60 630c634,635 61 < else 62 --- 63 > } 64 > else { 65 631a637 66 > } 67 68 3) Changes to e1000g_main.c for version string modification, 69 removing console messages on bootup and problems with default 70 MTU size of 2024. 71 72 + diff /home/naroori/grizzly/sources/e1000g/1_4.0.4/e1000g_main.c . 73 59c59 74 < static char e1000g_version[]="Driver Ver. 4.0.4-beta"; 75 --- 76 > static char e1000g_version[]="Driver Ver. 4.0.4"; 77 937c937 78 < e1000g_log(Adapter,CE_CONT,"\n%s, %s\n",AdapterName,e1000g_version); 79 --- 80 > cmn_err(CE_CONT,"!%s, %s\n",AdapterName,e1000g_version); 81 3000c3000 82 < Adapter->Shared.max_frame_size = FRAME_SIZE_UPTO_2K; 83 --- 84 > Adapter->Shared.max_frame_size = ETHERMTU; 85 3013c3013 86 < Adapter->Shared.max_frame_size = FRAME_SIZE_UPTO_2K; 87 --- 88 > Adapter->Shared.max_frame_size = ETHERMTU; 89 90 91 92Bug fixes to 4.0.4: 93=================== 94 1) bug#4829398 code cleanup for ethernet bootup messages 95 96 974.0.12 code drop from Intel on 3/18/2003 98======================================== 99 100 This drop had extensive changes from 4.0.4. Many changes after 101 4.0.4 were realted to new hardware (a.k.a. BayCity chipset), 102 not relevant to Grizzly.After looking at the changelog from Intel, 103 we decided not to do a putback but rather take only high priority 104 fixes from this drop and generate a new version 4.0.4.1. 105 106 Here is the changelog supplied by Intel for this drop: 107 108 ________________________________________________________________________ 109 Component Name: Unix-Solaris_8254x_BayCity_Intel 110 Description: Bay City software component for gigabit products 111 ________________________________________________________________________ 112 113 114 ---Version: 4.0.13 Date: 3/14/2003 5:00:00 PM--- 115 Added transmit mutex locking to the 82547 workaround code. 116 117 ---Version: 4.0.12 Date: 3/10/2003 8:01:00 PM--- 118 Added new shared code with LED link speed fix 119 120 ---Version: 4.0.11 Date: 3/7/2003 5:57:00 PM--- 121 Updated the Tanacross FIFO hang workaround to reset FIFO pointers instead of sending autonomous packets. 122 123 ---Version: 4.0.10 Date: 3/4/2003 2:39:00 PM--- 124 Removed an extra sdu adjustment that was left in by accident 125 126 ---Version: 4.0.9 Date: 3/4/2003 11:13:00 AM--- 127 Removed the first call to adapter_stop. This was called before the HW struct was properly initialized, and could cause hangs. 128 129 Changed reported ethernet sdu from 2024 to 1500, as driver could be configured for invalid frame MTU sizes in Solaris 9. 130 131 Added Tanacross workaround for FIFO hang. 132 133 ---Version: 4.0.8 Date: 2/25/2003 2:27:00 PM--- 134 Shared code update including Phy init script. 135 Smartspeed workaround added. e1000g_smartspeed called from LocalTimer function every two seconds when link is down. 136 137 ---Version: 4.0.7 Date: 2/18/2003 11:41:00 AM--- 138 Updated to include bug fixes from the shared code. 139 140 ---Version: 4.0.5 Date: 1/31/2003 10:13:00 AM--- 141 Support for new hardware changes 142 Removed the extra ack sent at the end of the attach_req routine. This extra ack previously made IPv6 plumbing on Solaris 9 fail. 143 144 1454.0.4.1 146======= 147 This version is not an Intel drop but 4.0.4 merged with two 148 high priority fixes from 4.0.12. We will give back the 4.0.4.1 149 driver back to Intel, per their request, so they have the exact 150 code that we are releasing through Solaris. 151 152 The following are the two fixes selected for inclusion from 153 4.0.12 codebase: 154 155 1) Removing the first call to adapter_stop as discussed in 156 4.0.12 changelog. 157 158 2) Corrections to MTU size calculations first introduced 159 in our 4.0.4 putback to bring them into sync with 4.0.12 160 MTU size calculations. 161 162 We also added README file (current file you are reading) during 163 this putback. 164 1654.0.4.2 166======= 167 This version has the following fixes: 168 169 1) bug#4857098: e1000g driver assumes another intel card as its own. 170 The fix involved eliminating 1009, 1012, 1015, 1016, 1017 171 device-ids from e1000g nodelist so that they do not conflict 172 with iprb's subsystem-ids. 173 174 This fix has to be reverted later once we have a proper fix for 175 bug#4859426. 176 177 2) bug#4853683: e1000g lacks a large number of expected kstats 178 The fix involved three steps: a) Renaming some of the existing 179 kstats to comply with WDD documentation b) Computing some of 180 those which are not being tracked c) Supplying zero for the rest 181 the error stats which are not being tracked. 182 183 This fix has to be revisited to improvise the statistics in 184 future. 185 186 3) bug#4862529: System panics during configuring devices on a Dell 4-way 187 servers. The fix involved removing all the devic-ids from nodelist 188 except for 1010. This means that we support now only the grizzly 189 on-board gigabit chipset and "Intel Pro/1000 MT Dual Server Adapter". 190 191 This fix has to be reverted later once we have a proper fix for 192 bug#4859426. 193 1944.0.4.3 195======= 196 This version has the following fixes: 197 198 1) bug#4874857: ipv6 ping fails on bootup for e1000g. 199 The fix involved implementing multicast tables both at per stream 200 level and per device level. 201 202 2) bug#4875743: null pointer dereference in ddi_dma_addr_bind_handle. 203 The fix involved adding LastTxDescriptorBuf to struct e1000g and 204 handling consequent proper calculations for LastTxDescriptor. 205 206 3) bug#4882541: setting up ethernet address causes machine to panic. 207 The fix involved removing a spurious log message which was causing 208 the panic. 209 210 4) bug#4883302: Reinstate the removed device-ids - phase 2. 211 The fix involved some chip initializations to handle 1000 id. 212 213 5) bug#4919285: device id 8086,100e needs to be added 214 The fix needed for the Intel Precision 350 workstation 215 2164.2.11 217====== 218 219We need to sync up with the latest Intel code base for e1000g driver. 220 221Intel is currently at version 4.2.11 while we are on 4.0.4 branch. 222The exact version under 4.0.4 branch is 4.0.4.3. Since we are on 223the branch while Intel is working on the main trunk, we have had 224lot of friction in getting timely fixes from Intel. The current 225syncing up with their main trunk lets us a smooth migration path. 226 227The new code base also would provide us with support for additional 228cards including Quad port cards (See bugs: 4921433, 4914460). 229In our old 4.0.4 branch, we had to drop support for a lot of cards 230for various problems; with the current syncing up, we would be able 231to support so many various cards except for the cards clashing with 232iprb driver. 233 234The new code base also has support for additional new chipsets. The code 235base also benefits from any fixes to the shared code base with other 236operating system drivers. 237 238The new codebase also has lot of cleanups in terms of various #ifdefs 239and should be much simpler to maintain. 240 241So the list of actual ids take out are: 2421009 2431012 2441013 2451015 2461016 2471017 248 2494.2.15 250====== 251This intel code drop addresses the following bug: 252 253 4909863: Bad trap panic in e1000g_rtn_buf 254 2554.2.16 256====== 257 This version has the following fix: 258 4932422 interconnect remains faulted after adapter disconnected and then reconnected 259 260Notes on packaging: 261=================== 262 Intel names the package as INTCGigaE while we chose to rename 263 it as SUNWintgige as per Sun packaging conventions. 264 2654.2.17 266====== 267 This version has the following fixes: 268 4971416 e1000g seems to hang system when no network connected 269 4997067 e1000gattach panicks when the going gets tough 270 4990064 e1000g leaks memory when it runs out of transmit descriptors 271 2724.2.17.1 273====== 274 This version has the following fix: 275 5014625 e1000g driver panicked when snoop(1M) exited 276 2774.2.17.2 278====== 279 This version has the following fix: 280 4940870 e1000g: Dependence on instance initialization order disables .conf properties 281 5033616 e1000g panicked after rem_drv while some service still binds to the driver 282 5037062 strings have crept back in e1000g/adpu320 related mutex_init()s 283 5050268 Some e1000g flag operations are not correct. 284 2854.2.17.3 286====== 287 This version has the following fix: 288 5067162 e1000g cannot transmit heavy UDP 289 2904.2.17.4 291====== 292 This version has the following fix: 293 5010052 The stress load/unload test of Intel PWLA8494MT Quad Port NIC causes system hung 294 5050265 E1000g does not support IPV6 fast path. This will impact IPV6 performance. 295 5050369 E1000g locks the system if plumb/unplumb under heavy workload and snoop. 296 5050415 E1000g will accepts ethernet packets which are not addressed to it. 297 5055132 E1000g crashes when injected with Jumbo Frame packets. 298 2994.2.17.5 300====== 301 This version has the following fix: 302 6175307 system crash with memory size of 11GB 303 6176031 the sequence of releasing resource error in e1000gattach 304 6180180 PktAlloc - Could not bind rbuf packet as single frag. Count - 2 305 6185022 Port hang when unplumb interface under heavy traffic 306 3074.2.17.6 308====== 309 This version has the following fix: 310 6196426 e1000g should support NICs that use the internal serdes for external connectivity 311 3124.2.17.7 313====== 314 This version has the following fix: 315 4921433 e1000g: Should not probe by using VID/DID table to identify adapters 316 3174.2.17.8 318====== 319 This version has the following fix: 320 6213101 64bit DMA max address space should be supported by e1000g driver 321 6215261 e1000g driver 211% slower in AMD64 than 32 bit e1000g driver (S10_73, Single CPU V20z) 322 3234.2.17.9 324====== 325 This version has the following fix: 326 6256212 fix for 6213101 breaks e1000g for 32-bit kernels on machines with >4GB of physical memory 327 3284.2.17.10 329====== 330 This version has the following fix: 331 6203602 e1000g needs to support the Intel PCI-E card 332 6217046 we need to merge the Intel code (version 4.2.28) into e1000g 333 3345.0.0 335====== 336 This version has the following fix: 337 PSARC/2005/470 E1000g Nemo Migration 338 6221079 e1000g driver interface conversion from DLPI to GLD3.0(nemo) 339 6224901 e1000g fails to configure VLANs on a Sun v65x 340 6286414 snmp: ifOperStatus for e1000g driver doesn't change when cable is unplugged. 341 6238486 e1000g: poor performance in web server benchmark, high CPU utilization noted 342 6293265 e1000g_intr doesn't use mutex at all 343 6304657 e1000g_PktAlloc_buffers() causes a panic when ddi_dma_addr_bind_handle() fails. 344 4913292 e1000g: does not support PSARC 2003/264 Extended IP cksum_offload 345 5071610 e1000g can't send any packets after a jumbo-packet forwarding test. 346 5082975 in Jumbo enable mode, netperf indicates a lower throughput, compared to Jumbo of 347 5085394 e1000g driver hangs system during 64byte stress testing 348 6174349 netlb support needed for Solaris e1000g driver 349 6207682 e1000g needs link up/down support 350 6211068 e1000g has some input error packets during stress test 351 6212810 e1000g caught sending unsolicited M_PROTO/M_PCPROTO messages 352 6219298 warnings about "inconsistent getinfo(9E) implementation" 353 6226217 e1000g should support trunking 354 6239279 Network stess test fail on 82545GM chip on IBM Blade HS40 355 6242612 e1000g needs to support SPARC 356 6247936 In e1000g transmission, ddi_dma_addr_bind_handle() returns more cookies than speficied 357 6273730 e1000g causes memory leaks within Freelist_alloc and PktAlloc_buffers 358 5073739 find some memory leaks after load_unload test 359 6287250 e1000g may need to use new Intel-recommended semaphore mechanism 360 3615.0.1 362====== 363 This version has the following fix: 364 6313609 2-port Intel NIC (part# 370-6687) performs poorly compared to 1-port Intel NIC (part# 370-6685) 365 6315002 gcc and e1000g don't get along 366 3675.0.2 368====== 369 This version has the following fix: 370 6319100 Tier0 Ontario machine does not boot net with sparc e1000g driver substitution for sparc ipge driver 371 3725.0.3 373====== 374 This version has the following fix: 375 6327693 e1000g should use MSIs when possible 376 6333461 panic[cpu0]/thread=d63f4de0: assertion failed: !dma->dp_inuse, file: ../../i86pc/io/rootnex.c 377 3785.0.4 379====== 380 This version has the following fix: 381 6351378 e1000g panic seen after bfu'ing latest onnv nightly 382 3835.0.5 384====== 385 This version has the following fix: 386 6303973 System hard hangs when sharing interrupts (in PIC) mode 387 6323732 e1000g reports incorrect packet statistics 388 6333880 Customer is requesting driver for a newIntel 82573 NIC 389 6336163 netlb support needed for Solaris (sparc) e1000g driver 390 6339377 e1000g.conf needs to be simplified 391 6350407 e1000 card in Gateway E2300 does not actually send packets in S10U1 392 6364052 e1000g driver should provide interface to ndd utility 393 6367490 e1000g has problem in deliver UDP fragment with addin card 394 3955.0.6 396====== 397 This version has the following fix: 398 4967732 e1000g: high mutex contention in e1000g_start 399 6316907 e1000g: bcopy() brings better performance in transmitting and receiving small packet 400 6371753 aggregation of e1000g NICs fails to provide connectivity unless snoop is running 401 6397163 Jumbo frame statistics always counts zero with e1000g driver 402 6401903 Memory leak in e1000g driver 403 4045.0.7 405====== 406 This version has the following fix: 407 6337450 e1000g interfaces take much much longer to plumb than bge interfaces on the V40. 408 6392401 Intel Ophir (82571) e1000g driver fails to attach on sun4u Boston with snv_33 409 6401659 vlan header getting corrupted due to memmove in e1000g sendPacket 410 6407374 e1000g still uses some old ddi interrupt routines that need to be changed 411 6411339 BAD TRAP: e1000g_fill_tx_ring NULL pointer dereference 412 4135.0.8 414====== 415 This version has the following fix: 416 6399084 ipmp doesn't work with e1000g 417 6412153 ndd force speed is not consistent with e1000g.conf and e1000g(7D) 418 6415019 system panic when plumb e1000g interface up on SPARC 419 6415416 netlbtest does not run on Intel(R) PRO/1000 Network controller 420 4215.0.9 422====== 423 This version has the following fix: 424 6337987 Serial Over Lan issue when e1000g driver is used 425 4265.1.0 427====== 428 This version has the following fix: 429 PSARC/2006/248 Nemo MAC-Type Plugin Architecture 430 PSARC/2006/249 Nemo Changes for Binary Compatibility 431 6384371 GLDv3 only supports Ethernet 432 6242059 nemo drivers must not know the size of the mac_t structure 433 6226635 MAC stats interface could cause problems with binary compatibility 434 4355.1.1 436====== 437 This version has the following fix: 438 6384266 e1000g driver should provide external loopback support 439 6428883 NEM e1000g drive netlbtest intermittent failed when running Sunvts FUNC test with cputest,vmemtest.. 440 6430731 e1000g.conf file removed on upgrade 441 6431317 add support for intel Pro/1000 PT Adapter 442 6433236 Update the e1000g driver with the latest shared code from Intel 443 6439589 e1000g: whines about checksum capability, unclear what user should do 444 6441386 The default value of some e1000g parameters may impact rx performance 445 6445239 assertion failed: cookie_count == 1, file: ../../common/io/e1000g/e1000g_alloc.c, line: 422 446 6447914 e1000g should support setting of multiple unicast addresses 447 6449595 Ophir LAA driver workaround is not working for e1000g Driver 448 4495.1.2 450====== 451 This version has the following fix: 452 6450683 Boston panics with e1000g under stress 453 6463536 BAD TRAP panic for removing aggregation 454 6463756 e1000g - link_speed / kstat output 455 6464426 e1000g driver needs a workaround to solve an ESB2 hardware issue 456 4575.1.3 458====== 459 This version has the following fix: 460 6436387 e1000g panic while using cfgadm to unconfigure the pcie slot 461 6460403 disconnect of pcieX that has ophir with network if plumbed crashes the system 462 6466962 S10u2 e1000g 5.0.9 adv_autoneg_cap is not reflected on the kstat -p 463 6470233 e1000g_fill_tx_ring doesn't always update TDT properly 464 4655.1.4 466====== 467 This version has the following fix: 468 6462893 HCTS network test failed on thumper machine due to e1000g issue 469 6467860 e1000g configured/used as cluster interconnect goes up and down when connected back to back 470 4715.1.5 472====== 473 This version has the following fix: 474 6479912 Interrupt throttling tunable needed 475 6492025 northstar MMF e1000g external loopback fail. 476 4775.1.6 478====== 479 This version has the following fix: 480 6482530 Need Ethernet driver for Intel G965 chipset 481 6491179 link aggregation with e1000g does not work unless snoop is running 482 6494743 e1000g 5.1.4 driver does not work with s11_52 483 6502458 e1000g is open source, move the source from usr/closed to use/src 484 6505360 e1000g Makefile should not include "-N drv/dld" in the LDFLAGS 485 4865.1.7 487====== 488 This version has the following fix: 489 6454375 e1000g link flaps at initialization, triggering failovers 490 6472255 e1000g can't restore to 1000M with ndd setting 491 6496763 e1000g should free packets when link is down 492 6501294 "eeprom checksum failed" with pci8086,108c device 493 6504688 e1000g.conf settings are inconsistent with ndd output 494 6505445 e1000g : when all advertised capabilities are set to 0, ndd puts all of them 1 495 6519690 e1000g should not print the link up/down messages to console 496 6531474 Fatal PCIe Fabric Error panics on T2000 when using jumbo frames on e1000g interfaces 497 6535712 e1000g: the processing of the checksum flags should be protected by tx_lock 498 4995.1.8 500====== 501 This version has the following fix: 502 6548711 e1000g: recursive mutex_enter in e1000g_link_check() on ESB2 platforms 503 6550086 e1000g: detaching driver immediately after attach induces panic 504 5055.1.9 506====== 507 This version has the following fix: 508 6507422 Dynamic Reconfiguration detach fails for e1000g 509 5105.1.10 511====== 512 This version has the following fix: 513 6490623 Some networking problems with Solaris_b44_64 domU(using solaris_b44_64 dom0) 514 6510396 system panicked in e1000g_82547_timeout 515 6554976 e1000g driver does not support 10D5 device - Sun Pentwater PEM quad port 516 5175.1.11 518====== 519 This version has the following fix: 520 6552853 system panics in e1000g_alloc_dvma_buffer during hotplug testing 521 5225.2.0 523====== 524 This version has the following fix: 525 6535620 e1000g needs to support ICH9 devices 526 6572330 e1000g: integrate the latest Intel refactored shared code 527 6573381 e1000g receiving VLAN tagged frames does not do hardware checksumming 528 5295.2.1 530====== 531 This version has the following fix: 532 6594676 e1000g should free private dips while no rx buffers are held by upper layer 533 5345.2.2 535====== 536 This version has the following fix: 537 6480448 Sunvts netlbtest external loopback failed on 82546 chipset 538 6521984 Sunvts netlbtest failed on Northstar QGE cards 539 6531842 e1000g link goes down and up frequently on T2000 systems 540 6540535 Sunvts netlbtest internal loopback failed on ophir devices 541 6579605 Sunvts netlbtest internal loopback failed on Northstar fiber card 542 6595668 e1000g postinstall script missed 5 device ids which had been supported by shared code 543 5445.2.3 545====== 546 This version has the following fix: 547 6335851 e1000g needs to support FMA 548 6605171 WARNING: pciex8086,105e - e1000g[0] : Initialize hw failed 549 5505.2.4 551====== 552 This version has the following fix: 553 6619929 Sunvts test on Northstar QGC EM failed for "Not received any packets in loopback mode". 554 6541233 e1000g driver performs 33X Slower for Tibco RV when running Multiple RVDs 555 6572343 e1000g: needs to improve the ip forwarding performance 556 6637039 e1000g_recycle() missed a mutex_exit() 557 5585.2.5 559====== 560 This version has the following fix: 561 6648775 e1000g: pci8086,10be - e1000g[0]: Identify hardware failed 562 5635.2.6 564====== 565 This version has the following fix: 566 6633239 e1000g: link flaps observed on Galaxy(X4100) systems running 64-bit kernel 567 5685.2.7 569====== 570 This version has the following fix: 571 6673650 e1000g needs to support Brussels 572 5735.2.8 574====== 575 This version has the following fix: 576 6674179 SunFire X4150 panics at e1000g_receive 577 6679136 E1000g with patch 128028-03 will not allow pause frames to be set 578 6687947 e1000g needs to integrate the latest Intel shared code to support ICH9m 579 6699622 e1000g: add support for network device in new development machine 580 5815.2.9 582====== 583 6665738 e1000g issues with some Ethernet controllers 584 6713685 e1000g:one device id macro should be renamed 585 5865.2.10 587====== 588 This version has the following fixes: 589 6335837 e1000g needs to support LSO 590 6637659 e1000g has problem on transmit hardware checksum support 591 5925.2.11 593====== 594 This version has the following fixes: 595 6698039 e1000g tx doesn't work on the specific chipset since snv_88 596 6597545 e1000g ESB2 serdes device pciex8086,1098 hangs in network testing 597 6693205 running sunvts7.0 on Generic s10u5build10 causes unix:cmi_mca_panic on thumper 598 6694279 e1000g driver: internal loopback mode support needed for nic ESB-2 599 6721574 max number of segments in e1000g_tx_dma_attr need to be updated when LSO is supported 600 6015.2.12 602====== 603 This version has the following fix: 604 6634746 e1000g is missing lint target in Makefile 605 6705005 e1000g LINK/ACT LED behaviour is not consistent with the EEPROM default 606 6738552 e1000g rx_lock is not initialized and destroyed in the code 607 6085.2.13 609====== 610 This version has the following fix: 611 6666998 Add support for ICH10 in e1000g driver 612 6709230 Requesting driver support in e1000g for new Intel(R) single port MAC/PHY NIC 613 6727113 e1000g performance regression is observed with large connection and packet size if LSO is enabled 614 6756917 LSO is not enabled on some e1000g chips 615 6165.2.14 617====== 618 This version has the following fix: 619 6713032 e1000g port hang, no xmit, no recv 620 6767201 e1000g default_mtu does not coincide with max_frame_size on some chipsets when set via e1000g.conf 621 6225.3.1 623====== 624 This version has the following fix: 625 6779610 e1000g fails to attach post-6713032 due to memory allocation failures on some chipsets 626