summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2015-02-10increase min address to page size for all remaining min == 0 systems.Ted Unangst
not necessary, but consistent with other platforms. ok deraadt
2015-02-10Cleanup debug crap that hasn't been used in the last decade. Sprinkle someMark Kettenis
KNF while I'm there. Also remove some #if 0'ed code that I'm not planning to use in the near future. Apologies to deraadt@ for ignoring his diff and doing it my own way.
2015-02-09Do not use USRSTACK when VM_MIN_KERNEL_ADDRESS is what you really mean.Miod Vallat
2015-02-08Hilarious! We are not ready yet for large stack random biases, due toTheo de Raadt
the stack region handling in uvm.
2015-02-07Oh well, APM_USER_HIBERNATE_REQ being used in MI code, needs to be definedMiod Vallat
in all MD apmvar.h.
2015-02-05Expand STACKGAP_RANDOM to 2MB on machines with large user VATheo de Raadt
ok kettenis
2015-02-05Do what the comments suggest and check for port-[ab]-ignore-cd properties,Miod Vallat
and if so, force soft carrier mode.
2015-01-27remove the second void * argument on tasks.David Gwynne
when workqs were introduced, we provided a second argument so you could pass a thing and some context to work on it in. there were very few things that took advantage of the second argument, so when i introduced pools i suggested removing it. since tasks were meant to replace workqs, it was requested that we keep the second argument to make porting from workqs to tasks easier. now that workqs are gone, i had a look at the use of the second argument again and found only one good use of it (vdsp(4) on sparc64 if you're interested) and a tiny handful of questionable uses. the vast majority of tasks only used a single argument. i have since modified all tasks that used two args to only use one, so now we can remove the second argument. so this is a mechanical change. all tasks only passed NULL as their second argument, so we can just remove it. ok krw@
2015-01-26Print frame buffer resolution at attach time.Miod Vallat
2015-01-25Rework cbus(4) interrupt support a bit. Instead of merging devhandle andMark Kettenis
devino into a pseudo-sysino, directly use the devino as the ihandle. The devhandle is stored in the cbus softc, and accessed through the bus space tag. This allows us to have more than 256 interrupts on a single cbus, and avoids relying on the lower bits of the devhandle being zero.
2015-01-23move from deferring vd requests with a task per message to a ringDavid Gwynne
of pointers to vd requests, and a single task to notify the taskq that there's work on the ring. the ring is modelled on what you usually get with network cards, which is an array with a producer and consumer index. the interrupt handler fills an entry in the ring at the producers index and increments it. the task reads entries at the consumer index and increments it until it reaches the same value as the producer. tested and slightly tweaked by kettenis@ ok kettenis@
2015-01-21Enable ix(4).Mark Kettenis
2015-01-16disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it isMiod Vallat
usually invoked after initdisklabel() which proactively changes a zero disk size to MAXDISKSIZE, causing this test to fail. Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD disks have a proper `c' slice size. luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability, even though luna88k can't - to the best of my knowledge - sport SMD disk controllers. ok deraadt@ krw@
2015-01-13for the install: target, use cmp as a rough attempt for avoiding repeatedTheo de Raadt
make install from Simon Nicolussi ok jsing tedu
2015-01-11switch prototype warnings to implicit-declaration warnings.Ted Unangst
This should catch all the same bad cases, but be a little less aggravating in circumstances where a prototype isn't necessary ok deraadt
2015-01-10Bye, bye simple_lock.Mark Kettenis
2015-01-10Enable nep(4).Mark Kettenis
2015-01-09Fix loading memory allocated with bus_dmamem_alloc(9). The old could wouldMark Kettenis
always load all allocated pages instead of the size specified in the bus_dmamap_load_raw(9) call. Also fixes the corner case where a specified boundary is less than the page size, which would always create multiple segments, even if the specified size was smaller than the boundary. Fixes xhci(4) on sparc64.
2015-01-03add new driver uslhcom(4) USB HID based UART.uaa
2014-12-22unifdef INETTed Unangst
2014-12-17minimal removal of simplelock to eliminate lock.h dependencyTed Unangst
2014-12-17fix/reduce header dependencies. clock.c doesn't need any of this uvm.Ted Unangst
ok deraadt kettenis
2014-12-17Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterPhilip Guenther
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
2014-12-15Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,Philip Guenther
eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
2014-12-11dragonflybsd has added a urio driver. conservation of urios requiresTed Unangst
that we delete ours, which isn't actually useful. ok mpi sthen
2014-12-11Delete #ifdef'd code that hasn't been compiled in years from sparc64 ofwboot.Stefan Sperling
ok miod@
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-12-10Convert watchdog(4) devices to use autoconf(9) framework.Mike Belopuhov
ok deraadt, tests on glxpcib and ok mpi
2014-12-09Check strlcpy(), strlcat(), and snprintf() return values in sparc64 ofwboot.Stefan Sperling
tweak and ok millert@ miod@
2014-12-09Replace some malloc(n*size,...) calls with mallocarray().Doug Hogan
ok tedu@ deraadt@
2014-12-05Enable xhci(4).Mark Kettenis
2014-12-04The sparc64 Open Firmware package-to-path call (used since softraid bootStefan Sperling
support was introduced) may return a device path without a unit number?!? Open Firmware's open-dev routine will crash if given such a path, rendering the system unbootable. Repair such paths by adding unit number "0". Breakage found by sebiasta@ on a Sun Enterprise E450, fix tested by him. helpful hints from deraadt@
2014-11-30SPARC T4 and later have a pause instruction to voluntarily pause a virtualMark Kettenis
processor in order to give other strands a chance to run. Use it in __mp_lock_spin_hook() to avoid wasting CPU cycles if we're waiting for the kernel or scheduler locks. This is instruction is patched in, just like we already do for the sleep instruction on SPARC64 VI processors. We look at the hwcap-list property of the cpu nodes in the machine description to decide whether the pause instruction is available.
2014-11-26Introduce softraid boot support to sparc64 ofwboot.Stefan Sperling
sparc64 machines should now be able to boot from softraid raid1 and crypto. Tested on sun blade100, sunfire v240, and sun t1000 ldom guests. Lots of encouragement from deraadt@
2014-11-26Add a new ELF segment .openbsd.bootdata to the sparc64 kernel.Stefan Sperling
This can be used to pass boot parameters to the kernel which can't be passed safely via the Open Firmware interface, such as softraid volume IDs and keys. The kernel already reads the arguments if available but ofwboot won't provide them until further changes are committed there. With support from deraadt, kettenis and matthew. ok deraadt@
2014-11-26Add softraid support to sparc64 first-level boot blocks.Stefan Sperling
Written with use of the forth by jedi jsing@ For now this only supports 'a' RAID partitions, no other partition letters.
2014-11-26Add softraid boot support code files ported by me to sparc64 from amd64.Stefan Sperling
Not hooked to the build yet. ok kettenis@
2014-11-26Copy some Open Firmware interface functions from the kernel to ofwboot.Stefan Sperling
Will be needed soon. ok kettenis@
2014-11-26Hook ofwbootfd to the build.Stefan Sperling
2014-11-26Add a separate ofwboot build for the sparc64 floppies.Stefan Sperling
2014-11-24Actually, the previous change didn't quite work on the SPARC T5-2. But ifMark Kettenis
we change the order of the xxx_setvalidand xxx_setstate hypervisor calls things actually work.
2014-11-24Add missing pci_msiq_setstate and pci_msi_setstate calls. Makes MSI workMark Kettenis
on the SPARC T5-2. Make error messages a bit more consistent while there.
2014-11-24The hypervisor on a SPARC T5-2 needs stricter alignment of the MSI messageMark Kettenis
queue.
2014-11-24If we use the vintr cookie to point at the interrupt handler struct, weMark Kettenis
shouldn't link it into the table.
2014-11-24Use the pointer to "struct intrhand" as the vintr cookie.Mark Kettenis
2014-11-24On sun4v, interpret the first data word of a device interrupt message as aMark Kettenis
pointer to "struct intrhand" if it is larger than MAXINTNUM. To be used with the cookie based "vintr" scheme.
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-11-22Switch to using MI installboot, after a conversation with stsp. He willTheo de Raadt
need this soon. install tested by jsg
2014-11-20Don't attempt to clear/disable %tick_cmpr. This register is no longer presentMark Kettenis
on newer sun4v implementations (possibly SPARC T3 and later, definitely not there on SPARC T5) and it should not be necessary on older systems. Tested by dlg@
2014-11-20Disentagle bcopy/memcpy/memmove.Theo de Raadt
The situation was: memcpy swaps registers and drops into bcopy, which does the overlap check, before getting around to business. But memcpy is not supposed to handle overlapped arguments special, so we don't need all this complex register swapping and tests up front -- when memcpy is the most common operation. Refactor all these upside downupside down. Survived multiple make builds, so probably good, and faster. ok dlg