From nobody Sun Jun 20 05:32:58 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AA56211CC8A6 for ; Sun, 20 Jun 2021 05:33:07 +0000 (UTC) (envelope-from nc@FreeBSD.org) Received: from rainpuddle.neelc.org (locks.neelc.org [158.51.84.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G71XM2Vk5z4Sgr; Sun, 20 Jun 2021 05:33:07 +0000 (UTC) (envelope-from nc@FreeBSD.org) Received: from mail.neelc.org (locks.neelc.org [IPv6:2602:fed2:7106:25ff::1]) by rainpuddle.neelc.org (Postfix) with ESMTPSA id E662E89171; Sat, 19 Jun 2021 22:32:58 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Date: Sat, 19 Jun 2021 22:32:58 -0700 From: Neel Chauhan To: Neel Chauhan Cc: Mark Johnston , current@freebsd.org Subject: Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455 In-Reply-To: <61de965123274866935935bded6c3d58@FreeBSD.org> References: <8bd27c2a72ebfa9299bca7d930297faf@FreeBSD.org> <389e4560afdc211e9915746b11a0d0d0@FreeBSD.org> <61de965123274866935935bded6c3d58@FreeBSD.org> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: nc@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4G71XM2Vk5z4Sgr X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:23470, ipnet:158.51.84.0/24, country:US] X-ThisMailContainsUnwantedMimeParts: N 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. An update: The vm_start 0 seems to be expected. I checked the values with printf()s. I have posted this on Twitter, and am considering hiring a kernel consultant to help if I am unable to do this on my own. So I am guessing this line (Line 231) is incorrect: pa = sg_dma_address(sgl); Source: https://github.com/neelchauhan/drm-kmod/blob/d0eee96973ee0772e977b813678f92c5becf0507/drivers/gpu/drm/i915/intel_freebsd.c#L231 -Neel (nc@)