summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-05-13Remove some m->m_pkthdr.rcvif dereference to help for upcomingMartin Pieuchot
receiving pointer -> index conversion. No functional change. ok claudio@, mikeb@, lteo@
2014-05-12Move GTT management for Sandy Bridge and up into inteldrm(4). This makesMark Kettenis
it possible to use the non-mappable part of the GTT, prepares the way for using the PPGTT and reduces the diffs with Linux. ok jsg@
2014-05-12Fix format strings in debug code.Mark Kettenis
2014-05-12Backport FreeBSD's HID parser in order to properly parse `moderm'Martin Pieuchot
input device descriptors, notably if they include an Item with an Usage array (Min-Max range) and others single Usage elements. Tested by many, thanks! ok andre@
2014-05-12Includes a router altert option (RAO) in IGMP packets. Without thisMartin Pieuchot
option, required by the RFC2236, some L3 switches do not examine the packets. Based on FreeBSD's r14622 via Florian Riehm on tech@. ok bluhm@, jca@
2014-05-11The relation between uhci(4), ohci(4) and their root hub device isMartin Pieuchot
delicate. HC drivers do not always accept to be left alone. I don't know if it is a love crisis, but apparently receiving a root hub status change interrupt before having an uhub(4) attached breaks resume. So make sure the root hub is re-attached before interrupt get enabled. It is safe to do it during DVACT_RESUME since attaching root hubs do not require any USB transfer. Based on a diff from yasuoka@, fix a regression introduced in last commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils R on bugs@.
2014-05-11need syscall.h..Theo de Raadt
2014-05-11hide two printfs behind an ifdef DEBUG; spotted by miod@Jasper Lievisse Adriaanse
2014-05-11Move the increment of uvmexp.softs back to the caller of mi_ast():Philip Guenther
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
2014-05-11Pull in <sys/user.h> before <sys/syscall*.h>Philip Guenther
2014-05-10spello in comment and tweak DUMP_BOOT_DESC a tadJasper Lievisse Adriaanse
2014-05-10various format string fixes and remove -Wno-format from octeonJasper Lievisse Adriaanse
feedback/ok miod@
2014-05-10sigh, another case of user.h before syscall_mi.hTheo de Raadt
2014-05-10Remove -Wno-format.Mark Kettenis
2014-05-10Disable speedstep instead of panicing if the high and low speeds are the same.Philip Guenther
Problem noted by Benjamin Baier (programmer (at) netzbasis.de) improvements and ok kettenis@
2014-05-10We print time_t by casting to "long long" even in the kernel.Mark Kettenis
ok deraadt@
2014-05-10Sidestep format string issue by sanitizing a bit of debug code.Mark Kettenis
ok deraadt@
2014-05-10bring things syscall_mi.h needs into scope earlierTheo de Raadt
2014-05-10bring things syscall_mi.h needs into scope earlierTheo de Raadt
ok guenther
2014-05-10Fix formwat string. Cast pointer to long and print it using %lx since %pMark Kettenis
prefixes the address with 0x which we want to avoid here.
2014-05-10Fix a few bad indentsClaudio Jeker
2014-05-10A few more straightforward format string fixes.Mark Kettenis
2014-05-10Format string fixes for bus_addr_t and bus_size_t, which are u_long everywhere.Mark Kettenis
2014-05-10Schizo registers are all 64-bit, so use u_int64_t to store them and print themMark Kettenis
using %llx/%llb.
2014-05-10Format string fixes for printing interrupt vectors.Mark Kettenis
2014-05-10Some straightforward format string fixes. Also, print both the tx and rxMark Kettenis
interrupt vector numbers instead of printing rx; pointed out by florian@
2014-05-10Factor out the common ast bits into mi_ast()Philip Guenther
ok deraadt@
2014-05-09format string fixes and removal of -Wno-format for sparc kernels.Miod Vallat
2014-05-09Format string fixes and removal of -Wno-format for *ppc kernels.Miod Vallat
2014-05-09Plug an xfer leak when detaching root hubs.Martin Pieuchot
This leak is similar to the public xfer leak #1 that was affecting device interrupt pipes except that root hubs are rarely detached. Note that this xfer is never associated to any TD and is just used to indicate that some of the HC ports has changed status, so there is no need to flag it as "done" before completing it.
2014-05-09We should use the highest possible priority for routes to local addresses.Martin Pieuchot
Requested by claudio@
2014-05-09stop using B_AGE, it was effectively retired some time ago.Ted Unangst
2014-05-09disable IO_NOCACHE B_NOCACHE conversion until it works.Ted Unangst
2014-05-08Format string fixes for m88k; remove -Wno-format from the m88k kernels.Miod Vallat
2014-05-08Format string fixes and removal of -Wno-format for landisk kernelsMiod Vallat
2014-05-08Format string fixes and removal of -Wno-format for hppa kernels.Miod Vallat
2014-05-08Update #include list after not-so-recent uvm includes cleanups.Miod Vallat
2014-05-08Format string fixes and removal of -Wno-format for arm kernels.Miod Vallat
2014-05-08Format string fixes for alpha kernels, and remove -Wno-formatMiod Vallat
2014-05-08Fix some potential integer overflows caused by converting a page number intoMark Kettenis
an offset/size/address by shifting by PAGE_SHIFT. Make uvm_objwrire/unwire use voff_t instead of off_t. The former is the right type here even if it is equivalent to the latter. Inspired by a somewhat similar changes in Bitrig. ok deraadt@, guenther@
2014-05-08No longer build vax kernels with -Wno-format.Miod Vallat
2014-05-08Format string fixes.Miod Vallat
2014-05-08Format string fix in disabled code. Format bus_space_handle_t with %xl,Stefan Fritsch
cast bus_space_tag_t to (u_long)
2014-05-08Enable -Wno-format in the kernel on i386 & amd64Stefan Fritsch
ok jsg@ "go for it" kettenis@
2014-05-08Plug one more xfer leak.Martin Pieuchot
Now that aborting interrupt pipes does not prevent us from freeing the associated xfer, make sure to flag this xfer as "done" even if there's no need to abort it in hardware.
2014-05-08The pcexmem(4) and pcexio(4) should be attached on LUNA-88K2 only.Kenji Aoyama
Actually, there seems to be no PC-9801 extension board slot on 'original' LUNA-88K. ok miod@
2014-05-08Introduce two new route flags: RTF_LOCAL and RTF_BROADCAST.Martin Pieuchot
Nothing use them for the moment, but here is the plan: Since a route lookup is always necessary to output a packet it makes sense to store all the information regarding how the packet should be sent in the routing entry. This will save us some expensive lookups on address lists. But once we have all the information about our addresses in the routing table, we can even use it in the input path with the hope that the number of lookups in the forwarding case can be reduce to one. ok henning@, chris@
2014-05-07Fix whitespace mistakes.Paul Irofti
2014-05-07Remove the last hacks concerning the global list of IPv4 addresses in theMartin Pieuchot
source address selection logic. These hacks were only relevant for the NFS diskless boot code in order to pick the local broadcast address of the only configured interface. So, be explicit and set this address directly. Tested by florian@, ok henning@, beck@, chrisz@
2014-05-07Make sure to call uhidev_close() upon detach for every HID driver callingMartin Pieuchot
uhidev_open() at attach time. This plugs up to 3 xfer leaks and a buffer one. ok yuo@