233819 Commits

Author SHA1 Message Date
christos
6d7ab7eb57 constify 2015-03-07 15:14:29 +00:00
christos
c0342a4ea1 - cleanup FreeBSD ifdefs
- remove unused code
- adjust to NetBSD struct emul and types.
2015-03-07 15:14:09 +00:00
christos
17b686e266 Add syscall provider build glue, unhooked. 2015-03-07 15:13:04 +00:00
jmcneill
22ca8619b1 i2c devices don't actually have a dependency on "iic" (the bus driver)
but on "i2cexec". Create an i2cexec module (i2c_exec.c) to mirror the
dependencies in files.i2c and switch device drivers to depend on "i2cexec"
module instead.

A kernel with a USB stack and no I2C controller / bus attachment would spit
out a bunch of "WARNING: module error: can't find builtin dependency `iic'"
messages at boot. This change solves that problem.
2015-03-07 14:16:51 +00:00
nonaka
c94850afe5 Fix radiotap and fixed rates. Radiotap was reporting the wrong rate for
data frames and fixed rates weren't really fixed and were converted into
the wrong hardware rate.

From OpenBSD rev.1.36.
2015-03-07 13:54:57 +00:00
khorben
e8ae7f4dcb Avoid kmem_free(NULL) in iwm_read_firmware()
This code path can be hit if the firmware failed to load, for instance
if the file is not present on the filesystem. In this case
firmware_open() fails, and fw->fw_rawdata never gets allocated in the
first place.
2015-03-07 11:52:53 +00:00
isaki
6abe86a4fd Reduce the number of loops.
It avoids timeout on slow machines, and I think that 100,000
times loop also satisfies the evaluation.
PR lib/49664 (no comments)
2015-03-07 09:59:15 +00:00
mrg
820bac9951 remove vga@isa and pcdisplay@isa from i386 GENERIC, and create a new
LEGACY kernel that includes them instead.  now radeon@pci is able to
properly claim wsdisplay0 on i386 systems, and radeondrmkms has a good
chance of working.

this "fixes" PR#49290.
2015-03-07 07:28:37 +00:00
christos
069781851d fix inconsistent names 2015-03-07 03:25:19 +00:00
christos
c035d553eb use __COMPAT so that we get argument expansion. 2015-03-07 03:19:06 +00:00
skrll
d12136cf04 Add an RPI2_INSTALL 2015-03-06 22:29:06 +00:00
christos
edbdebbcbb Dedup the NetBSD portion of the code (ok Riastradh), no functional change. 2015-03-06 22:24:05 +00:00
riastradh
1a0c0250a7 Pass cache-related flags through to the GTT on pre-SNB devices.
I had assumed for ages this would increase the amount of caching and
thereby increase the chance of stale caches leading to rendering
glitches.  But apparently I was wrong, and failing to pass these
through was causing all sorts of problems!
2015-03-06 22:03:06 +00:00
maxv
8bf6e1b17b Fix uninitialized variable.
Found by The Brainy Code Scanner in FreeBSD.
2015-03-06 19:03:30 +00:00
riastradh
f970967abf Create the nouveau device object so the driver can start.
I get a lot of messages on the console and then it hangs.  Progress!

Next to try with a breakfast console.
2015-03-06 15:39:28 +00:00
riastradh
e6fc8fc2b1 Fix tabbing of drm lines. 2015-03-06 15:09:50 +00:00
riastradh
0696cb6efa Spurious blank line. 2015-03-06 15:08:02 +00:00
nonaka
7941ecd32a RouterBOARD RB800 don't use u-boot. 2015-03-06 14:18:14 +00:00
riastradh
e979445ec8 Synchronize permission checks with upstream drm_ioctl_permit. 2015-03-06 14:02:39 +00:00
riastradh
d495674638 Simplify drm shenanigans with irrelevant irq numbers. 2015-03-06 13:44:18 +00:00
christos
285ccf0c47 rename NV_DEBUG to NVRAM_DEBUG 2015-03-06 12:41:05 +00:00
riastradh
59207580e6 Remove local definition of wbinvd. 2015-03-06 12:24:36 +00:00
riastradh
728f6d163b Use x86_mfence explicitly, not membar_sync, just to be clear. 2015-03-06 12:06:35 +00:00
wiz
dc088bc8d4 Remove empty line added in previous. 2015-03-06 12:01:20 +00:00
christos
ecd5a60074 add missing library 2015-03-06 11:51:26 +00:00
christos
56bb5331f6 XXX: Use only a single thread. We seem to have a bug in our threading code
that causes us to hang in the ksem code if we use more than one.
2015-03-06 11:49:30 +00:00
skrll
28e709c9a3 Add RPI2 to kernels build for both earmv[67].
Use the earmv6 built kernels to create an image that can be used on both
RPI and RPI2
2015-03-06 11:11:55 +00:00
mrg
d64a5577d7 wait for config_mountroot threads to complete before we tell init it
can start up.  this solves the problem where a console device needs
mountroot to complete attaching, and must create wsdisplay0 before
init tries to open /dev/console.  fixes PR#49709.

XXX: pullup-7
2015-03-06 09:28:15 +00:00
rtr
9f8f228daa Return EINVAL if namelen isn't large enough to encompass the expected
members of sockaddr structures. i.e. sa_len and sa_family.

Discussed with and patch by christos@
2015-03-06 03:35:00 +00:00
riastradh
09e70b50a6 Fix commented nouveau in amd64/GENERIC. Add nouveau to amd64/ALL.
Remove NV_DEBUG from amd64/ALL -- it breaks nouveau, and I can't find
any use of it in src/sys outside arch/atari/dev/nvram.c, which surely
has no relevance to amd64.

(Nouveau has an internal NV_DEBUG(...) macro for debug messages.)
2015-03-06 02:55:11 +00:00
riastradh
999436ee47 One last round for nouveau. It links! 2015-03-06 01:43:07 +00:00
riastradh
f994865553 Adapt drmkms_pci module initialization to work as builtin, for agp. 2015-03-06 01:24:24 +00:00
christos
1fe3f30303 Print syslog errors in one line, like we do for stderr so that the
duplicate line detection of syslogd can merge them.
2015-03-06 00:44:04 +00:00
jmcneill
e993b7b57c evbarm: Add support for ODROID-C1. 2015-03-05 23:46:54 +00:00
jmcneill
b7fbc144bb initialize amlogic cpufreq sysctls 2015-03-05 23:44:30 +00:00
jmcneill
d7a0c25861 CPU frequency scaling support, enough to bump my ODROID-C1 up to the
advertised 1.5GHz.
2015-03-05 23:43:53 +00:00
christos
5aa1e28d4a Write the loops the same way, leaving i containing the number of tries
left. Also break early in the hot case.
2015-03-05 21:13:48 +00:00
christos
0dc9dda4f2 properly include files so that modules work. 2015-03-05 20:19:30 +00:00
riastradh
8d3bbbe081 Factor out intelfb_is_vga_console to drmfb_pci. 2015-03-05 17:56:39 +00:00
riastradh
894a903bb9 Factor generic parts of intelfb out into a drmfb.
Adapting radeondrmkmsfb should not be hard.

This will make nouveaufb easier too.
2015-03-05 17:50:41 +00:00
riastradh
c48dc052b9 Rewrite drm_encoder_slave.c, as nouveau will need. 2015-03-05 17:42:48 +00:00
macallan
3b9ab10712 disable interrupts while processing them, reenable when we're done 2015-03-05 17:42:29 +00:00
riastradh
5ed5a417f5 Add an unused struct dev_pm_ops to <linux/pm.h>. 2015-03-05 17:35:56 +00:00
riastradh
851c4ebcd8 Reorganize Linux i2c header file and add a few more shims. 2015-03-05 17:29:18 +00:00
riastradh
2ee2d4e588 Include some necessary header files and forward declarations. 2015-03-05 17:24:36 +00:00
riastradh
39be2cc0ab Remove outdated comment. The ->dev.parent stuff is part of the API. 2015-03-05 15:02:36 +00:00
skrll
0cb7d62382 Appease a KASSERT - will be remove when MULTIPROCESSOR RPI2 is fixed. 2015-03-05 14:27:25 +00:00
nakayama
217608582b Fix strange kernel output sequence "\n\r" observed in serial
consoles.  Output '\r' before '\n' in conversion.
2015-03-05 14:02:55 +00:00
joerg
f022b767bf misc/48722: Use explicit HOST_SH in case the user insists on removing
permissions from the filesystem.
2015-03-05 10:22:25 +00:00
skrll
9dd16362f6 Rename hp700 to hppa and note new ld.elf_so hack. 2015-03-05 10:21:02 +00:00