From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Nvidia/Riva FB: Switch to pci_get refcounting APIs not pci_find_slot
Date: Mon, 23 Apr 2007 22:24:56 +0800 [thread overview]
Message-ID: <1177338296.4756.3.camel@daplas> (raw)
In-Reply-To: <20070423150134.6fcb815e@the-village.bc.nu>
On Mon, 2007-04-23 at 15:01 +0100, Alan Cox wrote:
> Signed-off-by: Alan Cox <alan@redhat.com>
Thanks, and this actually helped expose 2 bugs.
> pll = NV_RD32(par->PRAMDAC0, 0x0500);
> M = (pll >> 0) & 0xFF;
> N = (pll >> 8) & 0xFF;
> @@ -707,19 +707,21 @@
> sim_data.pix_bpp = (char)pixelDepth;
> sim_data.enable_video = 0;
> sim_data.enable_mp = 0;
> - pci_find_slot(0, 1);
> + /* pci_find_slot(0, 1); */
This should have been dev = pci_find_slot/pci_get_bus_and_slot().
> pci_read_config_dword(dev, 0x7C, &sim_data.memory_type);
> + pci_dev_put(dev);
> sim_data.memory_type = (sim_data.memory_type >> 12) & 1;
> sim_data.memory_width = 64;
>
> - dev = pci_find_slot(0, 3);
> + dev = pci_get_bus_and_slot(0, 3);
> pci_read_config_dword(dev, 0, &memctrl);
> + pci_dev_put(dev);
> memctrl >>= 16;
>
> if ((memctrl == 0x1A9) || (memctrl == 0x1AB) || (memctrl == 0x1ED)) {
> int dimm[3];
>
> - pci_find_slot(0, 2);
> + /* pci_find_slot(0, 2); */
Ditto.
Will resubmit.
Tony
prev parent reply other threads:[~2007-04-23 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 14:01 [PATCH] Nvidia/Riva FB: Switch to pci_get refcounting APIs not pci_find_slot Alan Cox
2007-04-23 14:24 ` Antonino A. Daplas [this message]
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=1177338296.4756.3.camel@daplas \
--to=adaplas@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@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.