summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-05-21Small code clean up. Removing noisy printfs.Brandon Mercer
2013-05-21Check for NULL ptr before dereferencing, not after; found the hard way byMiod Vallat
dcoppa@
2013-05-21Remove some unused defines and make the number of interrupt lines variable.rapha
ok bmercer@
2013-05-21Ensure that sc_lock is held when calling sr_meta_native_bootprobe() - theJoel Sing
softraid status functions will complain otherwise. Found the hard way by ajacoutot@
2013-05-21sr_raid_startwu() is no longer called from interrupt context, hence doesJoel Sing
not need to invoke a workq-based callback.
2013-05-21Provide a function that handles the scheduling of work units. ThisJoel Sing
simplifies the discipline code, avoids code duplication and moves the scheduling logic into a single location. ok krw@
2013-05-21Add a driver for the am335x timers, to be used by the beaglebone.rapha
Derived from the existing omap3 gptimer. ok patrick@
2013-05-21Make the sr_raid_startwu() function handle deferred work units, instead ofJoel Sing
the caller having to handle the state changes.
2013-05-21Fix missing work unit state initialisations.Joel Sing
2013-05-21Use a state to indicate that a work unit should only be constructed and notJoel Sing
scheduled, rather than trying to imply this from the rebuild flag.
2013-05-20de-static-ize, such that people don't get confused by aesni failures onMark Kettenis
AMD hardware the next time somebody tries to run on a broken KVM hypervisor.
2013-05-20Remove `abort_task' from usb task queue before recycling a `structYASUOKA Masahiko
usbd_xfer object' which includes the `abort_task'. Otherwise usb_abort_task_thread() may try to dequeue the recycled task then it causes panic with page fault. reported by Edd Barrett and Wade, Daniel. ok mpi
2013-05-19Switch mvme68k to MI wdsc(4) driver. Tested on MVME147.Miod Vallat
2013-05-19select(-1, ...) should fail with EINVAL.Philip Guenther
ok matthew@
2013-05-18fix cut'n'paste abuse in "can't happen" error messageMiod Vallat
2013-05-18Add parameters describing the usable part of the GTT and enable the checksMark Kettenis
that use them.
2013-05-18Get rid of the pmap7 header now that we merged it into the pmap one.Patrick Wildt
2013-05-18Bring beagle back to the other pmap header now that it's merged.Patrick Wildt
2013-05-18Modify pmap to work with the pmap header used on armv7. Merge bothPatrick Wildt
headers so that we only need one of them. "Go for it." miod@
2013-05-18Mask out the TEX remap and the Access Flag bits when setting thePatrick Wildt
system control register. Also actually use the mask. ok miod@
2013-05-18Make sure we executed the instruction before continuing. AlsoPatrick Wildt
replace calls to drain the write buffer with the correct ones for armv7. ok miod@
2013-05-18Use the actual armv7 dcache_inv_range function instead of the wbinv one.Patrick Wildt
ok miod@
2013-05-18Sync with Linux. Mostly comment and whitespace changes, but adds some missingMark Kettenis
locking, and enables some #ifdef'ed out code.
2013-05-18Missing bits intended to go with the previous commit but lost in diff splitting:Miod Vallat
Split inittodr/resettodr code from actual tod routines, to allow for multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-18enw->new in comment;Jason McIntyre
spotted by krw, missed by jsg, and forwarded From: Alexey Suslikov
2013-05-17Fix 'the right-of-cursor background color is inverted when we doKenji Aoyama
delete-after-cursor' bug on luna88k wscons console, by adding the same operation in om_putchar() to om_erasecols() and om_eraserows(). ok miod@
2013-05-17Preliminary support for MVME180 and MVME181 boards. On-board serial portsMiod Vallat
and VME controller are supported; tod chip isn't supported yet (coming soon). MVME236 memory boards are not supported and won't likely be (unless I get my hands on one). MVME181-1 boots multiuser (slowly) with MVME328 SCSI and MVME376 Ethernet despite only having 8MB of memory onboard. MVME180 untested; might need tweaking to get MVME SCSI and Ethernet boards supported. Many thanks to Matti Nummi for lending me an MVME181 board.
2013-05-17Replace the bunch of md_* function pointers with a `struct board' containingMiod Vallat
function pointers for all the board-specific code. Add a bunch of `struct board' methods to cover most, if not all, of the `per-board' logic. This allows most of the md drivers to be cleaned up and no longer need to embed board-specific knowledge.
2013-05-17Move interrupt-related defines from <machine/cpu.h> to <machine/intr.h>.Miod Vallat
No functional change.
2013-05-17Split inittodr/resettodr code from actual tod routines, to allow forMiod Vallat
multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-17Unnecessary includeMiod Vallat
2013-05-17Extend cmmu routines to return the caching mode to use for page tables.Miod Vallat
Alter the 88200-specific code to enforce cache-inhibited page tables for extremely old 88200 versions, and to disable write-back caching on systems where xmem instructions do not behave correctly when applied to write-back cached addresses. No change introduced on 88110 systems, as well as most 88100 systems; the affected systems are 88100 systems with 88100 revision < 10 and/or 88200 revision < 7; that is, only early MVME181 and MVME188 (not 188A) systems.
2013-05-17Fix comments telling that the `serial mode' bit in PSR only applies to 88110,Miod Vallat
it also exists on 88100. While there, do not allow userland to set it.
2013-05-17Add a dummy IPL_MPSAFE definition.Mark Kettenis
ok miod@, mikeb@
2013-05-17Implement IPL_MPSAFE for pci bus interrupt handlers.Mark Kettenis
2013-05-17wsmoused supportMark Kettenis
2013-05-17Implement wsmoused support based on the new multiple screen support. OnlyMark Kettenis
works if the RI_VCONS flag is specified when initializing a rasops_info descriptor.
2013-05-17Do not attempt to delete the undeletable RNF_ROOT route.Kenneth R Westerback
Discovered & fix tested by Peter J Philip. ok claudio@ blambert@
2013-05-17Make it clear that the code related to a transfer submission doesn'tMartin Pieuchot
leak anything to userland because it doesn't set the USBD_SHORT_XFER_OK flag. Also prevent a bad copy/paste from introducing a similar issue by using the actual transferred length instead of the requested one in uiomove(). ok miod@
2013-05-17Don't leak information to userland in case the actual transfer length isMartin Pieuchot
smaller than the requested one. From ws@NetBSD via miod@. This problem can only occur when the USBD_SHORT_XFER_OK flag is set, otherwise completed transfers with a length smaller than the one submitted are treated as errors. ok miod@
2013-05-17Move an extern declaration into its corresponding header file.Martin Pieuchot
2013-05-16burner supportMark Kettenis
2013-05-16Implement a mechanism to establish interrupt handlers that don't grab theMark Kettenis
kernel lock upon entry through a new IPL_MPSAFE flag/level.
2013-05-16Implement a mechanism to establish interrupt handlers that don't grab theMark Kettenis
kernel lock upon entry through a new IPL_MPSAFE flag/level. ok mikeb@, mpi@
2013-05-16Ignore colormap operations at 1bpp, to work with Xorg wsfb driver.Kenji Aoyama
Still need more work in Xorg... ok miod@
2013-05-16attach to new RTL8188RU id, from Sigi RudzioStuart Henderson
2013-05-16syncStuart Henderson
2013-05-16add another RTL8188 id, from Sigi RudzioStuart Henderson
2013-05-16Add missing IPL_AUDIO macro, needed by dev/audio.cAlexandre Ratchov
ok miod and kettenis
2013-05-16Run audio interrupts without grabbing the kernel lock. While IPL_SERIAL isMark Kettenis
higher than IPL_AUDIO on sparc64, and interrupt handlers running at IPL_SERIAL still grab the kernel lock, this isn't a problem as machines with audioce(4) are guaranteed not to have zs(4) (the only driver that uses IPL_SERIAL).