From owner-freebsd-arm@freebsd.org Thu Apr 18 09:37:49 2019 Return-Path: Delivered-To: freebsd-arm@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 B6DFE158DFEC for ; Thu, 18 Apr 2019 09:37:48 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7AF4986251; Thu, 18 Apr 2019 09:37:47 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: by mail-ed1-x544.google.com with SMTP id k92so1222320edc.12; Thu, 18 Apr 2019 02:37:47 -0700 (PDT) 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=yLtbFuCMUPM8r8f1CJFUgBXfw+SWQuLAutmnl0rCkUI=; b=qcj2dQbo/BJtpMUelIZfhgoHNXQBY8GZNUC7dzaDWECmKvcv+SMQCtKBzlqwzarYqT iIwtIVo7WS9UKOnwemp5G8mug7lA4Raft0AN6V1Z0OoqM+OyMJcLFMEkdDoU6jfhhLqn s6dBl2aAmwbz/ndFR6Chi5ISw0VUFCJvkc0LazZMaaW6DJPBOrcIdq8llb9z9EYYac77 kZ4XlupjuQ/egZc+UjfZD63PEES0maG30x4XDRFUV6+NdeS2FHvQMLSaEWEVFSDai9hz TgmKGYbG0LwWcAP3Ppcqu2kfVWkGFoxxX1PJaRm1ljPnliZt91m9yZ1deNFqI3jc+HqN fcIw== 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=yLtbFuCMUPM8r8f1CJFUgBXfw+SWQuLAutmnl0rCkUI=; b=FGlYsZ431vcJcbfDGSBjhKQDd1oIrYN+MXNTLk5qXldB3CDfbHrnzNXmW/4DjfhNAQ IEPLH5xiHf1nJ0XaR4hu8RFtiPnRHZwUOkYIrGaJ6Pma05bHTZVipdUREdtkHoGn3ETx 9oCCu3Fn2zURu6cl9e0wcqOAEzaGdLouccP0Qw2D0D5ZFDX4yFLIywZuscFlCPPSeGys irITBjN9W5EezV3Pub/TKxHmlPEjxHylTpR1Bv7EAL5KNmWOqIHZmz4y4l+VoYxyslRD II1LDTSL/4koTzoet+KmIIziX+DhQXZryDfgk4G3CU/vkYx8l5vE3vBu+rWnHAiCUMv2 TelA== X-Gm-Message-State: APjAAAXOd7aappm28KXQUBr5a/HAmtf/Mx6FJwHyv1oyoOiITgSXgrUw 1EMw+FNHm+Acc4EPIndZbklVsi4/W3p0nlJixMcCQPF+Eyc= X-Google-Smtp-Source: APXvYqyx+sHYpT8QoSXab0W4yrd6YiiEHVg5obK+niCo32R5S20FC8A7qslgrlFag2UVhZwAJEpIm55UShEm/gkdzPs= X-Received: by 2002:a17:906:b34c:: with SMTP id cd12mr46971599ejb.106.1555580266153; Thu, 18 Apr 2019 02:37:46 -0700 (PDT) MIME-Version: 1.0 References: <6e5e9c101aa35da0bf449bd8e407b8110a2ad382.camel@freebsd.org> In-Reply-To: <6e5e9c101aa35da0bf449bd8e407b8110a2ad382.camel@freebsd.org> From: Balanga Bar Date: Thu, 18 Apr 2019 11:37:25 +0100 Message-ID: Subject: Re: interrupt storm detected To: Ian Lepore Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 7AF4986251 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qcj2dQbo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of balangabar@gmail.com designates 2a00:1450:4864:20::544 as permitted sender) smtp.mailfrom=balangabar@gmail.com X-Spamd-Result: default: False [-4.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; 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_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.71)[-0.709,0]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[4.4.5.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]; IP_SCORE(-0.99)[ip: (-0.29), ipnet: 2a00:1450::/32(-2.38), asn: 15169(-2.23), country: US(-0.06)]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2019 09:37:49 -0000 Wasn't sure how to check whether the correct PHY indexes were being used but did notice differences in the boot logs between 11.2 and 12.0 Here's what I got under 11.2:- Code: FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) CPU: Feroceon 88FR131 rev 1 (**unknown 4** core) Little-endian DC enabled IC disabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled LABT branch prediction disabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 134213632 (127 MB) avail memory = 121294848 (115 MB) and with 12.0:- Code: FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) CPU: Feroceon 88FR131 rev 1 (**unknown 4** core) Little-endian DC enabled IC enabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled LABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 0 (0 MB) avail memory = 120799232 (115 MB) Could "IC (en/dis)abled" or "LABT branch prediction (en/dis)abled" be responsible for the interrupt storm? I've no idea what these terms refer to... On Wed, Apr 17, 2019 at 6:33 PM Ian Lepore wrote: > On Wed, 2019-04-17 at 19:23 +0100, Balanga Bar wrote: > > After building FreeBSD 12.0-RELEASE for ARM I managed to boot up my > > GoFlex > > Home booting up without getting kernel panics which I did with 11.2, > > but > > instead I get a msg every second or so saying:- > > > > interrupt storm detected on "intr13:" throttling interrupt source > > > > After some experimenting I managed to run vmstat -i which showed:- > > > > interrupt total rate > > irq1: timer0 27224 201 > > irq12: mge0 6037 45 > > irq13: mge0 11003 81 > > irq19: ehci0 5665 42 > > irq33: uart0 247 2 > > Total 50176 371 > > > > > > Is there anyting I can do to stop this storm? > > > > I tried adding hw.intr_storm_threshold=4000 to /etc/sysctl.conf, but > > that > > made no difference. > > > > Check whether the right PHY indexes are being used. I've seen kirkwood > systems put the PHYs on 0 & 1, 0 & 4, and 0 & 8. I've seen interrupt > storms on mge before. I'm not positive the PHY numbers and the irq > storms are related, that's just two random things I remember from the > past. > > -- Ian > >