summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
AgeCommit message (Collapse)Author
2014-08-27Remove redundant setting of if_mtu which ether_ifattach() alreadyBrad Smith
takes care of. ok dlg@
2014-08-22pseudo-device crypto was accidentally left for some architectures.Theo de Raadt
2014-08-20unlink crypto(4) pseudo device from the architecture dependant characterMike Belopuhov
device tables and kernel config files. ok deraadt
2014-08-19More PIC programming magic, as well as a specific workaround for lostMiod Vallat
interrupts in PIC rev 1; from IRIX via Linux 2.5.69. This doesn't fix the lost SCSI interrupts jasper@ eventually experiences on Origin 350 systems, but this can't hurt anyway.
2014-08-19Set Eng. GFE has a 32-bit ID register, so put it in the 32-bit section.Miod Vallat
No change but ordering in the generated files, so I won't even bother to regen them - this is only a `documentation' change.
2014-08-15lofn(4) and nofn(4) are going awayMike Belopuhov
2014-07-22<netinet/in_systm.h> is no longer needed.Martin Pieuchot
2014-07-21boot(9): Reduce annoying style diffsMasao Uebayashi
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.
2014-07-17Rework management of the external L2 cache on the few Indy/Indigo2 systemsMiod Vallat
which have it. Instead of implementing external L2 maintainance at the cache routine level, let bus_dmamap_sync(9) know about the possible existence of an external L2, and invoke a dedicated routine to perform the necessary cache operations. This way, the external L2 dmamap_sync function pointer can get invoked with the physical address to operate on; this saves the pmap_extract() calls the previous cache routine had to do.
2014-07-13boot(9): Cosmetic changes to improve diff'ability.Masao Uebayashi
2014-07-13Cosmetic changes to reduce diffs.Masao Uebayashi
2014-07-13Still needs <sys/reboot.h>Miod Vallat
2014-07-13Remove stale comment which used to explain why we had a special 31-bit freelistMiod Vallat
for DMA, back when this was applicable.
2014-07-12reboot(9), panic(9): Call panic(9) for unrecoverable MD H/W errors (NMIs)Masao Uebayashi
Some architectures have ability to detect hardware sanity and notify system (NMI, firmware callback, etc.). Handle these hardware severe errors, same as software errors, with panic(9). According to miod@, SGI IP27 NMI is triggered by pushing some "hidden" button, which "usual" users/admins don't know. Pushing such a button is "RB_USERREQ" (human-triggered) in that the button is pushed by a human, but not "RB_USERREQ" in that no user intervention in system (== no command input) is done. miod@ agreed that changing these from RB_USERREQ to !RB_USERREQ (== panic(9)) is not a big problem. OK miod@ kettenis@
2014-07-12revert a few stragglers hiding outTed Unangst
2014-07-12revert bogus free changes in not kernel files. got a little trigger happy.Ted Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-12boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)Masao Uebayashi
I have found that some ports call boot(9) from machine-dependent code to reboot system. These should be changed to either: - Sending signal to init(8) to trigger it to shutdown system cleanly, like acpi(4) does, in cases where found problems don't prevent system from working immediately, or - Just doing panic(9) if the situation is severely broken. For now, just rewrite boot() to reboot(). Actual fixes follow. Discussed with & OK from kettenis@
2014-07-11boot(9): Undo curproc-overriding hacksMasao Uebayashi
Some (not all) boot(9) implementations have ancient hacks which overrides if (curproc == NULL). This was probably made in a hope to forcibly proceed various clean-shutdown related code, including VFS shutdown. Let's clarify that clean-shutdown needs process context; it is impossible to cleanly shutdown VFS from within e.g. a panic in SPL_HIGH. OK kettenis@
2014-07-11Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail andMartin Pieuchot
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is specified. idea and inputs from kettenis@, ok miod@
2014-07-11It's init as a process that's special, not init's original thread.Philip Guenther
Remember initprocess instead of initproc. ok matthew@ blambert@
2014-07-10Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-07-10boot(9): Remove comments about RB_*, "cold", and savectx()Masao Uebayashi
Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
2014-07-10boot(): Remove comments about RB_TIMEBAD to reduce diffsMasao Uebayashi
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
2014-07-10boot(): Unify declarationsMasao Uebayashi
OK deraadt@
2014-07-08Typo in previous assym.h dependency changesMiod Vallat
2014-07-02On IP28, ignore (as in, do not report) GIO bus errors where the address isn'tMiod Vallat
actually part of the GIO address range; these obviously come from speculative R10000 execution and are completely harmless (except for the need to acknowledge them, which we have to do anyway).
2014-06-27Standardize xfer byte counts to ssize_t rather than a mix of size_t and intMiod Vallat
(we need to make them signed to spot controller overruns), and fix format strings accordingly. While there, make sure every runtime printf is prefixed by either the complete target information, if available, or at least the driver name with the proper instance number - supported systems with > 1 wdsc are quite common.
2014-06-27Update list of .S depencies over assym.h.Miod Vallat
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-30Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-05-22RegenMiod Vallat
2014-05-22Yet another evil awk script (not perl, I'm not in LibreSSL mode at the moment)Miod Vallat
to convert the PS/2 keyboard layouts to SGI serial keyboard layouts. Only the subset of layouts known to have existed (as listed in IRIX's <sys/kbd.h> header) get converted, and specific flavours (iopener, dec LK) are ignored as well. `nodead' flavours, when existing, are preserved.
2014-05-22Extend the keyboard communication routines to be able to work in polling mode;Miod Vallat
use this to read the DIP switches from the keyboard at attach time. Change the state machine to allow for a `DIP switch prefix' scan code to be received while we are not attempting to read the DIP switches, for the `international' key (not found in regular us layouts, documented is the `GERlessthan' key in sgi's keyboard(7) manual page) will return the aforementioned scancode, instead of the one documented in the manual. Thanks to sebastia@ for lending me his german layout keyboard.
2014-05-19Format string fixes and removal of -Wno-format for sgi. Based upon anMiod Vallat
initial diff from jasper@
2014-04-18rename wd33c93 to wd33c93ctrl (but keep the filenames as is) so we canJasper Lievisse Adriaanse
add attributes to it later; as wd33c93 is not a valid device name. ok miod@
2014-04-07Add axen(4) wherever axe(4) is.Brad Smith
ok mpi@ yuo@
2014-04-03Moar <uvm/uvm.h> -> <uvm/uvm_extern.h> love.Martin Pieuchot
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-29Do not play with the xmapmode register, for its layout seems to differ betweenMiod Vallat
board revisions < 4 (found on Indigo) and >= 4 (found on Indy and Indigo2). Paint the cursor as an inverted glyph, instead of exchanging bg and fg colours (matching the current practice on other frame buffers). Speed-up overlapping copy operations by attempting to perform them in larger chunks whenever possible; this speeds up console jump scrolling.
2014-03-27{fix,add} comments.Miod Vallat
2014-03-27Program the colormap correctly; gives us proper shade of blue and highlighting.Miod Vallat
Add a simple screen burner accessop.
2014-03-23Repair R5000SC and R4600SC external L2 cache setup, broken in previousMiod Vallat
revision.
2014-03-22Second draft of my attempt to workaround the infamous R4000 end-of-page errata,Miod Vallat
affecting R4000 processors revision 2.x and below (found on most R4000 Indigo and a few R4000 Indy). Since this errata gets triggered by TLB misses when the code flow crosses a page boundary, this code attempts to identify code pages prone to trigger the errata, and force the next page to be mapped for at least as long as the current pc lies in the troublesome page, by creating wiring extra TLB entries. These entries get recycled in a lazy-but-aggressive-enough way, either because of context switches, or because of further tlb exceptions reaching trap(). The errata workaround code is only compiled on R4000-capable kernels (i.e. sgi GENERIC-IP22 and nothing else), and only enabled on affected processors (i.e. not on R4000 revision 3, or on R4400). There is still room for improvemnt in unlucky cases, but in this simple enough incarnation, this allows my R4000 2.2 Indigo to finally reliably boot multiuser, even though both /sbin/init and /bin/sh contain code pages which can trigger the errata.
2014-03-21Keep the `clamp memory to what pmap can address' logic unconditional, andMiod Vallat
use a <machine/pte.h> define to figure out what the pmap limit is.
2014-03-21Rename the symbolic constants for the pmap-specific vm_pag pg_flags fromMiod Vallat
PV_xxx to PGF_xxx for consistency (these are not stored in pvlist entries anymore since years). The PG_ prefix can't be used here because of name conflicts with <machine/pte.h> names, and I'd rather not rename the pte constants. No functional change. But it makes my life easier.
2014-03-18- Fix clipping bounds in fill and blt operations; the lower-right corner isMiod Vallat
supposed to be outside the clipping region, not inside (i.e. there was an off-by-one everywhere). - Add colormap support, by programming the RAMDAC palette registers at init time, and also implement the colormap ioctls.
2014-03-15Enable qla(4) and qle(4) to match the corresponding RAMDISKs.Miod Vallat
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-03-12enable qla(4) and qle(4) in GENERIC configs where isp(4) is alreadyJonathan Matthew