summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-07-30We enable POOL_DEBUG (except in a release)Theo de Raadt
2009-07-30Disable interrupts when we enter cpu_intr() and enable them again when leavingMark Kettenis
that function. It seems this function was intended to be called with interrupts disabled but that is not (no longer?) the case. As a result there were some races accessing the list of interrupt handlers and we would leave the function with interrupts disabled if there were any interrupts pending. This could make us end up in the idle loop with interrupts disabled, which would "hang" the machine. Found with help from deraadt@
2009-07-30make sure we only ever try to read out post-op attributesThordur I. Bjornsson
or wcc data if we have a proper reply. found the hard way by ariane@, tested by ariane@. OK blambert@
2009-07-30Simplify the ipgphy(4) attach routine a bit by making use ofStuart Henderson
mii_phy_add_media() to set the media types and adjust the anegticks as appropriate. From FreeBSD via Brad. Tested by jasper@. No objections after being posted on tech@.
2009-07-30Attach to VSC8211, CS8244, VSC8601 PHYs. From Brad.Stuart Henderson
2009-07-30Attach to BCM5761. From Brad.Stuart Henderson
2009-07-30regenStuart Henderson
2009-07-30Add BCM5761 PHY, from Brad.Stuart Henderson
2009-07-29Fix bogus comment; requested by deraadt@Mark Kettenis
2009-07-29Get rid of non-equivalent aliases of the pcb by moving the fpu state outMark Kettenis
of the pcb and using the p_addr member of 'struct proc' to calculate the address of the kernel stack when switching to virtual mode after taking a trap. Remove the now unecessary cache flushes; they're actually harmful since they create non-equivalent aliases. This seems to fix the memory corruption we have been observing from time to time. This diff does not rename fpu_curpcb, which is now somewhat incorrectly named. I hope to change things back again as soon as we are able to map the pcb 1:1.
2009-07-29timeout_add -> timeout_add_msecBret Lambert
ok martynas@
2009-07-29sitecom needs commaMartynas Venckus
2009-07-29- WL168 -> WL168V4Martynas Venckus
- P5B, WUSB54GCV2, WL168V1 ok jsg@
2009-07-29syncMartynas Venckus
2009-07-29regenDamien Bergamini
2009-07-29PCI ids for Ralink RT3090/RT3390 devicesDamien Bergamini
2009-07-29- add couple of new urtw, Linksys WUSB54GC v2, Sitecom WL-168 v1.Martynas Venckus
from realtek windows driver - and also P5B Deluxe; from asus - WL168 is actually WL168 rev. 4 ok jsg@
2009-07-29timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-29regenDamien Bergamini
2009-07-29fix two Intel WiFi Link 6000 PCI ids.Damien Bergamini
2009-07-29regenDamien Bergamini
2009-07-29PCI ids for Atheros AR9287 (PCI and PCIe).Damien Bergamini
2009-07-29Linksys WUSB54GC v3Damien Bergamini
2009-07-29add Linksys WUSB54GC v3 which is a run(4) RT2070 (802.11b/g only).Damien Bergamini
2009-07-28regenStuart Henderson
2009-07-28add Cicada CS8244 10/100/1000 PHY, from Brad.Stuart Henderson
2009-07-28Garbage-collect softc member stge_if_flags, unused since if_stge.c r1.46.Stuart Henderson
From Brad.
2009-07-28Plug a memory leak when calling rtable_add(0) multiple times. Fixing thisClaudio Jeker
even though adding an already existing routing table is not allowed. Leak found by blambert@, fix by myself. OK blambert@
2009-07-28revert the avoidance of the mbuf copy for the icmp errors (r1.165)David Gwynne
some greater care must be taken to ensure the mbuf generated for icmp errors is a good copy.
2009-07-28- Don't access VPD even if hardware advertised the capability.Kevin Lo
It seems that some revisions of the controllers hang while accessing the VPD. Because VPD access routine is now unused, nuke it. - Let TWSI reload EEPROM if VPD capability is detected. Reloading the EEPROM will also set the Ethernet address, so age(4) now reads AGE_PAR0 and AGE_PAR1 register to get the Ethernet address. This removes removes a lot of hacks and enhance readability a lot. - Double PHY reset timeout as it takes more time to take the PHY out of power-saving state. - Explicitly check power-saving state by checking undocumented PHY registers. If link is not up, poke undocumented registers to take PHY out of power-saving state. This is the same thing done by the Linux driver. - Don't rely on auto-clearing feature of master reset bit, just wait 1ms and check idle status of MAC. From FreeBSD via Brad.
2009-07-28gem(4) + gentbi(4) do fit; requested by bradTheo de Raadt
2009-07-28Enable ti(4), tested by myself OK deraadt@Claudio Jeker
2009-07-28typo. OK deraadt@Claudio Jeker
2009-07-28timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-07-28timeout_add -> timout_add_msecBret Lambert
ok jsg@ claudio@
2009-07-28do not leak pf_rule_item_pl items in pf_test_rule() whenHenning Brauer
1) at least one match rule matched the packet and 2) we do not create state found by me while fixing the pool_get problem, ok dlg
2009-07-28check that pool_get actually gives us memory in pf_test_rule.Henning Brauer
introduced by yours truly (no idea how that could happpen), problem found by sthen the hard way, fix by me. ok dlg
2009-07-28Using the buf pointer returned from incore is a really bad idea.Artur Grabowski
Even if we know that someone safely holds B_BUSY and will not modify the buf (as was the case in here), we still need to be sure that the B_BUSY will not be released while we fiddle with the buf. In this case, it was not safe, since copyout can sleep and whoever was writing out the buf could finish the write and release the buf which could then get recycled or unmapped while we slept. Always acquire B_BUSY ourselves, even when it might give a minor performance penalty. thib@ ok
2009-07-28Replace "XXX ? from linux" with a descriptive comment. From Brad.Stuart Henderson
2009-07-28The firmware is an array of u_int32_t and differs between architectures.Claudio Jeker
From now on install the tigon firmware in little endian byte order and swap it acordingly in the driver. Correctly calculate the length of the FW in the build tool -- now my fiber cards no longer have issues to establish link on bootup. Please put this in deraadt@ On big endian archs (sparc64, macppc) the firmware file needs to be updated.
2009-07-28print the chipset name in the dmesg so it is possible to tellKevin Lo
whether this is an L1E or L2E chipset. From Brad
2009-07-28Add flow control supportKevin Lo
From Brad
2009-07-27explain the pedigree of these firmwares, since the license is not quite right.Theo de Raadt
We feel we have done due diligence though in trying to contact the original distributors, and therefore, we do distribute it.
2009-07-27Do enter the tigon directory, and build there, and ship them. We have triedTheo de Raadt
for many years to contact all the potential copyright owners and people who used to distribute this (ie. wpaul and such), to get the original license text clarified. We believe the original license on the source did specifically allow re-distribution. We believe we have done enough in this situation, especially considering how dead this product us. If anyone else knows more, please let us know. ok kettenis
2009-07-27Unbreak non-DIAGNOSTIC kernels (i.e. RAMDISK-IP27)Miod Vallat
2009-07-27Split comment from lint keyword. OK dms@Claudio Jeker
2009-07-27Define the common DiffServ Codepoints so pf(4) can use them.Claudio Jeker
Agreed by mcbride@, sthen@ and henning@
2009-07-27tiemout_add -> timeout_add_secBret Lambert
ok claudio@
2009-07-27add bus speed recognition on Nehalem based cpus, thisDariusz Swiderski
makes Enhanced SpeedStep work on new machines, but requires acpimadt0 to be enabled. ok by jsg@ and claudio@
2009-07-26stop trying to fast-recycle pages for now. a few bugs have been found andTheo de Raadt
fixed, but now it is time for a little break from the chaos. ok kettenis