All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Kamil Grzebien <ciptok@gmail.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org
Subject: Re: Initializing iwl3945 error
Date: Tue, 13 Mar 2012 09:12:36 +0100	[thread overview]
Message-ID: <20120313081235.GC15333@redhat.com> (raw)
In-Reply-To: <CANHD2=rF6dBkLLkWAj8uS3nq0B1wCt7Uvu=HzO84UNz2kuiaFg@mail.gmail.com>

On Sun, Mar 11, 2012 at 05:43:26PM +0000, Kamil Grzebien wrote:
> I've initialisation problem with my iwl3945 network card in Dell XPS
> M1530 laptop. The issue is known and described in couple of bug
> reports (eg. http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2143).
> There are workarounds but I'd like to solve the problem permanently.
> Basically when initializing I get:
> 
> iwl3945 0000:0b:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ
> iwl3945 0000:0b:00.0: setting latency timer to 64
> iwl3945 0000:0b:00.0: MAC is in deep sleep!.  CSR_GP_CNTRL = 0xFFFFFFFF
> iwl3945 0000:0b:00.0: MAC is in deep sleep!.  CSR_GP_CNTRL = 0xFFFFFFFF
> ....
> iwl3945 0000:0b:00.0: MAC is in deep sleep!.  CSR_GP_CNTRL = 0xFFFFFFFF
> iwl3945 0000:0b:00.0: bad EEPROM signature,EEPROM_GP=0x00000007
> iwl3945 0000:0b:00.0: EEPROM not found, EEPROM_GP=0xffffffff
It's worth to mansion that this problem happen after wakeup from suspend
to ram.

> 1. Driver can't initialize card as all ioread32/iowrite32 seems to not
> do their job. All reads finalize with 0xffffffff.
> 
> However I can see that:
> - pci_iomap(pdev, 0, 0) doesn't return error,
> - pci_resource_start(pdev, 0) seems gives correct address (I can
> compare it with the one I can see in /proc/iomem).
> 
> If I access the memory directly, not by mapping, I can write and read
> pci memory but driver load fails anyway. I don't understand why can't
> access using mapped memory.
How do you access memory directly ?

> 2. If I check BASE_ADDRESS with setpci it doesn't give correct values:
> 
> # setpci -v -s 0b:00.0 BASE_ADDRESS_0 BASE_ADDRESS_1
> 0000:0b:00.0 @10 = 00000000
> 0000:0b:00.0 @14 = 00000000
> 
> Not sure if it's done by driver itself or it should point correct
> values even if the driver wasn't fully loaded.
> 
> Have you got any idea of:
> - why IO memory isn't accessible? what could cause that?
> - how APIC could change the load process in this particular case? (if
> I boot with noapic kernel option it usually works fine)
Is this really noapic or maybe noacpi ? ACPI manage PCIe devices.

> This issue is reproducible in 100% on my system when I turn on the
> machine. It doesn't occur after some work on it. I'd be very happy to
> get rid of the issue.
> 
> Could you point some ideas that might be worth checking in driver or
> kernel please? I've tried couple of ideas but none worked for me.

Would be good to check if pcie bridge is configured correctly after
suspend to ram. But I don't know how to do this, that's why we are
on linux-pci mailing list :-)

Note we have similar bug report, which was actual regression and
that problem is already fixed by PCI patch:
http://marc.info/?l=linux-kernel&m=132577331232330&w=2

Stanislaw


  reply	other threads:[~2012-03-13  8:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11 17:43 Initializing iwl3945 error Kamil Grzebien
2012-03-13  8:12 ` Stanislaw Gruszka [this message]
2012-03-15 21:08   ` Bjorn Helgaas
2012-04-04 16:13     ` Stanislaw Gruszka
2012-04-05  8:24       ` Kamil Grzebien
2012-04-08 11:51     ` Kamil Grzebien
2012-05-28 14:04       ` Stanislaw Gruszka
2012-05-28 18:21         ` Bjorn Helgaas
2012-05-29  9:21           ` Stanislaw Gruszka
2012-06-22  3:30             ` Bjorn Helgaas
2012-07-01 18:01               ` Kamil Grzebien
2012-07-02  5:31                 ` Stanislaw Gruszka
2012-07-02 20:49                   ` Kamil Grzebien
2012-07-06 20:38                     ` Bjorn Helgaas
2012-07-06 21:34                       ` Yinghai Lu

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=20120313081235.GC15333@redhat.com \
    --to=sgruszka@redhat.com \
    --cc=ciptok@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-wireless@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.