From owner-freebsd-current@freebsd.org Tue Apr 17 19:16:07 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E89F4F934B6; Tue, 17 Apr 2018 19:16:06 +0000 (UTC) (envelope-from satan@ukr.net) Received: from hell.ukr.net (hell.ukr.net [212.42.67.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0CC27F883; Tue, 17 Apr 2018 19:16:03 +0000 (UTC) (envelope-from satan@ukr.net) Received: from satan by hell.ukr.net with local ID 1f8W53-000PE3-UV ; Tue, 17 Apr 2018 22:15:53 +0300 Date: Tue, 17 Apr 2018 22:15:53 +0300 From: Vitalij Satanivskij To: John Baldwin Cc: freebsd-current@freebsd.org, satan@ukr.net, cem@freebsd.org, Stephen Hurd , Matthew Macy , "freebsd-hackers@freebsd.org" , Stephen Hurd Subject: Re: Current panic on boot on H11DSI motherboard with epyc cpu (nexus_add_irq: failed) Message-ID: <20180417191553.GA95803@hell.ukr.net> References: <20180416102710.GA90028@hell.ukr.net> <20180416191213.GA53406@hell.ukr.net> <3723755.0KMZDfyMWu@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3723755.0KMZDfyMWu@ralph.baldwin.cx> User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Tue, 17 Apr 2018 19:16:07 -0000 Dear John I'm try patch with no success http://hell.ukr.net/panic/recorder_patch165.webm Also I'm enable verbose boot and record boot process (hpet was disabled so crash in another driver atach) http://hell.ukr.net/panic/recorder_patch_verbose.webm root@test:/usr/src # svnlite diff Index: sys/x86/x86/msi.c =================================================================== --- sys/x86/x86/msi.c (revision 332650) +++ sys/x86/x86/msi.c (working copy) @@ -404,7 +404,7 @@ /* Do we need to create some new sources? */ if (cnt < count) { /* If we would exceed the max, give up. */ - if (i + (count - cnt) > FIRST_MSI_INT + NUM_MSI_INTS) { + if (i + (count - cnt) >= FIRST_MSI_INT + NUM_MSI_INTS) { mtx_unlock(&msi_lock); free(mirqs, M_MSI); return (ENXIO); @@ -645,7 +645,7 @@ /* Do we need to create a new source? */ if (msi == NULL) { /* If we would exceed the max, give up. */ - if (i + 1 > FIRST_MSI_INT + NUM_MSI_INTS) { + if (i + 1 >= FIRST_MSI_INT + NUM_MSI_INTS) { mtx_unlock(&msi_lock); return (ENXIO); } root@test:/usr/src If you need any aditional information please tell me about. JB> > If one of this parameters not set as described system not boot ^( JB> JB> Please try the patch from here https://reviews.freebsd.org/P165 JB> JB> -- JB> John Baldwin JB> _______________________________________________ JB> freebsd-hackers@freebsd.org mailing list JB> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers JB> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"