Commit graph

29 commits

Author SHA1 Message Date
Andrei-Liviu Simion
062b550ad6 dp: Fixed typos.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:27 +05:30
Andrei-Liviu Simion
ddabc3c5ab dp: mst: Cleaner GUID.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:27 +05:30
Andrei-Liviu Simion
a2642c951b dp: rx: mst: Added generic NACK reply if request is not supported.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:26 +05:30
Andrei-Liviu Simion
b55738e267 dp: mst: Renamed XDP_TX_SBMSG_* to XDP_SBMST_* definitions for both TX and RX.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:26 +05:30
Andrei-Liviu Simion
2ff38d18fb dp: rx: mst: Added function to handle MST sideband message requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:24 +05:30
Andrei-Liviu Simion
7e11d30a1a dp: rx: mst: Format down reply for ENUMERATE_PATH_RESOURCES down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:23 +05:30
Andrei-Liviu Simion
89d29bdaac dp: rx: mst: Set PBN values for each connected downstream port.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:23 +05:30
Andrei-Liviu Simion
80effc4ccf dp: rx: mst: Allocate virtual channel payload table in software and hardware.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:22 +05:30
Andrei-Liviu Simion
d06049f75b dp: rx: mst: Format down reply message for LINK_ADDRESS down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:22 +05:30
Andrei-Liviu Simion
fdd7c23ebb dp: rx: mst: Format down reply message for REMOTE_I2C_READ down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:21 +05:30
Andrei-Liviu Simion
72069d67a0 dp: rx: mst: Format down reply message for REMOTE_DPCD_READ down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:21 +05:30
Andrei-Liviu Simion
5d1f504961 dp: rx: mst: Format down reply for ALLOCATE_ and CLEAR_PAYLOAD down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:20 +05:30
Andrei-Liviu Simion
9ba2fb9a30 dp: rx: mst: Set number of ports in link address struct when exposing a port.
Previously, the number of ports was only being set when setting an input port.
If there are multiple input ports, the number of ports wasn't being accurately
reflected.

The user application was required to update the number of ports when setting a
downstream port.
This is now done within the driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:19 +05:30
Andrei-Liviu Simion
f8a61f7c7b dp: rx: mst: Keep the internal port number the same as the index.
When setting the configuration of a port, always keep the port number of the
port structure to the same value as the index of the structure's index in the
port structure array.

This simplifies functions that operate on the port structure since they don't
need to search each port structure in the array for the port number, the port
number is known from the index.

Note: The existence of the port number member in the port structure is required
since the TX populates this structure when receiving LINK_ADDRESS sideband
messages.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:18 +05:30
Andrei-Liviu Simion
0fd3fc6d54 dp: rx: mst: Added ability to set an I2C map for each port.
The "I2C map" terminology is used to refer to a set of I2C entries for a given
port. Each I2C entry contains an I2C address associated with that entry,
alongside a user-defined data structure which is to be pointed to.

This is the mechanism for which the driver allows the RX application to control
what data to be sent for a given I2C address when a REMOTE_I2C_READ is issued
by an upstream device.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:17 +05:30
Andrei-Liviu Simion
745530d3e2 dp: rx: mst: Add ability to set port information in the RX downstream topology.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:16 +05:30
Andrei-Liviu Simion
b12d4c0570 dp: rx: mst: Added ability to expose or hide a specific port from the TX.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:16 +05:30
Andrei-Liviu Simion
201d9e148a dp: mst: Renamed link address related structures to reflect RX/TX commonality.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:15 +05:30
Andrei-Liviu Simion
2147c179cf dp: mst: Removed unneeded data from the link address reply structure.
- ReplyType: The driver already checks for NACK elsewhere.
- RequestId: The link address reply will always carry the LINK_ADDRESS tag.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:14 +05:30
Andrei-Liviu Simion
2a2726b7a9 dp: mst: Fixed XDp_SendSbMsgFragment comment to reflect new TX/RX commonality.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:13 +05:30
Andrei-Liviu Simion
3f2598ff25 dp: rx: mst: Functionality to break a sideband message into multiple fragments.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:13 +05:30
Andrei-Liviu Simion
8f1e0f1d99 dp: mst: Renamed CRC functions to indicate commonality between RX and TX cases.
Both RX and TX cases use the CRC functions so having *Tx* in the function name
is incorrect.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:12 +05:30
Andrei-Liviu Simion
4f870ba9da dp: mst: Modified body CRC calculation to handle fragmented sideband messages.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:12 +05:30
Andrei-Liviu Simion
d18040e44d dp: mst: Modified XDp_SendSbMsgFragment to handle both RX and TX cases.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:11 +05:30
Andrei-Liviu Simion
6f95aee007 dp: mst: Renamed sending a sideband message to reflect RX and TX commonalities.
Both RX and TX use XDp_SendSbMsgFragment as a base layer for sending messages.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:11 +05:30
Andrei-Liviu Simion
05ab36ac68 dp: mst: Updated the sideband message body structure for larger messages.
Larger messages will need to be split into multiple fragments.
- The MsgData member carries all information.
- The FragmentNum member indicates the last fragment processed.
- The header reflects the latest fragment.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:10 +05:30
Andrei-Liviu Simion
c2b18c9244 dp: rx: mst: Add support to write down reply in response to a sideband message.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:10 +05:30
Andrei-Liviu Simion
cf7f6f2126 dp: mst: Both RX and TX use the transaction to message format helper function.
Changed naming to reflect commonality.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:09 +05:30
Andrei-Liviu Simion
903d859429 dp: New version v2.0.
Copied v1.0 directory to v2.0.

Deprecated version 1.0.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:00 +05:30