staging/rdma/hfi1: set Gen 3 half-swing for integrated devices.
Subsystems (2)
v5 cover staging/rdma/hfi1: set Gen 3 half-swing for integrated devices.
From: Ira Weiny <[email protected]>
This was a single patch before. The change to dev_dbg required a precursor patch to add the dd_dev_dbg which is consistent with the other dev_* macros which automatically use struct hfi1_devdata.
Changes from V4:
Fix build error which arose from other patches being accepted on the list before this one.
Dean Luick (1):
staging/rdma/hfi1: set Gen3 half-swing for integrated devices
Ira Weiny (1):
staging/rdma/hfi1: add dd_dev_dbg
drivers/staging/rdma/hfi1/chip_registers.h | 11 ++++ drivers/staging/rdma/hfi1/hfi.h | 4 ++ drivers/staging/rdma/hfi1/pcie.c | 82 ++++++++++++++++++++++++++++-- 3 files changed, 93 insertions(+), 4 deletions(-)
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1450747913-27399-1-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
PATCH v5 1/2 staging/rdma/hfi1: add dd_dev_dbg
From: Ira Weiny <[email protected]>
To be used in future patches add dd_dev_dbg. dd_* functions properly decode the hfi1_devdata structure used throughout the driver
--- drivers/staging/rdma/hfi1/hfi.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/staging/rdma/hfi1/hfi.h +4 -0
@@ -1804,6 +1804,10 @@ static inline u64 hfi1_pkt_base_sdma_integrity(struct hfi1_devdata *dd)dev_info (&(dd)->pcidev->dev,"%s: " fmt, \ get_unit_name((dd)->unit), ##__VA_ARGS__) +#define dd_dev_dbg (dd, fmt, ...) \ + dev_dbg(&(dd)->pcidev->dev, "%s: " fmt, \ + get_unit_name((dd)->unit), ##__VA_ARGS__) +#define hfi1_dev_porterr (dd, port, fmt, ...) \ dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \ get_unit_name((dd)->unit), (dd)->unit, (port), \
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v5 2/2 staging/rdma/hfi1: set Gen3 half-swing for integrated devices
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
Correctly set half-swing for integrated devices. A0 needs all fields set for CcePcieCtrl. B0 and later only need a few fields set.
---
Changes from V1:
Add comments concerning the very long names.
Changes from V2:
Remove PC Macro and define short names to be used in the code.
Changes from V3:
Use newly defined dd_dev_dbg rather than dd_dev_info
Changes from V4:
Fix build error which arose from other patches being accepted on the list before this one.
drivers/staging/rdma/hfi1/chip_registers.h | 11 ++++ drivers/staging/rdma/hfi1/pcie.c | 82 ++++++++++++++++++++++++++++-- 2 files changed, 89 insertions(+), 4 deletions(-)
drivers/staging/rdma/hfi1/chip_registers.h +11 -0
@@ -551,6 +551,17 @@#define CCE_MSIX_TABLE_UPPER (CCE + 0x000000100008)#define CCE_MSIX_TABLE_UPPER_RESETCSR 0x0000000100000000ull#define CCE_MSIX_VEC_CLR_WITHOUT_INT (CCE + 0x000000110400) +#define CCE_PCIE_CTRL (CCE + 0x0000000000C0) +#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_MASK 0x3ull +#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_SHIFT 0 +#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_MASK 0xFull +#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_SHIFT 2 +#define CCE_PCIE_CTRL_XMT_MARGIN_OVERWRITE_ENABLE_SHIFT 8 +#define CCE_PCIE_CTRL_XMT_MARGIN_SHIFT 9 +#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_MASK 0x1ull +#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_SHIFT 12 +#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_MASK 0x7ull +#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_SHIFT 13#define CCE_REVISION (CCE + 0x000000000000)#define CCE_REVISION2 (CCE + 0x000000000008)#define CCE_REVISION2_HFI_ID_MASK 0x1ull
drivers/staging/rdma/hfi1/pcie.c +78 -4
95 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html