Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455

2021-06-20 Thread Neel Chauhan
Hi Hans, Sorry if I have to bother you again. On 2021-06-20 01:36, Hans Petter Selasky wrote: sg_dma_address() is zero, because the memory hasn't been loaded. Makes sense! You need to handle two cases there: When r->iobase is -1 and when it is not. I suspect you should add r->iobase to th

Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455

2021-06-20 Thread Hans Petter Selasky
On 6/20/21 7:32 AM, Neel Chauhan wrote: On 2021-06-18 20:03, Neel Chauhan wrote: Apparently, the vm_start values is for some reason coming as 0 when it is passed into vm_fault_cpu(). That's why it's giving these errors: of course the address at 0 is mapped, it is (probably) used by the kernel.