summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-04-20Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.Owain Ainsworth
Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
2009-04-20add the UVM_PLA_ZERO flag for uvm_pglistalloc to make it return zeroedOwain Ainsworth
pages. "go for it" miod@
2009-04-19zero temperature in acpi refers to -273,2degC -- convert to uK ↵Constantine A. Murenin
appropriately; ok deraadt marco
2009-04-19Enable schsio(4) everywhere to get it tested.Michael Knudsen
``please commit'' deraadt
2009-04-19Call acpi_sleep_walk() when powering down just like when enteringKenneth R Westerback
any other sleep state. This tells acpi wake devices to not wake up the box until manual powering up resets their status. Makes my Dell GX520 stay powered off in response to 'halt -p'. In snaps for a while. ok marco@ (several times) deraadt@
2009-04-19calculate size correctly if PAGE_SIZE != ATI_PCIGART_PAGE_SIZE.Owain Ainsworth
from upstream a while back.
2009-04-19The G4X and GM45 just /had/ to have a different counter register.Owain Ainsworth
Been meaning to pull this in from upstream for ages.
2009-04-19For consistency, make sure that all archs that use the same patternOwain Ainsworth
always increment uvmexp.softs while inside the lock. While i'm here, make alpha's dispatch loop look like the rest. "sure" miod@
2009-04-19Mutexes for arm and sh softinterrupts.Owain Ainsworth
ok miod@
2009-04-19On Octane, force a nonzero _dma_mask value so that we do not risk trying toMiod Vallat
handle a mapping partly in, and partly out the direct DMA window, on systems with > 2GB physical memory.
2009-04-19Attach the 1-Wire devices early, and pick our partnumber; based on thisMiod Vallat
partnumber, decide what components of the IOC3 really are available, and how many interrupts to register. Based on knowledge found in Linux source code, only tested on full-blown IOC3 devices so far.
2009-04-19Correctly handle bus_dma_tag with _dma_mask == 0.Miod Vallat
2009-04-19Parse and display the part number and the serial number, instead of falselyMiod Vallat
printing the part number as the serial number.
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-19Rename max_cpus to ncpusfound and compute it regardless of optionMiod Vallat
MULTIPROCESSOR.
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-19Switch the softinterrupt code on x86 over to mutexes instead ofOwain Ainsworth
simplelocks + splhigh(). First part of making it possible to make mpsafe softinterrupts. "oh yes, definitely" miod@
2009-04-19Use correct device index for Ethernet interrupt handler.Joel Sing
2009-04-19Add a new EX_FILLED flag to make extent_create() create an extent map thatMark Kettenis
has all space allocated such that we can make holes in it using extent_free(). ok miod@
2009-04-19Fix interrupt mapping for devices behind PCI-PCI bridges.Mark Kettenis
ok miod@
2009-04-19Add heuristics to tell IP27 and IP35 apart, as they will need to be handledMiod Vallat
differently at times.
2009-04-19A much more reliable logic to find out the second interrupt of the ioc boards.Miod Vallat
2009-04-19Fix typo pointed out by a couple of people.Mark Kettenis
2009-04-18Attach to IP35 Xbridge too.Miod Vallat
2009-04-18Attach pci busses with pba_bus being zero, and not our bridge unit number,Miod Vallat
these are completely unrelated as long as there is only one pci bus per bridge.
2009-04-18Fewer hardcoded values and simpler code in ip30 interrupt handling.Miod Vallat
2009-04-18Simplify ethernet interrupt dispatching, since it is not shared with anythingMiod Vallat
else.
2009-04-18Make "route(8) change" aware of MPLS.Michele Marchetto
It is now possible to change routes' MPLS parameters via route change. ok laurent@, ok and input claudio@
2009-04-18Fix tyop.Michael Knudsen
ok mglocker
2009-04-17schsio_probe() reads the chip id to find out if we should attach or not.Michael Knudsen
schsio_attach() then later reads the chip id to print which device we found. I noticed that isa_attach_args has a field called ia_aux which can be used for driver specific stuff, so stuff the device id in there so we don't need to get the value from the chip again during attach.
2009-04-17Catch up with uvm_pglistalloc() interface change.Mark Kettenis
2009-04-17Switch hme(4) over to using MCLGETI when allocating mbufs for the RX ring.Mark Kettenis
tested by okan@, sthen@
2009-04-17move the lastr = r assignment behind the anchor rule check so we don'tHenning Brauer
ever try to aplly options from the anchor rule if it was the last matching one but the last matching real rule. it is right but despite begging nobody has the balls to ok it ;(
2009-04-17Remove unused function proc_isunder()Bret Lambert
"go for it" tedu@
2009-04-17Add device ranking support for future sleep/wake developments.Paul Irofti
okay marco@
2009-04-17Correctly handle packets that are leaving the MPLS cloud andMichele Marchetto
joining the ipv4/ipv6 stack. Get also rid of the dependency on mpe(4) for packets not belonging to VPN traffic. ok laurent@, ok and input claudio@
2009-04-17Another case of locking just to read uvmexp.free. Kill the locking, notOwain Ainsworth
needed. "of course" art@.
2009-04-16Change some parameter types from int to u_int8_t since theMichael Knudsen
bus_space_.. API uses that.
2009-04-16make TKIP TSC start at 1 (instead of 0) to match the standard.Damien Bergamini
many implementations (including ours) will drop frames with a TSC equal to 0 (they are considered replayed frames.)
2009-04-16Really turn fragment reassembly on by default. pfctl must handle thisDavid Krause
since the DIOCSETREASS ioctl is called on every ruleset load and was overriding the initial setting in pfattach(). Fix setting of the global no-df bitmask as well. ok henning@
2009-04-15The current iommu code only touches the hardware if the bios did notOwain Ainsworth
enable it (I have found the code that does enable it problematic on quite a few machines, however, that's a different issue). So provide some code that so if the bios initialised the iommu for us, we'll use what it gave us. Makes iommu work on a machine of todd's. while i'm here, we don't need to scan all pci functoins to find the hypertransport bridge. the gart is always on function 3, so just scan for all the bridges and not iterate over the functions too. Thanks to todd for his infinite patience while I gave him diffs that went ``Boom!''.
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