From nobody Fri Sep 27 13:55:40 2024 X-Original-To: freebsd-hardware@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 4XFXBk1j3Jz5Y2c7 for ; Fri, 27 Sep 2024 13:59:10 +0000 (UTC) (envelope-from Stephane.ROCHOY@stormshield.eu) Received: from mail.stormshield.eu (mail.stormshield.eu [91.212.116.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.stormshield.eu", Issuer "Sectigo RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFXBj57tzz537F for ; Fri, 27 Sep 2024 13:59:09 +0000 (UTC) (envelope-from Stephane.ROCHOY@stormshield.eu) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stormshield.eu; s=signer2; t=1727445547; h=From:Subject:Date:Message-ID:To:Cc :MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To :References; bh=49wzRYuPlVaPSppmw24NnDgHImqrOHWxDIXDNSVOON4=; b=jIWKjloEe IbNCyEFLebrGZnmeGQLqBnMH6LHI3ngjROyL6HWqGmEK+bHGKZCuAcnnz4ibVvCAdxaH53MC7 XdyCVL7BKiuBmv/S/A2SW7oxRDHEGnIfCXVtz1YaiTl6knRKfIdyb3xV4f2Q1cvZwTLs9J6L+ aAdUJO9KeZvHj+SLKQopF8LGOHgs+j6f2WyfHhh8uLTURktiGSIM86ESkCxigtUZq/TuoYOwS ith+mDbxWvB5MdHwqwS0KrZYegKVnEcgePmX4WbDVkSV2M3OAs8Dh1wRCMYJTjGT5x7Ew+PHg WJTPapiF9EUk52tmo6nsyvQx2ccLJbvao4br13EDg==; References: <3065debc-8d4f-4487-abbb-c9408810cea6@sentex.net> <86plotbk5b.fsf@cthulhu.stephaner.labo.int> <9008b389-ab06-401d-9a95-84f849ca602a@sentex.net> <86plosdv48.fsf@cthulhu.stephaner.labo.int> <78e9461c-b93d-403f-b3a1-3568548b9283@sentex.net> <86h6a1egcs.fsf@cthulhu.stephaner.labo.int> User-agent: mu4e 1.10.7; emacs 29.4 From: Stephane Rochoy To: mike tancsa CC: Chris6 via freebsd-hardware Subject: Re: watchdog timer programming Date: Fri, 27 Sep 2024 15:55:40 +0200 In-Reply-To: Message-ID: <868qvddwph.fsf@cthulhu.stephaner.labo.int> List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: ICTDCCEXCH003.one.local (10.180.4.3) To ICTDCCEXCH002.one.local (10.180.4.2) X-DKIM-Signer: DkimX (v3.60.360) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:49068, ipnet:91.212.116.0/24, country:FR] X-Rspamd-Queue-Id: 4XFXBj57tzz537F X-Spamd-Bar: ---- mike tancsa writes: > I also started to play around with the non hardware based=20 > watchdog > timer. For some reason, I cant get the box to reboot. It just=20 > prints a > stack trace and continues > > This is with no driver loaded. > > 0{t}# watchdogd --softtimeout-action panic -t 5 > 0{t}# ps -auxww | grep dog > root 1487 0.4 0.2 12820 12920 - S watchdogd > --softtimeout-action panic -t 5 > root 1489 0.0 0.0 12808 2636 u0 S+ 09:03=20 > 0:00.00 > grep dog > 0{t}# kill -9 1487 > 0{t}# KDB: stack backtrace: > #0 0xffffffff80b7fefd at kdb_backtrace+0x5d > #1 0xffffffff80abec93 at hardclock+0x103 > #2 0xffffffff80abfe8b at handleevents+0xab > #3 0xffffffff80ac0b7c at timercb+0x24c > #4 0xffffffff810d0ebb at lapic_handle_timer+0xab > #5 0xffffffff80fd8a71 at Xtimerint+0xb1 > #6 0xffffffff804b3685 at acpi_cpu_idle+0x2c5 > #7 0xffffffff80fc48f6 at cpu_idle_acpi+0x46 > #8 0xffffffff80fc49ad at cpu_idle+0x9d > #9 0xffffffff80b67bb6 at sched_idletd+0x576 > #10 0xffffffff80aecf7f at fork_exit+0x7f > #11 0xffffffff80fd7dae at fork_trampoline+0xe > > 0{t}# > > Should it not reboot at this point ? I don't think so. `kdb_backtrace` being involved let me think the kernel was compiled with KDB. You should play with ddb(8) to set a default action like reset when entering kdb. Regards, --=20 St=C3=A9phane Rochoy O: Stormshield