summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-07-28Remove top level ring processing loops as too ambiguousMike Belopuhov
2016-07-28replace hand rolled physlock with real rwlock. ok mlarkinTed Unangst
2016-07-28Revert previous commitMike Belopuhov
2016-07-28Revert previous commitMike Belopuhov
2016-07-28Convert ifq_deq_{begin,rollback,commit} dance to a single ifq_dequeueMike Belopuhov
2016-07-27Get interrupts going for the Allwinner-R8 chip.Marcus Glocker
ok kettenis@, patrick@
2016-07-27Remove a feature to re-use existing early bootstrap mappings. ThisPatrick Wildt
allowed you to pass a virtual address, which you received from an early bootstrap mapping, as physical address to bus_space_map(9). It breaks bus_space_map(9) for peripherals that are after 0xC0000000, as it assumes that everything after that address cannot be a real peripheral. But that's wrong. It does not make sense to pass a virtual address to bus_space_map(9) anyway, so just get rid of this whole "feature". ok kettenis@
2016-07-27Add interface to facilitate iterating over gpios.Mark Kettenis
ok patrick@
2016-07-27improve comments a bit. ok mlarkin tomTed Unangst
2016-07-27When pmap_page_remove() is called by UVM, a physical page is to bePatrick Wildt
removed from pmaps it currently is in. To check if a virtual address pointing to that physical page has been mapped, the code uses the l2pte_valid() function. Unfortunately there is a difference between being valid and the PTE being zero. If a page is mapped but has never been accessed, it will be non-zero but invalid. In that case the PTE for that virtual address will not be zeroed and the virtual address will be removed from the vm page struct. The next time someone tries to map a page to that virtual address, other pmap code will consider the virtual address to be already mapped, even though that assumption is completely wrong. To make sure this does not happen, check the PTE for zero. This way the PTE will be zeroed correctly. The check for zero is how other ARM pmap code also handles this issue. ok kettenis@ tom@
2016-07-27ansify mem.c to the latest fashion. with a fix from mike burns. ok deraadtTed Unangst
2016-07-27check flags with mask instead of equality, in case we decide to mixTed Unangst
another flag in at some point. ok stefan
2016-07-27increase the size of forkstat fields to accomodate large valuesTed Unangst
2016-07-27Instead of passing the raw reg property to simplebus nodes,Patrick Wildt
pass a pre-processed array of fdt_reg structs. This means that the drivers don't have to understand the cell properties themselves but can rely on the 64-bit addr/size pairs. ok kettenis@
2016-07-27Remove unnecessary remapping of registers.Visa Hankala
ok jasper@
2016-07-27after system resume, re-write backlight levelJoshua Stein
2016-07-27zero sizeof a struct not sizeof the pointer to itJonathan Gray
ok mikeb@
2016-07-26Rename struct fdt_memory to fdt_reg to match the member namePatrick Wildt
used in the fdt attach args and the device tree. ok kettenis@
2016-07-26pool debug dance, part deuxTed Unangst
2016-07-26In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet.Stefan Sperling
Some code paths in this driver peek at ic_htcaps and act upon it, so let's play it safe until this driver gets its 11n support enabled on purpose. Spotted while investigating the bug fixed in r1.35.
2016-07-26Remove the restriction that the kernel needs to be loaded at the bottom ofMark Kettenis
physical memory. This makes it possible to boot OpenBSD on platforms that have physical memory start at address 0x00000000 as the EFI bootloader will only attempt to load kernels at address 0x10000000 and above to work around a bug in the u-boot EFI API layer. ok patrick@
2016-07-26Welcome to 6.0-current.Mark Kettenis
ok deraadt@
2016-07-26Unbreak rsu(4) which was broken since r1.32. Reported by Jake Swensen.Stefan Sperling
ok deraadt@
2016-07-26Fix byteswap errors in rtwn(4) and urtwn(4) introduced by me on June 17.Stefan Sperling
Repairs urtwn(4) on macppc. Problem reported by juanfra@. ok millert@ deraadt@
2016-07-25disable tmpfs because it receives zero maintainance.Theo de Raadt
2016-07-25fix revision 1.290 of sys/netinet/ip_carp.c.Sebastian Benoit
diff from jsg@ ok deraadt@, benno@
2016-07-25Make sure closed bpf devices are removed from bpf_d_list to free theMartin Natano
minor number for reuse by the device cloning code. This fixes a panic reported by bluhm@. initial diff from tedu ok deraadt
2016-07-23Previously the uarts attached in order, so that the first attached uartPatrick Wildt
is always the serial console. With device tree enumeration, this order is not given anymore. The serial console might now attach with a different minor and has to be updated, otherwise there will be no further output on the serial. Thus, re-create the i.MX6 console with the correct minor number on attach. ok jsg@, kettenis@
2016-07-23do the pool debug release dance. ok deraadtTed Unangst
2016-07-23The linux kernel treated the "phy-reset-gpio" as active-low regardless of whatMark Kettenis
the device tree says. As a result many device trees encode it as active-high when active-low is needed. For now just override the device tree. ok jsg@, patrick@
2016-07-23Fix a few CPUID emulation issues:Mike Larkin
Don't advertise a hyperthreaded CPU. This doesn't make a lot of sense now as we only provide UP guest support. This, combined with the other CPUID issues fixed, fooled NetBSD's topology enumeration code into thinking we had an unsupportable core/thread/package configuration. Also fixed the unsupported CPUID functions by returning 0 in the return registers instead of leaving whatever trash happened to be there before the call was made.
2016-07-23Dump vcpu state on unknown exit type, and add a diagnostic messageMike Larkin
(including vcpu state dump) on failure to enter due to an incorrect guest state. Added as a debug facility when diagnosing interruptibility state problems seen while testing NetBSD guest VMs.
2016-07-23Ensure some undesirable entry controls are cleared, instead of relyingMike Larkin
on the default settings. Noticed when booting a NetBSD guest VM.
2016-07-22Attach imx(4) on i.mx6 quad plus which appears to be largely compatibleJonathan Gray
with i.mx6 quad but with more memory bandwidth and some graphics tweaks. ok kettenis@
2016-07-22Fallback to the known fec irq number on imx.6 if the fdtJonathan Gray
interrupts-extended property is missing or not the size we expect. Some dtbs implement a workaround for "ERR006687 ENET: Only the ENET wake-up interrupt request can wake the system from Wait mode" suggested by the IMX6DQCE errata document to set an undocumented gpio mux mode and handle the interrupt via gpio. We don't support gpio interrupts yet, hopefully this change is enough to make interrupts work on wandboard and sabre lite again till we do. Discussed with kettenis and patrick, tested on sabre lite by patrick.
2016-07-22Set the vfs_systcl member of the vsfops struct to eopnotsupp. While we checkMark Kettenis
for a null pointer now, all other filesystems fill in the complete table. ok deraadt@, tom@
2016-07-22Revert in_selectsrc() refactoring, it breaks IPv6.Martin Pieuchot
Reported by Heiko on bugs@. ok stsp@, claudio@
2016-07-22Check for errors when deleting routes inside rtable_walk() and abortMartin Pieuchot
the walk if a route cannot be deleted. Prevent an infinite recursion reported by Dimitris Papastamos. ok claudio@
2016-07-22Prevent NULL-pointer call for filesystems that don't provide vfs_sysctlMark Kettenis
in their vfsops. Issue reported by Tim Newsham. ok claudio@, natano@
2016-07-22Fix a double rtfree(9) triggered when IPSEC inserts a more specificMartin Pieuchot
route because of PMTU. otto@ reported the issue and helped me tracking it down during more than one month, he is the man! mikeb@ figured out the bug was in the forwarding path. ok mikeb@, deraadt@, claudio@
2016-07-21Remove a few debugging leftoversMike Belopuhov
2016-07-21Make rtwn(4) and urtwn(4) respect the RTS threshold set by net80211.Stefan Sperling
ok mpi@
2016-07-21set and clear the 10baseT bit in statchgJonathan Gray
ok patrick@
2016-07-20Plug potential leak of device list.Kenneth R Westerback
Problem found by Michael McConville. Tested & ok stsp@
2016-07-20To tune the TCP SYN cache we need more information. Print theAlexander Bluhm
relevant counters with netstat -s -p tcp. OK henning@
2016-07-20Split in6_selectsrc() into a low-level part and a pcb-level part, andVincent Gross
convert in_selectsrc() prototype to match. Ok bluhm@ mpi@.
2016-07-20Disable the beacon filter in iwm(4). This allows beacons to pass through toStefan Sperling
the stack while associated, which in turn makes it possible to keep track of HT protection changes. ok mpi@
2016-07-20Make the iwn(4) LED flash 10 times slower in monitor mode.Stefan Sperling
Makes running monitor mode over extended periods of time much less annoying. ok benno@
2016-07-20In net80211, enable RTS for frames above a particular size (currently 512Stefan Sperling
bytes). This is what other OS have been doing for years. In our stack this feature was present but disabled at compile-time by an #ifdef. This is a low risk change because drivers were already required to use RTS whenever the AP set the USE_PROTECTION flag in ERP elements of its beacons. This change allows for reasonable throughput on loaded 11g networks whereas before they were practically unusable. tests and ok phessler@
2016-07-20Bring iwn_update_htprot() back, so iwn(4) will properly keep trackStefan Sperling
of HT protection changes while associated. HT protection affects behaviour on Tx but is configured along with Rx settings (because Intel likes it that way). And our previous iwn_update_htprot() implementation had a bug where it would accidentally clear bits which enable CCK rates for Rx. The Intel Wireless-N 2200 chip accordingly stopped receiving some frames (most notably broadcast frames) and the link broke down. Also, restore the power-saving level after updating the Rx config (like Linux does), and add some DELAYs for good measure to ensure the firmware has time to process asynchronous commands we send. tested by myself and mlarkin@ ok mlarkin@