summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Improt pf.c 1.636 from OpenBSDbapt2013-10-271-1/+2
| | | | | | | | Original log: Make sure pd2 has a pointer to the icmp header in the payload; fixes panic seen with some some icmp types in icmp error message payloads. Obtained from: OpenBSD
* Import pf.c 1.635 and pf_lb.c 1.4 from OpenBSDbapt2013-10-272-84/+350
| | | | | | | | | | | | | | | | | | | | | | Stricter state checking for ICMP and ICMPv6 packets: include the ICMP type in one port of the state key, using the type to determine which side should be the id, and which should be the type. Also: - Handle ICMP6 messages which are typically sent to multicast addresses but recieve unicast replies, by doing fallthrough lookups against the correct multicast address. - Clear up some mistaken assumptions in the PF code: - Not all ICMP packets have an icmp_id, so simulate one based on other data if we can, otherwise set it to 0. - Don't modify the icmp id field in NAT unless it's echo - Use the full range of possible id's when NATing icmp6 echoy Difference with OpenBSD version: - C99ify the new code - WITHOUT_INET6 safe Reviewed by: glebius Obtained from: OpenBSD
* Clean up the debug printing in libproc a bit. In particular:markj2013-10-276-33/+35
| | | | | | * Don't print any error messages to stderr unless DEBUG is defined. * Add a DPRINTFX macro for use when errno isn't set. * Print the error string from libelf when appropriate.
* Fix typo.kib2013-10-271-1/+1
| | | | MFC after: 3 days
* Provide forward declaration for struct ifnet. Consumersglebius2013-10-271-0/+2
| | | | of this header don't need contents of struct.
* Almost all if_clone consumers do not care about if_clone_event.glebius2013-10-271-0/+2
| | | | | Do not force them to include sys/eventhandler.h. Those who utilize EVENTHANDLER(9), will see the declaration.
* Include lock.h before mutex.h.glebius2013-10-271-0/+1
|
* Remove the last dregs of trapframe_t. It turns out only arm was usingian2013-10-275-23/+31
| | | | | this type, so remove it to make arm code more consistant with other platforms. Thanks to bde@ for pointing out only arm used trapframe_t.
* Several small fixes for the amd64 minidump code.kib2013-10-271-4/+7
| | | | | | | | | | | | | | | | | | | | | In report_progress(), use nitems(progress_track) instead of manually hard-coding array size. Wrap long line. In blk_write(), code verifies that ptr and pa cannot be non-zero simultaneously. The later check for the page-alignment of the ptr argument never triggers due to pa != 0 always implying ptr == NULL. I believe that the intent was to ensure that physicall address passed is page-aligned, since the address is (temporary) mapped for the duration of the page write. Clear the progress_track.visited fields when starting minidump. If minidump is restarted or taken second time during the system lifetime, progress is not printed otherwise, making operator suspectible to the dump status. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Move new pf includes to the pf directory. The pfvar.h remainglebius2013-10-2718-25/+35
| | | | | | | | | | in net, to avoid compatibility breakage for no sake. The future plan is to split most of non-kernel parts of pfvar.h into pf.h, and then make pfvar.h a kernel only include breaking compatibility. Discussed with: bz
* When reentering kdb, typically due to a bug causing trap or assert inkib2013-10-271-0/+2
| | | | | | | | | | | | the code executed in the context of debugger, do not be ashamed to inform loudly about the re-entry. Also, print the backtrace before obliterating current stack with longjmp, allowing the operator to see a place which caused the bug. The change should make it less mysterious debugging the ddb itself. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* If the initial attempt to open /dev/ksyms fails, kldload the ksyms modulemarkj2013-10-271-0/+11
| | | | and retry.
* Convert the lockstat(1) man page to mdoc and make sure that it getsmarkj2013-10-272-828/+351
| | | | | | | | | | | | installed. Additionally, remove Solaris-specific sections and references, and replace example outputs with output from lockstat on FreeBSD, since lockstat's output contains stack traces. This change also removes some examples that don't seem to work properly on FreeBSD. The examples should be re-added when lockstat is fixed. Reported by: avg MFC after: 1 week
* Always build ubldr as a soft-float binary as there is no support for VFPandrew2013-10-271-1/+1
| | | | this early on in the boot process.
* Turn on VM_KMEM_SIZE_SCALE on 32-bit as well as 64-bit PowerPC.nwhitehorn2013-10-271-4/+12
| | | | | Requested by: alc MFC after: 1 month
* Update the hard-float version of the fenv functions to use the VFP unit.andrew2013-10-271-36/+53
| | | | Any other floating-point unit is unsupported on ARM.
* Fix a deadlock when trying to power off a USB device. The deadlockhselasky2013-10-274-18/+44
| | | | | | | happens because the code in question is trying to modify the parent USB port registers outside the USB explore thread. MFC after: 3 days
* Mention in login.conf.5 which fields may be infinite and how to specifify ↵eadler2013-10-271-0/+10
| | | | | | | | | | infinity. The number of ways to indicate this confuses people. PR: docs/100196 Reported by: "Dr. Markus Waldeck" <waldeck@gmx.de> Reported by: Jamie Landeg Jones <jamie.landeg.jones@gmail.com>
* All man pages refer to FreeBSD so there is no need to mention "In .Fx"eadler2013-10-271-3/+1
|
* Eliminate a compiler warning about extraneous parens.ian2013-10-271-2/+2
|
* Oops, one more instance of ARM_NOCACHE_KVA_SIZE was hiding under the couch.ian2013-10-271-1/+1
| | | | This should have been cleaned up along with r257201.
* Retire arm_remap_nocache() and the data and constants associated with it.ian2013-10-2714-118/+18
| | | | | | The only remaining user was the code that allocates bounce pages for armv4 busdma. It's not clear why bounce pages would need uncached memory, but if that ever changes, kmem_alloc_attr() would be the way to get it.
* Remove #include <machine/frame.h> from all the arm code that doesn'tian2013-10-2765-60/+8
| | | | | | really need it. That would be almost everywhere it was included. Add it in a couple files that really do need it and were previously getting it by accident via another header.
* Remove all #include <machine/pmap.h> from arm code. It's alreadyian2013-10-2723-23/+0
| | | | | | | included by vm/pmap.h, which is a prerequisite for arm/machine/pmap.h so there's no reason to ever include it directly. Thanks to alc@ for pointing this out.
* Fix build after r257162.nwhitehorn2013-10-261-1/+1
|
* Maximize available kva space by doing static device mapping from the topian2013-10-266-192/+312
| | | | | | | | | | | | | | | | of the address space downwards, and then returning the lowest mapped device address from initarm_lastaddr(). This adds over 500MB of kva space compared to the old way of hardcoding the end address as 0xE0000000. Also, pre-map most of the SoC's common memory-mapped devices using 1MB section mappings so that all device access uses just a few TLB entries. Graphics devices aren't mapped this way yet, but probably should be. To provide this new functionality without pasting identical code into multiple imxNN_machdep.c files, rework the imx machdep code so that things common to the whole family of SoCs are in a new imx_machdep.c file. The rewritten imxNN_machdep.c files contain just things specific to an individual SoC.
* Make devices with registers into the KVA region work reliably. Without this,nwhitehorn2013-10-261-6/+18
| | | | | | previous KVA allocations (which the PMAP lazily invalidates) in TLB0 could shadow device maps in TLB1. Add a big block comment about some of the caveats with this approach.
* Try even harder to find a console before giving up.nwhitehorn2013-10-261-6/+11
|
* Fix build with GCC.bdrewery2013-10-261-1/+2
| | | | | | | | | | | | BIO_new_mem_buf takes a void* buf, but internally it never modifies the buf. It assigns the buffer to another pointer and then marks it as read-only. So deconsting it should be safe here. Also fix warning about 'buf' possibly being unused in parse_cert() Approved by: bapt MFC after: 2 days X-MFC-With: r257147
* Handle (in a slightly ugly way) ePAPR-type loaders that just place anwhitehorn2013-10-261-4/+36
| | | | | | device tree into r3. Rather than worrying about mapping that tree, reserving its space in the global physical memory space, etc., just copy it to some memory after the kernel.
* Bump initial TLB size. The kernel is not necessarily less than 16 MB anynwhitehorn2013-10-261-1/+1
| | | | more.
* Fix an itt instruction. We need to execute both the mov and b instructionsandrew2013-10-261-1/+1
| | | | when building for Thumb.
* Start splitting pfvar.h into internal and external parts.glebius2013-10-2612-186/+279
| | | | | | | | | | | | - Provide pf_altq.h that has only stuff needed for ALTQ. - Start pf.h, that would have all constant values and eventually non-kernel structures. - Build ALTQ w/o pfvar.h, include if_var.h, that before came via pollution. - Build tcpdump w/o pfvar.h. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* The MII layer shouldn't care about administrative status of anglebius2013-10-2633-293/+9
| | | | | | | | | | | | | | | | | | | | | | | | | interface. Make MII drivers forget about 'struct ifnet'. Later plan is to provide an administrative downcall from ifnet layer into drivers, to inform them about administrative status change. If someone thinks that processing MII events for an administratively down interface is a big problem, then drivers would turn MII processing off. The following MII drivers do evil things, like strcmp() on driver name, so they still need knowledge of ifnet and thus include if_var.h. They all need to be fixed: sys/dev/mii/brgphy.c sys/dev/mii/e1000phy.c sys/dev/mii/ip1000phy.c sys/dev/mii/jmphy.c sys/dev/mii/nsphy.c sys/dev/mii/rgephy.c sys/dev/mii/truephy.c Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Be a bit more flexible in how we find the console from the properties onnwhitehorn2013-10-261-10/+23
| | | | | | | /chosen, following the list of allowed console properties in ePAPR. Also do not require that stdin be defined and equal to stdout: stdin is nonstandard (for ePAPR) and console in an unexpected place is after all better than no console.
* bump date forgotten in r257165jmg2013-10-261-1/+1
|
* Add some extra sanity checking and checks to printf format specifiers.nwhitehorn2013-10-261-11/+11
|
* Provide includes that are needed in these files, and before were readglebius2013-10-2621-2/+42
| | | | | | | in implicitly via if.h -> if_var.h pollution. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Interrelated improvements to early boot mappings:nwhitehorn2013-10-2610-41/+96
| | | | | | | | | | | | | | | | - Remove explicit requirement that the SOC registers be found except as an optimization (although the MPC85XX LAW drivers still require they be found externally, which should change). - Remove magic CCSRBAR_VA value. - Allow bus_machdep.c's early-boot code to handle non 1:1 mappings and systems not in real-mode or global 1:1 maps in early boot. - Allow pmap_mapdev() on Book-E to reissue previous addresses if the area is already mapped. Additionally have it check all mappings, not just the CCSR area. This allows the console on e500 systems to actually work on systems where the boot loader was not kind enough to set up a 1:1 mapping before starting the kernel.
* The r48589 promised to remove implicit inclusion of if_var.h soon. Prepareglebius2013-10-26326-7/+409
| | | | | | | | to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Clean up missed header references.nwhitehorn2013-10-263-3/+3
|
* Remove unsigned < 0 comparison.glebius2013-10-261-1/+1
|
* Move includes from if_bcereg.h to .c files.glebius2013-10-262-45/+48
|
* Enable SATA interface on Armada XPzbb2013-10-262-0/+8
| | | | | | | | - Add appropriate entry to DTS - Allow for MV78460 SATA probe and configuration Tested by: kevlo Approved by: cognet (mentor)
* Enable UART busy detection handling for Armada XP - based boardzbb2013-10-261-0/+4
| | | | | | | | All Armada XP chips should be affected. It is necessary to handle busy interrupt/indication by enabling busy-detect property in DTS. Tested by: kevlo Approved by: cognet (mentor)
* Wait for DesignWare UART transfers completion before accessing line controlzbb2013-10-262-1/+26
| | | | | | | | | | | | | When using DW UART with BUSY detection it is necessary to wait until all serial transfers are finished before manipulating the line control. LCR will not be affected when UART is busy. In addition, if Divisor Latch Access Bit is being set in order to modify UART divisors: 1. We will get BUSY interrupt if interrupts are enabled. 2. Because LCR will not be affected the THR and (even worse) IER contents will be corrupted. This will lead to console hang. Approved by: cognet (mentor)
* Fix concurrency issues with TLB1 updates and make pmap_kextract() searchnwhitehorn2013-10-261-11/+27
| | | | | TLB1 mappings as well, which is required for the console to work after r257111.
* Fix indentationbdrewery2013-10-261-5/+5
| | | | | | | Reported by: zont Approved by: bapt (implicit) MFC after: 2 days X-MFC-With: r257145
* Switch to using ofw_bus_search_compatible() table-driven compat lookup.ian2013-10-261-23/+42
| | | | Add compat strings for Freescale Vybrid family SoCs.
* Document that -a will output the device name when -u is not specified..jmg2013-10-261-6/+12
| | | | | | | | | | when -u is specified it is not... update the docs to say that you can use full device names w/ -u, and update the examples... Submitted by: #vbsdcon MFC after: 3 days
OpenPOWER on IntegriCloud