RELENG_5 ATA patches mk III

From: Michael Butler (imbutler_at_comcast.net)
Date: 07/31/05

  • Next message: Evgueni V. Gavrilov: "ng_fec(4) crashes 6.0-BETA1"
    Date: Sat, 30 Jul 2005 18:48:26 -0400
    To: stable@freebsd.org
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Ran into a small problem with this patch-kit on RELENG_5 ..

    Jul 29 21:01:06 mail kernel: FAILURE - out of memory in ata_raid_init_request

    ~ .. after which the box promptly rebooted (no console, sorry).

    The box is most definitely "memory constrained" (as in snippets of dmesg
    below) but not so much that I would expect this. In the RELENG_5 code, memory
    allocation in the driver is done slightly differently ..

    #define ata_alloc_request() uma_zalloc(ata_zone, M_NOWAIT | M_ZERO)

    ~ .. versus ..

    buf1 = malloc(sizeof(struct ar_buf), M_AR, M_NOWAIT | M_ZERO); /* XXX */

    ~ .. in their respective 'strategy' functions. Did the shift to 'uma_zalloc'
    break my machine? ;-)

            Michael

    Jul 29 21:03:39 mail kernel: CPU: Pentium II/Pentium II Xeon/Celeron
    (348.49-MHz 686-class CPU)
    Jul 29 21:03:39 mail kernel: Origin = "GenuineIntel" Id = 0x651 Stepping = 1
    Jul 29 21:03:39 mail kernel:
    Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
    Jul 29 21:03:39 mail kernel: real memory = 402653184 (384 MB)
    Jul 29 21:03:39 mail kernel: avail memory = 388505600 (370 MB)

    ~ [ .. ]

    Jul 29 21:03:39 mail kernel: atapci1: <HighPoint HPT372N UDMA133 controller>
    port 0x1400-0x14ff,0x1010-0x1013,0x1018-0x101f,0x1014-0
    x1017,0x1040-0x1047 irq 11 at device 13.0 on pci0
    Jul 29 21:03:39 mail kernel: ata2: <ATA channel 0> on atapci1
    Jul 29 21:03:39 mail kernel: ata3: <ATA channel 1> on atapci1
    Jul 29 21:03:39 mail kernel: ahc0: <Adaptec 2930CU SCSI adapter> port
    0x1800-0x18ff mem 0xd0000000-0xd0000fff irq 10 at device 14.0
    on pci0
    Jul 29 21:03:39 mail kernel: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253
    SCBs

    ~ [ .. ]

    Jul 29 21:03:39 mail kernel: atapicam0: <ATAPI CAM Attachment> on ata0
    Jul 29 21:03:39 mail kernel: atapicam1: <ATAPI CAM Attachment> on ata1
    Jul 29 21:03:39 mail kernel: acd0: CDROM <NEC CD-ROM DRIVE:28D/3.03> at
    ata1-master UDMA33
    Jul 29 21:03:39 mail kernel: atapicam2: <ATAPI CAM Attachment> on ata2
    Jul 29 21:03:39 mail kernel: ad4: 152627MB <SAMSUNG SP1604N TM100-24> at
    ata2-master UDMA133
    Jul 29 21:03:39 mail kernel: ad5: 152627MB <SAMSUNG SP1604N TM100-24> at
    ata2-slave UDMA133
    Jul 29 21:03:39 mail kernel: atapicam3: <ATAPI CAM Attachment> on ata3
    Jul 29 21:03:39 mail kernel: ad6: 152627MB <SAMSUNG SP1604N TM100-24> at
    ata3-master UDMA133
    Jul 29 21:03:39 mail kernel: ad7: 152627MB <SAMSUNG SP1604N TM100-24> at
    ata3-slave UDMA133
    Jul 29 21:03:39 mail kernel: sa0 at ahc0 bus 0 target 0 lun 0
    Jul 29 21:03:39 mail kernel: sa0: <HP C1537A L706> Removable Sequential Access
    SCSI-2 device
    Jul 29 21:03:39 mail kernel: sa0: 10.000MB/s transfers (10.000MHz, offset 15)
    Jul 29 21:03:39 mail kernel: pass1 at ata1 bus 0 target 0 lun 0
    Jul 29 21:03:39 mail kernel: pass1: <NEC CD-ROM DRIVE:28D 3.03> Removable
    CD-ROM SCSI-0 device
    Jul 29 21:03:39 mail kernel: pass1: 33.000MB/s transfers
    Jul 29 21:03:39 mail kernel: ATA PseudoRAID loaded
    Jul 29 21:03:39 mail kernel: ar0: 305255MB <HighPoint v2 RocketRAID RAID0+1
    array> status: READY
    Jul 29 21:03:39 mail kernel: ar0: disk0 READY (master) using ad4 at ata2-master
    Jul 29 21:03:39 mail kernel: ar0: disk1 READY (master) using ad5 at ata2-slave
    Jul 29 21:03:39 mail kernel: ar0: disk2 READY (mirror) using ad6 at ata3-master
    Jul 29 21:03:39 mail kernel: ar0: disk3 READY (mirror) using ad7 at ata3-slave

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (MingW32)

    iD8DBQFC7AO6iJykeV6HPMURAs06AJ9IkIuV1g6+McqIP8CUseJcvk1X2QCg/q6v
    qPLAWwnjU5j4MbEgetCCKjA=
    =DXcF
    -----END PGP SIGNATURE-----
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Evgueni V. Gavrilov: "ng_fec(4) crashes 6.0-BETA1"