230988 Commits

Author SHA1 Message Date
riastradh
dc59e56127 Generalize pci_find_rom and use it to locate x86 video ROM in drm2.
- Make pci_find_rom take the ROM `BAR' size as a parameter, instead
  of using pci_find_mem with the ROM `BAR' to detect the size.

- Use it to find the x86 video ROM in [0xc0000, 0xe0000) in drm2,
  when nothing else reports that location.

- Adapt the one other caller in radeonfb, which already has the
  maximum ROM size handy (romsz).

XXX pullup to netbsd-7
2014-10-16 12:31:23 +00:00
jmcneill
cca36663f6 A31 PLL7 support 2014-10-16 00:04:35 +00:00
jmcneill
a5b5ffc7d2 add A31 HDMI IRQ 2014-10-16 00:03:48 +00:00
jmcneill
dc5ed81224 fix some A31 clk init regs, add restrict gpio support 2014-10-16 00:02:47 +00:00
jmcneill
08c9af1a71 different pinset for A31 2014-10-15 23:29:46 +00:00
jmcneill
5bf6d3c6e2 A31 support 2014-10-15 23:29:24 +00:00
jmcneill
97f25684c7 add some A31 specific PLL7 and PIO regs 2014-10-15 23:28:37 +00:00
jmcneill
cfbc3ff230 motg works now 2014-10-15 23:04:08 +00:00
skrll
52d1add024 Fix dccmvau. Add bpimva. 2014-10-15 21:58:22 +00:00
justin
a99ba75e46 PR standards/49279 add tests for open_memstream, ported from OpenBSD 2014-10-15 21:55:34 +00:00
jmcneill
ad203b9d72 for A31 take otg out of soft reset, and correct offset of SRAM_CTL1 reg write 2014-10-15 21:47:48 +00:00
skrll
6ca7cdcdc7 Fix bpiall and the comment against bpiallis 2014-10-15 21:42:58 +00:00
snj
eebaae53ca Make the option to abort pkgsrc fetching/extraction actually work.
Previously, if the network was not set up and you couldn't fetch
pkgsrc, you'd get stuck here, unable to make it back to the parent
menu.
2014-10-15 21:38:39 +00:00
palle
c051cccc6e sun4v: fixed bug causing the real address to be incorrectly calculated as zero 2014-10-15 21:18:32 +00:00
christos
aa4e64f22b NB this does not work yet, it is a work in progress. 2014-10-15 19:20:29 +00:00
christos
abf6d4b3bf make this compile, pretending a lot that we are linux. 2014-10-15 18:44:49 +00:00
christos
355ccc569e PR/49284: Andreas Gustafsson: sysinst segfaults when configuring network
manually. When tzload() fails called from zoneinit(), when trying to set the
local timezone for the first time in tzsetlcl(), we end up with a lclptr
that contains garbage, so settzname() core-dumps.

Thanks Andreas for the analysis!
2014-10-15 15:13:45 +00:00
christos
14b4a4b149 From Ilia Zykov:
- correct some incorrect comments
- add XXX warning
- increase security by activating when get the slave
- make pty_vn_open() private to tty_ptm.c
2014-10-15 15:00:03 +00:00
christos
a25724438f PR/48201: Miwa Susumu: Fix set -C (no clobber) for POSIX; from FreeBSD
Can't use O_EXCL because of device nodes; also truncate.
2014-10-15 14:54:25 +00:00
hannken
668c7daae4 Change nilfs to vcache. 2014-10-15 09:05:46 +00:00
hannken
52473f33d5 Prepare nilfs for vcache:
- Calling getnewvnode() with "mp == NULL" is wrong.  Stop attaching a
  vnode to system file nodes and change nilfs_bread() to translate
  the block address and then uyse the device for the read.
- Move the vnode initialisation to nilfs_get_node() and use
  nilfs_get_node_raw() to initialise the nilfs node only.
- Same for nilfs_reclaim() versus nilfs_dispose_node().
- Change nilfs_get_node() to return an unlocked vnode instead of
  a nilfs node with locked vnode.  Adapt nilfs_lookup() and nilfs_root().
- Don't treat unsupported node types (blk, chr ...) as regular,
  return ENXIO instead.
- Fix nilfs_getattr() to mask the mode with ALLPERMS.
- Destroy sync_cv before free.
2014-10-15 09:03:53 +00:00
uebayasi
13634ff2cf Fix builds. 2014-10-15 08:14:44 +00:00
skrll
5936539e29 Whitespace. 2014-10-15 06:57:27 +00:00
mrg
d6a1b6b395 add a whole bunch of S.M.A.R.T. status i found around various sources.
now nothing on my new SSD is unknown, except #249.
2014-10-15 06:54:04 +00:00
uebayasi
6daf3913d5 dsrtc depends on sysmon_envsys. 2014-10-15 05:11:36 +00:00
jmcneill
1072b42a29 override CPUFLAGS and build with -mcpu=cortex-a7 2014-10-14 22:43:33 +00:00
jmcneill
642d511729 move cpu flags to makeoptios 2014-10-14 22:42:36 +00:00
skrll
0f479153c8 Use KM_NOSLEEP in install_coproc_handler. 2014-10-14 22:23:22 +00:00
jmcneill
f2c22d5022 AWIN_A31_DMA_IRQ_*_MASK should be ULL not UL, spotted by chuq 2014-10-14 21:01:13 +00:00
christos
bad357ce4f fix syntax error 2014-10-14 20:49:47 +00:00
christos
0230240a4a improve error checking (setting errno) 2014-10-14 20:35:40 +00:00
matt
b33445f590 armreg_tlbiasid_write -> armreg_tlbiasidis_write 2014-10-14 20:35:03 +00:00
christos
99e45faf20 summarize levels instead of printing dozens of them. 2014-10-14 19:50:57 +00:00
htodd
ca6756be1f Fix build. 2014-10-14 17:48:24 +00:00
uebayasi
faf6224be9 Don't enable wscons options without wscons. 2014-10-14 17:43:14 +00:00
uebayasi
8b7dd5554e Don't define wscons options without wscons devices. 2014-10-14 17:09:12 +00:00
christos
e47dca206e Don't use asctime(localtime(time_t *)) because this is really ctime(time_t *)
and not checking the result of localtime can lead to tears.
Add a safectime() that always returns a good string, and add some debugging
so that we can see if there is indeed something wrong in the new libc time
code.
2014-10-14 16:35:20 +00:00
christos
f32b4eb5ef for consistency use options.use_dns when getting the canonical hostname.
[we do the same below for hosts.allow and deny] reported by rudolf.
2014-10-14 16:15:18 +00:00
roy
15d73271e1 Tests for neighbour now work correctly on bridge(4) and carp(4) interfaces. 2014-10-14 15:29:43 +00:00
htodd
27d7ebfabc Comment out more USB options to to fix build. 2014-10-14 13:53:34 +00:00
skrll
98dd470eae Typo in comment 2014-10-14 12:31:14 +00:00
jmcneill
2d99d5f07d do as other allwinner boards and dont use sshramdisk 2014-10-14 12:00:22 +00:00
uebayasi
4a4afd820d INSTALL kernel for HUMMINGBIRD_A31. Blindly copied from RPI. Good enough
to fix build release.
2014-10-14 09:32:16 +00:00
nonaka
2fd9bc605b Avoid "unhandled relocation of type 3 for" error when load module.
"insmod zbsdmod.o" is successful now.
2014-10-14 08:33:38 +00:00
uebayasi
b349dc5c14 Revert troublesome ath_hal config definitions back to the original.
This means that, under the new config(1) modular build, if the option
ATHHAL_AR5210, that extends the ath driver to support AR5210, is selected,
the relevant 10 ar5210_*.c files end up being embedded into the "netbsd.ko"
module, which is pretty much opposite of modularity.
2014-10-14 08:17:27 +00:00
matt
15819bafbf Use tlb is variants for MULTIPROCESSOR 2014-10-14 08:03:13 +00:00
uebayasi
1af1e581aa Revert implicit attribute (module) declaration for options (flag/param).
Flag and param are to change contents of attributes (modules).  These don't
have code (*.[coS]).

Filesystem definition still defines an attribute (module) implicitly.
2014-10-14 08:00:27 +00:00
martin
be3005a074 Provide C++ 2011 <atomic> support functions for hppa and arm. 2014-10-14 07:25:05 +00:00
bouyer
5266e8ff9b Add a missing || defined(XEN) which cause Xen non-DIAGNOSTIC kernels
to panic at boot.
2014-10-14 06:59:58 +00:00
jnemeth
debcdd0290 Force x86_xsave_features to 0 when running under XEN for AMD
processors.  This prevents the use of xsave and xrstor thus fixing
the problem in PR/49150.  The basic problem is that the way AMD
implements those instructions means that information can leak
between domains so XEN treats them as privileged.

XXX If anybody else comes up with a better / more "proper" fix, go
for it.  However, this solves the problem I was having.  And, given
that XEN being broken is pretty much a show-stopper for a release,
something needed to be done.
2014-10-14 03:16:56 +00:00