From: Andrew Lunn <andrew@lunn.ch>
To: Ido Schimmel <idosch@idosch.org>
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
jiri@mellanox.com, vadimp@mellanox.com, popadrian1996@gmail.com,
mlxsw@mellanox.com, Ido Schimmel <idosch@mellanox.com>
Subject: Re: [PATCH net-next 1/2] mlxsw: core: Add ethtool support for QSFP-DD transceivers
Date: Fri, 26 Jun 2020 17:19:26 +0200 [thread overview]
Message-ID: <20200626151926.GE535869@lunn.ch> (raw)
In-Reply-To: <20200626144724.224372-2-idosch@idosch.org>
> + case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP_DD:
> + /* Use SFF_8636 as base type. ethtool should recognize specific
> + * type through the identifier value.
> + */
> + modinfo->type = ETH_MODULE_SFF_8636;
> + /* Verify if module EEPROM is a flat memory. In case of flat
> + * memory only page 00h (0-255 bytes) can be read. Otherwise
> + * upper pages 01h and 02h can also be read. Upper pages 10h
> + * and 11h are currently not supported by the driver.
> + */
> + if (module_info[MLXSW_REG_MCIA_EEPROM_MODULE_INFO_TYPE_ID] &
> + MLXSW_REG_MCIA_EEPROM_CMIS_FLAT_MEMORY)
> + modinfo->eeprom_len = ETH_MODULE_SFF_8636_LEN;
> + else
> + modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN;
> + break;
Although the upper pages 10h and 11h are not supported now, we
probably think about how they would be supported, to make sure we are
not going into a dead end.
From ethtool qsfp.c
/*
* Description:
* a) The register/memory layout is up to 5 128 byte pages defined by
* a "pages valid" register and switched via a "page select"
* register. Memory of 256 bytes can be memory mapped at a time
* according to SFF 8636.
* b) SFF 8636 based 640 bytes memory layout is presented for parser
*
* SFF 8636 based QSFP Memory Map
*
* 2-Wire Serial Address: 1010000x
*
* Lower Page 00h (128 bytes)
* ======================
* | |
* |Page Select Byte(127)|
* ======================
* |
* V
* ----------------------------------------
* | | | |
* V V V V
* ---------- ---------- --------- ------------
* | Upper | | Upper | | Upper | | Upper |
* | Page 00h | | Page 01h | | Page 02h | | Page 03h |
* | | |(Optional)| |(Optional)| | (Optional) |
* | | | | | | | |
* | | | | | | | |
* | ID | | AST | | User | | For |
* | Fields | | Table | | EEPROM | | Cable |
* | | | | | Data | | Assemblies |
* | | | | | | | |
* | | | | | | | |
* ----------- ----------- ---------- --------------
*
*
**/
Is page 03h valid for a QSFP DD? Do we add pages 10h and 11h after
page 03h, or instead of? How do we indicate to user space what pages
of data have been passed to it?
Andrew
next prev parent reply other threads:[~2020-06-26 15:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-26 14:47 [PATCH net-next 0/2] mlxsw: Add support for QSFP-DD transceiver type Ido Schimmel
2020-06-26 14:47 ` [PATCH net-next 1/2] mlxsw: core: Add ethtool support for QSFP-DD transceivers Ido Schimmel
2020-06-26 15:19 ` Andrew Lunn [this message]
2020-06-26 17:33 ` Adrian Pop
2020-06-26 19:07 ` Andrew Lunn
2020-06-26 22:13 ` Adrian Pop
2020-06-27 19:16 ` Ido Schimmel
2020-06-27 20:42 ` Adrian Pop
2020-06-28 11:55 ` Ido Schimmel
2020-06-28 12:27 ` Adrian Pop
2020-06-30 0:21 ` Andrew Lunn
2020-06-30 5:59 ` Ido Schimmel
2020-06-30 9:37 ` Vadim Pasternak
2020-06-30 13:00 ` Andrew Lunn
2020-06-26 14:47 ` [PATCH net-next 2/2] mlxsw: core: Add support for temperature thresholds reading " Ido Schimmel
2020-06-26 14:53 ` [PATCH net-next 0/2] mlxsw: Add support for QSFP-DD transceiver type Ido Schimmel
2020-06-26 15:06 ` Andrew Lunn
2020-06-26 16:45 ` Adrian Pop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200626151926.GE535869@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=idosch@idosch.org \
--cc=idosch@mellanox.com \
--cc=jiri@mellanox.com \
--cc=kuba@kernel.org \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=popadrian1996@gmail.com \
--cc=vadimp@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).