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/drm if hooks init works, store the hoo...
details: https://anonhg.NetBSD.org/src/rev/b0b07a99a910
branches: trunk
changeset: 993209:b0b07a99a910
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Aug 30 22:39:54 2018 +0000
description:
if hooks init works, store the hooks in the agp. fixes start up
crash on an old radeon laptop. from @riastradh.
the console also now works, unlike previous drm2, where eg, the
problems from PR#49744 are seen.
unfortunately, i got a crash starting X, and no ddb yet, so we
can't re-enable the r100/r200 parts here yet. once this is
known to be working we can delete the old radeondrm code, and
remove the hacks to disable drm2 there.
diffstat:
sys/external/bsd/drm2/drm/drm_agp_hook.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 343939134d4b -r b0b07a99a910 sys/external/bsd/drm2/drm/drm_agp_hook.c
--- a/sys/external/bsd/drm2/drm/drm_agp_hook.c Thu Aug 30 19:03:14 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_agp_hook.c Thu Aug 30 22:39:54 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_agp_hook.c,v 1.2 2018/08/30 19:03:14 tnn Exp $ */
+/* $NetBSD: drm_agp_hook.c,v 1.3 2018/08/30 22:39:54 mrg Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_agp_hook.c,v 1.2 2018/08/30 19:03:14 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_agp_hook.c,v 1.3 2018/08/30 22:39:54 mrg Exp $");
#include <sys/types.h>
#include <sys/condvar.h>
@@ -145,6 +145,8 @@
agp = hooks->agph_init(dev);
if (agp == NULL)
drm_agp_hooks_release(hooks);
+ else
+ agp->hooks = hooks;
return agp;
}
Home |
Main Index |
Thread Index |
Old Index