From nobody Tue Oct 19 07:39:47 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F35B717F3362 for ; Tue, 19 Oct 2021 07:39:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HYQcg6J3wz3FmF for ; Tue, 19 Oct 2021 07:39:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B9DC510172 for ; Tue, 19 Oct 2021 07:39:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19J7dlX4035497 for ; Tue, 19 Oct 2021 07:39:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19J7dlxX035496 for bugs@FreeBSD.org; Tue, 19 Oct 2021 07:39:47 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: bugs@FreeBSD.org Subject: [Bug 258994] iic(4): Panics on Nanopi Neo when using 16-bit device addressing width: panic: Assertion strlen(description) < MAX_W_NAME failed at ... sys/kern/subr_witness.c:1914 Date: Tue, 19 Oct 2021 07:39:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: alydiomc@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: attachments.isobsolete cc attachments.created 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258994 alydiomc@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #228624|0 |1 is obsolete| | CC| |alydiomc@yahoo.com --- Comment #8 from alydiomc@yahoo.com --- Created attachment 228827 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228827&action= =3Dedit Added some improvements. root@nanopi-neo:~/i2c # i2c -s /dev/iic0 Scanning I2C devices on /dev/iic0: 40 57 68=20 [8bit single write]=20 root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 0 -w 8 -c 1 -m tr < 00.hex root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 1 -m tr 00 [8bit single write]=20 root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 0 -w 8 -c 1 -m tr < 20.hex root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 1 -m tr 20=20 [8bit multiple write] Clear Registers from offset 5 to 1f [27 bytes] root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 5 -w 8 -c 27 -m tr < null.txt [8bit multiple Read] Read Registers from offset 0 [48 bytes] root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 48 -m tr 20 13 44 4c 46 00 00 00 00 00 00 00 00 00 00 00=20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=20 ff 10 00 00 00 10 00 00 00 10 00 00 00 10 00 00=20 [8bit multiple write] Fill Register from offset 5 to 1f [27 bytes] root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 5 -w 8 -c 27 -m tr < random.txt root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 48 -m tr 20 13 44 4c 46 7e 77 14 67 01 58 1c 2b 06 0e 17=20 69 10 1e 1f 2e 00 c6 16 0c 04 a2 04 3c 06 1e 11=20 ff 10 00 00 00 10 00 00 00 10 00 00 00 10 00 00=20 [16bit write] Clear eeprom data from offset 0 to 1F [32 bytes] root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d w -o 0 -w 16 -c 32 -m tr < null.txt [16bit Read] Read eeprom data from offset 0 [48 bytes] root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d r -o 0 -w 16 -c 48 -m tr 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=20 f8 0c 00 00 02 04 00 05 34 00 20 00 08 00 28 00=20 [16bit write] Fill eeprom from offset 0, 32bytes root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d w -o 0 -w 16 -c 32 -m tr < random.txt root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d r -o 0 -w 16 -c 48 -m tr 7e 77 b4 67 e1 58 1c 2b a6 0e d7 69 50 1e 9f 2e=20 a0 c6 76 0c 84 a2 a4 3c 66 1e 51 b4 10 f1 d8 60=20 f8 0c 00 00 02 04 00 05 34 00 20 00 08 00 28 00 --=20 You are receiving this mail because: You are the assignee for the bug.=