Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: bzwx: Add support for Chengdu BeiZhongWangXin Technology N5/N6 S… #359

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

Avenger-285714
Copy link
Collaborator

…eries Network Card

This NIC driver supports the following features:
*Supports IP/TCP/UDP/SCTP checksum offload.
Support TSO, LRO segments and segments.
Support RSS, support to modify the number of queues,
Ring Buffer and Hash Key of RSS. Support packet Hash to multi-queue.
Support VLAN offloading, stripping, and filtering.
Support VXLAN, GENEVE, NVGRE tunnel offloading.
Support virtualization, SRIOV virtualization for 64 VF.
Support link awareness, CPU offloading, RSS, QoS for VF.
Supports Port VLAN, VLAN sub interfaces, and QinQ for VF.
VXLAN, GENEVE, and NVGRE offloading support for VF.
Support VF to deploy VM in KVM (VEB, Private, VEPA, Direct).
Support network isolation and address reuse for VF.
Supports Openstack and Kubernetes cloud environments.

Link: https://portrait.gitee.com/openeuler/kernel/pulls/5752
Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/139

…eries Network Card

This NIC driver supports the following features:
 *Supports IP/TCP/UDP/SCTP checksum offload.
  Support TSO, LRO segments and segments.
  Support RSS, support to modify the number of queues,
Ring Buffer and Hash Key of RSS. Support packet Hash to multi-queue.
  Support VLAN offloading, stripping, and filtering.
  Support VXLAN, GENEVE, NVGRE tunnel offloading.
  Support virtualization, SRIOV virtualization for 64 VF.
  Support link awareness, CPU offloading, RSS, QoS for VF.
  Supports Port VLAN, VLAN sub interfaces, and QinQ for VF.
  VXLAN, GENEVE, and NVGRE offloading support for VF.
  Support VF to deploy VM in KVM (VEB, Private, VEPA, Direct).
  Support network isolation and address reuse for VF.
  Supports Openstack and Kubernetes cloud environments.

Link: https://portrait.gitee.com/openeuler/kernel/pulls/5752
Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/139
Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
@Avenger-285714 Avenger-285714 self-assigned this Aug 12, 2024
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tsic404 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Avenger-285714 Avenger-285714 requested a review from opsiff August 12, 2024 03:42
…/N6 Network Card drivers

Enable bzwx for x86.

Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
…N5/N6 Network Card drivers

Enable bzwx for arm64.

Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
…Xin N5/N6 Network Card drivers

Enable bzwx for Loongarch64.

Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
@deepin-ci-robot
Copy link

deepin pr auto review

ne6xvf: Fix virtchnl_completion for VF_CONFIG

  • This patch fixes the issue with the virtchnl_completion function
    not properly handling VF_CONFIG opcodes. The issue was caused
    by the opcode not being properly set in the adapter structure.
    This patch fixes the issue by setting the correct opcode in the
    adapter structure.

Change-Id: I3750844455f709e5645ef9a8d169a2d31479930
Signed-off-by: Wei-Chih Lin 6d8f78145e19411a8710c0e8e5c03347@linuxfoundation.org
Signed-off-by: Jian-Hua Xie 93b16046563e5a558794a9f04b37554394499f7@linuxfoundation.org

@Avenger-285714 Avenger-285714 merged commit 66777fc into deepin-community:linux-6.6.y Aug 13, 2024
3 of 6 checks passed
@Avenger-285714 Avenger-285714 deleted the bzwx branch August 13, 2024 03:16
Avenger-285714 pushed a commit to Avenger-285714/DeepinKernel that referenced this pull request Nov 11, 2024
[ Upstream commit 25f00a13dccf8e45441265768de46c8bf58e08f6 ]

Add check for the return value of spi_get_csgpiod() to avoid passing a NULL
pointer to gpiod_direction_output(), preventing a crash when GPIO chip
select is not used.

Fix below crash:
[    4.251960] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[    4.260762] Mem abort info:
[    4.263556]   ESR = 0x0000000096000004
[    4.267308]   EC = 0x25: DABT (current EL), IL = 32 bits
[    4.272624]   SET = 0, FnV = 0
[    4.275681]   EA = 0, S1PTW = 0
[    4.278822]   FSC = 0x04: level 0 translation fault
[    4.283704] Data abort info:
[    4.286583]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    4.292074]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    4.297130]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    4.302445] [0000000000000000] user address but active_mm is swapper
[    4.308805] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    4.315072] Modules linked in:
[    4.318124] CPU: 2 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.0-rc4-next-20241023-00008-ga20ec42c5fc1 deepin-community#359
[    4.328130] Hardware name: LS1046A QDS Board (DT)
[    4.332832] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    4.339794] pc : gpiod_direction_output+0x34/0x5c
[    4.344505] lr : gpiod_direction_output+0x18/0x5c
[    4.349208] sp : ffff80008003b8f0
[    4.352517] x29: ffff80008003b8f0 x28: 0000000000000000 x27: ffffc96bcc7e9068
[    4.359659] x26: ffffc96bcc6e00b0 x25: ffffc96bcc598398 x24: ffff447400132810
[    4.366800] x23: 0000000000000000 x22: 0000000011e1a300 x21: 0000000000020002
[    4.373940] x20: 0000000000000000 x19: 0000000000000000 x18: ffffffffffffffff
[    4.381081] x17: ffff44740016e600 x16: 0000000500000003 x15: 0000000000000007
[    4.388221] x14: 0000000000989680 x13: 0000000000020000 x12: 000000000000001e
[    4.395362] x11: 0044b82fa09b5a53 x10: 0000000000000019 x9 : 0000000000000008
[    4.402502] x8 : 0000000000000002 x7 : 0000000000000007 x6 : 0000000000000000
[    4.409641] x5 : 0000000000000200 x4 : 0000000002000000 x3 : 0000000000000000
[    4.416781] x2 : 0000000000022202 x1 : 0000000000000000 x0 : 0000000000000000
[    4.423921] Call trace:
[    4.426362]  gpiod_direction_output+0x34/0x5c (P)
[    4.431067]  gpiod_direction_output+0x18/0x5c (L)
[    4.435771]  dspi_setup+0x220/0x334

Fixes: 9e264f3 ("spi: Replace all spi->chip_select and spi->cs_gpiod references with function call")
Cc: stable@vger.kernel.org
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20241023203032.1388491-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Avenger-285714 pushed a commit that referenced this pull request Nov 11, 2024
[ Upstream commit 25f00a13dccf8e45441265768de46c8bf58e08f6 ]

Add check for the return value of spi_get_csgpiod() to avoid passing a NULL
pointer to gpiod_direction_output(), preventing a crash when GPIO chip
select is not used.

Fix below crash:
[    4.251960] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[    4.260762] Mem abort info:
[    4.263556]   ESR = 0x0000000096000004
[    4.267308]   EC = 0x25: DABT (current EL), IL = 32 bits
[    4.272624]   SET = 0, FnV = 0
[    4.275681]   EA = 0, S1PTW = 0
[    4.278822]   FSC = 0x04: level 0 translation fault
[    4.283704] Data abort info:
[    4.286583]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    4.292074]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    4.297130]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    4.302445] [0000000000000000] user address but active_mm is swapper
[    4.308805] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    4.315072] Modules linked in:
[    4.318124] CPU: 2 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.0-rc4-next-20241023-00008-ga20ec42c5fc1 #359
[    4.328130] Hardware name: LS1046A QDS Board (DT)
[    4.332832] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    4.339794] pc : gpiod_direction_output+0x34/0x5c
[    4.344505] lr : gpiod_direction_output+0x18/0x5c
[    4.349208] sp : ffff80008003b8f0
[    4.352517] x29: ffff80008003b8f0 x28: 0000000000000000 x27: ffffc96bcc7e9068
[    4.359659] x26: ffffc96bcc6e00b0 x25: ffffc96bcc598398 x24: ffff447400132810
[    4.366800] x23: 0000000000000000 x22: 0000000011e1a300 x21: 0000000000020002
[    4.373940] x20: 0000000000000000 x19: 0000000000000000 x18: ffffffffffffffff
[    4.381081] x17: ffff44740016e600 x16: 0000000500000003 x15: 0000000000000007
[    4.388221] x14: 0000000000989680 x13: 0000000000020000 x12: 000000000000001e
[    4.395362] x11: 0044b82fa09b5a53 x10: 0000000000000019 x9 : 0000000000000008
[    4.402502] x8 : 0000000000000002 x7 : 0000000000000007 x6 : 0000000000000000
[    4.409641] x5 : 0000000000000200 x4 : 0000000002000000 x3 : 0000000000000000
[    4.416781] x2 : 0000000000022202 x1 : 0000000000000000 x0 : 0000000000000000
[    4.423921] Call trace:
[    4.426362]  gpiod_direction_output+0x34/0x5c (P)
[    4.431067]  gpiod_direction_output+0x18/0x5c (L)
[    4.435771]  dspi_setup+0x220/0x334

Fixes: 9e264f3 ("spi: Replace all spi->chip_select and spi->cs_gpiod references with function call")
Cc: stable@vger.kernel.org
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20241023203032.1388491-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Avenger-285714 added a commit to KernelSIG-cn/Linux-LTS-CN-6.6-dev that referenced this pull request Dec 29, 2024
…eries Network Card

This NIC driver supports the following features:
 *Supports IP/TCP/UDP/SCTP checksum offload.
  Support TSO, LRO segments and segments.
  Support RSS, support to modify the number of queues,
Ring Buffer and Hash Key of RSS. Support packet Hash to multi-queue.
  Support VLAN offloading, stripping, and filtering.
  Support VXLAN, GENEVE, NVGRE tunnel offloading.
  Support virtualization, SRIOV virtualization for 64 VF.
  Support link awareness, CPU offloading, RSS, QoS for VF.
  Supports Port VLAN, VLAN sub interfaces, and QinQ for VF.
  VXLAN, GENEVE, and NVGRE offloading support for VF.
  Support VF to deploy VM in KVM (VEB, Private, VEPA, Direct).
  Support network isolation and address reuse for VF.
  Supports Openstack and Kubernetes cloud environments.

Link: https://portrait.gitee.com/openeuler/kernel/pulls/5752
Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/139
Link: deepin-community/kernel#359
Link: deepin-community/kernel#497
Co-developed-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Co-developed-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Co-developed-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Avenger-285714 added a commit to KernelSIG-cn/Linux-LTS-CN-6.6-dev that referenced this pull request Jan 4, 2025
…eries Network Card

This NIC driver supports the following features:
 *Supports IP/TCP/UDP/SCTP checksum offload.
  Support TSO, LRO segments and segments.
  Support RSS, support to modify the number of queues,
Ring Buffer and Hash Key of RSS. Support packet Hash to multi-queue.
  Support VLAN offloading, stripping, and filtering.
  Support VXLAN, GENEVE, NVGRE tunnel offloading.
  Support virtualization, SRIOV virtualization for 64 VF.
  Support link awareness, CPU offloading, RSS, QoS for VF.
  Supports Port VLAN, VLAN sub interfaces, and QinQ for VF.
  VXLAN, GENEVE, and NVGRE offloading support for VF.
  Support VF to deploy VM in KVM (VEB, Private, VEPA, Direct).
  Support network isolation and address reuse for VF.
  Supports Openstack and Kubernetes cloud environments.

Link: https://portrait.gitee.com/openeuler/kernel/pulls/5752
Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/139
Link: deepin-community/kernel#359
Link: deepin-community/kernel#497
Co-developed-by: Hui Li <xiaohuihui@bzwx-kj.com>
Signed-off-by: Hui Li <xiaohuihui@bzwx-kj.com>
Co-developed-by: Hongyi Du <duhongyi@bzwx-kj.com>
Signed-off-by: Hongyi Du <duhongyi@bzwx-kj.com>
Co-developed-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: Xiaojun Zhao <xiaojun@bzwx-kj.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants