summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-06-08If the machine only has one state enabling the EST driver is pointless,Gordon Willem Klok
this might need to be revisted later if its clear that there are machines which only come up with a single state but more may appear after a PPC change but for now we will just not initilize on systems with a single state a boot. Solves a divide by zero panic when using the PDC diff on broken hardware. ok marco@, krw@
2009-06-08fix non standard/valid usage of ? : operator on amd64Jonathan Gray
as well, reminded by miod@
2009-06-08fix non standard/valid usage of ? : operator.Jonathan Gray
ok oga@
2009-06-07We weren't including isa.h and therefore missing the NISA #define. ThisMike Larkin
caused the PIC to not be initialized on resume, which caused much badness - things attached to the ISA bus weren't getting any interupts (for example, keyboards). Also move around some of the lapic reinit code to handle some clock initialization bits we weren't doing before. Worked out by deraadt and myself. ok deraadt@
2009-06-07Do not look at the avail_{start,end} members from vm_physmem[] anymore.Miod Vallat
These values were used to eventually pass ranges to uvm_pglistalloc(), which has been fixed to correctly skip no-memory ranges a lot of time ago; however mvme68k would still use the computed range and osiop would no longer attach; this repairs it.
2009-06-07on amd64, store a pointer to the loaded data and the type. This willOwain Ainsworth
eventually be needed by bouncebuffers, and I need it for some of my evil graphics shitz. ok kettenis@ with some tweaks
2009-06-07extend uvm_page_physload to have the ability to add "device" pages to theOwain Ainsworth
system. This is needed in the case where you need managed pages so you can handle faulting and pmap_page_protect() on said pages when you manage memory in such regions (i'm looking at you, graphics cards). these pages are flagged PG_DEV, and shall never be on the freelists, assert this. behaviour remains unchanged in the non-device case, specifically for all archs currently in the tree we panic if called after bootstrap. ok art@, kettenis@, ariane@, beck@.
2009-06-06Unrevert the curpmap change with the addition of correct %gs handlingPhilip Guenthe
in the IPI handler so that it works when it interrupts userspace, waiting for the droppmap IPI to complete when destroying it, and (most importantly) don't call pmap_tlb_droppmap() from cpu_exit(). Tested by myself and ckuethe, as our machines choked on the original. ok @art
2009-06-06Update est.c, make it capable of using ACPI if the PSS is available butGordon Willem Klok
still support all different methods of getting states without e.g. (highest/lowest state), and on i386 use the tables. The only change should be the deletion of the mV from the printf at boot. ok jsg@
2009-06-06ipi_reloadcr3 uses CPUVAR, so it needs to set up %fs in order toPhilip Guenthe
work if it interrupts userspace ok kettenis@ "you haven't committed that yet?" art@
2009-06-06Disable interrupts durring the lock step frequency/voltage change. GenericGordon Willem Klok
IPIs are handled without blocking interrupts. This solves the random lockups people have been seeing with apmd -C, thanks to marco@ for showing me how to reliably recreate this hang, and claudio@ for telling me it was also affecting his Athlon64 machine so I stopped chasing bugs in est. ok oga@, weingart@
2009-06-06When getting a fault in the kernel, we checked for biglock and failedArtur Grabowski
immediately when biglock wasn't held. But there is nothing inherently wrong with doing copyin/copyout faults without holding biglock, so just remove the check because it prevent us from doing copyin in syscall before we grab the biglock.
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-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-06option X86EMU is how this subsystem is brought into a kernelTheo de Raadt
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-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-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-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-05Disable and clear hardware cursor to clean up after X.Mark Kettenis
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-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-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-04Ensure we are sleeping from the kernel. Code changed to match i386.Mike Larkin
ok art
2009-06-04Make backtraces through interrupts work.Mark Kettenis
2009-06-04More fallback from struct disklabel changes, yawnMiod Vallat
2009-06-04Fix fallback from struct disklabel changes.Miod Vallat
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
2009-06-04Remove support for non-ELF; it never existed for amd64.Mark Kettenis
2009-06-04Don't bother setting RB_SERCONS in boothowto since this flag is not usedMiod Vallat
by anything.
2009-06-04Add DIOCRLDINFO to those drivers previously deprived.Kenneth R Westerback
Noticed by & ok deraadt@
2009-06-04Enable gfxp(4).Mark Kettenis
2009-06-04Accelerated fills as well.Mark Kettenis
2009-06-03Accelerated scrolling.Mark Kettenis
2009-06-03Initial stab at a driver for the Tech Source Raptor GFX built around theMark Kettenis
3D Labs Permedia 2v chip. These cards were sold by Sun as PGX32.
2009-06-03Initial stab at a driver for the Tech Source Raptor GFX built around theMark Kettenis
3D Labs Permedia 2v chip. These cards were sold by Sun as PGX32.
2009-06-03add kern.bufcachepercent sysctl to allow adjusting the buffer cacheBob Beck
size on a running system. ok art@, oga@
2009-06-03Fix check for window-top and window-left values.Mark Kettenis
ok miod@
2009-06-03Make sure we're running on the right pmap when going to sleep.Artur Grabowski
2009-06-03- add hotplug deviceJasper Lievisse Adriaanse
ok miod@
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-06-03Import acpi power resource driver. This is needed for suspend/resume logic.Paul Irofti
Okay jordan@ and marco@.