From owner-freebsd-current@freebsd.org Fri Nov 27 21:47:54 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 95E81469EAB for ; Fri, 27 Nov 2020 21:47:54 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (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 4CjSsk3Vrpz4VpQ for ; Fri, 27 Nov 2020 21:47:53 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-pf1-x42d.google.com with SMTP id n137so5606852pfd.3 for ; Fri, 27 Nov 2020 13:47:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ReA/ZcIFJKzo/tfZ21Z8ZOlJu5CpmgivRFHxgxcCXcw=; b=jCPUAbKdDWpXPx7bm2GN1Vw8arEBGr/Yk7pIZNTuzJjxxljBMK63G3fFHOMoiCP7nS Mn/5EA9FTMihr7lz6ifbQ2mNP686TlK+YOJK4uw4Q3UG7INWCOHH7hnlGzGx7JT7Ggcx uuQRrYCUt+gZZhAPzGyRJwn3LJJldk4VTyS1T5dCJZMnkUyC971q2g5e6lP6fqfj44ZN 3oe3wb6DpIrYji2pjV0+rbaVB8GYeizLnAow2djMoIvT+l6rVA75cTHnhFEBWfRQ+d8D k7Q1++se7NWm0TqP/4QUhPLaNHnthFrv5e2HB74OfnIzPvI+yjJMUpXeZ1UsF8gswL19 zavQ== X-Gm-Message-State: AOAM5335MqbvCN63a7tIXvVlbP74xlbxa5k0t5FWJIvdlWBeyFe4dfzh hAbVYHWXPWUcTh6mKkinGilorxaa1go8VA== X-Google-Smtp-Source: ABdhPJwSjehIASrUkXS87y8+1FRrZ5/jUpUjQC3CGDcdLJtVJsMqPq9v9MrcfqGUTaHJsimo0u5SQg== X-Received: by 2002:a63:1902:: with SMTP id z2mr8414434pgl.308.1606513672745; Fri, 27 Nov 2020 13:47:52 -0800 (PST) Received: from [192.168.1.113] (172-125-77-130.lightspeed.sntcca.sbcglobal.net. [172.125.77.130]) by smtp.gmail.com with ESMTPSA id w18sm8721309pfi.216.2020.11.27.13.47.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Nov 2020 13:47:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: panic shortly after boot when amdgpu.ko is loaded (fpu?) From: Bakul Shah In-Reply-To: <40ac5686-aa96-f9e4-7c9c-5dbe628af49a@bsdio.com> Date: Fri, 27 Nov 2020 13:47:49 -0800 Cc: Hans Petter Selasky , freebsd-current@freebsd.org, kib@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0075A3F0-C106-4970-B840-0DFAEA29DBC9@iitbombay.org> References: <2a0f9031-a96d-2989-4d6c-a7691c451b74@bsdio.com> <40ac5686-aa96-f9e4-7c9c-5dbe628af49a@bsdio.com> To: Rebecca Cran X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Rspamd-Queue-Id: 4CjSsk3Vrpz4VpQ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Fri, 27 Nov 2020 21:47:54 -0000 > On Nov 27, 2020, at 9:09 AM, Rebecca Cran wrote: >=20 > On 11/27/20 4:29 AM, Hans Petter Selasky wrote: >>=20 >> Is the problem always triggered by hald? If you disable hald in = rc.conf, does the system run for a longer period of time? >=20 > It turns out that disabling ntpd let the system run for a longer = period of time - until I ran "sysctl sys" at which point I got a panic. >=20 > And this time the panic actually implicates amdgpu.ko, which is an = improvement: >=20 >=20 > #9 0x0000000000000000 in ?? () > #10 0xffffffff82a14c4e in amdgpu_device_get_pcie_replay_count () > from /boot/modules/amdgpu.ko > #11 0xffffffff82a14b80 in sysctl_handle_attr () from = /boot/modules/amdgpu.ko >=20 > #12 0xffffffff80c06cc1 in sysctl_root_handler_locked = (oid=3D0xfffffe02133ff000, > arg1=3D0xfffffe016e360980, arg2=3D-8724518803888, = req=3D0xfffffe016e360980, > tracker=3D0xfffff81099af6280) at = /usr/src/sys/kern/kern_sysctl.c:184 > #13 0xffffffff80c0610c in sysctl_root (oidp=3D, > arg1=3D0xfffff810aa27e650, arg2=3D-2100190360, = req=3D0xfffffe016e360980) > at /usr/src/sys/kern/kern_sysctl.c:2211 >=20 >=20 > Since it _is_ a problem in amdgpu, I'll stop this thread and re-post = on freebsd-x11. FWIW, I am using amdgpu on a Ryzen 5 3500U system on a couple days old -current (r368025). "sysctl sys" complains about "unknown oid 'sys'". I am runing hald & ntpd. I had a few amdgpu related panics initially but they vanished once I added PORTS_MODULES=3Dgraphics/drm-devel-kmod to /etc/src.conf to compile it along with the kernel. I am running GENERIC-NODEBUG. The machine gets rebooted when I install a new kernel (usually once a week). My guess is some weird interaction rather than something in amdgpu.