Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 19:27:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 249932] graphics/drm-fbsd12.0-kmod: panic on certain graphics operations
Message-ID:  <bug-249932-7141-c6vPwp1QFY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249932-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249932-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249932

--- Comment #7 from Martin Birgmeier <d8zNeCFG@aon.at> ---
I have recompiled head @ r366217 and then all (my usual) ports @ r550470. T=
hen
cloned drm-kmod and set DRM_DEBUG_MM. uname -a shows, amongst others, "Free=
BSD
13.0-CURRENT #0 r366217M".

Running make in drm-kmod yields the error below.

How can I proceed?

-- Martin

...
cc  -O2 -pipe '-DKBUILD_MODNAME=3D"drm"' '-DLINUXKPI_PARAM_PREFIX=3Ddrm_'
-DDRM_SYSCTL_PARAM_PREFIX=3D_dri -DLINUXKPI_VERSION=3D50000 -DCONFIG_DRM_AM=
DGPU_CIK
-DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_FBC
-DCONFIG_DRM_AMD_POWERPLAY -DCONFIG_DRM_I915_ALPHA_SUPPORT
-DCONFIG_DRM_I915_FORCE_PROBE=3D'"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR
-DCONFIG_DRM_I915_SPIN_REQUEST=3D5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=
=3D250
-DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI
-DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON
-DCONFIG_DRM_DEBUG_MM -DCONFIG_DRM_FBDEV_EMULATION
-DCONFIG_DRM_FBDEV_OVERALLOC=3D100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM
-DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE
-DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SMP
-DCONFIG_ACPI -DCONFIG_ACPI_SLEEP -DCONFIG_AGP -DCONFIG_X86 -DCONFIG_X86_PAT
-DCONFIG_64BIT -DCONFIG_AS_MOVNTDQA -DCONFIG_COMPAT -DCONFIG_X64_64
-DCONFIG_DRM_AMD_DC_DCN1_0 -DCONFIG_DRM_AMD_DC_DCN1_01
-DCONFIG_DRM_AMD_DC_DCN2_0 -DCONFIG_DRM_AMD_DC_DSC_SUPPORT=20
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc=20
-I/usr/tmp/drm-kmod/linuxkpi/gplv2/include
-I/auto/z/SRC/FreeBSD/head/sys/compat/linuxkpi/common/include
-I/usr/tmp/drm-kmod/linuxkpi/dummy/include -I/usr/tmp/drm-kmod/drivers/gpu/=
drm
-I/usr/tmp/drm-kmod/include -I/usr/tmp/drm-kmod/include/drm
-I/usr/tmp/drm-kmod/include/uapi -I/usr/tmp/drm-kmod/drivers/gpu -include
/usr/tmp/drm-kmod/drm/opt_global.h -I. -I/auto/z/SRC/FreeBSD/head/sys
-I/auto/z/SRC/FreeBSD/head/sys/contrib/ck/include -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/auto/z/SRC/FreeBSD/head/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/auto/z/SRC/FreeBSD/head/sys/x86/include     -=
MD=20
-MF.depend.drm_mm.o -MTdrm_mm.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -m=
no-sse
-msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv
-fstack-protector -Wno-pointer-sign -Wno-format -Wno-format-zero-length=20=
=20
-mno-aes -mno-avx  -std=3Diso9899:1999 -c
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c -o drm_mm.o
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:112:6: error: implicit declarati=
on
of function 'stack_trace_save' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        n =3D stack_trace_save(entries, ARRAY_SIZE(entries), 1);
            ^
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:115:16: error: implicit declarat=
ion
of function 'stack_depot_save' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        node->stack =3D stack_depot_save(entries, n, GFP_NOWAIT);
                      ^
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:115:16: note: did you mean
'stack_trace_save'?
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:112:6: note: 'stack_trace_save'
declared here
        n =3D stack_trace_save(entries, ARRAY_SIZE(entries), 1);
            ^
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:136:16: error: implicit declarat=
ion
of function 'stack_depot_fetch' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                nr_entries =3D stack_depot_fetch(node->stack, &entries);
                             ^
/usr/tmp/drm-kmod/drivers/gpu/drm/drm_mm.c:137:3: error: implicit declarati=
on
of function 'stack_trace_snprint' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                stack_trace_snprint(buf, BUFSZ, entries, nr_entries, 0);
                ^
4 errors generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/tmp/drm-kmod/drm
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249932-7141-c6vPwp1QFY>