summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-04-15Remove some unused symbolic constants.Michael Knudsen
2009-04-15Disable DEBUG now, it floods too much information.Miod Vallat
2009-04-15A firsh shot at IP27 interrupts; currently the code assumes it runs onMiod Vallat
the first cpu on dual-cpu boards; this will be fixed later. Just don't disable it at the prom.
2009-04-15Change the way the widget interrupt register is computed and have it becomeMiod Vallat
a complete physical address. Also add proper cpu pa<->device pa for dma on Origin 200. This lets xbridge work and route interrupts correctly on Origin 200.
2009-04-15Oops, referenced an include file which I don't plan to commit yet.Miod Vallat
2009-04-15Only enable the passthrough interrupt for serial ports, and let com(4) manage.Miod Vallat
Otherwise we get stuck interrupted by the ``tx empty'' condition. Also, on Origin 200 the second interrupt vector has to be computed differently, which adds to the ``I wish I never had looked at this code'' trauma.
2009-04-15little dose of scrubbing after the monster changes:Henning Brauer
correctly inherit queue stuff, tag, rtableid from the rule if we have no state some logic simplification and removal of redundant checks ok dlg
2009-04-15We don't need to grab the fpageqlock to do nothing but look at the valueOwain Ainsworth
of uvmexp.free. "yeah, go for it" art@
2009-04-15Misplaced comment.Artur Grabowski
From Kirill Timofeev
2009-04-15Remove en(4) (no manpage present, no none removed), and the midway.c glue codeOwain Ainsworth
for it. It is very unlikely this still compiles, the hardware is dead. It isn't in any arch's config file. the sparc sbus code is even commented out in files.sparc. Not to mention that the code is fucking appauling, doesn't even know that sparc got bus.h ages ago, still uses vtophys(), defines all types of functions to arch-specific hacks. I will miss the bitchy comments, though... As a note to other drivers: this is the fate that awaits you if you screw up my ctags on commonly used functions. "you have my ok" claudio@, "zap zap zap" deraadt@ If i've missed any bits, please remove them.
2009-04-15move OK ICMP to NOISY level, makes it easier to run at MISC level; ok henning@David Krause
2009-04-15move pfsync stale update messages to NOISY level; ok dlg@ henning@David Krause
2009-04-15fix properly; size gets decremented while we check the segments, so save it soOwain Ainsworth
when we setmapsize it's not zero. *sigh*
2009-04-15clean up the sub-driver callback mess a little.Owain Ainsworth
2009-04-15Add a bit of sanity-checking paranoiaOwain Ainsworth
2009-04-15make load_raw do the same as the others and set mapsize and nsegs toOwain Ainsworth
zero so that we return an empty map on error.
2009-04-15bus_dmamap_load_raw didn't set map->dm_mapsize on successful load.Owain Ainsworth
I just spent five hours looking in the wrong place because of this.
2009-04-14Fixed a few the-the misspellings in comments. Skipped a bunch in ↵Janne Johansson
binutils,gcc and so on. ok jmc@
2009-04-14Oops, this comment change should not have been commited. What itOwain Ainsworth
addresses is another diff.
2009-04-14The use of uvm.pagedaemon_lock is incredibly inconsistent. only aOwain Ainsworth
fraction of the wakeups and sleeps involved here actually grab that lock. The remainder, on the other hand, always have the fpageq_lock locked. So, make this locking correct by switching the other users over to fpageq_lock, too. This would probably be better off being a semaphore, but for now at least it's correct. "ok, unless you want to implement semaphores" art@
2009-04-14Correctly handle the case when state might be NULL in pf_test likeAlexander Yurchenko
all other code do. Should fix pr 6121. ok henning@
2009-04-14Convert sis(4) to MCLGETI() and make soekris suck much less. With this theClaudio Jeker
little green slug does not block userland even when hammered with twice as much traffic it can handle. Almost the same code I came up during h2k8 but now with two other bugs fixed that where exposed by MCLGETI(). Tested and OK dlg@ sthen@ and a lot of pushing by Theo.
2009-04-14do not cache the computed TTAK unless MIC has been verified.Damien Bergamini
this prevents an attacker from changing the TTAK (DoS attack) by sending a frame with a large TSC but with a bad ICV and/or MIC. now an attacker can only invalidate the cached TTAK.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-14enable ix(4).Jonathan Gray
ok reyk@
2009-04-14Some tweaks to the cpu affinity code.Artur Grabowski
- Split up choosing of cpu between fork and "normal" cases. Fork is very different and should be treated as such. - Instead of implicitly choosing a cpu in setrunqueue, do it outside where it actually makes sense. - Just because a cpu is marked as idle doesn't mean it will be soon. There could be a thundering herd effect if we call wakeup from an interrupt handler, so subtract cpus with queued processes when deciding which cpu is actually idle. - some simplifications allowed by the above. kettenis@ ok (except one bugfix that was not in the intial diff)
2009-04-14Don't free an mbuf that's still on the TX queue. While there sanitize theMark Kettenis
function signature of bnx_tx_encap() such that people don't get weird ideas like this again. ok dlg@
2009-04-13Convert the page queue lock to a mutex instead of a simplelock.Owain Ainsworth
Fix up the one case of lock recursion (which blatantly ignored the comment right above it saying that we don't need to lock). The rest of the lock usage has been checked and appears to be correct. ok ariane@.
2009-04-13Ignore zero-sized regions from the BIOS memory map when reserving root PCIMark Kettenis
bus address space. Fixes a problem reported by david@.
2009-04-13The start of Origin 200 support. Based on some code contributed by pefo@Miod Vallat
some years ago for KL enumeration, building on the existing XBow support to limit ourselves to a single node for now. This is a work-in-progress; it currently lacks complete interrupt code, as well as PCI resource management. And there are likely bugs creeping inside.
2009-04-13Also match on Uniqueware family 0x91, and correctly report the third byteMiod Vallat
of the Ethernet address.
2009-04-13Add missing option BOOT_CONFIGMiod Vallat
2009-04-13Remove commented out debug options.Miod Vallat
2009-04-13Convert macros to functions to reduce kernel memory usage.Bret Lambert
In snaps for a while (way too long, according to deraadt@)
2009-04-13Explicitly test whether the SUNW,start-cpu-by-cpuid interface is availableMark Kettenis
instead of assuming it is. Makes sure we actually spin up the secondary CPUs on Serengeti machines with certain firmware revisions. Tested by Christophe Latt.
2009-04-12Implement /dev/mdesc, a device to read the machine description on sun4vMark Kettenis
(virtual) machines.
2009-04-12Interrupt support for IOC3 and its subdevices (currently limited to theMiod Vallat
SuperIO part, the Ethernet part needs a whole driver); kernel now boot single user (or bsd.rd). Joint work with jsing@
2009-04-12Add code to prevent the MI pci code to cause IOC3 devices to freeze andMiod Vallat
hog the bus, and also to fake a valid interrupt register. The IOC3 device is not a PCI device at all, but pretends to be one. Except its own registers overlap the PCI configuration space, and some flavours do not support disabling memory space in the control register, violating the PCI specs. Fun.
2009-04-12Needs <machine/atomic.h> to compile.Miod Vallat
2009-04-12Get com console global variables from <dev/ic/comvar.h> instead of declaringMiod Vallat
them manually.
2009-04-12Better constraints on the temporary register in atomic_{set,clear}bits_int.Miod Vallat
2009-04-12need nvram to link; ok miodTheo de Raadt
2009-04-12Remove erroneous spaces.Joel Sing
From brad
2009-04-12Move code handling Machine Descriptions out of the cbus(4) driver.Mark Kettenis
2009-04-12regenMark Kettenis
2009-04-12The Intel 21154 was incorrectly named S21154.Mark Kettenis
2009-04-11Avoid dereferencing a null pointer when pf attempts to translate aJoel Sing
specifically crafted IP datagram. Problem noted by Sebastian Rother. ok henning@ mcbride@ sthen@
2009-04-11Create extents for resource accounting on the root PCI bus and populate themMark Kettenis
based on the BIOS memory map.
2009-04-11There is no support for building multi-socket machines in AMD Family 11hMark Kettenis
processors, so the registers to configure addition HyperTransport links are absent. Don't try attaching addition pci busses on these processors to avoid probing non-existant registers.
2009-04-11Add PnP ID for PCIe host bridge.Mark Kettenis