Commit 592780b
committed
cxl: Fix retrieving of access_coordinates in PCIe path
Current loop in cxl_endpoint_get_perf_coordinates() incorrectly assumes
the Root Port (RP) dport is the one with generic port access_coordinate.
However those coordinates are one level up in the Host Bridge (HB).
Current code causes the computation code to pick up 0s as the coordinates
and cause minimal bandwidth to result in 0.
Add check to skip RP when combining coordinates.
Fixes: 14a6960 ("cxl: Add helper function that calculate performance data for downstream ports")
Reported-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20240403154844.3403859-3-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>1 parent 648dae5 commit 592780b
1 file changed
Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2165 | 2165 | | |
2166 | 2166 | | |
2167 | 2167 | | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2168 | 2173 | | |
2169 | 2174 | | |
2170 | 2175 | | |
| |||
2184 | 2189 | | |
2185 | 2190 | | |
2186 | 2191 | | |
| 2192 | + | |
2187 | 2193 | | |
2188 | 2194 | | |
2189 | 2195 | | |
2190 | 2196 | | |
2191 | | - | |
2192 | | - | |
2193 | 2197 | | |
2194 | | - | |
2195 | | - | |
2196 | | - | |
2197 | | - | |
2198 | | - | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
2199 | 2202 | | |
2200 | | - | |
2201 | | - | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
2202 | 2214 | | |
2203 | 2215 | | |
2204 | | - | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
| 2216 | + | |
2208 | 2217 | | |
2209 | 2218 | | |
2210 | 2219 | | |
| |||
0 commit comments