From: Dave Jones Date: Mon, 20 Feb 2006 23:34:37 +0000 (-0500) Subject: [AGPGART] Add some informational printk to nforce GART failure path. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b41c82eb5fb49912ce26c51ec221ba35e06c7d9b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [AGPGART] Add some informational printk to nforce GART failure path. Signed-off-by: Dave Jones --- diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c index 9964c508c111..1251b2515bbe 100644 --- a/drivers/char/agp/amd64-agp.c +++ b/drivers/char/agp/amd64-agp.c @@ -516,8 +516,10 @@ static int __devinit nforce3_agp_init(struct pci_dev *pdev) pci_read_config_dword (hammers[0], AMD64_GARTAPERTUREBASE, &apbase); /* if x86-64 aperture base is beyond 4G, exit here */ - if ( (apbase & 0x7fff) >> (32 - 25) ) - return -ENODEV; + if ( (apbase & 0x7fff) >> (32 - 25) ) { + printk(KERN_INFO PFX "aperture base > 4G\n"); + return -ENODEV; + } apbase = (apbase & 0x7fff) << 25;