Commit Graph

213240 Commits

Author SHA1 Message Date
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
skrll
192854d629 Typo in comment 2012-08-29 08:29:57 +00:00
matt
33f1e7498b Rename ARM options PROCESS_ID_IS_CUR{CPU,LWP} to TPIDRPRW_IS_CUR{CPU,LWP}
since TPIDRPRW is the cp15 register name.
Initialize it early in start along with CI_ARM_CPUID.
Remove other initializations.
We alays have ci_curlwp.
Enable TIPRPRW_IS_CURCPU in std.beagle.
[tested on a beaglboard (cortex-a8)]
2012-08-29 07:14:03 +00:00
matt
424810a580 Use ARMV6+ cpsi{d,f} instructions whenever possible. Use r7 to hold previous
mode and avoid recomputing it.  Add support for obtaining kernel_lock on
exception entry and exit.
2012-08-29 07:09:12 +00:00
matt
2650ef287e Avoid using r7 (which is being reserved for a different purpose). 2012-08-29 07:06:27 +00:00
matt
a2a4847ae6 Add required dsb/dmb instructions (or placeholders for them) required for
the weak memory ordering of the ARMV7-A architecture.
2012-08-29 07:04:14 +00:00
matt
e65c4f502b Use the correct prot mask in vector_page_setprot 2012-08-29 05:51:30 +00:00
matt
6eda05afeb Add an INSTALL variant for BEAGLEBOARD. 2012-08-29 03:54:03 +00:00
msaitoh
568a3a3a5a Don't add unwind.h stuff into BUILDSYMLINKS when MKGCC=="no".
Fixes "Wrong number of words (1) in .for substitution list with 2 vars" problem
while mknative-ing. Approved by mrg.
2012-08-29 03:12:08 +00:00
macallan
e73b198544 when in event mode, optionally pretend to be a USB keyboard
with this USB and ADB keyboards can coexist at the same mux, with X just
listening to /dev/wskbd instead of having to open each one separately
this can be controlled via sysctl, defaults to off for now
needs testing with non-US keyboards
2012-08-29 02:44:07 +00:00
macallan
ff1bd1aab8 support an optional table to translate scancodes when in event mode 2012-08-29 02:38:31 +00:00
christos
19d01c3be5 don't undef TRAP_SIGDEBUG 2012-08-28 15:54:40 +00:00
christos
b490177227 proper locking for DEBUG 2012-08-28 15:52:19 +00:00
gson
8b7093cae5 Skip test requiring /usr/bin/mandoc if it does not exist, as is the case
when text.tgz has not been installed.
2012-08-28 15:22:18 +00:00
christos
c796231d41 mention how to fix protocols. 2012-08-28 07:55:01 +00:00