All of lore.kernel.org
 help / color / mirror / Atom feed
From: Davide Viti <zinosat@tiscali.it>
To: <galak@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: R: Re: PCI device not working
Date: Thu, 27 Sep 2012 13:43:29 +0200 (CEST)	[thread overview]
Message-ID: <5793250.72901348746209965.JavaMail.defaultUser@defaultHost> (raw)

Hi,

>So its odd that scanning of the second bus didn't report any devices.  Do=
=20
you have code that implements ppc_md.pci_exclude_device ?

not that I'm aware=20
of

>You might also want to put some code in the indirect PCI ops (indirect.c)=
=20
to see what actual values you are getting from various indirect_read_config=
()=20
calls.

To make sure that  ppc_md.pci_exclude_device is not implemented, I've=20
put some printouts inside  indirect_read_config(): I print various paramete=
rs=20
when the function is called, and when it returns and note that:

 1.=20
indirect_read_config() is called 422 times:=20
     174 times for=20
[/pcie@ffe0a000] (controller where the device is not detected)
     248 times=20
for [/pcie@ffe09000]=20
 2. ppc_md.pci_exclude_device is always NULL
 3. the=20
function always returns with PCIBIOS_SUCCESSFUL
 4. the only call to =20
indirect_read_config() inside which  bus_no=3D0x3, returns with the followi=
ng=20
log:

pci_bus 0001:03: scanning bus
-> ind_r_config - [/pcie@ffe0a000]=20
devfn=3D0x0 len=3D0x4 hose->indirect_type=3D0x16 hose->first_busno=3D0x2 bu=
s-
>number=3D0x3
 -> ind_r_config [/pcie@ffe0a000] - (bus_no=3D0x3 reg=3D0x0=20
cfg_data=3D0xffffffff len=3D0xff7eb004) val=3D0x4 PCIBIOS_SUCCESSFUL =20

the entire=20
log is about 116Kb and is available in [1] or [2] (didn't feel like pasting=
 so=20
much data on the ML)
thanx alot,

Davide

[1] http://pastebin.com/JaPGmmfs
[2]=20
http://paste2.org/p/2273728


Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale pi=
=C3=B9 di uno spot in TV. Per ogni nuovo abbonato 30 =E2=82=AC di premio pe=
r te e per lui! Un amico al mese e parli e navighi sempre gratis: http://fr=
eelosophy.tiscali.it/

             reply	other threads:[~2012-09-27 11:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27 11:43 Davide Viti [this message]
2012-09-27 12:27 ` PCI device not working Kumar Gala
2012-09-27 13:14 R: " Davide Viti
2012-09-28 14:48 Davide Viti
2012-10-04 12:24 Davide Viti

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=5793250.72901348746209965.JavaMail.defaultUser@defaultHost \
    --to=zinosat@tiscali.it \
    --cc=galak@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.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.