summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-07-25phyio -> physioMiod Vallat
2008-07-25Improve eisa bus probe by deciding the number of logical eisa slots fromMiod Vallat
the motherboard eisa id, instead of using a ``one size fits all'' value which is too large on more than half the eisa-capable alpha designs. The id -> slot # logic is based on the alpha ECU configuration files, so we should not perform worse than ECU itself (and see all slots ECU sees too).
2008-07-25The PIE address range defaults are too big for alpha and can land on orKurt Miller
above the stack. Fix by mapping PIE into the first quarter of the address space before stack. "will do for now" miod@
2008-07-25Work around a problem on the t5120 where top(1) would lock up the system forMark Kettenis
several minutes by making pmap_resident_count() return 0 for the kernel pmap. discussed with miod@
2008-07-25After our recent changes, VIDIOC_S_FMT didn't always return the correctMarcus Glocker
maximum image size. Fix it. Makes read(2) method work again.
2008-07-25In gdt_grow, always map the gdt on the secondary cpus too. This farArtur Grabowski
we depended on the pageability of the kernel_map to map them which worked most of the time, until we hit the most improbable case - when cpu_switchto wanted to fault in the missing gdt page, which at this moment is Verboten. kettenis@ ok
2008-07-25much more correct way of dealing with nfs pending reads/writesBob Beck
ok thib@
2008-07-25Switch to a temporary stack early on such that we don't lose if the stackMark Kettenis
provided by the PROM gets flushed out of the TLB before we install our own trap table. Makes RAMDISK kernels work on T2 systems.
2008-07-25Correct printing of the pg_flags for ddb.Artur Grabowski
2008-07-25some splassert paranoia.Artur Grabowski
2008-07-25Not all devices support GET_DEF, fall back on GET_CUR if so.Marcus Glocker
Reported and tested kettenis@
2008-07-25shrink MINCLSIZE to MHLEN + 1 again for the release, we're not confidentHenning Brauer
enough yet that all drivers handle this correctly. intended to be grown again after release. discussed with claudio, thib and theo
2008-07-24the softc sc_lock lockmgr lock is unused, so remove it.Thordur I. Bjornsson
ok krw@, dlg@
2008-07-24dont need malloc.h anymore; plus two tiny whitespace fixesThordur I. Bjornsson
2008-07-24remove a bunch of bogus ARGSUSEDThordur I. Bjornsson
2008-07-24sng_exponent should be sng_exp (MI code now cares); ok martynasTheo de Raadt
2008-07-24Add code to decode machine checks on Avanti, providing a description of theMiod Vallat
problem and lots of register dumps to help the skilled user to fix the hardware. Not compiled if option SMALL_KERNEL. From NetBSD.
2008-07-24Remove some obsolete XXX comments.Marcus Glocker
2008-07-24Simplify uvideo_enum_fmt(), no functional changes.Marcus Glocker
2008-07-24ipsec is glued into the stack in a very weird way, violating all kindsHenning Brauer
of expected semantics. thus, for return packets coming out of an ipsec tunnel, we need to clear the pf state key pointer in the mbuf header to prevent a state for encapsulated traffic to be linked to the decapsulated traffic one. problem noticed by Oleg Safiullin <form@pdp-11.org.ru>, took me some time to understand what the hell was going on. ok ryan
2008-07-24Do not define vax-inspired LOWPAGES and HIGHPAGES anymore, they make noMiod Vallat
sense on m68k. Give USRSTACK its real (HP-UX compatible) value instead of computing it from HIGHPAGES. No functional change.
2008-07-23If /dev/video* is already used by an application, return EBUSY to otherMarcus Glocker
applications. Fixes a kernel panic. Reported by ian@
2008-07-23Do not rely on an <ichc>invisible cast</ichc> to return failure inMiod Vallat
dino_intr_map(); rather than adding the missing cast, make the intent of the code clearer by explicitenly testing for PCI_INTERRUPT_LINE being ff. While there, enable the out-of-extent-range checks in dino_memmap() and dino_memalloc() even if no option DEBUG, but return failure instead of panicing. discussed with and ok kettenis@ marco@
2008-07-23regenBrad Smith
2008-07-23Attansic L1E PCI id.Brad Smith
2008-07-23make this real CTheo de Raadt
2008-07-23So it turns outthe HP engineers changed the PA-RISC 2.0 architectureMark Kettenis
after it was published. In particular, they changed the maximum cache aliasing boundary from 1MB to 16MB. It turns that on the PA-8700 the aliasing boundary is actually 4MB (reported as such by the firmware at least). There are some comments in the Linux code that suggest that HP never actually built PA-RISC CPUs with an 8MB or 16MB aliasing boundary. So raise the aliasing boundary to 4MB. This fixes the weird ps(1) problem where it didn't print its own arguments correctly.
2008-07-23Correct cases of mishandling of pending reads and writes to preventBob Beck
them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@
2008-07-23Fix a blatant misuse of MINCLSIZE I introduced in ieee80211_output.c r1.59Damien Bergamini
The bug was added on 04/16 but it started to show up only after 06/12 when the value of MINCLSIZE was changed to something different from MHLEN + 1. Thanks to dlg@ and giovanni (qgiovanni at gmail dot com) for putting me on the right track. Tested by giovanni. Should fix system/5881 too.
2008-07-23- Fix potential uvm_fault crash inMarcus Glocker
uvideo_vs_parse_desc_frame_uncompressed(). - If a VS alternate interface isn't valid (e.g. doesn't contain a UE_ISOCHRONOUS endpoint), abort attachment with a corresponding error message instead crashing the kernel. Tested and OK maja@
2008-07-23Clear correctable errors after handling them. From Bjorn Andersson.Mark Kettenis
2008-07-23 - in nfs_mknodrpc - initialize the node we pass to nfs_lookitup. It'sArtur Grabowski
not just a return value, nfs_lookitup treats it specially when *npp is not NULL. - nfs_lookitup - When we match the file handle to the directory filehandle (lookup on '.'), initialize np so that we don't return stack garbage to the caller. The function shouldn't ever be called with '.' at this moment, but that's no reason to not do the right thing in case future callers use it that way. blambert@ thib@ ok
2008-07-23syncMarcus Glocker
2008-07-23Unbreak the tree.Marcus Glocker
2008-07-23syncTheo de Raadt
2008-07-23new ati goo; giovanniTheo de Raadt
2008-07-23move the aml_register_notify() call below for better debugging output.Federico G. Schwindt
marco@ ok.
2008-07-22None of the pceb EISA alpha designs has more than 8 physical slots, so don'tMiod Vallat
bother trying to probe more.
2008-07-22Proper interrupt swizzling for devices behind bridges; matches what SRMMiod Vallat
configures when it can. ok kettenis@
2008-07-22Modify pci_intr_map() implementation to pass the pci_attach_args to theMiod Vallat
per-platform implementation, instead of selected members of it; this allows us to get rid of some globals, and paves the way for better bridge support on some models.
2008-07-22Use cgbase() instead of doing arithmetic on fs_fpg, for the former doesMiod Vallat
proper casts to ensure the result is not truncated. From FreeBSD via NetBSD. ok thib@
2008-07-22Do not define VM_MIN_ADDRESS as __LDPGSZ, but provide its value, to preventMiod Vallat
uvm_map.c from requiring <machine/exec.h>.
2008-07-22There are devices out there which are UVC compatible, but do not showMarcus Glocker
up as this (we love standards). To make those devices attach anyway we add an explicit quirk device list. Of course this list still needs to be extended. Thanks to Jerome Pinot for reporting about this issue and testing this diff with his cam, which is such a device. OK yuo@
2008-07-22after pf_state_key_atach nothing must use the state keys passed to it anyHenning Brauer
more, since they might have been invalidated and free'd. one synproxy errorpath did so, however. just get the state keys from the state itself. ok david mcbride
2008-07-22more negotation -> negotiation; ok sthen@Martynas Venckus
2008-07-22Spelling, negotation -> negotiation.Marcus Glocker
2008-07-22Fix uvm_fault crash in uvideo_vs_negotation() which was reported by someMarcus Glocker
users. Thanks to mpf@ for his help to debug this bug down.
2008-07-22Assign the struct size to sin6_len instead of sin6_family.Alexander Bluhm
ok hshoexer claudio mpf henning
2008-07-22change the bcachestats structures members to int64_t's and do theThordur I. Bjornsson
printing in systat with the new print_fld_ssize() function. "same diff I wrote" deraadt@ ok art@
2008-07-22deactivate the code to display location in the sensor descriptionMarc Balmer