atapicam causes fatal kernel trap

Idar Tollefsen idart at performancedesign.no
Mon Sep 8 13:40:50 PDT 2003


Andrew Gallatin wrote:
> (gdb) list *atapi_action+0x194

0xfffffc000036b974 is in atapi_action (../../dev/ata/atapi-cam.c:256).
251             strncpy(cpi->hba_vid, "ATAPI", sizeof(cpi->hba_vid));
252             strncpy(cpi->dev_name, cam_sim_name(sim), sizeof
cpi->dev_name);
253             cpi->unit_number = cam_sim_unit(sim);
254             cpi->bus_id = cam_sim_bus(sim);
255             if (softc->ata_ch && ccb_h->target_id >= 0) {
256                 switch
(softc->ata_ch->device[ccb_h->target_id].mode) {
257                 case ATA_PIO1:
258                     cpi->base_transfer_speed = 5200;
259                     break;
260                 case ATA_PIO2:
 
> (gdb) list *xpt_action+0x4dc

0xfffffc00003324fc is in xpt_action (../../cam/cam_xpt.c:2949).
2944            case XPT_PATH_INQ:
2945            {
2946                    struct cam_sim *sim;
2947
2948                    sim = start_ccb->ccb_h.path->bus->sim;
2949                    (*(sim->sim_action))(sim, start_ccb);
2950                    break;
2951            }
2952            case XPT_PATH_STATS:
2953                    start_ccb->cpis.last_reset =

> (gdb) list *xpt_bus_register+0x1ec

0xfffffc000033470c is in xpt_bus_register (../../cam/cam_xpt.c:4114).
4109                    xpt_compile_path(&path, /*periph*/NULL,
sim->path_id,
4110                                     CAM_TARGET_WILDCARD,
CAM_LUN_WILDCARD);
4111                    xpt_setup_ccb(&cpi.ccb_h, &path, /*priority*/1);
4112                    cpi.ccb_h.func_code = XPT_PATH_INQ;
4113                    xpt_action((union ccb *)&cpi);
4114                    xpt_async(AC_PATH_REGISTERED, xpt_periph->path,
&cpi);
4115                    xpt_release_path(&path);
4116            }
4117            return (CAM_SUCCESS);
4118    }



- IT


More information about the freebsd-alpha mailing list