Commit Graph

213154 Commits

Author SHA1 Message Date
msaitoh 3c8544b725 Enable VLAN hardware tagging on all chips that have the new queue mechanism.
Tested with 82575{EB,GB}, 82576, 82580, I350 and ICH9.
2012-08-30 23:14:20 +00:00
wiz d5a95690ed Add an s. 2012-08-30 22:35:37 +00:00
sjg aede2a76f4 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 22:09:58 +00:00
sjg 170700dd50 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 21:17:05 +00:00
wiz 686e48a4a3 Use more markup. Wording. 2012-08-30 12:42:41 +00:00
christos c9ffe47f54 bump date. 2012-08-30 12:32:07 +00:00
christos 8aaed51273 make config -x look at the booted kernel first. 2012-08-30 12:31:25 +00:00
drochner 8588929dc5 Add "consttime_bcmp" and "explicit_bzero" functions for both kernel
abd userland, as proposed on tech-security, with explicit_bzero using
a volatile function pointer as suggested by Alan Barrett.
Both do what the name says. For userland, both are prefixed by "__"
to keep them out of the user namespace.
Change some memset/memcmp uses to the new functions where it makes
sense -- these are just some examples, more to come.
2012-08-30 12:16:48 +00:00
matt 99af3c507e Add a new more KASSERT/KASSERTMSG 2012-08-30 02:26:38 +00:00
matt 2411d236db A few more KASSERT/KASSERTMSG. 2012-08-30 02:26:02 +00:00
matt b0d1f89948 Change KASSERT to KASSERTMSG 2012-08-30 02:25:35 +00:00
matt a91e719fd0 KASSERT -> KASSERTMSG 2012-08-30 02:24:48 +00:00
matt dfb595098c Give config thread more descriptive names. 2012-08-30 02:24:20 +00:00
matt ed51f1779c Use __cacheline_aligned 2012-08-30 02:23:14 +00:00
matt 8af4ccc21e Add a l1pte_supersection_p macro. 2012-08-30 02:10:15 +00:00
matt 52a89e8259 Teach pmap_extract about supersections. 2012-08-30 02:05:56 +00:00
macallan 86f21a33c1 add options ADBKBD_EMUL_USB to turn USB emulation on by default 2012-08-30 01:27:44 +00:00
matt 2ea337846d Add core locator to mainbus. Add support for attaching multiple CPUs 2012-08-29 23:16:35 +00:00
matt 72c1c71ead Don't use locations in .data to store exception temporaries, use decidicated
space in cpu_info instead.  This also moves undefined_handler_address into
cpu_info as well.
Use the new armreg* inlines for getting TPIDRPRW register.
Add MULTIPROCESSOR version of CPU_INFO_FOREACH
2012-08-29 23:10:31 +00:00
matt a9ceb00145 Add __stub_start and __stub_end symbols. 2012-08-29 22:43:57 +00:00
rmind 485da0c75c tlbflushg/i386: test for the PGE feature flag first, before checking the %cr4.
Add a comment explaining why need to check both and in such order.
2012-08-29 22:43:35 +00:00
matt 57281f1e48 Add __BIT(n) macro 2012-08-29 22:25:05 +00:00
bouyer 3fbad4acef Make vlan and all ip/ip6 checksum offload work for the I350.
On newer devices, when using the legacy TX descriptors, vlan-related flags
that were set on the last descriptor of a packet have to be set on the
first one.
For tso/checksum offloads, a new "advanced" descriptor format has to be
used.

Change wcd_txdescs to a union defining all types of descriptors (they
are all 16-bytes wide).
Define a new tx function wm_nq_start(), which handle newer devices.
There is some code duplication with wm_start(), but adding support to
the existing wm_start() would make it a if () {} else {} maze. This also
allows to get rid of some workaround for older chips that are not needed
here.
Use wm_nq_start() instead of wm_start() for the I350 (this should probably
be for all WM_F_NEWQUEUE devices, but I have no hardware but the I350 to
test). Call ifp->if_start() instead of wm_start() where is matters.

Tested on a I350, and a i80003 (which use the old format), both with and
without vlans, with and without checksum offloads.
2012-08-29 20:39:24 +00:00
drochner a01fe2e22b g/c unused struct member 2012-08-29 20:37:50 +00:00
wiz c9ea1856a7 Use new makemandb -Q flag to be really quiet. 2012-08-29 20:34:18 +00:00
wiz e93044e5ab Add -Q flag:
Print only fatal error messages (i.e., when the database is left in
an inconsistent state and needs manual intervention).

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-08-29 20:33:01 +00:00
matt 2101b6c77f Since the PMC cycle counter is started in cpufunc no reason to do so here.
Use curcpu()->ci_data.cpu_cc_freq and new armreg* inlines.
2012-08-29 19:10:15 +00:00
matt 1fe5d0826a Make all cortex and arm11 cpus uses writeback cached memories for pagetables 2012-08-29 18:56:45 +00:00
dholland 523ec9d4d8 Add missing newline to printf (in the disabled code for $ORIGIN). 2012-08-29 18:56:39 +00:00
dholland 3ab360cd87 Fix rcsid. 2012-08-29 18:52:31 +00:00
dholland 8c41afe697 Check for NULL *before* using ALIGN().
I don't remember what prompted this, but it's obviously a desirable fix
and I've been carrying it on a heavily-used machine for more than a year.
2012-08-29 18:50:35 +00:00
dholland 06b26cd86b Use more markup, fix English usage. 2012-08-29 18:46:13 +00:00
matt 94fc2c3493 Use ci->ci_data.cpu_cc_freq.
Use new armreg_* macros.
2012-08-29 18:45:40 +00:00
matt 50c23614d1 Remove undeeded struct device; 2012-08-29 18:44:56 +00:00
matt 31544537b4 Recode armv7_dcache_wbinv_all in asm. Add armv7_dcache_inv_all and
armv7_icache_inv_all as well.
Use dsb/dmb/isb instructions
2012-08-29 18:37:14 +00:00
matt 44d9b578fe always start PMC cycle counter for ARM11 and Cortex. 2012-08-29 18:29:04 +00:00
matt f7f3afd51f For OMAP3530/TIAM37XX and OMAP4430, read the PLL regisers and calculate the
real CPU clock rate.
2012-08-29 18:05:41 +00:00
matt bbab09f832 Use cpsid
Don't add mmu entries for overlapping entries.
2012-08-29 18:04:23 +00:00
matt 4ca7860616 Add some more OMAP4430 support.
Add defines needed to determine clock rates of OMAP3530/TIAM37XX and
OMAP4430.
2012-08-29 17:48:17 +00:00
matt 977dafe551 Use new armv7 CP15 register to print out cache types.
If the cpu_cc_freq is set, report it.
Add macros to make inlines for reading/writing co-processor registers.
2012-08-29 17:44:25 +00:00
drochner 312c339026 Extend the CPU microcode update framework to support Intel x86 CPUs.
Contrary to the AMD implementation, it doesn't use xcalls to distribute
the update to all CPUs but relies on cpuctl(8) to bind itself to the
right CPU -- to keep it simple and avoid possible problems with
hyperthreading.
Also, it doesn't parse the vendor supplied file to pick the right
part for the present CPU model but relies on userland to prepare
files with specific filenames. I'll commit a pkg for this in a minute
(pkgsrc/sysutils/intel-microcode).
The ioctl interface changed; compatibility is provided (should be
limited to COMPAT_NETBSD6 as soon as this is available).
2012-08-29 17:13:21 +00:00
matt 806b6455b1 Support PMAP_NOCACHE in pmap_kenter_pa 2012-08-29 17:08:41 +00:00
jakllsch 127dc8ba09 mvsata(4) DMA data structures are already __packed, but as the hardware
requires them to be 8-byte aligned, add __aligned(8) too, so that accesses
on strict alignment platforms are more efficent.
2012-08-29 16:50:10 +00:00
matt 2c1446baee Use curcpu() instead of l->l_cpu 2012-08-29 16:48:11 +00:00
matt 47befd3bb2 Fix typo. 2012-08-29 16:45:34 +00:00
christos b0fb40a0ab When unloading the nfsserver module, call nfs_fini() so that the nfsrvdescpl
pool gets destroyed. Otherwise we are left with a stray pool that points to
unmapped memory behind (and bad things happen). Typically you get seemingly
random page faults (without printing uvm_fault) that happen in various pool
operations. Most frequent one is the pool_drain() from the page daemon.
2012-08-29 14:00:22 +00:00
tteras 880340da60 From Roman Hoog Antink <rha@open.ch>: Accept DPD messages with cookies
also in reversed order for compatiblity. At least Cisco 836 running
IOS 12.3(8)T does this.
2012-08-29 12:01:30 +00:00
tteras 6c437507a2 From Roman Hoog Antink <rha@open.ch>: add remote's IP address to the
"certificate not verified" error message.
2012-08-29 11:34:37 +00:00
tteras f2b1919eeb From Roman Hoog Antink <rha@open.ch>: do not print unnecessary warning
about non-verified certificate when using raw plain-rsa.
2012-08-29 11:24:11 +00:00
msaitoh e093807b3b Remove unused variable. Approved by pooka. 2012-08-29 10:38:53 +00:00