From owner-freebsd-bugs@freebsd.org Wed Aug 19 17:40:59 2020 Return-Path: Delivered-To: freebsd-bugs@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 C09F73C5977 for ; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BWw6z4mfcz4LL6 for ; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A3B223C56B9; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) Delivered-To: bugs@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 A37C63C5976 for ; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWw6z3xJDz4LTR for ; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6AFD2265DF for ; Wed, 19 Aug 2020 17:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07JHexMZ078603 for ; Wed, 19 Aug 2020 17:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07JHex5c078602 for bugs@FreeBSD.org; Wed, 19 Aug 2020 17:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248757] panic: waiting too long for pmc to be free Date: Wed, 19 Aug 2020 17:40:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: luporl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 17:40:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248757 Bug ID: 248757 Summary: panic: waiting too long for pmc to be free Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: luporl@FreeBSD.org When executing the commands below, sometimes the system panics: stress -c 1 -t 10 & pmcstat -t stress -p mem_load_retired.l2_miss sleep 3 panic: [pmc,2749] (ri17, rc1) waiting too long for pmc to be free=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 cpuid =3D 2 time =3D 1597858367 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe005fc9a= 760=20 vpanic() at vpanic+0x182/frame 0xfffffe005fc9a7b0=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 panic() at panic+0x43/frame 0xfffffe005fc9a810=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 pmc_wait_for_pmc_idle() at pmc_wait_for_pmc_idle+0xa2/frame 0xfffffe005fc9a= 840=20 pmc_release_pmc_descriptor() at pmc_release_pmc_descriptor+0x204/frame 0xfffffe0 pmc_syscall_handler() at pmc_syscall_handler+0x4be/frame 0xfffffe005fc9a9d0= =20=20=20=20 amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe005fc9aaf0=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe005fc9aaf0= =20=20=20=20=20 --- syscall (0, FreeBSD ELF64, nosys), rip =3D 0x800a8a96a, rsp =3D 0x7fffffffe368,- KDB: enter: panic [ thread pid 1852 tid 100126 ] Stopped at kdb_enter+0x37: movq $0,0x10bc706(%rip)=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 db> I'm running -CURRENT on an amd64 VM (qemu with kvm). I've performed several different tests with pmcstat and stress and got no panics. --=20 You are receiving this mail because: You are the assignee for the bug.=