mthca_err(dev, "NOP command failed to generate interrupt, aborting.\n"); 
mthca_err(dev, "NOP command failed to generate interrupt (IRQ %d), aborting.\n", dev->mthca_flags & MTHCA_FLAG_MSI_X ? dev->eq_table.eq[MTHCA_EQ_CMD].msi_x_vector : dev->pdev->irq); 
static int __devinit mthca_setup_hca(struct mthca_dev *dev){	int err;	u8 status;	MTHCA_INIT_DOORBELL_LOCK(&dev->doorbell_lock);	err = mthca_init_uar_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "user access region table, aborting.\n");		return err;	}	err = mthca_uar_alloc(dev, &dev->driver_uar);	if (err) {		mthca_err(dev, "Failed to allocate driver access region, "			  "aborting.\n");		goto err_uar_table_free;	}	dev->kar = ioremap(dev->driver_uar.pfn << PAGE_SHIFT, PAGE_SIZE);	if (!dev->kar) {		mthca_err(dev, "Couldn't map kernel access region, "			  "aborting.\n");		err = -ENOMEM;		goto err_uar_free;	}	err = mthca_init_pd_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "protection domain table, aborting.\n");		goto err_kar_unmap;	}	err = mthca_init_mr_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "memory region table, aborting.\n");		goto err_pd_table_free;	}	err = mthca_pd_alloc(dev, &dev->driver_pd);	if (err) {		mthca_err(dev, "Failed to create driver PD, "			  "aborting.\n");		goto err_mr_table_free;	}	err = mthca_init_eq_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "event queue table, aborting.\n");		goto err_pd_free;	}	err = mthca_cmd_use_events(dev);	if (err) {		mthca_err(dev, "Failed to switch to event-driven "			  "firmware commands, aborting.\n");		goto err_eq_table_free;	}	err = mthca_NOP(dev, &status);	if (err || status) {		mthca_err(dev, "NOP command failed to generate interrupt, aborting.\n");		if (dev->mthca_flags & (MTHCA_FLAG_MSI | MTHCA_FLAG_MSI_X))			mthca_err(dev, "Try again with MSI/MSI-X disabled.\n");		else			mthca_err(dev, "BIOS or ACPI interrupt routing problem?\n");		goto err_cmd_poll;	}	mthca_dbg(dev, "NOP command IRQ test passed\n");	err = mthca_init_cq_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "completion queue table, aborting.\n");		goto err_cmd_poll;	}	err = mthca_init_qp_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "queue pair table, aborting.\n");		goto err_cq_table_free;	}	err = mthca_init_av_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "address vector table, aborting.\n");		goto err_qp_table_free;	}	err = mthca_init_mcg_table(dev);	if (err) {		mthca_err(dev, "Failed to initialize "			  "multicast group table, aborting.\n");		goto err_av_table_free;	}	return 0;err_av_table_free:	mthca_cleanup_av_table(dev);err_qp_table_free:	mthca_cleanup_qp_table(dev);err_cq_table_free:	mthca_cleanup_cq_table(dev);err_cmd_poll:	mthca_cmd_use_polling(dev);err_eq_table_free:	mthca_cleanup_eq_table(dev);err_pd_free:	mthca_pd_free(dev, &dev->driver_pd);err_mr_table_free:	mthca_cleanup_mr_table(dev);err_pd_table_free:	mthca_cleanup_pd_table(dev);err_kar_unmap:	iounmap(dev->kar);err_uar_free:	mthca_uar_free(dev, &dev->driver_uar);err_uar_table_free:	mthca_cleanup_uar_table(dev);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ad81174edfc22528b845a27620db7542c1ce9a6/mthca_main.c/buggy/drivers/infiniband/hw/mthca/mthca_main.c