Date: Mon, 08 Sep 2003 22:37:20 +0200 From: Idar Tollefsen <idart@performancedesign.no> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: thomas@FreeBSD.ORG Subject: Re: atapicam causes fatal kernel trap Message-ID: <3F5CE880.E08ABB6D@performancedesign.no> References: <3F568ED4.5095458F@performancedesign.no> <16215.32222.610240.127909@grasshopper.cs.duke.edu> <3F579927.1020601@performancedesign.no> <16215.39766.415180.759716@grasshopper.cs.duke.edu> <16220.34865.620913.836921@grasshopper.cs.duke.edu>
index | next in thread | previous in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F5CE880.E08ABB6D>
