summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-06-06In SIOCS80211SCAN, fail if the interface is not up *and* running.Damien Bergamini
There are cases where the interface can be up but not running, for instance if the driver's if_init routine fails halfway for whatever reason (firmware file not found, hardware switch turned off etc...) This is because in sys/net/if.c, the returned code of the driver is ignored for SIOCSIFFLAGS and the IFF_UP flags is left set. netintro(4) does not say anything about values returned by SIOCSIFFLAGS, so I don't know whether it is the expected behavior or not. pointed out by halex@ and jacekm@ who noticed it was possible to trigger a scan on wpi(4) even when the hardware switch was turned off.
2009-06-06mechanical rename of ``priv'' to ``file_priv'' in the one function whereOwain Ainsworth
it had to be fucking different. This has been irritating me.
2009-06-06use BUS_DMA_ZERO instead of alloc + bzero.Owain Ainsworth
2009-06-06bring back the indians for pirofti -- handle unaligned access and put aTheo de Raadt
good estimate at the required byte swapping, bit of help from drahn ok pirofti mlarkin
2009-06-06add an interface to agp to create a bus_dma_tag over a range of theOwain Ainsworth
aperture, which will take your memory, bind it to agp, and return you the aperture address. It's essentially the same as iommu on amd64 in the way it works. This will be used by the upcoming (works but is slow and will not be enabled at first) drm memory management code for intel igp chipsets. Right now the sync function for intagp is really slow (doing a wbinvd() on every sync), this is in the process of getting fixed, but the size of the diffs in my trees was getting silly.
2009-06-06It might be a good idea to commit all the diff. *sigh*.Owain Ainsworth
now this builds
2009-06-06We only really need to #define SYNCHRONIZE_CACHE 0x35 once.Kenneth R Westerback
2009-06-06add sg_dma.c on i386, soon to be used.Owain Ainsworth
2009-06-06instead of #ifndef SMALL_KERNELing the whole sg_dma.c file, just put theOwain Ainsworth
information in files.conf like it should be.
2009-06-06Remove the last VGA_POST defines with X86EMU. Okay deraadt@.Paul Irofti
2009-06-06Add uvm_objwire() and uvm_objunwire(), I need this for some of my crazyOwain Ainsworth
shitz. Code mostly from netbsd with some tweaks from me. The loaning case is specifcically if 0ed out right now because we do not do loaning. ok ariane@, art@.
2009-06-06Fix RCSIdsMatthieu Herrb
2009-06-06option X86EMU is how this subsystem is brought into a kernelTheo de Raadt
2009-06-06Rewrite the SIOCSIFFLAGS ioctl handling code to clean it up a bit andChristian Weisgerber
make it consistent with other drivers. No functional change. From Brad.
2009-06-06Consolidate error handling code. Much less atrocious than before.Bret Lambert
"get it in" thib@
2009-06-06fix include pathsTheo de Raadt
2009-06-06Add vga bios repost support. Fetched from the NetBSD tree mostly.Paul Irofti
Tested on multiple i386 and it works, amd64 works also with a few exceptions that will get fixed. The initial effort of importing was done by oga@, thanks! Lots of testing and debugging by mlarkin@ and me. Okay deraadt@, oga@, mlarkin@.
2009-06-06turdshine previousThordur I. Bjornsson
2009-06-06Matching fix for amd64. This also removes a spurious disable_intr() callMike Larkin
that wasn't needed. ok pirofti@
2009-06-06Fix some lapic, interrupt, and clock issues on i386 ACPI S3 resume.Mike Larkin
(Allows time to flow forward after resume) ok pirofti@
2009-06-05TTheo de Raadt
ariane's new allocator gave iwi dirty memory, and made a real bug fall out. The kva was being stored in a structure hidden by a cast, but passing the "structure" corrupts subsequent arguments to bus_dmamap_load(). group effort with ariane, kettenis, and oga.
2009-06-05bring back rev1.70Thordur I. Bjornsson
2009-06-05catch up NetBSD kern/41048.Yojiro Uo
check for a non-NULL configuration descriptor before dereferencing. ok deraadt@
2009-06-05revert to 1.67 to unbreak NFS writes; ok beck@ thib@Christian Weisgerber
2009-06-05- make this a lot more readable; no binary changeJasper Lievisse Adriaanse
ok thib@
2009-06-05Add support to fxp(4) for the 82552 MAC found in some variation ofChristian Weisgerber
the ICH7 chipset. Untested, but can't break anything that already works. From Brad; ok sthen@
2009-06-05Save some more state such that we recover from X changing depth on us.Mark Kettenis
2009-06-05Clear screen to clean up after X.Mark Kettenis
2009-06-05Remove redundant assignment.Mark Kettenis
2009-06-05Clear screen to clean up after X.Mark Kettenis
2009-06-05tidy up promiscuous mode and multicast handling; from Brad; ok sthen@Christian Weisgerber
2009-06-05abort any time adjustment in progress if the clock is set with settimeofdayChris Kuethe
ok millert
2009-06-05Revert the curpmap change. We know the IPI is broken on both ends,Philip Guenthe
but even with proposed fixes, the reaper panics are back.
2009-06-05use the right accounting for bound edges (i think)Theo de Raadt
2009-06-05enable IPv6 receive TCP/UDP checksum offload; from BradChristian Weisgerber
2009-06-05Disable and clear hardware cursor to clean up after X.Mark Kettenis
2009-06-05Sanity check: we overrun the rnd_ed[] array if nbits is 32, but thatPhilip Guenthe
should be impossible given the multi-order delta logic ok deraadt@
2009-06-05Update to Reinoud Zandijk's much more current version of ecma167-udf.hKenneth R Westerback
and make textual tweaks to .c files to keep them compiling. From NetBSD. No changes to .o's at this point.
2009-06-05Save some state and restore it after we return from X, because the acceleratedMark Kettenis
X driver for this chip doesn't know how to clean up after itself.
2009-06-05Dynamic buffer cache sizing.Bob Beck
This commit won't change the default behaviour of the system unless the buffer cache size is increased with sysctl kern.bufcachepercent. By default our buffer cache is 10% of memory, which with this commit is now treated as a low water mark. If the buffer cache size is increased, the new size is treated as a high water mark and the buffer cache is permitted to grow to that percentage of memory. If the page daemon is invoked, the page daemon will ask the buffer cache to relenquish pages. if the buffer cache has more than the low water mark it will relenquish pages allowing them to be consumed by uvm. after a short period the buffer cache will attempt to re-grow back to the high water mark. This permits the use of a large buffer cache without penalizing the available memory for other purposes. Above the low water mark the buffer cache remains entirely subservient to the page daemon, so if uvm requires pages, the buffer cache will abandon them. ok art@ thib@ oga@
2009-06-05%zu is not meant for size_t in the kernel. Change to %lu.Ray Lai
OK miod
2009-06-05EPERM from VOP_ACCESS() is always an error, so don't hide it.Thordur I. Bjornsson
Diff from FreeBSD. OK blambert@
2009-06-05Add missing #ifdef INET6 ... #endifAlexander Hall
Makes non-IPv6 kernels build again blame and ok henning@
2009-06-05this one tooMartynas Venckus
2009-06-05reduce diff i will send in a minuteMartynas Venckus
2009-06-05Clamp the ending bound to the size of the disk. This makes disklabel -ATheo de Raadt
still do the right thing if the MBR has a lie in it
2009-06-05The names for p_flags bits had fallen out of datePhilip Guenthe
2009-06-05Initial support for routing domains. This allows to bind interfaces toClaudio Jeker
alternate routing table and separate them from other interfaces in distinct routing tables. The same network can now be used in any doamin at the same time without causing conflicts. This diff is mostly mechanical and adds the necessary rdomain checks accross net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6. input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@
2009-06-04Change i386 ACPI sleep to KASSERT if the pmap can't be activatedMike Larkin
properly. Now i386 and amd64 implementations match. ok art
2009-06-04- factor out rf into its own structureMartynas Venckus
- clean up the softc a bit - remove unused SET_CHANNEL - init set sens