summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Calculate bio_completed properly or die!pjd2004-04-041-0/+3
| | | | Approved by: phk
* Fix a panic possibility caused by returning without releasing locks.pjd2004-04-041-37/+26
| | | | | | | | | | | | It was fixed by moving problemetic checks, as well as checks that doesn't need locking before locks are acquired. Submitted by: Ryan Sommers <ryans@gamersimpact.com> In co-operation with: cperciva, maxim, mlaier, sam Tested by: submitter (previous patch), me (current patch) Reviewed by: cperciva, mlaier (previous patch), sam (current patch) Approved by: sam Dedicated to: enough!
* Spell 2 as SHUT_RDWR when used as an argument to soshutdown().rwatson2004-04-042-2/+2
|
* Detatch incorrect spellings of detach.rwatson2004-04-041-1/+1
|
* Explicitly compare pointers with NULL rather than treating a pointer asrwatson2004-04-042-6/+9
| | | | a boolean directly, use NULL instead of 0.
* - Use the proper constant in sched_interact_update(). Previously,jeff2004-04-041-1/+1
| | | | | | SCHED_INTERACT_MAX was used where SCHED_SLP_RUN_MAX was needed. This was causing the interactivity scaler to lose history at a more dramatic rate than intended.
* Put a bunch of output that us really only useful in a debugmarkm2004-04-042-2/+26
| | | | | | | | | | scenario into #ifdef DEBUG. This makes my cluster with Belkin KVM switch completely usable, even if the KVM switch and mouse get a bit confused sometimes. Without this, when the mouse gets confused, all sorts of crud gets spammed all over the screen. With this, the mouse may appear dead for a second or three, but it recovers silently.
* - Use an ihandle_t to store the stdout instance handle instead of atmm2004-04-042-3/+3
| | | | | | | | | | | | phandle_t. Since both are typedefed to unsigned int, this is more or less cosmetic. - Fix the code that determines whether a creator instance was used for firmware output (and should not be blanked on initialization). Since r1.2 of dev/fb/creator.c, this consisted comparing a handle of an instance of a package with a handle of the package itself. Use the test from r1.1, which utilizes OF_instance_to_package(). Submitted by: Marius Strobl <marius@alchemy.franken.de>
* whoops, forgot to fix these places where arpresolve() was usedluigi2004-04-043-3/+3
| | | | Detected by: tinderbox
* + arpresolve(): remove an unused argumentluigi2004-04-045-34/+12
| | | | | | | | | + struct ifnet: remove unused fields, move ipv6-related field close to each other, add a pointer to l3<->l2 translation tables (arp,nd6, etc.) for future use. + struct route: remove an unused field, move close to each other some fields that might likely go away in the future
* Added BSD license, as requested by author.wes2004-04-041-0/+22
| | | | | Requested-by: Stuart Walsh <stu@ipng.org.uk> Message-ID: <20040331190716.GB32835@deepfreeze.stu>
* To quote the submitter:marcel2004-04-041-3/+15
| | | | | | | | | | | | | | | | | | | "...If "keyboard" is the selected input-device and "screen" the output-device (both via /options) but the keyboard is unplugged, OF automatically switches to ttya for the console, it even prints a line telling so on "screen". Solaris respects this behaviour and uses ttya as the console in this case and people probably expect FreeBSD to do the same (it's also very handy to temporarily switch consoles)..." "...I changed the comparison of the console device with "ttya" || "ttyb" to "tty" because on AXe boards all 4 onboard UARTs end in SUB-D connectors (ttya and ttyb being 16550 and ttyc and ttyd a SAB82532) and there's no Sun keyboard connector (but PS/2). If one plugs a serial card in a box there also can be more than just ttya and ttyb available for a console..." Submitted by: Marius Strobl <marius@alchemy.franken.de> Has no doubt that the change is correct: marcel
* To quote submitter:marcel2004-04-041-8/+24
| | | | | | | | | | | | | | | "... uart_cpu_sparc64.c currently only looks at /options if ttyX is the selected console. However, there's one case where it should additionally look at /chosen. If "keyboard" is the selected input- device and "screen" the output-device (both via /options) but the keyboard is unplugged, OF automatically switches to ttya for the console. It even prints a line telling so on "screen". Solaris respects this behaviour and uses ttya as the console in this case and people probably expect FreeBSD to do the same (it's also very handy to temporarily switch consoles)..." Submitted by: Marius Strobl <marius@alchemy.franken.de> Has no doubt the change is correct: marcel
* Backout revision 1.31. The twa entries were moved to i386/conf/NOTES.nyan2004-04-041-3/+0
|
* Fix the remaining warnings of growfs(8) on my sparc64 box withmux2004-04-031-1/+1
| | | | | | | | WARNS=6. I don't change the WARNS level in the Makefile because I didn't tested this on other archs. The fs.h fix was suggested by: marcel Reviewed by: md5(1)
* In uart_ebus_probe(), match "su_pnp" besides "su" for ns8250 familymarcel2004-04-031-2/+4
| | | | | | | | of UARTs. We already did this in uart_cpu_getdev(). While here, also check the compat name for "su" or "su16550". Both changes submitted by: Marius Strobl <marius@alchemy.franken.de> Does not doubt the correctness of the second change: marcel
* Add the ability to disable agp devices at the loader prompt. Usage isnjl2004-04-0314-0/+28
| | | | | | hint.agp.0.disabled="1" Submitted by: jhb
* Move the definition of rss() from db_interface.c to cpufunc.h wheremarcel2004-04-032-13/+8
| | | | | | it belongs. Change the implementation to match those of rfs() and rgs() for consistency and irrespective of whether the original was more correct or not (technically speaking).
* Remove CADDR1 and CMAP1. They are unused.alc2004-04-031-2/+0
|
* Remove ptmmap and ptvmmap. They are unused on amd64.alc2004-04-032-9/+1
|
* Create NT_PRSTATUS and NT_FPREGSET notes for each and every threadmarcel2004-04-031-50/+81
| | | | | | | | | | | | | | | | | | | | in the process. This is required for proper debugging of corefiles created by 1:1 or M:N threaded processes. Add an XXX comment where we should actually call a function that dumps MD specific notes. An example of a MD specific note is the NT_PRXFPREG note for SSE registers. Since BFD creates non-annotated pseudo-sections for the first PRSTATUS and FPREGSET notes (non-annotated in the sense that the name of the section does not contain the pid/tid), make sure those sections describe the initial thread of the process (i.e. the thread which tid equals the pid). This is not strictly necessary, but makes sure that tools that use the non-annotated section names will not change behaviour due to this change. The practical upshot of this all is that one can see the threads in the debugger when looking at a corefile. For 1:1 threading this means that *all* threads are visible.
* Unbreak LED support on Elan cpus.phk2004-04-031-6/+7
|
* Make led.c/led(4) standard so acpi_asus can use it too.phk2004-04-031-1/+1
|
* Flush cached access mode after modifying a files attributes forpeadar2004-04-031-0/+2
| | | | | | | | | | NFSv3. It's likely that modifying the attributes will affect the file's accessibility. This version of the patch is one suggested by Ian Dowse after reviewing my original attempt in the PR Reviewed By: iedowse PR: kern/44336 MFC after: 3 days
* Assign thread IDs to kernel threads. The purpose of the thread ID (tid)marcel2004-04-035-4/+200
| | | | | | | | | | | | | | | | | | | | | | | is twofold: 1. When a 1:1 or M:N threaded process dumps core, we need to put the register state of each of its kernel threads in the core file. This can only be done by differentiating the pid field in the respective note. For this we need the tid. 2. When thread support is present for remote debugging the kernel with gdb(1), threads need to be identified by an integer due to limitations in the remote protocol. This requires having a tid. To minimize the impact of having thread IDs, threads that are created as part of a fork (i.e. the initial thread in a process) will inherit the process ID (i.e. tid=pid). Subsequent threads will have IDs larger than PID_MAX to avoid interference with the pid allocation algorithm. The assignment of tids is handled by thread_new_tid(). The thread ID allocation algorithm has been written with 3 assumptions in mind: 1. IDs need to be created as fast a possible, 2. Reuse of IDs may happen instantaneously, 3. Someone else will write a better algorithm.
* Recharge the watchdog timer if there's still some TX work left.ru2004-04-031-0/+2
|
* Correct a potential panic condition that could be caused when getting ornectar2004-04-031-2/+4
| | | | | | | setting the VGA palette. Reported by: Christer Öberg <christer.oberg@texonet.com> Reviewed by: bde
* Before MFC'ing the previous commit, I noticed I'd left out a case.peadar2004-04-032-0/+2
| | | | | | | Add in missing case for i845G in the attach routine. I'll MFC this with the rest of the change after the 4.10 codefreeze lifts. Reviewed By: Doug Rabson
* mdoc fix: put the end-of-list macro after the last list element.le2004-04-031-1/+1
| | | | Approved by: grog (mentor)
* In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, italc2004-04-0313-20/+20
| | | | | | | should not. Add a new parameter so that the caller can specify which is the case. Reported by: dillon
* Microoptimize pagezero() based upon something that I learned writing thealc2004-04-031-7/+7
| | | | | optimized pagecopy(). This also has the virtual of making these two functions more similar in style.
* This file was erroneously removed from HEAD when TCP-MD5 support was MFC'd;bms2004-04-031-0/+169
| | | | correct this lameness.
* do proper subclassing of node free+copy; the previous hack falls apart whensam2004-04-031-0/+5
| | | | | | the 802.11 layer does useful work Obtained from: madwifi
* Fixed a few bugs in the rl(4) driver:ru2004-04-031-8/+10
| | | | | | | | | | | | | | | | | | | | Under polling(4), we counted non-existent output packets and wasted CPU cycles, corrected. (PR kern/64975.) The fix in revision 1.71 to correct resetting of the watchdog timer was wrong. In rl(4), the TX list does not have a gap between the consumer and producer, so the "empty TX list" test was wrong, corrected. Also, resetting the timer to five each time we know there is still some TX work to do was a bad idea -- under polling(4), if the chip goes out to lunch, this results in the watchdog routine to _never_ be called. Instead, let the timer downgrade to zero and fire the watchdog, then reset it to five when it is zero AND there is some TX work left. (Most other network drivers need this fix too.) MFC after: 3 days
* do proper subclassing of node free+copy; the previous hack falls apart whensam2004-04-031-2/+8
| | | | | | the 802.11 layer does useful work Obtained from: madwifi
* transmit beacon frames directly instead of defering them to a swi; theresam2004-04-032-4/+8
| | | | | | was too much delay Obtained from: madwifi
* update copyright notice for 2004sam2004-04-024-4/+4
|
* add new statisticssam2004-04-021-0/+3
| | | | Obtained from: madwifi
* check more quickly (and directly) if an interrupt is pending; this reducessam2004-04-021-0/+2
| | | | | | work done in ath_intr when the irq is shared Obtained from: madwifi
* cleanup descriptor allocation if attach failssam2004-04-021-2/+4
| | | | Obtained from: madwifi
* remove use IEEE80211_C_RCVMGTsam2004-04-021-1/+1
|
* Performance tuning.ru2004-04-022-41/+45
| | | | | | | | | | | | | | | | | | | | | | Moved the RX ring resyncing code to ste_rxeoc(), and only run it if we were asked to POLL_AND_CHECK_STATUS, under DEVICE_POLLING. (This significantly reduces the CPU load.) Improved the RX ring resyncing code by re-checking if the head is still empty before doing resyncing. This mostly affects the DEVICE_POLLING mode, where we run this code periodically. We could start checking with an empty head (well, an empty ring even), and after doing a few iterations, the chip might write a few entries, including the head, and we would bogusly consider this case as requiring resyncing. On a test box, this reduced the number of resyncs done by a factor of 10. In ste_txeof(sc), only reset the watchdog timer to zero when the TX list is completely empty. Converted ste_tx_prev_idx to a pointer -- faster. Removed some bitrot.
* Change handling of probe response frames. Previously we always dropped thesam2004-04-021-2/+27
| | | | | | | | | | | refcnt on the node but left it in the node table. This allows the node table to hold the results of scanned ap's but for ibss scans left nodes w/o any driver-private state setup and/or a bad refcnt (when the nodes were timed out they were prematurely discarded). Now we treat nodes identified for ap scanning as before but force nodes discovered when scanning for ibss neighbors to have complete/proper state and hold the refcnt on the node. Any other nodes created because of these frames are discarded directly (need to optimize this case to eliminate various work that's immediately discarded).
* fix adhoc/ibss operation for drivers that require host support (e.g. ath):sam2004-04-024-36/+79
| | | | | | | | | | | | o remove IEEE80211_C_RCVMGT capability o on transmit craft new nodes as needed using new ieee80211_find_txnode routine o add ieee80211_find_txnode routine to lookup a node by mac address and if not present create one when operating in ibss/ahdemo mode; new nodes are dup'd from bss and the driver is told to treat the node as if a new association has been created so driver-private state (e.g. rate control handling) is setup Obtained from: netbsd (basic idea)
* always free node reference when processing a probe request frame; wassam2004-04-021-7/+2
| | | | | conditionally doing an unref if operating in adhoc mode which turns out to be wrong
* o change ieee80211_dup_bss to inherit explicit data from ic_bss instead ofsam2004-04-021-2/+7
| | | | | | | | blindy copying the node contents; this turns out to be a bad idea as we add more state in the node for things like WPA o track node allocation failures in ieee80211_dup_bss instead of the callers Obtained from: madwifi
* track node allocation failure stats in ieee80211_alloc_node insteadsam2004-04-022-9/+5
| | | | | | of each caller Obtained from: madwifi
* replace explicit malloc/free with MALLOC/FREE for portabilitysam2004-04-021-3/+5
| | | | Obtained from: madwifi
* extract node matching logic into new ieee80211_match_bss routine for usesam2004-04-021-54/+66
| | | | | | in background/incremental scanning Obtained from: madwifi
* diff reduction against madwifisam2004-04-021-3/+5
|
OpenPOWER on IntegriCloud