Commit Graph

124403 Commits

Author SHA1 Message Date
rmind
b1889f11ee - npf_conn_import: add a missing stat counter increment.
- npf_nat_import: add a missing reference and make a comment.
2014-08-24 20:36:30 +00:00
joerg
45c6ebd5f6 Revert last, bump required config version instead. 2014-08-24 20:23:38 +00:00
palle
5f4732d296 Initialize IOMMU control and status register properly - from OpenBSD - ok mrg@ 2014-08-24 19:09:43 +00:00
palle
f1503a8db0 Generalize the code to allow for arbitrary interrupt wirings - with this change the serial console is usable on Sun Fire V445 systems - from OpenBSD - ok mrg@ martin@ 2014-08-24 19:06:14 +00:00
apb
497135b74d Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>.  Use multiple -e options instead.
2014-08-24 18:27:16 +00:00
matt
bf06458dd9 Add entry for kern/kern_ksyms_buf.c 2014-08-24 16:42:46 +00:00
maxv
8db2bbfd52 Ensure nbytes > 0. Otherwise bad things may happen.
Compile-tested only.

ok christos@
2014-08-24 12:48:58 +00:00
jmcneill
c23681cc0d pull in opt_arm_debug.h for VERBOSE_INIT_ARM 2014-08-24 12:42:03 +00:00
mlelstv
044affb986 use RAW_PART to trigger read of disklabel, other units might by busy due
to discovered wedges.
2014-08-24 12:18:21 +00:00
nonaka
61876aebbe fix typo. (s/MODULE_DEFAULT_AUTOLOAD/MODULAR_DEFAULT_AUTOLOAD/) 2014-08-24 11:36:11 +00:00
tsutsui
22f9ddb84f Add new arcofi(4) audio driver for NetBSD/hp300, ported from OpenBSD.
The arcofi(4) is a driver for the HP "Audio1" device
(Siemens PSB 2160 "ARCOFI" phone quality audio chip)
found on the HP9000/425e and HP9000/{705,710,745,747} models
(but only hp300 attachment is ported for now).
The chip supports 8-bit mono 8kHz U-law, A-law and
16-bit mono slinear_be formats.

The old HP9000/425e playing tunes with this new arcofi(4) audio driver
was also demonstrated at Open Source Conference 2014 Shimane.
2014-08-24 08:17:44 +00:00
jnemeth
ee79d5b0e4 Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR".  This
option turns on module autoloading by default (which is the current
default).  This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.
2014-08-24 07:59:22 +00:00
martin
f0b5a13b43 Fix a few logical vs. physical port number confusions to make this
driver work with two port variants.
2014-08-23 21:37:56 +00:00
dholland
fe275f49d7 Add missing COMPAT_{50,60,70} lines, commented out or not as per the
COMPAT_40 line.
2014-08-23 21:10:20 +00:00
dholland
9abf1a6b70 Add options COMPAT_44, which controls mostly MD code but should be in
here anyway.
2014-08-23 21:05:39 +00:00
dholland
4acb6306f5 Systematize (and in many cases, fix) the comments on options COMPAT_NN.
There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
2014-08-23 20:26:56 +00:00
riastradh
fd20828015 Another round of nouveau whack-a-mole. 2014-08-23 08:03:33 +00:00
matt
794ed9d503 Fix cmpptr/cmpreq/etc to use right mnemonics 2014-08-23 02:21:44 +00:00
jakllsch
02930256c2 Fix what is almost certianly an off-by-one error when configuring pads on
AM335x for BPP greater than 16.
2014-08-22 20:01:16 +00:00
jakllsch
2911d0aae1 Support WSDISPLAYIO_GET_FBINFO ioctl in tifb(4). 2014-08-22 19:59:18 +00:00
jakllsch
b3eb8c6c2b tifb can support 32 and 24 BPP framebuffer modes; pull in corresponding raspos
support.
2014-08-22 19:44:04 +00:00
hannken
d0fd8c21fa Use mount from argument "mp", "vp->v_mount" is not valid here.
PR kern/49142 (panic in ext2fs_loadvnode mounting an ext2fs filesystem)

Needs pullup to -7
2014-08-22 16:49:30 +00:00
riastradh
46b6cca670 Revert to mapping the whole GTTMMADR region all at once for now.
This was split up so we could map the GTT prefetchable without
interfering with the MMIO registers, but it interferes with old drm
which tries to map the whole region and which is still hooked up for
the moment.

Once we unhook old drm for good we can put this back.
2014-08-22 15:26:28 +00:00
pooka
272d41f121 Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
2014-08-22 14:28:58 +00:00
pooka
b41a4e160f Nuke the DOMAINADD() macro and just call domain_attach(), now that things
work correctly that way.
2014-08-22 11:34:28 +00:00
pooka
71c14bfaa2 Change the meaning of the boolean parameter to domaininit().
was: attach route domain if found from domains link set
now: attach any domain which is found from domains link set

No functional change to monolithic kernel.  In a rump kernel, which
attaches networking domains "modularly", prevents domains from
accidentally leaking in via the link set in static linked scenarios.

Problem reported by cube, Tom Bousso, and the voices in my head.
2014-08-22 11:28:03 +00:00
pooka
08f38d958e Build virtio components as part of RUMPPCIDEVS 2014-08-22 09:58:55 +00:00
pooka
db494c8796 Add a rump kernel component for ld@virtio. 2014-08-22 09:57:05 +00:00
skrll
32f3cf5261 Remove unnecessary #include 2014-08-22 09:49:13 +00:00
pooka
d7b8f51b8f Add a rump kernel component for the vioif virtio network interface. 2014-08-22 09:48:54 +00:00
pooka
e125b93131 Add a rump kernel component for the virtio bus. 2014-08-22 09:45:29 +00:00
christos
83a84c1bf3 over-initialize for the benefit of gcc 2014-08-21 15:43:35 +00:00
martin
0bf2d320c8 Revert previous, we have restores ABI for {u,}int_fast_*_t. 2014-08-21 15:27:37 +00:00
reinoud
f873bdb932 Fix I2C naming for HDMI 2014-08-21 14:06:39 +00:00
reinoud
252f8540f5 Correct minor TX_CTRL_0_ guess and document the INTR interrupt control
register bits from the lan9730 docs. No functional change.
2014-08-21 14:02:10 +00:00
macallan
f8303d815f #if 0 code to map the VGA BIOS
I've been unable to find any code that actually uses the mapping and we may
want to read the ROM from drm2.
If no users show up within a week or so I'll delete it.
2014-08-21 13:52:22 +00:00
christos
9171ceed70 revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.
2014-08-21 12:25:01 +00:00
skrll
673e836663 More tidyup after joerg's copy&paste disaster. I have ddb symbols again. 2014-08-21 07:57:25 +00:00
matt
b6a0909548 Revert back to 1.7. 2014-08-21 06:48:04 +00:00
maxv
5f2f7d8e15 Remove dead returns:
return VAR/func(XX);
	return VAR;

The latter is never reached. Sent on tech-kern@, no disagreement.
2014-08-21 06:40:35 +00:00
joerg
64bc057870 Drop stray } 2014-08-20 22:02:20 +00:00
tsutsui
c07d3ea4e7 Sync with sparc/dev/fd.c rev 1.155.
> Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

Note sun3 still uses gcc 4.5.4 but also panicked by this old bug,
so probably this problem was triggered by not gcc 4.8 but struct disk
changes (struct disk_geom was added in <sys/disk.h> rev 1.58),
which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes.
(i.e. now struct fd_softc could be allocated in a different pool block,
 probably near the wrong pointer of the struct disklabel)

Anyway, this fix should be pullued up to netbsd-7.
(probably I'm the only user of floppy on sun3 though)
2014-08-20 17:48:57 +00:00
riastradh
f7a0cd6406 Add some Linux list routines. 2014-08-20 15:26:52 +00:00
riastradh
f40a74cd43 Drop take the {ttm,gem} vmobjlock in the fault handler.
- We don't need this lock.
- uvm does nothing between taking it and calling the fault handler.
- Now that the uvm_aobj shares vmobjlock with the {ttm,gem} uvm
  object, we must not hold the lock when we call uvm_obj_wirepages on
  the uvm_aobj.

XXX pullup to netbsd-7
2014-08-20 13:48:08 +00:00
msaitoh
07fcf9a40c Regen. 2014-08-20 08:00:39 +00:00
msaitoh
9eeedb9728 BCM5714 and BCM5780 are used for both copper and fiber. 2014-08-20 08:00:18 +00:00
macallan
f190e8714e don't blindly assume that PAGE_SIZE == 4kB
Now X works again.
2014-08-20 00:40:33 +00:00
jnemeth
0e7c8bd031 Sync with sparc/dev/fd.c:1.155.
Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

I'm not sure why this 18 year old bug didn't cause problem before
(at least my old 5.99.23 kernel worked), but probably it's triggered
by new gcc 4.8 which might do more aggressive memory allocation.
The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4).

Should be pulled up to netbsd-7.
2014-08-19 18:20:51 +00:00
reinoud
5d42d105e8 Implement i2c using gpio for Exynos5 and Odroid-XU 2014-08-19 16:18:15 +00:00
matt
ef1ba863e5 Compute u<type>_max by doing 2u<x>*type_max+1u<x>. 2014-08-19 15:46:46 +00:00