NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/30880 CVS commit: [netbsd-6] src/sys/dev/pci



The following reply was made to PR kern/30880; it has been noted by GNATS.

From: "Soren Jacobsen" <snj%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/30880 CVS commit: [netbsd-6] src/sys/dev/pci
Date: Thu, 4 Dec 2014 06:04:07 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Thu Dec  4 06:04:07 UTC 2014
 
 Modified Files:
 	src/sys/dev/pci [netbsd-6]: if_wm.c if_wmreg.h if_wmvar.h
 
 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1203):
 	sys/dev/pci/if_wm.c: revisions 1.271, 1.273-1.274, 1.277-1.278,
 				       1.280, 1.282, 1.284-1.285, 1.287,
 				       1.293-1.294, 1.297-1.298,
 				       1.300-1.301, 1.305-1.307 via patch
 	sys/dev/pci/if_wmreg.h: revisions 1.57-1.62, 1.64-1.65 via patch
 	sys/dev/pci/if_wmvar.h: revisions 1.19, 1.21 via patch
 - Acquire SW semaphore in wm_get_swsm_semaphore().
 - Fix some bugs realted to semaphore. This change fixes a problem which
   was exposed in if_wm.c rev. 1.271. Tested by riastradh@.
   - Clear the SMBI bit in SWSM register before accessing NVM and PHY in
     wm_attach(). Same as FreeBSD.
   - Fix a bug that 82573 doesn't put the hardware semaphore. Same as
     FreeBSD r256200.
 - Call wm_set_pcie_completion_timeout() on I350, I354, I210 and I211, too.
   Same as FreeBSD and OpenBSD.
 - Drop PHPM_GO_LINK_D bit in WMREG_PHPM on some chips. From FreeBSD.
 - Fix fiber link problem (PR#44776 and PR#30880). Tested with 82543GC, 82544EI,
   82545EM, 82546GB 82571EB and 82572EI fiber cards.
   - Don't use the RXCFG interrupt. It's not required and the interrupt is very
     heavy (a lot of interrupts). Same as {Free,Open}BSD.
   - Modify wm_tbi_mediachange() to be close to em_setup_fiber_serdes_link()
     of {Free,Open}BSD. At least, don't forget to set duplex setting.
   - WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD.
 - Don't check SWSM_SMBI bit if WM_F_LOCK_SWSM isn't set. Fix a problem when
   using vmware with e1000"e". With e1000e which is regarded as 82574L,
   wm_gmii_init() fails with "could not acquire SWSM SMBI" message without
   this change. This problem doesn't occur with real 82574L card.
 - Fix a bug that wm_get_swsm_semaphore() timed out when attaching device on
   some machines.
   - Calculate NVM word size correctly.
   - Determine timeout value based on the NVM word size.
 - It's not required to print "failed to detect NVM bank" message.
   Only print while debugging. Same as {Free,Open}BSD.
 - Add some new I218 devices.
 - Delete 82580ER related code. It was from FreeBSD and was removed in r203049.
 - Fix a bug that the offset of alt MAC address is wrongly calculated to 0
   when alt MAC address function is really used. This bug does not appear
   as real bug if the same MAC address is written in the default location
   and alt MAC address's location.
 - Move some NVM related macros from if_wm.c to if_wmreg.h.
 - Sort definitions in if_wmreg.h
   - move NVM related values to the bottom.
   - sort in register's address' order.
 - Simplify wm_read_mac_addr().
 - Fix debug message.
 - Add missing prototypes.
 - Rename some functions for consistency and clarify.
 - Rename some macros for consistency.
 - Remove a duplicated error message.
 - Fix typo in comment.
 - Cleanup comments.
 - KNF.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.227.2.13 -r1.227.2.14 src/sys/dev/pci/if_wm.c
 cvs rdiff -u -r1.46.2.6 -r1.46.2.7 src/sys/dev/pci/if_wmreg.h
 cvs rdiff -u -r1.12.10.4 -r1.12.10.5 src/sys/dev/pci/if_wmvar.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index