Commit Graph

85910 Commits

Author SHA1 Message Date
rmind
ea2709ce49 PR/28458: shmat(2) shmaddr argument is not honored as intended.
Patch applied, thanks for Minoura Makoto.

Please note, that one should fail if cannot attach to shmaddr,
but not attach it to other place.

OK by uwe@
2007-02-07 18:45:36 +00:00
njoly
835e659d6b Regen (poll argument fix). 2007-02-07 15:35:00 +00:00
njoly
398ec1833a Use netbsd32_pollfdp_t instead of wrong `struct pollfd *'.
ok by manu.
2007-02-07 15:32:52 +00:00
is
f059843a6c MosChip IrDA bridges 2007-02-07 10:30:19 +00:00
elad
01b9a124ad - Properly autocreate tables,
- Properly track number of used slots in the table,
- Track number of "assocs" per entry.
2007-02-07 09:38:04 +00:00
elad
3d8c2eee5f Add comment referring to kvm_proc.c. 2007-02-07 08:04:48 +00:00
elad
2ddc81b57b Add missing ')'. Noted by Paul Goyette. 2007-02-07 05:54:42 +00:00
skrll
a815b70d5c G/C hp{pa,700}/spinlock.h 2007-02-06 21:59:24 +00:00
bouyer
0ce1424e8f in ufs_dirremove swap ep->d_reclen before use if needed (affect UFS_DIRHASH
only).
While there remove an unneeded swap before compare against 0 in ufs_direnter().
Both pointed out by Pawel Jakub Dawidek on tech-kern@, thanks !
2007-02-06 20:49:20 +00:00
dyoung
430441ebbd Add a device major for cmos(4). 2007-02-06 20:38:36 +00:00
elad
f53a75d646 regen 2007-02-06 15:01:30 +00:00
jmcneill
9162d3ee05 Fix build failure for !XBOX, pointed out by Paul Goyette on current-users 2007-02-06 14:39:47 +00:00
elad
b5f35499b1 PR/35552: Yojiro UO: add new devices for rum(4)
Patch applied, thanks!

(needs regen)
2007-02-06 14:30:09 +00:00
jmcneill
d93606a8fe Missing LIST_INIT. Pointed out by uebayasi@ 2007-02-06 12:39:15 +00:00
dyoung
56db732551 Add cmos(4) for reading/writing CMOS RAM on x86 boxes. This driver
comes from Takahiro Kambe, with some mods by me.
2007-02-06 07:28:59 +00:00
dyoung
9e85b986d1 Stop using _IPL_NSOFT because nothing defines it, and it is
unnecessary to specify the length of the arrays mips_ipl_si_to_sr,
anyway.
2007-02-06 05:39:16 +00:00
simonb
1fc6e76755 Fix a tyop in a comment. 2007-02-06 04:48:15 +00:00
jmcneill
d6775f8b6c On Xbox, disallow pci_conf_read/pci_conf_write calls for bus 0 device 0
functions 1 and 2.
2007-02-06 03:13:37 +00:00
jmcneill
7240bbf254 Another Xbox hack;
If we're handling system management interrupts ourselves, the system locks
solid when the ACPI timer SCI fires. Disable this interrupt so we can have
an uptime of more than ~10 minutes.
2007-02-06 02:07:36 +00:00
pooka
ebfeab6747 Limit errors from puffs_lookup to 0, EJUSTRETURN and ENOENT, as
that's what namei/lookup expects.
2007-02-06 01:53:11 +00:00
elad
119d4b5acd PR/35253: YAMAMOTO Takashi: fileassoc hash size problem
fileassoc_table_add() was removed from the KPI and made internal. From now
fileassoc(9) will manage the optimal table size internally.

Input from and okay yamt@.
2007-02-06 01:09:48 +00:00
jmcneill
042d1598ba Remove debug printf accidentally added in last commit. 2007-02-05 23:56:13 +00:00
jmcneill
ff20668913 Disgusting Xbox hack;
The "pci0 dev 1 function 2" aka "System Management" on the nForce chipset
isn't detected on the Xbox. If XBOX is defined and arch_i386_is_xbox is
true, force intrline to 12 and map the system management IO space at
0x8000. We can now call iic_smbus_intr when a system management interrupt
takes place.

While we're here, make amdpm_smbus honour the I2C_F_POLL flag.

The Xbox no longer resets when you press the eject button.
2007-02-05 23:38:15 +00:00
jmcneill
02ad924a21 Register an SMBus interrupt handler to trap the reset on eject "feature"
on the Microsoft Xbox. Also print details on other system management type
events while we're here -- they may come in handy in the future.
2007-02-05 23:33:53 +00:00
jmcneill
be9836eac7 Allow i2c child devices to register interrupt handlers to the smbus host
controller. Both interrupt context and process context type handlers are
supported.
2007-02-05 23:31:37 +00:00
ad
fb574ffdbf The TLB flush filter workaround causes TLB shootdown storms on our build
machines. Disable it for now until that problem is solved.
2007-02-05 21:05:45 +00:00
njoly
0d81683020 Add a new linux_emuldata_shared flag value LINUX_LES_USE_NPTL to allow
both NPTL and old linuxthreads behaviour depending on process needs.

Apply to exit_group(), getpid() and getppid() to share them between
compat linux32 (non NPTL) and compat linux (NPTL) on amd64.

ok by manu and christos
2007-02-05 18:31:36 +00:00
macallan
f3154089bb - don't go CUDA_IDLE before calling message handlers, that way we force all
writes they might issue to be delayed which keeps us from deadlocking
- don't splhigh() in cuda_intr() - usually we're there already. Instead do
  the splhigh()/splx() dance when we're polling
- remove some leftover debugging gunk
2007-02-05 18:26:06 +00:00
elad
3dcf1cc6ec Style nitz. 2007-02-05 17:36:12 +00:00
chs
f0cdf39d80 add back a mistakenly removed vput(). 2007-02-05 16:03:53 +00:00
gdt
3a8d10addf Add Novatel Merlin, used in VZ V620.
From John Nielsen on freebsd-mobile.
Not tested, but almost certainly better than attaching as ugen.

FreeBSD has a UQ_ASSUME_CM_OVER_DATA quirk for this device; I can't
figure out what that means.
2007-02-05 15:13:28 +00:00
rillig
ff925d7fe2 typo. 2007-02-05 14:34:29 +00:00
gdt
7d88c942e2 regen 2007-02-05 14:08:51 +00:00
gdt
8929326988 mark second novatel id as NOVATEL2 2007-02-05 14:08:16 +00:00
gdt
43c45b264c add second Novatel id, for CDMA chip as found in Verizon V620.
From John Nielsen on freebsd-mobile.
2007-02-05 14:05:48 +00:00
kent
5dd4ff1479 If both of AZALIA_DEBUG and AZALIA_DEBUG_DOT are defined,
a DOT file for Graphviz representing the widget structure
is printed.
2007-02-05 13:52:26 +00:00
yamt
cb2e7baf50 have a mowner dedicated to nfs reply cache. 2007-02-05 11:55:45 +00:00
yamt
7224686465 nfsrv_updatecache: actually use reply caches for connection oriented protocols. 2007-02-05 11:55:03 +00:00
yamt
f6217feae5 kmem_alloc: fix a null dereference reported by Chuck Silvers. 2007-02-05 11:53:46 +00:00
dyoung
f3a37fb5de Cosmetic: use the name PCI_INTERRUPT_REG instead of the number
0x3c.
2007-02-05 07:48:20 +00:00
macallan
a64a26d4aa fix fallout from making OF_interpret compatible with the other OF platforms
noticed by Leon Zadorin
2007-02-05 04:02:01 +00:00
dyoung
4620d7566c Cosmetic: KNF. In debug messages, use "%s: ...", __func__ idiom
to print subroutine names instead of hard-coding names.
2007-02-04 23:39:02 +00:00
elad
6c98db2b70 Much cleaner, shorter, and simpler, skeleton for an LKM.
Not connected to the build.
2007-02-04 22:53:09 +00:00
elad
f053782e48 Make this compile. 2007-02-04 22:34:57 +00:00
dyoung
fa956bd2bd Fix a bug in Cardbus power activation.
Most Cardbus bridges supported by pccbb(4) fire a power-cycle
interrupt when the power state of a cardslot changes from 'off' to
'on'.  TI bridges fire a power-cycle interrupt on both on->off and
off->on changes.

When pccbb_power() powered-down a cardslot, it did not wait around
for the power-cycle interrupt.  When pccbb_power() powered-up a
cardslot, it did wait for the interrupt.  If a pccbb_power(UP)
followed a pccbb_power(DOWN) very closely, pccbb_power() used to
interpret the power-cycle interrupt for the up->down transition as
"power-up complete," read the power-state bit and, finding that
power had NOT been activated, complain, "cbb0:  power on failed?"
Then pccbb_power() exited before power-activation was complete,
falsely indicating that the power-activation *was* complete.  After
that, a driver attach/enable routine would blithely configure a
card that was not fully powered-up.  An operator who ran a command
such as 'ifconfig rtw0 down up' or 'ifconfig ath0 down up' would
read 'cbb0: power on failed?' in the system log, and their NIC
would misbehave.

This excerpt from a comment in the source should suffice to explain
how I fixed the bug,

        /*
         * Wait as long as 200ms for a power-cycle interrupt.  If
         * interrupts are enabled, but the socket has already
         * changed to the desired status, keep waiting for the
         * interrupt.  "Consuming" the interrupt in this way keeps
         * the interrupt from prematurely waking some subsequent
         * pccbb_power call.

And this explains why this patch will work for Ricoh bridges that
do not fire an interrupt on the on->off transition:

         * XXX Not every bridge interrupts on the ->OFF transition.
         * XXX That's ok, we will time-out after 200ms.
         *
         * XXX The power cycle event will never happen when attaching
         * XXX a 16-bit card.  That's ok, we will time-out after
         * XXX 200ms.
         */

M. Warner Losh and Charles M. Hannum provided valuable input on
this patch.
2007-02-04 21:04:37 +00:00
dyoung
dc52954598 sc_pwrcycle is shared between the interrupt handler and Cardbus
event thread, so make it volatile.
2007-02-04 20:52:13 +00:00
elad
9ac600139e Initialize pathname_t objects to NULL. 2007-02-04 20:33:02 +00:00
xtraeme
5e3e443d5a Add the following pseudo-devices:
* lockstat - see lockstat(8)
* swwdog - see swwdog(4)
2007-02-04 17:49:02 +00:00
jmcneill
95e6498e25 Note the origin (hi FreeBSD!) of a couple clever bits of Xbox
initialization code. No functional changes.
2007-02-04 15:26:26 +00:00
chs
0507747213 more fixes for the new vnode locking scheme:
- don't use SAVESTART in calls to relookup() from unionfs,
   just vref() the desired vnode when we need to.
 - fix locking and refcounting in the unionfs EEXIST error cases.
 - release any vnode locks before calling VFS_ROOT(), vfs_busy() is enough.
   this allows us to simplify union_root() and fix PR 3006.
 - union_lock() doesn't handle shared lock requests correctly,
   so convert them to exclusive instead.  fixes PR 34775.
 - in relookup(), avoid reusing "dp" for different purposes,
   the error handling wasn't right.  (actually just get rid of dp.)
   also, change relookup() to ignore LOCKLEAF and always return the
   vnode locked since the callers already expect this.
2007-02-04 15:03:20 +00:00