summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-12-11ZTE MF112Jonathan Gray
2010-12-11drop Rx'd frames larger than MCLBYTES.Damien Bergamini
2010-12-11rsu(4), a driver for Realtek RTL8188SU, RTL8191SU and RTL8192SUDamien Bergamini
802.11n USB devices. These are FullMAC devices that require a firmware to operate; see man page for details. Great thanks to Brad for donating hardware. Committed over the TRENDnet TEW-649UB. ok deraadt@
2010-12-11rxi_flags was used uninitialized, and in some cases, received framesDamien Bergamini
were dropped.
2010-12-10There's no need to flush the cache for the FPU state ever since we got ridMark Kettenis
of the non-equivalent aliases for it. ok miod@
2010-12-08Reset acb->xs to NULL before scsi_done if option DIAGNOSTIC. There seem to beMiod Vallat
one bad case of use-after-free after a hell lot of heavy I/O creeping in again in this driver. This doesn't fix it but will hopefully help me diagnose once it occurs again.
2010-12-08Fix compilation with option CBB_DEBUG; noticed by Dave Anderson on misc@Miod Vallat
2010-12-07The rdmsr_locked/wrmsr_locked functions were using "=A" as a constraint forTheo de Raadt
the 64-bit output/input. On i386, this means that the 64-bit value is in eax:edx, but on amd64 gcc this is not the case (might be a gcc bug, or might be intentionally different and annoying?). The consequence is that amd64 errata were not always being matched (and then "corrected" using the magic repair code). We need to compose/decompose the 64-bit value like the un-locked msr functions do. originally pointed out by ragge, ok kettenis jsg
2010-12-07Make this compile again.Miod Vallat
2010-12-07remove useless #includeDamien Bergamini
2010-12-07remove a bunch of unused argumentsJonathan Gray
ok henning@
2010-12-07bring src/sys/arch/amd64/amd64/dkcsum.c r1.16 over to i386:David Gwynne
the boot loader passes a variable that identifies the disk its booting off made up of a bunch of fields like adapter, controller, disk, and partition offsets, plus a table of all the disks it can see which includes this id and a checksum. the kernel goes through and checksums the disks and then maps that back to the id associated with that disk, and then compares some of the fields in those ids against the boot disks id to figure out which disk its on. the problem is we overflow one of those fields (the disk id one). since the other fields are set to 0 by the boot loader, this doesnt really matter that much. however, since those fields are now significant because of the overflow, we should compare them too. this prevents sd16 being matched as the boot disk after sd0 on my system with 25 disks attached. ok krw@ weingart@ ithe boot loader passes a variable that identifies the disk its booting off made up of a bunch of fields like adapter, controller, disk, and partition offsets, plus a table of all the disks it can see which includes this id and a checksum. the kernel goes through and checksums the disks and then maps that back to the id associated with that disk, and then compares some of the fields in those ids against the boot disks id to figure out which disk its on. the problem is we overflow one of those fields (the disk id one). since the other fields are set to 0 by the boot loader, this doesnt really matter that much. however, since those fields are now significant because of the overflow, we should compare them too. this prevents sd16 being matched as the boot disk after sd0 on my system with 25 disks attached. requested by deraadt@ ok krw@ weingart@
2010-12-07the boot loader passes a variable that identifies the disk itsDavid Gwynne
booting off made up of a bunch of fields like adapter, controller, disk, and partition offsets, plus a table of all the disks it can see which includes this id and a checksum. the kernel goes through and checksums the disks and then maps that back to the id associated with that disk, and then compares some of the fields in those ids against the boot disks id to figure out which disk its on. the problem is we overflow one of those fields (the disk id one). since the other fields are set to 0 by the boot loader, this doesnt really matter that much. however, since those fields are now significant because of the overflow, we should compare them too. this prevents sd16 being matched as the boot disk after sd0 on my system with 25 disks attached. ok krw@ weingart@
2010-12-06- properly remove NENTS now after fixing the fallout.Jasper Lievisse Adriaanse
ok deraadt@
2010-12-06- partially revert previous NENTS removal for arches which got busted.Jasper Lievisse Adriaanse
2010-12-06Change the signature of PMAP_PREFER from void PMAP_PREFER(..., vaddr_t *) toMiod Vallat
vaddr_t PMAP_PREFER(..., vaddr_t). This allows better compiler optimization when the function is inlined, and avoids accessing memory on architectures when we can pass function arguments in registers.
2010-12-06- use consistent 'include' rules without a full relative path.Jasper Lievisse Adriaanse
tested on a GENERIC config from all arches. ok deraadt@ miod@
2010-12-06- drop NENTS(), which was yet another copy of nitems().Jasper Lievisse Adriaanse
no binary change ok deraadt@
2010-12-06- remove unused/commented COMPAT_LINUX stuffJasper Lievisse Adriaanse
ok deraadt@
2010-12-06* if we got an undercoverable error, set the dying flagJacob Meuser
* check the dying flag in timeout and interrupt handlers fixes crash when disconnecting cardbus usb adapters
2010-12-06as in ehci and ohci, delete the interrupt timeout in the detachJacob Meuser
routine
2010-12-06a couple unchecked if_detach() in detach routines that were missedJacob Meuser
in previous sweep (avoid NULL deref if the device didn't fully attach)
2010-12-06* replace per-driver dying and/or other state variables with use ofJacob Meuser
usbd_deactivete() and usbd_is_dying() * use usbd_deactivate() in activate()/DEACTIVATE * convert a few more direct checks of the associated bus' dying flag with usbd_is_dying()
2010-12-06call config_deactivate() before config_detach() when detaching devices.Jacob Meuser
2010-12-06* check that the root hub has been configured before trying toJacob Meuser
free it's resources * use usbd_is_dying() instead of directly checking the device's bus dying flag
2010-12-06* add dying flag to struct usbd_deviceJacob Meuser
* add usbd_deactivate(), which should be use to set the dying flag in struct usbd_device * add usbd_is_dying(), which can be used to check if either the device or the associated bus dying flag has been set * use usbd_is_dying() to check if the deivce or bus is dying before issuing transfers or requests
2010-12-05PCIe based sparc64 machines have always supported access to the extended PCIeMark Kettenis
configuration space. So on pyro(4) and vpci(4) return the size appropriate for the extended PCIe configuration space. ok miod@
2010-12-05Make sure we only initialize the nfsrv_descript_pl pool once.Mark Kettenis
Re-initializing the pool everytime nfsd(8) terminates is very bad since it screws up the list of pools resulting in infinite loops when traversing that list. Issue found by Daniel Melameth. ok deraadt@
2010-12-04correct constant nameTakuya ASADA
2010-12-04Check the register offset against the device's configuration space size inMiod Vallat
the PCIOCREAD and PCIOCWRITE ioctls. ok kettenis@ (also ok mikeb@ on an earlier version of this)
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-12-04Remove pci configuration space acces hook infrastructure, which got copiedMiod Vallat
from loongson but isn't necessary on octeon. ok syuu@
2010-12-04Define BUS_SPACE_MAP_LINEAR and BUS_SPACE_MAP_PREFETCHABLE, and provideMiod Vallat
a simple bus_space_barrier implementation. ok syuu@
2010-12-04Make sgi port compile again.Joel Sing
2010-12-04The pm_cpus member of the pmap is now a 64bit integer: update the assemblyPhilip Guenthe
used in cpu_switch() for handling it. Also, delete an unnecessary instruction that I added while debugging the pm_cpus handling before ok kettenis@
2010-12-04Teach swapctl(2) about DUIDs.Joel Sing
ok deraadt@
2010-12-03removed slot argument of function pckbd_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok miod@, krw@
2010-12-03missing ; in previousJacob Meuser
2010-12-02After the most recent change, make it possible to make -j again. TheTheo de Raadt
early MD and late MI files must be split up so that vers.o can sneak between. Issue spotted by bluhm, repair discussed with miod
2010-12-02don't attach to the hid interface of the ti msp430Jacob Meuser
2010-12-02move vers.o to before the other objects, so that it is not linked last.Theo de Raadt
having it linked last is bad (on at least i386 and amd64) because the lapic is mapped over the start of the data segment -- savecore(8) then reads the version string for a fixed buffer space, and reads into the lapic area causing unintended side-effects (at least on Intel X5570 and X5680) found by pedro, discussed with kettenis and mpf and miod
2010-12-02make hotplug queue dynamic, allowing us to increase size without waste.Ted Unangst
ok deraadt kettenis miod
2010-12-02don't match/attach devices without a data endpoint, since this driverJacob Meuser
can't use them anyway. tested with working umodem by sthen@ ok sthen@
2010-12-01Add definition for "Extended Synch" bit in PCIe Link Control register.Damien Bergamini
From PCI Express(R) Base Specification Rev 2.0.
2010-12-01regenDamien Bergamini
2010-12-01PCI id for Atheros AR9485.Damien Bergamini
This is a single-stream single-band AR9300.
2010-11-30Extend bitmasks to 64-bit such that we can support up to 64 CPU cores.Mark Kettenis
tested by dlg@, ok jsing@
2010-11-30Extend bitmasks to 64-bit such that we can support up to 64 CPU cores.Mark Kettenis
ok jsing@
2010-11-30syncJacob Meuser
2010-11-30Texas Instruments MSP430 as found in the Launchpad dev boardJacob Meuser