summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-12-19add another umsm deviceJonathan Gray
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
2012-12-17Add a list of alpha systems and their SRM footprint in the linker scriptMiod Vallat
comments, in the discussion about the kernel load address, for reference purpose. While there, admit the current value will not let the kernel boot on a GS160. If you are the happy owner of a GS160, can afford the electricity bill, and want to run OpenBSD on it, please contact alpha@
2012-12-17Unbreak bootblocks on Alpha by fixing the primary load address. AMartynas Venckus
typo crept in in rev. 1.13. "yeah! the as800 netboots" naddy@
2012-12-17sync up ixgbe_raise_i2c_clk with freebsd which basically allowsMike Belopuhov
for larger timeouts and should be more reliable; tested on 82598, 82599 and x540.
2012-12-17spacing; sync up ixgbe_bus_speed enum with freebsdMike Belopuhov
2012-12-17Sync up advanced transmitter descriptor setup code to the upstream.Mike Belopuhov
There are a number of bugs that this commit fixes. The main issue is that ixgbe_tx_ctx_setup sets up a descriptor for TCP and UDP checksum calculation, but not for IP, therefore it must use TXSM instead of IXSM. Which is what FreeBSD does now. I've tested this on 82599 with TCP, UDP, ICMP, ICMP6, VLANs and OSPF with TCP and UDP checksums turned on against oce(4). ixgbe_tso_setup is updated as well, albeit remains disabled (as well as checksums themselves). Parts of the change were obtained from brad's diff he sent me a while ago.
2012-12-17sync some comments and variable names in rxeof with freebsdMike Belopuhov
2012-12-17Catch up with upstream, where rxbuf->m_pack was renamed to rxbuf->bufMike Belopuhov
and rxbuf->pmap to rxbuf->map. Tested on 82599 and X540.
2012-12-17Don't forget to decrement a number of clusters on the ring in caseMike Belopuhov
of an error. Previous change made the problem evident.
2012-12-17Get rid of the split header code as it was never used inMike Belopuhov
OpenBSD and now is finally removed from the upstream. No real functional change (we've lost some weight though). Tested on 82599.
2012-12-17Implement SFP+ module hot-plug support for 82599 obtainedMike Belopuhov
from FreeBSD. This also adds untested and hence disabled support for multispeed fiber interrupts. With input from and ok jsg.
2012-12-17Fix a link autonegotiation bug on 10GbaseT controllers and improveMike Belopuhov
link information reporting in general. Obtained for the most part from FreeBSD, tested by mxb at alumni ! chalmers ! se on X540 and me on 82598 (XAUI, KR4), 82599 (SFP+) and X540 (baseT); ok jsg
2012-12-16regenJasper Lievisse Adriaanse
2012-12-16- put the Moxa products where they belong alphabeticallyJasper Lievisse Adriaanse
- add the Validity vendor and some products of which one is found on the vostro 3360. ok mikeb@
2012-12-14Support IT8772F; from form@, ok kettenisMike Belopuhov
2012-12-14regenMartin Pieuchot
2012-12-14Add U3 HyperTransport found in PowerMac7,3, name suggested by kettenis@Martin Pieuchot
2012-12-14oops, debug printf sneaked in. i must be out of practice.David Gwynne
spotted by krw@, poked by jmatthew@
2012-12-13iMac G3 grahic cards have a ``misc'' pci subclass that's why they weren'tMartin Pieuchot
attached to vgafb(4) since the use of the generic DEVICE_IS_VGA_PCI macro in r1.26. Correct this and document why we should attach devices with such subclass. Fix a regression introduced in august when adding the glue to attach drm(4) on macppc, reported by brynet@ and nick@ on bugs@, thanks and sorry for the delay!
2012-12-13pipex_init can be called multiple times (by whatever subsystems want to useDavid Gwynne
it), so return early if the work has already been done. ok yasuoka@ jmatthew@
2012-12-12Rearrange the code a bit to prevent splx() from being called with anMike Belopuhov
uninitialized variable. Found by Owain G. Ainsworth, ok guenther
2012-12-11Bring back a small copy optimization in the aes-gcm handling:Mike Belopuhov
with ESN AAD is 12 bytes long so it's faster to zero out 4 bytes than to copy 12. Without ESN it's either copying or zeroing out 8 bytes but we'll rely on the cache locality here.
2012-12-10Fix potential for use-after-free of bufs in softdep.Bob Beck
Softdep uses it's own "getdirtybuf" which has (always) potentially slept - this wasn't noticable when buffers were static and never freed, however now that the bufs it was trying to busy is might have been written out and freed by someone else we can see use-after free if we fast-recycle buffers. We fix this by either re-trying operations or ensuring we don't use the buf pointer after waiting. ok guenther@ (in coimbra)
2012-12-10Always back the buffer cache off on any page daemon wakeup. This avoidsBob Beck
a few problems noticed by phessler@ and beck@ where certain allocations would repeatedly wake the page daemon even though the page daemon's targets were met already so it didn't do any work. We can avoid this problem when the buffer cache has pages to throw away by always doing so any time the page daemon is woken, rather than only when we are under the free page target. ok phessler@ deraadt@
2012-12-10Ensure NFS will only consume up to 1/4 of the available bufferBob Beck
mapping kva when busying up buffers in an nfsiod. (this in addition to the previous check for 1/4 of the total buffer space) This makes sparc installs work over nfsv2. ok deraadt@
2012-12-10does not need cdefs.hTheo de Raadt
(it might come back if guenther and i cleanup the endian.h mess) ok guenther
2012-12-10adjust mbuf chain data pointer so that ip header would appearMike Belopuhov
word aligned; remove pool constraints insanity while here
2012-12-10Correct macobio functions to only read and write one byte of data insteadMartin Pieuchot
of four. This fix a kernel panic on PowerMac G5 present since r1.22 of i2s.c, issue reported by Chris Jackman, thanks!
2012-12-10Implement support for Extended Sequence Numbers for the aesni driverMike Belopuhov
exercising the same approach as in sys/crypto/cryptosoft.c rev1.67.
2012-12-10Under some circumstances (currently only reproducible with IPsec)Mike Belopuhov
bnx can be left w/o clusters on the receive ring and will stall. To prevent that schedule a timeout if refill fails. Bug was reported by jj@, fix tested by me, ok dlg
2012-12-10Add cdce(4).Brad Smith
ok deraadt@
2012-12-09clarify that changes to this module were not done by intelMike Belopuhov
2012-12-09get rid of awkward label names and use simple forward/backwardMike Belopuhov
notation; no binary change
2012-12-09whitespace cleanup that's been due a long timeMike Belopuhov
2012-12-09Recognize 7448 and 970MP processors.Brad Smith
ok mpi@
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-08Fix a comment now that PowerPC 970 are recognized, make it clear thatMartin Pieuchot
changing the frequency to a quarter mode is only supported by 970MP.
2012-12-08Recognize PowerPC 970 CPUs present in early PowerMac G5 from 2003 (7,2 andMartin Pieuchot
7,3) and let OpenBSD boot on these machines, yay! The 970 are similar to the 970FX except that they are manufactured in 130nm. Fix an issue reported by Andrew Fresh and kirby@ on misc@
2012-12-08Descriptor rings can be larger than a single page, so add the offset insteadMark Kettenis
of or-ing it in.
2012-12-08Make bus_dmamem_mmap(9) honor BUS_DMA_NOCACHE.Martin Pieuchot
ok kettenis@
2012-12-07Remove stray semicolon. Fixes mbuf leak with devices sending BPDUs toPaul de Weerd
bridge(4) members that are not configured with stp. Lots of debug help (and actual find) sthen@ OK sthen@, mpf@
2012-12-07Remove support for waiting for an interrupt within hostcmd_send(), since onlyStefan Sperling
one of the two callers of hostcmd_send() needs to wait for an interrupt. Make the single caller which needs it wait instead. No functional change; ok phessler
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-07RFC 4106, Section 5 states that the SPI and a 64-bit SequenceMike Belopuhov
Number are provided to the GCM as an Additional Authenticated Data. Usually an SPI and a lower 32-bit part of the ESN are contained within the same memory buffer whereas an upper part of the ESN comes from an external location. To accommodate that RFC 4303, Section 3.3.2.1 states that upper part of the ESN is hashed in the end. Unfortunately this advice is not applicable for the combined authentication/encryption modes and RFC 4106 decided not to follow that advice, effectively requiring large API changes to accommodate that poor choice. For now implement a kludge that will take an effect in case CRD_F_ESN flag is set in the crypto operation descriptor. Successfully tested against Linux 3.2 with strongSwan 4.6.4.
2012-12-07Fix one of the two issues with ESN support in the GCM case:Mike Belopuhov
supply correct AAD length to the final round of hashing. While here rename swcr_combined to swcr_authenc.
2012-12-07ixgbe_phy_aq is an x540 so kill stale references in the 82598 moduleMike Belopuhov
2012-12-06Rework how AGP memory regions are mapped and add support for AGP bridgesMartin Pieuchot
that do not support remapping for processor accesses. Add new functions to map/unmap/mmap agp memory and let the agp layer decides how these memory regions should be accessed. It's assumed here that the bridge does not support remapping if its aperture address is 0. This is the last diff required for having drm(4) on macppc using agp(4). Joint work with and ok kettenis@
2012-12-06Make sure we try to unbind AGP memory regions if the aperture base addressMartin Pieuchot
is 0, otherwise we never free the memory region bound at offset 0x00 when exiting X on macppc. ok kettenis@ as part of larger diff
2012-12-06Implement bus_space_mmap(9).Martin Pieuchot
ok kettenis@