summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-08-21We only need to load 64 bit kernels on sparc64. Clean up the ELF boot codeJoel Sing
and let exec_elf.h do the right thing. ok miod@ (some time ago)
2010-08-21an unchecked-for failure of workq_add_task could lead to an mbuf leakBret Lambert
steal a page from dlg@ and embed a workq_task struct directly in the aoe_handler struct so that we won't fail when enqueueing a task while here, create real debugging printfs vice commenting out regular ones, and kill with fire the excessive number of includes ok marco@ tedu@
2010-08-20Change the UFS DIP macros to be aware of the FFS2 kernel option by notMatthew Dempsky
bothering to check the mount type when FFS2 support is omitted. ok krw@, jasper@; "i like it" tedu@
2010-08-20Change hzto(9) and tvtohz(9) arguments to const pointers.Matthew Dempsky
ok krw@, "of course" tedu@
2010-08-20add format strings implied by surplus argumentsJonathan Gray
found via the clang static analyser
2010-08-20regenDamien Bergamini
2010-08-20The Hercules HWNUP-150 is a urtwn (Realtek RTL8192SU).Damien Bergamini
It makes even the smallest run(4) devices look ridiculously huge.
2010-08-20white space fixDavid Gwynne
2010-08-20fix an annoying indentation glitchTheo de Raadt
2010-08-19Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer fromMark Kettenis
getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@
2010-08-19Introduce an MI kern.consdev sysctl that will replace the MDMark Kettenis
machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
2010-08-19- fold several occurences of DEVNAME() into one located in sdmmcvar.h.Jasper Lievisse Adriaanse
making DEVNAME() usage a lot more consistent. ok krw@
2010-08-18* indentation fixJacob Meuser
* use the correct variable in a DPRINTF
2010-08-18* the detach and drain functions do the same waiting for channels toJacob Meuser
complete outstanding requests, so use uaudio_drain in uaudio_detach. * the channel alt index can still be -1 at detach. check for this.
2010-08-18- remove COMPAT_LINUX bits. these architectures are not targetted by theJasper Lievisse Adriaanse
linux emulation layer, nor will they in the future. ok miod@
2010-08-18regenDamien Bergamini
2010-08-18Realtek RTL8190P and RTL8192E PCI ids.Damien Bergamini
2010-08-18fix a test that prevents division by zeroDamien Bergamini
restore the 100us delay after writing to an analog register since it turns out that it is required.
2010-08-18- in STA mode, when associated, stop receiving beacons from other BSS.Damien Bergamini
tested by ray@ - no periodic PA calibration for the Osprey (AR9380)
2010-08-18delete some rogue spaces and tabs. no binary change.Marco Peereboom
2010-08-18- fix compilation of kernel without FFS...don't ask ;-)Jasper Lievisse Adriaanse
ok jsing@
2010-08-17regenJasper Lievisse Adriaanse
2010-08-17- TI doesn't mean Texas IntelJasper Lievisse Adriaanse
2010-08-17Make sure fast trap handlers correctly invoke soft interrupts by markingMiod Vallat
them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
2010-08-17Power management for PCI devices. For now just put everything in the D3Mark Kettenis
(deepest sleep) state upon suspend, and restore power upon resume. ok deraadt@
2010-08-16Restore initialization of apcicnaddr which got accidentally removed in revisionMiod Vallat
1.5, about 5 years ago. My bad. ok deraadt@
2010-08-16Make sure we reserve enough room after the kernel image to avoid stompingMiod Vallat
over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
2010-08-16Add a dummy elf64.c, effectively removing support for loading 64-bit kernelsMark Kettenis
from cdboot to slim it down below the 32k limit.
2010-08-13now that we are at -current again, re-enable POOL_DEBUGPeter Hessler
"go ahead" kettenis@
2010-08-13Fix indentation.Mark Kettenis
2010-08-13when sending a fragmented packet, dont check if the interfaces send queueDavid Gwynne
has enough space for all the fragments on it. this check was snuck in by itojun under an unrelated commit. it broke when i set the virtual interface send queue depths to 1, which beck had to special case at n2k10. without this code we avoid these dubious checks along with another splnet/splx pair, and it should make future work on manipulating send queues easier. ive been running this in production since n2k10 (~7months ago). ok claudio@ henning@ deraadt@
2010-08-12homogeneous style.Damien Bergamini
no binary change.
2010-08-12Enable periodic (every 4 minutes) power amplifier calibrationDamien Bergamini
on AR9285 and AR9287.
2010-08-12no need to set these pointers to NULL, softc is already zeroed.Damien Bergamini
2010-08-12For chips in open-loop power control mode, periodically (every 30 secs)Damien Bergamini
compensate Tx gain for temperature changes.
2010-08-12Fix look-up of the power control digital-to-analog converter (PCDAC)Damien Bergamini
value in the Tx gain table. This fixes AR9280/AR9281 chips in open-loop power control mode, like the high power solution found in the Acer Aspire One. tested by ray@
2010-08-12Fix a ton of space and tab violations. No binary change.Marco Peereboom
ok oga
2010-08-12Fix a one character typo that broke interrupt handling on ironlake.Owain Ainsworth
we disable the interrupt while we are handling it (this is required according to intel) but instead of writing the version with the master enable bit back to the Interrupt Enable Register, we wrote it to the Interrupt Indication Register, so after the first interrupt we only got lucky due to shared interrupts when we were after anything. s/IIR/IMR/ on that one call and it works. tested by guenther@ and marco@ and myself. Fixes hangs when waiting for the chip which were unstuck by moving the mouse.
2010-08-12Instead of returning EBUSY when the busy flag is set in the ioctl, sleepOwain Ainsworth
until whoever has it is done with it. This is kept as flag/sleep condvars instead of a rwlock because later we may want to quiesce the handler before suspend to make sure nothing is sleeping on a chip that is about to be whacked (doing so will change the proc so rwlocks won't work). ok damien@
2010-08-12Nuke extra (typoed) extern declaration and a spare newline from the lastOwain Ainsworth
commit. "fix it -- free commit" beck@
2010-08-12Reset the chip upon suspend, to make sure it stops DMA. Reset it again uponMark Kettenis
resume to make sure the chip is initialized the same way as upon attach. Fixes memory corruption after resume on the Dell Inspirion 4150. ok deraadt@
2010-08-12these files don't need to include nearly so many headersTed Unangst
2010-08-12clean up some macro obfuscation and assorted styling problems.Ted Unangst
fix a bonus off by one bug. ok matthew
2010-08-12Initialize xs to NULL in gdt_intr() since it now might be used beforeMatthew Dempsky
otherwise assigned. ok krw@
2010-08-12we are at -current againTheo de Raadt
2010-08-11Disable the RTC the periodic interrupt. Leaving it enabled causes theMark Kettenis
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
2010-08-11Make the number of vnodes to correspond to the number of buffers inBob Beck
buffer cache - we grow them dynamically, but do not attempt to shrink them if the buffer cache shrinks after growing. Tested by very many for a long time. ok oga@ todd@ phessler@ tedu@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-11Use the correct offsets when reading/writing to DCA_TXCTRL in the 82599Jonathan Gray
case. Adapted from Intel code in FreeBSD and tested on 82598/82599.