Re: bisected pcmcia bug - unable to map card memory on old laptops

From: Yinghai Lu
Date: Fri Aug 03 2012 - 14:12:07 EST


On Fri, Aug 3, 2012 at 8:32 AM, Piotr Gluszenia Slawinski
<curious@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hello. I've bisected bug which makes old laptops fail to detect (any) pcmcia
> cards with message 'unable to map card memory!' .
> commit in question is :
>
> 30919b0bf356a8ee0ef4f7d38ca8ad99b96820b2 is the first bad commit
> commit 30919b0bf356a8ee0ef4f7d38ca8ad99b96820b2
> Author: Bjorn Helgaas <bjorn.helgaas@xxxxxx>
> Date: Thu Dec 16 10:38:51 2010 -0700
>
> x86: avoid low BIOS area when allocating address space
>
> This implements arch_remove_reservations() so allocate_resource() can
> avoid any arch-specific reserved areas. This currently just avoids the
> BIOS area (the first 1MB), but could be used for E820 reserved areas if
> that turns out to be necessary.
>
> We previously avoided this area in pcibios_align_resource(). This patch
> moves the test from that PCI-specific path to a generic path, so *all*
> resource allocations will avoid this area.
>
> Acked-by: H. Peter Anvin <hpa@xxxxxxxxx>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>
> Signed-off-by: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>
>
> :040000 040000 58cf7334131f8ad10bc814e56ef6538781b01add
> 2434a5e5da4eabf3e413ac694c0cdeef91e17680 M arch
>
> bug is present in all kernels since late 2.6.36

can you send the boot log with working and not working kernel?
Please make sure you have PCI_DEBUG set in your config.

Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/