Thu Mar 8 14:18:04 2012 UTC ()
When detecting a new USB device on the bus ofppc panics in usb_allocmem().
Although the problem doesn't seem to affect other PPC ports, it causes big
trouble for my Pegasos2.
So as long as there is no real solution we should add the option
USB_FRAG_DMA_WORKAROUND to the GENERIC config file.


(phx)
diff -r1.139 -r1.140 src/sys/arch/ofppc/conf/GENERIC

cvs diff -r1.139 -r1.140 src/sys/arch/ofppc/conf/GENERIC (expand / switch to unified diff)

--- src/sys/arch/ofppc/conf/GENERIC 2011/12/18 05:49:31 1.139
+++ src/sys/arch/ofppc/conf/GENERIC 2012/03/08 14:18:04 1.140
@@ -1,38 +1,38 @@ @@ -1,38 +1,38 @@
1# $NetBSD: GENERIC,v 1.139 2011/12/18 05:49:31 dholland Exp $ 1# $NetBSD: GENERIC,v 1.140 2012/03/08 14:18:04 phx Exp $
2# 2#
3# GENERIC machine description file 3# GENERIC machine description file
4#  4#
5# This machine description file is used to generate the default NetBSD 5# This machine description file is used to generate the default NetBSD
6# kernel. The generic kernel does not include all options, subsystems 6# kernel. The generic kernel does not include all options, subsystems
7# and device drivers, but should be useful for most applications. 7# and device drivers, but should be useful for most applications.
8# 8#
9# The machine description file can be customised for your specific 9# The machine description file can be customised for your specific
10# machine to reduce the kernel size and improve its performance. 10# machine to reduce the kernel size and improve its performance.
11# 11#
12# For further information on compiling NetBSD kernels, see the config(8) 12# For further information on compiling NetBSD kernels, see the config(8)
13# man page. 13# man page.
14# 14#
15# For further information on hardware support for this architecture, see 15# For further information on hardware support for this architecture, see
16# the intro(4) man page. For further information about kernel options 16# the intro(4) man page. For further information about kernel options
17# for this architecture, see the options(4) man page. For an explanation 17# for this architecture, see the options(4) man page. For an explanation
18# of each device driver in this file see the section 4 man page for the 18# of each device driver in this file see the section 4 man page for the
19# device. 19# device.
20 20
21include "arch/ofppc/conf/std.ofppc" 21include "arch/ofppc/conf/std.ofppc"
22 22
23options INCLUDE_CONFIG_FILE # embed config file in kernel binary 23options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24 24
25#ident "GENERIC-$Revision: 1.139 $" 25#ident "GENERIC-$Revision: 1.140 $"
26 26
27maxusers 32 27maxusers 32
28 28
29options PIC_OPENPIC 29options PIC_OPENPIC
30options PIC_DISTOPENPIC 30options PIC_DISTOPENPIC
31options PIC_I8259 31options PIC_I8259
32#options PIC_PREPIVR 32#options PIC_PREPIVR
33 33
34# various hacks due to bugs in Openfirmware implementation 34# various hacks due to bugs in Openfirmware implementation
35options FIRMWORKSBUGS 35options FIRMWORKSBUGS
36 36
37# Standard system options 37# Standard system options
38options INSECURE # disable kernel security checks 38options INSECURE # disable kernel security checks
@@ -329,26 +329,27 @@ pnaphy* at mii? phy ? # generic HomePN @@ -329,26 +329,27 @@ pnaphy* at mii? phy ? # generic HomePN
329qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 329qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
330rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 330rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
331rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 331rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
332sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 332sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
333tlphy* at mii? phy ? # ThunderLAN PHYs 333tlphy* at mii? phy ? # ThunderLAN PHYs
334tqphy* at mii? phy ? # TDK Semiconductor PHYs 334tqphy* at mii? phy ? # TDK Semiconductor PHYs
335ukphy* at mii? phy ? # generic unknown PHYs 335ukphy* at mii? phy ? # generic unknown PHYs
336urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 336urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
337 337
338# PCI USB controllers 338# PCI USB controllers
339uhci* at pci? dev ? function ? # USB Universal Host Controller 339uhci* at pci? dev ? function ? # USB Universal Host Controller
340ohci* at pci? dev ? function ? # USB Open Host Controller 340ohci* at pci? dev ? function ? # USB Open Host Controller
341ehci* at pci? dev ? function ? # USB Enhanced Host Controller 341ehci* at pci? dev ? function ? # USB Enhanced Host Controller
 342options USB_FRAG_DMA_WORKAROUND # Workaround panic in usb_allocmem()
342 343
343usb* at uhci? # USB bus support 344usb* at uhci? # USB bus support
344usb* at ohci? # USB bus support 345usb* at ohci? # USB bus support
345usb* at ehci? # USB bus support 346usb* at ehci? # USB bus support
346uhub* at usb? # USB Hubs 347uhub* at usb? # USB Hubs
347uhub* at uhub? port ? 348uhub* at uhub? port ?
348 349
349# USB Mass Storage 350# USB Mass Storage
350umass* at uhub? port ? configuration ? interface ? 351umass* at uhub? port ? configuration ? interface ?
351wd* at umass? 352wd* at umass?
352 353
353uhidev* at uhub? port ? configuration ? interface ? # USB HID device 354uhidev* at uhub? port ? configuration ? interface ? # USB HID device
354 355