kmem_alloc vs malloc

Rajasekhar Pulluru <[email protected]> Thu, 2 Jan 2014 07:42:41 -0800
Newsgroups gmane.os.netbsd.ports.evbmips
Message-ID <CAGA5_H7upbzR4DJgu6sdDECAOvtoP26AKXvD8h=t9EL527MvDg@mail.gmail.com>
All,

Need some help on understanding below issue.

When driver A invokes kmem_alloc, see panic due to TLB miss in driver B.
This issue happens during kernel bootup. At this time, show map output
shows, resident memory = wired memory.

When the kmem_alloc in driver A is replaced by malloc, don't see any issue
with driver B.

kmem_alloc allocates wired memory. malloc allocates uninitialized memory in
kernel address space.

How does the issue go away replacing kmem_alloc with malloc ? Is it related?

Thanks & Regards,
Rajasekhar