summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-06-22When mapping memory into dvma space, use pmap_kenter_pa() instead ofOwain Ainsworth
pmap_enter(), according to the XXX comment right above. Removes another un-CANFAILed pmap_enter. ok miod@
2010-06-22cleanup/fix PA predistortion code.Damien Bergamini
2010-06-22Don't play with cacheability in vmapbuf() - pmap_enter() knows what it does.Miod Vallat
This is a leftover from a very old workaround for a very old and long gone pmap_enter() bug.
2010-06-22Since our caches are snooping, we only need to broadcast cache invalidatesMiod Vallat
on 88110 designs. Brings a ~8% speedup on GENERIC.MP on 197DP.
2010-06-22Some early 2.x sun4c PROM will default to serial input but glass output if noMiod Vallat
keyboard is connected but a framebuffer exists in the machine; the current kernel console code will complain and switch to full serial, but later on the framebuffer would incorrectly take over the console. Correctly detect this situation and reset the `fbnode' variable. This is an improvement of the fix which went in rev 1.54 of this file.
2010-06-22protect the ccb free list with a mutex rather than relying on splbioDavid Gwynne
2010-06-22bump up the dmesg buffer size. new boxes have lots of crap in them, soDavid Gwynne
boot messages can be too big to fit. sure deraadt@
2010-06-21Initial support for PCH based em adapters with 82577 PHY,Jonathan Gray
from Laurence Tratt based on FreeBSD code. Confirmed to work on lenovo t410i/t410s/x201. Desktop machines with PCH tend to be paired with a 82578 PHY, these will at some point be supported but not yet. ok claudio@
2010-06-21Add some more ids for existing mac and phy types foundJonathan Gray
in the FreeBSD driver. ok claudio@
2010-06-21use LE_READ_4/LE_READ_2 instead of hardcodingDamien Bergamini
2010-06-21Implement PA linearization on adapters with digital predistortersDamien Bergamini
(AR9003 family only). The power amplifier predistortion state machine works as follows: 1) Disable digital predistorters for all Tx chains 2) Repeat steps 3~7 for all Tx chains 3) Force Tx gain to that of training signal 4) Send training signal (asynchronous) 5) Wait for training signal to complete (asynchronous) 6) Read PA measurements (input power, output power, output phase) 7) Compute the predistortion function that linearizes PA output 8) Write predistortion functions to hardware tables for all Tx chains 9) Enable digital predistorters for all Tx chains from ath9k (though implementation differs a lot)
2010-06-21allow Tx flags to be passed to the tx() routine.Damien Bergamini
2010-06-21use correct clock rate when computing the listen time for ANIDamien Bergamini
2010-06-21no delay is necessary on the AR9003 after writing an analog register.Damien Bergamini
2010-06-21avoid an overflow of the xs sense buffer by ignoring t2i->senselen.David Gwynne
again, found by and fixed by matthew dempsky.
2010-06-21fix an integer arithmetic overflow.David Gwynne
An attacker can get past the ENOMEM check in vscsi_data() by first reading/writing 1 byte and then reading/writing 0xffffffff bytes. found and fixed by matthew dempsky
2010-06-21protect the ccb free list with its own mutex.David Gwynne
2010-06-21No need to include mutex.h twice.Thordur I. Bjornsson
Pointed out by Jung <moorang at gmail dot com>
2010-06-20Don't use and maintain a function pointer that is only ever set to oneMichael Knudsen
function. Just call the function where needed. ok krw dlg
2010-06-20Add some missing includes, so we do not have implicit functionPeter Hessler
declarations. OK miod@, millert@
2010-06-20update AR9380 ROM layout (add PA predistortion related fields.)Damien Bergamini
2010-06-20update 5GHz Tx gain tables for the Osprey (AR9380).Damien Bergamini
2010-06-20sync the list of device and phy ids with FreeBSDJonathan Gray
2010-06-20regenJonathan Gray
2010-06-20add a bunch of em devices from FreeBSDJonathan Gray
2010-06-20Lock the sample rate of es1731-based devices to 48kHz (ie theAlexandre Ratchov
codec rate). The es1731 has a hardware sample rate converter but we don't know how to program it (no documentation) and the current code is wrong (breaks full-duplex). ok jakemsr, landry
2010-06-19Remove more splbio/splx pairs from around scsi_done() calls.Kenneth R Westerback
From Matthew Dempsky.
2010-06-19Fix reference counting panic for CondRefJordan Hargrave
Various HP laptops now boot correctly, fixes PR 6276 ok marco@
2010-06-19Skip exiting procesess in sysctl_file2(). As processes in exit1()Thordur I. Bjornsson
do a pdfree() way before they remove themself from the allproc list. This prevents a null deref found by todd@. Joint work with mikeb OK millert@, tedu@
2010-06-19Remove unused md BUS_SPACE_MAP_NOEXTENT flag; ok jsing@Miod Vallat
2010-06-19In ieee80211_node_leave(), clear the associd after callingDamien Bergamini
ieee80211_node_leave_rsn() since ieee80211_node_leave_rsn() calls ic_delete_key() and drivers like ral(4) RT2860 need a valid associd in their delete_key callbacks. This affects HostAP mode only. from Nathanael Rensen. remove a useless (nested) #ifndef IEEE80211_STA_ONLY while i'm here
2010-06-18Remove obsolete dvmamap comment.Miod Vallat
2010-06-18Remove IOMMU pte defines; only those in iommureg.h are used.Miod Vallat
2010-06-18dvma_free() the exact size passed to dvma_malloc().Miod Vallat
2010-06-17aligment -> alignmentMiod Vallat
2010-06-16Always check both the return value of scsi_do_mode_sense() and theKenneth R Westerback
NULL'ness of the pointer to the actual page data. Fixes a NULL deref when trying to set caching on my ASUS eeePC 1000HE's SD slot. ok dlg@
2010-06-16Bring ststrategy() into line with sdstrategy() and cdstrategy(), makingKenneth R Westerback
sure buf's are correctly completed. Feedback from Matthew Dempsky. ok dlg@
2010-06-15softraid doesnt provide disk cache settings to tweak, mark those ioctls asDavid Gwynne
not supported. this prevents a panic caused by recursively entering the ioctl handler that now happens on boot when sd tries to enable write cache on all disks. found by ckeuthe@ tested by todd@
2010-06-15various Huawei 3g devices share a usb id, some of them need DEV_UMASS5 for ↵Felix Kronlage
proper initialization, old ones still work with DEV_UMASS5 as well. This enables a whole bunch of newer huawei devices to work. Also reported on misc@ by David Zeillinger. discussed with jsg@ and mpf@ ok mpf@
2010-06-15enable the write cache on disks during attach.David Gwynne
requested by deraadt@ ok krw@ marco@
2010-06-15rearrange attach so that the SDEV_VIRTUAL flag is set during scsi_probe,David Gwynne
rather than as a scan of all attached devices after scsibus is attached. this will allow the cache enabling on virtual disks to run as part of the disks attach routine.
2010-06-15dont pass the dev_t from the scsi device drivers into the midlayer forDavid Gwynne
ioctl requests, and dont pass the proc pointers around for any ioctl requests in scsi land at all. neither were used, so trim the fat. ok krw@ marco@
2010-06-14fix my previous commit, i forgot BIP, so instead of enumeratingDamien Bergamini
what is not supported as a group cipher, enumerate what is supported.
2010-06-14do not try to associate with an AP using an unsupported group cipher,Damien Bergamini
otherwise we will panic in ieee80211_add_rsn_body(). this may be the cause of a panic seen by reyk@ though i'm not 100% sure.
2010-06-14plug a memleak, free the devname when we succeed withThordur I. Bjornsson
the ioctl. also remove an uneeded if (devname) check. ok jsing@
2010-06-14attach CNU-680 to umsm(4)Felix Kronlage
ok jsg@
2010-06-14regen after adding CNU-680Felix Kronlage
2010-06-14add usb device id for edvo device CNU-680Felix Kronlage
ok jsg@
2010-06-14tidy this file up a bit. reorder a few comments,Thordur I. Bjornsson
fix up prototypes etc. ok oga@
2010-06-14remove the scsi_buf_* functions as these have beenThordur I. Bjornsson
replaced by BUFQ's. OK krw@, dlg@