From owner-freebsd-drivers@freebsd.org Mon Nov 5 07:22:34 2018 Return-Path: Delivered-To: freebsd-drivers@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 3B75E10FAE11; Mon, 5 Nov 2018 07:22:34 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41548732BE; Mon, 5 Nov 2018 07:22:33 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wm1-x32b.google.com with SMTP id 124-v6so2214945wmw.0; Sun, 04 Nov 2018 23:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yLSpROu3xoW7bUgnJsFD/kQ1fK8+px3syQWYx/4feVk=; b=W3kFEII25N6bFVja5yyGl/yyq08Nj73aoWtecLMDpZgs5Wh4enV5szv+m/SzUbdVUQ i7ZSeQog3MhRXfpNiMUdgiBryWL1VheCFnp1uGE2J83DsIXT/PKPDDzqtqIZhh77b3BW dfJ1Kbtn7/lNZbPS75yGQ8pWErmjz+fZtOUc9B84HHu56FueBmsOL6dOI7l7xOAIWcNI FMBb2o4E2nFEu3rtCRJNYoaDKSUXAPpLzLRaooMUlmlbHLyEb5x6+zNjJosfZLkpEx+K tCS9xzZ0iA/qRV+HPkBBdp07ZMz66B/fN4ee0YSD6LmN6I/QrLPoWa9o1+Rw5gl1r6BO T2mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yLSpROu3xoW7bUgnJsFD/kQ1fK8+px3syQWYx/4feVk=; b=mnxrSy/GzIcMOwW8S5lrGRYGbd15tEd3PJ0bXeYS0GHNaR2ZDtu9LVKOA6jHJ7HcH7 NW7kmp0aossWOXRgadQk0HpN4ciaqd4JwEvhzEVkiHXoc+RNA15koW/oI7LaQ1Vzr1OD ymy+elhz6yM5faQgrwWZ9JaUhnYzQFLuJFq94bYMzw5xVfyGx2Tf3SqEX6+5rNEZWKqB dpiU8Nrkct0wVXJ39xTY48bcdGimdiMzgvcEbohJM9ZNxKQmef3RPg5s4PvpK6CzUgIB Oojpys4sLa1pclaPVcQvqtfbnTaGDxtAGp4cDexNAc11NzzhumB5G/XKT9ApEi3lSuC2 8jhA== X-Gm-Message-State: AGRZ1gJ6M5Q8psCAWLSz05yu855Sd8K1v7Ab4e65hzLQRK8cz58pue56 hkyxfOgRPuvGaR0jFoZXN8LNSbKc/mWAQDav7snsqw== X-Google-Smtp-Source: AJdET5f8R1QZi/ROKFPAmvXYGDGvwosburFLU00ujkEuWGy6DB2Jz79rNbajGLFoV77gFqPs/ShUsshHPEM2eInPsGE= X-Received: by 2002:a1c:b143:: with SMTP id a64-v6mr5269928wmf.109.1541402551916; Sun, 04 Nov 2018 23:22:31 -0800 (PST) MIME-Version: 1.0 References: <2a595c73-4a93-6e3f-f93d-9038baeeb18a@FreeBSD.org> <2b2d11cb-2196-0214-a3f2-8ab75c7c0248@FreeBSD.org> <5c64a532-9f5f-4e52-35e6-4800cb065d8f@FreeBSD.org> In-Reply-To: <5c64a532-9f5f-4e52-35e6-4800cb065d8f@FreeBSD.org> From: Rajesh Kumar Date: Mon, 5 Nov 2018 12:52:20 +0530 Message-ID: Subject: Re: Has anything changed from 11.2 to 12.0 in PCI MSI/MSIX path? To: jhb@freebsd.org Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org X-Rspamd-Queue-Id: 41548732BE X-Spamd-Result: default: False [-2.46 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[b.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.86)[-0.859,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(-0.60)[ipnet: 2a00:1450::/32(-1.75), asn: 15169(-1.19), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2018 07:22:34 -0000 Thanks John. I tried building a kernel with these changes and things are working good. I could able to boot without any tunables. Thanks again. On Fri, Nov 2, 2018 at 12:05 AM John Baldwin wrote: > On 10/30/18 1:22 AM, Rajesh Kumar wrote: > > Hi John, > > > > Thanks for your updates. I assume you are talking about having a > unified intr_machdep.h compared to having seperate amd64 and i386 versions. > > > > Can you please update this thread once all changes are MFC complete or > tag me in necessary place? So that I can give a try in my board once it's > ready. > > I just committed r340016 which merges r338360 along with followup fixes to > stable/11. > > > On Mon, Oct 29, 2018 at 11:08 PM John Baldwin jhb@freebsd.org>> wrote: > > > > On 10/25/18 10:24 AM, Rajesh Kumar wrote: > > > Hi John, > > > > > > Thanks a lot. It helps. I backported the changes to 11.2 and tried > booting in my board with success without any need for the said tunables. > > > > > > I see those changes are marked for MFC after 2 Weeks. But I don't > see them still in stable/11 branch. So, will it be taken into stable/11 > branch by any chance? If not, can the backported changes be submitted for > review to take into stable/11 branch? > > > > I'm working on the MFC. The current patch I've tested an MFC of is > the one to > > unify sys/x86/include/intr_machdep.h as a precursor to MFC'ing this > change. > > > > > On Thu, Oct 25, 2018 at 1:17 AM John Baldwin >> > wrote: > > > > > > On 10/24/18 3:40 AM, Rajesh Kumar wrote: > > > > Hi, > > > > > > > > I have a amd64 based board. When I tried to boot 11.1 (or) > 11.2 in that, I > > > > needed the following tunables to be set from loader prompt > to get it booted > > > > (otherwise machine reboots continuously). > > > > > > > > hw.usb.xhci.msi=0 > > > > hw.usb.xhci.msix=0 > > > > hw.pci.enable_msi=0 > > > > hw.pci.enable_msix=0 > > > > > > > > But, when I tried with 12.0 - ALPHA4, I could able to get it > booted without > > > > any tunables. So, has anything changed significantly on PCI > MSI/MSI-X > > > > path? > > > > > > > > Note: I have a forum topic with my observations about the > issue on > > > > 11.1/11.2 in the following thread > > > > > https://forums.freebsd.org/threads/freebsd-11-1-installation-fails-and-rebooting.65814/ > > > > > > > > Let me know if you need any details. > > > > > > I believe this was fixed by r338360. > > > > > > -- > > > John Baldwin > > > > > > > > > -- > > John Baldwin > > > > > -- > John Baldwin > > > >