summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
AgeCommit message (Collapse)Author
2013-08-12make RI_VCONS work together with the sparc64 framebuffer driver helpersMark Kettenis
2013-07-16Enable jfb-style acceleration on XVR-600.Miod Vallat
2013-07-16Add support for BUS_INTR_ESTABLISH_MPSAFE. This makes the previous commitMark Kettenis
to vcons(4) actually have an effect.
2013-07-16The interrupt handler for vcons(4) is defenitely safe to run without holdingMark Kettenis
the kernel lock, so use BUS_INTR_ESTABLISH_MPSAFE.
2013-07-16Add support for BUS_INTR_ESTABLISH_MPSAFE.Mark Kettenis
2013-07-15Use getpropstringA(), not getpropstring(), to get the card's name. This ensuresMiod Vallat
its value has not been clobbered when ifb_accel_identify() is invoked, and restores textmode acceleration on Expert3D{,-Lite} and XVR-1200. Broken since 1.17, sigh
2013-07-12Actually assign return value to the variable that's used to check it.Mark Kettenis
Pointed out by Maxime Villard.
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-17Implement IPL_MPSAFE for pci bus interrupt handlers.Mark 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).
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-05-13Get rid of some silly underscores.Mark Kettenis
2013-05-13Implement support for running interrupt handlers without taking the kernelMark Kettenis
lock, by adding a new BUS_INTR_ESTABLISH_MPSAFE flag for use with the (sparc64-specific) bus_intr_establish(9) interface. Add support for this flag to schizo(4); other bus drivers will ignore it for now. While there, remove the BUS_INTR_ESTABLISH_FASTTRAP flag which serves no purpose.
2013-05-12Handle big (a.k.a. >2TB) disks by adding logic to handle the 12 and 16Kenneth R Westerback
byte scsi read/write commands. Issue pointed out by John Morrissey via bugs@. Problem reproduced and fix tested by sf@ on vioblk. ok sf@ kettenis@
2013-05-10ditch unused zskbd_device_lookup; verified by sebastia@Mike Belopuhov
2013-04-21Unify the zs tty driver.Sebastian Reitenbach
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-01-15Fix segmentation of buffers that straddle a boundary.Mark Kettenis
ok dlg@
2013-01-01Fix gap value when formatting 1.44MB 3"1/2 floppy disks; from NetBSDMiod Vallat
2012-12-08Make ldomd(8) to control the availability of virtual disks to guest domains.Mark Kettenis
This is done by opening the corresponding /dev/vdspN device file. The virtual disk will remain available until that device is closed, which happens automatically when ldomd(8) exits.
2012-12-08Descriptor rings can be larger than a single page, so add the offset insteadMark Kettenis
of or-ing it in.
2012-12-07Use a timeout to do a delayed handshake if the receive queue of the LDCMark Kettenis
channel transitions into the "up" state.
2012-12-03Close disk images if the client disconnects. This makes it possible toMark Kettenis
replace a disk image and have it visible to the guest when it reboots instead of having to reboot the primary domain.
2012-12-02Implement hardware flow control and enable it by default (by setting CRTSCTS).Mark Kettenis
ok miod@, deraadt@
2012-12-02Add "support" for VD_OP_GET_WCE and VD_OP_SET_WCE. These operations don'tMark Kettenis
really make sense for virtual disks backed by disk images, so we return ENOTSUP just like Solaris does. But advertising support for these operations works around a bug in the Linux kernel.
2012-12-01Silently ignore VD_OP_GET_DEVID as Solaris uses it even though we don'tMark Kettenis
advertise it.
2012-11-24Do not assign the "host" MAC address to virtual switch ports. Don't print theMark Kettenis
address for those ports either.
2012-11-23Change the way we encode devhandle and devino in the sysino such that we canMark Kettenis
handle up to 256 different interrupt vectors on cbus(4). This is enough to handle 128 channels.
2012-11-21Atempting to eject a CD-ROM makes the SCSI midlayer generate a READ_TOCMark Kettenis
command. Silently fail that command instead of spamming the console.
2012-11-21Try to negotiate version 1.1 of the vDisk protocol such that we can getMark Kettenis
the vdisk media type and fake a CD-ROM drive.
2012-11-01When possible, send multiple characters per packet. Also, stop sending whenMark Kettenis
the transmit queue is full. If the transmit queue is full, set a timeout to get things going again.
2012-10-29Set the type of a processed MSI data record to 0, and check that the typeMark Kettenis
is non-zero before handling them, like we do in pyro(4). Seems to fix issues with MSIs on sun4v, so enable them again.
2012-10-27Also attach to channels name "ldom-<guestname>" (but not "ldom-primary").Mark Kettenis
2012-10-27Make polling work.Mark Kettenis
2012-10-26Turns out that for devices that attach to cbus(4), it is better to disableMark Kettenis
interrupts up-front and explicitly enabling them later than the other way around.
2012-10-21Fix thinko in previous.Mark Kettenis
2012-10-21Make sure that there is enough room in the transmit queue to send a VIOMark Kettenis
message. Sleep if necessary.
2012-10-21Clear a pending channel reset when a device is opened.Mark Kettenis
2012-10-20off-by-one in device number check; found the hard way and reported by J Sisson.Miod Vallat
2012-10-17Swap arguments to wdog_register() since it is nicer, and prepareTheo de Raadt
wdog_shutdown() for external usage.
2012-10-17Disable debug code.Mark Kettenis
2012-10-17Rename hvctl(4) into vldcp(4) since this driver now handles other servicesMark Kettenis
as well.
2012-10-16Add support for multiple channels.Mark Kettenis
2012-10-14Fix typo in debug print.Mark Kettenis
2012-08-20MISs work on Oberon as well.Mark Kettenis
2012-08-17Properly initialize the IOMMU control and status register for pyro(4).Mark Kettenis
Fixes DMA problems spotted on the v445.
2012-08-17Turns out interrupts for Ebus devices are wired to the *other* PCI Expres leafMark Kettenis
on the v445 (compared to the v215/v245). Generalize the code to allow for arbitrary wirings. Makes the serial console on the v445 work.
2012-07-08Don't need to worry about the ATI driver here anymore.Mark Kettenis
2012-03-26Make writes block if the message queues are full.Mark Kettenis
2012-03-26Increase the size of the message queues such that we can handle the defaultMark Kettenis
"MTU" of 4096 bytes.