summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-09-06Instead of printing on spurious interrupts, use an event counter to showPatrick Wildt
how many of those there have been.
2013-09-06Support for FreeScale's i.MX6 SoC.Patrick Wildt
2013-09-06need sys/device.hTheo de Raadt
2013-09-06In one core dump the pointers to socket, inpcb, tcpcb on the stackAlexander Bluhm
of tcp_input() and tcp_output() were very inconsistent. Especially the so->so_pcb is NULL which can only happen after the inp has been detached. The whole issue looks similar to the old panic: pool_do_get(inpcbpl): free list modified. http://marc.info/?l=openbsd-bugs&m=132630237316970&w=2 To get more information, add some asserts that guarantee the consistency of the socket, inpcb, tcpcb linking. They should trigger when an inp is taken from the pcb hashes after it has been freed. OK henning@
2013-09-06Make use of IFP_TO_IA() instead of rolling our own copy.Martin Pieuchot
ok bluhm@, henning@
2013-09-06Fix build with USB_DEBUG defined, pipes don't have refcounters anymore.Martin Pieuchot
From Nils Frohberg.
2013-09-06Missing semicolons.Martin Pieuchot
ok jsg@
2013-09-05Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Remove these include lines from mvme68k, mvme88k, sparc drivers. test and OK miod@
2013-09-05Service the 88100 floating-point exceptions through trap(), keeping theMiod Vallat
existing assembly code for now. Make sure the trapframe images of %fpsr and %fpcr are updated by the assembly handlers (in addition to the real registers which were already updated). When returning into trap(), check these updated value to decide whether a signal ought to be sent to the userland process. With these changes, computations which ought to cause a signal to be delivered will indeed trigger the signal, even when they are handled by the completion code in the floating point exception handlers. This fixes the libc/ieeefp/except and lib/fenv regress tests on 88100 systems, finally!
2013-09-05ugold(4) is a driver for PCsensor's USB gold TEMPer temperaturesasano
measurement device (idVendor:idProduct=0x0c45:0x7401). newly added. ok by mpi@ and sthen@
2013-09-05Split the files file into a generic one for armv7, and soc-specific ones.Patrick Wildt
Also, rename the bus omap devices attach to to a soc-specific one, so that we can have more than one soc. In the future there should be only one generic bus where soc drivers attach.
2013-09-04Beagle has been replaced by armv7.Patrick Wildt
2013-09-04Convert vgafb to use a proper softc.Martin Pieuchot
2013-09-04Ignore OMAP's kernel directories. Found by maja@.Patrick Wildt
2013-09-04Beagle has been replaced by armv7.Patrick Wildt
2013-09-04In the future, we shouldn't have one port port ARM SoC, that's justPatrick Wildt
ridiculous. This is the first step for a common and generic ARM port for ARMv7 SoCs.
2013-09-03When a partition is changing to UNUSED, we try to save kernel-setKenneth R Westerback
values for the p_fragblock and p_cpg fields. But we were saving the info for open partitions only. Instead, look at all partitions. And stop discarding the new partition type. In addition to general betterness, this lets you change the RAW_PART partition (a.k.a. 'c') to UNUSED. This problem was pointed out by Federico Giannici via misc@. ok otto@
2013-09-03Rewrite the ARMv7 cache discovery, as some assumptions in the previous onePatrick Wildt
were utterly wrong. Fix Log2(), correct one taken from the scheduler code. Tested by rapha@ and Artturi Alm.
2013-09-03Use satosin() rather than the local SIN macro, no functional change.Martin Pieuchot
ok mikeb@
2013-09-03When /dev/wsmouse is opened right after resume, some synaptics touchpadsStefan Sperling
are still taking time to wake up. So make the pms(4) driver wait a little longer before giving up on them. Fixes mouse after resume on my x130e TP. ok mpi, earlier versions tested by weerd with no regressions seen
2013-09-03Only free the per-protocol descriptor if a touchpad cannot be correctlyMartin Pieuchot
identified during attach. This prevents the driver to downgrade itself to use the standard mouse protocol and reattach a new wsmouse child if something bad happens when we re-query the hardware (during resume for example). Discussed with and ok stsp@
2013-09-03DELL MD3060e worksDavid Gwynne
2013-09-02fb refcount must be initialised to 1 not 0 to match the behaviourJonathan Gray
of the linux kref functions. Switch to using the FreeBSD refcount api for the fb refcount while here.
2013-09-02use DRM_MEMORYBARRIER() for smp_mb__*Jonathan Gray
2013-09-02add static back to functions that originally had itJonathan Gray
reduces the diff to linux
2013-09-01Update to match VOP_READDIR() changes: no more cookies, but d_off instead.Philip Guenther
Prodding and initial diff from espie@
2013-09-01drm/radeon: update line buffer allocation for dce6Jonathan Gray
We need to allocate line buffer to each display when setting up the watermarks. Failure to do so can lead to a blank screen. This fixes blank screen problems on dce6 asics. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=64850 from a proposed Linux patch by Alex Deucher of AMD. Fixes problems with multiple displays on pitcairn reported by Alexis de BRUYN.
2013-09-01drm/radeon: update line buffer allocation for dce4.1/5Jonathan Gray
We need to allocate line buffer to each display when setting up the watermarks. Failure to do so can lead to a blank screen. This fixes blank screen problems on dce4.1/5 asics. from a proposed Linux patch by Alex Deucher of AMD.
2013-08-30Missing splx on return path.Christiano F. Haesbaert
ok bluhm@
2013-08-30Lock the audio mutex before invoking the audio(4) call-back, fixesAlexandre Ratchov
panics found by David Krause, thanks!
2013-08-30Due to our current version of binutils not knowing newer ARMv7 instructionsPatrick Wildt
we define DSB/ISB (Data/Instruction Synchronization Barrier) manually. There are multiple options for those instructions, i. e. "full system operation", which is the default of those. The defines we used were not the defaults we assumed they were, but some other option which might not actually exist. In the future we could try using DSB/ISB as a Mask and add the correct option value. For now, just fix those values. ok rapha@
2013-08-30Turn on msi for mfii(4).Christiano F. Haesbaert
There is a family of Supermicro boards where the apic pin is incorrectly mapped on acpi, it tells us the pin for "Intel boot interrupts". Since this is a fairly new chip, lets use MSI as no one else is probably using it via apic, this fixes the routing issues. Machines/Motherboards seen so far with incorrect routing: Supermicro X9DR3-F Supermicro X9DRH + Symbios Logic MegaRAID SAS2208 Fujitsu primergy RX300 S7 + Symbios Logic MegaRAID SAS2208 ok dlg@
2013-08-30Fix handling of getdents() against UDF filesystems: d_off must be thePhilip Guenther
position after the entry, and seeking to just after the '.' or '..' entries requires special handling because they're fabricated. ok krw@
2013-08-29Add support for advanced btcoex. This commit is not really neededSylvestre Gallon
but it reduces the diff against the FreeBSD version. Tested on: My Wifi Link 130. jca@ Wifi Link 5300. Jan Stary Wifi Link 4965 (thanks). Adapted from FreeBSD r220894. ok mpi@.
2013-08-29Iterate over the interface's address list instead of the global list.Martin Pieuchot
ok bluhm@, mikeb@
2013-08-29Ditch useless variable during attach.Paul Irofti
Okay miod@
2013-08-29Fix attach messages format for the pcibus.Paul Irofti
Before: pcibus0 at iobus0 irq 0pci0 at pcibus0 bus 0 After: pcibus0 at iobus0 irq 0 pci0 at pcibus0 bus 0 Found on my DSR-500. Okay miod@
2013-08-29rename scsi_sem_{enter,leave} to scsi_pending_{start,finish}. these areDavid Gwynne
the wrappers around handling of pending work, theyre not semaphores. names from tedu@ ok krw@ guenther@
2013-08-28Replace hand-crafted for loop over in_ifaddr with FOREACH macro.Alexander Bluhm
OK mpi@
2013-08-28Move the early framebuffer initialization code outside of vgafb(4)Martin Pieuchot
and introduce a function to get the cursor position an unmap the stolen memory region when switching to the real framebuffer. For the moment we still reuse the original region but this allows me to move forward and it buys us the posibility to have an early framebuffer without vgafb (i.e. radeondrm(4) only).
2013-08-28vmx(4) uses 4 different types of 128bit descriptors in little-endianReyk Floeter
format for Rx and Tx. Replace the bit fields in the descriptor structs with 32bit words to access them with traditional bit operations using shifts and masks. We try to avoid bit fields in OpenBSD. For consistence with other drivers, this change also uses letoh32/htole32 endianess conversions even if it is very unlikely that vmx will ever run on a big-endian VM/host. discussed with uebayasi@ and deraadt@
2013-08-28When we attach an interface, do not try to reuse the last index to limitMartin Pieuchot
the possible races related to unscheduled task relying on an unique index. I say "limit" here because a race can still occurs if you run out of indexes and jump back to 1. ok krw@, mikeb@
2013-08-28If have an interface pointer, look for an address on its list ratherMartin Pieuchot
than iterating on the global list. ok bluhm@
2013-08-28Fix build, reported by jsg@Martin Pieuchot
2013-08-28Remove unused argument from *rtrequest()Martin Pieuchot
ok krw@, mikeb@
2013-08-27Remove definitions of nonexistent consdevs.Martin Pieuchot
2013-08-27Since we are no longer attaching radeondrm(4) to this driver there isMartin Pieuchot
no reason to pretend being compatible with the MI vga layer. So stop using the vga_pci_bar interface and reduce the differences with the sparc64 driver.
2013-08-27Sync comment with reality, the draft is now an RFC and OpenBSD followsMartin Pieuchot
it since bluhm@ implemented it in 2012. From Loganaden Velvindron, ok claudio@
2013-08-27Give RS400/RS480/RS690 another chance. These were previously disabledJonathan Gray
with the old radeondrm code but should work now.
2013-08-27Manipulate timevals seperately, not inside a mbuf. Alignment constraintsTheo de Raadt
miod ran into. ok miod matthew