summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* With the permissions of phk@ change the license on kern_jail.cbz2008-11-281-6/+22
| | | | to a 2 clause BSD license.
* Fix matching of message queues by name.ed2008-11-281-1/+2
| | | | | | | | | | | | | | | The mqfs_search() routine uses strncmp() to match message queue objects by name. This is because it can be called from environments where the file name is not null terminated (the VFS for example). Unfortunately it doesn't compare the lengths of the message queue names, which means if a system has "Queue12345", the name "Queue" will also match. I noticed this when a student of mine handed in an exercise using message queues with names "Queue2" and "Queue". Reviewed by: rink
* missing V_des2008-11-281-1/+1
|
* Add a reference to hwpmc_core.c most likely missed in r185363bz2008-11-281-0/+1
| | | | to try to unbreak universe (untested).
* Remove duplicate 2610SA entry.emaste2008-11-271-2/+0
| | | | Submitted by: jkim
* Let ARM loader(8) build with the man page.raj2008-11-271-4/+3
|
* Explicitely note that destroy_dev() sleeps.kib2008-11-271-0/+1
| | | | Requested by: ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
* Replace most INP_CHECK_SOCKAF() uses checking if it is anbz2008-11-273-8/+4
| | | | | | | | | IPv6 socket by comparing a constant inp vflag. This is expected to help to reduce extra locking. Suggested by: rwatson Reviewed by: rwatson MFC after: 6 weeks
* Merge in6_pcbfree() into in_pcbfree() which after the previousbz2008-11-277-75/+17
| | | | | | | | | | IPsec change in r185366 only differed in two additonal IPv6 lines. Rather than splattering conditional code everywhere add the v6 check centrally at this single place. Reviewed by: rwatson (as part of a larger changset) MFC after: 6 weeks (*) (*) possibly need to leave a stub wrapper in 7 to keep the symbol.
* Unify ipsec[46]_delete_pcbpolicy in ipsec_delete_pcbpolicy.bz2008-11-276-27/+5
| | | | | | | | | Ignoring different names because of macros (in6pcb, in6p_sp) and inp vs. in6p variable name both functions were entirely identical. Reviewed by: rwatson (as part of a larger changeset) MFC after: 6 weeks (*) (*) possibly need to leave a stub wrappers in 7 to keep the symbols.
* - Add support for PMCs in Intel CPUs of Family 6, model 0xE (Core Solojkoshy2008-11-2714-37/+2909
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and Core Duo), models 0xF (Core2), model 0x17 (Core2Extreme) and model 0x1C (Atom). In these CPUs, the actual numbers, kinds and widths of PMCs present need to queried at run time. Support for specific "architectural" events also needs to be queried at run time. Model 0xE CPUs support programmable PMCs, subsequent CPUs additionally support "fixed-function" counters. - Use event names that are close to vendor documentation, taking in account that: - events with identical semantics on two or more CPUs in this family can have differing names in vendor documentation, - identical vendor event names may map to differing events across CPUs, - each type of CPU supports a different subset of measurable events. Fixed-function and programmable counters both use the same vendor names for events. The use of a class name prefix ("iaf-" or "iap-" respectively) permits these to be distinguished. - In libpmc, refactor pmc_name_of_event() into a public interface and an internal helper function, for use by log handling code. - Minor code tweaks: staticize a global, freshen a few comments. Tested by: gnn
* The timezone byte is a signed value, treat it as such.kientzle2008-11-271-1/+1
| | | | | | | | | Otherwise, time zone information for time zones west of GMT gets discarded. PR: kern/128934 Submitted by: J.R. Oldroyd MFC after: 4 days
* Remove unused variable.ganbold2008-11-271-2/+1
| | | | | | | Found with: Coverity Prevent(tm) CID: 3664 Approved by: kib
* Don't let ata_completed() dereference a null request->dma pointer topeter2008-11-271-1/+1
| | | | print dma status after a media error.
* Small nit I just noticed, a pre-decrement should be post.jfv2008-11-271-1/+1
|
* Thanks to the reminder from Ganbold, small fix in the RX failurejfv2008-11-271-13/+11
| | | | | path for an infinite loop. Problem originally noticed in ixgbe by Jeff Roberson and fixed there. Thanks to everyone involved.
* Add basic WOL support for 82550/82551/82558 and 82559 basedyongari2008-11-273-11/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | controllers. ICH based controllers are treated as 82559. 82557, earlier revision of 82558 and 82559ER have no WOL capability. o WOL support requires help of a firmware so add check whether hardware is capable of handling magic frames by reading EEPROM. o Enable accepting WOL frames only when hardware is about to suspend or shutdown. Previously fxp(4) used to allow receipt of magic frame under normal operation mode which could cause hardware hang if magic frame is received by hardware. Datasheet clearly states driver should not allow WOL frames under normal operation mode. o Disable WOL frame reception in device attach so have fxp(4) immunize against system hang which can be triggered by magic packets when the hardware is not in fully initialized state. o Don't reset all hardware configuration data in fxp_stop() otherwise important configuration data is lost and this would reset WOL configuration to default state which in turn cause hardware hang on receipt of magic frames. To fix the issue, preserve hardware configuration data by issuing a selective reset. o Explicitly disable interrupts after issuing selective reset as reset may unmask interrupts. Tested by: Alexey Shuvaev < shuvaev <> physik DOT uni-wuerzburg DOT de >
* This delta is primarily a fix for es2lan devices thatjfv2008-11-2626-1388/+1368
| | | | | | | | | | | | | will sometimes fail to initialize problem due to a lock contention with management hardware. However, in order to deliver that fix it was necessary to take a shared code update as a whole, and this required scattered changes in the core code to be compatible. The em driver now has VLAN HW support added as the igb driver had previously. MFC after: ASAP - in time for 7.1 RELEASE
* Updated ixgbe driver - version 1.6.2jfv2008-11-2611-1026/+1999
| | | | | | | | | -This version has header split, and as a result a number of aspects of the code have been improved/simplified. - Interrupt handling refined for performance - Many small bugs fixed along the way MFC after: ASAP - in time for 7.1
* Remove an unused variable.jkim2008-11-261-2/+1
| | | | | Found with: Coverity Prevent(tm) CID: 3677
* Merge more of currently non-functional (i.e. resolving tozec2008-11-2630-75/+101
| | | | | | | | | | | | | | | | | whitespace) macros from p4/vimage branch. Do a better job at enclosing all instantiations of globals scheduled for virtualization in #ifdef VIMAGE_GLOBALS blocks. De-virtualize and mark as const saorder_state_alive and saorder_state_any arrays from ipsec code, given that they are never updated at runtime, so virtualizing them would be pointless. Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* Fix a typo in previous commit: must call "putn" to print a crlf,luigi2008-11-261-1/+1
| | | | | | | | | | instead of "puts" which prints whatever is at %si, followed by a CRLF. It was not noticed during tests because at that point %si points to a partition entry whose first byte is 0x80, which is both a terminator for the string and a non printable character. Submitted by: Christoph Mallon
* Remove in6_pcbdetach() as it is exactly the same functionbz2008-11-265-45/+12
| | | | | | | | as in_pcbdetach() and we don't need the code twice. Reviewed by: rwatson MFC after: 6 weeks (*) (*) possibly need to leave a stub wrapper in 7 to keep the symbol.
* Use newly introduced cpu_vendor_id to make invariant TSC detection morejkim2008-11-262-15/+26
| | | | clearer and merge r185295 to amd64.
* Introduce cpu_vendor_id and replace a lot of strcmp(cpu_vendor, "...").jkim2008-11-2626-119/+221
| | | | Reviewed by: jhb, peter (early amd64 version)
* Pass the pointer to the selected partition in %si to the next stageluigi2008-11-261-2/+3
| | | | | | | | | | | | | | | boot code. The bug was introduced in rev.1.13, and went unnoticed because FreeBSD's boot1 does not use it, but other systems might. (I have been struggling for almost a full day trying to figure out why a syslinux'ed partition would not boot when started with the FreeBSD /boot/boot0, only to realize that the bug was ours!) The space for the two extra bytes (push %si and pop %si) is reclaimed by removing an extra CRLF that is printed before booting. The bug is not a major one but if there is time it might be a good thing to merge it into the upcoming releases.
* - Add the device ID for the HP HS2300 MC8775 clone (michael)n_hibma2008-11-262-6/+8
| | | | | | | - Bugfix: Don't excede static number of ports allowed when iterating over endpoints within an interface. - u3g_speeds contains speeds in baud, not bytes per second, so divide the buffer size by 10.
* Document that all the other commands are eitherrdivacky2008-11-261-0/+16
| | | | | | | | | identical to the FreeBSD ones or rejected by kern_msgctl(). Found with: Coverity Prevent(tm) CID: 3456 Approved by: kib (mentor)
* Remove unused variable.ganbold2008-11-261-4/+4
| | | | | | | Found with: Coverity Prevent(tm) CID: 3695,3696 Approved by: harti
* In null_lookup(), do the needed cleanup instead of panicing sayingkib2008-11-261-5/+4
| | | | | | | | the cleanup is needed. Reported by: kris, pho Tested by: pho MFC after: 2 weeks
* - Support IEEE_P1282 and IEEE_1282 tags in the rock ridge extensions record.lulf2008-11-261-2/+6
| | | | | PR: kern/128942 Submitted by: "J.R. Oldroyd" <fbsd - at - opal.com>
* Unify the v4 and v6 versions of pcbdetach and pcbfree as goodbz2008-11-262-6/+9
| | | | | | | | | as possible so that they are easily diffable. No functional changes. Reviewed by: rwatson MFC after: 6 weeks
* Plug a credential leak in case the inpcb is freed bybz2008-11-261-0/+1
| | | | | | | in6_pcbfree() instead of in_pcbfree(); missed in r183606. Reviewed by: rwatson MFC after: 3 days (instantly for 7.1-RC?)
* Add Pentium D cores into the list that can't handle 12.5% and 25%sobomax2008-11-261-1/+4
| | | | | | | | | throttle. My SMP kernel hangs when one of those is selected by powerd. Errata AA21 here: ftp://download.intel.com/design/PentiumXE/specupdt/31030717.pdf MFC after: 2 weeks
* Implement TSO for 82550/82551 controllers.yongari2008-11-263-14/+118
| | | | | | | | | | | | | | | | | | | | | | o Configure controller to use dynamic TBD as TSO requires that operation mode. o Add a dummy TBD to tx_cb_u as TSO can access one more TBD in TSO operation. o Increase a DMA segment size to 4096 to hold a full IP segment with link layer header. o Unlike other TSO capable controllers, 82550/82551 does not modify the first IP packet in TSO operation so driver should create an IP packet with proper header. Subsequent IP packets are generated from the header information in the first IP packet header. Likewise pseudo checksum also should be computed by driver for the first packet. o TSO requires one more TBD to hold total TCP payload. To make code simple for TSO/non-TSO case, increase the index of the first available TBD array. o Remove KASSERT that checks the size of a DMA segment should be less than or equal to MCLBYTES as it's no longer valid in TSO. o Tx threshold and number of TBDs field is used to store MSS in TSO. So don't set the Tx threshold in TSO case.
* Implement Rx checksum offload for 82559 or later controllers.yongari2008-11-262-28/+110
| | | | | | | | | | | | | 82559 or later controllers added simple checksum calculation logic in RU. For backward compatibility the computed checksum is appended at the end of the data posted to Rx buffer. This type of simple checksum calculation support had been used on several vendors such as Sun HME/GEM, SysKonnect GENESIS and Marvell Yukon controllers. Because this type of checksum offload support requires parsing of received frame and pseudo checksum calculation with software routine it still consumes more CPU cycles than that of full-fledged checksum offload controller. But it's still better than software checksum calculation.
* o Introduce a new function, fxp_new_rfabuf which allocates a newyongari2008-11-261-27/+69
| | | | | | | | | | | | | | | | | | | | | | | | | Rx buffer and loads DMA map. Also add a function fxp_discard_rfabuf that handles reusing Rx buffer/DMA map. With this change fxp_add_rfabuf just handles appending a new RFA to existing chain. o Initialize mbuf length in fxp_new_rfabuf. o Don't reset rnr and have fxp(4) handle received frames even if it couldn't allocate new Rx buffer. This will make fxp(4) reload updated RFA under rnr case. The rnr would still be reset to 0 if polling is active and fxp(4) processed number of allowed Rx events. o Update if_iqdrops if fxp(4) couldn't allocate Rx buffer. Previously fxp(4) used to try to reuse Rx buffer when new buffer allocation is failed. But fxp(4) didn't take into account loaded DMA map such that the same DMA map was loaded again without unloading the map. There is no reason to unload the loaded map and reload the same map again, just reusing the map is enough. I believe the spare DMA map in softc was introduced to implement this behaviour. Also fxp(4) used to stop Rx processing if once Rx buffer allocation or DMA map load fails which in turn resulted in losing incoming frames under heavy network load. With this change fxp(4) should survive from resource shortage condition.
* Allow dumpon to a partition of type FS_UNUSED as well.marcel2008-11-261-2/+3
|
* MFp4: We don't support TX_CREATE_ACL_ATTR nor TX_MKDIR_ACL_ATTR; code foundtrasz2008-11-251-0/+8
| | | | | | | in zfs_replay.c will panic if it encounters transactions of this type. Make sure we don't put these into the ZIL. Approved by: rwatson (mentor), pjd
* Fix locking (file descriptor table and Giant around VFS).pjd2008-11-254-35/+56
| | | | | Most submitted by: kib Reviewed by: kib
* - Fix a potential NULL pointer reference. Note that this should not happen inlulf2008-11-251-1/+17
| | | | | | | | | practice, but it is a good programming practice and allows the kernel to not depend on userland correctness. - While there, make sizeof usage match the rest of the code. Found with: Coverity Prevent(tm) CID: 660, 662
* Remove unused variable.ganbold2008-11-252-4/+2
| | | | | | | Found with: Coverity Prevent(tm) CID: 3669,3671 Approved by: jb
* - Fix a potential NULL pointer reference. Note that this cannot happen inlulf2008-11-255-6/+51
| | | | | | | | practice, but it is a good programming practice nontheless and it allows the kernel to not depend on userland correctness. Found with: Coverity Prevent(tm) CID: 655-659, 664-667
* Remove unused variable.ganbold2008-11-251-2/+1
| | | | | | | Found with: Coverity Prevent(tm) CID: 3678 Approved by: njl
* Convert BWCT and HL200 over to new board mechanism as well. Theimp2008-11-2511-51/+260
| | | | | TSC4370 config file wasn't committed to this tree, so I don't know if my changes will work on it or not.
* Remove unused variable.ganbold2008-11-251-3/+0
| | | | | | | Found with: Coverity Prevent(tm) CID: 3685 Approved by: scottl
* Start to make it easier to add AT91RM9200 based boards:imp2008-11-257-52/+135
| | | | | | | | | | | | | o Copy kb920x_machdep.c to at91_machdep.c o Move board_init to new board_kb920x.c o rename ramsize to at91_ramsize and make it accessible to board_* files. o Delete files.kb920x. We can do this selection with the new boards. o Add a stub for the tsc4370 board init, which will be added in a future commit. o Add new 'devices' at91_board_kb920x and at91_board_tsc4370. More are needed and will be added in future commits. Reviewed by: stass, cognet
* Whitespace nit.imp2008-11-251-2/+2
|
* Fix standalone module build by generating opt_kgssapi.h.dfr2008-11-251-0/+1
| | | | Submitted by: n_hibma
* Move vn_fullpath1() outside of FILEDESC locking. This is being done inmarcus2008-11-251-5/+21
| | | | | | | | | | advance of teaching vn_fullpath1() how to query file systems for vnode-to-name mappings when cache lookups fail. Thanks to kib for guidance and patience on this process. Reviewed by: kib Approved by: kib
OpenPOWER on IntegriCloud