Bug 784985

Summary: xf86-video-nv: ppc patch
Product: [openSUSE] openSUSE 12.2 Reporter: Marcus Meissner <meissner>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED WONTFIX QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium CC: dvaleev, schwab
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marcus Meissner 2012-10-13 15:04:58 UTC
done by andreas schwab.

not sure why the check for the "nv" kernel driver is removed.

Index: xf86-video-nv-probe.diff
===================================================================
--- xf86-video-nv-probe.diff (added)
+++ xf86-video-nv-probe.diff (revision 2)
@@ -0,0 +1,18 @@
+--- xf86-video-nv-2.1.18/src/nv_driver.c
++++ xf86-video-nv-2.1.18/src/nv_driver.c
+@@ -912,15 +912,6 @@ NVPciProbe(DriverPtr drv, int entity, st
+                       NVGetPCIXpressChip(dev) : dev->vendor_id << 16 | dev->device_id;
+     const char *name = xf86TokenToString(NVKnownChipsets, id);
+
+-    if (pci_device_has_kernel_driver(dev)) {
+-        xf86DrvMsg(0, X_ERROR,
+-                   NV_NAME ": The PCI device 0x%x (%s) at %2.2d@%2.2d:%2.2d:%1.1d has a kernel module claiming it.\n",
+-                   id, name, dev->bus, dev->domain, dev->dev, dev->func);
+-        xf86DrvMsg(0, X_ERROR,
+-                   NV_NAME ": This driver cannot operate until it has been unloaded.\n");
+-        return FALSE;
+-    }
+-
+     if(dev->vendor_id == PCI_VENDOR_NVIDIA && !name &&
+        !NVIsSupported(id) && !NVIsG80(id)) {
+         /* See if pci.ids knows what the heck this thing is */
Comment 1 Stefan Dirsch 2012-10-15 08:13:12 UTC
I assume the check exists since nouveau driver (KMS) and nvidia driver (proprietary) conflicts with nv driver (UMS). Don't know, why Andreas removed it. Maybe there is no nouveau KMS available on ppc. For sure there is no nvidia proprietary driver available for PPC. IMH the patch is *not* acceptable in this form.
Comment 2 Stefan Dirsch 2012-10-15 08:27:38 UTC
Andreas, could you explain what's the issue here on ppc? Thanks.
Comment 3 Andreas Schwab 2012-10-15 09:40:27 UTC
On non-legacy platforms there is always a framebuffer driver claming the device, so the check is useless for checking for KMS.
Comment 4 Stefan Dirsch 2012-10-15 10:12:32 UTC
(In reply to comment #3)
> On non-legacy platforms there is always a framebuffer driver claming the
> device, so the check is useless for checking for KMS.

Maybe on ppc with the native framebuffer drivers enabled. It is not on %ix86/x86_64, where these are disabled and only generic framebuffer is enabled. Of course with KMS you now have native framebuffers as well.
Comment 5 Andreas Schwab 2012-10-15 10:23:39 UTC
%ix86/x86_64 isn't non-legacy.
Comment 6 Stefan Dirsch 2012-10-15 14:02:40 UTC
Still I'm not interested in breaking non-ppc platforms. Do you think this check has been introduced just for fun?
Comment 7 Andreas Schwab 2012-10-15 14:18:13 UTC
I've never intented to submit the patch as is.
Comment 8 Stefan Dirsch 2012-10-15 14:26:39 UTC
LOL.
Comment 9 Marcus Meissner 2012-10-15 14:58:52 UTC
I cannot easily integrate it seperately (ppc specific) into openSUSE:12.2:PowerPC, as this package has received online updates already :/

so if this is required for ppc machines to work, we need to find a acceptable upsrteam solzution.
Comment 10 Stefan Dirsch 2014-05-22 12:37:27 UTC
openSUSE 12.2 is no longer supported. Hence the issue won't be fixed for this product. In case the issue still is reproducable with a supported product (openSUSE 12.3/13.1 at the moment) or with openSUSE:Factory, please feel free to reopen. Thanks.