"I/O (GART) page-size %ZuKB doesn't match expected size %ZuKB\n", 1UL << (i460.io_page_shift - 10), 1UL << (I460_IO_PAGE_SHIFT)); 
"I/O (GART) page-size %luKB doesn't match expected " "size %luKB\n", 1UL << (i460.io_page_shift - 10), 1UL << (I460_IO_PAGE_SHIFT)); 
static int i460_fetch_size (void){	int i;	u8 temp;	struct aper_size_info_8 *values;	/* Determine the GART page size */	pci_read_config_byte(agp_bridge->dev, INTEL_I460_GXBCTL, &temp);	i460.io_page_shift = (temp & I460_4M_PS) ? 22 : 12;	pr_debug("i460_fetch_size: io_page_shift=%d\n", i460.io_page_shift);	if (i460.io_page_shift != I460_IO_PAGE_SHIFT) {		printk(KERN_ERR PFX		       "I/O (GART) page-size %ZuKB doesn't match expected size %ZuKB\n",		       1UL << (i460.io_page_shift - 10), 1UL << (I460_IO_PAGE_SHIFT));		return 0;	}	values = A_SIZE_8(agp_bridge->driver->aperture_sizes);	pci_read_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, &temp);	/* Exit now if the IO drivers for the GART SRAMS are turned off */	if (temp & I460_SRAM_IO_DISABLE) {		printk(KERN_ERR PFX "GART SRAMS disabled on 460GX chipset\n");		printk(KERN_ERR PFX "AGPGART operation not possible\n");		return 0;	}	/* Make sure we don't try to create an 2 ^ 23 entry GATT */	if ((i460.io_page_shift == 0) && ((temp & I460_AGPSIZ_MASK) == 4)) {		printk(KERN_ERR PFX "We can't have a 32GB aperture with 4KB GART pages\n");		return 0;	}	/* Determine the proper APBASE register */	if (temp & I460_BAPBASE_ENABLE)		i460.dynamic_apbase = INTEL_I460_BAPBASE;	else		i460.dynamic_apbase = AGP_APBASE;	for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) {		/*		 * Dynamically calculate the proper num_entries and page_order values for		 * the define aperture sizes. Take care not to shift off the end of		 * values[i].size.		 */		values[i].num_entries = (values[i].size << 8) >> (I460_IO_PAGE_SHIFT - 12);		values[i].page_order = log2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT);	}	for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) {		/* Neglect control bits when matching up size_value */		if ((temp & I460_AGPSIZ_MASK) == values[i].size_value) {			agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i);			agp_bridge->aperture_size_idx = i;			return values[i].size;		}	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/49ebd7c6bb1f70a6c5465925e6ca2f4a32d6a6cd/i460-agp.c/buggy/drivers/char/agp/i460-agp.c