aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Try again with supporting AHCI chipsets with partly implemented ports.Søren Schmidt2007-02-212-5/+16
| | | | Notes: svn path=/head/; revision=166877
* Restore support for the 5706C bce(4) phy that was broken during theJohn Baldwin2007-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 Notes: svn path=/head/; revision=166876
* Work around a firmware bug where broadcast frames would be incorrectlyAndrew Gallatin2007-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. Notes: svn path=/head/; revision=166875
* Be a little less stringent in getting progress report data.Søren Schmidt2007-02-211-1/+2
| | | | Notes: svn path=/head/; revision=166872
* Temporarily disable the support for some incarnations of the ICH8 chip that hasSøren Schmidt2007-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. Notes: svn path=/head/; revision=166871
* Optimize set_origin() use in some screensavers to stop them eatingPhilip Paeps2007-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 Notes: svn path=/head/; revision=166868
* Complete the support for altq(4).Christian Brueffer2007-02-211-1/+3
| | | | | | | | | | Tested by: J.R. Oldroyd Reviewed by: mlaier Approved by: rwatson (mentor) MFC after: 1 week Notes: svn path=/head/; revision=166865
* The functions that set and delete external attributes must checkKirk McKusick2007-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 Notes: svn path=/head/; revision=166864
* Initialise {transport,protocol}{,_version} fields during a PATH_INQ to avoid aNick Hibma2007-02-211-1/+5
| | | | | | | warning message. Notes: svn path=/head/; revision=166862
* Reduce the noise when plugging in (USB) mass storage devices, like a 4 portNick 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 Notes: svn path=/head/; revision=166861
* Change pmap_protect() so that execute access can be removed withoutAlan Cox2007-02-211-1/+2
| | | | | | | simultaneously removing write access. Notes: svn path=/head/; revision=166860
* Check that the error returned by vfs_getopts() is not ENOENT before assumingOlivier Houchard2007-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. Notes: svn path=/head/; revision=166858
* Remove unnecessary privilege and privilege check for WITNESS sysctl.Robert Watson2007-02-202-16/+9
| | | | | | | Head nod: jhb Notes: svn path=/head/; revision=166857
* Rename IWI_LOCK_ASSERT to IWI_LOCK_CHECK per Sam's suggestion,Luigi Rizzo2007-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 Notes: svn path=/head/; revision=166849
* Address a few issues with the iwi driver, namely:Luigi Rizzo2007-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 Notes: svn path=/head/; revision=166848
* Replace a suser() check with an explicit check for PRIV_NET_SETIFMTU.Robert Watson2007-02-201-1/+2
| | | | Notes: svn path=/head/; revision=166847
* Document the endiannes of firmware headersLuigi Rizzo2007-02-201-1/+9
| | | | | | | (in preparation for changes in the C code). Notes: svn path=/head/; revision=166846
* Update auditing of socket information for the inpcb new world order:Robert Watson2007-02-201-6/+4
| | | | | | | | so_pcb will always be non-NULL, and lock the inpcb while non-atomically accessing address data. Notes: svn path=/head/; revision=166845
* Break introductory comment into two paragraphs to separate material on theRobert Watson2007-02-201-12/+9
| | | | | | | | | | | | | garbage collection complications from general discussion of UNIX domain sockets. Staticize unp_addsockcred(). Remove XXX comment regarding Giant and v_socket -- v_socket is protected by the global UNIX domain socket lock. Notes: svn path=/head/; revision=166844
* Move mapping of MBI_APPEND to MBI_WRITE from inside the rule loop inRobert Watson2007-02-201-9/+8
| | | | | | | | | | mac_bsdextended_check() to before the loop, as it needs to happen only once. MFC after: 1 week Notes: svn path=/head/; revision=166843
* Rename two identically named log_in_vain variables: tcp_input.c's staticRobert Watson2007-02-205-13/+13
| | | | | | | | | | log_in_vain to tcp_log_in_vain, and udp_usrreq's global log_in_vain to udp_log_in_vain. MFC after: 1 week Notes: svn path=/head/; revision=166842
* Gratuitous UDP restyling toward style(9) in 7.x.Robert Watson2007-02-203-175/+168
| | | | Notes: svn path=/head/; revision=166841
* Remove discontinuity in network privilege number space.Robert Watson2007-02-201-70/+70
| | | | | | | Spotted by: emaste (ages ago) Notes: svn path=/head/; revision=166839
* Remove unused PRIV_IPC_EXEC. Renumbers System V IPC privilege.Robert Watson2007-02-202-4/+2
| | | | Notes: svn path=/head/; revision=166838
* Sync up PRIV_IPC_{ADMIN,READ,WRITE} priv checks in ipcperm() withRobert Watson2007-02-201-3/+6
| | | | | | | | kern_jail.c: allow jailed root these privileges. This only has an effect if System V IPC is administratively enabled for the jail. Notes: svn path=/head/; revision=166837
* Restore sysv_ipc.c:1.30, which was backed out due to interactions withRobert Watson2007-02-191-38/+66
| | | | | | | | | | | | | | | | | | | | | | | | System V shared memory, now believed fixed in sysv_shm.c:1.109: date: 2006/11/06 13:42:01; author: rwatson; state: Exp; lines: +65 -37 Sweep kernel replacing suser(9) calls with priv(9) calls, assigning specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net> This restores fine-grained privilege support to System V IPC. PR: 106078 Notes: svn path=/head/; revision=166836
* Remove call to ipcperm() in shmget_existing(). The flags argument isRobert Watson2007-02-191-3/+0
| | | | | | | | | | | | | | ignored on other systems I investigated when accessing an existing memory segment rather than creating a new one. This call to ipcperm() is the only one to pass in a complete mode flag to the permission checks rather than a simple access request mask, and caused problems for the revised ipcperm() based on the priv(9) interface, which can now be restored. PR: 106078 Notes: svn path=/head/; revision=166835
* Use privilege PRIV_NET_ADDIFADDR rather than suser() to authorizeRobert Watson2007-02-191-1/+2
| | | | | | | adding a netatalk address to an interface. Notes: svn path=/head/; revision=166833
* Rename three quota privileges from the UFS privilege namespace to theRobert Watson2007-02-193-34/+34
| | | | | | | | | | | | | VFS privilege namespace: exceedquota, getquota, and setquota. Leave UFS-specific quota configuration privileges in the UFS name space. This renumbers VFS and UFS privileges, so requires rebuilding modules if you are using security policies aware of privilege identifiers. This is likely no one at this point since none of the committed MAC policies use the privilege checks. Notes: svn path=/head/; revision=166832
* Limit quota privileges in jail to PRIV_UFS_GETQUOTA andRobert Watson2007-02-192-17/+5
| | | | | | | PRIV_UFS_SETQUOTA. Notes: svn path=/head/; revision=166831
* Do allow bypass of mac_seeotheruids in jail in order to be consistentRobert Watson2007-02-191-1/+2
| | | | | | | | with other uses of PRIV_SEEOTHERUIDS. This will automatically be scoped to the jail by the jail policy. Notes: svn path=/head/; revision=166830
* Do allow privilege to create over-sized messages on System V IPCRobert Watson2007-02-191-1/+2
| | | | | | | message queues in jail. Notes: svn path=/head/; revision=166829
* Use priv_check(9) instead of suser(9) for checking the privilege toRobert Watson2007-02-191-1/+1
| | | | | | | | | set real-time priority on a thread. It looks like this suser(9) call was introduced after my first pass through replacing superuser checks with named privilege checks. Notes: svn path=/head/; revision=166828
* For now, reflect practical reality that Audit system calls aren'tRobert Watson2007-02-191-0/+2
| | | | | | | allowed in Jail: return a privilege error. Notes: svn path=/head/; revision=166827
* Do allow PIOCSFL in jail for setguid processes; this is more consistentRobert Watson2007-02-191-4/+2
| | | | | | | | with other debugging checks elsewhere. XXX comment on the fact that p_candebug() is not being used here remains. Notes: svn path=/head/; revision=166826
* Unbreak ddb stepping over special frames after the following commit:Konstantin Belousov2007-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | Revision Changes Path 1.113 +4 -2 src/sys/i386/i386/apic_vector.s 1.117 +7 -1 src/sys/i386/i386/exception.s 1.36 +7 -7 src/sys/i386/i386/local_apic.c 1.298 +61 -63 src/sys/i386/i386/trap.c 1.62 +15 -22 src/sys/i386/i386/vm86.c 1.32 +4 -2 src/sys/i386/i386/vm86bios.s 1.21 +2 -2 src/sys/i386/include/apicvar.h 1.27 +2 -2 src/sys/i386/isa/atpic.c 1.50 +2 -1 src/sys/i386/isa/atpic_vector.s 1.35 +1 -1 src/sys/i386/isa/icu.h Tested by: kris, Peter Holm No objections from: kmacy Notes: svn path=/head/; revision=166825
* Remove union_dircheckp hook, it is not needed by new unionfs code anymore.Konstantin Belousov2007-02-191-65/+33
| | | | | | | | | | | | As consequence, getdirentries() no longer needs to drop/reacquire directory vnode lock, that would allow it to be reclaimed in between. Reported and tested by: Peter Holm Approved by: rodrigc (unionfs) MFC after: 1 week Notes: svn path=/head/; revision=166824
* MFi386 rev. 1.544 of i386/i386/pmap.c:Konstantin Belousov2007-02-191-0/+14
| | | | | | | | | | | | | Rounding addr upwards to next 2M boundary in pmap_growkernel() could cause addr to become 0, resulting in an early return without populating the last PDE. Reported and tested by: kris Suggested by: alc MFC after: 1 week Notes: svn path=/head/; revision=166823
* Add two new options, FLASHADDR, which defines the address the flash isOlivier Houchard2007-02-192-0/+4
| | | | | | | | | | mapped at, and LOADERRAMADDR, the address at which the loader maps the ram at at the time the kernel is booted. They are used to detect if the kernel is booted from the onboard flash. Define those for the IQ31244 Notes: svn path=/head/; revision=166820
* Teach the kernel and the ELF trampoline how to boot from onboard flash.Olivier Houchard2007-02-192-37/+82
| | | | Notes: svn path=/head/; revision=166819
* There's no such thing as a GENERIC kernel on arm.Olivier Houchard2007-02-193-3/+3
| | | | | | | | Spotted out by: csjp MFC After: 3 days Notes: svn path=/head/; revision=166818
* Correct typos containing my login name (plus one more in expr.y).Ceri Davies2007-02-181-1/+1
| | | | | | | Found courtesy of a recursive grep in the wrong directory. Notes: svn path=/head/; revision=166813
* The table of known CPU models ends with an entry that has a versionMarcel Moolenaar2007-02-181-1/+1
| | | | | | | | | of 0, not with an entry that has an empty CPU name. Submitted by: Andrew Turner (andrew@fubar.geek.nz) Notes: svn path=/head/; revision=166812
* #ifdef INET6 printing of inpcb IPv6 addresses in DDB. Patch committedRobert Watson2007-02-181-0/+4
| | | | | | | | | with minor adjustments. Submitted by: Florian C. Smeets <flo at kasimir dot com> Notes: svn path=/head/; revision=166811
* Eliminate some acquisitions and releases of the page queues lock that areAlan Cox2007-02-184-8/+0
| | | | | | | no longer necessary. Notes: svn path=/head/; revision=166810
* Enable vm_page_free() and vm_page_free_zero() to be called on some pagesAlan Cox2007-02-181-2/+4
| | | | | | | | without the page queues lock being held, specifically, pages that are not contained in a vm object and not a member of a page queue. Notes: svn path=/head/; revision=166808
* Add "show inpcb", "show tcpcb" DDB commands, which should come in handyRobert Watson2007-02-173-2/+578
| | | | | | | for debugging sblock and other network panics. Notes: svn path=/head/; revision=166807
* Remove a stale comment. Add punctuation to a nearby comment.Alan Cox2007-02-171-6/+1
| | | | Notes: svn path=/head/; revision=166805
* Add support for chipsets that has NULL'd BAR's for legacy ports.Søren Schmidt2007-02-172-10/+12
| | | | | | | | | | This allows DMA to be used on a fine little geode system I got here and most like on lots of older systems like that. HW donated by: Paul Ghering Notes: svn path=/head/; revision=166802
* This README file is obsolete. The cited problems were fixed long agoKirk McKusick2007-02-171-58/+0
| | | | | | | | and the code is installed by default so no longer requires action by the administrator to be included. Notes: svn path=/head/; revision=166799