Commit Graph

129679 Commits

Author SHA1 Message Date
pgoyette
78da7b9d09 Always include the "vfs" attribute (module). Although all of the
ufs/xxx file systems depend on the vfs attribute, it is not required
that any file system actually be built-in to the kernel.  (At least
on some architectures, file system modules can be loaded at boot
time.)
2015-11-14 07:31:13 +00:00
marty
4b1d0b9529 SNAPSHOT: DOES NOT BOOT
First crack at configuration files for the Hardkernel ODROID XU4.

This kernel hangs attempting to write to the console early in boot.
2015-11-14 07:15:58 +00:00
jakllsch
d7a3612ef4 Jetson TK1 u-boot sets up PCI IO space in an impossible-to-use
configuration.  As we're already allocating resources on the PCI
bus, set up our own mapping of PCI address spaces into the ARM
address space.  We rely on a potential overlap of address space
windows to allow us to use the same bus_space_tag for PCI Memory
and IO spaces.

The PCI attachment of the onboard re(4) uses PCI IO space in
preference to PCI Memory space for register accessses.  As IO space
was impossible to use, we had to avoid IO space.  This is now no
longer the case, so set up and enable IO space for PCI devices.

Also, map ROM BARs.
2015-11-14 03:44:52 +00:00
pgoyette
ceb937987d Fix obvious typo - even though it is inside a #ifdef notyet ... #endif 2015-11-14 03:25:53 +00:00
jakllsch
abb2550c2b Correct TEGRA_PCIE_A[123] window definitions. Replace existing
usages thereof (and related bus space handles, etc.) with more
appropriate names.
2015-11-14 02:10:10 +00:00
jakllsch
2d20fb4592 Increment TEGRA_PCIE_SIZE
It's a size, not a last-valid-offset.
2015-11-14 02:00:42 +00:00
jakllsch
7db0ebe36b add more AFI BAR register offsets 2015-11-14 01:38:58 +00:00
jakllsch
cd9c845187 We don't need to use any particular value, but use the actual interrupt
number for the PCI_INTERRUPT_LINE.
2015-11-14 01:31:08 +00:00
jakllsch
d87d62cffa Limit configuration space access to the non-emulated busses to legacy
PCI_CONF_SIZE.  Extended configuration access is possible, we just have
to implement it without wasting up to 256MiB of KVA.
2015-11-13 18:58:17 +00:00
jakllsch
6ec5e36849 validate emulated bus 0 configuration space access more carefully 2015-11-13 18:52:16 +00:00
jakllsch
719b0036a7 drop white space on empty line 2015-11-13 18:23:17 +00:00
phx
d91190d038 Make sure the graphics device which has the console gets wsdisplay0,
otherwise neither virtual terminals nor Xorg's wsfb driver will work.
2015-11-13 16:04:07 +00:00
pooka
d5e7c6e861 Fix bug in readdir loop condition.
Reading all dirents using a small buffer and multiple calls now works.

Bug found by "Shamar" on #rumpkernel
2015-11-13 13:36:54 +00:00
skrll
c5325a8d39 Tweak the KASSERTs in pmap_update in the ARM_MMU_EXTENDED case - Lazy
updating is not done on the kernel pmap.

PR port-arm/50420: curcpu()->ci_pmap_cur != pm || pm->pm_pai[0].pai_asid == curcpu()->ci_pmap_asid_cur" failed
2015-11-13 08:04:21 +00:00
skrll
60c5270f27 Wrap long lines. 2015-11-13 07:55:18 +00:00
msaitoh
9ec2b1dc37 Fix register offset to print HyperTransport registers correctly. 2015-11-13 03:56:44 +00:00
christos
cce9b2f24e remove extra semicolons. 2015-11-13 01:37:19 +00:00
christos
2a5df0a68f Use the new DK_DEV_BSIZE_OK() macro. 2015-11-12 15:28:07 +00:00
christos
ce52e80579 Add DK_DEV_BSIZE_OK() 2015-11-12 15:25:22 +00:00
joerg
a3e166507d Ensure that the callout of the multicast address is valid before
hooking it up.
2015-11-12 15:01:06 +00:00
phx
599bbc23d0 Use the MD_BTOP() macro as replacement for m68k_btop() in all device
drivers which are shared with amigappc.
2015-11-12 12:19:49 +00:00
msaitoh
d40faa45fb - Restore pci_subr.c rev. 1.135's change in pci_conf_print_caplist().
As wrote in the comment, HyperTransport capability appears multiple times.
  pci_conf_cap() reruns only the first entry, so it can't be used here.
- Try to decode HyperTransport capability. Currently, the capability type
  of each HyperTransport capability is printed and only the MSI Mapping
  capability is decoded.
- Style change.
2015-11-12 12:17:59 +00:00
msaitoh
e2a104e557 PCI_HT_CAP() is right shifted value, so PCI_HT_CAP_* should not use
__SHIFTIN(). This change fixes a bug that HyperTransport system misunderstand
whether MSI/MSI-X can be used or not.
2015-11-12 12:08:13 +00:00
phx
656c43404f Xorg for amiga via wsfb. Currently available on CV64 and CV64/3D. More
graphics cards will follow, when adding wscons support to them.

I didn't manage to make the "wskbd" protocol the default in the X server,
so you have to provide a small xorg.conf with Option "Protocol" "wskbd".
The standard protocol will not work as the Amiga wskbd cannot be switched
into raw mode and has no AT-scancode translation in the kernel.

On the positive side, wskbd also works with national keymaps under X.

The graphics modes can still be defined via grfconfig(8). Xorg's wsfb
driver uses the current grf video mode, which is usually mode #1.
All resolutions and depths seem to work (tested on CV64).
2015-11-12 12:01:53 +00:00
hannken
fa45966e6d Take the vnode lock before the vnode is marked VI_CHANGING and fed
to vclean().  Prevents a deadlock with two null mounts on the same
physical mount where one thread tries to vclean() a layer node and
another thread tries to vget() a layer node pointing to the same
physical node.

Fixes PR kern/50375 layerfs (nullfs) locking problem leading to livelock
2015-11-12 11:35:42 +00:00
jmcneill
7017cd79aa change some register dumps from aprint_verbose to aprint_debug 2015-11-12 10:49:35 +00:00
jmcneill
f96884bf2d enable NFSSERVER (mostly to silence module warning) 2015-11-12 10:48:30 +00:00
skrll
dea60533fa Drop to spl0 after the pmap_activate call. Should address
PR port-arm/50420: curcpu()->ci_pmap_cur != pm || pm->pm_pai[0].pai_asid == curcpu()->ci_pmap_asid_cur" failed

Discussed with matt@ and rmind@
2015-11-12 10:47:30 +00:00
jmcneill
d01d2885b0 Standard mode for I2C needs a source divider of 20, not 2. 2015-11-12 10:31:29 +00:00
christos
799fe5d0c9 fix incorrect memset. 2015-11-12 02:06:36 +00:00
jmcneill
8f23c6b18a Use GEM for memory management. Fixes a couple issues while here:
- No longer needs to allocate 35MB (!) for framebuffer console.
 - Allows xrandr to switch to modes larger than the framebuffer console.
 - Removes hack that redirected mmap calls to wsdisplay0
2015-11-12 00:43:52 +00:00
pooka
4ff6638b3d Make it easier to create rump kernel components, part 1.
Reduce copypasteware for the component constructors.  If a constructor
calls only config_init_component(), handle it from a common source file
instead of copying the same(ish) file around to every component.
2015-11-11 21:52:45 +00:00
skrll
3c7b72e03f Support pmap_pv_track and friends 2015-11-11 17:54:17 +00:00
jmcneill
623e6e8f00 not used by tegradrm 2015-11-11 16:41:52 +00:00
phx
272a1c3817 Build instructions and Makefile for loadbsd 3.0.
Submitted by Gunther Nikl.
2015-11-11 16:08:52 +00:00
jmcneill
36039cde22 fix RB_POWERDOWN test 2015-11-11 14:50:08 +00:00
jakllsch
5886266433 enable cd(4) in JETSONTK1 2015-11-11 14:04:12 +00:00
jmcneill
317868fba7 make VDD_CPU programming a bit easier to understand, and while here, actually program it to 1.4V as intended instead of 1.39V 2015-11-11 12:49:10 +00:00
jmcneill
578cf4f763 support RB_POWERDOWN using the AMS AS3722 PMIC when available 2015-11-11 12:37:52 +00:00
jmcneill
6c9f612895 add support for optional RB_POWERDOWN handler 2015-11-11 12:37:13 +00:00
jmcneill
ed128037ab enable as3722pmic 2015-11-11 12:35:40 +00:00
jmcneill
6163890252 Add basic driver for AMS AS3722 power management IC 2015-11-11 12:35:22 +00:00
jmcneill
b63e88b170 only send repeat start if we are doing write-then-read 2015-11-11 12:28:15 +00:00
jmcneill
c2d1bfbdc1 fix i2c periph clock, send repeat start for write-then-read xfers 2015-11-11 11:32:01 +00:00
skrll
0eca66f9fd Fix XEN build - does XEN really want/need pmap_pv_track? 2015-11-11 08:51:33 +00:00
skrll
0ab5498d57 Remove #if 0 / #endif includes 2015-11-11 08:22:36 +00:00
skrll
b70033bc21 Split out the pmap_pv_track stuff for use by others.
Discussed with riastradh@
2015-11-11 08:20:22 +00:00
knakahara
fd06f20054 fix CID 980463 2015-11-11 03:57:57 +00:00
knakahara
e96c855269 fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
    ====================
    # ifconfig gif0 create
    # ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
    # ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
    # route add 10.1.0.0/24 172.16.0.1

    # ifconfig gif1 create
    # ifconfig gif1 tunnel 192.168.0.1 192.168.0.3

    # ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
    ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
    # ping 10.1.0.1
    (panic)
    ====================
2015-11-11 02:57:17 +00:00
jakllsch
5eed5f1c78 Only sync and unload dma map in ahci_atapi_complete() if appropriate.
Fixes ahcisata atapi cd(4) on arm (specifically, JETSONTK1), which insists
that a zero-length dmamap can not be synced.
2015-11-11 02:43:09 +00:00