From owner-freebsd-amd64@freebsd.org Tue Aug 21 06:06:58 2018 Return-Path: Delivered-To: freebsd-amd64@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 57DCC108A50F; Tue, 21 Aug 2018 06:06:58 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 D785A74ACD; Tue, 21 Aug 2018 06:06:57 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id m27-v6so8545819wrf.3; Mon, 20 Aug 2018 23:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4NUAC4SG9ggVygxP698XPl3AI5sPHa+E/+91MyGNFRA=; b=es5JsmTmHPN2ySvUlIgEQXUFKPFx2TRXPTAW8vzLqQxduic+kOzHv8+HIxM1RvuPWU kMZo15pBBCxeLj6P9bDRe8+Cy64+y02m/a6bs85yu9cvfKZ7oomm2AKoZzkOeLB9/mYi jfDsbqBwmKHq1ejekys5vNXz7upkkEIFfbXBh4dKYr8eGkIaNHahZ9YK9KHDznvV5qwY DnbjVjFXWGLXDLiVFL+UtHxyfvWUkdWPDsObRLox1uXRv7qjW3a12bmL65G//4mL5PUS tljeMLRJ9ar4rWJEGL6DHMu1OdxTh92cRLuIk91FTgzIzNEEZkK2A7nF9vwznUcij2Uo rx9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4NUAC4SG9ggVygxP698XPl3AI5sPHa+E/+91MyGNFRA=; b=TyCX9V1E3yapXCFXDmdN7+PyFEfARxIxXNNnYDC4w8EQyxl26KJUa/2ySd3Mud+13q E105iD3goVW5dhkxcsvoxvkBwqEQ/h+exbcB8X2tz79TgWn21EEqalgxBqB6UP6H2mWn 3CD1hiepUzqnFojZScZQFGVd2FVjP6kLUxrGyknvm4UO9x7E2fN5++TGmJFiQMq71dwp ozn/jPAd2a3J/iAly/NftfbFSPWiNtkGVT2SXopApcQv13Mky01TMC6+S77Hhi7q7vbW KEtLoM9PXXesqAKiA6cYEPTr6WGYY59Z7I74t6yLb2d9c6xPRbkZVvy13GWEWgtkqgiN jSkw== X-Gm-Message-State: APzg51DkCXFa6w0L0VH/j03cG5zjngvz2o4NRPwtodHSEse0acqBWMaL +Y/5l7YN0+qZRA2fQQ3nbdlJA/weBRnw1wuAj22udUdq X-Google-Smtp-Source: ANB0VdYlNSB4y5tqZnQHXmaxP7QrTAGN/pJ25WzI84IvRzmU1vvR78AQS5ab3VVnBKAz/z4QATz2SeXZrUv/r6VYjrE= X-Received: by 2002:adf:806d:: with SMTP id 100-v6mr7968538wrk.23.1534831616522; Mon, 20 Aug 2018 23:06:56 -0700 (PDT) MIME-Version: 1.0 From: Rajesh Kumar Date: Tue, 21 Aug 2018 11:36:44 +0530 Message-ID: Subject: Can we use INTRNG with amd64 platforms? To: freebsd-amd64@freebsd.org, freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2018 06:06:58 -0000 Hi, I am writing a GPIO driver for a amd64 platform. I see an option INTRNG for GPIO interrupt handling in arm platforms. Can we use INTRNG in amd64 platform? I tried compiling freebsd with "options INTRNG" in amd64 platform, but it says "Unknown option INTRNG". So, Just wanted to clarify whether INTRNG is supported in amd64? If not, is there any equivalent available for amd64? Also, Is there any available document which explains about INTRNG features? From owner-freebsd-amd64@freebsd.org Wed Aug 22 09:02:35 2018 Return-Path: Delivered-To: freebsd-amd64@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 12D591082838 for ; Wed, 22 Aug 2018 09:02:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A1B6A8B2A0 for ; Wed, 22 Aug 2018 09:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 66F881082837; Wed, 22 Aug 2018 09:02:34 +0000 (UTC) Delivered-To: amd64@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 44D6A1082836 for ; Wed, 22 Aug 2018 09:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0DB78B29D for ; Wed, 22 Aug 2018 09:02:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1A54F13307 for ; Wed, 22 Aug 2018 09:02:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7M92WNS039422 for ; Wed, 22 Aug 2018 09:02:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7M92WpF039408 for amd64@FreeBSD.org; Wed, 22 Aug 2018 09:02:32 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: amd64@FreeBSD.org Subject: [Bug 130483] [mxge] MSI must be disabled when Myricom 10Gbps Card is used on Dell PowerEdge T300 Server Date: Wed, 22 Aug 2018 09:02:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: amd64 X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: amd64@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-amd64@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 09:02:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D130483 John Baldwin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhb@FreeBSD.org --- Comment #4 from John Baldwin --- For posterity in case we have to revisit this in the future. I ended up resolving this PR in r189404. I've included some boot -v output from the affected machine below along with some additional notes: MADT: Found IO APIC ID 4, Interrupt 0 at 0xfec00000 ioapic0: Changing APIC ID to 4 ioapic0: Routing external 8259A's -> intpin 0 MADT: Found IO APIC ID 5, Interrupt 256 at 0xfec10000 ioapic1: Changing APIC ID to 5 ioapic1: WARNING: intbase 256 !=3D expected base 24 MADT: Found IO APIC ID 6, Interrupt 64 at 0xfec10000 ioapic2: Changing APIC ID to 6 ioapic2: WARNING: intbase 64 !=3D expected base 280 lapic: Routing NMI -> LINT1 lapic: LINT1 trigger: edge lapic: LINT1 polarity: high MADT: Interrupt override: source 0, irq 2 ioapic0: Routing IRQ 0 -> intpin 2 MADT: Interrupt override: source 9, irq 9 ioapic0: intpin 9 trigger: level ioapic0 irqs 0-23 on motherboard ioapic1 irqs 0-23 on motherboard ioapic2 irqs 64-87 on motherboard Here the error was that ioapic1 and ioapic2 were actually the same I/O APIC (note the same memory mapped base address), but ioapic1 used a IRQ base of = 256 which caused IRQ values for MSI to get reserved by the nexus resulting in t= he panic. Here is the MADT table from this machine: /* APIC: Length=3D138, Revision=3D1, Checksum=3D201, OEMID=3DDELL, OEM Table ID=3DPE_SC3, OEM Revision=3D0x1, Creator ID=3DDELL, Creator Revision=3D0x1 Local APIC ADDR=3D0xfee00000 Flags=3D{PC-AT} Type=3DLocal APIC ACPI CPU=3D1 Flags=3D{ENABLED} APIC ID=3D0 Type=3DLocal APIC ACPI CPU=3D2 Flags=3D{ENABLED} APIC ID=3D1 Type=3DLocal APIC ACPI CPU=3D3 Flags=3D{ENABLED} APIC ID=3D2 Type=3DLocal APIC ACPI CPU=3D4 Flags=3D{ENABLED} APIC ID=3D3 Type=3DLocal NMI ACPI CPU=3DALL LINT Pin=3D1 Flags=3D{Polarity=3Dactive-hi, Trigger=3Dedge} Type=3DINT Override BUS=3D0 IRQ=3D0 INTR=3D2 Flags=3D{Polarity=3Dconforming, Trigger=3Dconforming} Type=3DINT Override BUS=3D0 IRQ=3D9 INTR=3D9 Flags=3D{Polarity=3Dactive-hi, Trigger=3Dlevel} Type=3DIO APIC APIC ID=3D4 INT BASE=3D0 ADDR=3D0x00000000fec00000 Type=3DIO APIC APIC ID=3D5 INT BASE=3D256 ADDR=3D0x00000000fec10000 Type=3DIO APIC APIC ID=3D6 INT BASE=3D64 ADDR=3D0x00000000fec10000 */ --=20 You are receiving this mail because: You are the assignee for the bug.=