Displaying 20 results from an estimated 31 matches for "x_error".
Did you mean:
xs_error
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
...ce_match,
NVPciProbe
};
@@ -214,18 +234,46 @@ NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev,
drmVersion *version;
int chipset, ret;
char *busid;
+ struct xwl_screen *xwl_screen = NULL;
- if (!xf86LoaderCheckSymbol("DRICreatePCIBusID")) {
- xf86DrvMsg(-1, X_ERROR, "[drm] No DRICreatePCIBusID symbol\n");
- return FALSE;
- }
- busid = DRICreatePCIBusID(pci_dev);
-
- ret = nouveau_device_open(busid, &dev);
- if (ret) {
- xf86DrvMsg(-1, X_ERROR, "[drm] failed to open device\n");
- free(busid);
- return FALSE;
+ if (xorgWayland) {
+...
2012 May 23
1
[PATCH (nouveau)] Add xwayland support
...41,28 @@ NVPciProbe(DriverPtr drv, int entity_num, struct pci_device *pci_dev,
drmVersion *version;
int chipset, ret;
char *busid;
+#ifdef XORG_WAYLAND
+ struct xwl_screen *xwl_screen = NULL;
+ if (xorgWayland) {
+ xwl_screen = xwl_screen_create ();
+ if (!xwl_screen) {
+ xf86DrvMsg(-1, X_ERROR, "Failed to initialise xwayland.\n");
+ return FALSE;
+ }
+ if (xwl_drm_pre_init(xwl_screen) != Success) {
+ xwl_screen_destroy(xwl_screen);
+ xf86DrvMsg(-1, X_ERROR, "Failed to initialise xwayland drm.\n");
+ return FALSE;
+ }
+ ret = nouveau_device_wrap(xwl_screen_...
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...|| level < 0)
+ return;
+
+ len = snprintf(val, BACKLIGHT_VALUE_LEN, "%d\n", level);
+ sprintf(path, "%s/%s/brightness",
+ BACKLIGHT_CLASS, drmmode_output->backlight_iface);
+ fd = open(path, O_RDWR);
+ if (fd == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "failed to open %s for backlight control: %s\n",
+ path, strerror(errno));
+ return;
+ }
+
+ ret = write(fd, val, len);
+ if (ret == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "write...
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
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
2010 May 23
1
[PATCH] nouveau: detect incompatible libglx.so
...glxIsCompatible()
+{
+ XF86ModuleData *d = LoaderSymbol("glxModuleData");
+
+ if (!d) {
+ xf86DrvMsg(-1, X_INFO,
+ "NOUVEAU: Couldn't find glx module informations. "
+ "Assuming it is disabled.\n");
+ return TRUE;
+ }
+
+ if (!d->vers) {
+ xf86DrvMsg(-1, X_ERROR,
+ "NOUVEAU: glx module has no version information!\n");
+ return FALSE;
+ }
+
+ if (!d->vers->vendor) {
+ xf86DrvMsg(-1, X_ERROR,
+ "NOUVEAU: glx module has no vendor information!\n");
+ return FALSE;
+ }
+
+ Bool ok = strcmp(d->vers->vendor, MODULEVENDORSTRI...
2013 Jun 06
1
[PATCH 1/2] nouveau/mode: split out create_ranged_atom
...];
+
+ atom_range[0] = min;
+ atom_range[1] = max;
+
+ *atom = MakeAtom(name, strlen(name), TRUE);
+ err = RRConfigureOutputProperty(output->randr_output, *atom,
+ FALSE, TRUE, immutable,
+ 2, atom_range);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRConfigureOutputProperty error, %d\n", err);
+ }
+ err = RRChangeOutputProperty(output->randr_output, *atom,
+ XA_INTEGER, 32, PropModeReplace, 1, &value, FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChange...
2012 Jun 10
0
[PATCH] More explicit error message when the kernel module has been configured 'noaccel' but the xorg configuration doesn't disable accelleration
.../src/nv_dma.c b/src/nv_dma.c
index d2a6d00..339b4fe 100644
--- a/src/nv_dma.c
+++ b/src/nv_dma.c
@@ -53,8 +53,13 @@ NVInitDma(ScrnInfoPtr pScrn)
ret = nouveau_object_new(device, 0, NOUVEAU_FIFO_CHANNEL_CLASS,
data, size, &pNv->channel);
if (ret) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Error creating GPU channel: %d\n", ret);
+ if (ret == -ENODEV)
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "'No such device' while creating GPU channel: perhaps you disabled "
+ "accelleration in your module config but not in your X.O...
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties
[PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available.
[PATCH 3/3] kms: Add TV-out support
src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 261 insertions(+), 142 deletions(-)
2015 Feb 22
2
[PATCH] Basic GM206 bringup (as copy of GM100)
...c/nv_driver.c b/src/nv_driver.c
index e726292..4c40763 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -377,6 +377,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
case 0xf0:
case 0x100:
case 0x110:
+ case 0x120:
break;
default:
xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02x\n", chipset);
@@ -930,6 +931,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
pNv->Architecture = NV_KEPLER;
break;
case 0x110:
+ case 0x120:
pNv->Architecture = NV_MAXWELL;
break;
default:
--
2.1.4
2016 Jul 07
2
Nouveau fails to initialize G94GL / Quadro-FX1800 on aarch64 board
...xf86AllocateScreen I end up with xf86GPUScreens == 1 and
xf86NumScreens == 0.
The xf86GPUScreens seems to be ignored by all the following code, only
xf86NumScreens is evaluated afterwards in xf86BusConfig:
/* If nothing was detected, return now */
if (xf86NumScreens == 0) {
xf86Msg(X_ERROR, "No devices detected.\n");
return FALSE;
}
Is the issue that xf86NumScreens is zero at the beginning, or that
xf86GPUScreens is not taken into account later on?
Any help would be highly appreciated.
Thanks and best regards, Clemens
2012 Nov 25
0
[ddx PATCH] add some missing newlines in error messages
...deletions(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 803785d..4d2d09d 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -357,7 +357,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
if (ret) {
xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
- "failed to set mode: %s", strerror(-ret));
+ "failed to set mode: %s\n", strerror(-ret));
return FALSE;
}
@@ -532,7 +532,7 @@ drmmode_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
size, red, green, blue);
if (ret != 0) {
xf...
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
...ct pci_device *pci_dev)
}
static Bool
+NVHasMirSupport(struct pci_device *pci_dev)
+{
+ char *busid;
+
+ busid = XNFprintf("pci:%04x:%02x:%02x.%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_...
2012 Jul 27
1
[PATCH] nvc0: Add and enable vblank support
...channel %d\n", fifo->channel);
+ if (pNv->Architecture >= NV_ARCH_C0) {
+ struct nvc0_fifo *data = (struct nvc0_fifo *)fifo;
+ ret = nouveau_bo_wrap(pNv->dev, data->notify,
+ &pNv->notifier_bo);
+ if (ret) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Failed to obtain notifier bo: %d\n", ret);
+ NVTakedownDma(pScrn);
+ return FALSE;
+ }
+ }
+
ret = nouveau_pushbuf_new(pNv->client, pNv->channel, 4, 32 * 1024,
true, &pNv->pushbuf);
if (ret) {
diff --git a/src/nv_driver.c b/src/nv_driver.c
ind...
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
...f86GPUScreens == 1 and
> xf86NumScreens == 0.
>
> The xf86GPUScreens seems to be ignored by all the following code, only
> xf86NumScreens is evaluated afterwards in xf86BusConfig:
> /* If nothing was detected, return now */
> if (xf86NumScreens == 0) {
> xf86Msg(X_ERROR, "No devices detected.\n");
> return FALSE;
> }
>
> Is the issue that xf86NumScreens is zero at the beginning, or that
> xf86GPUScreens is not taken into account later on?
>
> Any help would be highly appreciated.
>
> Thanks and best regards, Clemens...
2016 Oct 16
0
[PATCH 5/5] recognize and accelerate GM20x
...c/nv_driver.c b/src/nv_driver.c
index fff83f8..61940a8 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -390,6 +390,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
case 0xf0:
case 0x100:
case 0x110:
+ case 0x120:
break;
default:
xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02X\n", chipset);
@@ -941,6 +942,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
pNv->Architecture = NV_KEPLER;
break;
case 0x110:
+ case 0x120:
pNv->Architecture = NV_MAXWELL;
break;
default:
diff --git a/src/nvc0_accel.c b/src/nvc0_accel.c
index...
2016 Oct 17
2
[PATCH 5/5] recognize and accelerate GM20x
...40a8 100644
> --- a/src/nv_driver.c
> +++ b/src/nv_driver.c
> @@ -390,6 +390,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
> case 0xf0:
> case 0x100:
> case 0x110:
> + case 0x120:
> break;
> default:
> xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02X\n", chipset);
> @@ -941,6 +942,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
> pNv->Architecture = NV_KEPLER;
> break;
> case 0x110:
> + case 0x120:
> pNv->Architecture = NV_MAXWELL;
> break;
> default:
> diff --git...
2016 Oct 27
0
[PATCH v2 7/7] recognize and accelerate GM20x
...c/nv_driver.c b/src/nv_driver.c
index fff83f8..61940a8 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -390,6 +390,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
case 0xf0:
case 0x100:
case 0x110:
+ case 0x120:
break;
default:
xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02X\n", chipset);
@@ -941,6 +942,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
pNv->Architecture = NV_KEPLER;
break;
case 0x110:
+ case 0x120:
pNv->Architecture = NV_MAXWELL;
break;
default:
diff --git a/src/nvc0_accel.c b/src/nvc0_accel.c
index...
2015 Mar 18
0
[PATCH] Basic GM206 bringup (as copy of GM100)
..._driver.c
> @@ -377,6 +377,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
> case 0xf0:
> case 0x100:
> case 0x110:
> + case 0x120:
> break;
> default:
> xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02x\n", chipset);
> @@ -930,6 +931,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
> pNv->Architecture = NV_KEPLER;
> break;
> case 0x110:
> + case 0x120:
> pNv->Architecture = NV_MAXW...