summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert tcp_fillheaders(tp, ...) -> tcpip_fillheaders(inp, ...) so thejlemon2003-02-195-82/+71
| | | | | | | | routine does not require a tcpcb to operate. Since we no longer keep template mbufs around, move pseudo checksum out of this routine, and merge it with the length update. Sponsored by: DARPA, NAI Labs
* Make the aac driver be INTR_MPSAFE. Once the interrupt handler determinesscottl2003-02-192-38/+15
| | | | | | | that a command completion happened, all further processing is deferred to a taskqueue. The taskqueue itself runs implicetely under Giant, but we already used a taskqueue for the biodone() processing, so this at least saves the contesting of Giant in the interrupt handler.
* s/to try and retry/to retry/ceri2003-02-192-2/+2
| | | | | | | PR: misc/48226 Submitted by: Gary W. Swearingen <swear@attbi.com> MFC After: 2 days Approved by: murray (mentor)
* o Move the cleanup of the fib maps into aac_free_commands() so as toscottl2003-02-192-33/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retain symetry with aac_alloc_commans(). Since aac_alloc_commands() allocates fib maps and places them onto the fib lists, aac_free_commands() should reverse those operations. o Combine two ifs with the same body with an ||. o Switch from uintptr_t to uint32_t for fib map load operations. The target is a uint32_t so using this type for the map load call avoids an extra cast. uintptr_t should only be used when you need an "int sized the same as the machine's poitner size" which is not the case here. o Removed the commented out M_WAITOK flag in the allocation in aac_alloc_commands(). The kernel will only block in the allocator if it can grow the size of the kernel. This usually results in a page-out which could involve this aac device. Thus, sleeping here could deadlock the machine. Assuming this operation is occurring outside of attach time, we have enough fibs to operate anyway, so waiting for fibs to free up is okay if not optimal. o In aac_alloc_commands(), if we cannot dmamem_alloc additional fib space, free the fib map. o In aac_alloc_commands(), if we cannot create per-command dmamaps, don't lose track of the fib map that is mapping all of the commands that we have already released into the free pool. Instead, just cut out of the loop and modify aac_free_commands to not attempt to free maps that have not been allocated. o Don't use a magic number when pre-allocating fibs. o Use PAGE_SIZE to allocate in page sized chunks instead of an architecture specific constant. Submitted by: gibbs
* Correct comments.jlemon2003-02-192-14/+8
|
* Clean up delayed acks and T/TCP interactions:jlemon2003-02-193-59/+58
| | | | | | | | - delay acks for T/TCP regardless of delack setting - fix bug where a single pass through tcp_input might not delay acks - use callout_active() instead of callout_pending() Sponsored by: DARPA, NAI Labs
* #include "opt_cpu.h" so we notice our options.phk2003-02-191-0/+1
|
* Fix definite panic when releasing interrupt resources.jake2003-02-191-1/+1
| | | | Spotted by: tmm
* Fix panic on sparc64 introduced in my last commit. I reallymux2003-02-191-5/+6
| | | | | | | | | | | wish the busdma APIs were more consistent accross architectures. We should probably move all the other DMA map creations in xl_attach() where we can really handle them failing, since xl_init() is void and shouldn't fail. Pointy hat to: mux Tested by: Anders Andersson <anders@hack.org>
* Missed a missing M_WAITOK.jake2003-02-191-1/+1
|
* Use M_WAITOK.jake2003-02-192-2/+4
|
* Don't spam sys/${MACHINE}/conf/ with _.${MACHINE}.makeLINT.ru2003-02-191-1/+1
| | | | Submitted by: johan
* We can simplify this Makefile down to a single line now.obrien2003-02-191-4/+0
|
* Fixed universe.ru2003-02-191-34/+30
| | | | | Folded pc98 into the common case. Retired ${JFLAG} (``make -jX universe'' should work).
* Back out the removal (here too) of the "custom" version ofru2003-02-192-1/+2
| | | | | | | | | <sys/endian.h>. It is needed to cross-build sparc64 on RELENG_4 and to build sparc64 on say 5.0-DP1 (on systems without <sys/endian.h>). This will be revisited when we create RELENG_5. Spotted by: make universe
* Count non-threaded group.davidxu2003-02-192-10/+20
|
* Update comments to reflect new KSE code.davidxu2003-02-192-4/+1
|
* Do not call smbfs_attr_cacheremove() in the EXDEV case in smbfs_rename().tjr2003-02-191-5/+9
| | | | | | | | | One of the vnodes is on different mount and is possibly on a different kind of filesystem; treating it as an smbfs vnode then writing to it will probably corrupt it. PR: 48381 MFC after: 1 month
* The "m = m->m_next" that was removed in the revision 1.12 was necessarytjr2003-02-191-1/+2
| | | | | for the m->m_next != NULL case to avoid looping infinitely when the first mbuf in the chain becomes full.
* M_WAITOK and remove an useless comment.davidxu2003-02-192-4/+2
|
* Munge the zs sbus attachment to work with fhc. This is a bit of a hack,jake2003-02-192-14/+114
| | | | | but they would otherwise be almost identical so there's not much point in splitting it up further.
* Implement interrupt resource allocation and setup. Set the interruptjake2003-02-195-16/+111
| | | | | | | group number properly based on the board id. Perform dummy reads of registers after writing to flush the hardware write buffers. This gets the soon to be committed zs attachment working.
* Eliminate unused KSE symbols.davidxu2003-02-191-2/+0
|
* Don't tell people to include <sys/dkstat.h> any more.phk2003-02-191-1/+0
| | | | Pointed out by: kuriyama
* Bump __FreeBSD_version to mark the fact that <sys/dkstat.h> should no longerphk2003-02-191-1/+1
| | | | be included.
* Back out M_* changes, per decision of the TRB.imp2003-02-19586-2102/+2103
| | | | Approved by: trb
* Fix the description for mkdtemp(), which creates directories, not files.gshapiro2003-02-191-1/+1
| | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval
* Update for GCC 3.2.2kan2003-02-192-11/+17
|
* Optimize the case when max threads number was hit.davidxu2003-02-193-86/+115
|
* Pushing back aacp driver to kern.flp kernel. It can be removed iffmatusita2003-02-192-2/+0
| | | | | | | | aac is not compiled into a kernel. After this change, kgziped kernel got about 320 bytes; it still fits a floppy. Pointy hat to: matusita
* Our first keyword hit for apropos ufs2.jwd2003-02-191-1/+1
|
* - Detect PAL by CIP header rather than the DSF bit in the DV header.simokawa2003-02-191-71/+48
| | | | | | | | | | | | | | | Some DVcam(ex. Panasonic NV-DS1 DV camcorder) doesn't seems to set this bit even if it's for PAL. Fix the DSF bit for such cases so that we can send back the stream to the DVcam without problem. Problem Reported by: Richard Tobin <richard@cogsci.ed.ac.uk> - Make the number of bulkxfer packets(NPACKET_T) and the number of packets write at once(TNBUF) to be different values. I observe some block noise for large TNBUF. - Show the detection of NTSC or PAL. - Pad with 0xff rather than 0x00 for broken frames. - Bzero hdr[0]. - Remove unused code.
* Clean up error reporting in block.c, so that it gives honest error stringsjmallett2003-02-192-13/+22
| | | | | | | | | | | | | | | | | | | | for the sorts of errors we run into[1]. This also gives us room to put in a vaguely appropriate casts to silence warnings since our compiler doesn't like when we compare ssize_t to size_t[2]. Add a cast in sblock.c[3] to silence a warning because of signed vs. size_t hell (again). Clean up nearby excessive parenthemutilation[4]. Reviewed by: bde [2] [3] Suggested by: bde, many [1] Submitted by: bde [4] An aside about [4], bde notes that we do not check for a negative value for the fs bsize. I'm nto going to do that in every situation we use it, one must expect a reasonable program to pass down reasonable values. Some foot shooting protection I will tolerate, some I will not. Also he suggests some possible conditional improvements there, which I may take to heart. PS: For me at least, this is now WARNS=5 clean...
* Remove unused variable and code.peter2003-02-191-2/+0
|
* Yet another re-test.peter2003-02-190-0/+0
|
* Re-test commit scripts. Again.peter2003-02-190-0/+0
|
* Harmless forced commit to re-test commit scriptspeter2003-02-190-0/+0
|
* Forced commit to double check script configpeter2003-02-180-0/+0
|
* Get rid of a silly message I added back in Sept 2001 (1.68).peter2003-02-181-4/+1
|
* Add an example to help one manually set the date on one machine taking the outobrien2003-02-181-0/+5
| | | | put from another.
* Update errors.trhodes2003-02-181-8/+8
| | | | | PR: 48125 Submitted by: Per Hedeland <per@hedeland.org> (original version)
* Add some PCI device ID's from HPps2003-02-181-0/+4
|
* Move the resource handling down into the pci bus as well.imp2003-02-182-410/+49
| | | | | | | | | | | Minor CIS resource allocation code cleanup Remove some fairly useless debug writes. This finishes the work to move as much cardbus code as possible into pci. We wind up removing 800-odd lines from cardbus.c: we go from 1285 to 400 lines. Reviewed by: mdodd
* Bring the suggested command for extracting a configuration file from theceri2003-02-181-1/+1
| | | | | | | | kernel into line with that suggested in LINT. PR: bin/48157 Submitted by: naddy MFC After: 4.8
* "Happiness" is a noun.ceri2003-02-181-2/+2
| | | | | PR: misc/47345 Submitted by: Ben Rosengart <ben@narcissus.net>
* Add Greenspun's Tenth Rule of Programming.fanf2003-02-181-0/+5
|
* chflags(1) repo copied, usr.bin->bin.obrien2003-02-185-345/+1
| | | | | We've been installing chflags(1) into /bin since 2000-11-10, so this shouldn't cause any problems.
* - Fix mbuf leak when we successfully allocate a new mbuf but fail tomux2003-02-182-6/+18
| | | | | | | | | bus_dmamap_load() it. - Make it so reusing mbufs when we can't allocate (or map) new ones actually works. We were previously trying to reuse a mbuf which was already bus_dmamap_unload()'ed. Reviewed by: silby
* The nfs_privport variable doesn't exist - mention nfs_reserved_port_onlyceri2003-02-181-1/+1
| | | | | | | instead. Approved by: murray (mentor) MFC After: 2 days
* Fix make universe's kernel builds on pc98: We need to pass both ARCHphk2003-02-181-7/+7
| | | | and TARGET_ARCH.
OpenPOWER on IntegriCloud