summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add more devstat calculations, mostly filling in holes, but also addingphk2003-03-182-27/+130
| | | | | | | | | | | | | | | | | | | | a couple of reqests: DSM_BUSY_PCT and DSM_QUEUE_LENGTH. I have no further plans for mutilating this API at this point in time, and will update the man-page to reflect current reality as the next thing. Reviewed by: ken
* | Use devstat instead of GEOM private statistics structure.phk2003-03-182-8/+7
| |
* | Missed in last commit: don't compile now non-existent geom_stats.cphk2003-03-181-1/+0
| |
* | Retire the GEOM private statistics code and use devstat instead.phk2003-03-187-300/+16
| |
* | If devstat_new_entry() is passed a unit number of -1 assume thatphk2003-03-181-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the devstat is for an "interior" GEOM node and register using the name argument as a geom identity pointer. Do not put these devstat structures on the list returned by the sysctl. This gives us the ability to tell the two kinds of nodes apart and leave the current "strictly physical" view of devstat intact without modifications, yet be able to use devstat for both kinds of devices. It also saves us bloating struct devstat with another 48 bytes of space for the name. At least for now. Reviewed by: ken
* | Make devstat fully Giant agnostic:phk2003-03-181-42/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a mutex and protect the allocation and traversal of the list with it. When we allocate a page for devstat use we drop the mutex and use M_WAITOK this is not nice, but under the given circumstances the best we can do. In the sysctl handler for returning the devstat entries we do not want to hold the mutex across copyout(9) calls, so we keep a very careful eye on the devstat_generation count, and abandon with EBUSY if it changes under our feet. Specifically test for BIO_WRITE, rather than default non-read,non-deletes as write. Make the default be DEVSTAT_NO_DATA. Add atomic increments of the sequence[01] fields so applications using the mmap'ed view stand a chance of detecting updates in progress. Reviewed by: ken
* | Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-1855-54/+1
| | | | | | | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* | Remove unused fields.jake2003-03-181-5/+1
| |
* | Make devstat_new_entry() take a const void * rather than const char *phk2003-03-182-6/+6
| | | | | | | | argument, GEOM nodes are not identified by ascii string.
* | Instead of relying on a compile time define to determine whether the xlsilby2003-03-182-37/+34
| | | | | | | | | | | | | | | | | | driver should use port or memory based IO, determine it dynamically at runtime, preferring MMIO where possible. This helps us support newer arches which dislike port based access better. Tested on i386 & sparc64, with 3c900, 905, 905b, and 905C cards. (in varying combinations by both jake and myself)
* | o Lucent cards don't seem to like multiple buffers for tx. Use onlyimp2003-03-182-37/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one tx buffer for these cards. The old driver only used one. We use 1 for symbol, and 3 for prism cards. o Don't do the maximum loops thing in the ISR. In fact, revert to the old interrupt handler. Lucent cards don't seem to work too well if you don't disable/enable interrupts from the card in the ISR. Between these two changes, Lucent cards suck less. They work in autoselect mode only. And seem to get 1Mbps or 2Mbps only. Setting a specific media speed doesn't work, and I've had a few issues even with these patches. They turn a former brick into a nearly useful card. These patches work on the prism 2 and 2.5 PC Card cards that I have. I've not tested this on PCI cards. I suspect, but couldn't find proof, that they were the reason that the ISR was changed so radically from its FreeBSD roots in NetBSD. We might need to have a variant ISR if so.
* | Move symbol reset detection code back into wi_reset. This is a moreimp2003-03-182-8/+10
| | | | | | | | | | | | | | reliable way to detect if the symbol cards have been reset or not. This makes symbol cards work better. Submitted by: deischen
* | Add DLINK DWL650Himp2003-03-181-0/+1
| | | | | | | | From NetBSD by way of deischen
* | Add SMC 2602W pci card, from a post to mobile@imp2003-03-181-0/+1
| |
* | Use %jd and a cast to intmax_t instead of a cast to long.imp2003-03-181-4/+4
| | | | | | | | Minor style nit while I'm here.
* | Tag longling_addr as maybe using a bad type, I'm not sure.imp2003-03-181-1/+1
| |
* | Regenerate for 1.45imp2003-03-181-1/+4
| |
* | Add DLINK DWL650Himp2003-03-181-0/+1
| | | | | | | | From NetBSD by way of deichen
* | Attach the kldxref script to the build/install.cjc2003-03-171-1/+1
| |
* | A new rc-ng script to build linker.hints files with kldxref(8)cjc2003-03-173-0/+82
| | | | | | | | | | automatically at boot time. Associated rc.conf(5) knobs and documentation are included.
* | Improved version of Unix sex.dcs2003-03-171-0/+3
| | | | | | | | Submitted by: Chris Wasser <cwasser@shaw.ca>
* | Update release note: awk 20030314.bmah2003-03-172-4/+4
| | | | | | | | MFC: FILE 3.41.
* | Expand the APIC ID mask field of the ICR register to 8 bits intead of justjhb2003-03-173-3/+3
| | | | | | | | | | | | | | | | | | 4 bits. This reportedly fixes booting on the SW7500CW2. Much thanks to the submitter for tracking this down! Submitted by: Brian Buchanan <brian@ncircle.com> Reviewed by: peter MFC after: 3 days
* | Clean up /dev/mem now that pmap handles illegal aliases properly. Don'tjake2003-03-171-54/+70
| | | | | | | | | | allow access to device memory through /dev/mem, or try to make modifying kernel text through /dev/mem safe (it is not).
* | In rev 1.603 I should have changed it to mdconfig rather than remove it.obrien2003-03-171-0/+2
| | | | | | | | | | | | | | I don't recall now, but for some reason I didn't think it was needed. Also place the mdconfig right before the chroot call, to make it stand out this needs to be done in the standard environment, as we've tried doing it in the chroot environment before.
* | - Unlock the target bp and not the pager buf bp in a failure case injeff2003-03-171-1/+1
| | | | | | | | | | | | | | cluster_wbuild(). This was causing strange panics that were widely reported on current@. Big Pointy Hat to: jeff
* | - Lock down the bounce pages structures. We use the same locking schememux2003-03-172-52/+68
| | | | | | | | | | | | as with the alpha backend because both implementations of bounce pages are identical. - Remove useless splhigh()/splx() calls.
* | Unbreak iso.1.ru2003-03-171-3/+3
| |
* | Tidy up the locking of the bounce pages structures.mux2003-03-171-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | - Use SYSINIT to initialize the structures instead of checking total_bpages against 0 in alloc_bounce_pages(), which could lead to several initializations being done at the same time. - Add missing locking in bus_dmamap_load(), the bounce pages mutex must be held when calling reserve_bounce_pages() and when touching the bounce_map_waitinglist list. - Remove the useless splhigh() and splx() calls. - Assert that the bounce pages mutex is held in reserve_bounce_pages() to catch regressions.
* | Remove bogus KASSERT. The 802.11 layer and the resume from suspendimp2003-03-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | code both seem to call wi_start (directly or via the if_start pointer) without checking to see if OACTIVE is 0. In addition, I think that with the use of 3 transmit buffers this routine can be called with OACTIVE set, but I might be mistaken about that (and it doesn't matter). Reviewed by: sam Noticed by: imp, alfred, ambrisko
* | (This commit certainly increases the need for a wash&clean of vfs_cache.c,phk2003-03-172-412/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but I decided that it was important for this patch to not bit-rot, and since it is mainly moving code around, the total amount of entropy is epsilon /phk) This is a patch to move the common parts of linux_getcwd() back into kern/vfs_cache.c so that the standard FreeBSD libc getcwd() can use it's extended functionality. The linux syscall linux_getcwd() in compat/linux/linux_getcwd.c has been rewritten to use it too. It should be possible to simplify libc's getcwd() after this. No doubt this code needs some cleaning up, since I've left in the sysctl variables I used for debugging. PR: 48169 Submitted by: James Whitwell <abacau@yahoo.com.au>
* | Flush the output buffers before forking a child process to avoidtjr2003-03-171-0/+1
| | | | | | | | | | | | | | the child process writing data that the parent should have written. PR: 50051 MFC after: 2 weeks
* | Constify arg to geom_lookupid().phk2003-03-172-3/+3
| | | | | | | | Improve a diagnostic printf.
* | For the bwk_20030314 version, we have to -DHAS_ISBLANK now.obrien2003-03-171-1/+1
| | | | | | | | Oh how I wish the author had accepted my "#ifndef isblank" patch instead.
* | This commit was generated by cvs2svn to compensate for changes in r112336,obrien2003-03-177-26/+99
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Vendor import of bwk's 14-March-2003 release.obrien2003-03-177-26/+99
| | |
* | | Fix malloc() without legal mode flag.phk2003-03-172-2/+2
| | |
* | | Fix a malloc() with no legal modeflag.phk2003-03-172-2/+2
| | |
* | | Ignore GBDE devices.phk2003-03-171-0/+2
| | | | | | | | | | | | Spotted by: Lucky Green <shamrock@cypherpunks.to>
* | | Use positive logic rather than harder-to-read negative logic.obrien2003-03-171-21/+21
| | |
* | | Ensure that kstack0 has physical colour equal to virtual colour, so thatjake2003-03-171-4/+11
| | | | | | | | | | | | | | | illegal aliases will not be created in the data cache if its accessed through another such mapping.
* | | Subtract the memory that backs the vm_page structures from phys_availjake2003-03-171-4/+2
| | | | | | | | | | | | | | | after mapping it. This makes it possible to determine if a physical page has a backing vm_page or not.
* | | Make pw_edit() use /bin/sh to interpret the EDITOR environmentdas2003-03-171-2/+12
| | | | | | | | | | | | | | | | | | | | | variable. PR: 48748 Reviewed by: mike (mentor)
* | | Forced non-forced commit by adding a comment mentioning what themarcel2003-03-171-0/+1
| | | | | | | | | | | | | | | previous commit log should have mentioned: PR: ia64/49081
* | | Add a #define for the device name of the mmap device for devstat.phk2003-03-162-2/+7
| | | | | | | | | | | | Constify the geom identification pointer.
* | | Make PREFETCHDISTFILES the default. Set NO_PREFETCHDISTFILES if you don'tobrien2003-03-162-11/+20
| | | | | | | | | | | | like this. Also make it easier to issue the distfile fetching on command.
* | | libobjc is linked against shared objects and since we don't have amarcel2003-03-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shared object of libobjc, we end up linking in from the archive version. This is wrong, because we don't compile the archive version suitable for inclusion in shared objects. On ia64 this causes actual breakages. Compile the archive version with PIC on ia64 to avoid the breakage there and also to avoid changing the status quo on other architectures. If other architectures have the same problem, we probably should start building a shared library. There's no indication however that other architectures actually need it. Building the archive version with PIC on ia64 does pessimize linking complete binaries (ie fully archive), but we don't use Objective-C ourselves and so far I haven't seen non-shared executables written in Objective-C, so I'm sure this will be nothing but academic. Trigger case: ports/lang/gnustep-base
* | | Add PORTREADMES_FLAGS which can really speed up the build on SMP machinesobrien2003-03-161-1/+3
| | | | | | | | | | | | when set to -j<3*#CPU's>
* | | #ifdef notyet a bit of code which needs not yet committed refcounting tophk2003-03-161-0/+2
| | | | | | | | | | | | work correctly.
* | | Fix the cable detection and properly find the host bridge onsos2003-03-161-22/+22
| | | | | | | | | | | | older SiS chips.
OpenPOWER on IntegriCloud