search for: nvpciprob

Displaying 12 results from an estimated 12 matches for "nvpciprob".

Did you mean: nvpciprobe
2012 May 23
1
[PATCH (nouveau)] Add xwayland support
...a/src/nv_driver.c +++ b/src/nv_driver.c @@ -32,6 +32,10 @@ #ifdef DRI2 #include "dri2.h" #endif +#ifdef XORG_WAYLAND +#include <xf86Priv.h> +#include <xwayland.h> +#endif /* * Forward definitions for the functions that make up the driver. @@ -73,6 +77,28 @@ static Bool NVPciProbe ( DriverPtr drv, struct pci_device *dev, intptr_t match_data ); + +static Bool nouveau_driver_func(ScrnInfoPtr pScrn, + xorgDriverFuncOp op, + pointer ptr) +{ + xorgHWFlags *flag; + + switch (op) { + case GET_REQUIRED_HW_INTERFACES: + flag = (CARD32*)ptr; + (*flag) = 0; +#if...
2012 Nov 01
5
[PATCH 0/4] nouveau: xserver 1.13 compat fixes
Here are a few patches adding some missing functions in NvPlatformProbe, which iirc is being used as of xserver 1.13 First patch adds a nouveau_kernel_mode_enabled helper, similar to xf86-video-radeon Second and third use the function in Nv{Pci,Platform}Probe And last one ensures we can still use ZaphodHead and relative head positioning via xorg.conf The coding style may be a bit off, despite my
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
...i2.AuthMagic2 = nouveau_auth_magic; +#endif + #if DRI2INFOREC_VERSION >= 6 dri2.SwapLimitValidate = nouveau_dri2_swap_limit_validate; #endif diff --git a/src/nv_driver.c b/src/nv_driver.c index beef789..fb29ce5 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -72,6 +72,26 @@ static Bool NVPciProbe ( DriverPtr drv, struct pci_device *dev, intptr_t match_data ); + +static Bool nouveau_driver_func(ScrnInfoPtr pScrn, + xorgDriverFuncOp op, + pointer ptr) +{ + xorgHWFlags *flag; + + switch (op) { + case GET_REQUIRED_HW_INTERFACES: + flag = (CARD32*)ptr; + (*flag) = 0; + i...
2010 May 23
1
[PATCH] nouveau: detect incompatible libglx.so
...formation!\n"); + return FALSE; + } + + Bool ok = strcmp(d->vers->vendor, MODULEVENDORSTRING) == 0; + if (!ok) + xf86DrvMsg(-1, X_ERROR, + "NOUVEAU: glx module comes from incompatible vendor: \"%s\"\n", + d->vers->vendor); + + return ok; +} + static Bool NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev, intptr_t match_data) @@ -209,6 +241,9 @@ NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev, int chipset, ret; char *busid; + if (!glxIsCompatible()) + return FALSE; + if (!xf86LoaderCheckSymbol("DRICre...
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
....%d", + pci_dev->domain, pci_dev->bus, pci_dev->dev, pci_dev->func); + + if (xmir_get_drm_fd(busid) < 0) { + xf86DrvMsg(-1, X_ERROR, "[XMir] GPU %s not handled by Mir\n", busid); + free(busid); + return FALSE; + } + free(busid); + return TRUE; +} + +static Bool NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev, intptr_t match_data) { @@ -343,6 +362,9 @@ NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev, }; ScrnInfoPtr pScrn = NULL; + if (xorgMir && !NVHasMirSupport(pci_dev)) + return FALSE; + if (!NVHasKM...
2013 Feb 16
8
Bugfix + dri1 cleanup patches
Had those patches living in my local tree for a while now. Here is a respin on top of latest master Patch 1: regression fix, preventing the ddx from loading if kernel module is not loaded Patches 2-5: Completely nuke dri1, make dri2 hard dependency Patches 6-7: Assist people with first-time build of nouveau Git complains about whitespace errors in patch 7, which for the sake of me I cannot
2016 Jul 06
2
Nouveau fails to initialize G94GL / Quadro-FX1800 on aarch64 board
Hi Ilia, > Very odd. Perhaps you're trying to run X as non-root and don't have > proper permissions on /dev/dri/card0? It seems like something in > https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/tree/src/nv_driver.c#n400 Thanks for the pointer, I'll try to dig a bit deeper there. I forgot to mention that I am trying to run X inside an debian unstable chroot (the
2016 Jul 07
0
Nouveau fails to initialize G94GL / Quadro-FX1800 on aarch64 board
...t have >> proper permissions on /dev/dri/card0? It seems like something in >> https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/tree/src/nv_driver.c#n400 The call to HasKMS came from NVPlatformProbe - NVPlatformProbe succeeds and returns true. However, it seems Xorg aborts before NVPciProbe is ever called. I'll have a look at Xorg's source to get a better understanding what is happening arround nouveau. Br, Clemens
2009 Aug 27
0
[PATCH] nv: refuse to load if there's a kernel driver bound to the device already
--- src/nv_driver.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/nv_driver.c b/src/nv_driver.c index a7cf2dc..6f7fc0e 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -780,6 +780,12 @@ NVPciProbe(DriverPtr drv, int entity, struct pci_device *dev, intptr_t data) NVGetPCIXpressChip(dev) : dev->vendor_id << 16 | dev->device_id; const char *name = xf86TokenToString(NVKnownChipsets, id); + if (pci_device_has_kernel_driver(dev)) { + ErrorF("The P...
2008 May 30
9
[Bug 16165] New: Multi-gpu Quadro NVS 400 (NV17a x2) fails to initialise xserver
http://bugs.freedesktop.org/show_bug.cgi?id=16165 Summary: Multi-gpu Quadro NVS 400 (NV17a x2) fails to initialise xserver Product: xorg Version: 7.3 Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo:
2013 Feb 13
14
[Bug 60772] New: xf86-video-nouveau fails to modprobe nouveau: KMS not enabled
https://bugs.freedesktop.org/show_bug.cgi?id=60772 Priority: medium Bug ID: 60772 Assignee: nouveau at lists.freedesktop.org Summary: xf86-video-nouveau fails to modprobe nouveau: KMS not enabled QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS: Linux (All)
2008 Oct 29
39
[Bug 18286] New: GeForce 8300 not supported (10de:0848/C77/MCP77)
...nce at least 173.14.05) (II) NVIDIA(0): NVIDIA GPU GeForce 8300 (C77) at PCI:2:0:0 (GPU-0). I changed the nv_driver.c to get some information about the architecture, and to try to support it. static int NVGetArchitecture(volatile uint32_t *regs) ... Architecture is detected as 0xAA. static Bool NVPciProbe Allowed architecture up to 0xAA (was 0x9F before). Excerpt from Xorg.log is attached, where libglx.so was still set to closed source nvidia. [SBr] log messages have been added by myself. After correcting the glx, the X server crashed quite hard. I will do this again and attach the log. Pls tell...