summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow a comma-separated list of network interfaces to be specified via thecperciva2009-05-151-9/+16
| | | | | | | netDev option in install.cfg. Submitted by: randi MFC after: 1 week
* As the comment says, close() frees the variable, record. So we obtaindelphij2009-05-141-1/+1
| | | | | | | | the length by evaluating the value from the copy, cbuf instead. This fixes a crash caused by previous commit (use-after-free) Submitted by: Dimitry Andric <dimitry andric com> Pointy hat to: delphij
* Some comment/space changes (FALLTHRU -> FALLTHROUGH, space after while).delphij2009-05-141-3/+3
|
* Try to workaround a race where bge_stop() may sneak in when bge_rxeof()delphij2009-05-141-0/+9
| | | | | | | | | | drops and re-grabs the softc mutex in the middle, resulting in kernel trap 12. This may happen when a lot of traffic is being hammered on one bge(4) interface while the system is shutting down. Reported by: Alexander Sack <pisymbol gmail com> PR: kern/134548 MFC After: 2 weeks
* - Use a separate sx lock to try to limit the number of concurrent userlandjhb2009-05-141-7/+16
| | | | | | | | | sysctl requests to avoid wiring too much user memory. Only grab this lock if the user's old buffer is larger than a page as a tradeoff to allow more concurrency for common small requests. - Just use a shared lock on the sysctl tree for user sysctl requests now. MFC after: 1 week
* Trim the default set of device hints on i386 and amd64:jhb2009-05-142-51/+0
| | | | | | | | | - Remove vga0 and the disabled uart2/uart3 hints from both platforms. - Remove hints for ISA adv0, bt0, aha0, aic0, ed0, cs0, sn0, ie0, fe0, and le0 from i386. All these hints were marked 'disabled' and thus already did not work "out of the box". Discussed with: imp
* Apply changes to the experimental nfs server so that it uses the securityrmacklem2009-05-1410-74/+180
| | | | | | | flavors as exported in FreeBSD-CURRENT. This allows it to use a slightly modified mountd.c instead of a different utility. Approved by: kib (mentor)
* Staticize two functions not used outside of in_pcb.c: in_pcbremlists() andrwatson2009-05-142-9/+4
| | | | | | db_print_inpcb(). MFC after: 1 month
* Change the file names in the comments in sys/fs/nfs/nfs_var.h sormacklem2009-05-141-34/+30
| | | | | | | that they are the names used in FreeBSD-CURRENT. Also shuffled a few entries around, so that they under the correct comment. Approved by: kib (mentor)
* FreeBSD right now support 32 CPUs on all the architectures at least.attilio2009-05-147-93/+35
| | | | | | | | | | | | | | | | With the arrival of 128+ cores it is necessary to handle more than that. One of the first thing to change is the support for cpumask_t that needs to handle more than 32 bits masking (which happens now). Some places, however, still assume that cpumask_t is a 32 bits mask. Fix that situation by using always correctly cpumask_t when needed. While here, remove the part under STOP_NMI for the Xen support as it is broken in any case. Additively make ipi_nmi_pending as static. Reviewed by: jhb, kmacy Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
* Avoid floating point arithmetic while calculating iquiry length.emax2009-05-141-11/+14
| | | | | Submitted by: Iain Hibbert < plunky -at- rya-online -dot- net > MFC after: 1 week
* Improve style(9)raj2009-05-141-6/+6
|
* PowerPC common SMP startup and time base rework.raj2009-05-146-57/+77
| | | | | | | | | | - make mftb() shared, rewrite in C, provide complementary mttb() - adjust SMP startup per the above, additional comments, minor naming changes - eliminate redundant TB defines, other minor cosmetics Reviewed by: marcel, nwhitehorn Obtained from: Freescale, Semihalf
* add missing type for SYSCTL_PROC items; w/o a type you can view the valuesam2009-05-141-6/+6
| | | | but not change it
* correct handling of ctl frames: the sender's address is always i_addr2 forsam2009-05-141-12/+0
| | | | | | | frames we should expect to process (old code was trying to handle frames we should never see--like ACK) Reviewed by: thompsa, cbzimmer
* MFi386: revision 192050nyan2009-05-143-0/+10
| | | | Implement simple machine check support.
* - Add a void pointer to the ata-pci controller softc to allowjhb2009-05-143-21/+26
| | | | | | | | | | | | | chipset-specific code to attach chipset-specific data. - Use chipset-specific data in the acard and promise chipsets rather than changing the ivars of ATA PCI devices. ivars are reserved for use by the parent bus driver and are _not_ available for use by devices directly. This fixes a panic during sysctl -a with certain Promise controllers with ACPI enabled. Reviewed by: mav Tested by: Magnus Kling (kingfon @ gmail) (on 7) MFC after: 3 days
* Compare the correct variable against NULL.brueffer2009-05-141-1/+1
| | | | | | | Reviewed by: scottl Found with: Coverity Prevent(tm) CID: 821 MFC after: 2 weeks
* Remove usb_ethersubr.c missed reference -- we don't build ousbrwatson2009-05-141-1/+0
| | | | with LINT, so the tinderbox didn't pick this up.
* Do not advance req->oldidx when sysctl_old_user returning ankib2009-05-141-3/+5
| | | | | | | | | | | | | error due to copyout failure or short buffer. The later breaks the usermode iterators of the sysctl results that pack arbitrary number of variable-sized structures. Iterator expects that kernel filled exactly oldlen bytes, and tries to interpret half-filled or garbage structure at the end of the buffer. In particular, kinfo_getfile(3) segfaulted. Reported and tested by: pho MFC after: 3 weeks
* Remove an unused variable.brueffer2009-05-141-2/+0
| | | | | Found with: Coverity Prevent(tm) CID: 1167
* Set crashinfo_enable to "YES" by default.rodrigc2009-05-141-1/+1
| | | | | | | | | | | During bootup, if /etc/rc.d/savecore detects a core dump file on the dump device, the core file will be saved, and the crashinfo script will be run to generate a human-readable report. This will make it easier for end-users to provide feedback to developers about kernel crashes. Reviewed by: jhb
* Ignore the INADDR_ANY address inserted/deleted by DHCP when installing a ↵qingli2009-05-141-1/+5
| | | | | | loopback route to the interface address.
* Call drbr_stats_update to update ifp stats directly when we bypass the ↵kmacy2009-05-141-3/+6
| | | | buf_ring on transmit
* - Implement a lockless file descriptor lookup algorithm injeff2009-05-146-77/+117
| | | | | | | | | | | | fget_unlocked(). - Save old file descriptor tables created on expansion until the entire descriptor table is freed so that pointers may be followed without regard for expanders. - Mark the file zone as NOFREE so we may attempt to reference potentially freed files. - Convert several fget_locked() users to fget_unlocked(). This requires us to manage reference counts explicitly but reduces locking overhead in the common case.
* Factor out platform dependent things unrelated to device drivers into anwhitehorn2009-05-1425-234/+948
| | | | | | | | | | new platform module. These are probed in early boot, and have the responsibility of determining the layout of physical memory, determining the CPU timebase frequency, and handling the zoo of SMP mechanisms found on PowerPC. Reviewed by: marcel, raj Book-E parts by: raj
* Snip redundant assignment.des2009-05-131-1/+1
| | | | | | Approved by: scottl MFC after: 2 weeks Coverity ID: 3863
* Apply a one line change to nfs_clbio.c (which is largely a copyrmacklem2009-05-131-1/+2
| | | | | | | of sys/nfsclient/nfs_bio.c) to track the change recently committed by acl for nfs_bio.c. Approved by: kib (mentor)
* - Set MAC address in ateinit, so it can be changed later.stas2009-05-131-8/+7
|
* - Style(9) and consistency nitpicking.stas2009-05-131-72/+88
| | | | Reviewed by: imp
* Keep this line shorter than 80 columns.ed2009-05-131-2/+2
|
* - Make SPI bus bridge be non-arch dependent by using more genericgonzo2009-05-132-2/+2
| | | | | | name Reviewed by: imp
* - Remove nonexistent header file from includes listgonzo2009-05-131-1/+0
|
* Ensure the bmRequestType is the right type for the incoming control request.thompsa2009-05-131-2/+4
| | | | Submitted by: Hans Petter Selasky
* Add parenthesis around the xfer macro argument.thompsa2009-05-131-3/+3
| | | | Submitted by: Hans Petter Selasky
* Make sure collections have the usage field set.thompsa2009-05-131-3/+9
| | | | Submitted by: Hans Petter Selasky
* Check the correct variable for IO_NDELAY.thompsa2009-05-131-2/+2
| | | | Submitted by: Hans Petter Selasky
* Add debug lines for fullspeed and highspeed xfer completion.thompsa2009-05-131-0/+4
| | | | Submitted by: Hans Petter Selasky
* Sync to P4thompsa2009-05-132-64/+90
| | | | | | Add umass quirks for Alcor AU6390, Cypress PATA 6830XX and MPMan MPF400. Submitted by: Hans Petter Selasky
* The transfer must return USB_ERR_CANCELLED when the device is gone due to thethompsa2009-05-131-1/+5
| | | | | | way usb drivers work. Submitted by: Hans Petter Selasky
* Implement simple machine check support for amd64 and i386.jhb2009-05-1314-0/+1238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - For CPUs that only support MCE (the machine check exception) but not MCA (i.e. Pentium), all this does is print out the value of the machine check registers and then panic when a machine check exception occurs. - For CPUs that support MCA (the machine check architecture), the support is a bit more involved. - First, there is limited support for decoding the CPU-independent MCA error codes in the kernel, and the kernel uses this to output a short description of any machine check events that occur. - When a machine check exception occurs, all of the MCx banks on the current CPU are scanned and any events are reported to the console before panic'ing. - To catch events for correctable errors, a periodic timer kicks off a task which scans the MCx banks on all CPUs. The frequency of these checks is controlled via the "hw.mca.interval" sysctl. - Userland can request an immediate scan of the MCx banks by writing a non-zero value to "hw.mca.force_scan". - If any correctable events are encountered, the appropriate details are stored in a 'struct mca_record' (defined in <machine/mca.h>). The "hw.mca.count" is a count of such records and each record may be queried via the "hw.mca.records" tree by specifying the record index (0 .. count - 1) as the next name in the MIB similar to using PIDs with the kern.proc.* sysctls. The idea is to export machine check events to userland for more detailed processing. - The periodic timer and hw.mca sysctls are only present if the CPU supports MCA. Discussed with: emaste (briefly) MFC after: 1 month
* Garbage collect now-unused NETISR_FORCEQUEUE, which overrode the globalrwatson2009-05-132-11/+5
| | | | | | direct dispatch policy for specific protocols (NETISR_USB). We leave the additional 'flags' argument to netisr_register() for the time being, even though it is no longer required.
* Remove now-unused NETISR_USB.rwatson2009-05-131-1/+0
|
* Garbage collect legacy upgt driver now that it is available in the newrwatson2009-05-134-3211/+0
| | | | | | USB implementation. Garbage collect legacy USB ethernet framework now that it is unused.
* Add a comment to motivate my last change.nwhitehorn2009-05-131-0/+2
| | | | Suggested by: sam, imp
* ifp->if_softc is managed entirely by the driver. We never set it toimp2009-05-131-8/+0
| | | | | | NULL or change it. We initialize it before we set if_ioctl. It can therefore never be NULL, and most other drivers don't bother with this sanity check.
* Add a short delay after programming PHY registers to give some time fornwhitehorn2009-05-131-0/+1
| | | | | the engine to catch up. This prevents a machine check exception from illegal memory requests with a BCM4318.
* Fix print_syscall_ret parameter order.dds2009-05-131-1/+1
|
* Fix compilation error introduced in r192025.dds2009-05-131-1/+2
|
* Fix memory leak in an error case.brueffer2009-05-131-0/+3
| | | | | | Found with: Coverity Prevent(tm) CID: 371 MFC after: 2 weeks
OpenPOWER on IntegriCloud