Warner Losh
1fb293548d
Make early printf output nicer by inserting a carriage return before
...
any linefeeds that are output.
2014-01-25 21:57:45 +00:00
Warner Losh
a500a7ce91
Bus space handles need to be the VA of the requested resource, not the
...
rounded page VA. Correct so the DBGU device can be mapped for FDT
console since it isn't on a page boundary.
2014-01-25 21:52:19 +00:00
Neel Natu
30b94db8c0
Support level triggered interrupts with VT-x virtual interrupt delivery.
...
The VMCS field EOI_bitmap[] is an array of 256 bits - one for each vector.
If a bit is set to '1' in the EOI_bitmap[] then the processor will trigger
an EOI-induced VM-exit when it is doing EOI virtualization.
The EOI-induced VM-exit results in the EOI being forwarded to the vioapic
so that level triggered interrupts can be properly handled.
Tested by: Anish Gupta (akgupt3@gmail.com )
2014-01-25 20:58:05 +00:00
Gleb Smirnoff
3dbdfe820b
Fix compilation with IGB_LEGACY_TX defined.
...
PR: 185909
Submitted by: Aurelien Rougemont <beorn binaries.fr>
2014-01-25 20:39:23 +00:00
Bryan Venteicher
9ef6342f9e
Check for a full virtqueue in the multiqueue transmit path
...
With most hosts, we'll negotiate indirect descriptors, so all we
need is one available descriptor to transmit a frame.
2014-01-25 19:58:53 +00:00
Bryan Venteicher
dd6f83a00f
Avoid queue unlock followed by relock when the enable interrupt race is lost
...
This already happens infrequently, and the hold time is still bounded since
we defer to a taskqueue after a few tries.
2014-01-25 19:57:30 +00:00
Bryan Venteicher
bddddcd566
Move duplicated transmit start code into a single function
2014-01-25 19:55:42 +00:00
Andrew Turner
9bd8ce289b
Fix gcc with -Wstrict-prototypes by telling it bi_emac takes no parameters.
2014-01-25 19:36:27 +00:00
Bryan Venteicher
5591e479fe
Remove stray space
2014-01-25 18:34:57 +00:00
Bryan Venteicher
9471658415
Also include the mbuf's csum_flags in an assert message
2014-01-25 07:35:09 +00:00
Bryan Venteicher
1dbb21dcc9
Read and write the MAC address in the config space byte by byte
2014-01-25 07:13:47 +00:00
Bryan Venteicher
8c457c885e
Read each field of the configuration individually
...
In the forthcoming VirtIO spec, the device configuration is
always in little endian instead of guest edian. This is a
noop change for now.
2014-01-25 07:01:51 +00:00
Peter Grehan
062eef4911
Change RWX to XWR in comments to match intent and bit patterns
...
in discussion of valid EPT pte protections.
Discussed with: neel
MFC after: 3 days
2014-01-25 06:58:41 +00:00
Bryan Venteicher
31ac03991b
Remove spaces before tabs in the function prototype list
2014-01-25 06:54:04 +00:00
Robert Millan
f55a7d3058
Accept O_CLOEXEC in shm_open().
...
Reviewed by: jilles, jhb
MFC after: 1 week
2014-01-24 21:05:07 +00:00
Andrew Turner
af3088290b
Correct the alignment of sp through functions that use UNWINDSVCFRAME. We
...
were incorrectly adding the trap frame padding to the stack pointer after
reading it's value and unaligning it.
2014-01-24 20:51:56 +00:00
Pedro F. Giffuni
99984d229c
ext2fs: Re-enable reallocblk.
...
The major corruption issues affecting this code have been fixed
a while ago.
MFC after: 1 week
2014-01-24 20:26:00 +00:00
Alan Cox
793d14076a
In an effort to diagnose possible corruption of struct vm_page on some
...
sparc64 machines make the page queue assert in vm_page_dequeue() more
precise. While I'm here switch the page lock assert to the newer style.
2014-01-24 19:08:42 +00:00
Hans Petter Selasky
3525f1dbf2
Add more USB quirks.
...
Submitted by: Gerrit Kuehn <gerrit.kuehn@aei.mpg.de>
MFC after: 1 week
2014-01-24 18:52:04 +00:00
Warner Losh
26fb3de82c
Remove obsolete option
2014-01-24 17:00:27 +00:00
Warner Losh
5fac1adda0
Fix comment to match option
2014-01-24 16:58:50 +00:00
Warner Losh
8a141da3d0
Fix comment to match option
2014-01-24 16:58:21 +00:00
Warner Losh
26c1c257fe
Fix comment to match option
2014-01-24 16:57:42 +00:00
Warner Losh
624932ff81
Add NAND support
...
Fix comment
This board has 4 wire support
2014-01-24 16:56:27 +00:00
Warner Losh
0da1cf4094
Remove redundant declaration for uart devclass.
...
Commint some unrelated, but harmless, FDT ifdefs.
2014-01-24 16:50:15 +00:00
Kevin Lo
51fcfa2666
Fix comment.
2014-01-24 15:34:22 +00:00
Hans Petter Selasky
5c8c627bf9
Hide now harmless warning from dmesg.
...
MFC after: 1 week
2014-01-24 15:05:28 +00:00
Pedro F. Giffuni
1093104cf7
ext2fs: fix a bug in dirindex and re-enable.
...
The IN_* flags should be set in i_flag instead of corrupting
i_flags [1].
Re-enable HTree dirindex as the last series of bug fixes
seems to have fixed the issues.
Reported by: bde [1]
Tested by: kevlo
MFC after: 1 week
2014-01-24 13:51:38 +00:00
Kevin Lo
56ae078529
Get rid of memmove(). It's not portable.
...
Tested on RT3071, RT3573, RT3570, RT3572, and RT5572.
Reviewed by: hselasky
2014-01-24 09:17:29 +00:00
Alexander V. Chernikov
5fa3fdd3d9
Reorder struct ip_fw_chain:
...
* move rarely-used fields down
* move uh_lock to different cacheline
* remove some usused fields
Sponsored by: Yandex LLC
2014-01-24 09:13:30 +00:00
Justin Hibbits
b65c25f54a
Fix 32-bit signal handling on ppc64. This was broken when the PSL_USERSTATIC
...
macro was changed. Since copying 64-bit srr1 into 32-bit srr1 drops the upper
32 bits, any bits set in the context were dropped, meaning the context check
fails. Since 32-bit set_context can't change those bits anyway, copy the ones
from the current context (td->td_frame) before calling set_context().
MFC after: 3 weeks
2014-01-24 02:57:00 +00:00
Ian Lepore
f2a7dc989c
Be more robust with malformed interrupt config data. Instead of crashing
...
or going into a near-infinite loop, warn and make potentially-reasonable
assumptions.
Reviewed by: brooks, nwhitehorn
2014-01-24 00:42:18 +00:00
Warner Losh
65e79cf474
clock-frequency is a FreeBSD-specific extention. Make it optional and
...
allow the client uart drivers to decide if a frequency is required.
2014-01-24 00:14:14 +00:00
Andrey V. Elsukov
524d7a4d4e
Always free sbuf in gctl_free().
...
MFC after: 1 week
2014-01-23 21:30:31 +00:00
Andrey V. Elsukov
d14a7ff1f5
Remove another unneeded NULL check from geom_alloc_copyin().
...
Do copyout in case of gctl version mismatch and fix sbuf leak in
g_ctl_ioctl_ctl().
MFC after: 1 week
2014-01-23 20:25:38 +00:00
John Baldwin
e07ef9b0f6
Move <machine/apicvar.h> to <x86/apicvar.h>.
2014-01-23 20:10:22 +00:00
Andrey V. Elsukov
7f0e13dfe0
In gctl_copyin() remove unused error variable.
...
geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
control request. Add check for NULL pointer in gctl_dump(), since it
can be NULL when geom_alloc_copyin() failed.
MFC after: 1 week
2014-01-23 19:55:02 +00:00
Andrey V. Elsukov
625ee733e3
Fix typo in r261084.
...
Add to the gctl_error() an ability to specify error description even
if numeric error code is already specified. Also by default set
error code to EINVAL.
PR: 185852
MFC after: 1 week
2014-01-23 19:31:17 +00:00
Andrey V. Elsukov
ee839ce84c
malloc() with M_WAITOK doesn't return NULL.
...
MFC after: 1 week
2014-01-23 19:07:22 +00:00
Warner Losh
df10106a87
Add Atmel serial drivers.
2014-01-23 18:09:10 +00:00
Konstantin Belousov
2852de0489
The posix_fallocate(2) syscall should return error number on error,
...
without modifying errno.
Reported and tested by: Gennady Proskurin <gpr@mail.ru>
Reviewed by: mdf
PR: standards/186028
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2014-01-23 17:24:26 +00:00
Hans Petter Selasky
2719d9c909
Revert r261014. Let Kevin fix it.
...
MFC after: 1 week
2014-01-23 10:18:28 +00:00
Neel Natu
36736912b6
Set "Interrupt Window Exiting" in the case where there is a vector to be
...
injected into the vcpu but the VM-entry interruption information field
already has the valid bit set.
Pointed out by: David Reed (david.reed@tidalscale.com )
2014-01-23 06:06:50 +00:00
Justin Hibbits
c821b4820f
Properly sort the arguments to mtx_init(9).
...
PR: misc/186020
Submitted by: alfred
MFC after: 1 week
2014-01-23 01:09:33 +00:00
Warner Losh
e79f350d87
Document EARLY_PRINTF
2014-01-22 22:25:48 +00:00
Alexander Motin
d0754f0829
Mostly revert r260267 and hopefully really fix the original problem.
...
The latest draft of SBC-3 tells: "A MAXIMUM UNMAP LBA COUNT field set to
a non-zero value indicates the maximum number of LBAs that may be unmapped
by an UNMAP command." To me it does not sound like that limit is set per
single descriptor, but rather per all command. And I have at least one
device that behaves exactly that way. This patch fixes the problem there.
MFC after: 1 week
2014-01-22 22:19:53 +00:00
Warner Losh
8c9dc67411
Clean up HL201 config (for the hot-e 201 and 101 models from thinlinx).
...
Make comments match parameters
Add options for early printf so we get regression build testing on it.
Add preview of options for FDT support coming soon (I hope)
2014-01-22 22:01:29 +00:00
Warner Losh
52e996ac52
Implement support for early printf. You need to define SOCDEV_{PA,VA}
...
as described in the comments for the eputc function in your config file.
2014-01-22 21:49:20 +00:00
Warner Losh
88b842d215
Add support for mapping a small range of the SoC devices for debugging
...
purposes early in boot.
2014-01-22 21:23:58 +00:00
Warner Losh
26fbe13c56
Implement generic support for early printf. Thought I can't find the
...
paper trail now, this patch is similar to one posted for one of the
preliminary versions of a new armv6 port. I took them and made them
more generic. Option not enabled by default since each board/port has
to provide its own eputc, and possibly do other things as well...
2014-01-22 21:20:08 +00:00