From owner-freebsd-arm@freebsd.org Thu Apr 18 22:57:52 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 64CBB157EABE for ; Thu, 18 Apr 2019 22:57:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (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 55AD284466 for ; Thu, 18 Apr 2019 22:57:51 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1555628269; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ErBg1z5Mbh8HzADZUJdbofDhwdx+e/eM5iV6JyZU4PT5ZDEJxx4YtpY+8U3EFsry9vCkQSvMrEQ4v DcY+V89eYn69pQ3MwGdaKWfmgaSbp1V6o/ZrBbJwr7+GbgkQQBH//MfY/CYZzQs7JudUTeNZ/sxHc9 MPogc5Gi4bzFtS0suRkNwPRtqamaCwwlgQ8qpSPLaKhmDCTLkayvKNsoMOP9TRTVI6bqdWNYAics+r MT2CdmLR1lByKTm5UrkE3Z/s0KF/UTpXIYERdZ+yOOaEOTahJjdIadzxTsPLycbpMSsLpRecXrwSB/ W02J9sKg0Tg4sIywMsQinLtS/M9tb5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=RMT/YrR0Pw5fzsvtL4Y/Zdy9QdPQ8HSf1bxWLF3h0bU=; b=Nf98s80oeicCf+FG8Mu9QtfYij+BHSTu+RVznRQN/OO4BnlP7E3Agr5dRvW+5qt9n8xYfaXQSJgPl 4DOdulP0N1ctbCT0K0/oKG41mWKtQFBqshg4WGXjFIS9qau165FL291PaJTrFHHhJKFX33ZwbQf9RZ qkuEMdSPJFYsmLJT/S6utLKkd+r1L63lfYtvklzQkU+Pe8Q61/8I1rztB4vfhPyAYa+FbLjRoYgKXM OiISzViKc/jLx+fBT0BJP9nrruq2VsI6z0nE889aT5crEpKd/I5ygWHronA9vFY58I9UhO78DEgjlo MoAxkNOy5Tg7wOpebtobWe76WD+TxJQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=RMT/YrR0Pw5fzsvtL4Y/Zdy9QdPQ8HSf1bxWLF3h0bU=; b=YblXuYE0DkmhXVgWJhGfLMQScUISDnIuF33oBybnXZ0/YuhxpzjkZHeUnoH+me6q2rQ1KXmrCbpuv cDbuBWVU19KGgrx8vaIwvvorxpbcSZge3tJyGca++eiYsPSSr0SL5KQC+sdVZkjIOZ5QVSoSpDukIW mI4XpUXrISnGDvVr9oAE3kdOB2I5Evo2B4yp/qfAx5s2OJxrNRaPjflS1XjYtt8AHT2pn8YIEkeRG8 RrjC5DzNL94pYKmZiKKlD4WPGOSXlJwHIhF/FNiSHaVxluHZFs1KEP7R4wa4pJNMWq+pyAai9HSimW le2l+JHDeSQzOvoVnJLcKyX63gz3XHA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 62992fd9-622d-11e9-919f-112c64a8cf29 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 62992fd9-622d-11e9-919f-112c64a8cf29; Thu, 18 Apr 2019 22:57:48 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x3IMvl0i051790; Thu, 18 Apr 2019 16:57:47 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: I2c producing crazy console messages [[Re: insanely-high interrupt rates -- PARTIAL resolution (Pi2)]] From: Ian Lepore To: Karl Denninger , freebsd-arm@freebsd.org Date: Thu, 18 Apr 2019 16:57:47 -0600 In-Reply-To: <6f6f8471-8624-c5e2-547c-42b712254126@denninger.net> References: <004ddba628b94b80845d8e509ddcb648d21fd6c9.camel@freebsd.org> <20190319161423.GH57400@cicely7.cicely.de> <52df098fdc0caf5de1879c93239534fffbd49b56.camel@freebsd.org> <40f57de2-2b25-3981-a416-b9958cc97636@denninger.net> <669892ac3fc37b0843a156c0ab102316829103fd.camel@freebsd.org> <663f2566-b035-7011-70eb-4163b41e6e55@denninger.net> <20190325164827.GL57400@cicely7.cicely.de> <3db9cf8a-68ee-e339-67bf-760ee51464fd@denninger.net> <874l7fyrpr.fsf@news-spur.riddles.org.uk> <701e011f-3088-8ed4-4fbb-6fa93ac698f5@denninger.net> <67133e19-2be5-ccd1-2ded-008b36a866ec@denninger.net> <6f6f8471-8624-c5e2-547c-42b712254126@denninger.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 55AD284466 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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 22:57:52 -0000 On Thu, 2019-04-18 at 16:51 -0500, Karl Denninger wrote: > Up until 12.0 this code both worked and did *not* generate complaints > about unhandled interrupts. It still runs fine and returns valid > data > BUT if there are any analog endpoints actually on the bus that the > code > can read then it generates a lot of these: > > local_intc0: Spurious interrupt detected > local_intc0: Spurious interrupt detected > intc0: Spurious interrupt detected > > ..... > > If I do not connect the I2c device then there are no messages. If I > stop the code that is running (e.g. no accesses to the i2c bus) then > the > messages stop as well, so it's not something that happens but remains > active after the code halts; it's happening on the actual accesses to > the bus from those ioctl's. Hmm, another interesting question occurred to me: Can you tell whether you are getting multiple spurious interrupt messages per single transfer your code does, or is it one per transfer, or more intermittent, like not on every transfer? -- Ian