From nobody Sat Jul 24 17:43:59 2021 X-Original-To: bugs@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 D5B8212BB691 for ; Sat, 24 Jul 2021 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GXD7z5fTMz4fHn for ; Sat, 24 Jul 2021 17:43: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 AAFF714660 for ; Sat, 24 Jul 2021 17:43: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 16OHhx8v049600 for ; Sat, 24 Jul 2021 17:43:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16OHhxmM049599 for bugs@FreeBSD.org; Sat, 24 Jul 2021 17:43: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 257387] MMCCAM : LOR when setting freq Date: Sat, 24 Jul 2021 17:43: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: manu@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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257387 Bug ID: 257387 Summary: MMCCAM : LOR when setting freq Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: manu@freebsd.org There is a Lock Out of Order when we set the frequency on the mmc controlle= r. Logs : (sdda0:aw_mmc1:0:0:0): Set SD freq to 52 MHz (min out of host f=3D150 MHz a= nd card f=3D52 MHz)=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=20=20=20=20 h: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/llock order reversal: (sleepable after non-sleep able)=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=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=20=20=20=20=20=20=20= =20=20 1st 0xffffa0000d6f8588 (aw_mmc_sim, sleep mutex) @ /usr/home/manu/Work/freebsd/src/wipbsd/sys/cam/cam_xpt.c:2804=20=20=20=20= =20=20=20=20=20=20=20=20=20 2nd 0xffff000000a44bd8 Clock topology lock (Clock topology lock, sx) @ /usr/home/manu/Work/freebsd/src/wipbsd/sys/dev/extres/c lk/clk.c:1245=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=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=20 ocal/lib/compat/lock order aw_mmc_sim -> Clock topology lock attempted at:= =20=20=20=20=20=20 #0 0pkg /usr/local/lxffff000000426d98 at witness_checkorder+0xc0c=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 #1 0xffff0000003cib/gcc10 /usr/lo5144 at _sx_slock_int+0x7c=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #2 0xffff00000014cfe4 at clk_disablecal/lib/perl5/5.32/mach/CORE /us+0x44= =20=20=20=20=20=20=20 #3 0xffff0000d2a13018 at aw_mmc_set_tran_settings+0x584=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 #r/local/lib/qt5 4 0xffff000000038a98 at mmc_cam_sim_default_action+0x154= =20=20=20=20=20=20=20 #5 0xf/usr/local/llvm1fff000000009bb0 at xpt_action_default+0xcac=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 #6 0xffff000000008e0/lib /usr/locald4 at xpt_action+0x270=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #7 0xffff00000003b160 at sdda_start_init/llvm80/lib=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 _task+0x1264=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=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=20=20 #8 0xffff000000419f64 at taskqueue_run_locked+0x188=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 #9 0xffff00000041ae78 at taskqueue_thread_loop+0xc8=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 #10 0xffff0000003730a0 at fork_exit+0x74=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=20=20=20= =20=20=20=20 #11 0xffff0000006b6b9c at fork_trampoline+0x14 We need to do that in a taskqueue (or anything async). --=20 You are receiving this mail because: You are the assignee for the bug.=