automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw125772 [PATCH v2] net/idpf: add VF support
       [not found] <20230404124937.72970-1-beilei.xing@intel.com>
@ 2023-04-04 13:00 ` qemudev
  2023-04-04 13:12 ` |SUCCESS| " checkpatch
  1 sibling, 0 replies; 3+ messages in thread
From: qemudev @ 2023-04-04 13:00 UTC (permalink / raw)
  To: test-report; +Cc: beilei.xing, zhoumin

Test-Label: loongarch-compilation
Test-Status: WARNING
http://dpdk.org/patch/125772

_apply patch failure_

Submitter: Xing, Beilei <beilei.xing@intel.com>
Date: Tue,  4 Apr 2023 12:49:37 +0000
DPDK git baseline: Repo:dpdk-next-net-intel
  Branch: main
  CommitID: 3bc3d9f9f3df2e22c3958d1a3dac68ce2d708b33

Apply patch set 125772 failed:

Checking patch drivers/net/idpf/idpf_ethdev.c...
error: while searching for:
	rte_eal_alarm_set(IDPF_ALARM_INTERVAL, idpf_dev_alarm_handler, adapter);
}

static struct idpf_ctlq_create_info idpf_ctlq_info[IDPF_CTLQ_NUM] = {
	{
		.type = IDPF_CTLQ_TYPE_MAILBOX_TX,

error: patch failed: drivers/net/idpf/idpf_ethdev.c:1128
error: drivers/net/idpf/idpf_ethdev.c: patch does not apply
Checking patch drivers/net/idpf/idpf_ethdev.h...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* |SUCCESS| pw125772 [PATCH v2] net/idpf: add VF support
       [not found] <20230404124937.72970-1-beilei.xing@intel.com>
  2023-04-04 13:00 ` |WARNING| pw125772 [PATCH v2] net/idpf: add VF support qemudev
@ 2023-04-04 13:12 ` checkpatch
  1 sibling, 0 replies; 3+ messages in thread
From: checkpatch @ 2023-04-04 13:12 UTC (permalink / raw)
  To: test-report

Test-Label: checkpatch
Test-Status: SUCCESS
http://dpdk.org/patch/125772

_coding style OK_



^ permalink raw reply	[flat|nested] 3+ messages in thread

* |WARNING| pw125772 [PATCH] [v2] net/idpf: add VF support
@ 2023-04-04 13:33 dpdklab
  0 siblings, 0 replies; 3+ messages in thread
From: dpdklab @ 2023-04-04 13:33 UTC (permalink / raw)
  To: test-report; +Cc: dpdk-test-reports

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/125772

_apply patch failure_

Submitter: Xing, Beilei <beilei.xing@intel.com>
Date: Tuesday, April 04 2023 12:49:37 
Applied on: CommitID:c682c8991963be243dcc3b7cdc9d6984a1961f4e
Apply patch set 125772 failed:

Checking patch drivers/net/idpf/idpf_ethdev.c...
error: while searching for:
	rte_eal_alarm_set(IDPF_ALARM_INTERVAL, idpf_dev_alarm_handler, adapter);
}

static struct idpf_ctlq_create_info idpf_ctlq_info[IDPF_CTLQ_NUM] = {
	{
		.type = IDPF_CTLQ_TYPE_MAILBOX_TX,

error: patch failed: drivers/net/idpf/idpf_ethdev.c:1128
error: while searching for:
	.other_caps = VIRTCHNL2_CAP_WB_ON_ITR
};

static int
idpf_adapter_ext_init(struct rte_pci_device *pci_dev, struct idpf_adapter_ext *adapter)
{

error: patch failed: drivers/net/idpf/idpf_ethdev.c:1201
error: while searching for:

	strncpy(adapter->name, pci_dev->device.name, PCI_PRI_STR_SIZE);

	idpf_hw_pf_reset(hw);
	ret = idpf_hw_pf_reset_check(hw);
	if (ret != 0) {
		PMD_INIT_LOG(ERR, "PF is still resetting");
		goto err_reset_check;
	}

	ret = idpf_hw_mbx_init(hw, idpf_ctlq_info);
	if (ret != 0) {
		PMD_INIT_LOG(ERR, "Failed to init mailbox");
		goto err_reset_check;
	}

	rte_memcpy(&base->caps, &req_caps, sizeof(struct virtchnl2_get_capabilities));

error: patch failed: drivers/net/idpf/idpf_ethdev.c:1217
Hunk #5 succeeded at 1280 (offset -157 lines).
Checking patch drivers/net/idpf/idpf_ethdev.h...
Applying patch drivers/net/idpf/idpf_ethdev.c with 3 rejects...
Hunk #1 applied cleanly.
Rejected hunk #2.
Rejected hunk #3.
Rejected hunk #4.
Hunk #5 applied cleanly.
Applied patch drivers/net/idpf/idpf_ethdev.h cleanly.
hint: Use 'git am --show-current-patch' to see the failed patch
diff a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c	(rejected hunks)
@@ -1128,6 +1129,23 @@ idpf_dev_alarm_handler(void *param)
 	rte_eal_alarm_set(IDPF_ALARM_INTERVAL, idpf_dev_alarm_handler, adapter);
 }
 
+static int
+idpf_hw_vf_reset_check(struct idpf_hw *hw)
+{
+	uint32_t reg;
+	int i;
+
+	for (i = 0; i < IDPF_RESET_WAIT_CNT; i++) {
+		reg = IDPF_READ_REG(hw, VFGEN_RSTAT);
+		if (reg != 0xFFFFFFFF && (reg & VFGEN_RSTAT_VFR_STATE_M))
+			return 0;
+		rte_delay_ms(1000);
+	}
+
+	PMD_INIT_LOG(ERR, "VF reset timeout");
+	return -EBUSY;
+}
+
 static struct idpf_ctlq_create_info idpf_ctlq_info[IDPF_CTLQ_NUM] = {
 	{
 		.type = IDPF_CTLQ_TYPE_MAILBOX_TX,
@@ -1201,6 +1219,41 @@ static struct virtchnl2_get_capabilities req_caps = {
 	.other_caps = VIRTCHNL2_CAP_WB_ON_ITR
 };
 
+struct idpf_ctlq_create_info vf_ctlq_info[IDPF_CTLQ_NUM] = {
+	{
+		.type = IDPF_CTLQ_TYPE_MAILBOX_TX,
+		.id = IDPF_CTLQ_ID,
+		.len = IDPF_CTLQ_LEN,
+		.buf_size = IDPF_DFLT_MBX_BUF_SIZE,
+		.reg = {
+			.head = VF_ATQH,
+			.tail = VF_ATQT,
+			.len = VF_ATQLEN,
+			.bah = VF_ATQBAH,
+			.bal = VF_ATQBAL,
+			.len_mask = VF_ATQLEN_ATQLEN_M,
+			.len_ena_mask = VF_ATQLEN_ATQENABLE_M,
+			.head_mask = VF_ATQH_ATQH_M,
+		}
+	},
+	{
+		.type = IDPF_CTLQ_TYPE_MAILBOX_RX,
+		.id = IDPF_CTLQ_ID,
+		.len = IDPF_CTLQ_LEN,
+		.buf_size = IDPF_DFLT_MBX_BUF_SIZE,
+		.reg = {
+			.head = VF_ARQH,
+			.tail = VF_ARQT,
+			.len = VF_ARQLEN,
+			.bah = VF_ARQBAH,
+			.bal = VF_ARQBAL,
+			.len_mask = VF_ARQLEN_ARQLEN_M,
+			.len_ena_mask = VF_ARQLEN_ARQENABLE_M,
+			.head_mask = VF_ARQH_ARQH_M,
+		}
+	}
+};
+
 static int
 idpf_adapter_ext_init(struct rte_pci_device *pci_dev, struct idpf_adapter_ext *adapter)
 {
@@ -1217,17 +1270,32 @@ idpf_adapter_ext_init(struct rte_pci_device *pci_dev, struct idpf_adapter_ext *a
 
 	strncpy(adapter->name, pci_dev->device.name, PCI_PRI_STR_SIZE);
 
-	idpf_hw_pf_reset(hw);
-	ret = idpf_hw_pf_reset_check(hw);
-	if (ret != 0) {
-		PMD_INIT_LOG(ERR, "PF is still resetting");
-		goto err_reset_check;
-	}
+	if (hw->device_id == IDPF_DEV_ID_PF) {
+		idpf_hw_pf_reset(hw);
+		ret = idpf_hw_pf_reset_check(hw);
+		if (ret != 0) {
+			PMD_INIT_LOG(ERR, "PF is still resetting");
+			goto err_reset_check;
+		}
+
+		ret = idpf_hw_mbx_init(hw, idpf_ctlq_info);
+		if (ret != 0) {
+			PMD_INIT_LOG(ERR, "Failed to init mailbox");
+			goto err_reset_check;
+		}
+	} else if (hw->device_id == IDPF_DEV_ID_VF) {
+		ret = idpf_hw_vf_reset_check(hw);
+		if (ret != 0) {
+			PMD_INIT_LOG(ERR, "VF is still resetting");
+			goto err_reset_check;
+		}
+
+		ret = idpf_hw_mbx_init(hw, vf_ctlq_info);
+		if (ret != 0) {
+			PMD_INIT_LOG(ERR, "Failed to init mailbox");
+			goto err_reset_check;
+		}
 
-	ret = idpf_hw_mbx_init(hw, idpf_ctlq_info);
-	if (ret != 0) {
-		PMD_INIT_LOG(ERR, "Failed to init mailbox");
-		goto err_reset_check;
 	}
 
 	rte_memcpy(&base->caps, &req_caps, sizeof(struct virtchnl2_get_capabilities));

https://lab.dpdk.org/results/dashboard/patchsets/25918/

UNH-IOL DPDK Community Lab

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-04 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230404124937.72970-1-beilei.xing@intel.com>
2023-04-04 13:00 ` |WARNING| pw125772 [PATCH v2] net/idpf: add VF support qemudev
2023-04-04 13:12 ` |SUCCESS| " checkpatch
2023-04-04 13:33 |WARNING| pw125772 [PATCH] [v2] " dpdklab

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).