summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-06-20Remove unused global variables.Miod Vallat
2009-06-20Remove unused struct ka410_cpu, long superseded by struct vs_cpu.Miod Vallat
2009-06-20Have hmestop() properly clear the RUNNING/OACTIVE flags and the interfaceStuart Henderson
watchdog timer. Copied over from MI hme(4). Tested by nick@. From Brad.
2009-06-19Make the 64 bit bootblocks compile again after the <machine/mnode.h> changes.Miod Vallat
2009-06-19They're DPME partitions, not DPMI partitions.Kenneth R Westerback
ok miod@ drahn@
2009-06-17Make sure xbowmatch() only matches on xbow stanzas.Miod Vallat
2009-06-17Make sure we do not coalesce memory ranges from different nodes.Miod Vallat
2009-06-17R14000 processors with revision 3 and above are actually R16000 revisionMiod Vallat
1 and above, so report them as such.
2009-06-17Really avoid changing the start of the bounds if we found no LIFTheo de Raadt
a diff by kettenis but he is gone for a day or so
2009-06-17remove extra debugging printf(). ok miod@Matthieu Herrb
2009-06-16Backout pmemrange (which to most people is more well known as physmemAriane van der Steldt
allocator). "i can't see any obvious problems" oga
2009-06-16Backout all changes to uvm after pmemrange (which will be backed outOwain Ainsworth
separately). a change at or just before the hackathon has either exposed or added a very very nasty memory corruption bug that is giving us hell right now. So in the interest of kernel stability these diffs are being backed out until such a time as that corruption bug has been found and squashed, then the ones that are proven good may slowly return. a quick hitlist of the main commits this backs out: mine: uvm_objwire the lock change in uvm_swap.c using trees for uvm objects instead of the hash removing the pgo_releasepg callback. art@'s: putting pmap_page_protect(VM_PROT_NONE) in uvm_pagedeactivate() since all callers called that just prior anyway. ok beck@, ariane@. prompted by deraadt@.
2009-06-15Back out all the buffer cache changes I committed during c2k9. This reverts ↵Bob Beck
three commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
2009-06-14Make sure the pglist is TAILQ_INIT()'ed before invoking uvm_pglistalloc().Miod Vallat
ok deraadt@ kettenis@
2009-06-14backout:Theo de Raadt
> extend uvm_page_physload to have the ability to add "device" pages to the > system. since it was overlayed over a system that we warned would go "in to be tested, but may be pulled out". oga, you just made me spend 20 minutes of time I should not have had to spend doing this.
2009-06-14Disable inteldrm by default since it once again breaks x40 suspend.Theo de Raadt
oga was warned; it is a minimum requirement for inteldrm to be on.
2009-06-14Don't mess with the bounds in the lp if *partoffp is non-NULL, since thisTheo de Raadt
indicates that writedisklabel is trying to find the location for writing the label. If the lp is messed with, an invalid checksum is written. done with miod and kettenis, lots of moaning and gnashing of teeth, etc
2009-06-13Enumerate all available nodes for hardware on IP27/IP35 systems; works to someMiod Vallat
extent, but isp(4) on other nodes do not work correctly yet.
2009-06-13Needs <sys/malloc.h> nowMiod Vallat
2009-06-13Figure out which nodes are connected, and use all of their memory for now;Miod Vallat
other hardware resources will follow shortly. Tested on a dual-Origin 200 setup.
2009-06-13The bounds was not always being properly updatedTheo de Raadt
ok miod
2009-06-13Shuffle and rename HUB defines for consistency, no functional change yet.Miod Vallat
2009-06-12Make sure splsoftnet() masks softclock; fallout form switch to genericMiod Vallat
soft interrupts.
2009-06-11Correctly flush direct mappings (cache/tlb). Uncovered by ariane's newMark Kettenis
allocator.
2009-06-11sync disklabel changes from hppaTheo de Raadt
2009-06-11The MAC multicast filter is set in mec_iff() hence there is need to do thisJoel Sing
when resetting the chip. From Brad.
2009-06-10Switch sgi to per-process AST, and move ast() from interrupt.c to trap.cMiod Vallat
where it can use userret() instead of duplicating it.
2009-06-10In the NMI handler, always print EPC even if we're going to drop into ddb.Miod Vallat
2009-06-10Add udl and url, verified to work on Fuel (url to the RAMDISK too)Miod Vallat
2009-06-10Allow /dev/kmem reads in the direct mapping region where there isMiod Vallat
corresponding physical memory; makes procmap(8) happy on hp300.
2009-06-09revert guenther@'s un-revert of art's curpmap.Kenneth R Westerback
My bios0: ASUSTeK Computer INC. P5K-E cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.74 MHz cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz can't boot with this in. It always hangs somewhere in fsck'ing if any, or between netstart and local daemons if no fsck'ing. Also fubars theo's real amd machine. Much more testing needed for this.
2009-06-09Disable xlights for now, since the rapid periodic interrupts it generatesTheo de Raadt
help worsen the interrupt race that dale is trying to fix. He'll get that fixed, but for now, we can try to run macppc in the most reliable fashion.
2009-06-09backout interrupt diff until it the next round of fixesTheo de Raadt
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