summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2009-05-13Set D_VENDOR when spoofing a label on archs that use D_VENDOR whenKenneth R Westerback
reading the native disklabel. This ensures cylinder alignment. Fix disklabel to do cylinder alignment arithmetic correctly in -A mode. Worked by accident before, since the code was protected by D_VENDOR, which wasn't being set. ok deraadt@
2009-05-12Add missing semicolon.Mark Kettenis
2009-05-12Unbreak build.Mark Kettenis
2009-05-12Don't throw away ldc packets if the ldc link went just up, otherwise we mayMark Kettenis
miss the initial handshake from OBP.
2009-05-12Actually ACK a handshake initiated by the other end.Mark Kettenis
2009-05-12Add padding to ATTR_INFO message structure; OBP seems to insist on itMark Kettenis
being there.
2009-05-12Add some code for doing handshakes the other way around.Mark Kettenis
2009-05-12Make reserved member of protocol struct start with underscore.Mark Kettenis
2009-05-10Enable vcc(4) and vcctty(4).Mark Kettenis
2009-05-10Remove a dead variable and some unneeded returns.Mark Kettenis
2009-05-10Handle devices with multiple ports.Mark Kettenis
2009-05-10Rename mdesc_get_prop_string into mdesc_get_prop_str.Mark Kettenis
2009-05-10Add vcctty(4).Mark Kettenis
2009-05-10Add vcc(4) and vcctty(4). The vcc(4) driver is a driver for the "VirtualMark Kettenis
Console Concentrator" found on the control domain of sun4v systems. It manages the connections to the consoles of guest domains which are exposed as terminal-like devices through vcctty(4).
2009-05-10Add defines for magic character constants used by hypervisor consoleMark Kettenis
interfaces.
2009-05-04type pedantry.Owain Ainsworth
the type we bind to an iommu or a GART is paddr_t, by definition, on the other hand, the type we get out of it is not a vaddr_t, it's bus_addr_t. fix up sparc64 iommu, amd64 iommu and the sg_dma backedn that uses it to realise this. ok kettenis@
2009-05-03On the UltraBook the PROM privides two interrupts for its ccb(4)'s. HandleMark Kettenis
this case by choosing the interrupt that corresponds to the PCI function. Makes the second PCMCIA slot work.
2009-05-03Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@. While there, also unwrap a line that isn't long enough to need wrapping.
2009-05-02Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@.
2009-04-30Work around UltraSPARC T1 "feature" that may cause random integer registerMark Kettenis
file register corruption as found out the hard way by art@.
2009-04-28put vlan support onto these mediaTheo de Raadt
2009-04-27Revert mtx_enter_try. It didn't compile on hppa, it doesn't compile onMark Kettenis
landisk, and the sparc implementation is obviously wrong. That's where I stopped looking, so who knows what else was broken. A simple comparison of the existing mtx_enter with the new mtx_enter_try would have told anybody.
2009-04-25Enter mtx_enter_try. In part for completeness, things may startTobias Weingartner
using this soon(ish). Ok oga@, sorta yes kettenis@.
2009-04-20Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.Owain Ainsworth
Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-17Catch up with uvm_pglistalloc() interface change.Mark Kettenis
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-13Explicitly test whether the SUNW,start-cpu-by-cpuid interface is availableMark Kettenis
instead of assuming it is. Makes sure we actually spin up the secondary CPUs on Serengeti machines with certain firmware revisions. Tested by Christophe Latt.
2009-04-12Implement /dev/mdesc, a device to read the machine description on sun4vMark Kettenis
(virtual) machines.
2009-04-12Move code handling Machine Descriptions out of the cbus(4) driver.Mark Kettenis
2009-04-07Eliminate useless loop over partitions and ignore zero lengthKenneth R Westerback
partitions in bsd_to_sun(), even if their offsets are nonsense. Theo says if sparc64 compiles so will sparc. Fixes some useless disklabel warning messages. ok miod@ deraadt@
2009-04-05In the rare case where after we've loaded the iomap into the hardware,Owain Ainsworth
if we fail while assembling the dmamap due to the memory not fitting into our constraints we'll return from the function with the iomap still loaded, and more importantly with memory still allocated from the extent(9). So in such a case, make sure we clean up after outselves. In order to make this cleaner, remove an impossible condition check (kettenis and myself are satisfied that it will never happen), and make iomap_load_map void (it can't fail), so that we can only fail after both the extent is allocated and the iomap is loaded, and not inbetween the two. I tested iommu, kettenis tested viommu. ok kettenis@.
2009-04-04Bump the size of the array that we use to store bootpath components. Makes theMark Kettenis
t5120 and similar systems boot from our install CD-ROM.
2009-04-04Cleanup debug printfs.Mark Kettenis
2009-04-04Cleanup debug printf.Mark Kettenis
2009-03-29bzero pci attach argsMark Kettenis
ok deraadt@, miod@
2009-03-29Enable ahc(4).Mark Kettenis
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-26Remove cpu_wait(). It's original use was to be called from the reaper soOwain Ainsworth
MD code would free resources that couldn't be freed until we were no longer running in that processor. However, it's is unused on all architectures since mikeb@'s tss changes on x86 earlier in the year. ok miod@
2009-03-21Make nvram writable (if necessary) before calling OF_setprop(). PreventsMark Kettenis
faults on machines where we map nvram write-only (through the clock chip).
2009-03-16Trivial malloc + memset -> malloc(,,M_ZERO) conversion.Owain Ainsworth
As a small bonus this now actually zeroes the whole struct, not just the non-varying sized part.
2009-03-16pmap = (conditional ? user_way : pmap = pmap_kernel());Owain Ainsworth
doesn't need the second pmap =. "ok if you tested it" kettenis@
2009-03-15Introduce splsoftassert(), similar to splassert() but for soft interruptMiod Vallat
levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
2009-03-12Define a proper wsdisplay type for raptor(4).Mark Kettenis
ok miod@
2009-03-09Initial stab at a driver for FFB3/XVR-1000. It seems to work fine, but withoutMark Kettenis
acceleration it is a tad bit slow, so leave this disabled for now.
2009-03-07When allocating memory in bus_dmamem_alloc() with uvm_pglistalloc(), do notMiod Vallat
try to be smart for the address range, uvm_pglistalloc() is smart enough nowadays.
2009-03-05Make ELF platforms generate ELF core dumps. Somewhat based on code fromMark Kettenis
NetBSD. ok kurt@, drahn@, miod@
2009-03-01Replace a few magic constants with proper #defines as pointed out by miod@.Mark Kettenis
2009-03-01Enable raptor(4) here too. Pointed out by deraadt@ and miod@.Mark Kettenis
2009-03-01Enable raptor(4).Mark Kettenis