Commit Graph

238304 Commits

Author SHA1 Message Date
christos
ba1fcfbf5a remove extra lint libraries now that those libraries are private. 2015-10-17 19:20:51 +00:00
nakayama
a78f012a79 LDPTR is defined in machine/asm.h. 2015-10-17 18:51:32 +00:00
jmcneill
71739b1918 nouveau_pci.c depends on nouveau_pci condition, not nouveau 2015-10-17 17:32:18 +00:00
jmcneill
ff4525543b remove tlb_flush define and change callers to use cpu_tlb_flushID directly, ok matt@ 2015-10-17 16:34:43 +00:00
jmcneill
f12750737e fix __OS_HAS_AGP=0 build 2015-10-17 16:17:22 +00:00
jmcneill
252c030555 include sys/cpu.h for CPU_INFO_ITERATOR 2015-10-17 15:57:32 +00:00
bouyer
06131c44e0 Implement CPU frequency switching for A20.
This requires adjusting the CPU voltage, so enable the axp20x driver for
A20 boards.
In evbarm/awin/awin_machdep.c, the DCDC powering up the CPU cores needs to
be defined for each board. The board machine-dependant code (at this time,
only awin_machdep.c) has to provide a awin_set_mpu_volt() function
which calls the right PMU driver to change the CPU core voltage.

The CPU frequency/voltage table in awin_board.c comes from various
sources: linux kernel, device tree and fex scripts, and experiments on
olimex lime2 and cubieboard 2.
The following sysctls are provided (compatible with estd):
machdep.frequency.min,machdep.frequency.max: writable lower and upper
   bounds of the useable frequencies. Affects machdep.frequency.available.
   Lower bound defaults to 700Mhz, as does linux.
   Upper bound defaults to 960Mhz, which is the boot frequency
   on the boards I tested. There is a 1008Mhz entry available,
   but requires an out of spec CPU voltage (more than 1.4V) so it's
   not available by default.
machdep.frequency.available: list of available frequencies. This is
   the CPU frequency/voltage table, bound by machdep.frequency.{min,max}.
machdep.frequency.current: current CPU speed. Write a new value to change
  the CPU speed, only values from machdep.frequency.available are
  accepted.
2015-10-17 15:30:14 +00:00
jmcneill
0a23657fe0 build on platforms without agp_i810 2015-10-17 15:13:39 +00:00
jmcneill
5e1b565005 machine/cpufunc.h is MD, move it to i386/amd64 block 2015-10-17 15:13:19 +00:00
bouyer
01c7135446 The A20 manual says that the pll6 output is (AWIN_REF_FREQ * n * k) / 2,
not (AWIN_REF_FREQ * n * k) / m (m is only used for the SATA clock).
On the boards I tested, m happens to be 2 so the correct value was returned
anyway.
2015-10-17 15:02:55 +00:00
bouyer
f614045b58 Factor out reading/writing CCM registers in macros 2015-10-17 15:00:45 +00:00
jmcneill
738258c98f Don't include ACPI headers unless NACPICA > 0 2015-10-17 14:54:10 +00:00
bouyer
0fe5c8c58f awin_cpu_clk(): Fix reading of CPU_CLK_SRC_CEL bits: doing a shiftin followed
by a shiftout ends up reading bits(0,1) instead of AWIN_CPU_CLK_SRC_SEL.
It happens that these bits (AWIN_AXI_CLK_DIV_RATIO) are 2 (divide by 3) at boot
(at last on cubieboard2 and olimex lime2), which matches
AWIN_CPU_CLK_SRC_SEL_PLL1, so this has gone  unnoticed.
2015-10-17 14:46:01 +00:00
jmcneill
4e97921379 mark this MODULE_CLASS_MISC as npf_init cannot run when builtin driver modules are initialized 2015-10-17 13:53:40 +00:00
jmcneill
abe8031d08 initialize MODULE_CLASS_DRIVER modules before the drivers themselves are loaded during autoconfiguration 2015-10-17 13:52:52 +00:00
jmcneill
23dfd71d21 Split nouveau@pci from nouveau so we can attach it to other busses.
nouveaufb still depends on nouveau_pci, but it is not applicable to
non-PCI devices anyway.
2015-10-17 12:02:44 +00:00
uwe
3ae7b58008 Fix x/y edito. 2015-10-17 00:35:25 +00:00
roy
8b04443cd8 Fix the problem of just having a valid interface name in dhcpcd_flags. 2015-10-16 18:06:22 +00:00
christos
1428ec3f79 remove advertising clause. 2015-10-16 17:38:17 +00:00
christos
50b513f12f remove clause 3. 2015-10-16 16:40:02 +00:00
bouyer
89cd17bc2b Avoid a divide by 0 when unplugging a sd card. 2015-10-16 14:22:25 +00:00
christos
d14bf0b7ec bump for printf/syslog format changres 2015-10-16 00:41:07 +00:00
snj
9132b388a1 evbsh5 is no more 2015-10-15 20:02:24 +00:00
roy
c95ec17135 Make mdnsd start before NETWORKING and require staticroute, mountcritlocal
and networking.
Fixes PR install/43313.
2015-10-15 16:47:28 +00:00
roy
cc3c06b611 Add support for parsing IPv6 nameservers found in resolv.conf.
Fixes PR bin/42196.
2015-10-15 16:14:40 +00:00
roy
f3b5e9756a Revert prior. Instead just send the diagnostic to debugf instead of syslog as it's not really that interesting. 2015-10-15 15:58:34 +00:00
bouyer
74a232a6a8 Fix dcdc3 voltage settings (s/dcdc2/dcdc3/g).
While there convert some aprint_normal to aprint_verbose
2015-10-15 13:48:57 +00:00
bouyer
1296b5d4de Implement sensor reports for power supplies (voltage and intensities).
Implement a callback to change DCDC2 and DCDC3 voltages, so that
CPU management can change CPU core voltage when changing frequency.
2015-10-15 13:41:11 +00:00
bouyer
33a5b918cf As proposed in
https://mail-index.netbsd.org/tech-kern/2015/10/14/msg019511.html
don't sleep on sme->sme_mtx in the callout but use mutex_tryenter()
and just reschedule the callout if we can't get the mutex now.
This fixes a deadlock which can happen if the backed wants to
sleep with timeout (e.g. cv_timedwait()) as the backed is called with
sme->sme_mtx held.

This is a stopgap measure for netbsd-7; sysmon should be changed to not
sleep (or call a backend which will sleep) with mutexes held.
2015-10-15 13:35:30 +00:00
nisimura
1328916b78 fix a board type check logic error that affected Linkstation and Kurobox (HG).
They were mistakenly recognized kurot4 type and ended up with kernel boot
failure.
2015-10-15 12:00:02 +00:00
roy
58056b4c20 Derive our primary interface and address by trying to connect to an
address in the TEST-NET-2 network as noted in RFC5737 instead of using
the 1.1.1.1 address. Also, use port 7 (echo) for better style.
Fixes PR bin/46758 thanks to Lloyd Parkes.

While here, if we do fail to connect to the test address, don't spam
this to the console as it's a common case during the boot sequence.
2015-10-15 11:21:53 +00:00
roy
89f3ce7080 If scheduling a probe or response is in the past or exactly now, schedule
it for now + 1 to avoid log file spam about not all probes being sent.
2015-10-15 10:29:57 +00:00
roy
5a3bbc9d90 Revert r1.5 now that the time calculations are using a monotonic clock. 2015-10-15 10:24:33 +00:00
roy
750bc52c86 Starting and stopping should be informational messages to avoid console
spam.
2015-10-15 10:15:18 +00:00
jmcneill
ccd2fe2bbc pull in sysmon_taskq 2015-10-15 09:07:49 +00:00
jmcneill
fe03655cf5 explicitly disable PCIe MSI as we dont support it yet 2015-10-15 09:06:04 +00:00
jmcneill
1a7da18157 disable SATA sleep feature 2015-10-15 09:04:35 +00:00
skrll
14a3507f6a No need to shout 2015-10-15 07:14:56 +00:00
skrll
18f77e70f0 Setting actlr.bit15=1 (Force in order issue in the branch execution unit)
makes my jetson tk1 stable.  Apply this workaround until we figure out
what the real problem is.
2015-10-15 07:13:50 +00:00
dholland
19d34e9eca Enable mounting lfs64 volumes. 2015-10-15 06:25:34 +00:00
dholland
6ada0ed75b Teach scan_ffs about lfs64.
(and also about byte-swapped lfs volumes, which might or might not
actually work)
2015-10-15 06:25:23 +00:00
dholland
06de5f4e56 Make dump recognize lfs64.
For now at least it will refuse to touch it though as it needs to be
taught more abstraction about directory entries; currently it blindly
uses struct direct from ffs and will croak on the lfs64 64-bit inode
numbers.
2015-10-15 06:25:12 +00:00
dholland
fbd9d636b3 Enable lfs64 in the cleaner. 2015-10-15 06:25:04 +00:00
dholland
ae64c38ebb Enable lfs64 in fsck_lfs.
(and in everything else that uses this code)
2015-10-15 06:24:55 +00:00
dholland
5191580c7d Enable lfs64 in dumplfs. Print LFS32/64 in the output header. 2015-10-15 06:24:46 +00:00
dholland
511153d2cc Enable the creation of lfs64 volumes.
To create an lfs64 volume, use -w 64. You can also force a 32-bit
volume with -w 32, but this will fail on devices thta are too large.

lfs64 is the default for devices > 1TB. (1TB rather than 2TB because
daddr_t is signed and negative block numbers can cause interesting
complications.)

For now print a warning that the lfs64 format isn't finalized, because
it isn't. For now any lfs64 use should be limited to test data,
benchmarking, and so forth.
2015-10-15 06:24:33 +00:00
dholland
960bd58eff Remove stray #define of lfs_magic
(the last of the fake superblock structure field macros)
2015-10-15 06:24:21 +00:00
dholland
ce301f42e4 For now bitflip the lfs64 magic number.
This will be unflipped when the format is finalized - right now I
still have pending changes to the superblock in mind (to reduce the
number of redundant fields) so anything created now is not future-
proof. However, the code's also nearing being ready for testing; so
I'm doing this before turning it on as a precaution.
2015-10-15 06:24:08 +00:00
dholland
1655608c85 Move stuff from struct ulfsmount to struct lfs. 2015-10-15 06:15:48 +00:00
dholland
3ca9387eb7 Include <sys/cdefs.h>, <sys/featuretest.h>, and <sys/ansi.h>
unconditionally, not only #ifndef _KERNEL. The kernel declarations
require cdefs.h and standard practice is to include cdefs.h where it's
used; they also require sys/ansi.h; and while they don't require
featuretest.h it's also harmless... and includes should be at the top
anyhow.

PR 46557 from Richard Hansen.
2015-10-15 06:15:22 +00:00