summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2014-05-07Kill the {nd6_,}useloopback buttons, using the loopback interface forMartin Pieuchot
local traffic is not optional. ok mikeb@, stsp@, jca@
2014-05-07Remove some m->m_pkthdr.rcvif dereference to help for upcomingMartin Pieuchot
receiving pointer -> index conversion. No functional change. ok chrisz@, jca@, mikeb@, lteo@
2014-05-07Fix ext2fs atime and mtime handling that I broke from an airportPhilip Guenther
lounge after n2k14. Prototype patch from zhuk@ ok zhuk@ krw@ tedu@
2014-05-06Enable brswphy(4) on the Octeon platform.Paul Irofti
Needed for proper networking on my DSR-500.
2014-05-06Add support for the Broadcom PHY found on the Octeon-based DSR-500.Paul Irofti
This is an MI driver currently targeting only the BCM53115 model, but other Broadcom devices (specially from the 53XX family) can make use of it as well. The driver currently accounts just for the CPU port. The switch is left in dumb-mode. Further advanced switch control is in the works. Parts of this was inspired by looking at the b53 driver from the OpenWrt project. Thanks! Okay miod@
2014-05-06Regen after Broadcom 53115 addition.Paul Irofti
2014-05-06Add an entry for the Broadcom 53115 model found on the DSR-500.Paul Irofti
Okay miod@
2014-05-06remove cpsw_{read,write}_4 wrapper functions and just use the realJasper Lievisse Adriaanse
bus_space_{read,write}_4 instead. tested by nick@, ok bmercer@
2014-05-06Include <sys/vmmeter.h> directly instead of relying on it beingMartin Pieuchot
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private function. The preferred way to get memory stats is through the VM_UVMEXP sysctl(3) since VM_METER is just a wrapper on top of it. In the kernel, use `uvmexp' directly instead of uvm_total(). This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h> to give some more time to port maintainers to fix their ports. ok guenther@ as part of a larger diff.
2014-05-06Fix a memleak when lookup of SA fails during forwarding of encrypted IPv6Gerhard Roth
pakets. ok mpi@ markus@ mikeb@
2014-05-06Plug two xfer leaks and a buffer one.Martin Pieuchot
2014-05-05Plug a memory leak, free the keymap's memory on detach.Martin Pieuchot
ok miod@
2014-05-05Plug a memory leak related to HID descriptor parsing.Martin Pieuchot
ok jsg@
2014-05-05Tweak comment on struct _partitionv0. It's no longer the partitionKenneth R Westerback
table. Suggested by David Vasek.
2014-05-05Use a custom ifa_rtrequest function for point-to-point interfacesMartin Pieuchot
instead of relying on hacks in nd6_rtrequest() to add a route to loopback for each address configured on such interfaces. While here document that abusing lo0 for local traffic is not safe for interfaces in a non-default rdomain. Tested by claudio@, jca@ and sthen@, ok sthen@
2014-05-05remove dead code: calling ether_attach which sets if_type to IFT_ETHER,Henning Brauer
just to set it to IFT_L2VLAN right afterwards, just to set if_type to the parent's if_type which can be anything as long as it is IFT_ETHER at config time doesn't make any sense and has zero effect. stop fiddling with if_type alltogether. also remove a question in a comment that has been answered by the last 14 years. from Marrakesh airport, ok reyk
2014-05-04format string fixes for bus_addr_t and bus_size_tStefan Fritsch
bus_addr_t and bus_size_t are u_long everywhere ok kettenis@
2014-05-04remove some hh and h format specifiersStefan Fritsch
gcc does not like hh in kprintf and it does not make any difference due to integer promotion rules. While there, remove some h's, too. suggested by kettenis@
2014-05-04format string fix for bus_space_tag_tStefan Fritsch
bus_space_tag_t is a pointer everywhere, except on i386, where it's an int. Cast to long. ok kettenis@ 'Right idiom' deraadt@
2014-05-04change type of handle var to u_int16_tStefan Fritsch
This fixes a format string warning. No change to the format string is necessary. suggested by kettenis@
2014-05-04Make use of usbd_xfer_isread() instead of rerolling it everywhere.Martin Pieuchot
This has the side effect of simplifying and reducing the differences between the various *hci_alloc_*_chain() functions since they are the principal place where we want to known if the transfer is a read or a write.
2014-05-04Get rid of EHCI_NULL. No functional change.Martin Pieuchot
2014-05-04Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,Philip Guenther
and FORK_SYSTEM as a flag to set them. This eliminates needing to peek into other processes threads in various places. Inspired by NetBSD ok miod@ matthew@
2014-05-04When kern.nosuidcoredump=3, act like =2 but try to dump cores intoTheo de Raadt
the /var/crash/programname/ directory, as root. For instance, # mkdir /var/crash/bgpd/ # chmod 700 /var/crash/bgpd/ # If you skip this step, you are a moron # sysctl kern.nosuidcoredump=3 # bgpd # pkill -ABRT bgpd # ls /var/crash/bgpd/ 14764.core 23207.core 6423.core Of course, in real life the idea is that you don't kill the daemon but it crashes and you collect parallel cores. Careful you don't fill your /var. Further tuneables are being considered. Sorry to be picking on bgpd for this example. I've watched the "too difficult to debug privsep code" angst for far too long. ok guenther
2014-05-03If P_ZOMBIE(pr->ps_mainproc) is true, then (pr->ps_flags & PS_EXITING)Philip Guenther
is, so eliminate the check of the former and instead use the EINVAL error for the latter. Also, consistently check for PS_EXITING before check creds. suggestion to split this from another diff miod@
2014-05-03Fix whitespace fail in previous commitPhilip Guenther
2014-05-03Move the u-area allocation and pmap-magic logic to its own functionPhilip Guenther
uvm_uarea_alloc() function name from NetBSD; arm testing by miod@
2014-05-03drm/radeon: call drm_edid_to_eld when we update the edidJonathan Gray
From Alex Deucher 7752811a7d6be680e8f1a87da18e3670633981ee in ubuntu 3.8 16086279353cbfecbb3ead474072dced17b97ddc in mainline linux
2014-05-03Skip intel_crt_init for Dell XPS 8700Jonathan Gray
From Giacomo Comes 95849485beb5e665d56269cd05c3c19df399fb20 in ubuntu 3.8 10b6ee4a87811a110cb01eaca01eb04da6801baf in mainline linux
2014-05-03drm/i915/tv: fix gen4 composite s-video tv-outJonathan Gray
From Jani Nikula 1f2561bd1e2c46145c643673b662c099d2074936 in ubuntu 3.8 e1f23f3dd817f53f622e486913ac662add46eeed in mainline linux
2014-05-03drm/i915: quirk invert brightness for Acer Aspire 5336Jonathan Gray
From Jani Nikula 083bda2f1130f185eccdf7c5cbbdb53fa88429b1 in ubuntu 3.8 0f540c3a7cfb91c9d7a19eb0c95c24c5de1197d5 in mainline linux
2014-05-02Change BLKDEV_IOSIZE to PAGE_SIZETheo de Raadt
ok beck miod
2014-05-02Make acpiprt(4) handle interrupts with non-standard polarity and trigger modeMark Kettenis
correctly. Tested by nobody.
2014-05-02Make acpi_mutex_acquire/release actually grab the global lock if it should.Mark Kettenis
Get rid of the fake global lock code that these functions were using before. ok pirofti@, mlarkin@
2014-05-02Kill annoying and useless emacs local variable. ok mikeb@Jeremie Courreges-Anglas
The variable would have no effect unless you use hilit19.el from emacs21, and even there the specified value has not been kept up to date with the file growth.
2014-05-01move pointer use to after a NULL pointer checkJonathan Gray
ok dlg@
2014-05-01with some random chance, swizzle the current page for the pool to avoidTed Unangst
fully deterministic behavior. ok deraadt
2014-05-01fixed some debug messagessasano
ok by dcoppa@
2014-04-30Make sure we flush discarded pages even if the number of hash buckets doesn'tMark Kettenis
change. From Pedro Martelletto via bitrig. ok beck@, krw@
2014-04-30Assigning list pointers doesn't really work with doubly linked lists. UseMark Kettenis
a remove-and-insert-all-items approach for now and remove the comments that suggest manipulating list pointers. Pointed out by Pedro Martelletto. ok beck@, krw@, mikeb@
2014-04-30Remove carp_seroute() it no longer does anything useful but mess withMartin Pieuchot
your IPv4 routes. mcbride@ says that this function has been introduced in order to be able to reach the MASTER node from a BACKUP node using the CARP address. The reasons are: 1) For troubleshooting, so I can ping or otherwise monitor the MASTER host. 2) In some cases it's undesirable (or even not possible) to run services on other IP addresses. For example, services that only allow you to configure 1 listening IP, or services where you wish to avoid users connecting to anything but the MASTER server. Sadly this function becames a horrible hack. So if somebody thinks the reasons explained before justify such logic, feel free to submit a correct diff. ok bluhm@, henning@, mikeb@
2014-04-30format string fixes for (u)int64 varsStefan Fritsch
ok kettenis@
2014-04-30Enforce proper alignment of stack variables which may get accessed withMiod Vallat
double-word load and store instructions. This used to work by chance, but recent compiler changes no longer put us in the lucky situation. tweaks kettenis@
2014-04-29Get rid of the per-softc freelist of transfer descriptors and use aMartin Pieuchot
per-driver pool(9) instead.
2014-04-29Finally plug the public xfer leak #1 in our USB stack.Martin Pieuchot
Every call to usbd_abort_pipe() on an interrupt pipe would simply reset the intrxfer pointer, which would prevent usbd_close_pipe() to free it. Since we abort pipes in a lot of situations: when a device is detached, when a USB-to-serial adapter is closed, when an error occurs, when the machine is suspended, etc, this would result in hundreds of leaked xfers in most of my machines. xhci(4) is not affected, but you can't enable it right now since the stack is not ready :) While here put a KASSERT() to make sure drivers are only calling the interrupt abort method for intrxfer, if that's not the case, please let met know.
2014-04-29regenRyan Thomas McBride
2014-04-29Add Microsoft Wireless Mobile Mouse 3500 and Wireless Arc Mouse.Ryan Thomas McBride
ok mpi