Commit Graph

125064 Commits

Author SHA1 Message Date
jmcneill
36be35bfb0 add some extra A31 registers 2014-10-10 23:50:43 +00:00
uebayasi
d424d94564 Normalize wscons devices (except leaving one strange definition). 2014-10-10 17:53:08 +00:00
jmcneill
01a697394d correct a typo in sd clk reg offsets for mmc>0 and dont bother with pll6_enable 2014-10-10 17:49:55 +00:00
jmcneill
736b5989bf add AWIN_GPIO_IGNORE_FW, remove no motg0 2014-10-10 17:49:12 +00:00
jmcneill
a68b36c3bc add an option for awin_gpio to ignore firmware pin reservations 2014-10-10 17:48:30 +00:00
uebayasi
0895dc7210 Normalize: acpicpu depends on acpi. 2014-10-10 17:44:17 +00:00
christos
6cf29cdbef PR/49259: J. Lorec: Add support for Realtek 8111G chipset into re(4) 2014-10-10 17:41:05 +00:00
uebayasi
16faa5e7a0 Normalize. 2014-10-10 17:38:44 +00:00
uebayasi
926a83f03a Make usb_dma & usbverbose independent attributes. 2014-10-10 17:31:12 +00:00
uebayasi
e500ebe9ee Normalize audio related definitions. 2014-10-10 17:21:20 +00:00
uebayasi
70d8786eec Sanitize athhal definitions. Depend on ath. 2014-10-10 17:09:18 +00:00
maxv
d1a6ffae94 I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
2014-10-10 16:29:56 +00:00
christos
ea07cbc753 PR/49270: Hauke Fath: Samsung NC10 Marvell Yukon ethernet not supported 2014-10-10 14:23:06 +00:00
uebayasi
3da6b6cc01 Define net attribute. Always select it for now. 2014-10-10 12:46:32 +00:00
uebayasi
ff1a9b99cc Move athn definitions. 2014-10-10 12:39:53 +00:00
uebayasi
89221fef3c Move audio related definitions. 2014-10-10 12:29:28 +00:00
uebayasi
b31f13fb95 To make sure that I'm not doing wrong, try to define ffs/ufs/vfs dependencies
a little more strictly.
2014-10-10 12:20:13 +00:00
uebayasi
92b86764e1 Bump config(1) version.
config(1) still keeps backward-compatibility; it is more permissive than
before.  The tree, however, needs the updated config(1), mainly to strictly
define attribute ("module") ownership and dependencies.
2014-10-10 12:10:02 +00:00
msaitoh
2d22d80ac8 - Support DH89XXCC devices.
- Add extra delay for 82580 and newer devices except DH89XXCC SGMII device.
  Same as FreeBSD.
2014-10-10 11:04:21 +00:00
uebayasi
b411015f8e Now that attribute dependency works, prefer it to options dependency (personal
preference).  Use it for "kern", depending on "machdep" and "uvm".
2014-10-10 10:25:00 +00:00
uebayasi
7449b0ef66 Use option dependency to always select KERN (and its dependencies). 2014-10-10 09:31:40 +00:00
uebayasi
46d7be3c23 Define "machdep" attribute and mark files (in amd64 and x86). 2014-10-10 09:13:21 +00:00
uebayasi
bb143539dc Use opt_*.h to not polute CPPFLAGS.
Attribute dependency is not yet.  Revert a definition.
2014-10-10 09:01:01 +00:00
uebayasi
ddd87a14b9 Define "uvm" attribute and mark files. 2014-10-10 08:24:54 +00:00
uebayasi
6fb100ce1c Define "kern" attribute (a.k.a module). Mark kern_*.c (and some others) as
"kern".  Always select "kern" in sys/conf/std.
2014-10-10 08:18:04 +00:00
uebayasi
c1e169afb0 Fix link echo indent. 2014-10-10 08:13:52 +00:00
jmcneill
16dc4dca31 Add Merrii Hummingbird A31 board specific info + kernel config. 2014-10-10 07:37:50 +00:00
jmcneill
6dff5668a0 Work-in-progress support for the AllWinner A31 SoC. 2014-10-10 07:36:11 +00:00
msaitoh
a479fc28f6 Fix bugs:
- aaa and daa were reversed. Same as *BSDs.
- fix operand order of shld and shrd. Same as *BSDs.
2014-10-09 18:34:24 +00:00
uebayasi
7a4efc30db Define a command to generate relocatable objects using ld -r. 2014-10-09 16:35:57 +00:00
ozaki-r
9acfc293f2 Add ETHERCAP_VLAN_MTU capability to vioif 2014-10-09 04:58:42 +00:00
ozaki-r
a87495cc1c Do KASSERT(KERNEL_LOCKED_P()) only when NET_MPSAFE off
When NET_MPSAFE, bridge_enqueue calls vlan_start w/o KERNEL_LOCK.
2014-10-09 04:48:12 +00:00
martin
bdbd5db812 More interrupt handling, more debug code, less magic numbers. 2014-10-08 18:24:21 +00:00
martin
bad1510796 Fix a few bits, add more status bit definitions and some comments.
Remove driver specific preference definitions.
2014-10-08 18:23:32 +00:00
taca
e8af77a953 Make behavior of getsockname(2) (and maybe getpeername(2)) as the same as
NetBSD 6.1_STABLE and other operating system (OS X 10.9.5).

* sa_len of sockaddr_un strucrure is always set to sizeof(sun_path).
* pathname stored in sun_path is alwasys '\0' terminated (except length
  of sun_path is sizeof(sun_path)?).

Should be fix PR kern/49247, runtime problem of lmtp service of dovecot2 on
NetBSD current and NetBSD 7.0_BETA.
2014-10-08 16:13:02 +00:00
macallan
4268f6a212 Ths has been sitting in my tree for years...
Allow the Xserver to map PCI IO space. Not needed for Sun-branded graphics
cards but Xorg can actually cold boot a few others, which will need it.
( if only to access standard VGA registers )
2014-10-08 10:30:27 +00:00
ozaki-r
91a7ee4dbe Add missing semicolon 2014-10-08 03:34:44 +00:00
ozaki-r
f0449171ba Don't turn promisc off in vioif_deferred_init if already configured as promisc 2014-10-08 01:45:14 +00:00
matt
80324f8437 fix some c&p bugs. 2014-10-07 21:32:10 +00:00
msaitoh
41b9704662 No functional change.
- 0 -> NULL
- Don't use cast.
- Style fix.
- Fix typos in comment.
2014-10-07 15:34:05 +00:00
he
89a215e851 Do the previous correctly... 2014-10-07 12:58:09 +00:00
he
d01de6e07a As is evidenced by several of our 32-bit MIPS ports, it's wrong to
print vsize_t with PRIx64 -- instead use our own PRIxVSIZE macro.
2014-10-07 11:37:06 +00:00
ryo
8bc1f582cb add support imx6 I2C Controller 2014-10-07 09:36:09 +00:00
ryo
506baf549a forgot to commit about changes of ccm 2014-10-07 09:32:47 +00:00
ozaki-r
5ffd005a96 Tidy up locking in wm_ioctl 2014-10-07 08:45:02 +00:00
mlelstv
4418265934 fwrev is a timestamp, print in decimal. 2014-10-07 08:37:18 +00:00
skrll
ceca98f903 Mailbox improvements from mlelstv@
Serialise access to the mailbox and use interrupts.

XXX if (cold) should go
2014-10-07 08:30:05 +00:00
ozaki-r
77ea368b90 Don't call ifmedia_ioctl with holding locks 2014-10-07 07:04:35 +00:00
skrll
0fe4d97eb3 IPL_BIO -> IPL_VM
No functional change. No code change... It's the same thing!
2014-10-07 06:44:38 +00:00
christos
1f0b2731c3 PR/49054: Uwe Toenjes: Some RAID controllers return more bytes in the
scsi 3 inquiry command than expected by the size of the scsi 3 inquiry
packet. This can be detected by looking at the additional_length field
returned by the scsi 2 inquiry. If that's the case, avoid doing the
scsi 3 inquiry because we can't handle the extra bytes later.
XXX: Pullup -7
2014-10-06 14:42:08 +00:00
he
60c92b53ed Make this build again without debugging enabled; DPRINTF() can end up
as empty, and in an if conditional, you then need braces if that's the
only potential body.
2014-10-06 14:26:44 +00:00
mlelstv
9763023615 use correct macro to handle subsys ids. Functional there is no
change, as both macros select the same bits.
2014-10-06 13:31:54 +00:00
ryo
68f5cbecd2 * add imxsnvs (rtc)
* add CUBOX-I config
2014-10-06 10:37:20 +00:00
ryo
3ff49e3b20 * resolve arm root clock from CCM to attach a9tmr
* don't match/attach imx6_ahcisata on iMX6 Solo/SoloLite/DualLite
2014-10-06 10:27:13 +00:00
ryo
434b4f0309 add support imx6 Secure Non-Volatile Storage (SNVS) real-time clock 2014-10-06 10:15:40 +00:00
manu
4cb6f55f7a Retore LP64 fix that was removed by mistake 2014-10-06 09:05:55 +00:00
msaitoh
b44ce84a74 s/genric/generic/ 2014-10-06 08:00:57 +00:00
msaitoh
e88bb7e539 Fix debug message. 2014-10-06 07:52:50 +00:00
msaitoh
ccce967123 Delete 82580ER related code. It was from FreeBSD and was removed in r203049. 2014-10-06 07:31:24 +00:00
msaitoh
35474d457d - Add some PCI subclass and interfaces.
- The interface of PCI_SUBCLASS_BRIDGE_RACEWAY is not decoded yet.
- Fix typo in a message.
- Add comment.
- Modify comment.
2014-10-06 07:15:56 +00:00
msaitoh
529a8b1f65 Add some devices. Not tested because I have no any of these devices/cards. 2014-10-06 07:09:30 +00:00
skrll
268d00d459 Some improvements that make playback mostly reliable for me - the final
piece of the jigaw is probably in vchiq:

- prefill vchiq with a number (currently 2) blocks of audio before
  starting

- use a kthread as workqueue isn't suited to our usage.

- don't drain on stopping as for some reason it leaves data behind.
2014-10-06 06:59:20 +00:00
manu
0671358a48 Improve zero-fill of last page after shrink fix:
1) do it only if the file is open for writing, otherwise we send write
requests to the FS on a file that has never been open.
2) do it inside existing if (vap->va_size != VNOVAL) block
2014-10-06 04:41:59 +00:00
apb
15239241e8 Add close brace, accidentally omitted from previous change. 2014-10-05 20:40:46 +00:00
christos
fcc36fa62d add tmpfs. 2014-10-05 20:17:28 +00:00
apb
f1dbec9add Safer definitions of DPRINTF and DPRINTF_VERBOSE.
In the PUFFSDEBUG case, wrap do { ... } while (/*CONSTCOND*/0)
around the definitions.  In the non-PUFFSDEBUG case, define them
as ((void)0) instead of as empty.
2014-10-05 14:13:14 +00:00
riastradh
3e23190f1c Get arguments in the right order for copyout. (Oops!) 2014-10-05 10:00:03 +00:00
justin
bc648e4794 Use PRIx64 for printing offsets 2014-10-05 09:28:24 +00:00
manu
2a5ce25ed0 If we truncate the file, make sure we zero-fill the end of the last
page, otherwise if the file is later truncated to a larger size
(creating a hole), that area will not return zeroes as it should.
2014-10-05 07:53:22 +00:00
nonaka
1701c4859b regen 2014-10-05 03:47:17 +00:00
nonaka
8b47fa56c1 Add Realtek RTL8152, RTL8153. 2014-10-05 03:46:56 +00:00
martin
d702252680 Make early console work on big endian kernels 2014-10-04 19:38:17 +00:00
jmcneill
02a08a84bb vendor_transfer_data_dma callback takes a struct sdhc_softc now 2014-10-04 18:10:04 +00:00
jmcneill
3789ad4242 pass sdhc_softc instead of sdhc_host to sc_vendor_transfer_data_dma, since the vendor specific code has no visibility into struct sdhc_host and can easily do device_private(sdhc_softc->sc_dev) 2014-10-04 18:09:32 +00:00
tsutsui
25a2e495cb Pull LUNA's framebuffer improvements by Kenji Aoyama from OpenBSD/luna88k.
http://marc.info/?l=openbsd-cvs&m=141199909120631&w=2
>> Use raster(logic) operation, or ROP, function on LUNA frame buffer.
>> It makes 4bpp wscons putchar ~20% faster.

This Makes 4bpp wscons putchar ~30% on LUNA-II.

Also use the similar ROP in 1bpp putchar and cursor functions
and the 1bpp putchar is also ~5% faster.
While here, reduce diffs from OpenBSD a bit.

Tested on all 1bpp/4bpp/8bpp framebuffers.
2014-10-04 16:58:17 +00:00
riastradh
3521230303 Canonicalize boolean result from test_and_set_bit.
Not actually semantically significant for any callers, but Linux
documentation insists it is important, so we'll follow suit.

Fixes last part of PR kern/48999.
2014-10-04 15:51:23 +00:00
martin
bda71f8e48 Initialize all bits of the GMAC clock register, add comments. 2014-10-04 15:25:15 +00:00
tsutsui
4d52a6286a Fix unintended RCS Id substitution. 2014-10-04 14:42:41 +00:00
hannken
e716e7d8d6 Change filecore to vcache.
Compile-tested only, was not able to get my hands on a readable fs image.
2014-10-04 13:27:24 +00:00
mlelstv
1c5fb5d101 be verbose about sysmon error.
enable monitoring.
2014-10-04 13:18:34 +00:00
macallan
0461faf0f5 pay attention to copyin()'s return values 2014-10-04 13:05:57 +00:00
riastradh
66f474049f Make uuidgen(2) generate v4 (random) uuids.
Rip out all the needless MAC address and date/time leakage.  No more
uuid_init necessary, nor contention over a global uuid state.

While here, simplify uuid_snprintf and fix a strict aliasing
violation.
2014-10-04 11:15:44 +00:00
christos
58f906ec2f correct error paths; still need to verify that the "didn't give us back..."
case is correct.
2014-10-03 20:56:24 +00:00
skrll
a15ffa77b8 Better error handling. 2014-10-03 17:57:48 +00:00
hannken
b09a3a32e3 When creating a vnode with vcache_get() mark the vnode VI_CHANGING until
it is fully initialised.  It may be on the specnode list before it is
fully initialised and revoking it then would panic.

Should prevent the panic from PR kern/49171 (panic when closing a pty).
2014-10-03 14:45:38 +00:00
skrll
004440d498 Introduce RPI_HWCURSOR and default to off. The existing code causes
problems with vchiq at the moment.
2014-10-03 11:40:54 +00:00
jmcneill
b433307a8e Use SDn_CLK_REG instead of MMC_CLKCR to setup bus clock; gives a nearly 2x boost in performance in HS mode. Also, make sure to setup PLL6 before probing clocks. 2014-10-03 11:23:29 +00:00
jmcneill
94d1b463fa add some more bit definitions 2014-10-03 11:21:56 +00:00
skrll
aa371464d5 Convert to USB_HIST.
From Takahiro HAYASHI with tweaks from me.
2014-10-03 11:05:36 +00:00
skrll
7123045127 Remove unneeded #include 2014-10-03 06:46:02 +00:00
justin
5fae769668 Use uint32_t for blocksize as per other uses and to fix warnings 2014-10-03 00:00:11 +00:00
justin
86efea3a92 Work around pedantic compiler 2014-10-02 23:07:30 +00:00
justin
0cf8ba0039 Use devmajor_t not int 2014-10-02 22:05:38 +00:00
justin
3507941446 dm_target_t reference count is modified with atomic_{inc,dec}_32 so should
be uint_32_t not int
2014-10-02 21:58:16 +00:00
jmcneill
cb216b0d9f debug ld_sdmmc with LD_SDMMC_DEBUG instead of SDMMC_DEBUG 2014-10-02 21:49:22 +00:00
justin
4460f134df Call prop_dictionary_get_uint32 with uint32_t 2014-10-02 21:29:44 +00:00
justin
1d1c6d781a devmajor_t not int 2014-10-02 21:01:38 +00:00
mlelstv
b3a6483917 Be a bit more verbose about errors, also pass through error code
from lower layer like other drivers.
2014-10-02 18:16:13 +00:00
mlelstv
3af8bee9f1 Fix divisor calculation for SDHC 3.0.
1/1   -> 0
1/2   -> 1
1/4   -> 2
...
1/2*N -> N
2014-10-02 18:14:38 +00:00
skrll
415cebe70d Fix reinoud-ification of KPLL offset. 2014-10-02 16:17:33 +00:00