summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2007-04-21oopsTheo de Raadt
2007-04-21Introduce a smp aware hw.setperf mechanism, it will scale all CPUs orGordon Willem Klok
cores by the same amount, i.e. if you do hw.setperf=50 both cores will be scaled to the opearting state corresponing to 50%. Tested by many with est (mainly on core2duo machines like X60 thinkpads). Only enable est during GENERIC.MP build no one tested powernow. ok art@
2007-04-21developers keep killing ramdisk driversTheo de Raadt
2007-04-19When doing pmap_collect, skip wired mappings when removing.Artur Grabowski
From NetBSD, miod@ ok
2007-04-19Do the late freeing of ptps in pae pmap as well.Artur Grabowski
From mickey.
2007-04-13While splitting flags and pqflags might have been a good idea in theoryArtur Grabowski
to separate locking, on most modern machines this is not enough since operations on short types touch other short types that share the same word in memory. Merge pg_flags and pqflags again and now use atomic operations to change the flags. Also bump wire_count to an int and pg_version might go int as well, just for alignment. tested by many, many. ok miod@
2007-04-13Update install media generation to the new semantics of the -c flag.Todd C. Miller
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.
2007-04-13When freeing PTP pages, we need to wait until TLB shootdown has beenArtur Grabowski
done until we put them on the freelist and risk them being reused. If the page is reused before being shot, there's a risk that it's still in the PDE TLB and speculative execution might use data from it to load TLBs. If the page isn't zeroed anymore we risk loading bogus tlbs from it. Inspired by a similar change in NetBSD. toby@ ok, tested by many at the hackathon.
2007-04-13Move the proc0 stack below the proc0 page tables so that in case weArtur Grabowski
overflow the stack, we run into the symbol table (not critical) instead of overwriting the page tables. From mickey, ok art@, ok toby@
2007-04-13map peeing -> mappingMiod Vallat
2007-04-12Faster signal delivery on i386/MP.Artur Grabowski
We need to poke the other CPU so that it processes the AST immediately and doesn't wait for the next interrupt or syscall. Since IPIs really shouldn't process ASTs, we need to trigger a soft interrupt on the destination CPU to process the AST. But since we can't send soft interrupts to other CPUs, we send an IPI, that triggers a soft interrupt that in turn processes the AST. Also, this marks the beginning of moving to slightly better IPI mechanism of short and optimized IPIs instead of the large and complicated IPI infrastructure we're using now. tested by many, ok tholo@
2007-04-12untypoArtur Grabowski
2007-04-11Instead of managing pages for intrsafe maps in special objects (aka.Artur Grabowski
kmem_object) just so that we can remove them, just use pmap_extract to get the pages to free and simplify a lot of code to not deal with the list of intrsafe maps, intrsafe objects, etc. miod@ ok
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-10pascoe finished sili(4). let's enable it so people can try it.David Gwynne
2007-04-04Mechanically rename the "flags" and "version" fields in struct vm_pageArtur Grabowski
to "pg_flags" and "pg_version", so that they are a bit easier to work with. Whoever uses generic names like this for a popular struct obviously doesn't read much code. Most architectures compile and there are no functionality changes. deraadt@ ok ("if something fails to compile, we fix that by hand")
2007-04-04Thinkpad -> ThinkPad; from Igor SobradoJason McIntyre
ok millert jasper mbalmer
2007-04-03Make the ast on i386 per-process instead of per-cpu. This makesArtur Grabowski
signal delivery more reliable in some cases when a process switches cpu. kettenis@ ok
2007-03-29Comment fixes from Daniel Dickman <didickman AT gmail DOT com>, relevant changesGordon Willem Klok
for amd64 added by myself and while here nuke some whitespace.
2007-03-28Bump max number of physical segments. Machines in the wildTobias Weingartner
seem to have reached this limit. ok marco@, looks ok ckuethe@
2007-03-26Rip out the KERN_ error codes.Artur Grabowski
ok otto@
2007-03-26i shouldn't be shy about commiting ahci to this.David Gwynne
lots of poking by jsg@
2007-03-26ichss_cookie is a bad name, and should not be a void pointer.Gordon Willem Klok
Spotted by Stefan Sperling <stsp AT tsp.in-berlin.de> when reviewing his piix speedstep diff. ok tedu@
2007-03-23Remove duplicated defines from intr.h that are already defined inArtur Grabowski
intrdefs.h that is inlucded first thing in intr.h. eyeballed for sanity by pedro@
2007-03-22Do not define ISA_DMA_STATS by default; ok deraadtMiod Vallat
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
2007-03-21ahci seems to work fine on i386. thanks to marc winiger for figuring thatDavid Gwynne
out for me.
2007-03-19Deactivate the pmap in cpu_exit. This way we can avoid quite a lot ofArtur Grabowski
tlb shootdowns in the reaper. mickey@ ok
2007-03-19attach softraid to the root of the device tree in a machine independantDavid Gwynne
way, rather than requiring some glue in each machines mainbus probe. it is still commented out. based on a discussion with miod@ ok marco@ deraadt@
2007-03-19Move i386 to timecounters. This is more or less the same code as amd64.Artur Grabowski
The "lapic" timer is ripped out since it wasn't actually a lapic timer, but a hacked up tsc timer with some synchronization for MP. There is no tsc timer right now since they are very unreliable on MP systems, systems with apm, and systems that change the cpu clock. Which basically means every modern machine out there. We're running with the i8259 timer now. deraadt@ ok
2007-03-19typo fixes; didickman@gmailTheo de Raadt
2007-03-19Add a new device that provides a framework for IO manipulation. A very basicMarco Peereboom
implementation of a RAID 1 is included in this but it does not deal with failures yet. Disabled in GENERIC. Suggestions from and ok beck@ miod@ krw@ dlg@ deraadt@
2007-03-18do not steal page table pages on page allocation failure -- it can be dealt ↵Michael Shalayeff
w/ in a more simple way as other archs do; art@ ok
2007-03-17we do not want uts(4) enabled until we have proper calibrationRobert Nagy
support, so revert my previous commit
2007-03-16enable uts(4)Robert Nagy
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-03-13tlb shootdown in pmap_change_attrs was shooting the wrong va.Artur Grabowski
"yes man" mickey@ (I think that meant 'ok').
2007-02-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.
2007-02-27call_apm should be 64 bit.Marco Peereboom
ok art
2007-02-24Remove unused B_DIRTY, B_PAGET, B_PGIN, B_TAPE and B_UAREA b_flags values.Miod Vallat
2007-02-22Revert my previous commit. Kettenis no likey.Marco Peereboom
2007-02-22Print base so that we can make a correct mapping between apic and irq.Marco Peereboom
ok jordan
2007-02-21part missed in PAE revert: ptoa() paddr_t size is no longer printedTheo de Raadt
with %llu; ok miod
2007-02-20Revert PAE pmap for now, until the strange bug is found. This stopsTom Cosgrove
the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
2007-02-20Remove duplicate entry.Tom Cosgrove
ok miod@
2007-02-19Put warning about shared IPL interrupts under MPVERBOSE and don't talk aboutMark Kettenis
degraded performance. requested by deraadt@
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-19Remove unused variable lapic_timerTom Cosgrove
ok art@
2007-02-18If no MBR partitions are found when spoofing a disklabel, try lookingKenneth R Westerback
for a bare FAT12/16/32 filesystem. If one is found, spoof it as 'i'. This enables iPod shuffles and other umass devices that are shipped with a bare FAT32 filesystem to be used as install media. And generally makes things easier for the user just trying to mount some media, e.g. floppies. Does not make it safe to write a disklabel or MBR on such a device! That will still obliterate the FAT filesystem. Help and suggestions from tom@ and deraadt@. Feedback and suggestions for future enhancements from espie@ mickey@ and peter@. ok tom@ deraadt@