Commit Graph

191818 Commits

Author SHA1 Message Date
kiyohara 0fe9881406 Implement pci_attach_hook/pci_bus_maxdevs/pci_make_tag/pci_decompose_tag/
pci_conf_read/pci_conf_write.
2010-06-28 12:14:08 +00:00
kiyohara 7418b486c4 Move identifycpu() into cpu.c. Our cpu* says:
cpu0 at mainbus0: ProcessorID 0, Id 0, Eid 0
  cpu0: McKinley (1000.00-MHz Itanium 2)
  cpu0: Origin "GenuineIntel",  Revision 7
  cpu0: Features 0x1
2010-06-28 12:08:13 +00:00
kiyohara a03ec97cba Fix always free. It call, if memory was allocated. 2010-06-28 11:18:44 +00:00
pooka 0d3939fd33 +test 2010-06-28 09:46:27 +00:00
pooka 2ae8bd1618 tests/lfs 2010-06-28 09:45:47 +00:00
pooka 61ee6255d1 add test for PR kern/43503 2010-06-28 09:45:06 +00:00
msaitoh bdb54a307e Fix a bug that wm_attach() fails after reading MAC address. Fixes PR#43533.
Fix an uninitialized value on some cases.
2010-06-28 01:43:39 +00:00
rmind c81a6ebb0c mp_cpu_start: although fragment is commented out, add pmap_update(), just
in case somebody would come up with a clever idea to copy-paste that.
2010-06-28 00:47:53 +00:00
rmind d96d372bb4 Add missing pmap_update() in vga_post_init(), remove wrong pmap_kremove()
in error path, and fix pmap_update() in vga_post_set_vbe().
2010-06-28 00:39:47 +00:00
pooka 31d66e80e4 If get_tcr() is called with broken_reason set, apply xfail inversion.
This (at least) makes timeouting tests honor xfail.
2010-06-27 20:36:42 +00:00
simonb a21d11f6f4 Use the address of the instruction instead of the contents of the
instruction to calculate a relative branch target address from that
instruction.

Not sure what the intention of this change was, or if it could possibly
have been tested.

Fixes awk on my dbau1500.
2010-06-27 13:44:26 +00:00
kefren 00914d6d55 Don't assume that rt_tag family is AF_MPLS but verify it.
This way rt_tag can be used for other future work also, not only MPLS
2010-06-27 13:39:11 +00:00
phx 791937a070 No longer needed. See dsk.c. 2010-06-27 12:09:41 +00:00
phx 1e968eb269 Replaced test code for Synology SiI3512 with working KuroBox code again. 2010-06-27 12:09:17 +00:00
tsutsui 25ee109070 Replace evil pointer casts that cause unaligned access panic on ARM and
MIPS with proper le16dec(9) and le32dec(9) functions for byte stream.

Now kue(4) works on hpcarm W-ZERO3.
2010-06-27 11:53:59 +00:00
kardel 4eaf338488 add quirk for CDC-ACM devices that do not have a CDC UNION interface descriptor.
idea gleened from Linux cdc-acm implementation (which has a long list of these devices)
first tested/added device is MTK GPS receiver.
2010-06-27 10:41:26 +00:00
kardel 32f65870e4 add MTK chipset based GPS receiver (e. g. Qstarz BT-Q1000eX) 2010-06-27 10:32:13 +00:00
kefren a58bbf2771 Add -T flag, that shows tags in route output 2010-06-27 06:52:37 +00:00
kefren aeb8fe1fa4 Style fix: Tab consistency with the lines around it 2010-06-27 06:48:40 +00:00
dholland 563d98c883 fix previous, the source isn't exactly crystal clear and there's a bug that
makes the behavior misleading.
2010-06-27 00:53:32 +00:00
dholland 35590dfabc Clarify $(.PREFIX) / $*. Bump date. 2010-06-27 00:06:32 +00:00
mrg ca255ec20b add minimal support for radeon 5xxx. there's not enough for it to be
useful yet, but that's not a big deal since the latest xf86-video-ati
doesn't support DRM on these yet.

new microcode images obtained from:
	http://people.freedesktop.org/~agd5f/radeon_ucode/

XXX: need to fix max_hw_contexts handling at the very least.

XXX: should convert radeondrm to use firmload(9)
2010-06-26 23:05:13 +00:00
mrg b274f3a3b2 add the latest generation of radeon cards. 2010-06-26 23:00:19 +00:00
mrg dd166cb036 add CHIP_CEDAR, CHIP_REDWOOD, CHIP_JUNIPER, CHIP_CYPRESS and CHIP_HEMLOCK. 2010-06-26 22:59:31 +00:00
phx 7d0b196352 - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 22:13:32 +00:00
phx a23e0160ee - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 21:45:49 +00:00
tsutsui e04e7d8109 Comment out options RTC_OFFSET so that bootinfo->timezone passed by
hpcboot will be used by default.
2010-06-26 16:34:47 +00:00
tsutsui e193fab21a Forgot to commit this one that should have been done with zs.c rev 1.119:
> Establish interrupt handlers with proper softc per each zs device
> rather than sharing them among all zs devices and searching softc
> in handlers.
>
> The latter method is derived from ancient sun3 zs driver which tried
> to reduce overhead on autovectored interrupts, but nowadays such hack
> might cause recursive global locks on modern SMP capable framework.
>
> Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
> on tech-kern@:
> http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
> and also tested by Jochen Kunz on SS20 with both serial and kbd console.
>
> Ok'ed by mrg@ and dyoung@.

Noticed by martin@.
2010-06-26 16:10:00 +00:00
kefren 25133d6d8f Fix build for MPLS import: add options MPLS, changed pseudo-device mpls
to pseudo-device ifmpls
2010-06-26 15:17:56 +00:00
wiz e7d1f6ab2b Grammar fix; remove indefinite article from Nd; don't Xr itself, use Nm. 2010-06-26 14:50:14 +00:00
kefren f2c541b4fa add pseudo-device mpls - commented in GENERIC for now 2010-06-26 14:36:48 +00:00
kefren 92b0c8320e add MPLS clue for showing routes 2010-06-26 14:30:31 +00:00
kefren a7449c28c6 add MPLS clue - mpls and tag keywords 2010-06-26 14:29:36 +00:00
kefren a9516b08bb add MPLS header files 2010-06-26 14:27:55 +00:00
kefren 826653c190 Add MPLS support, proposed on tech-net@ a couple of days ago
Welcome to 5.99.33
2010-06-26 14:24:27 +00:00
bouyer f249dc1977 Sync DKWEDGE options with GENERIC 2010-06-26 13:08:37 +00:00
jmmv 7022b73d05 Reference tests(7). 2010-06-26 11:27:50 +00:00
jmmv 10a750e953 Move testing instructions from afterboot(8) to tests(7) and change the
former to only provide a link to the latter.
2010-06-26 11:26:17 +00:00
jmmv c0722389d6 Register the tests(7) manual page. 2010-06-26 11:15:59 +00:00
jmmv 929072d8ed Add the tests(7) manual page, which describes why and how to run the
test suite and how to configure it.
2010-06-26 11:15:27 +00:00
skrll 0af7f6db64 Remove unused cbit. 2010-06-26 08:40:01 +00:00
bsh e9bb7e64f7 Don't use DMA for sdmmc on TWINTAIL for now, because it causes kernel panic. 2010-06-26 07:51:45 +00:00
pgoyette 224f73d8d9 1. Add an allocator for 'struct module *' and use it instead of local
allocations.

2. Add a new member mod_flags to the 'struct module *' and define
   MODFLG_MUST_FORCE.  If this flag is set and the entry is on the list
   of builtins, it means that the module has been explicitly unloaded
   and any re-loads will require the MODCTL_LOAD_FORCE flag. Provide a
   module_require_force() method to set this flag;  once set, it should
   never be unset.

3. Rename original module_init2() to module_start_unload_thread() to be
   more descriptive of what it does.

4. Add a new module_builtin_require_force() routine that sets the
   MODFLG_MUST_FORCE flag for any module that has not yet successfully
   been initialized.  Call it after module_init_class(MODULE_CLASS_ANY)
   to disable remaining built-in modules.

This makes built-in versions of the xxxVERBOSE modules work once more,
resolving breakage reported by jruoho@ and njoly@.

Discussed on tech-kern, and comments and suggestions implemented.  No
additional discussion for last week.  Tested only on amd64 systems, but
there's nothing here that should be port- or architecture-specific (no
more specific than existing module implementation) so others should not
break.
2010-06-26 07:23:57 +00:00
tsutsui 7b11ac5304 Rather than referring a global variable rootvnode in autoconf(9),
prepare and use an internal "root_is_mounted" flag for config_mountroot(9).

Should fix annoying dependency problem in librump reported by Paul Goyette
on current-users@:
http://mail-index.NetBSD.org/current-users/2010/06/25/msg013771.html
2010-06-26 06:43:13 +00:00
tsutsui fee87accc6 Um, fix botch in previous. 2010-06-26 03:49:52 +00:00
tsutsui 995d4be272 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 03:44:49 +00:00
tsutsui 42db966caf Remove an unused variable. 2010-06-26 03:39:53 +00:00
rmind bf5767dcea tmpfs_statvfs: hold accounting lock, since tmpfs_pages_avail() and
tmpfs_bytes_max() may fluctuate while in calculations.
2010-06-26 03:38:14 +00:00
tsutsui 2c8811ab00 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 01:48:57 +00:00
tsutsui dc3badf5ec Establish interrupt handlers with proper softc per each zs device
rather than sharing them among all zs devices and searching softc
in handlers.

The latter method is derived from ancient sun3 zs driver which tried
to reduce overhead on autovectored interrupts, but nowadays such hack
might cause recursive global locks on modern SMP capable framework.

Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
and also tested by Jochen Kunz on SS20 with both serial and kbd console.

Ok'ed by mrg@ and dyoung@.
2010-06-26 01:42:57 +00:00