From nobody Mon May 15 17:35:03 2023 X-Original-To: freebsd-hackers@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 4QKmjH2D2Pz4BrhB for ; Mon, 15 May 2023 17:35:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QKmjH1kdlz3qT5 for ; Mon, 15 May 2023 17:35:15 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684172115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZrytbN6yuhJf19NFswIrmj5KfeDeGOSBZzh2vq+TQEo=; b=hQYJ21x15Qno0dyUSJwq0wTTcpv+iWX5QBt79+kG5J5mZmRN6NRhl8Xb3HrrsgKVSpqX6m 2Ms0aLmrVZ/zkmUU68nzAYLVGXuEZBDXD7qGzPYDxeuEEwhOYGe1m6oSOH4rZXOboZksil txxkwizbNU8zrT1kdit56g2U8I6i8b4+MvgJkeVs8nsNXC2MJkXKq1Ab1YJmnWOwxfv90U QhedtEyGn002iTgqdwfV4fCIntZTuu2TrSr2YICVhLAGYJ01b9evasVgU3YbxXK/iy4dqY IURXfjboK3hzAcnifvbKnTT1P0aaMbR4deWiGwJs101gnoDxmbqXZWgvMLCtAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684172115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZrytbN6yuhJf19NFswIrmj5KfeDeGOSBZzh2vq+TQEo=; b=G5GzZ1O9XjwcJR3nPRD0R4AT8fWNpU1Mkb5wOCNkJyhudQlIy+tnMUXNocRedYZIHeqwTD G+Qyo49GoHyKc6oh1P4s8jggYz/CvFoedbD+1XAHZplv8K5Db+bwAaTUBZvQNKcUL4u+yh XNsvvR/U8GiJKEPRYopvqfxZ1+u9eafGdhABYN5/pp2AE0QwaR/eivoguhwHzU8GkmI5lC agTNf31IF+IEhlbFxMxwJDwpnEIByYUGhNVHPhr8F6NrMZ3Rvdk6maFPx9W2YaHnO+d1IO 0LPw22loJNGJXWKpEeLFk/KqjmOYoTBvb6MmAVhi57/UVtHaCPX/2p9rzFaRBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684172115; a=rsa-sha256; cv=none; b=E7pvsTF8KuQpV4MMCc2lelAhVmUr5Grmtt15A47CoZzoYzpl5b+xph4t5+VyipO2J4pOGz pNjEw5709fZu8p+szlsI4RTVebzZVuKBGOVwTPb7DDYRUpy9da6WR9YMzg1LLt33qOzLQi Tl/ofJoQCbEbYolrN8W/lRWwz4zKXl8AJ4+dAXTnQZqVu/ax2EQWwc5u+xBX8TFNTOEBCA ch+WUzdIsS2xt7vxt4NoIWvHybPXH356gMylczOXw2T8rPhvMAFVFnWlILayDK+hZrB+Pt 14PHLsb2xxnQ1X7Xk+9JKJa+9b7qPsUU84bXrJHxodpbiSA1Pf2YJbuB4uHZhA== Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QKmjH0ggXz13q1 for ; Mon, 15 May 2023 17:35:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-75774360e46so500181585a.2 for ; Mon, 15 May 2023 10:35:15 -0700 (PDT) X-Gm-Message-State: AC+VfDwwiS1gjycvYvVW0EnwxKWfDc6f5JfRAw/Ce3IABtd2n1Snpwjv 9gDHnvvUSEMD0y/E+r/p8lExwcbpoxV6dmOrlWY= X-Google-Smtp-Source: ACHHUZ5Uvbgliy5Ba9wlg2qf4ZaxZCEx9qp3CyfsQhthwbppJuo2m8pJSCip1GtH6Th6DcI+xXMEJ+uRaHT3dzp37/o= X-Received: by 2002:ad4:5ecb:0:b0:615:53c3:f32a with SMTP id jm11-20020ad45ecb000000b0061553c3f32amr60567983qvb.42.1684172114673; Mon, 15 May 2023 10:35:14 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Mon, 15 May 2023 12:35:03 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXTERNAL] Re: enabling same PPI interrupt to all CPU in ARM64 SMP To: Souradeep Chakrabarti Cc: Wei Hu , "freebsd-hackers@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-ThisMailContainsUnwantedMimeParts: N On Mon, May 15, 2023 at 12:27=E2=80=AFPM Souradeep Chakrabarti wrote: > > > > > >-----Original Message----- > >From: owner-freebsd-hackers@freebsd.org > >On Behalf Of Souradeep Chakrabarti > >Sent: Monday, May 15, 2023 10:37 PM > >To: Kyle Evans > >Cc: Wei Hu ; freebsd-hackers@FreeBSD.org > >Subject: RE: [EXTERNAL] Re: enabling same PPI interrupt to all CPU in AR= M64 SMP > > > > > > > > > >>-----Original Message----- > >>From: Kyle Evans > >>Sent: Monday, May 15, 2023 7:24 PM > >>To: Souradeep Chakrabarti > >>Cc: Wei Hu ; freebsd-hackers@FreeBSD.org > >>Subject: Re: [EXTERNAL] Re: enabling same PPI interrupt to all CPU in > >>ARM64 SMP > >> > >[Souradeep] It has worked! Thanks a lot. We should get it committed in s= rc. > >Before I commit the SMP related changes for Hyper-V driver. > >>Thanks, > Awesome- I posted the PPI patch for review here: https://reviews.freebsd.org/D40112 -- I'm travelling to Ottawa for most of today and tomorrow, but we'll see if we can get this taken care of this week. > [Souradeep] But after install it is keep getting rebooted after hitting a= panic > > > mbus0: vmbus_handle_intr1 for cpu 0 > vmbus0: the irq 18 > vmbus0: smp_started =3D 0 > KDvmbus0: vmbus_handle_intr1 for cpu 0 > B: stack backtrace: > db_trace_self() at db_trace_self > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > mi_switch() at mi_switch+0x27c > sleepq_switch() at sleepq_switch+0xfc > _sleep() at _sleep+0x294 > vmbus_xact_wait1() at vmbus_xact_wait1+0x120 > vmbus_sysinit() at vmbus_sysinit+0x6a4 > mi_startup() at mi_startup+0x1fc > virtdone() at virtdone+0x70 > KDB: reentering > KDB: stack backtrace: > db_trace_self() at db_trace_self > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > kdb_reenter() at kdb_reenter+0x44 > mi_switch() at mi_switch+0x280 > sleepq_switch() at sleepq_switch+0xfc > _sleep() at _sleep+0x294 > vmbus_xact_wait1() at vmbus_xact_wait1+0x120 > vmbus_sysinit() at vmbus_sysinit+0x6a4 > mi_startup() at mi_startup+0x1fc > virtdone() at virtdone+0x70 > > Looks like vmbus_sysinit() is getting called even before SMP has started = after installation. > Wondering what could be the reason. > Also any idea how to disable this reboot cycle post post panic, so that I= can get the backtrace properly. Odd- I thought we had pushed that back to SI_SUB_SMP late or SI_SUB_SMP + 1. The backtrace here looks reasonably complete- mi_startup() does invoke sysinits directly. Can you post your full diff against sys/dev/hyperv somewhere, please? Thanks, Kyle Evans