From owner-freebsd-arm@freebsd.org Fri Apr 19 16:04:47 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 3354F1570D24 for ; Fri, 19 Apr 2019 16:04:47 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (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 740168584E for ; Fri, 19 Apr 2019 16:04:46 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1555689885; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=NsV6M2REGO/TDa9i7uifGMNbL9jFqWmzgy8UYrYwX1nGGwiN9redKSy1/RQ6SlDZmztmZl0zE1CYC DPHeH2rmpkiyXNqlYktXKC2XYfsEypuTNgLFYAoPFn+3CRZ8Tbaeqf8l0FXR0K6a51qZx5qoV1/R// k3nfl/EKb7pqOlA4tdzd2TMp1rZhpjOE9vWNHXuH4+ISC7tlITA8QhlNQQWy+9tIpdrnQQCZjzAERS B//2lnu7xUZEDzNGcxQwhWfgIe0nvIZDphPHyye1xPuS5CvXArweTCS30Vp780m+qt3m8RJ3z50dMJ 4S109Pdr2VyC3S7RwT2UiqjD4ly+bqA== 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:cc:to:from:subject:message-id:dkim-signature:from; bh=LeEkiGz5iG1TsJtM78DCiJiZbaP6aqVqD5OZMP1m7L8=; b=JUQZy0bckOA3I54Ir+Z9scrxr+QdpSyGs/mBMdqu8X9xDH8tc9lA2Y8x7S9MmLXDVOq0++1HBMaz4 L5ufpE989BCZYEmDRoXHrbyVqjDqoLOocGhbon9cBlAw0IIpVeOfOUD/YMj83Ob8/f/bY4e2J49VTh G7tOv6bsygWJi+QZb2zy/DbYB+ht61v84flffuaQAAx5bC9rgohQ3dYxmWaQ0zSxoLatnoULEd+H+r Mw+UakCd1p5P53ky96VKKYmX0Ri19IkK3QaYL6GLyUOegNYfOL7VSMRB0RWeusZm+ALBCPX5B8eVOV jUVGmarPdPB2huWS0ROSr2H0zjJfg1g== ARC-Authentication-Results: i=1; outbound3.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:cc:to:from:subject:message-id:from; bh=LeEkiGz5iG1TsJtM78DCiJiZbaP6aqVqD5OZMP1m7L8=; b=uTfGVPFKPK57RaNqlGyo0WeMb3snZY2YDMbKAiY0ekaNJfirQFnD+8Og5bV4dVwf0qwVfVix+NSpV Hk4heQRIIPfhK5YYoBuaEfsIXnm6G+i4OU+atONhoysfM2RQgHwsi6kbPBsAPU9vYGDCRQF/URKeBB F+PLbntt5rfzsbHS+2ZUndhURt2poxsf2D8czTkLMpkK4WwLMqUsNe5sCWc5YqslIbPOgdxO4vv6a3 /7wk+ovYb0b08ly8vkmygQW31KKiMHYL22S8k+WnZScohNkOexvwLMYSP9KubxZHNgCNTu5+QqkR/z wQXIpM19NFpP5+EQVIKCMraHE5k0rVQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: d745f0e9-62bc-11e9-990e-673a89bc4518 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 outbound3.ore.mailhop.org (Halon) with ESMTPSA id d745f0e9-62bc-11e9-990e-673a89bc4518; Fri, 19 Apr 2019 16:04:43 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x3JG4fga054267; Fri, 19 Apr 2019 10:04:41 -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: Per Hedeland , Karl Denninger Cc: freebsd-arm@freebsd.org Date: Fri, 19 Apr 2019 10:04:41 -0600 In-Reply-To: <499b53d5-23ed-c33b-3715-018720c536a3@hedeland.org> 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> <8bcdb1e1-e561-6255-848d-e532ad4d5918@denninger.net> <499b53d5-23ed-c33b-3715-018720c536a3@hedeland.org> 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: 740168584E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 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(-0.98)[-0.983,0]; ASN(0.00)[asn:16509, ipnet:54.186.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: Fri, 19 Apr 2019 16:04:47 -0000 On Fri, 2019-04-19 at 13:32 +0200, Per Hedeland wrote: > But anyway I would be *extremely* surprised if I saw them, since > AFAIU > the i2c bus per se has no concept of interrupts - you need to connect > some other wire from the device to e.g. a gpio pin (with appropriate > config) in order to generate interrupts - and I haven't done that. > (The > ads1015 does have an ALERT/RDY pin that could potentially be used for > it, but since FreeBSD AFAIK doesn't have a way to deliver the > interrupts to userland code, I had no interest in it.) You're thinking about this all wrong. The interrupts have nothing to do with the i2c bus, but the i2c controller still uses interrupts to signal things like "trasnfer done" or "fifo empty". If there's nothing on the bus, you don't end up doing any transfers, so you don't get any spurious interrupts. I can't reproduce this using RTC or EEPROM chips. We use ADS1013 parts at $work, I may have some around here somewhere. If so, I'll see if I can reproduce the problem using them. -- Ian