From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related?
Date: Mon, 11 Jan 2010 17:54:56 +0000 [thread overview]
Message-ID: <201001111054.56485.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <d72eeaf61001041440s58b51b9j58e62af378b55224@mail.gmail.com>
On Saturday 09 January 2010 04:46:55 am Émeric Maschino wrote:
> > 2010/1/9 Bjorn Helgaas <bjorn.helgaas@hp.com>:
> > Then for some reason we must be calling hp_zx1_setup() again, and this
> > time it failed because the cookie is gone. This could happen if
> > agp_add_bridge() failed, but I don't see a way it could fail after
> > printing the "AGP aperture is 512M" message.
> >
> > Can you try the attached patch, please?
>
> Please find below the dmesg output with the patches attached in your
> previous message. I don't have the impression that hp_zx1_setup() is
> called twice:
> [ 12.778181] Linux agpgart interface v0.103
> [ 12.786149] agp_hp_init
> [ 12.885078] agpgart: HP ZX1 IOC: IOPDIR shared with sba_iommu
> [ 12.885115] GART at 0xe000004080ec0000
> [ 12.885147] read cookie at 0xe000004080ec0000: 0xbadbadc0ffee
> [ 12.885187] hp_zx1_create_gatt_table
> [ 12.885833] (null): AGP aperture is 512M @ 0x60000000
> [ 12.885866] agp_add_bridge: returning 0 (success)
> [ 12.885899] hp_zx1_setup: agp_add_bridge returned 0
Here's what I don't understand. My code looks like this:
error = hp_zx1_setup(sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa);
printk("%s: hp_zx1_setup returned %d\n", __func__, error);
if (error)
return AE_OK;
printk(KERN_INFO PFX "Detected HP ZX1 %s AGP chipset "
"(ioc=%llx, lba=%llx)\n", (char *)context,
sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa);
If hp_zx1_setup returned 0, we should see the "Detected HP ZX1
HWP0003 AGP chipset" message next, but we don't:
> [ 12.885932] zx1_gart_probe: hp_zx1_setup returned 0
> [ 12.885966] agpgart: HP ZX1 IOC: IOPDIR shared with sba_iommu
> [ 12.886001] GART at 0xe000004080ec0000
> [ 12.886032] read cookie at 0xe000004080ec0000: 0x0
> [ 12.886065] agpgart: No reserved IO PDIR entry found; GART disabled
> [ 12.886099] hp_zx1_cleanup
Is your code different? Can you instrument this area and figure
out what's going on? From the output, it seems like we're taking
the "return AE_OK" path, but we shouldn't be.
Bjorn
next prev parent reply other threads:[~2010-01-11 17:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 22:40 [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-04 23:50 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-07 23:02 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-07 23:57 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-08 20:06 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-08 23:55 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-09 11:46 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-11 17:54 ` Bjorn Helgaas [this message]
2010-01-11 18:23 ` Luck, Tony
2010-01-11 18:35 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-11 21:18 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-11 21:40 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-13 7:15 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-13 17:13 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be kernel-related? Bjorn Helgaas
2010-01-14 0:10 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this Dave Airlie
2010-01-14 8:50 ` [drm:drm_mmap_locked] *ERROR* Could not find map: Could this be Émeric Maschino
2010-01-14 8:54 ` Émeric Maschino
2010-01-18 15:44 ` Émeric Maschino
2010-01-22 22:19 ` Émeric Maschino
2010-02-02 21:05 ` Émeric Maschino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201001111054.56485.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox