Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2021 07:39:47 +0000
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
Message-ID:  <bug-258994-227-9YE6imrG9A@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258994-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258994-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258994-227-9YE6imrG9A>