summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: 92972, 98913 + one more changebz2006-12-1224-181/+297
| | | | | | | In ip6_sprintf no longer use and return one of eight static buffers for printing/logging ipv6 addresses. The caller now has to hand in a sufficiently large buffer as first argument.
* Fix a potential point of confusion. Art Ironport we've seen this end upjulian2006-12-121-3/+6
| | | | with an infinite loop in and out of the kernel during process shutdown.
* Fix support for certain 575x/578x chips. This consists of the following:scottl2006-12-122-35/+274
| | | | | | | | | | | - Use the appropriate register writing method when reseting the chip - Program the descriptor DMA engine correctly. - More reliably detect certain chips and their features. Also add some low-level debugging tools to help future work on this driver. Submitted by: David Christenson (proof of concept changes) Sponsored by: www.UIA.net
* workaround kernel malloc's brittlenesskmacy2006-12-121-1/+8
| | | | | - don't shuffle phys_avail following kernel to the beginning if the range is less than what would remain in a 256MB page (248MB)
* In FreeBSD, we don't need sc_power callbackkevlo2006-12-121-1/+1
| | | | Approved by: cognet and imp
* - provide a more informative panic if mdesc_update() failskmacy2006-12-121-7/+10
| | | | | - handle some cases where the return value of mdesc_update() is not zero when it should be
* - remove vestigial reference to mra[i]kmacy2006-12-121-17/+33
| | | | | - partition phys_avail along 4GB boundaries as possible workaround for hardware problems causing watchdog panics
* Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.mjacob2006-12-111-0/+2
| | | | | | PR: 106543 Reviewed by: Adam Radford MFC after: 3 days
* These days P2P means peer-2-peer (also well known from serveral filesharingthompsa2006-12-114-25/+25
| | | | | | | protocols) while PointToPoint has been PtP links. Change the variables accordingly while the code is still fresh and undocumented. Requested by: bz
* NetApp filers return corrupt post op attrs in the wcc on NFS error responses.mohans2006-12-111-1/+8
| | | | | | | This is easy to reproduce for EROFS. I am not sure if the attrs can be corrupt for other NFS error responses. For now, disabling wcc pre-op attr checks and post-op attr loads on NFS errors (sysctl'ed). Reported by: Kris Kennaway
* Fix distorted sound on ASUS P1-AH2 caused by accumulated input / output.ariff2006-12-111-0/+10
| | | | Reported/Tested by: Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp>
* Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.mjacob2006-12-1129-2/+50
| | | | | PR: 106543 MFC after: 3 days
* - Correct collision counter for BCM5705+. This register is read/clear.jkim2006-12-111-10/+13
| | | | | | | | | | | | | | | | - Correct RX packet drop counter for BCM5705+. This register is read/clear and it wraps very quickly under heavy packet drops because only the lower ten bits are valid according to the documentation. However, it seems few more bits are actually valid and the rest bits are always zeros[1]. Therefore, we don't mask them off here. To get accurate packet drop count, we need to check the register from bge_rxeof(). It is commented out for now, not to penalize normal operation. Actual performance impact should be measured later. - Correct integer casting from u_long to uint32_t. Casting is not really needed for all supported platforms but we better do this correctly[2]. Tested by: bde[1] Suggested by: bde[2]
* o Add support code for newer Marvell PHYs.yongari2006-12-111-127/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Remove unused static global variable e1000phy_debug. o Take advantage of mii_phy_dev_probe(). o Use MII_ANEGTICKS/MII_ANEGTICKS_GIGE instead of magic number 5. o Add IFM_NONE as e1000phy(4) supports it without issues. o Nuke magic PHY programming sequence in PHY reset and follow correct reset sequence. [1] o Make manual media selection work for all supported media types. o Don't set MIIF_NOISOLATE so e1000phy(4) can be used in configurations with multiple PHYs. o In 1000baseT, when setting the link manually, one side must be the master and the other the slave. If LINK0 is set, program the PHY to be a master, otherwise it's a slave. o When we lost a link, reset mii_ticks immediately so it correctly check number of seconds elapsed in autonegotiation phase. o Announce link loss right after it happens. o After kicking autonegotiation, report PHY status instead of returning immediatly. o When link state check is in progress, check auto negotiation completion bit only when auto negotiation is enbaled. o When PHY is resolved to a master, show it with IFM_FLAG2. Special thanks to marius who fixed several nits in original patch. In half-duplex mode, nfe(4) fails to send packets. I think it's a bug in nfe(4) as the same PHY works without problems on msk(4). Obtained from: em(4) [1] Reviewed by: marius Tested by: bz
* Add additional Marvell PHY registers.yongari2006-12-111-0/+10
|
* Add a bunch of new Marvell PHY ids.yongari2006-12-111-0/+14
|
* style(9)yongari2006-12-111-5/+4
|
* defer all processing to a full fledged thread.alfred2006-12-114-180/+209
| | | | | once usb is SMP safe, this should be the first SMPsafe usb ethernet driver.
* make size of pad non-zero so that trap-tracing code doesn't overwrite thekmacy2006-12-111-1/+1
| | | | base of our stack
* Teach the brgphy about some new Broadcom IDs.scottl2006-12-112-0/+3
| | | | | Submitted by: David Christenson Sponsored by: www.UIA.net
* replace if_watchdog w/ a private calloutsam2006-12-112-12/+11
| | | | MFC after: 1 month
* drop softc lock when passing rx frames up the stacksam2006-12-111-0/+3
| | | | MFC after: 1 month
* split wi_start int locked+unlocked variants and use the unlockedsam2006-12-112-9/+15
| | | | | | one from the isr to eliminate a recursive lock MFC after: 1 month
* nuke compatibility cruftsam2006-12-112-41/+0
| | | | MFC after: 1 month
* KTR entry contained invalid context reference - ifdef outkmacy2006-12-101-1/+2
|
* Back out revision 1.264.bms2006-12-101-12/+5
| | | | | | | Fixing the IP accounting issue, if we plan to do so, needs to be better thought out; the 'fix' introduces a hash lookup and a possible kernel panic. Reported by: Mark Tinguely
* Fix AD1986A (and possibily other codecs too) microphone issues.ariff2006-12-101-3/+38
| | | | Tested by: xride (using skype, xanalyser, etc. ; play/record)
* remove more uses of trap_conversion to get more meaningful trap messageskmacy2006-12-101-11/+14
| | | | add a printf for when we fault on the direct area (should never happen)
* Remember to include isp_library.o when building an isp module.mjacob2006-12-101-1/+1
|
* Make cam_xpt's pronouncements match camcontrolmjacob2006-12-101-1/+1
| | | | (Tagged -> Command) Queueing.
* Make MAXPHYS and DFLTPHYS options (finally).mjacob2006-12-102-0/+17
|
* Do explicit bounds checking as a function of the actual size of thekmacy2006-12-101-1/+1
| | | | | reloc_target_bitmask array as opposed to the (known) index of the last value. This change fixes CID 691.
* better handle the case of hw.physmemstart being hw.physmem not being set,kmacy2006-12-101-1/+2
| | | | previously we were acting as if physmem was being set when it was not
* The MODULE_NAME should "ispfw" unless overriden, not "isp".mjacob2006-12-101-1/+1
|
* Remove dependency on ispfw and firmware as modules.mjacob2006-12-102-7/+2
| | | | | | | | | | | | | | | | | Either they're there early and the ispfw sets have registered themselves, or they're not. The module dependency stuff isn't quite what we want anyway. If the user doesn't want the load placed on system memory by loading the firmware, they don't specify it to be loaded (either by being linked in or via being a module to be loaded and then hooked in with firmware(9)). It doesn't then make sense to then override what they want by pulling it in anyway. This might be able to work if we were able to pull in just exactly what we needed for the card we have- but that's an optimization left for the future.
* Add hw.physmemstart loader variable to enable the user to specify the addresskmacy2006-12-101-11/+20
| | | | | | | at which the kernel should start allocating physical memory. The primary purpose of this is to test 64-bit cleanness of the data path by setting hw.physmemstart=4G so that all physical allocations are above 4GB. AMD64 and i386/PAE could also benefit from having this option.
* Make mpt_pci depend on pci and mpt_cam depend on CAM.mjacob2006-12-102-0/+2
| | | | | | PR: 106536 Suggested by: Norikatsu Shigemura MFC after: 3 days
* As Bernd Walter points out, the rlphy is used for more things thanimp2006-12-101-1/+0
| | | | | | | just the intenral phy on parts supported by the rl and re drivers, the RTL8201BL for example. He also sent me a nice picture of hundreds of these chips in a tray to boulder his claim. :-) Therefore remove a comment that suggested that they were...
* Fix handling of the hw.physmem loader variable use real_phys_avail[] whichkmacy2006-12-091-34/+29
| | | | | | is already bounded by hw.physmem to calculate phys_avail[] - previously only real_phys_avail[] was being bound by hw.physmem so we were allocating memory that wasn't mapped in the direct map
* - Fix headphone/speakers automute on Lenovo 3000 N100.ariff2006-12-091-47/+74
| | | | | | | Tested by: xride - GPIO commit cleanups and fixes for possible breakage during previous commit.
* Remove unused variable in unionfs_root().rodrigc2006-12-091-2/+0
| | | | Submitted by: daichi, Masanori OZAWA
* Use vfs_mount_error() in a few places to give more descriptive mount errorrodrigc2006-12-091-2/+6
| | | | messages.
* Add locking around calls to unionfs_get_node_status()rodrigc2006-12-091-0/+4
| | | | | | | in unionfs_ioctl() and unionfs_poll(). Submitted by: daichi, Masanori OZAWA <ozawa@ongs.co.jp> Prompted by: kris
* In unionfs_readdir(), prevent a possible NULL dereference.rodrigc2006-12-091-0/+4
| | | | | CID: 1667 Found by: Coverity Prevent (tm)
* In unionfs_hashrem(), use LIST_FOREACH_SAFE when iterating overrodrigc2006-12-091-2/+3
| | | | | | | the list of nodes to free them. CID: 1668 Found by: Coverity Prevent (tm)
* - remove restriction on OFW kernel allocations being 4Mkmacy2006-12-091-54/+99
| | | | | | | | | | - shuffle memory range following kernel to the beginning of phys_avail - have the direct area use 256MB pages where possible - remove dead code from the end of pmap_bootstrap - have pmap_alloc_contig_pages check all memory ranges in phys_avail before giving up - informal benchmarking indicates a ~5% speedup on buildworld
* Minor cleanup. If we are doing a mount update, and we pass inrodrigc2006-12-091-4/+8
| | | | | | | | | | | an "export" flag indicating that we are trying to NFS export the filesystem, and the MSDOSFS_LARGEFS flag is set on the filesystem, then deny the mount update and export request. Otherwise, let the full mount update proceed normally. MSDOSFS_LARGES and NFS don't mix because of the way inodes are calculated for MSDOSFS_LARGEFS. MFC after: 3 days
* clarify a comment slightlymjacob2006-12-091-1/+1
|
* Find another spot where tagged command queueing gotmjacob2006-12-091-2/+7
| | | | accidentally nuked.
* Fix an oscure bug triggered by a recent change in kern_socket.c.luigi2006-12-081-1/+9
| | | | | | | | | | | | | | | | | | | | | | | The symptoms were that outgoing DHCP requests for diskless kernels had the IP header corrupt. After long investigations, the source of the problem was found in ether_output() - for SIMPLEX interfaces and broadcast traffic, a copy of the packet is passed back to the kernel through if_simloop(). However if_simloop() modifies the mbuf, while the copy obtained through m_copym() is a readonly one. The bug has been there forever, but it has been triggered only recently by a change in sosend_dgram() which passed down mbufs with sufficient space to prepend the header. This fix is trivial - use m_dup() instead of m_copy() to create the copy. As an alternative, we could try and modify if_simloop() to play safely with readonly mbufs, but i don't think it is worthwhile because 1) this is a relatively infrequent code path so we do not need to worry too much about performance, and 2) the cost of doing an extra m_pullup in if_simloop() is probably the same as doing the copy of the cluster, anyways. MFC after: 1 week
OpenPOWER on IntegriCloud