Commit Graph

251201 Commits

Author SHA1 Message Date
wiz
a35802ce9a New sentence, new line. Remove trailing whitespace.
Fix typos. Use more markup. Sort sections. Sort SEE ALSO.
2017-05-29 08:41:57 +00:00
wiz
bd404f8f85 Bump date for previous. 2017-05-29 08:03:13 +00:00
msaitoh
64b17b2a86 Print MSI Message data in 32bits when the Extended Message Data Capable bit
is set.
2017-05-29 07:09:20 +00:00
pgoyette
ab0ef58f9d Add TU/Tango-Uniform --> "tits up" 2017-05-29 06:54:01 +00:00
christos
703982a7f9 remove ugly profiling hack now that the compiler is fixed. 2017-05-29 03:52:43 +00:00
christos
dd61a7a6c2 remove bogus indirect call for profiling (mcount) 2017-05-29 03:51:24 +00:00
ozaki-r
ce18feac4c Remove unmaintained (and probably unmaintainable) driver list
ok msaitoh@
2017-05-29 03:41:53 +00:00
ozaki-r
cff9bd3422 Call in6_ifdetach only if in6_present (for rump)
Otherwise ifconfig -vlanif causes a panic on a rump_server without
the netinet6 library.

Reported by s-yamaguchi@IIJ
2017-05-29 02:55:49 +00:00
nonaka
b204e19293 nvme(4): Don't set prp1 for DEL_IOCQ
> NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ).
> Remove what is likely a cut'n'paste error from the *_ADD_* code.

from OpenBSD nvme.c r1.56.
2017-05-29 02:25:37 +00:00
nonaka
0fb17da218 nvme(4): Do not use bus_space_{read,write}_8() even on LP64 archs.
> some (broken) controllers require ordered split transfers.
> From linux a310acd7a7ea53533886c11bb7edd11ffd61a036

from OpenBSD nvme.c r1.53.
2017-05-29 02:24:00 +00:00
nonaka
74b492829e nvme(4): Mask non relevant bits when pritting version number.
from OpenBSD nvme.c r1.52.
2017-05-29 02:20:34 +00:00
riastradh
8aa6b6b474 Omit description of fstrans_mount/unmount too. 2017-05-29 01:51:55 +00:00
riastradh
84ba7395ce No more need to call fstrans_mount: vfs does for us now. 2017-05-29 01:49:42 +00:00
jmcneill
81bc83c155 Add a facility for platform-specific callbacks and use it to remove most
of the Tegra-specific code from tegra_machdep.c.

Platform code matches on the compatible property of the root ("/") DT node
and allows for chip-specific implementations of the following:

 - devmap: Return a 0-terminated list of static device map entries.
 - bootstrap: Early initialization of platform-specific facilities.
 - early_putchar: Provides an implementation of putchar for use in early
     debug messages.
 - device_register: Platform-specific device register callback.
 - reset: Platform-specific CPU reset implementation.
 - consinit: Platform-specific console init implementation.
2017-05-28 23:39:30 +00:00
jmcneill
52da870ca3 Remove unused tegra_dma_tag 2017-05-28 23:32:14 +00:00
jmcneill
43e0601b00 Add a few bootconfig helpers:
- get_bootconf_string: returns a copy of the "value" part of a k=v pair
     as a string.
 - match_bootconf_option: returns true if the "value" part of a k=v pair
     exists and the supplied val param is present in the beginning of the
     k=v pair's value.
2017-05-28 23:31:41 +00:00
alnsn
9a921db489 Cosmetic changes to Lua binding in bozohttpd.
- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
  doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
  manual. Those functions may throw (longjump) and leak data allocated
  by C function. In one case, I use luaL_Buffer, in the other case,
  I rearranged calls a bit.
2017-05-28 22:37:36 +00:00
nat
a606fd2d43 Now that the scope of setting the gain is limited, the hack for /dev/sound
no longer applies.
2017-05-28 21:36:18 +00:00
nat
f754162ddf Set the gain of play back, rather than altering the generated wave by a
factor of volume.
2017-05-28 21:15:58 +00:00
nat
9cd68355c2 The scope of setting the gain for playback or recording is now limited to
operating on the volume of its virtual channel.
2017-05-28 21:12:59 +00:00
martin
f115750a3f Revert previous, the needed signals are not easily accessible on
CUBIETRUCK
2017-05-28 18:39:58 +00:00
wiz
7db2a5730e New sentence, new line. Punctuation fixes.
Get rid of unnecessary \*[Lt], \*[Gt].
2017-05-28 18:23:22 +00:00
hannken
e4e82d96c7 Restrict vgone() to suspended file systems only.
Welcome to 7.99.75, old file system modules would cause a diagnostic
assertion with new kernel.
2017-05-28 16:39:41 +00:00
hannken
56074bee21 Change ext2fs to use vcache_new like we did for ffs:
- Change ext2fs_valloc to return an inode number.
- Make ext2fs_makeinode private to ext2fs_vnops.c and
  pass vattr instead of mode.
2017-05-28 16:38:55 +00:00
hannken
f8f707e163 No need to call vgone() on the just created in file system log vnode,
vput() is sufficient.
2017-05-28 16:37:55 +00:00
hannken
1ed4b9f274 Suspend file system for vgone(). 2017-05-28 16:37:16 +00:00
hannken
5dc331fb8e When a vnode has an invalid type because the type changed on the
server replace vgone() with new operation smbfs_uncache() that
removes the vnode from the name cache and changes the vcache key
to an unique and illegal key to prevent further lookups.
2017-05-28 16:36:37 +00:00
hannken
a8045334ce Add a helper to propagate file system suspension for vrevoke().
Take care to retry suspension on interrupt as vrevoke must succeed.
2017-05-28 16:35:47 +00:00
jmcneill
6ba64aa73d Add facility for fdt devices to register reset and poweroff handlers.
Use this to remove as3722-specific code in tegra_machdep.c
2017-05-28 15:55:11 +00:00
christos
1e8894c3ea undo previous; we don't have any archs where socklen_t != uint32_t. 2017-05-28 14:53:13 +00:00
christos
35f2dad6cc fix format. 2017-05-28 14:49:00 +00:00
mlelstv
48439a854c release key_mtx on return path. 2017-05-28 14:16:05 +00:00
kre
d6a4153fe2 Redo mkoptions.sh .. much better this way, now fully automated
option sorting (no longer required option.list to be manually
sorted by long option name) and properly handles conditional
options.   Cleaner output format as well.

This allows option.list to be reordered to group related options
together ... also added more comments to it.
2017-05-28 14:14:22 +00:00
kre
a5e8ad6bb0 Needs %zu fix for sizeof as well. 2017-05-28 13:55:07 +00:00
martin
98ff51a40d Add (commented out) can bus options, CUBIETRUCK is also A20 based. 2017-05-28 11:15:59 +00:00
martin
bb62327044 Fix size_t format strings 2017-05-28 09:35:01 +00:00
macallan
8e9e89c07f g/c some unused / #if 0-ed goop, support firmware-provided EDID, get rid of
private list of video modes
tested on macppc, should Just Work(tm) on sparc64
2017-05-28 05:27:13 +00:00
nat
e1c6c0762d bt_lock is now used as the audio interrupt lock. This is more appropriate
as the interrupt lock deals with the hardware.

btsco audio works again with the new audio changes.
2017-05-28 04:12:13 +00:00
jmcneill
5ec28b3732 Enumerate CPUs, GIC, and generic timer using FDT data instead of relying
on hard-coded tables in mainbus.
2017-05-28 00:40:20 +00:00
jmcneill
a840d4dc98 Add CPUs ("/cpus" node) driver. CPUs is a container of cpu nodes. 2017-05-28 00:38:40 +00:00
kre
f359a311bc Arrange for set -o and $- output to be sorted, rather than more
or less random (and becoming worse as more options are added.)
Since the data is known at compile time, sort at compile time,
rather than at run time.
2017-05-28 00:38:01 +00:00
jmcneill
46a6e1093a Add a generic armv7 bus dma tag. 2017-05-28 00:34:51 +00:00
jmcneill
f6da8e34fe Move children of armperiph to the "mpcorebus" interface attribute and have
armperiph declare support for it.
2017-05-28 00:32:46 +00:00
jmcneill
446d257186 Don't assume that the root autoconfiguration device is named "mainbus". 2017-05-28 00:30:49 +00:00
jmcneill
439bf4cce8 If the "frequency" property is not specified, try to use the value in
CNTFRQ. Firmware should have already set this for us.
2017-05-28 00:29:55 +00:00
jmcneill
7780d9ea44 Change first pass from 1 to 0. 2017-05-28 00:28:17 +00:00
bouyer
f3e8ca4e98 Add options CAN and pseudo-device canloop to ALL kernel configs.
Add the same commented out to i386/amd64 GENERIC and OLIMEXLIME2 (A20-based).
Also add commented out awincan0 in OLIMEXLIME2.
2017-05-27 22:53:29 +00:00
bouyer
ddcfa75974 Update status of bouyer-socketcan 2017-05-27 21:06:26 +00:00
bouyer
1f23490b7e Note can(4) 2017-05-27 21:05:02 +00:00
bouyer
6e4cb2b9ab merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
2017-05-27 21:02:54 +00:00