Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: as9716: /usr/local/bin/accton_as9716_32d_util.py not fully modprobed #43

Open
wdoekes opened this issue Nov 21, 2024 · 2 comments

Comments

@wdoekes
Copy link
Member

wdoekes commented Nov 21, 2024

Description

After starting the spine, it appears that not all modules loadable by /usr/local/bin/accton_as9716_32d_util.py had been modprobed.

def driver_inserted():
    ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
    return False  # <-- temp hack
    logging.info('mods:'+lsmod)
    if ret :
        return False
    else :
        return True
# accton_as9716_32d_util.py install
Failed :i2cset -y 0 0x65 0x3 0x0
Done driver_install
AS9716_32D devices detected....

Now everything is loaded.

Which build are we running (if any)

SONiC Software Version: SONiC.osso202405.0-439acd33c
SONiC OS Version: 12
Distribution: Debian 12.8
Kernel: 6.1.0-22-2-amd64
Build commit: 439acd33c
Build date: Wed Nov 20 22:41:18 UTC 2024
Built by: [email protected]

Platform: x86_64-accton_as9716_32d-r0
HwSKU: Accton-AS9716-32D
ASIC: broadcom
ASIC Count: 1

Upstream issues/PRs

@wdoekes
Copy link
Member Author

wdoekes commented Nov 21, 2024

root@spine1:~# cat /sys/bus/i2c/devices/25-0050/name 
optoe1
sfp_map = [25, 26, 27, 28, 29, 30, 31, 32,
           33, 34, 35, 36, 37, 38, 39, 40,
           41, 42, 43, 44, 45, 46, 47, 48,
           49, 50, 51, 52, 53, 54, 55, 56,
           57, 58]
root@spine1:~# hd /sys/bus/i2c/devices/25-0050/eeprom 
00000000  18 30 80 06 00 00 00 00  00 00 00 00 00 00 00 00  |.0..............|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000050  00 00 00 00 00 03 1d 01  88 01 ff 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 11  |................|
00000080  18 46 53 20 20 20 20 20  20 20 20 20 20 20 20 20  |.FS             |
00000090  20 64 9d 99 51 44 44 2d  34 30 30 47 2d 50 43 30  | d..QDD-400G-PC0|
000000a0  31 20 20 20 41 20 43 32  34 30 38 38 31 38 34 37  |1   A C240881847|
000000b0  32 2d 32 20 20 20 32 34  30 39 31 33 20 20 00 00  |2-2   240913  ..|
000000c0  00 00 00 00 00 00 00 00  00 06 41 23 00 00 00 00  |..........A#....|
000000d0  00 00 00 02 0a 00 00 00  00 00 00 00 00 00 c5 00  |................|
000000e0  31 31 30 35 34 33 46 53  51 44 44 2d 34 30 30 47  |110543FSQDD-400G|
000000f0  2d 50 43 30 32 20 20 20  20 20 20 20 20 20 20 20  |-PC02           |
root@spine1:~# hd /sys/bus/i2c/devices/27-0050/eeprom 
hd: /sys/bus/i2c/devices/27-0050/eeprom: No such device or address
root@spine1:~# hd /sys/bus/i2c/devices/55-0050/eeprom 
hd: /sys/bus/i2c/devices/55-0050/eeprom: No such device or address
root@spine1:~# hd /sys/bus/i2c/devices/56-0050/eeprom 
00000000  11 06 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000060  00 00 00 00 00 00 00 00  00 00 00 00 01 00 04 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  11 00 23 88 00 00 00 00  00 00 00 00 ff 00 00 00  |..#.............|
00000090  00 00 01 a0 4d 65 6c 6c  61 6e 6f 78 20 20 20 20  |....Mellanox    |
000000a0  20 20 20 20 00 00 02 c9  4d 43 50 31 36 30 30 2d  |    ....MCP1600-|
000000b0  43 30 30 31 20 20 20 20  41 32 03 04 05 09 00 17  |C001    A2......|
000000c0  0b 00 00 00 4d 54 31 36  33 37 56 53 30 31 38 33  |....MT1637VS0183|
000000d0  30 20 20 20 31 36 30 38  31 33 20 20 00 00 67 5c  |0   160813  ..g\|
000000e0  31 32 38 38 36 33 30 38  38 39 30 43 00 00 00 00  |12886308890C....|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 30 00 00  |.............0..|
00000100

Must investigate:

  • why not everything is loaded
  • what the benefits are of loading all
  • what the equivalent is on 7326

@wdoekes
Copy link
Member Author

wdoekes commented Nov 21, 2024

Related:

github.com/sonic-net/sonic-buildimage/pull 10809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant