211883 Commits

Author SHA1 Message Date
bouyer
db81001feb ata(4): added support for sata Port MultiPliers (PMP) 2012-07-02 18:16:46 +00:00
bouyer
03c9df05c6 Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed
2012-07-02 18:15:44 +00:00
rkujawa
733cb53a6d Update minimal requirements. Note Mediator PCI 1200 support. 2012-07-02 18:13:13 +00:00
jdc
231bfcd1e8 Increase the retry count in sparc64_send_ipi(), and add loops in
mp_pause_cpus() and mp_resume_cpus().
Fixes "RED State Exception" on an 8-way E3500, and allows it to enter and
leave DDB without failing to pause or resume one or more CPU's.
2012-07-02 15:40:33 +00:00
reinoud
d520097578 Fix missing <stdarg.h> include that breaks the autobuild 2012-07-02 12:17:12 +00:00
jdc
9f36442988 Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260:
- add an additional watchdog for RX overflow
  - re-initialise the chip on device timeout
Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
2012-07-02 11:23:40 +00:00
rmind
26e7cf9436 npf_packet_handler: fix gcc unused warning. 2012-07-02 06:55:58 +00:00
wiz
7cb804ff06 xz-5.0.4 out. 2012-07-02 06:52:20 +00:00
chs
4eb9a76aac in cpu_boot_secondary_processors(), wait until all the other CPUs
have registered themselves in kcpuset_running before returning.
recent changes to the TLB invalidation xcall code assume that
any CPU which will receive a broadcast IPI is registered in
kcpuset_running, so ensure that is true by waiting here.
2012-07-02 01:05:48 +00:00
rmind
33b678d7e0 NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.
2012-07-01 23:21:06 +00:00
rmind
b92d93cc0e Remove the wrapper of frag6_input(), restore the behaviour changed in r1.50.
Fix ip6_reass_packet() wrapper used by NPF.  Remove #if 0 code for handling
overlaping fragments - IPv6 desupported them anyway.  Convert to kmem(9).
2012-07-01 22:04:44 +00:00
rmind
3ec265e103 npf_state_tcp: fix for FIN retransmission and out-of-order ACK case. 2012-07-01 18:13:51 +00:00
wiz
f1915787a7 Remove weird markup. 2012-07-01 17:00:32 +00:00
christos
a7743d3cd2 bump date 2012-07-01 16:18:00 +00:00
perry
3f1917e0e7 forgot the "7"... 2012-07-01 16:17:06 +00:00
perry
27021da1cf Add reference to rfc6056.7 2012-07-01 16:09:12 +00:00
nonaka
cd7cbaa2da regen. 2012-07-01 04:21:10 +00:00
nonaka
74ab589a0b Add NTT DOCOMO L-02C entry. 2012-07-01 04:20:26 +00:00
jym
6f78ccc10d Use setter to set xenguest_handles. 2012-06-30 23:36:20 +00:00
rmind
de067e16be trap: move out info printing to trap_print() on amd64, reduce the differences
between amd64 and i386, add lowest kernel stack address.
2012-06-30 23:33:10 +00:00
jym
4b5a093d68 Extend the xpmap API, as described in [1]. This change is mechanical and
avoids exposing the MD phys_to_machine/machine_to_phys tables directly.
Added:

- xpmap_ptom handles PFN (pseudo physical) to MFN (machine frame number)
translations, and is under control of the domain.
- xpmap_mtop is its counterpart (MFN to PFN), and is under control of
hypervisor.

xpmap_ptom_map()      map a pseudo-phys address to a machine address
xpmap_ptom_unmap()    unmap a pseudo-phys address (invalidation)
xpmap_ptom_isvalid()  check for pseudo-phys address validity

The parameters are physical/machine addresses, like bus_dma/bus_space(9).
As x86 MFNs are tracked by u_long (Xen's choice) while machine addresses
can be 64 bits entities (PAE), use ptoa() to avoid truncation when bit
shifting by PAGE_SHIFT.

I kept the same namespace (xpmap_) to avoid code churn.

[1] http://mail-index.netbsd.org/port-xen/2009/05/09/msg004951.html

XXX will document ptoa/atop/trunc_page separately.
2012-06-30 22:50:36 +00:00
christos
cc70084500 add -w as an alias to -m 2012-06-30 21:31:15 +00:00
tsutsui
c0aba6b3c5 Use 32KB/4KB for default block/fragment size on >= 128 GB partitions
for modern AFT disks.  No particular comments against PR install/46629.
2012-06-30 15:34:01 +00:00
reinoud
e631798833 Move i386 and amd64 usermode configurations to their respective directories
and make the usermode kernels buildalbe under build.sh.

The resulting kernels are build and packaged correctly as are the associated
modules.
2012-06-30 15:03:56 +00:00
tsutsui
d1cc886ce4 Fix buffer overrun (off by one). PR port-atari/42717 2012-06-30 12:42:37 +00:00
tsutsui
2c05e4d76c Add a sanity check if secsize returned from getdisksize() isn't bogus.
This prevent possible panic "panic: buf mem pool index 23" later in
vfs_bio.c:buf_mempoolidx().
(I'm not sure if it's okay for getdisksize() to assume that
 partinfo taken from DIOCGPART is properly initialized
 on all disk(9) devices or not)

See also:
http://mail-index.NetBSD.org/source-changes/2012/06/30/msg035298.html
2012-06-30 11:01:41 +00:00
tsutsui
4403aae449 Make sure that disklabel of md(4) device is initialized
in the case where it's configured in MD md_open_hook().

Without this, msdosfs_mountfs() (which is called from msdosfs_mountroot())
will be called with uninitialized disklabel (d_secsize == 0) and
it gets "panic: buf mem pool index 23" later on atari.
This is because getdisksize() doesn't check returned d_secsize value
and msdosfs_mountfs() blindly calls bread(9) with size==0 in that case.

Should be pulled up to netbsd-6 (at least for atari).
2012-06-30 10:52:31 +00:00
tsutsui
72647cb972 Add a dirty hack for atari's ancient installation ramdisk:
Forcibly configure md0, md1, and md2 devices before setroot()
 for atari's traditional "auto-load from floppy on open" md_root device
 which loads installation ramdisk image from floppy.
 md(4) has been changed dynamically configured at first open after 5.0
 and md devices won't appear in "root device:" prompt without this hack.
Tested on TT030.

Should be pulled up to netbsd-6.
2012-06-30 10:37:00 +00:00
tsutsui
916bfee100 Simply use "mount -u" to (re)mount root file system read-write
rather than denoting it using temporary /tmp/.root_writable file,
because it will never be removed if root file system is on floppy.
Fixes PR port-atari/37470.

Should be pulled up to netbsd-6.
2012-06-30 10:20:26 +00:00
jdf
6f43071798 Replace wrong variable type (s/ITEMS/ITEM). 2012-06-30 09:25:55 +00:00
yamt
b4228b70f2 implement descriptor passing. 2012-06-29 13:20:25 +00:00
yamt
46583bd0ea handle realloc failure 2012-06-29 12:51:38 +00:00
blymn
74bbb55e87 * Size argument for memset when clearing cbuf was wrong, cbuf is an array
of char not int so memset was stomping memory past the end of the array.
  Use sizeof properly to correctly determine the amount of memory to clear.
2012-06-29 10:40:29 +00:00
rkujawa
df72fa039f Obtain sc using device_private(), cosmetic changes. 2012-06-28 18:55:03 +00:00
tsutsui
cdf2f43563 Fix typo in __KERNEL_RCSID(). 2012-06-28 17:53:42 +00:00
kefren
690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
matt
f892497c8e Don't panic if you can't allocate a contiguous stack for system threads.
Just use a mapped a stack.
2012-06-28 15:28:44 +00:00
abs
927d767b2b drop some blank lines - no functional change 2012-06-28 13:59:55 +00:00
abs
d58ef031eb dependent not dependend 2012-06-28 13:59:25 +00:00
abs
0a805bc0a7 Define and use VS_REGS_KA49 rather than magic numbers. From OpenBSD. 2012-06-28 13:58:21 +00:00
abs
6643654a8a Include racd0 and racd1 on ramdisk 2012-06-28 13:53:49 +00:00
abs
f8f196e8f9 Fix the build by adding (unused) flags argument to perfuse_node_setattr_ttl 2012-06-28 13:53:13 +00:00
roy
d56846af22 Don't attempt to parse a termcap/terminfo string ourselves;
always use tputs(3).
2012-06-28 08:55:10 +00:00
rmind
4940c18bab Fix and update npf.conf(5), npfctl(8) and its usage message. 2012-06-27 23:05:28 +00:00
jdf
6e4b17c46b Small fix: Changed 'Nm .' to 'Nm' (introduced by me before). 2012-06-27 22:57:27 +00:00
jdf
ebac77ef57 Various formatting changes:
* Remove superfluous Pp macro (fixes mandoc(1) warning)
 * use Xr macro instead of Nm where appropriate
 * escape punctuation (so Ic actually 'sees' it) (fixed mandoc(1) warning)
 * remove redundant argument to successive Nm macros
 * remove double spaces

Patch supplied by Bug Hunting.
2012-06-27 22:31:26 +00:00
wiz
f5a8bbde20 Bump date for previous. 2012-06-27 22:23:45 +00:00
jdf
dfc0f5280b Add manpage link entries for libmenu, reformat MAN entry.
On the way, sort the mi list for comp alphabetically.
2012-06-27 22:18:06 +00:00
riastradh
9a313cc58d Clean up #includes in progress(1).
Sort them, omit needless ones, and add omitted needful ones.

Omissions revealed by pilfering the code and trying to build it on
Mac OS X.  We ought to have a better way to reveal these omissions...
2012-06-27 22:07:36 +00:00
riastradh
28dbe22a81 Elaborate and clarify rules about #include order.
ok christos
2012-06-27 22:04:02 +00:00