summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-07-12Always create a local route for every configured IPv4 address on theMartin Pieuchot
machine and restore the original behavior of RTM_ADD and RTM_DELETE by always generating one message per locally configured address. This time, make sure the local route is removed during an address change, since at least pppoe(4) do some funky magics with wildcard addresses that might corrupt the routing tree, as found by naddy@ Also do not add a local route if the specified address is 0.0.0.0, to prevent a tree corruption, as found by guenther@. Putting this in now so that it gets tested, claudio@ agrees. Please contact me if you find any route-related regression caused by this change.
2014-07-12remove ifdef'd out valleyview/baytrail device listsJonathan Gray
on linux versions before 3.11 i915_pci_probe() doesn't match valleyview unless i915_preliminary_hw_support is specified as a module parameter. our drm code is currently based on linux 3.8, so it seems unlikely that the valleyview support we have works.
2014-07-12fix annoying bug where the first character would be eaten, cnischar() wasJasper Lievisse Adriaanse
wreaking havoc. from miod@
2014-07-12- fill in cninit to enable rtsJasper Lievisse Adriaanse
2014-07-12boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)Masao Uebayashi
I have found that some ports call boot(9) from machine-dependent code to reboot system. These should be changed to either: - Sending signal to init(8) to trigger it to shutdown system cleanly, like acpi(4) does, in cases where found problems don't prevent system from working immediately, or - Just doing panic(9) if the situation is severely broken. For now, just rewrite boot() to reboot(). Actual fixes follow. Discussed with & OK from kettenis@
2014-07-12Change config_deactivate(9) to always unset the DVF_ACTIVE flag soMartin Pieuchot
that drivers can check for this flag to know they have to stop doing any hardware access and release their reference. While here makes the ca_activate() function optional and propagates DVACT_DEACTIVATE to the children of a device that do not implement this interface like it is done during suspend/resume. ok uebayasi@, deraadt@
2014-07-12fix a type error on BE architecturesMartin Pelikan
2014-07-12- rewrite register reading/writing to use octeon_xkphys_{read,write}_8 whichJasper Lievisse Adriaanse
is the right approach - write into _THR instead of _RBR for cnputc() as per miod's suggestion this doesn't fix the first character that gets eaten, but it's the right way to move forward. with pirofti@
2014-07-12Remove the qli driver for QLogic 4010 & 4022 iSCSI.Jonathan Gray
It was never enabled and is apparently unfinished. ok deraadt@ krw@ claudio@ kettenis@
2014-07-12sizeof(afh), afh being uint32, is cooler than literal "4"Henning Brauer
spotted by Kent R. Spillner <kspillner acm org>
2014-07-12in-memory superblock was being filled in two places -> merge themMartin Pelikan
ok tedu
2014-07-12pull dirblock search code from ext2fs_lookup() like FreeBSD has doneMartin Pelikan
ok tedu
2014-07-12remove bluetooth typesTed Unangst
2014-07-12regenJonathan Gray
2014-07-12add some more matrox devices found in serversJonathan Gray
2014-07-12Pull in more atomic functions to avoid <sys/atomic.h> trying to use gcc4Miod Vallat
built-ins which aren't available on vax. (A similar diff for m88k is in the pipeline as well)
2014-07-12regenYojiro Uo
2014-07-12fix location of 7 Series xHCI entryYojiro Uo
no side effect
2014-07-12print more useful information on wrong superblocks.Martin Pelikan
Function renames for consistency and readability. No functional change.
2014-07-12revert previous unwanted commit. sorry!Martin Pelikan
2014-07-12Add a function to drop all clean pages on the page daemon queues and callMark Kettenis
it when we hibernate. ok mlarkin@, miod@, deraadt@
2014-07-12*** empty log message ***Martin Pelikan
2014-07-12Use the correct poll interval for HS root hub before it gets copied, noMartin Pieuchot
real impact since this descriptor is not used in the kernel. From NetBSD.
2014-07-12Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were toMartin Pieuchot
set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag. Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states. This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying(). Discussed many times with deraadt@
2014-07-12essentially mechanical conversion of softraid rebuild fromBret Lambert
workq to taskq ok jsing@
2014-07-12move macppc abtn(4) driver from workq to taskqBret Lambert
thanks to Fred Crowson (fred () crowsons ! net) who was able to make sure his cd would still eject when the button was pushed, and stsp@ who lent me his macppc laptop
2014-07-12Remove incorrect comment about how autoconf(9) works and documentMartin Pieuchot
that usbd_detach() should only be called by the thread doing USB bus exploration to prevent attach/detach races.
2014-07-12Only detach the USB device you disconnected, fix a regression reportedMartin Pieuchot
by guenther@. While here set the dying flag of the disconnected device so that most of the DVACT_ACTIVATE handlers can go.
2014-07-12Implement checksum offload for divert(4): simply set the checksum flagLawrence Teo
and let the stack take care of the checksums for reinjected outbound packets. Reinjected inbound packets will continue to have their checksums calculated manually but we can now take advantage of in_proto_cksum_out and in6_proto_cksum_out to streamline the way their checksums are done. help from florian@ and henning@, feedback from naddy@ ok florian@ henning@
2014-07-12Preread the thermal zone trip points before reading the temperature value.Mike Larkin
This is needed on some (specifically HP) machines to avoid _TMP reporting a bogus temperature value (temperatures > 4,000 degC), which causes acpitz to automatically shut down the machine because it thinks it's floating in lava. Also ensure that we can accept a temperature reading of 0 degC - we were previously interpreting 0 degC as "bad temperature data" and not attaching the thermal zone device. Some machines have ephemeral temperature sensors that come and go (eg in docks) and we want to make sure we attach those even if they report back 0 degC on initialization. Fixes some machines with "failed to read _TMP" errors. ok deraadt, tested and verified by a few folks on tech@ who were seeing the thermal zone shutdown isue.
2014-07-11boot(9): Undo curproc-overriding hacksMasao Uebayashi
Some (not all) boot(9) implementations have ancient hacks which overrides if (curproc == NULL). This was probably made in a hope to forcibly proceed various clean-shutdown related code, including VFS shutdown. Let's clarify that clean-shutdown needs process context; it is impossible to cleanly shutdown VFS from within e.g. a panic in SPL_HIGH. OK kettenis@
2014-07-11remove bthub remnantsTed Unangst
2014-07-11"It's not the years, honey; it's the mileage."Ted Unangst
bluetooth support doesn't work and isn't going anywhere. the current design is a dead end, and should not be the basis for any future support. general consensus says to whack it so as to not mislead the unwary.
2014-07-11Enable the interrupt routine.Paul Irofti
Still work in progress, but the interrupt routine can be enabled now. I tried to match the structure of the other drivers as close as possible: - add octhci_intr1() routine - modify octhci_intr() to call octhci_intr1() - schedule the actual work for the soft interrupt - add octhci_root_intr_{transfer,start,abort} routines - fill in the octhci_poll() routine - use the same style for return directives dmesg progress: octhci0 at iobus0 irq 56: core version 2 pass 3.5 usb0 at octhci0: USB revision 2.0 uhub0 at usb0 " octHCI root hub" rev 2.00/1.00 addr 1
2014-07-11introduce the IFXF_AUTOCONF6 interface flag which controls wether weHenning Brauer
accept rtadvs on that interface. the global net.inet6.ip6.accept_rtadv sysctl just doesn't cut it, even tho the spec wants that - but in their little absurd world, a host just has one interface by definition anyway... the sysctlgoes away. lots of head scratching, brain cell elemination etc from bluhm benno stsp florian, excitement from simon and todd, ok bluhm stsp benno florian
2014-07-11Remove redundant mask check in the interrupt routine.Paul Irofti
We return earlier if the interrupt is masked. Discussed with and okay mpi@
2014-07-11Chuck Cranor rescinded clauses in his licenseJonathan Gray
on the 2nd of February 2011 in NetBSD. http://marc.info/?l=netbsd-source-changes&m=129658899212732&w=2 http://marc.info/?l=netbsd-source-changes&m=129659095515558&w=2 http://marc.info/?l=netbsd-source-changes&m=129659157916514&w=2 http://marc.info/?l=netbsd-source-changes&m=129665962324372&w=2 http://marc.info/?l=netbsd-source-changes&m=129666033625342&w=2 http://marc.info/?l=netbsd-source-changes&m=129666052825545&w=2 http://marc.info/?l=netbsd-source-changes&m=129666922906480&w=2 http://marc.info/?l=netbsd-source-changes&m=129667725518082&w=2
2014-07-11Use uint32_t instead of uint16_t for pr_timeout_sec of structYASUOKA Masahiko
pipex_session_req.
2014-07-11new dinode format for big-endian conversion routinesMartin Pelikan
2014-07-11Prevent division by zero on erroneous file systems.Tobias Stoeckmann
ok pelikan@
2014-07-11add some more register definitionsJasper Lievisse Adriaanse
2014-07-11in_proto_cksum_out: zero the icmp cksum before going on so that we do notHenning Brauer
require the caller to do so. lteo needs that for divert soon, and is in line with tcp/udp and the general approach that the rest of the stack should not need to do anything regarding the cksums but setting the "needs it" flag. ok lteo
2014-07-11split ext2fs_read for the upcoming ext4 extent bits, like FreeBSD has doneMartin Pelikan
ok guenther
2014-07-11move IPv6 prefix adding from workq to taskq; as a happy benefit, weBret Lambert
can delete 2 dozen or so lines that check to see if we've queued up a prefix addition multiple times. ok stsp@
2014-07-11Use the correct type, found by naddy@.Martin Pieuchot
2014-07-11reboot(9): Add MI reboot entry functionMasao Uebayashi
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called in some places. This change introduces a new MI function reboot(9) which is simply a wrapper to call MD boot(9). OK kettenis@ deraadt@
2014-07-11Fix invocation of _OSC. We were passing the capabilities in the wrong DWORDMark Kettenis
and specifyig the wrong DWORD count. Moreover we should not evaluate _PDC if _OSC is present. Might not be perfect yet, but what we had previously was uterrly and totally wrong. ok guenther@
2014-07-11determine and use maximum file size instead of magical constantsMartin Pelikan
ok guenther
2014-07-11There is a use-after-free somewhere in the code that links the pfAlexander Bluhm
state to the socket pcb. Add an additional assert to narrow down the panics. OK henning@
2014-07-11sgmap loading didnt respect the dmamaps max number of segments.David Gwynne
this let it wanter off writing segment descriptors off in memory it didnt own, which led to some pretty awesome memory corruption. if you had a network card with a small number of tx descriptors per packet, a lot of memory, and a heavily fragmented packet (ie, ssh) you were basically guaranteed a confusing panic. ok miod@