WARNING: line length of 94 exceeds 80 columns #111: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:13: +static void req_qpc_init(struct gaudi2_qpc_requester *req_qpc, unsigned int mtu, int last_idx, WARNING: line length of 96 exceeds 80 columns #126: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:28: + /* Due to a HW bug, backpressure is indicated on the ETH QP after some time. In order to WARNING: line length of 96 exceeds 80 columns #127: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:29: + * avoid the BP message being sent, set the QP as backpressured to begin with. This will WARNING: line length of 84 exceeds 80 columns #128: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:30: + * have no further impact, as the BP mechanism is associated with RDMA only. WARNING: line length of 91 exceeds 80 columns #133: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:35: +static void res_qpc_init(struct gaudi2_qpc_responder *res_qpc, u32 raw_qpn, u32 schedq_num, WARNING: line length of 95 exceeds 80 columns #145: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:47: +static int gaudi2_en_read_pkt_from_hw(struct hbl_en_port *port, void **pkt_addr, u32 *pkt_size) WARNING: line length of 93 exceeds 80 columns #178: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:80: + dev_warn_ratelimited(hdev->dev, "Port-%d got invalid CQE on CQ\n", port_idx); WARNING: line length of 97 exceeds 80 columns #188: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:90: + /* Since CQE is valid, SW must consume it, even if packet would eventually be dropped. */ WARNING: line length of 92 exceeds 80 columns #249: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:151: + /* The trigger happens only when PI > IDX, therefore subtract 1 from arming index */ WARNING: line length of 93 exceeds 80 columns #251: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:153: + gaudi2_port->cq_ring->ci_shadow + port->rx_max_coalesced_frames - 1); WARNING: line length of 97 exceeds 80 columns #298: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:200: + /* Need to configure the log of the MTU value minus 1KB as this is the minimum valid MTU. WARNING: line length of 86 exceeds 80 columns #306: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:208: + rc = aux_ops->eq_dispatcher_unregister_qp(aux_dev, port_idx, raw_qpn); WARNING: line length of 91 exceeds 80 columns #313: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:215: + rc = aux_ops->qpc_write(aux_dev, port_idx, &req_qpc, &mask, raw_qpn, true); WARNING: line length of 87 exceeds 80 columns #315: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:217: + netdev_err(ndev, "Failed to configure requester QP, %d\n", rc); WARNING: line length of 92 exceeds 80 columns #321: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:223: + rc = aux_ops->qpc_write(aux_dev, port_idx, &res_qpc, &mask, raw_qpn, false); WARNING: line length of 87 exceeds 80 columns #323: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:225: + netdev_err(ndev, "Failed to configure responder QP, %d\n", rc); WARNING: line length of 83 exceeds 80 columns #330: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:232: + rc = aux_ops->qpc_write(aux_dev, port_idx, &res_qpc, NULL, raw_qpn, false); WARNING: line length of 82 exceeds 80 columns #338: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:240: + rc = aux_ops->qpc_write(aux_dev, port_idx, &req_qpc, NULL, raw_qpn, true); WARNING: line length of 99 exceeds 80 columns #344: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:246: + rc = aux_ops->eq_dispatcher_register_qp(aux_dev, port_idx, aux_data->kernel_asid, raw_qpn); WARNING: line length of 91 exceeds 80 columns #363: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:265: +static void gaudi2_en_tx_done(struct gaudi2_en_port *gaudi2_port, struct hbl_cn_eqe *eqe_p) WARNING: line length of 97 exceeds 80 columns #382: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:284: + netdev_warn(ndev, "tx-done: port %d got wrong QP (%d vs %d); ignoring", port_idx, WARNING: line length of 98 exceeds 80 columns #389: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:291: + port_idx, EQE_RAW_TX_EVENT_IDX(eqe_p), asic_aux_data->tx_ring_len - 1); WARNING: line length of 98 exceeds 80 columns #395: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:297: + /* Here we need to acquire the Tx lock (which is acquired also by the Tx handler) in order WARNING: line length of 97 exceeds 80 columns #396: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:298: + * to prevent races when accessing to the Tx buffer and stopping/waking the netdev queue. WARNING: line length of 96 exceeds 80 columns #400: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:302: + /* Check if the index we got is in the current data bounds (indicated by the CI and PI). WARNING: line length of 93 exceeds 80 columns #406: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:308: + if (CIRC_CNT(previous_pi, EQE_RAW_TX_EVENT_IDX(eqe_p), asic_aux_data->tx_ring_len) >= WARNING: line length of 84 exceeds 80 columns #407: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:309: + CIRC_CNT(pi, gaudi2_port->tx_buf_info_ci, asic_aux_data->tx_ring_len)) { WARNING: line length of 87 exceeds 80 columns #421: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:323: + port_idx, gaudi2_port->tx_buf_info_ci, pi, WARNING: line length of 93 exceeds 80 columns #431: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:333: + (gaudi2_port->tx_buf_info_ci + 1) & (asic_aux_data->tx_ring_len - 1); WARNING: line length of 97 exceeds 80 columns #434: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:336: + /* No need to check for fifo space because if queue was stopped then fifo has room by now WARNING: line length of 95 exceeds 80 columns #435: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:337: + * as it cleaned within a device cycle. In addition, wake the queue only if link is UP. WARNING: line length of 99 exceeds 80 columns #454: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:356: +static void gaudi2_en_handle_eqe(struct hbl_aux_dev *aux_dev, u32 port_idx, struct hbl_cn_eqe *eqe) WARNING: line length of 94 exceeds 80 columns #468: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:370: + dev_warn_ratelimited(hdev->dev, "Port-%d got invalid EQE on EQ!\n", port_idx); WARNING: line length of 95 exceeds 80 columns #475: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:377: + port_idx, EQE_CQ_EVENT_CQ_NUM(eqe), EQE_CQ_EVENT_PI(eqe)); WARNING: line length of 93 exceeds 80 columns #478: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:380: + /* CQ is configured to generate BP on such cases hence we just need to handle WARNING: line length of 99 exceeds 80 columns #484: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:386: + /* napi_schedule() eventually calls __raise_softirq_irqoff() which sets the WARNING: line length of 98 exceeds 80 columns #485: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:387: + * net Rx softirq to run. Since we are in thread context here, the pending WARNING: line length of 99 exceeds 80 columns #486: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:388: + * softirq flag won't be checked and the Rx softirq won't be invoked. Hence WARNING: line length of 82 exceeds 80 columns #487: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:389: + * we need to use the bh_disable/enable pair to invoke it. WARNING: line length of 98 exceeds 80 columns #502: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:404: + dev_err_ratelimited(hdev->dev, "Port-%d qp-err event QP:%d err:%d %s\n", port_idx, WARNING: line length of 90 exceeds 80 columns #503: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:405: + qp, synd, asic_aux_ops->qp_err_syndrome_to_str(synd)); WARNING: line length of 93 exceeds 80 columns #505: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:407: + /* In case of QP error we need to reset the port. We are calling the "locked" WARNING: line length of 89 exceeds 80 columns #506: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:408: + * version of that function since the port->control_lock has been already WARNING: line length of 85 exceeds 80 columns #509: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:411: + dev_err_ratelimited(hdev->dev, "Going to reset port %d\n", port_idx); WARNING: line length of 93 exceeds 80 columns #514: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:416: + dev_warn_ratelimited(hdev->dev, "Port-%d db-fifo overrun event\n", port_idx); WARNING: line length of 95 exceeds 80 columns #519: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:421: + dev_warn_ratelimited(hdev->dev, "Port-%d unsupported event type: %d", port_idx, WARNING: line length of 91 exceeds 80 columns #525: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:427: +static netdev_tx_t gaudi2_en_write_pkt_to_hw(struct hbl_en_port *port, struct sk_buff *skb) WARNING: line length of 96 exceeds 80 columns #553: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:455: + dev_err_ratelimited(hdev->dev, "port %d failed to map DMA address\n", port_idx); WARNING: line length of 94 exceeds 80 columns #561: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:463: + gaudi2_port->tx_buf_info_pi = (tx_buf_info_pi + 1) & (asic_aux_data->tx_ring_len - 1); WARNING: line length of 82 exceeds 80 columns #577: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:479: + CFG_SQ_WQE_SOL_EVENT(wqe_p, (pi % port->tx_max_coalesced_frames) ? 0 : 1); WARNING: line length of 94 exceeds 80 columns #583: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:485: + rc = aux_ops->ring_tx_doorbell(aux_dev, port_idx, wq_ring_pi, &db_fifo_full_after_tx); WARNING: line length of 99 exceeds 80 columns #585: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:487: + /* Fifo is full, revert indices, unmap the skb, stop queue and return the error. */ WARNING: line length of 95 exceeds 80 columns #600: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:502: + space_left_in_qp = CIRC_SPACE(gaudi2_port->tx_buf_info_pi, gaudi2_port->tx_buf_info_ci, WARNING: line length of 82 exceeds 80 columns #603: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:505: + netdev_dbg(ndev, "port: %d stop queue due to full %s\n", port_idx, WARNING: line length of 93 exceeds 80 columns #641: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:543: + /* We would need the CQ-ARM for both polling and NAPI flows. This is because, even in WARNING: line length of 96 exceeds 80 columns #642: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:544: + * polling mode, we would start the Rx Poll only upon the CQ-ARM event triggering the EQ WARNING: line length of 100 exceeds 80 columns #705: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:607: + /* Discard skbs safely from tx_buf as we won't get the tx_done call from the EQ now that the WARNING: line length of 84 exceeds 80 columns #739: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en.c:641: + tx_ring_size = asic_aux_data->tx_ring_len * sizeof(struct gaudi2_en_tx_buf); WARNING: line length of 97 exceeds 80 columns #917: FILE: drivers/net/ethernet/intel/hbl_en/gaudi2/gaudi2_en_dcbnl.c:26: + asic_aux_ops->get_pfc_cnts(aux_dev, port_idx, pfc_prio, &indications, &requests); total: 0 errors, 59 warnings, 0 checks, 842 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 5b4fcf5288a1 ("net: hbl_en: gaudi2: ASIC specific support") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 59 warnings, 0 checks, 842 lines checked