Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device De...
details: https://anonhg.NetBSD.org/src/rev/045e8aec3762
branches: trunk
changeset: 992962:045e8aec3762
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:17:36 2018 +0000
description:
Device hangs on pci disable in match; try skipping enable/disable.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c | 14 +++++++--
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r ca4132683811 -r 045e8aec3762 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c Mon Aug 27 14:17:21 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c Mon Aug 27 14:17:36 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.7 2018/08/27 07:43:28 riastradh Exp $ */
+/* $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.8 2018/08/27 14:17:36 riastradh Exp $ */
/*
* Copyright 2015 Red Hat Inc.
@@ -24,7 +24,7 @@
* Authors: Ben Skeggs <bskeggs%redhat.com@localhost>
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.7 2018/08/27 07:43:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.8 2018/08/27 14:17:36 riastradh Exp $");
#include <core/pci.h>
#include "priv.h"
@@ -1634,7 +1634,9 @@
nvkm_device_pci_dtor(struct nvkm_device *device)
{
struct nvkm_device_pci *pdev = nvkm_device_pci(device);
- linux_pci_disable_device(pdev->pdev);
+#ifndef __NetBSD__
+ pci_disable_device(pdev->pdev);
+#endif
return pdev;
}
@@ -1671,11 +1673,15 @@
const struct nvkm_device_pci_vendor *pciv;
const char *name = NULL;
struct nvkm_device_pci *pdev;
+#ifndef __NetBSD__
int ret;
+#endif
- ret = linux_pci_enable_device(pci_dev);
+#ifndef __NetBSD__
+ ret = pci_enable_device(pci_dev);
if (ret)
return ret;
+#endif
switch (pci_dev->vendor) {
case 0x10de: pcid = nvkm_device_pci_10de; break;
Home |
Main Index |
Thread Index |
Old Index