From owner-freebsd-current@freebsd.org Mon Aug 10 08:41:22 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 D388037A26B for ; Mon, 10 Aug 2020 08:41:22 +0000 (UTC) (envelope-from a13xlevy@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BQ8ZV1FSBz3yhm for ; Mon, 10 Aug 2020 08:41:22 +0000 (UTC) (envelope-from a13xlevy@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id r4so7325264wrx.9 for ; Mon, 10 Aug 2020 01:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Nx0GprOJzO8W5lHuIdaDulaE7OP2OKda+LZE8T3yOg=; b=C0Pv+uW6kdVIPfg1bs0/SKM0U1KWVPvUbsHu+0cpErfzQm5+AhrBj8vD0RVjjlrUmC meDkuLHMHDDc1fLnC7IHguzXr4MAXdximlQkbSQ+9eQsCFzPOUEhvsMxPpFrwJ+xMie/ q5K39bYM/e99i9SR1UZ+Tijxgy8H0V9qC5sleUC3bBexmGizeBQiNUR8xCbhzJzU739A ZhBzvbvfPijvkh2J2TC+TjheFdlT4+2xbbU2dtHoDVKCO5TeEICIUIIsLZEUz1U6OIQo nuoEYR+TtxefRYCXsHFzp4ZCxwc/bgettIOLZURUtepvUG/s+aPr+9h0DWu9YPsbgWW4 F+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Nx0GprOJzO8W5lHuIdaDulaE7OP2OKda+LZE8T3yOg=; b=q9JKJaVOHLRLLsgxySrXgsu/1UUJ+b+QZ/2bWXL7WlcEB20uSmwogfRcBDKwmJYKDA Lw4ASddXIa5KVIXv1kIAKzbpfw/rSk0Z2kD0e11Nv/9glJiMFhRjNV4mTsDxkhr8Cmdp Cucha/1xdafun92ByGgISK8HzziNUE1EwOpxWGwzt+VwsUlNNfOVmGuudqRNdjQhzMya bxBmylkxbwzL2OagFLYI3Tj+2xUS1QXQ1BwMJz3qCgb4KrLfTaj+Y/NOFVXmx145128v soKjQiaVBNTbuj+yB8ORqiIMXkIvxp/+wX9PF35rVadAnM4OcMsLXK3Nx1f3s1ncMGv7 9Zkg== X-Gm-Message-State: AOAM533xQZtRHVYdyWGOgaIqxEvOg/0SqNdIM6L7MhGM6fogjdXlhPj1 9P/Cnq94DpOc5GDJyrh4lB+bJkhRCGftDomikGObbc+N X-Google-Smtp-Source: ABdhPJxS74LbFtRSmVxcyoNhxRQB0oGU8GplA7J065CCwuC4hjRT4og43AxwRNJpqQzk/vDa2BqmNzbMjIxlZS+vuag= X-Received: by 2002:adf:f3cc:: with SMTP id g12mr365678wrp.412.1597048880774; Mon, 10 Aug 2020 01:41:20 -0700 (PDT) MIME-Version: 1.0 References: <13793020-1bde-b13f-65e3-909e27d876ad@selasky.org> In-Reply-To: <13793020-1bde-b13f-65e3-909e27d876ad@selasky.org> From: Alexandre Levy Date: Mon, 10 Aug 2020 09:41:08 +0100 Message-ID: Subject: Re: Kernel crash during video transcoding To: Hans Petter Selasky Cc: freebsd-current@freebsd.org X-Rspamd-Queue-Id: 4BQ8ZV1FSBz3yhm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=C0Pv+uW6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of a13xlevy@gmail.com designates 2a00:1450:4864:20::443 as permitted sender) smtp.mailfrom=a13xlevy@gmail.com X-Spamd-Result: default: False [-4.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.07)[-1.073]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_HAM_LONG(-1.02)[-1.016]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::443:from]; NEURAL_HAM_SHORT(-1.23)[-1.230]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 08:41:22 -0000 I'm recompiling the kernel using GENERIC at the moment but I'm not sure how to enable debugging in i915 kms, there is no compile option for that, am I missing something ? Le lun. 10 ao=C3=BBt 2020 =C3=A0 08:44, Hans Petter Selasky a =C3=A9crit : > 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 =3D 0; apic id =3D 00 > > fault virtual address =3D 0xdf > > fault code =3D supervisor read data, page not present > > instruction pointer =3D 0x20:0xffffffff80bdd2b4 > > stack pointer =3D 0x0:0xfffffe00d2be56d0 > > frame pointer =3D 0x0:0xfffffe00d2be56d0 > > code segment =3D base 0x0, limit 0xfffff, type 0x1b > > =3D DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > > current process =3D 4611 (Plex Transcoder) > > trap number =3D 12 > > panic: page fault > > cpuid =3D 0 > > time =3D 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 =3D 0xffffffff80bdd2b4, rsp =3D 0xfffffe00d2be56d0, r= bp =3D > > 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 =3D 0x80296659a, rsp =3D 0x7fffffffbd38, rbp =3D 0x80= fc00000 > --- > > 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 U= SB > > drive) : > > > > $ cat /etc/rc.conf | grep dump > > dumpdev=3D"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 compil= ed > > 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" > > > >