Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Nov 2019 14:05:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241728] linuxkpi: panics after loading radeonkms kernel module (data storage interrupt trap)
Message-ID:  <bug-241728-227-zTgIl4qORT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241728-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241728-227@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=3D241728

--- Comment #4 from Hans Petter Selasky <hselasky@FreeBSD.org> ---
The piece of code you reference, line 118 in
sys/compat/linuxkpi/common/src/linux_idr.c, should not be run during kldloa=
d.
It is part of a SYSUNINIT():


SYSUNINIT(idr_preload_uninit, SI_SUB_LOCK, SI_ORDER_FIRST, idr_preload_unin=
it,
N

In this function, try to add a printf:

static void
idr_preload_init(void *arg)
{
        int cpu;

        CPU_FOREACH(cpu) {
                struct linux_idr_cache *lic =3D
                    DPCPU_ID_PTR(cpu, linux_idr_cache);

printf("CPU=3D%d LIC=3D%p\n", cpu, lic);

                spin_lock_init(&lic->lock);
        }
}
SYSINIT(idr_preload_init, SI_SUB_CPU, SI_ORDER_ANY, idr_preload_init, NULL);

--HPS

--=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-241728-227-zTgIl4qORT>