summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Give a try to autoconfiguring the number of transmit and receiveglebius2005-11-102-7/+14
| | | | descriptors depending on chip revision.
* Expanet of details printed for each file descriptor to include it'srwatson2005-11-101-5/+5
| | | | | | | garbage collection flags. Reformat generally to make this fit and leave some room for future expansion. MFC after: 1 week
* Add a DDB "show files" command to list the current open file list, somerwatson2005-11-101-0/+73
| | | | | | | | state about each open file, and identify the first process in the process table that references the file. This is helpful in debugging leaks of file descriptors. MFC after: 1 week
* add set/read max address 48bit versionssos2005-11-101-0/+2
|
* Since union wait was removed in revision 1.17 (3 years, 5 months ago),davidxu2005-11-101-3/+1
| | | | | | type casting version of macro _W_INT is no longer needed. Discussed with: yongari
* Implement RtlZeroMemory() and RtlCopyMemory(). This seems to allowwpaul2005-11-101-0/+23
| | | | the Broadcom Win64 wireless driver for the BCM4318 to work on amd64.
* This is a workaround for a complicated issue involving VFS cookies and devfs.dwhite2005-11-092-0/+28
| | | | | | | | | | | | | The PR and patch have the details. The ultimate fix requires architectural changes and clarifications to the VFS API, but this will prevent the system from panicking when someone does "ls /dev" while running in a shell under the linuxulator. This issue affects HEAD and RELENG_6 only. PR: 88249 Submitted by: "Devon H. O'Dell" <dodell@ixsystems.com> MFC after: 3 days
* Fix typo in recent comment tweak.rwatson2005-11-091-1/+1
| | | | | Submitted by: jkim MFC after: 1 week
* In closef(), remove the assumption that there is a thread associatedrwatson2005-11-091-2/+6
| | | | | | | | | | | with the file descriptor. When a file descriptor is closed as a result of garbage collecting a UNIX domain socket, the file descriptor will not have any associated thread, so the logic to identify advisory locks held by that thread is not appropriate. Check the thread for NULL to avoid this scenario. Expand an existing comment to say a bit more about this. MFC after: 1 week
* Unbreak second joystick (joy1) support.jylefort2005-11-091-2/+8
| | | | | | PR: kern/46734 Submitted by: Richard Airlie <richard@darq.net> Approved by: netchild
* General consensus is that it would be even better to run this in aimp2005-11-091-1/+1
| | | | | | | | thread context. While it doesn't matter too much at the moment, in the future we could be back in the same boat if/when more restrictions are placed (or enforced) in a SWI. Suggested by: njl, bde, jhb, scottl
* - Introduce two more stat counters, counting number of RXglebius2005-11-092-4/+9
| | | | | | | | | | | | | overruns and number of watchdog timeouts. - Do not log(9) RX overrun events, since this pessimizes things under load [1]. - Do not increase if->if_oerrors in em_watchdog(), since this leads to counter slipping back, when if->if_oerrors is recalculated in em_update_stats_counters(). Instead increase watchdog counter in em_watchdog() and take it into account in em_update_stats_counters(). Submitted by: ade [1]
* Use intptr_t casts to convert void * <--> int to make 64-bit archs happy.jhb2005-11-091-2/+2
|
* Make IFP2NG() usable as an lvalue.ru2005-11-092-9/+6
|
* Use sparse initializers for "struct domain" and "struct protosw",ru2005-11-0917-497/+640
| | | | so they are easier to follow for the human being.
* MFi386: Remove obsolete options.nyan2005-11-091-1/+0
|
* Fix pc98 build.nyan2005-11-093-0/+6
|
* No longer needed: replaced by mmu_if.m/pmap_dispatch.c/mmu_oea.cgrehan2005-11-091-2476/+0
|
* Apply r1.103 to correct place.grehan2005-11-091-1/+0
| | | | | | | pmap.c on PowerPC is now a combo of mmu_if.m, pmap_dispatch.c and mmu_oea.c (I forgot to delete pmap.c from CVS in last jumbo commit)
* Uncomment em(4) as it's now working.yongari2005-11-091-1/+1
|
* Connect em(4) build on sparc64.yongari2005-11-091-0/+1
|
* Make em(4) work on big-endian architectures.yongari2005-11-094-66/+75
| | | | | | | | | | | | | | | | | - disable jumbo frame support on strict alignment architectures due to the limitation of hardware. The driver needs a fix-up code for RX side. The fix will show up in near future. - fix endian issue for 82544 on PCI-X bus. I couldn't test this as I don't have the NIC/hardware. - prefer PCIR_BAR to hardcoded EM_MMBA. - Properly checks for for 64bit BAR [1] - replace inl/outl with bus_space(9) [1] - fix endian issue on VLAN handling. - reorder header files and remove unnecessary one. Reviewed by: cognet No response from: pdeuskar, tackerman Obtained from: OpenBSD [1]
* Reimplement the reclamation of PV entries. Specifically, performalc2005-11-098-152/+190
| | | | | | | | | | | | | | | | | | reclamation synchronously from get_pv_entry() instead of asynchronously as part of the page daemon. Additionally, limit the reclamation to inactive pages unless allocation from the PV entry zone or reclamation from the inactive queue fails. Previously, reclamation destroyed mappings to both inactive and active pages. get_pv_entry() still, however, wakes up the page daemon when reclamation occurs. The reason being that the page daemon may move some pages from the active queue to the inactive queue, making some new pages available to future reclamations. Print the "reclaiming PV entries" message at most once per minute, but don't stop printing it after the fifth time. This way, we do not give the impression that the problem has gone away. Reviewed by: tegge
* WIFxxx macros requires an int type but p_xstat is short, convert itdavidxu2005-11-091-2/+3
| | | | | | to int before using the macros. Bug reported by : Pyun YongHyeon pyunyh at gmail dot com
* Kick off the suspend sequence from the keyboard in a SWI rather thanimp2005-11-091-2/+13
| | | | | | | | | | | in the hardware interrupt context (even if it is likely just an ithread). We don't document that suspend/resume routines are run from such a context and some of the things that happen in those routines aren't interrupt safe. Since there's no real need to run from that context, this restores assumptions that suspend routines have made. This fixes Thierry Herbelot's 'Trying to sleep while sleeping is prohibited' problem.
* Clarify panic message, I parsed the old one 'trying to sleep while sleeping'imp2005-11-091-1/+1
|
* Remove obsolete optionsimp2005-11-091-1/+0
|
* Add support for XBOX to the FreeBSD port. The xbox architecture isimp2005-11-0913-0/+945
| | | | | | | | | | | | | | | | | | | | nearly identical to wintel/ia32, with a couple of tweaks. Since it is so similar to ia32, it is optionally added to a i386 kernel. This port is preliminary, but seems to work well. Further improvements will improve the interaction with syscons(4), port Linux nforce driver and future versions of the xbox. This supports the 64MB and 128MB boxes. You'll need the most recent CVS version of Cromwell (the Linux BIOS for the XBOX) to boot. Rink will be maintaining this port, and is interested in feedback. He's setup a website http://xbox-bsd.nl to report the latest developments. Any silly mistakes are my fault. Submitted by: Rink P.W. Springer rink at stack dot nl and Ed Schouten ed at fxq dot nl
* Improve diagnostic message.imp2005-11-091-2/+3
|
* For nmount(), allow a text string error message to be propagated backrodrigc2005-11-091-2/+37
| | | | | | | | | to user-space if a parameter named "errmsg" is passed into the iovec. Used in conjunction with vfs_mount_error(), more useful error messages than errno can be passed back to userspace when mounting a filesystem fails. Discussed with: phk, pjd
* In aio_waitcomplete, do not return EAGAIN if no other threadsdavidxu2005-11-081-1/+1
| | | | | | | | | | | have started aio, instead, initialize aio management structure if it hasn't been done, the reason to adjust this behavior is to make it a bit friendly for threaded program, consider two threads, one submits aio_write, and another just calls aio_waitcomplete to wait any I/O to be completed and recycle the aio requests, before submitter doing any I/O, the recycler wants to wait in kernel. This also fixes inconsistency with other aio syscalls.
* Make sure pending SIGCHLD is removed from previous parent when processdavidxu2005-11-081-1/+10
| | | | is attached or detached.
* twa corresponding to the 9.3.0.1 release on the 3ware website. This driver hasvkashyap2005-11-0818-22644/+44220
| | | | | support for the 9xxxSX controllers, along with the earlier 9xxxS series controllers.
* The hptmv inherently believes that a 'long' can hold a physical address.scottl2005-11-081-0/+1
| | | | | | | | This hasn't been true on i386 for at least a decade, probably longer, but I'm too lazy to look up the exact year that PAE support was introduced. Thus, this driver doesn't work on PAE. X-MFC After: now
* Move the cloned interface list management in to if_clone. For some drivers thethompsa2005-11-0815-134/+63
| | | | | | | | | | softc lists and associated mutex are now unused so these have been removed. Calling if_clone_detach() will now destroy all the cloned interfaces for the driver and in most cases is all thats needed to unload. Idea by: brooks Reviewed by: brooks
* Various and sundry cleanups:jhb2005-11-081-80/+84
| | | | | | | | | | | - Use curthread for calls to knlist_delete() and add a big comment explaining why as well as appropriate assertions. - Use TAILQ_FOREACH and TAILQ_FOREACH_SAFE instead of handrolling them. - Use fget() family of functions to lookup file objects instead of grovelling around in file descriptor tables. - Destroy the aio_freeproc mutex if we are unloaded. Tested on: i386
* Giant clean up for exit(2)csjp2005-11-081-7/+7
| | | | | | | | | | | | -Change unconditional aquisition of Giant to only pickup Giant if the vnode for the controlling tty resides on a non-mpsafe file system. -Pickup Giant around executable vnode reference counting operations only if the executable resides on a non-mpsafe file system. -If this process is being traced, pickup Giant for trace file reference count operations only if it resides on a non-mpsafe file system. Discussed with: jhb Tested by: kris
* Fix standalone module build for viapm. Note that by default it doesn'tjhb2005-11-081-2/+2
| | | | include the ISA bus support even though it probably should.
* Mollify the whitespace policeimp2005-11-081-27/+27
|
* Fix support for multiple RocketPort cards in the same machine by includingjhb2005-11-081-1/+1
| | | | | | | the RocketPort unit number in the name of the devices. This means that unit 0 device names will change from ttyR0 .. ttyRf to ttyR00 .. ttyR0f. Reviewed by: phk
* There's no need to include <machine/asmacros.h> here.cognet2005-11-081-1/+0
|
* Rework ARP retransmission algorythm so that ARP requests areglebius2005-11-081-30/+27
| | | | | | | | | | | | | | | retransmitted without suppression, while there is demand for such ARP entry. As before, retransmission is rate limited to one packet per second. Details: - Remove net.link.ether.inet.host_down_time - Do not set/clear RTF_REJECT flag on route, to avoid rt_check() returning error. We will generate error ourselves. - Return EWOULDBLOCK on first arp_maxtries failed requests , and return EHOSTDOWN/EHOSTUNREACH on further requests. - Retransmit ARP request always, independently from return code. Ratelimit to 1 pps.
* Add support for queueing SIGCHLD same as other UNIX systems did.davidxu2005-11-086-14/+136
| | | | | | | | | | | | | | | | | | | | For each child process whose status has been changed, a SIGCHLD instance is queued, if the signal is stilling pending, and process changed status several times, signal information is updated to reflect latest process status. If wait() returns because the status of a child process is available, pending SIGCHLD signal associated with the child process is discarded. Any other pending SIGCHLD signals remain pending. The signal information is allocated at the same time when proc structure is allocated, if process signal queue is fully filled or there is a memory shortage, it can still send the signal to process. There is a booting time tunable kern.sigqueue.queue_sigchild which can control the behavior, setting it to zero disables the SIGCHLD queueing feature, the tunable will be removed if the function is proved that it is stable enough. Tested on: i386 (SMP and UP)
* Simplify setting the link-level address.ru2005-11-081-19/+3
|
* Name change from pmap_* to moea_* to fit into the new order ofgrehan2005-11-082-934/+918
| | | | | | mmu implementation. This code handles the 32-bit 'OEA' MMU found on G2/G3/G4 PPC cores.
* Insert a layer of indirection to the pmap code, using a kobj forgrehan2005-11-087-5/+1251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the interface. This allows run-time selection of MMU code, based on CPU-type detection, or tunable-overrides when testing new code. Pre-requisite for G5 support. conf/files.powerpc - remove pmap.c - add mmu_if.h, mmu_oea.c, pmap_dispatch.c powerpc/include/mmuvar.h - definitions for MMU implementations powerpc/include/pmap.h - remove pmap_pte_spill declaration - add pmap_mmu_install declaration - size the phys_avail array - pmap_bootstrapped is now global-scope powerpc/powerpc/machdep.c - call kobj_machdep_init early in the boot sequence to allow kobj usage prior to SI_SUB_LOCK - install the OEA pmap code. This will be moved to CPU-specific init code in the future. powerpc/powerpc/mmu_if.m - Kobj MMU interface definitions powerpc/powerpc/pmap_dispatch.c - central dispatch for pmap calls - contains the global mmu kobj and the routine to locate the the mmu implementation and init the kobj
* If a physical page is mapped by two or more virtual addresses, transmittedalc2005-11-081-0/+1
| | | | | | | | | | by the zero-copy sockets method, and written to before the transmission completes, we need to destroy all of the existing mappings to the page, not just the one that we fault on. Otherwise, the mappings will no longer be to the same page and changes made through one of the mappings will not be visible through the others. Observed by: tegge
* Add utility function to propagate mount errors as text string messages.rodrigc2005-11-082-0/+22
| | | | Discussed with: phk
* Add #nclude <dev/pci/pcireg.h> to pick up definitions for PCIR_BAR androdrigc2005-11-081-0/+1
| | | | PCIR_SUBVEND_0.
* Use PCIR_xxx constants for PCI config space header registers rather thanjhb2005-11-071-3/+3
| | | | magic numbers.
OpenPOWER on IntegriCloud