summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* - In gem_ioctl() move the call to ether_ioctl() to the default case ofmarius2005-09-181-47/+29
| | | | | | | | | | | | | | | | | | | | | | | | | the switch statement in order to make this driver more like other Ethernet NIC drivers. - In gem_attach() call gem_stop() in addition to gem_reset() to make sure the chip actually is stopped and not just reset. - In gem_stop() also stop the gem_rint_timeout() callout in case the driver is compiled with GEM_RINT_TIMEOUT defined. Merge some locking improvements from hme(4): - Use callout_init_mtx() to close races between gem_stop() and gem_tick() as weel as gem_stop() and gem_rint() in case the driver is compiled with GEM_RINT_TIMEOUT defined. - Use the driver lock instead of Giant in a bus dma callback. - Lock the driver lock around mii operations. - Cleanup locking in gem_ioctl(). - Remove redundant assertions that the driver lock is not held in gem_attach() and gem_detach() since mtx_lock() will assert that already since the driver lock is not recursive. - Add callout_drain()'s to gem_detach() after calling gem_stop() to make sure that if softclock is running on another CPU and is blocked on our driver lock, we will wait until it has acquired the lock, seen that it was cancelled, dropped the lock, and awakened us so that we can safely destroy the mutex.
* Add a note pointing out that certain information (IP address, list ofcperciva2005-09-181-0/+15
| | | | | | files fetched, FreeBSD release level) is transmitted to the portsnap server when portsnap is run, but that this information is only used anonymously and in aggregate.
* ehcivar.h:netchild2005-09-184-12/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synchronise with NetBSD upto rev 1.19: - Allow 32 chars in the saved vendor string. - Some NetBSD-only changes. - Some missing parts (define, variable). ehci_pci.c: Add vendor ids for ATI and Philips. Add identification strings for the following: o ALi's M5239 o AMD 8111 o ATI SB200, SB400 o Intel 6300ESB, ICH4, ICH5, ICH7 o NVIDIA nForce 2, nForce 3, nForce 4 o Philips ISP156x ehcireg.h: We're at the same level as rev 1.18 from NetBSD. usb_port.h: NetBSD/OpenBSD specific things Obtained from: NetBSD via DragonFly No comment from: usb@
* Fix spelling in a comment.rwatson2005-09-181-1/+1
| | | | MFC after: 3 days
* Assert that (vp) is locked in fifo_close(), since we rely on therwatson2005-09-181-0/+1
| | | | | | | exclusive vnode lock to synchronize the reference counts on struct fifoinfo. MFC after: 3 days
* Re-comment sbcompress() to explain what it is it does; it took merwatson2005-09-182-14/+40
| | | | | | | | | | quite a bit of reading to figure it out, and I want to avoid figuring it out again. Convert an if (foo) else printf("this is almost a panic") into a KASSERT. MFC after: 3 days
* Sort the list of disk controllers by driver-name. The notable exception isbrueffer2005-09-182-62/+62
| | | | | | ata(4), which should stay on top. MFC after: 3 days
* Sort the list of ethernet devices by driver-name.brueffer2005-09-182-94/+94
| | | | MFC after: 3 days
* Sort list of supported hardware.brueffer2005-09-182-10/+10
| | | | MFC after: 3 days
* Don't claim matcd(4) support, it was removed long ago.brueffer2005-09-182-10/+0
| | | | MFC after: 3 days
* Introduce a kernel config for the Mandatory Access Control framework.csjp2005-09-187-0/+196
| | | | | | | | This kernel config briefly describes some of the major MAC policies available on FreeBSD. The hope is that this will raise the awareness about MAC and get more people interested. Discussed with: scottl
* Merged from src/sbin/fdisk/fdisk.c revision 1.81.nyan2005-09-181-1/+4
| | | | | | - Call gctl_free() to free resource allocated with gctl_get_handle(). MFC after: 3 days
* MFi386: pci attribute allocation fixes.imp2005-09-183-2/+6
|
* MFp4: Expose device_probe_child()imp2005-09-182-1/+2
|
* Expose legacy_pcib_alloc_resource, and use it in the mptable pci busimp2005-09-173-2/+4
| | | | | | | implementation, like other routines in the legacy bus. This should fix problems with resource allocation on MP systems without ACPI enabled.
* Remove reference to bpfstat, this no longer exists.csjp2005-09-171-1/+0
|
* Implement new world order in VFS locking for ACLs. This will remove thecsjp2005-09-173-132/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unconditional acquisition of Giant for ACL related operations. If the file system is set as being MP safe and debug.mpsafevfs is 1, do not pickup giant. For any operations which require namei(9) lookups: __acl_get_file __acl_get_link __acl_set_file __acl_set_link __acl_delete_file __acl_delete_link __acl_aclcheck_file __acl_aclcheck_link -Set the MPSAFE flag in NDINIT -Initialize vfslocked variable using the NDHASGIANT macro For functions which operate on fds, make sure the operations are locked: __acl_get_fd __acl_set_fd __acl_delete_fd __acl_aclcheck_fd -Initialize vfslocked using VFS_LOCK_GIANT before we manipulate the vnode Discussed with: jeff
* Handle circular dependencies properly (via errx(3)) rather than dumpingcperciva2005-09-171-2/+15
| | | | | | | core. This bug was made visible by a recent change to the audio/timidity++ port, which now has itself as a run dependency. Reported by: Emil Mikulic, Andreas Klemm
* Bump .Ddjoel2005-09-171-1/+1
| | | | Reminded by: simon
* Clarify wording for -m flag.rodrigc2005-09-171-2/+12
| | | | PR: docs/84704
* Call gctl_free() to free resource allocated with gctl_get_handle().rodrigc2005-09-171-1/+4
| | | | | | PR: bin/84664 Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net> MFC after: 3 days
* Fix so that color changes are not lost when the video mode changes.rodrigc2005-09-171-0/+6
| | | | | PR: bin/83553 Submitted by: Dan Lukes <dan at obluda dot cz>
* o Add initial bits for IBSS support.damien2005-09-173-25/+110
| | | | | | | | | | o Allow association with APs that do not broadcast SSID (with hints from Nick Hudson and Hajimu Umemoto). o IFQ_DRV_PREPEND mbuf when h/w ring is full so it can be sent later. o Increment if_oerrors when appropriate. o Did some cleanup while I'm here. MFC after: 1 day
* Add cdce(4).joel2005-09-173-0/+5
| | | | Reviewed by: brueffer
* Add HARDWARE section.joel2005-09-171-10/+14
| | | | Reviewed by: brueffer
* Complete rewrite in preparation of adding support for controlmarcel2005-09-171-154/+726
| | | | | | | | | | | | | | | | | requests. The following features have been added: 1. Extensive checking and validation of both the primary and secondary headers to protect against corrupted data and to take advantage of the redundancy to allow the GPT to be used in the face of recoverable corruption. 2. Dynamic data-structures to avoid hardcoding gratuitous table limits so as to support the creation of GPT tables of (as of yet) unspecified size. 3. Only allow kernel dumps to swap partitions to provide the necessary anti-footshooting measures. Linux swap partitions are allowed. 4. Complete dump of the GPT configuration, including labels. 5. Supports Byte Order Mark (U+FEFF) handling for big-endian, little-endian and mixed-endian partition names.
* o Change the type of the ent_name field from short to uint16_t.marcel2005-09-171-1/+1
| | | | | | UTF-16 characters are not negative. o Change the corresponding comment from UNICODE-16 to UTF-16. There's no such thing as UNICODE-16.
* Add a new AGP driver for ATI IGP chipsets. The driver is based on reading ofanholt2005-09-176-1/+798
| | | | | | | | | the Linux driver, since specs are unavailable. Many thanks to Adam Kirchhoff for multiple useful testing cycles, and Ralf Wostrack for the final fix to get it working. PR: i386/75251 Submitted by: anholt
* Fix agp_nvidia.c to behave more like the linux driver, fixing DRI on Radeonanholt2005-09-162-22/+40
| | | | | | | | | | | | 9200 according to one responder. The primary issue was not setting some bits to say that the entries were active, but also fix one place where some memory wasn't being used as volatile as it should. While here, change some use of ffs to a relatively short case statement, to make it more obvious what's going on. PR: kern/71638, kern/72372, kern/71547? Submitted by: Andrew J. Caines <A.J.Caines@halplant.com>, Robin Schoonover <end@endif.cjb.net>, Jason Henson <jason@ec.rr.com>
* Include <sys/defs.h> to get __ISO_C_VISIBLE definition is one is notkan2005-09-161-0/+3
| | | | already available.
* Do not expose vfwscanf, vswscanf, vwscanf and wcstof functions ifkan2005-09-161-0/+8
| | | | they are not visible from wchar.h.
* The arguments to printf() were swapped.ru2005-09-161-2/+2
|
* Break out of loop if next buffer pointer has become invalid while flushingtegge2005-09-161-0/+15
| | | | | | current buffer. Reviewed by: kan
* Fix "struct ifnet" leak if attach() fails in the middle.ru2005-09-165-3/+12
|
* Do assorted nitpicking in diagnostics while I'm here:yar2005-09-161-9/+9
| | | | | | - Use __func__ consistently instead of copying function name to message strings. Code tends to migrate around source files. - DIAGNOSTIC is for information, INVARIANTS is for panics.
* Avoid deferencing NULL in if_free().ru2005-09-161-3/+2
|
* It's nice to have relevant comments both in if {} and else {},yar2005-09-161-1/+4
| | | | not in just one of them.
* Test the new M_VLANTAG packet flag before callingyar2005-09-161-2/+5
| | | | | | | | | | m_tag_locate(). This adds little overhead of a simple bitwise operation in case hardware VLAN acceleration is on, yet saves the more expensive function call if the acceleration is off. Reviewed by: ru, glebius X-MFC-after: 6.0
* Fix "struct ifnet" leaks when attach() fails in the middle.ru2005-09-169-16/+31
|
* Pidfiles should be created with permission preventing users from openingpjd2005-09-166-6/+6
| | | | | | | them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green
* Fix "struct ifnet" leaks when attach() fails in the middle, e.g.ru2005-09-1617-40/+35
| | | | | | when mii_phy_probe() or bus_setup_intr() fails. For drivers that call their detach() in this case, call if_free() there to cover this case too.
* Fix "struct ifnet" leak on detach.ru2005-09-161-0/+1
|
* Add missing mtx_destroy() when if_alloc() fails.ru2005-09-166-4/+27
| | | | | Add missing if_free() when mii_phy_probe() fails. Put if_free() into the correct #ifdef in detach().
* Add missing if_free() in rue_detach().ru2005-09-161-0/+1
|
* Commit a workaround to a problem with resource allocation. This helpsimp2005-09-162-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | with some Dell servers that booted w/o a problem[*] on 5.4, but failed with 6.0-BETA. On the PCI bus, when we do lazy resource allocation, we narrow the range requested as we pass through bridges to reflect how the bridges are programmed and what addresses they pass. However, when we're doing an allocation on a bus that's directly connected to a host bridge, no such translation can take place. We already had a fallback range for memory requests, but none for ioports. As such, provide a fallback for I/O ports so we don't allocate location 0, which will have undesired side effects when the resources are actually used. This fixes a problem with booting a Dell server with usb in the kernel. However, it is an unsatisfying solution. I don't like the hard coded value, and I think we should start narrowing the resources returned to not be in the so-called isa alias area (where the ranage & 0x0300 must be 0 iirc). Doing such filtering will have to wait for another day. This may be a good 6 candidate, maybe after its had a chance to be refined. Tested by: glebius@
* plugged a possible memory leaksuz2005-09-161-1/+1
| | | | | Obtained from: KAME MFC after: 1 day
* Make the exploring of all luns supported by an HBA more of amjacob2005-09-161-5/+38
| | | | | | | | | | | | | | | tunable (until we get REPORT LUNS in place). If we're probing luns, and each probe succeeds, we keep going past lun 7 if we're a SCSI3 or better device (until we fail to probe). If we're probing luns, and a probe fails, we only keep going if we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked *against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device and the tunable (kern.cam.cam_srch_hi) is set non-zero. Reviewed by: nate@rootlabs.org, gibbs@scsiguy.com, ken@kdm.com, scottl@samsco.org MFC after: 1 week
* Don't attempt to recurse lockmgr, it doesn't like it.phk2005-09-152-3/+6
|
* Fix race condition that caused activation of an event toups2005-09-151-2/+4
| | | | | | | be ignored immediately after it was deactivated. Found by: Yahoo! MFC after: 3 days
* Oops, missed adding the required include.jhb2005-09-151-0/+1
| | | | Pointy hat to: jhb
OpenPOWER on IntegriCloud