summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-10-15Driver for the AIC-6250 SCSI controller found on AViiON models 100, 200, 300,Miod Vallat
400 and 4300. Limited to PIO mode only for now, until the DMA controller is tamed. Heavily based upon the MI aic(4) driver.
2013-10-14Display correct values (i.e. blocks where blocks are meant) inKenneth R Westerback
diskerr() messages by doing DL_SECTOBLK() dance repeatedly.
2013-10-14Use DL_SECTOBLK() instead of handrolling same calculation to getKenneth R Westerback
wdsize() return value.
2013-10-14XXsize() returns daddr_t, so calculate the return value in a daddr_tKenneth R Westerback
variable and not (usually) an int. ok miod@
2013-10-14Fix a couple of style(9) nits.Sylvestre Gallon
ok patrick@
2013-10-14Add some consistency using uint_t everywhere instead of mixing uint_tSylvestre Gallon
and u_int_t. ok patrick@
2013-10-14Tedu some heavy debug code that is not needed anymore.Sylvestre Gallon
No functional changes. ok patrick@
2013-10-14By passing invalid values in the routing message, root could crashAlexander Bluhm
the kernel from user land. Add a null pointer check as quick fix. OK blambert@ claudio@
2013-10-14Remove obsolete ioctl defines and struct (I overloaded the pflowReyk Floeter
ioctls when I started vxlan, but replaced them later with own ifr-based ioctls). Found by mpi@
2013-10-14Make use of satosin() when applicable plus a couple of style nits.Martin Pieuchot
ok reyk@
2013-10-14Add a boot(8) manual, issue reported by landry@Martin Pieuchot
ok jmc@
2013-10-14Change the macros used to iterate over the multicast records of anMartin Pieuchot
interface to not depend on the global list of addresses. For IPv4 the IP_TO_IA() macro still depends on the global list of addresses because we want to be sure to grab the first configured address of an interface, where the records are linked. Tested by sthen@, ok henning@
2013-10-14If a transfer terminates with an I/O error status, do not modify theMartin Pieuchot
pipe to stop enquening the next transfer before the done() function has been called. This should fix the hangs seen when unplugging a USB keyboard attached to uhci(4). Problem reported by dcoppa@ and Peter Kane
2013-10-14set openings to 64 like the linux driver sort of does. if a vendor saysDavid Gwynne
something it isnt as magical as something i made up, right?
2013-10-14defer the first update of the sensor as late in the boot process we canDavid Gwynne
but running it from the mountroot hooks. this means the clock will be attached and therefore better to compare the hypervisors clock against. before we used to get ridiculous timedeltas, which if ntpd used to set the time with on startup (ie, ntpd -s) would make us think we were in 2057 or 2104. ok jmatthew@
2013-10-13Make pci_make_tag() work with ht(4) controllers, fix a regressionMartin Pieuchot
introduced when the macppc pci code started parsing its device tree to enumerate devices. "ht" nodes do not have a "bus-range" property so we need to start iterating on their PCI bridge nodes to find our devices.
2013-10-13whitespaceReyk Floeter
2013-10-13Just use sockaddr_union instead of a handcrafted version and renameReyk Floeter
bridge_tunnelupdate to a more generic name bridge_copyaddr. No functional change.
2013-10-13Set the default MTU to full 1500 bytes. We do not want to encourageReyk Floeter
running vxlan(4) with a lowered MTU of just 1450 bytes instead of bumping the MTU of the transport interfaces to at least 1550 or preferrably 1600 bytes.
2013-10-13Import vxlan(4), the virtual extensible local area network tunnelReyk Floeter
interface. VXLAN is a UDP-based tunnelling protocol for overlaying virtualized layer 2 networks over layer 3 networks. The implementation is based on draft-mahalingam-dutt-dcops-vxlan-04 and has been tested with other implementations in the wild. put it in deraadt@
2013-10-12new bandwidth shaping subsystem, kernel sideHenning Brauer
uses hfsc behind the scenes; altq stays in parallel for a migration phase. if.h even more messy for the transition, but eventuelly it should become readable... looked over & tested by many, ok phessler sthen
2013-10-12hook in hfsc.c/hHenning Brauer
looked over & tested by many, ok phessler sthen
2013-10-12give tagname2tag and its siblings an extra "create" parameter. if 1, itHenning Brauer
behaves like before and creates the mapping if needed. if 0, lookup only. looked over by many, ok phessler sthen
2013-10-12standalone hfsc implementation with new interface to the consumers, forHenning Brauer
the new bandwidth shaping subsystem. looked over & tested by many, ok phessler sthen
2013-10-11When converting an ELF file, create a dummy non-empty (8 byte) .data section,Miod Vallat
for older PROM will fail to load BCS binaries with only a .text section, and will also fail to load an empty .data section. Tested on AV4300.
2013-10-11Add initial RTL8106E and RTL8168G/8111G support.Jonathan Gray
An earlier version didn't seem to work on a machine bmercer@ had access to a few months ago but this seems to work with the onboard Ethernet in an ASUS Z87 board RD Thrush has.
2013-10-11poll(2) on a closed tty should return POLLIN|POLLHUP in reventsTodd C. Miller
when events is set to POLLIN and POLLHUP when events is set to POLLOUT. In the pty case we need to be careful to only treat the pty as closed if carrier is on. This fixes a hang on close problem seen with ssh and xterm.
2013-10-11Prevent non-data packets from being dropped.Gerhard Roth
ok bluhm@ mikeb@
2013-10-11match Intel 8 Series SMBus (Lynx Point and Lynx Point-LP)Jonathan Gray
tested by RD Thrush on Lynx Point
2013-10-10Better boot device detection code. Board-specific code will now return theMiod Vallat
address of a controller only know by its SCM name and number, and the boot device detection code will now attempt to match the controller first, and then grandchildren of it (if the boot device is a disk or a tape).
2013-10-10Misc cleanups and small fixes. Boot controller/unit/lun information passedMiod Vallat
to the kernel will now match the device the kernel is loaded from, not the device the boot blocks are loaded from (this allows one to netboot the boot blocks to boot a kernel from a local disk).
2013-10-10Add edma driver. This driver add support for am335x edma3 controller.Sylvestre Gallon
With some more work, it will allow us to speed-up ommmc driver. ok patrick@.
2013-10-10A few fixes from Pedro Martelletto, adapted fromMarc Espie
https://github.com/bitrig/bitrig/commits/pedro_tmpfs_fixes 7efd381ac3: # mkdir -p x/y # mv x/y/. z (or mv x/y/.. z) (panic) 264ecd2c7b: # mknod x b 100 100 (can be any block/character device) # ls -lR / (panic) 7da08d22fd: # mkfifo x (or mknod x) # mv x y (panic) af0666c65a: # mount -t tmpfs -o -n16 tmpfs /mnt (create tmpfs with 16 inodes limit) # cd /mnt # touch x # for i in `jot 100 1 100`; do ln -s x $i; done (create 100 symlinks, = they "succeed" even though they failed) # ls -lart 7e9296a6f8: # mkdir x # touch x/y # chflags uappnd x (or sappnd) # rm x/y 936b9cf257: # mkdir -p x/y # rmdir x/y/.. (panic) de541406ef: # touch x # ln x y # stat -f %c x # sleep 10 # rm y # stat -f %c x okay guenther@, krw@
2013-10-09Quick'n'dirty code to match trivial on-disk boot paths as the boot device.Miod Vallat
Needs more work in order to cover all cases, but enough to get internal disks on the first controller on models 4600 and 530 to get matched. This makes the aviion port finally self-hosting on aforementioned models, finally! Next step: bsd.rd...
2013-10-09Needed by recent libsaMiod Vallat
2013-10-09DIsplay fixes, also print boot path before attempting to boot it. Still notMiod Vallat
cranking boot blocks version because it's unlikely anyone but me is running them at the moment.
2013-10-09Parse (hex) partition number in boot path. For experts only.Miod Vallat
2013-10-09Fix build (forgot to rerun make depend)Miod Vallat
2013-10-09Fix parse_args() to ignore device specification and correctly append theMiod Vallat
default kernel name if only a boot device is specified. This makes boot paths like "sd()" auto-boot without asking for a kernel name.
2013-10-09Move common SCSI defines and structs to their own header, to eventually allowMiod Vallat
SCSI tape support. Drop sync negotiation from oosiop code, we can run without it.
2013-10-09Enable synch negotiation; code was there but not enabled since this driver wasMiod Vallat
ported from NetBSD. Tested on hppa (720) and aviion (4600).
2013-10-09Various fixes to make kiic(4) work on my G5s.Martin Pieuchot
Only read the bus number from the "i2c-bus" child node if present, this node exists only in some device-trees, otherwise use the bus number encoded in the address of the device. Fix an off-by-one when reading the data. While here remove unused functions.
2013-10-09Initialize ns_per_tick as soon as we have read the timebase from theMartin Pieuchot
device-tree to restore the behaviour present before my last change. This fixes a regression seen on some Powerbooks where one of the two kiic(4) would always timeout when trying to configure the audio chip.
2013-10-09Fix a possible mbuf leak, from NetBSD via Loganaden Velvindron.Martin Pieuchot
ok claudio@, henning@
2013-10-09Include the 'state of health' field in the bbu ok sensor value.Jonathan Matthew
The dell perc 6/i sets this to zero (meaning bad) when it decides the battery doesn't have enough capacity for it to allow write back mode, but doesn't set any of the other flags to tell us why. ok dlg@, tested by sthen@
2013-10-09Introduce in_ifdetach() a function to remove all the IPv4 addressesMartin Pieuchot
of an interface, named after its IPv6 equivalent. Make use of it instead of removing addresses by hand when detaching or destroying an interface. As a bonus, multicast records linked to the just divorced^Wdetached interface are no longer leaked. No objection from the gang, ok mikeb@
2013-10-09Don't leak ruleitems from match rules when hitting a per-rule max state limit.Camiel Dobbelaar
ok henning
2013-10-09Use monitor/mwait to idle when available. Make cpu_unidle() do nothingPhilip Guenther
if it can tell the target CPU isn't actually idling and introduce cpu_kick() for the cases where we want to force a non-idle CPU into the kernel. just a port of the amd64 version; testing by many
2013-10-08Early stages of a working disk bootloader for OpenBSD/aviion.Miod Vallat
Currently limited to oosiop(4) controllers, and thus models 4600 and 530. There are some rough edges to polish to avoid manual interaction (kernel currently can't figure its boot device when booted from disk), but the hard (and hair-pulling) work is over. And we can have kernel symbols again!
2013-10-08Try to be a bit more cross-compile friendly.Miod Vallat