Commit Graph

188816 Commits

Author SHA1 Message Date
dyoung
55ce676397 It turns out that ppb at cardbus was not even in ALL. It has probably
not been compiled in a very long time.  With some minor changes, it was
possible to make it compile:

Use kmem_zalloc()/kmem_free() instead of alloca()/memset().

Use %zu and %zx for printf'ing bus_size_t.

Delete the declaration of an unused local variable.
2010-03-04 18:49:14 +00:00
dyoung
5a5c46dece Delete unfinished and unreachable code: ppb_cardbus_setup(),
ppb_cardbus_enable(), ppb_cardbus_disable().
2010-03-04 18:31:57 +00:00
wiz
a7fdaeb822 binutils-2.20.1 out. 2010-03-04 17:57:26 +00:00
dyoung
bee77fae60 Simplify interrupt (dis)establishment by two source transformations:
-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by kiyohara@.
2010-03-04 16:40:54 +00:00
tsutsui
05eb771d14 Note about proper support for NE2000 8 bit mode. 2010-03-04 15:47:12 +00:00
roy
1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy
6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00
vanhu
709abc828e From Pierre POMES: fixed admin port initialization 2010-03-04 15:13:53 +00:00
pgoyette
a91348ab44 This really should be ACPI_BUS_COMPONENT
Maybe I should stay out the acpi stuff?  :)
2010-03-04 13:11:14 +00:00
pgoyette
e349ece50a Fix this correctly. Thanks jruoho@ 2010-03-04 13:07:01 +00:00
jruoho
703b195ed6 Instead of "int hz", use "extern int hz". 2010-03-04 09:57:12 +00:00
jruoho
ed7fe01278 Provide the _COMPONENT definition and use ACPI_FREE(x) instead of
AcpiOsFree(). If the memory tracking of ACPICA is enabled, the latter is
guaranteed to leak memory, possibly also corrupting kernel memory.
2010-03-04 08:44:55 +00:00
jruoho
d50ead3f00 Add roundup(9). 2010-03-04 08:13:29 +00:00
mrg
3dee260562 avoid a build error in the previous for !DEBUG kernels. 2010-03-04 08:11:42 +00:00
jruoho
2e35a3d99f Document the counting and rounding macros from <sys/param.h>. 2010-03-04 08:09:51 +00:00
mrg
89841bfd35 - in _bus_dmamap_unload(), pmap_page_protect() and pmap_clear_reference()
switch the dcache_flush_page() into a dcache_flush_page_all()
- in both pmap_kremove()/pmap_remove(), remove the blast_dcache() call
  and replace it with dcache_flush_page_all()
- in pmap_get_page() [used to allocate PTP's], always call pmap_zero_page(pa)
- flush the dcache of the dst page in pmap_{copy,zero}_page() by redirecting
  throught a C function that calls the (renamed) asm.  the old asm code had a
  comment about needing to do this...
- add a couple of membar #Sync's that the USIII manual recommends


based on discussions with chuq@, skrll@ and martin@.


these help my SB2000 / SB2500 with both disk / nfs builds and other tasks,
sometimes lasting for several hours before failing or asserting.
2010-03-04 08:01:35 +00:00
pgoyette
f7785363d4 Replace ACPI_FREE() with AcpiOsFree() so we no longer need to define
_COMPONENT (we don't have a bit defined for SMBUS anyway).  This was
uncovered by turning on ACPI_DEBUG for the i386 ALL kernel config.

Reported by Greg Woods on current-users@
2010-03-04 03:10:18 +00:00
pooka
7363f77230 Replace unsafe use of TAILQ_FOREACH: as the comment says, the
structures are pulled off the list in the loop and it's anyone's
guess where they go after that.
2010-03-03 17:58:36 +00:00
pooka
ed49ad5f70 Give usage() a chance.
XXX: UKFS_DEVICE_ARGVPROBE() interface
2010-03-03 17:37:01 +00:00
tron
11300caff5 "dtrace,zfs" means "MKDTRACE=yes" *and* "MKZFS=yes" which is not what
we want. Invent a flag "solaris" which is the or of those two flags.
2010-03-03 16:13:42 +00:00
tron
404aaa2973 The directory "modules/solaris" depends on ZFS as well. 2010-03-03 14:43:41 +00:00
tron
4423c472c6 The "solaris" kernel module also gets build if ZFS is enabled. 2010-03-03 14:32:29 +00:00
oster
0134fbe7d0 Don't attempt to read or write component label stuff from/to 'dead disks'.
Update used spares with the correct parity map bits too.

Addresses PR#42904 by Louis Guillaume.  Fix confirmed by submitter.
Thanks!
2010-03-03 14:23:27 +00:00
pooka
8a20bde1e6 update description of deffs 2010-03-03 13:57:35 +00:00
pooka
e6e6744f43 reflect previous change in comment 2010-03-03 13:56:29 +00:00
pooka
c96070654c Remove fs_foo.h support from deffs now that nothing uses it. 2010-03-03 13:53:22 +00:00
tsutsui
8f7c20ed4f Put several fixes to ne(4) driver for better 8 bit mode support,
especially on RTL8019AS which is also used for non-ISA local bus of
embedded controllers and some m68k machines like atari and x68k.

 * move RTL8019 probe and attach code from each bus attachment
   to MI ne2000_detect() and ne2000_attach()
 * change a method for backend and attachment to specify 8 bit mode
   to use a new sc->sc_quirk member, instead of sc->sc_dmawidth
 * handle more NE2000 8 bit mode specific settings, including
   bus_space(9) access width and available size of buffer memory
 * add a function to detect NE2000 8 bit mode
   (disabled by default, but enalbed by options NE2000_DETECT_8BIT
    to avoid possible regression on various ISA clones)
 * fix ipkdb attachment accordingly (untested)

Tested on two NE2000 ISA variants (RTL8019AS and another clone named UL0001)
in both 8 bit and 16 bit mode on i386. "Looks good" from nonaka@.

See my post on tech-kern for details:
http://mail-index.NetBSD.org/tech-kern/2010/02/26/msg007423.html
2010-03-03 13:39:57 +00:00
roy
ca77b139e2 Abort an error. 2010-03-03 12:09:49 +00:00
pooka
ec6664576e regen: ENOSYS nfssvc honestly 2010-03-03 11:08:00 +00:00
pooka
7cdfc0dfea One more overcomplex ENOSYS bites the dust. 2010-03-03 11:07:17 +00:00
pooka
cd4f4c9856 Remove nfssvc non-emulations I missed yesterday. 2010-03-03 11:02:34 +00:00
martin
5b7db4a698 Add prototype and forward declarations to make the empty nfs stub compile. 2010-03-03 10:56:47 +00:00
he
7a30544200 When implementing "read directory", when there are too many empty entries
in a row, and we need to try to read the next block, and have passed a
non-NULL cookie pointer to VOP_READDIR, ensure that we free the cookie
buffer before re-doing VOP_READDIR, so that we don't leak memory.
This fix is similar to nfs_serv.c revisions 1.115 + 1.124.

This should fix the long-standing problem observed by e.g. using Linux-
emulated programs to take backup of servers, which is one of the problems
which were reported in PR#42661.

Thanks to pooka@ for the hints for traversing the VOP* layer.
2010-03-03 08:20:38 +00:00
jruoho
513fda32eb Remove ACPI_EXTRA_DEBUG. 2010-03-03 06:57:53 +00:00
jruoho
4bf4e84b9e Convert the single instance of ACPI_EXTRA_DEBUG to ACPIVERBOSE. 2010-03-03 06:57:05 +00:00
jruoho
786707264c Refactor acpi_make_devnode() to make it a little more readable.
No functional change intended.
2010-03-03 06:54:25 +00:00
skrll
2627b68f2f s/cpu_fork/cpu_lwp_fork/ in comment. 2010-03-03 06:53:34 +00:00
mrg
b68c326c4a make suspend/resume actually work:
- we have to DRM_LOCK()/DRM_UNLOCK(), thus s/rad_dev/dev/ in a variable name
- only call into radeon_cp_{stop,resume}() if the device is active

with this my nforce4 dual core amd system is able to suspend/resume with both
X and drm active.
2010-03-03 03:48:39 +00:00
rmind
4f527fecba Mention support for Gumstix Verdex Pro and SMSC LAN9118 Family Ethernet
driver, which were added by kiyohara@.
2010-03-03 02:09:51 +00:00
joerg
f9c779de17 Add a check for duplicate keys. The check is run once and quadratic in
the hash collision chain length, which is expected to be fairly low.
2010-03-03 01:55:04 +00:00
pooka
a8ae7feaa2 You have found a scroll of genocide --More--
What class of monsters do you wish to genocide? --More--
> fs_foo.h
Wiped out all fs_foo.h
2010-03-03 01:26:01 +00:00
pooka
8fcd8f95e1 Remove #ifdef KERNFS by using weak symbols. Notably, this approach
won't work when kernfs is a module.  But then again, kernfs as a
module (i.e. current situation) doesn't contain IPSEC support, so
it's not really any worse either.
2010-03-03 01:13:26 +00:00
dyoung
eb66a866ff Simplify interrupt (dis)establishment by two source transformations:
-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Compiles.  Untested.  Let me know if you use this hardware with NetBSD
any longer.
2010-03-03 00:56:41 +00:00
pooka
4a21cd9096 Remove fs_lfs now that the syscall is always defined. 2010-03-03 00:49:39 +00:00
yamt
b1521a3612 remove redundant checks of PK_MARKER. 2010-03-03 00:47:30 +00:00
yamt
c659665943 comment 2010-03-03 00:45:55 +00:00
yamt
9b49bad822 fix multi-thread problems wrt read/write buffer. PR/42651. 2010-03-03 00:44:51 +00:00
pooka
63669c6b3e Fix some historical powerpc curiocity which had kernfs depend on
startsym/endsym, and which crept into most powerpc ports.
2010-03-03 00:30:15 +00:00
jym
56436d584f Use roundup2() instead of hardcoding the CACHE_LINE_SIZE rounding
operation.
2010-03-03 00:09:03 +00:00
pooka
c79910eee7 -DFFS is no longer necessary 2010-03-03 00:01:20 +00:00