summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-07-31- Don't relay on bFormatIndex as an internal array index, since thisMarcus Glocker
field is unreliable and can start with any number. Use an own internal array index instead. - If the read buffer is too small, return a propper error to the calling functions. Just check the buffer size if we use the read(2) method since it doesn't affect mmap(2). Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal (laptop) Sonix chipsets. Tested by jcs@ (Sonix) and myself (NX-6000). OK deraadt@
2008-07-30Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args;Miod Vallat
ok deraadt@
2008-07-30Add ath(4).Brad Smith
ok deraadt@
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-30wi@pci now works.Miod Vallat
2008-07-30Implement bus_space_{read,write}_raw_mult_[248] correctly, it needsMiod Vallat
endianness conversion on pci bridges. ok deraadt@ jsing@
2008-07-30Proper interrupt values for pci interrupt pins B to D, found in some IRIXMiod Vallat
developer documentation some time ago.
2008-07-30Check and clear the bus space mapping size instead of the bus spaceBrad Smith
handle in the detach function. Fixes compilation on sparc64. ok reyk@
2008-07-30syncTheo de Raadt
2008-07-30repair commentTheo de Raadt
2008-07-30syncTheo de Raadt
2008-07-30add 2nd sierra MC5725 correctlyTheo de Raadt
2008-07-30Add an alternate ID for Sierra Wireless MC5725 modem, foundCan Erkin Acar
in a Lenovo T60, reported by Juan Delgado. ok you@, jsg@ deraadt@
2008-07-30Call ip6_clearpktopts() on error in copypktopts() instead of freeingCan Erkin Acar
every field individually. ok claudio@ markus@ henning@ deraadt@
2008-07-30enable ix(4) on amd64Reyk Floeter
ok deraadt@
2008-07-30Prevent a divide by zero panic if trunkproto loadbalance isMarco Pfatschbacher
used w/out any trunkports. Patch from Dmitri Alenitchev. OK reyk@
2008-07-30spacingReyk Floeter
2008-07-30Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tablesReyk Floeter
with different versions for various ar5212 variants and add an extra table for PCI-E devices. This fixes support for various newer devices (like the 1st generation MacBook, T61 variants) but it still does not work on a number of other devices. Tested by many ok deraadt@
2008-07-30Free the correct buffer list on failure.Damien Bergamini
From Andrew Thompson at FreeBSD.
2008-07-30fix up a few free -> drm_free() cases that were missed before.Owain Ainsworth
2008-07-29Update to DRM git.Owain Ainsworth
Some stability fixes for radeon. The most part of this diff is related to fixing up the VBLANK (vertical blank interrupt) handling. Now, if the X driver supports the DRM_IOCTL_MODESET_CTL ioctl, (to be used when changing the video modes), then allow the vblank to be disabled once that ioctl has been called. Otherwise, keep the interrupt enabled at all time, since disabling it otherwise will lead to problems. Tested by a few. "no problem" on API/ABI deraadt@.
2008-07-29when detaching pcbs, also free the v6 output options so that we do notTheo de Raadt
leak kernel memory for every closed v6 descriptor with certain options set ok otto jsing todd claudio
2008-07-29In ahc_free(), which is invoked if attachment fails, do not free()Miod Vallat
pointers we don't own, but the autoconf machinery does.
2008-07-29Add an ugly hack to disable DMA on the Tadpole SPARCLE laptop. It doesn'tMark Kettenis
work and this way we fall back on PIO which does work. I'm pretty sure this is caused by bugs in our code, but I cannot find them. ok deraadt@, marco@
2008-07-29Switch all instances of malloc/free in the DRM to drm_alloc, drm_freeOwain Ainsworth
and drm_calloc. With the recent change to check overflow in drm_calloc, this means that all allocations that require multiplication are now checked. Also use drm_calloc() when zeroing is needed and drop the bzero/memset afterwards. Finally, make drm_free() check for NULL, so we don't need to do so every time. ok miod@, deraadt@
2008-07-29Stricter bounds checking for values controlling loops or memory allocations,Miod Vallat
which may come from userland via ioctls. ok oga@
2008-07-29Check for multiplication overflow in drm_calloc(). ok oga@Miod Vallat
2008-07-29Give the eisa device a valid bus_dma_tag_t.Miod Vallat
2008-07-29Fix range check in sio_intr_establish().Miod Vallat
2008-07-29The stream header length and flags field are uint8_t not int.Marcus Glocker
2008-07-29check for m_devget() returning NULL, increment ierror countThordur I. Bjornsson
and just return; OK mglocker@
2008-07-29When paused (or overrun), the record ring pointers are not incrementedAlexandre Ratchov
properly in audio_rint(), the periodic boundary conditions aren't met. This causes, later read(2) to return EFAULT while trying to access unmapped regions of the kernel address space. Fix this by using the correct pointer arithmetic. ok jakemsr@
2008-07-29Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), basedMiod Vallat
on an attachment dependent flag; the Tadople SPARCLE needs it. ok kettenis@ deraadt@
2008-07-29Add rebuild mark so that we can restart a rebuild upon clean shutdown.Marco Peereboom
Fix a typo while here. The rebuild field was appended to the metadata so that we can automatically update from v2 to v3. The only visible difference will be that in the dmesg the SCSI version number will go from 002 to 003. ok deraad.
2008-07-29- fix FIFO overruns on PCI-E chipsets by setting the DMA sizeReyk Floeter
RX/TX configuration registers to 128 instead of 512 bytes. - add a few more MAC/RF id strings for the dmesg. - check for PCI-E instead of single chip variants in a few places. ok deraadt@
2008-07-28zap some extra spaces and tabs.Federico G. Schwindt
2008-07-28When getting the string descriptors, fetch 2 bytes (size and type) first,Federico G. Schwindt
and then the whole string based on the returned size, not just one byte. The Lexar card reader kindly loaned by Denis Doroshenko (denis dot doroshenko at gmail.com) it's happy now, and after further inspection it's what other OSs do. Discussed with yuo@. krw@ yuo@ ok.
2008-07-28ignore PS mode changes and PS-Poll from non-associated STAs.Damien Bergamini
keep track of the number of associated STAs in PS mode.
2008-07-28Align the route message length to the next natural boundary via ALIGN() toClaudio Jeker
ensure that the next message is nicely aligned as well. Some archs (sparc, m88k)have strict alignement issues since the inclusion of 64bit counters in the messages because those values could end up on non aligned addresses. Found and fix tested by miod@, OK deraadt@
2008-07-28No longer clear ci_want_resched within cpu_switchto(), now that it's doneMiod Vallat
in the MI code.
2008-07-28regenMiod Vallat
2008-07-28Put XBOW in the generated constants, not PCI...Miod Vallat
2008-07-28In addition to cop0 sr, prevent cop0 ic from being modified inMiod Vallat
process_write_regs().
2008-07-28Remove dead code.Miod Vallat
2008-07-28In process_write_regs() and sigreturn(), be more strict about the bitsMiod Vallat
userland is allowed to change in psr.
2008-07-28According to the manual, delay slot kill the benefits of being superscalar,Miod Vallat
so don't use any in the 88110-specific parts of locore.
2008-07-28syncReyk Floeter
2008-07-28revert AR5416 PCIE to AR5418, the product description is clear aboutReyk Floeter
it while atheros' driver says something wrong (even if it is technically correct). also rename AR9280 PCIE to AR9281 (guessed). triggered by kettenis@
2008-07-28regenMark Kettenis
2008-07-28Name PLX PEX devices a bit more consistently, and keep them sorted inMark Kettenis
numerical order.