summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-07-03newer bnx chips use a separate firmware to the "old" ones. this updatesDavid Gwynne
the b06 firmware for the older chips, and adds the b09 firmware. there are three variants of the rv2p code thats loaded onto the chips, so this has been split out into separate firmware files as well. the driver has been updated to handle the split firmwares, and to easily allow loading of the different versions. this change only supports the loading of the firmwares for the currently supported chips. after this change you must build the new firmwares and install them as well as your new kernel. "go to it" deraadt@
2009-07-02Revert the 'optimization' I attempted in r1.21 since it turns outKenneth R Westerback
that returning COMPLETE for non-SCSI_POLL commands is significant. Fixes double free of xs and subsequent crashes caused by pulling out USB media while i/o is active. Problem analyzed & fix discovered by hshoexer@. A more general fix may follow post-4.6. ok miod@ deraadt@.
2009-07-01The widget mapping code has been written back when I was only working onMiod Vallat
Octane support. The Octane being a single-node system, address space is ludicrous enough to allow the whole address space of every widget to be directly accessible in whole, using the address bits reserved to nasid. However, on IP27 and IP35, things do not work this way - while we still have the low 16MB address space of each widget available (the so-called ``short window''), access to other parts of the wiget address space is done through translation slots (IOTTE) at the Hub I/O space level, on a per-node basis. Given the imminent release lock, give up completely on ``large'' mappings of widgets, and restrict ourselves to short window operation, all the time (thus reinforcing the use of devio registers to map pci resources on xbridge). A proper interface to request mappings of specific widget areas, either directly on Octane, or through IOTTE if available on Origin, will appear post-release. No functional change (except from silently repairing Octane support which the previous xbridge commit silently broke).
2009-07-01Add a workaround for the fact that our clocks aren't running during autoconfMark Kettenis
(at least on some of our architectures, including hppa). Since isp(4) keeps track of elapsed time to determine if it should continue to wait for the FC link to come up it would wait very very long. Figured out by krw@. ok deraadt@, krw@
2009-07-01Crank bootblocks version for identification purposes.Miod Vallat
2009-07-01take us to 4.6, though there will still be some changesTheo de Raadt
2009-06-30Link the second stage bootblocks (and boot.net) 256KB higher to accomodateMiod Vallat
the GENERIC kernel growth; verified to not conflict with old prom on sun4. ok deraadt@
2009-06-29In sdmmc_intr_establish(), copy the entire name parameter instead ofMichael Knudsen
dumping the last byte. Input from otto@ and peter@. ok on an earlier diff from miod (and krw IIRC).
2009-06-29Zap isp_inline.h; it is no longer used.Mark Kettenis
ok deraadt@
2009-06-29Whack bridges that have conflicting windows. This prevents us from choosingMark Kettenis
address space that is already in use when reassigning BARs.
2009-06-29the data which is read is never used; ok krwTheo de Raadt
2009-06-29since we link in the 24xx firmware, might as well point to it; ok krw kettenisTheo de Raadt
2009-06-29Bring back rev 1.17, enable hardware vlan tagging/stripping.Jonathan Gray
ok deraadt@
2009-06-29enable isp(4)Theo de Raadt
2009-06-28Now the tx dma mapping problem it was exposing is fixedJonathan Gray
bring back rev 1.16, em style MCLGETI based on a diff from reyk with critical fixes by me.
2009-06-28Properly swap tx dma maps so we don't use invalid maps,Jonathan Gray
leak memory, lose maps or cause double frees. Problem courtesy of our good friends at Intel in the original FreeBSD driver. "awesome" dlg@
2009-06-28Attempt to map memory resources of unconfigured devices, if they do not haveMiod Vallat
I/O resources, via devio. Unfortunately it works as badly as when using the large window, so the bugs I am hunting must come from elsewhere.
2009-06-28Better wording for the not-supported-video-control message.Marcus Glocker
Requested by and OK deraadt@
2009-06-28Add colormap support for 8bpp mode.Mark Kettenis
2009-06-28Make this work in 8bpp mode too. Color support is still missing; probablyMark Kettenis
needs palette support.
2009-06-28Restore lost string constant, make DEBUG kernels compile.Kenneth R Westerback
Noticed by deraadt@.
2009-06-27Stricter checks when deciding which acceleration code to use. Instead ofMiod Vallat
matching on pci id, and if no match is found, on pci subsystem id, match on openfirmware device names (which amounts to a pci id AND subsystem id exact match). This makes XVR-500 cards (``bobcat'') run without acceleration. Which is better than trying to use ``jfb'' acceleration and fail. ok kettenis@
2009-06-27Preliminary cleanup work in order to help the PCI resource management code.Miod Vallat
As long as I can't figure out what endianness knobs I need to frob to make I/O and memory accesses through the large window work as intended, we are stuck to devio I/O mappings only...
2009-06-27In the bus_space_*_raw_* functions, move the invariant computations out ofMiod Vallat
the loop. No functional change.
2009-06-27If a device which has not been initialized by ARCS has a non-zero BAR, ignoreMiod Vallat
it if it does not fit in our extent, and force a suitable address. Prevents extent sanity check panics with some cards.
2009-06-27Add an explicit widget locator to xbow children; allows a given widget toMiod Vallat
be disabled with some UKC tinkering.
2009-06-27Remove debug printfs.Mark Kettenis
ok krw@
2009-06-27Revert the last change to this file which was made with armv7 support came in.Dale Rahn
The change was unrelated to v7 support, it was a cleanup item. For some reason this breaks ksyms on zaurus. however zaurus uses the old loadfile that is not fully synced with libsa
2009-06-26Two pci'd that come from cardbus, in case anyone ever needs them...Theo de Raadt
ok jsg
2009-06-26Fix a use after free in the pagedaemon.Owain Ainsworth
specifically, if we free a RELEASED anon, then we will first of all remove the page from the anon, free the anon, then get the next page relative to the anon page, then call uvm_pagefree(). The problem is that while we zero out anon->an_page, we do not zero out pg->uanon. Now, uvm_pagefree() if pg->uanon is not NULL zeroes out some variables in the struct for us. One of the backed out commits added more zeroing there which would have exacerbated this use after free under heavy paging (which was where we saw bugs). Fix this by zeroing out pg->uanon. I have looked for other similar cases, but have not found any as of yet. been in snaps a while, "please do commit that" deraadt@
2009-06-26invert direction for inner icmp state lookups (e.g. traceroute with icmp)Markus Friedl
ok henning, jsing
2009-06-26If we are going to move to the eeprom-based MAC address finding instead ofTheo de Raadt
CIS-based... some newer devices have the MAC address at offset 8 instead of offset 3. But we can tell by the first three octets, Intel says.
2009-06-26Prefer fdcache() to pdcache() in cpu_fork(), as the MI uvm code has touchedMiod Vallat
p->p_stats earlier, and loss of information there can cause spurious SIGPROF or SIGVTALRM to be delivered. ok kettenis@
2009-06-26Add all the cardbus com devices to puc, since these can show up on theTheo de Raadt
pci bus because of the expresscard adaptors... Lacking a better mechanism, also remind people to keep those lists syncronised.
2009-06-26Using information gleamed from the FreeBSD driver, change the MAC addressTheo de Raadt
reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
2009-06-26Overhaul sr_boot_assembly(). The original code had a number of problems,Joel Sing
including a "chunk id already in use" bug that occurred when assembling more than one volume at boot. Volumes are now kept in order, as are the chunks which they are assembled from. Duplicated chunk IDs are now handled appropriately, with the chunk that has the most recent ondisk metadata being used. Also tested by nicm@ who got bitten by the "chunk id already in use" bug. ok marco@
2009-06-26Support the ICH10 variants of em(4). All the work done by Dariusz SwiderskiClaudio Jeker
with help from Brad. OK deraadt@
2009-06-26the pr_usrreq implementation for routing sockets shares exactly one lineBret Lambert
of code between cases, so stop pretending otherwise, and move the if() dance to a switch, as is done in every other pr_usrreq I'm aware of. ok claudio@ michele@
2009-06-26regenKevin Lo
2009-06-26add the VIA VX855 chipsetKevin Lo
ok deraadt@
2009-06-26the 'inputs.usingdac' mixer item was used to select which group ofJacob Meuser
DACs to use. for several months, there have been at most two groups, the first being all usable analog DACs and the second being all usable digital DACs. so 'inputs.usingdac' essentially was used to switch between analog and digital modes. this was entirely unclear to most users because the DACs were listed by their NIDs, which means nothing unless you know how azalia(4) internals works. rename 'inputs.usingdac' to 'outputs.mode', and replace the lists of DAC NIDs with 'analog' and 'digital'. similarly for recording, change 'record.usingadc' to 'record.mode', and replace the lists of ADC NIDs with 'analog' and 'digital'.
2009-06-26if a codec has multiple line out jacks, and the codec says allJacob Meuser
the line out jack have different colors, use the colors in the line out mixer item names.
2009-06-25Back out if_ix.c 1.16, 1.17 and 1.18 (and corresponding changes to toTheo de Raadt
if_ix.h) since it corrupts packets or the checksum flags or something upwards and breaks nfs. The 1.16 MCLGETI change does not cause this but has a double free on reboot, and the 1.18 fixes that double free but introduces the packet corruption.
2009-06-25backout the buf_acquire() does the bremfree() since all callersThordur I. Bjornsson
where doing bremfree() befure calling buf_acquire(). This is causing us headache pinning down a bug that showed up when deraadt@ too cvs to current, and will have to be done anyway as a preperation for backouts. OK deraadt@
2009-06-25re-enable inteldrm since new X driver is about to fix the issueTheo de Raadt
2009-06-25fxp no longer fits on this mediaTheo de Raadt
2009-06-25Change safe_rng_read() from __inline to static __inline likeJonathan Gray
the original FreeBSD code for consistent behaviour between c89/c99 compilers.
2009-06-25scrub_flags is a u_int8_t, but PFSTATE_SCRUB_TCP is 0x0100, so theStuart Henderson
"reassemble tcp" state option failed to work correctly. Increasing this to u_int16_t fixes kernel/6178. ok deraadt@ henning@
2009-06-25Workaround a stupid problem ATI SB600 revisions and ATI SB700 southTheo de Raadt
bridge revisions A12 and A13. We really don't know what it does, but then noone else does. From NetBSD and Linux, via brad
2009-06-24Compute OpenBSD area bounds as the largest area spanning all the OpenBSDMiod Vallat
partitions; since all of them are DPME partitions, they might not be contiguous but that's the best we can do at the moment.