aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Ignore the expected function number.Warner Losh2005-01-241-5/+0
| | | | | | | | | | | | | | NetBSD went this route a while ago. FreeBSD originally tried this to cope with multifunction cards. However, it turns out that we're better off not worrying about the function number, and instead worry about the function type for the function. This has worked well in NetBSD, and all FreeBSD's relevant drivers have been converted. # I'll rework the macros that specify them shortly, as soon as I can # come up with a good, compatible way to deal... Notes: svn path=/head/; revision=140693
* u_intXX_t -> uintXX_tWarner Losh2005-01-242-15/+15
| | | | Notes: svn path=/head/; revision=140692
* Add support for the LSI 320-2E PCI-Express controller. Fix a couple of bugsScott Long2005-01-234-8/+17
| | | | | | | | | in the ioctl handler. Update the LSI copyrights for these. Obtained from: LSI, Corp Notes: svn path=/head/; revision=140688
* Add my copyright for the locking and busdma work.Scott Long2005-01-231-0/+1
| | | | Notes: svn path=/head/; revision=140687
* Reduce the global name space pollution.Yaroslav Tykhiy2005-01-231-2/+2
| | | | | | | The cloner structure isn't referenced by name outside this file. Notes: svn path=/head/; revision=140686
* Provide a needed argument to AT_MAKE_TAGID.Scott Long2005-01-231-1/+1
| | | | Notes: svn path=/head/; revision=140684
* Make sure we can boot both with and without MMU enabled.Olivier Houchard2005-01-231-1/+5
| | | | Notes: svn path=/head/; revision=140683
* Define bus_dmamap_load_buffer before bus_dmamap_load to make gcc happy.Olivier Houchard2005-01-231-34/+34
| | | | Notes: svn path=/head/; revision=140682
* Fix compile for !KTR.Olivier Houchard2005-01-231-0/+4
| | | | Notes: svn path=/head/; revision=140680
* Style cleanup: with removal of mutex operations, we can also removeRobert Watson2005-01-231-4/+2
| | | | | | | | | {}'s from securelevel_gt() and securelevel_ge(). MFC after: 1 week Notes: svn path=/head/; revision=140678
* When reading pr_securelevel from a prison, perform a lockless read,Robert Watson2005-01-231-4/+0
| | | | | | | | | | as it's an integer read operation and the resulting slight race is acceptable. MFC after: 1 week Notes: svn path=/head/; revision=140677
* When retrieving the current per-jails securelevel for a sysctl read,Robert Watson2005-01-231-5/+4
| | | | | | | | | | don't acquire the prison mutex, as it's an integer read and races here don't make a difference. MFC after: 1 week Notes: svn path=/head/; revision=140676
* Correctly move the packet header in ip_insertoptions().Alan Cox2005-01-231-1/+2
| | | | | | | | | Reported by: Anupam Chanda Reviewed by: sam@ MFC after: 2 weeks Notes: svn path=/head/; revision=140675
* Fix whitespaceScott Long2005-01-231-1/+1
| | | | Notes: svn path=/head/; revision=140669
* Remove an obsoleted comment about struct versions.Robert Watson2005-01-231-1/+0
| | | | | | | | MFC after: 3 days Pointed out by: trhodes Notes: svn path=/head/; revision=140661
* Add code to do better auto detection of tuner types etc.Julian Elischer2005-01-233-53/+51
| | | | | | | | | PR: kern/75831 Submitted by: Branko Lankester <branko@euro.net> MFC after: 1 week Notes: svn path=/head/; revision=140655
* Remember to snag firmware for the DELL OEM (6312) cardMatt Jacob2005-01-231-0/+2
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=140653
* Add some macros for inserting tag ids.Matt Jacob2005-01-231-14/+52
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=140652
* Macroize the making of tag ids.Matt Jacob2005-01-231-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=140651
* Roll minor number.Matt Jacob2005-01-231-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=140650
* Don't set ZIO for 23XX for target mode (use fast posting instead).Matt Jacob2005-01-231-7/+37
| | | | | | | | | | | | | | Use the correct number of handles for multihandle returns. Very, very, rarely on some SMP systems we've seen an 'unstable' type in the response queue. I dunno whether or not it's a bug in our handling, or whether there's a cache incoherency issue, but try to guard against it. MFC after: 2 weeks Notes: svn path=/head/; revision=140649
* Support the DELL OEM 2312 cards (1077,6312).Matt Jacob2005-01-231-1/+12
| | | | | | | | | Many thanks to Stormweb for making the h/w available for testing. MFC after: 2 days Notes: svn path=/head/; revision=140648
* Protect against wrapping. This appaers to fix some hangs that peopleWarner Losh2005-01-231-1/+1
| | | | | | | | | | | | have seen in the isa pnp case where a resource buts up against 0xffffffff. This would only impact when the board was booted without ACPI. Submitted by: Ed Maste (freebsd-stable <20050103145720.GA90754@sandvine.com>) MFC After: 5 days Notes: svn path=/head/; revision=140647
* This is a somewhat imperfect means to try and bring FreeBSD forward inMatt Jacob2005-01-221-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | its ability to automatically scan and attach luns for modern storage which has luns in the 0..1000 range, not 0..7. The correct thing would be to do REPORT LUNS for devices whose LUN0 version shows a version >= SCSI3, but lacking that we should be able to search higher than LUN 7 if we're >= SCSI3 with no ill effects. This change keeps all of the QUIRK_HILUNS quirks, obeys the QUIRK_NOLUNS, and introduces a QUIRK_NOHILUNS which will keep searches above LUN 7 happening for devices that report >= SCSI3 compliance. I doubt the latter will be needed, but you never know. This allowed me to randomly scan and attach > 500 disks at a time in a situation where quirking for QUIRK_HILUNS wasn't practical (the vendor id and product id changes of the virtualization changes constantly). Reviewed by: ken@freebsd.org, scottl@freebsd.org, gibbs@freebsd.org MFC after: 2 weeks Notes: svn path=/head/; revision=140644
* Bring in support for SUGOI LAN GIGA NIC made by System TALKS, Inc fromWarner Losh2005-01-222-0/+4
| | | | | | | | | | | | a RealTek 8169SB. PR: 74262 Submitted by: Yoshikazu GOTO-san # Submitter notes that he's unsure of the revision string for 8169SB Notes: svn path=/head/; revision=140642
* When DDB is not defined, don't implement witness_thread_has_locks() andRobert Watson2005-01-221-0/+2
| | | | | | | | | | | witness_proc_has_locks(), as they are unused, which results in a compiler error. This problem was introduced with the implementation of "show alllocks". Spotted by: Artem Kuchin <matrix at itlegion dot ru> Notes: svn path=/head/; revision=140637
* handle potential stale values of bssid in neighbor nodes thatSam Leffler2005-01-221-1/+5
| | | | | | | | | can occur after an ibss merge Submitted by: David Young Notes: svn path=/head/; revision=140636
* Update mac_test for MAC Framework policy entry points System V IPCRobert Watson2005-01-221-0/+378
| | | | | | | | | | | | objects (message queues, semaphores, shared memory), exercising and validating MAC labels on these objects. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140635
* when ssid suppression is enabled don't respond to probe requestsSam Leffler2005-01-221-0/+8
| | | | | | | unless our ssid is specified Notes: svn path=/head/; revision=140634
* be consistent in naming inactivity timers;Sam Leffler2005-01-221-1/+1
| | | | | | | net.wlan.X.inact -> net.wlan.X.inact_run Notes: svn path=/head/; revision=140633
* Update mac_stub for MAC Framework policy entry points System V IPCRobert Watson2005-01-221-5/+213
| | | | | | | | | | | objects (message queues, semaphores, shared memory). Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140632
* o replace out-of-line copy of FCS w/ a flag that indicates theSam Leffler2005-01-221-9/+18
| | | | | | | | | | | | | | frame includes FCS (requires applications to be updated, but since we weren't doing the out-of-line FCS stuff anyway app changes were needed already) o add a flag to indicate padding exists between the 802.11 header and the payload (e.g. for Atheros cards) o diff reducation against netbsd MFC after: 1 week Notes: svn path=/head/; revision=140630
* Implement MLS confidentiality protection for System V IPC objectsRobert Watson2005-01-221-5/+391
| | | | | | | | | | | (message queues, semaphores, shared memory). Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140629
* Implement Biba integrity protection for System V IPC objects (messageRobert Watson2005-01-221-5/+394
| | | | | | | | | | | queues, semaphores, shared memory). Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140628
* - Don't destroy UMA zone on error in mdcreate_malloc(), because we need itPawel Jakub Dawidek2005-01-221-4/+1
| | | | | | | | | | | | in mddestroy() to properly free already allocated memory. This fixes a panic when we want to create too big memory backed device with preallocate memory (-o reserve). - Remove redundant { }. MFC after: 1 week Notes: svn path=/head/; revision=140625
* Guard against address wrap in kernacc(). Otherwise, a program accessing aAlan Cox2005-01-221-0/+5
| | | | | | | | | | | bad address range through /dev/kmem can panic the machine. Submitted by: Mark W. Krentel Reported by: Kris Kennaway MFC after: 1 week Notes: svn path=/head/; revision=140622
* Invoke label initialization, creation, cleanup, and tear-down MACRobert Watson2005-01-221-0/+95
| | | | | | | | | | | Framework entry points for System V IPC shared memory. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140617
* Add a couple of mtx_asserts() to try to narrow down the window onPoul-Henning Kamp2005-01-221-0/+2
| | | | | | | a bug repeatedly reported. Notes: svn path=/head/; revision=140616
* Invoke label initialization, creation, cleanup, and tear-down MACRobert Watson2005-01-221-0/+83
| | | | | | | | | | | Framework entry points for System V IPC semaphores. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140615
* Invoke label initialization, creation, cleanup, and tear-down MACRobert Watson2005-01-221-0/+162
| | | | | | | | | | | Framework entry points for System V IPC message queues. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=140614
* Don't pass unadulterated unit numbers to make_dev and its ilk- if youMatt Jacob2005-01-222-5/+6
| | | | | | | | | | have more than 256 units, you die. Horribly. Convert them using unit2minor. MFC after: 1 week Notes: svn path=/head/; revision=140608
* Embellish rev 1.61. If we're not building a debug kernel, use -O2 as before.David E. O'Brien2005-01-221-2/+7
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=140606
* s/round_page/trunc_page/gBosko Milekic2005-01-221-4/+4
| | | | | | | | | | I meant trunc_page. It's only a coincidence this hasn't caused problems yet. Pointed out by: Antoine Brodin <antoine.brodin@laposte.net> Notes: svn path=/head/; revision=140605
* we don't need the offset in the attr memory to get the ethernetWarner Losh2005-01-211-14/+12
| | | | | | | | | | address, nor do we need the alignment requirements, so eliminate them. This likely means that we can now collapse some of the entries as we have no need of them anymore (they match other entries and were there only to get the right attr memory offset of the enet addr). Notes: svn path=/head/; revision=140597
* Only report state changes of subdisks and plexes when there'sLukas Ertl2005-01-211-2/+14
| | | | | | | | | really a state change. Reword the info a bit. Notes: svn path=/head/; revision=140591
* Don't initialize error with ENXIO as we might end up here whenLukas Ertl2005-01-211-2/+1
| | | | | | | the plex has no more consumers (e.g. orphaning). Notes: svn path=/head/; revision=140590
* we don't need to make fake sockaddr_in6 to compare subject address.Hajimu UMEMOTO2005-01-211-13/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=140588
* Bring in MemGuard, a very simple and small replacement allocatorBosko Milekic2005-01-216-0/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | designed to help detect tamper-after-free scenarios, a problem more and more common and likely with multithreaded kernels where race conditions are more prevalent. Currently MemGuard can only take over malloc()/realloc()/free() for particular (a) malloc type(s) and the code brought in with this change manually instruments it to take over M_SUBPROC allocations as an example. If you are planning to use it, for now you must: 1) Put "options DEBUG_MEMGUARD" in your kernel config. 2) Edit src/sys/kern/kern_malloc.c manually, look for "XXX CHANGEME" and replace the M_SUBPROC comparison with the appropriate malloc type (this might require additional but small/simple code modification if, say, the malloc type is declared out of scope). 3) Build and install your kernel. Tune vm.memguard_divisor boot-time tunable which is used to scale how much of kmem_map you want to allott for MemGuard's use. The default is 10, so kmem_size/10. ToDo: 1) Bring in a memguard(9) man page. 2) Better instrumentation (e.g., boot-time) of MemGuard taking over malloc types. 3) Teach UMA about MemGuard to allow MemGuard to override zone allocations too. 4) Improve MemGuard if necessary. This work is partly based on some old patches from Ian Dowse. Notes: svn path=/head/; revision=140587
* Remove prototype of undefined function so this compiles again.Poul-Henning Kamp2005-01-211-2/+0
| | | | Notes: svn path=/head/; revision=140565
* JumboMFi386: use bitmapped IPI handler. Update elcr and default mptablePeter Wemm2005-01-2113-138/+298
| | | | | | | config handler. Tidy up various local apic initialization. Notes: svn path=/head/; revision=140555