Commit Graph

231803 Commits

Author SHA1 Message Date
tsutsui 7839e5ad38 Specify -fno-strict-aliasing as a temporary workaround for gcc48.
The existing abcksum() also violates strict-aliasing rule
(while current gcc48 doesn't warn it) and fixing all violations
strictly requires whole reorganization of boot sector structures.
But it won't happen soon and this MD installboot should be integrated
into MI installboot(8) in future, and it requires whole overhaul anyway.
See long discussion in source-changes-d@ for details.

Should be pulled up to netbsd-7 if we switches m68k to using gcc48.
2014-11-24 07:52:04 +00:00
tsutsui e21ac01aa6 Revert previous again.
There are claims that it still violates strict-aliasing rule and
it is no sense to just appease compiler by incorrect implementation.
2014-11-24 07:34:45 +00:00
christos a48f666bb3 avoid shadowing a new global. 2014-11-24 04:06:13 +00:00
christos a27531bc87 Print the shared lock(s) before we panic, to aid with debugging. 2014-11-24 02:36:31 +00:00
christos 43dbf6a651 Don't return early when the incorrect size is passed to some of the
ptrace actions. Leaves locks dangling and causes panics with lockdebug.
XXX: Pullup 7
2014-11-24 02:34:04 +00:00
riastradh 1c5f6cac84 Fix bounds checking in hdmi_infoframe_header_pack (PR kern/49411). 2014-11-24 01:27:07 +00:00
jmcneill 8c78a09f95 Set GMAC pin drv level 3 on A31 2014-11-23 23:05:19 +00:00
jmcneill f46fabee94 Let pinsets override the default multi-driving select level. 2014-11-23 23:04:58 +00:00
matt 0c8fe4cc79 Fix bus_dmamap_sync usage. 2014-11-23 22:42:14 +00:00
snj 6479d57f85 Fix pasto: BPI.local, not CUBIEBOARD.local 2014-11-23 20:02:37 +00:00
christos 3c3f7bb88a - generate the list of disks only once and select from them later
- don't generate empty/useless files when disklabel or dkctl don't have data
2014-11-23 16:36:03 +00:00
riastradh 70976b8e2d Back out previous, fix PR kern/49411 correctly.
frame->header.length is not initialized in the vendor packet case.
Instead, make hdmi_infoframe_header_pack take the packet length and
subtract the size of the header when packing the header.

(Could make it take the payload length instead, but for callers it is
more convenient to have a name for the whole packet length.)
2014-11-23 16:16:29 +00:00
riastradh fb9a4560bd Use correct length for hdmi_infoframe_header_pack in <linux/hdmi.h>.
Fixes PR kern/49411.
2014-11-23 16:07:10 +00:00
christos aeb66be189 - pass the proper argument vector so that subcommands can use getopt.
- add -q and -e for listwedges.
2014-11-23 15:43:49 +00:00
jmcneill a6b86496f0 The SoC RTC works on this board but does not seem to be hooked up to the
battery. Thankfully, there is a PCF8563 attached to TWI2 at address 51h,
so use that instead.
2014-11-23 13:42:06 +00:00
jmcneill 77165bfb6b Don't assume that U-Boot has enabled the TWI clock. Also, for A31, set
the "iflg-rwc" device property for gttwsi.
2014-11-23 13:39:58 +00:00
jmcneill e96eca77a3 On Allwinner A31 you need to set the CONTROL_IFLG bit to clear it. Add
a "iflg-rwc" property to enable this behaviour.
2014-11-23 13:37:27 +00:00
jmcneill c7b9f2a541 When this code was split from dev/pad, the "volume" member size was changed
from u_int to uint8_t. This had the unfortunate side-effect of introducing
an integer overflow when adjusting samples as the largest type used was now
int16_t. This change copies the volume level to a temporary u_int and uses
that in the calculation. Should fix recent failures with the
dev/audio/t_pad/pad_output test.
2014-11-23 12:23:25 +00:00
martin 2d00f56cae Revert previous change to dwc_gmac_txintr() - while it looks strange at
first sight (and sorry I didn't spot it when reviewing), it is a small
optimization and actually correct.
Add a comment explaining it.
2014-11-23 11:08:16 +00:00
ozaki-r 87318503e5 Pull workqueue_destroy out of sme->sme_mtx
workqueue_destroy may sleep so we shouldn't run it with holding a mutex.

Requested by riastradh@.
2014-11-23 10:00:20 +00:00
skrll 17576ebebe Fix TPIDRPRW_IS_CURLWP builds.
A MULTIPROCESSOR kernel requires TPIDRPRW_IS_CURCPU.
2014-11-23 09:05:23 +00:00
christos e79caf8a7d avoid shadowed variable 2014-11-23 02:15:52 +00:00
agc 996632d6d1 Since the netpgpverify rewrite to have no external pre-requisites, the
output format for signatures has changed cosmetically (mainly
whitespace changes).  Re-format all the test cases so that the tests
now pass again with the new output format:

	Tests root: /usr/tests/usr.bin/netpgpverify

	t_netpgpverify (1/1): 2 test cases
	    netpgpverify_dsa: [0.261980s] Passed.
	    netpgpverify_rsa: [0.237469s] Passed.
	[0.509571s]

	Summary for 1 test programs:
	    2 passed test cases.
	    0 failed test cases.
	    0 expected failed test cases.
	    0 skipped test cases.
2014-11-23 01:56:35 +00:00
joerg 5d029cc2d6 Replace very question pointer games to override const, mark the member
writeable when inside the guts of the library.
2014-11-23 01:47:59 +00:00
joerg 0eb7324297 Provide the timeout argument to ahci_exec_fis in ms. Use 1ms delays
when we are not allowed to sleep, full ticks otherwise.

Bump the timeout for reset to 100ms, 10ms is not enough on the
Cubietruck.
2014-11-23 01:38:49 +00:00
joerg d01eb0e62c Preserve const. 2014-11-22 19:50:28 +00:00
joerg 3283ff71d1 Replace void * cast with proper __UNVOLATILE. 2014-11-22 19:50:00 +00:00
martin 270da7da9e Fix copy and pasto in #ident 2014-11-22 19:48:36 +00:00
mrg eea473d2a5 regenerate mknative files for m68000 now that the build actually completes.
this includes a hack matt@ found -- remove -fPIC from libgcc's defs.mk, i
have not yet figured out how to stop confgiure adding it.
2014-11-22 19:42:11 +00:00
mrg e4e7131a68 use --disable-shared on m68000 for mknative. 2014-11-22 19:41:27 +00:00
riastradh 9d31117bb7 Move all PCI/AGP code back to drmkms_pci module where it belongs. 2014-11-22 19:18:07 +00:00
joerg c2aaccdb97 Drop casts in favour of expressions that actually give the right
pointer.
2014-11-22 18:50:49 +00:00
jmcneill 24d51e99b6 - Add MII flow control support
- Set "disable jabber" and "auto padding/CRC stripping" bits in MAC conf
- Write intr mask to intr mask register, not status
- Setup both TX and RX burst modes
- Setup both TX and RX store & forward modes
- Correct an issue with the "end" descriptor passed to dwc_gmac_txdesc_sync
  in dwc_gmac_tx_intr

ok martin@
2014-11-22 18:31:03 +00:00
njoly 854606c981 Do not define LINUX_EDEADLK more than once. 2014-11-22 15:47:42 +00:00
macallan a36351c4b7 initial support for CI20 / Ingenic JZ4780
not much there yet, it loads, attaches a serial port and you can drop into
ddb
2014-11-22 15:17:01 +00:00
macallan 4f148df791 deal with quirk in Ingenic UARTs
( they have a bit in the FIFO control register which turns the entire
  port off if not set )
2014-11-22 15:14:35 +00:00
ozaki-r 5a85ab2f56 Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.

In this case, we need to pass an interlock to callout_halt to wait for
the callout complete. And also we make sure that SME_CALLOUT_INITIALIZED
is unset before calling callout_halt to prevent the callout from calling
callout_schedule. This is the same as what we did in sys/netinet6/mld6.c@1.61.

Reviewed by riastradh@.
2014-11-22 15:09:30 +00:00
macallan a85f210ee9 deal with Ingenic XBurst CPUs 2014-11-22 15:02:39 +00:00
ozaki-r 881a9e1b06 Kill sme_callout_mtx and use sme_mtx instead
We can use sme_mtx for the callout as well. Actually we should do so
because sme_events_list and some other data that are touched in the
callout should be protected by sme_mtx, not sme_callout_mtx.

Discussed with riastradh@ in http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html
2014-11-22 15:00:05 +00:00
njoly 9405b4121e Regen for Atheros AR3012 2014-11-22 14:31:53 +00:00
njoly dd4b487ba9 Add Atheros AR3012 2014-11-22 14:30:57 +00:00
njoly cedf843908 Regen for ppoll signature fix 2014-11-22 13:20:35 +00:00
njoly cc18605e8e Fix ppoll signature (int ->u_int) 2014-11-22 13:18:45 +00:00
njoly aee571df11 Regen for ppoll(2) 2014-11-22 13:13:10 +00:00
njoly f43d462ab6 Add ppoll(2) for compat linux32. 2014-11-22 13:12:22 +00:00
mlelstv c3fa2622e8 fix iobuf setup, cleanup 2014-11-22 11:59:33 +00:00
mlelstv 1ce49d85e0 If the boot argument "root" cannot be parsed as a device name, pass the
string untranslated to MI code. Due to limits in the boot argument parser
the string is terminated by whitespace.
2014-11-22 11:10:22 +00:00
mlelstv 68774bf92e Let MD code provide boot disk information as spec string that can be
parsed by MI code. The format is the same as provided by an embedded
'root on <rootspec>' string in the config file. An embedded string
(other than a wildcard) still takes precedence.
2014-11-22 11:04:57 +00:00
mlelstv 16fb494383 don't crash if rootspec is invalid 2014-11-22 10:24:02 +00:00
cherry 57125a688b Wait until all cpus are online, before using the codepath
which syncs all per-cpu cached copies of L4 tables.
(On both x86_64 and i386/pae)

This avoids an early bootup mutex use before mutex init situation.

Reported by manu@
2014-11-22 06:45:08 +00:00