summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFp4 (114068):netchild2007-02-2326-43/+70
| | | | | | | | | | Use bus_get_dma_tag() to obtain the parent DMA tag to make the drivers a little bit more non-ia32/amd64 friendly. There is no man page for bus_get_dma_tag, so this is modelled after rev. 1.62 of src/sys/dev/sound/pci/es137x.c by marius. Inspired by: commit by marius
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-23255-575/+781
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Remove many unneeded includes, update copyright.rwatson2007-02-231-29/+2
|
* Remove empty entry point functions (init, destroy, syscall) fromrwatson2007-02-232-32/+0
| | | | policies that don't need them.
* mac_none sample policy has nothing to enforce, so remove sysctls.rwatson2007-02-231-9/+0
| | | | mac_stub acts as a template policy and holds sample sysctls.
* Use the new xpt_rescan function to truly now have dynamicmjacob2007-02-233-13/+76
| | | | | | | | | | attachment of new devices that arrive (and we notice them via async Fibre Channel events). We've always had the right thing (of sorts) happen when devices go away- this is the corollary function that makes multipath failover actually work. MFC after: 2 weeks
* Add an xpt_rescan function and a thread that will fieldmjacob2007-02-232-4/+50
| | | | | | | | | | | | | | rescan requests. The purpose of this is to allow a SIM (or other entities) to request a bus rescan and have it then fielded in a different (process) context from the caller. There are probably better ways to accomplish this, but it's a very small change that helps solve a number of problems. Reviewed by: Justin, Ken and Scott. MFC after: 2 weeks
* There is a problem in setting/getting 'options'- if we check thingsmjacob2007-02-231-111/+133
| | | | | | | | | | | early, we haven't set board type, so we can't correctly check for some options. Fix this by splitting option setting/getting into generic, pci and then later board specific, option setting/getting. This was noticed when setting 'iid' (or 'hard loop id') didn't work all of a sudden. Noticed by: Mike Drangula (thanks!) via Jung-uk Kim (thanks!)
* Be a bit more restrictive about printing out 'bad' pdb entriesmjacob2007-02-231-9/+11
| | | | | during loop rescans. They're not bad so much as unstable, so don't print this stuff out unless ISP_LOGSANCFG is set.
* If floppies are used to boot the machine, the user lets the machinekensmith2007-02-221-1/+6
| | | | | | | | | | | | | | complete the boot and enter into sysinstall, and only then inserts a CD into the CDROM drive and tries to select that as the install media the first call to mount(2) generates EIO but the second call to mount(2) will succeed. This was 100% reproducible on 6.2-RELEASE, RELENG_6, and HEAD. If the user inserts the disc into the CDROM while the machine is booting off the floppies the first call to mount(2) succeeds with no problems. The problem was originally reported in PR #56952 against 5.1-CURRENT so it's been there for a while now. PR: bin/56952 MFC after: 2 weeks
* Correct typo.pjd2007-02-221-1/+1
| | | | Spotted by: Tomasz Dudzisz
* Modify chunk_alloc() to prefer mmap()ed memory over sbrk()ed memory.jasone2007-02-221-36/+40
| | | | | | | | | | | This has no impact unless USE_BRK is defined (32-bit platforms), in which case user allocations are allocated via mmap() if at all possible, in order to avoid the possibility of unreclaimable chunks in the data segment. Fix an obscure bug in base_alloc() that could have allowed undefined behavior if an application were to use sbrk() in conjunction with a USE_BRK-enabled malloc.
* Use LIST_EMPTY() instead of unrolled version (LIST_FIRST() [!=]= NULL)delphij2007-02-221-5/+5
|
* Use ETHER_BPF_MTAP() instead of BPF_MTAP() here. It's possiblecsjp2007-02-221-2/+3
| | | | | | | incoming packets have had their 802.1Q tags processed by the hardware, resulting in them being stripped from the packets, and placed on the mbuf. This fixes the processing of 802.1Q tags when hardware offload of 802.1Q tags is enabled.
* Fixes build breakage.. invalid type casts.. and invalidrrs2007-02-221-6/+6
| | | | type for size in one place.
* First cut of the sctp man pages. Still need work.rrs2007-02-2217-1/+2218
|
* Fixes __FreeBSD__ being present (they should not)rrs2007-02-221-6/+4
| | | | and also trailing garbage on undef of magic numbers.
* Adds a performance improvement for when sctp_sendx isrrs2007-02-221-23/+43
| | | | | | | | | called with only one address, we then can call the generic system call. Also fixes some socket api type issues and cleans up the "magic" numbers that were being used in the code. Reviewed by: gnn
* Add an additional MAC check to the UNIX domain socket connect path:rwatson2007-02-221-0/+5
| | | | | | | | | check that the subject has read/write access to the vnode using the vnode MAC check. MFC after: 3 weeks Submitted by: Spencer Minear <spencer_minear at securecomputing dot com> Obtained from: TrustedBSD Project
* Change the page's CLEANCHK flag from being a page queue mutex synchronizedalc2007-02-222-16/+16
| | | | flag to a vm object mutex synchronized flag.
* Improve readability of the version string.njl2007-02-221-1/+1
|
* Mention that BSD gzip was MFC'eddelphij2007-02-221-1/+2
|
* Fix a bug in if_findmulti(), whereby it would not find (and thus delete)bms2007-02-221-3/+22
| | | | | | | | | | | | | | a link-layer multicast group membership. Such memberships are needed in order to support protocols such as IS-IS without putting the interface into PROMISC or ALLMULTI modes. sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure than a simple byte array, so add sa_dl_equal() and use that instead. Reviewed by: rwatson Verified with: /usr/sbin/mtest Bug found by: Jouke Witteveen MFC after: 2 weeks
* Update copyright headers.sos2007-02-2119-19/+19
|
* Try again with supporting AHCI chipsets with partly implemented ports.sos2007-02-212-5/+16
|
* Restore support for the 5706C bce(4) phy that was broken during thejhb2007-02-212-2/+54
| | | | | | | | | | | | | addition of SerDes support. According to the docs, the 5706C and 5708C phys are supposed to use the same MII model that is separate from the SerDes parts, but the 5706C actually uses the MII model of the SerDes parts. To fix this, readd the old 5706C entry to miidevs and add a special check in brgphy_probe() for phys that match the 5706C ID. If the phy is supported by the gentbi(4) driver, then it's a SerDes phy, so we fail the probe and let gentbi(4) grab it. Otherwise, it's a 5706C phy, so we let brgphy(4) grab it. In coordination with: dwhite
* Work around a firmware bug where broadcast frames would be incorrectlygallatin2007-02-212-5/+27
| | | | | | | treated as multicast frames and filtered, but when only when "adopting" running firmware. By "adopting", I mean using pre-existing firmware loaded from eeprom at PCI reset, rather than firmware loaded by the driver.
* Be a little less stringent in getting progress report data.sos2007-02-211-1/+2
|
* Temporarily disable the support for some incarnations of the ICH8 chip that hassos2007-02-211-17/+7
| | | | | | | non consecutively numbered ports. This should fix current SATA problems. Support AHCI chips where the ports are not consecutively numbered as in some incarnations of the ICH8 chip.
* Update host-mode multicast group information output.bms2007-02-211-33/+87
| | | | | | | | | | | | Display IPv4 and IPv6 memberships separately. Obey the MK_INET6_SUPPORT flag. Display link-layer memberships. Use addr2ascii() to correctly print non-IEEE 802 sockaddr_dl instances. Eliminate redundant switch..case blocks. Update copyright. Misc style changes. MFC after: 3 weeks
* Change wording of warnings when there is no ip_mroute.ko modulebms2007-02-212-11/+19
| | | | | | | | loaded into the system. Change wording of comments to reflect the fact we should unconditionally use KVM if the -M option is used to specify a core file. Add comments to document the fact that IPv6 multicast forwarding information display still relies on KVM for gathering information.
* Optimize set_origin() use in some screensavers to stop them eatingphilip2007-02-214-12/+40
| | | | | | | | cpu power when the origin hasn't changed. PR: kern/100683 Submitted by: Gareth McCaughan <gareth -dot- mccaughan -at- pobox.com> MFC after: 3 days
* Refine implementation notes for priv(9): clarify ABI comments, mentionrwatson2007-02-211-3/+8
| | | | updating Jail's list of privileges.
* Document vge(4)'s support for altq(4).brueffer2007-02-212-2/+4
|
* Complete the support for altq(4).brueffer2007-02-211-1/+3
| | | | | | | Tested by: J.R. Oldroyd Reviewed by: mlaier Approved by: rwatson (mentor) MFC after: 1 week
* The functions that set and delete external attributes must checkmckusick2007-02-211-0/+9
| | | | | | | that the filesystem is not mounted read-only before proceeding. Reported by: Ryan Beasley <ryanb@FreeBSD.org> MFC after: 1 week
* Fix a bug with the release of section's raw data. Both release loopsdumbbell2007-02-211-1/+1
| | | | | | were using translated data linked list, leading to a memory leak. Jkoshy's testsuite was used to check for non-regression.
* Initialise {transport,protocol}{,_version} fields during a PATH_INQ to avoid an_hibma2007-02-211-1/+5
| | | | warning message.
* Reduce the noise when plugging in (USB) mass storage devices, like a 4 portn_hibma2007-02-212-3/+7
| | | | | | | | | flash card reader. Also remove an 'Opened da0 -> <random number>' which is not needed on a daily basis (available through bootverbose). Reviewed by: phk, ken MFC after: 1 week
* Change pmap_protect() so that execute access can be removed withoutalc2007-02-211-1/+2
| | | | simultaneously removing write access.
* If we already have stat() data, we might be able tokientzle2007-02-211-21/+29
| | | | | | determine if this is a physical dir without an lstat(). While I'm in here, try to clarify the comments around the _is_dir() and _is_physical_dir() tests.
* Check that the error returned by vfs_getopts() is not ENOENT before assumingcognet2007-02-211-2/+2
| | | | | | there's actually an error. This is just in order to unbreak ntfs on current, before a proper solution is committed.
* Remove unnecessary privilege and privilege check for WITNESS sysctl.rwatson2007-02-202-16/+9
| | | | Head nod: jhb
* Create a link from hosts.allow(5) hosts_access(3), to give the user an_hibma2007-02-201-2/+4
| | | | | | starting point for more information on a file in /etc. MFC after: 1 week
* Kris suggested that swap is a better choice as a default than malloc.n_hibma2007-02-202-4/+4
| | | | MFC: 1 week
* [Found the original diff I made, see previous commit for other part]n_hibma2007-02-202-4/+23
| | | | | | | | Assume '-a' and '-t malloc' flags for '-s <size>' (malloc ramdisk) if not specified. Reviewed by: phk (some time ago) MFC: 1 week
* Make attach the default for -f. That wayn_hibma2007-02-202-3/+11
| | | | | | | | | mdconfig -f image works like a charm. Reviewed by: phk (some time ago) MFC: 1 week
* Avoid writing uninitialized stack data into a thread's MMX/SSE state byemaste2007-02-201-7/+12
| | | | | | | | | | | | | first getting the current state with td_thr_getxmmregs_p. Without this, debugging a threaded app that uses libthr resulted in kernel panics or spurious SIGFPEs for me. (As of revision 1.6, sys/i386/i386/ptrace_machdep.c masks off the reserved bits in the mxcsr register, which prevents the kernel panics.) Architectures without PT_GETXMMREGS are not affected. MFC after: 1 week
* Rename IWI_LOCK_ASSERT to IWI_LOCK_CHECK per Sam's suggestion,luigi2007-02-202-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | and make it print under debug.iwi control same as other debugging stuff. Remove the device_printf() in iwi_ioctl() and replace with this: /* * wait until pending iwi_cmd() are completed, to avoid races * that could cause problems. */ while (sc->flags & IWI_FLAG_BUSY) msleep(sc, &sc->sc_mtx, 0, "iwiioctl", hz); This at least prevents what has become an almost systematic failure for my system, presumably due to a previous iwi_cmd() not complete yet by the time iwi_ioctl() is called. It has been pointed to my attention that the real problem could be calling ieee80211_ioctl() with the lock held. If that is true, there might still be a possibility for a race condition e.g. an interrupt coming while the ioctl is sleeping. Need to investigate further on what changes are required to release the lock before calling ieee80211_ioctl
* Address a few issues with the iwi driver, namely:luigi2007-02-202-78/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + do not release the dma-ble region used for downloading firmware. This should fix the problems that some people were seeing, due to memory becoming too fragmented which prevented subsequent allocations of a suitable contiguous region of memory; + document the firmware format and usage in if_iwivar.h + use a loop to allocate the four tx rings, instead of replicating the body of the loop. + add debugging code IWI_LOCK_ASSERT() to detect missing locks. These only do a printf, and should go away once we figure out why the driver sometimes freezes the system due to a (yet unidentified) race condition. + add a device_printf() in iwi_ioctl() in certain conditions (see comment in the code). This helps preventing the race condition mentioned above, and makes the system survive. This printf will also go away once fixing this bug is completed. + change iwi_getfw() to return 0 on success, 1 on error, consistently with other functions. + fix the argument of a sizeof() in iwi_get_firmware() + use le32toh() to access little-endian fields + simplify error handling in iwi_load_firmware() and iwi_init_locked() The bugs fixed by this commit (the freezing one especially) are serious enough to call for a quick MFC MFC after: 3 days
OpenPOWER on IntegriCloud