From owner-freebsd-current@freebsd.org Mon Aug 10 07:44:45 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 445F0378BBA for ; Mon, 10 Aug 2020 07:44:45 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4BQ7K82yzBz3drv for ; Mon, 10 Aug 2020 07:44:43 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id BF689260287; Mon, 10 Aug 2020 09:44:35 +0200 (CEST) Subject: Re: Kernel crash during video transcoding To: Alexandre Levy , freebsd-current@freebsd.org References: From: Hans Petter Selasky Message-ID: <13793020-1bde-b13f-65e3-909e27d876ad@selasky.org> Date: Mon, 10 Aug 2020 09:44:14 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BQ7K82yzBz3drv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.39 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-0.97)[-0.969]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.05)[-1.048]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.08)[-0.077]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2020 07:44:45 -0000 Hi, On 2020-08-10 00:19, Alexandre Levy wrote: > Hi, > > I installed the port drm-devel-kmod for Plex to be able to transcode videos > using the integrated GPU of my Intel Celeron G5900. > > I'm running r364031 and the kernel is compiled with GENERIC-NODEBUG profile. > > Transcoding has been working fine for quite a while now but one video > transcoding is causing a kernel panic that is reproducible all the time > with that particular video. It seems like it's caused by the i915kms module > (call of i915_gms_fault() in the stack) : If you compile the kernel using GENERIC and then enable debugging in the i915 kms and reproduce, we might get a more clear picture! It is a so called NULL pointer you've experienced. --HPS > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0xdf > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80bdd2b4 > stack pointer = 0x0:0xfffffe00d2be56d0 > frame pointer = 0x0:0xfffffe00d2be56d0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 4611 (Plex Transcoder) > trap number = 12 > panic: page fault > cpuid = 0 > time = 1596976796 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe00d2be5390 > vpanic() at vpanic+0x182/frame 0xfffffe00d2be53e0 > panic() at panic+0x43/frame 0xfffffe00d2be5440 > trap_fatal() at trap_fatal+0x387/frame 0xfffffe00d2be54a0 > trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00d2be54f0 > trap() at trap+0x271/frame 0xfffffe00d2be5600 > calltrap() at calltrap+0x8/frame 0xfffffe00d2be5600 > --- trap 0xc, rip = 0xffffffff80bdd2b4, rsp = 0xfffffe00d2be56d0, rbp = > 0xfffffe00d2be56d0 --- > _rw_wowned() at _rw_wowned+0x4/frame 0xfffffe00d2be56d0 > vm_page_busy_acquire() at vm_page_busy_acquire+0x141/frame > 0xfffffe00d2be5710 > remap_io_mapping() at remap_io_mapping+0x120/frame 0xfffffe00d2be5760 > i915_gem_fault() at i915_gem_fault+0x25f/frame 0xfffffe00d2be57d0 > linux_cdev_pager_populate() at linux_cdev_pager_populate+0x11b/frame > 0xfffffe00d2be5840 > vm_fault() at vm_fault+0x3d1/frame 0xfffffe00d2be5950 > vm_fault_trap() at vm_fault_trap+0x60/frame 0xfffffe00d2be5990 > trap_pfault() at trap_pfault+0x19c/frame 0xfffffe00d2be59e0 > trap() at trap+0x3f1/frame 0xfffffe00d2be5af0 > calltrap() at calltrap+0x8/frame 0xfffffe00d2be5af0 > --- trap 0xc, rip = 0x80296659a, rsp = 0x7fffffffbd38, rbp = 0x80fc00000 --- > KDB: enter: panic > > I don't see any crash dump in /var/crash despite having the right > configuration and I should have enough space on my swap device (128GB USB > drive) : > > $ cat /etc/rc.conf | grep dump > dumpdev="AUTO" > > $ swapinfo > Device 1K-blocks Used Avail Capacity > /dev/gpt/crash0 121307096 0 121307096 0% > > $ cat /etc/fstab > /dev/gpt/crash0 none swap sw 0 0 > > $ dumpon -l > gpt/crash0 > > Not sure why no dump was generated, is it because the kernel was compiled > with the GENERIC-NODEBUG profile ? However I see various KDB options in the > GENERIC profile that are inherited by GENERIC-NODEBUG. > > Happy to recompile the kernel with GENERIC profile if it's required. > > Thank you. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >