Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 838f3cfa86de5ada3557dc78dd3c61424c1fb6fa Mon Sep 17 00:00:00 2001
- From: jameh <jamie.alban@gmail.com>
- Date: Thu, 22 Aug 2013 13:40:25 -0400
- Subject: [PATCH] Add print messages for pci.
- ---
- drivers/gpu/drm/nouveau/nouveau_drm.c | 32 ++++++++++++++++++++++++++++++++
- 1 file changed, 32 insertions(+)
- diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
- index 383f4e6..9bba5a3 100644
- --- a/drivers/gpu/drm/nouveau/nouveau_drm.c
- +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
- @@ -240,6 +240,25 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
- struct apertures_struct *aper;
- bool boot = false;
- int ret;
- + pr_info("jamie:\n");
- + pr_info("pci_device_id->vendor: %d\n", pent->vendor);
- + pr_info("pci_device_id->device: %d\n", pent->device);
- + pr_info("pci_device_id->subvendor: %d\n", pent->subvendor);
- + pr_info("pci_device_id->subdevice: %d\n", pent->subdevice);
- + pr_info("pci_device_id->class: %d\n", pent->class);
- + pr_info("pci_device_id->class_mask: %d\n", pent->class_mask);
- + pr_info("pci_dev->bus->number: %d\n", pdev->bus->number);
- + pr_info("nouveau_name(pci_dev): %d\n", nouveau_name(pdev));
- + pr_info("pci_dev->vendor: %d\n", pdev->vendor);
- + pr_info("pci_dev->device: %d\n", pdev->device);
- + pr_info("pci_dev->subsystem_vendor: %d\n", pdev->subsystem_vendor);
- + pr_info("pci_dev->subsystem_device: %d\n", pdev->subsystem_device);
- +
- + if ((pdev->bus->number == 3) &&
- + (pdev->device == 2147)) {
- + pr_info("Detected 9400m on bus 3, ignoring.");
- + return 0; // you can also try return -E*
- + }
- /* remove conflicting drivers (vesafb, efifb etc) */
- aper = alloc_apertures(3);
- @@ -422,6 +441,19 @@ nouveau_drm_unload(struct drm_device *dev)
- static void
- nouveau_drm_remove(struct pci_dev *pdev)
- {
- + pr_info("jamie:\n");
- + pr_info("nouveau_name(pci_dev): %d\n", nouveau_name(pdev));
- + pr_info("pci_dev->vendor: %d\n", pdev->vendor);
- + pr_info("pci_dev->device: %d\n", pdev->device);
- + pr_info("pci_dev->subsystem_vendor: %d\n", pdev->subsystem_vendor);
- + pr_info("pci_dev->subsystem_device: %d\n", pdev->subsystem_device);
- +
- + if ((pdev->bus->number == 3) &&
- + (pdev->device == 2147)) {
- + pr_info("Detected 9400m on bus 3, ignoring.");
- + return 0; // you can also try return -E*
- + }
- +
- struct drm_device *dev = pci_get_drvdata(pdev);
- struct nouveau_drm *drm = nouveau_drm(dev);
- struct nouveau_object *device;
- --
- 1.8.3.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement