[hns3-0111]sync mainline kernel 5.5rc6 hns3 patchset into ubuntu HWE kernel branch Edit

Bug #1859261 reported by Fred Kimmy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Fix Released
Undecided
Unassigned
Ubuntu-18.04-hwe
Fix Released
Undecided
Ike Panhc
Ubuntu-20.04
Fix Released
Undecided
Ike Panhc
Upstream-kernel
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Undecided
Ike Panhc

Bug Description

[Bug Description]
 hns3 patchset have merged into mainline 5.4rc5 kernel. Pls backport ubuntu 18.04.5 kernel version
[Steps to Reproduce]
  1)
  2)
  3)

[Actual Results]

[Expected Results]

[Reproducibility]

[Additional information]
  (Firmware version, kernel version, affected hardware, etc. if required):

[Resolution]
net: hns3: support tx-scatter-gather-fraglist feature
net: hns3: add support for configuring VF MAC from the host
net: hns3: add support for configuring bandwidth of VF on the host
net: hns3: add support for setting VF trust
net: hns3: add support for spoof check setting
net: hns3: add support for setting VF link status on the host
net: hns3: make array tick_array static, makes object smaller

net: hns3: fix a wrong reset interrupt status mask
net: hns3: cleanup of stray struct hns3_link_mode_mapping
net: hns3: fix ETS bandwidth validation bug
net: hns3: reallocate SSU' buffer size when pfc_en changes
net: hns3: add compatible handling for MAC VLAN switch parameter configuration
net: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE
net: hns3: remove unused macros
net: hns3: Use the correct style for SPDX License Identifier
net: hns3: cleanup byte order issues when printed
net: hns3: cleanup some print format warning
net: hns3: add or modify some comments
net: hns3: optimize local variable initialization
net: hns3: cleanup a format-truncation warning
net: hns3: cleanup some coding style issues
net: hns3: cleanup some magic numbers
net: hns3: add struct netdev_queue debug info for TX timeout
net: hns3: dump some debug information when reset fail
treewide: Use sizeof_member() macro
net: hns3: log and clear hardware error after reset complete
net: hns3: do not allocate linear data for fraglist skb
net: hns3: minor cleanup for hns3_handle_rx_bd()
net: hns3: make struct hns3_enet_ring cacheline aligned
net: hns3: introduce ring_to_netdev() in enet module
net: hns3: minor optimization for barrier in IO path
net: hns3: optimized MAC address in management table.
net: hns3: remove struct hns3_nic_ring_data in hns3_enet module
net: hns3: fix mis-counting IRQ vector numbers issue
  net: hns3: fix VF ID issue for setting VF VLAN
net: hns3: fix a use after free problem in hns3_nic_maybe_stop_tx()
net: hns3: fix for TX queue not restarted problem
 net: hns3: only print misc interrupt status when handling fails
net: hns3: add a log for getting chain failure in hns3_nic_uninit_vector_data()
net: hns3: add some VF VLAN information for command "ip link show"
net: hns3: implement ndo_features_check ops for hns3 driver
net: hns3: get FD rules location before dump in debugfs
net: hns3: optimization for CMDQ uninitialization
net: hns3: remove useless mutex vport_cfg_mutex in the struct hclge_dev
net: hns3: check FE bit before calling hns3_add_frag()
net: hns3: do not schedule the periodic task when reset fail
net: hns3: allocate WQ with WQ_MEM_RECLAIM flag
net: hns3: remove unnecessary work in hclgevf_main
net: hns3: remove mailbox and reset work in hclge_main
net: hns3: schedule hclgevf_service by using delayed workqueue
net: hns3: refactor the notification scheme of PF reset
net: hns3: refactor the procedure of VF FLR
net: hns3: modify hclge_func_reset_sync_vf()'s return type to void
net: hns3: enlarge HCLGE_RESET_WAIT_CNT
net: hns3: refactor the precedure of PF FLR
net: hns3: split hclgevf_reset() into preparing and rebuilding part
net: hns3: split hclge_reset() into preparing and rebuilding part
net: hns3: modify an unsuitable reset level for hardware error
net: hns3: replace an unsuitable variable type in hclge_inform_reset_assert_to_vf()
net: hns3: add protection when get SFP speed as 0
net: hns3: modify the IRQ name of misc vectors
net: hns3: modify an unsuitable log in hclge_map_ring_to_vector()
net: hns3: modify the IRQ name of TQP vector
net: hns3: re-organize vector handle
net: hns3: add trace event support for HNS3 driver

update 0120
net: hns3: pad the short frame before sending to the hardware

[Status]
(Fix committed): net: hns3: support tx-scatter-gather-fraglist feature
(Fix committed): net: hns3: add support for configuring VF MAC from the host
(Fix committed): net: hns3: add support for configuring bandwidth of VF on the host
(Fix committed): net: hns3: add support for setting VF trust
(Fix committed): net: hns3: add support for spoof check setting
(Fix committed): net: hns3: add support for setting VF link status on the host
(Fix committed): net: hns3: make array tick_array static, makes object smaller
(Fix committed): net: hns3: fix a wrong reset interrupt status mask
(Fix committed): net: hns3: cleanup of stray struct hns3_link_mode_mapping
(Fix committed): net: hns3: fix ETS bandwidth validation bug
(Fix committed): net: hns3: reallocate SSU' buffer size when pfc_en changes
(Fix committed): net: hns3: add compatible handling for MAC VLAN switch parameter configuration
(Fix committed): net: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE
(Fix committed): net: hns3: remove unused macros
(Fix committed): net: hns3: Use the correct style for SPDX License Identifier
(Fix committed): net: hns3: cleanup byte order issues when printed
(Fix committed): net: hns3: cleanup some print format warning
(Fix committed): net: hns3: add or modify some comments
(Fix committed): net: hns3: optimize local variable initialization
(Fix committed): net: hns3: cleanup a format-truncation warning
(Fix committed): net: hns3: cleanup some coding style issues
(Fix committed): net: hns3: cleanup some magic numbers
(Fix committed): net: hns3: add struct netdev_queue debug info for TX timeout
(Fix committed): net: hns3: dump some debug information when reset fail
UNKNOWN: treewide: Use sizeof_member() macro
(Fix committed): net: hns3: log and clear hardware error after reset complete
(Fix committed): net: hns3: do not allocate linear data for fraglist skb
(Fix committed): net: hns3: minor cleanup for hns3_handle_rx_bd()
(Fix committed): net: hns3: make struct hns3_enet_ring cacheline aligned
(Fix committed): net: hns3: introduce ring_to_netdev() in enet module
(Fix committed): net: hns3: minor optimization for barrier in IO path
(Fix committed): net: hns3: optimized MAC address in management table.
(Fix committed): net: hns3: remove struct hns3_nic_ring_data in hns3_enet module
(Fix committed): net: hns3: fix mis-counting IRQ vector numbers issue
(Fix committed): net: hns3: fix VF ID issue for setting VF VLAN
(Fix committed): net: hns3: fix a use after free problem in hns3_nic_maybe_stop_tx()
(Fix committed): net: hns3: fix for TX queue not restarted problem
(Fix committed): net: hns3: only print misc interrupt status when handling fails
(Fix committed): net: hns3: add a log for getting chain failure in hns3_nic_uninit_vector_data()
(Fix committed): net: hns3: add some VF VLAN information for command "ip link show"
(Fix committed): net: hns3: implement ndo_features_check ops for hns3 driver
(Fix committed): net: hns3: get FD rules location before dump in debugfs
(Fix committed): net: hns3: optimization for CMDQ uninitialization
(Fix committed): net: hns3: remove useless mutex vport_cfg_mutex in the struct hclge_dev
(Fix committed): net: hns3: check FE bit before calling hns3_add_frag()
(Fix committed): net: hns3: do not schedule the periodic task when reset fail
(Fix committed): net: hns3: allocate WQ with WQ_MEM_RECLAIM flag
(Fix committed): net: hns3: remove unnecessary work in hclgevf_main
(Fix committed): net: hns3: remove mailbox and reset work in hclge_main
(Fix committed): net: hns3: schedule hclgevf_service by using delayed workqueue
(Fix committed): net: hns3: refactor the notification scheme of PF reset
(Fix committed): net: hns3: refactor the procedure of VF FLR
(Fix committed): net: hns3: modify hclge_func_reset_sync_vf()'s return type to void
(Fix committed): net: hns3: enlarge HCLGE_RESET_WAIT_CNT
(Fix committed): net: hns3: refactor the precedure of PF FLR
(Fix committed): net: hns3: split hclgevf_reset() into preparing and rebuilding part
(Fix committed): net: hns3: split hclge_reset() into preparing and rebuilding part
(Fix committed): net: hns3: modify an unsuitable reset level for hardware error
(Fix committed): net: hns3: replace an unsuitable variable type in hclge_inform_reset_assert_to_vf()
(Fix committed): net: hns3: add protection when get SFP speed as 0
(Fix committed): net: hns3: modify the IRQ name of misc vectors
(Fix committed): net: hns3: modify an unsuitable log in hclge_map_ring_to_vector()
(Fix committed): net: hns3: modify the IRQ name of TQP vector
(Fix committed): net: hns3: re-organize vector handle
(Fix committed): net: hns3: add trace event support for HNS3 driver
(Fix committed): net: hns3: pad the short frame before sending to the hardware

CVE References

Ike Panhc (ikepanhc)
tags: added: ikeradar
description: updated
summary: - [hns3-0111]sync mainline kernel 5.5rc5 hns3 patchset into ubuntu HWE
+ [hns3-0111]sync mainline kernel 5.5rc6 hns3 patchset into ubuntu HWE
kernel branch Edit
Revision history for this message
Ike Panhc (ikepanhc) wrote :

These patches are already in focal kernel.

net: hns3: fix a wrong reset interrupt status mask
net: hns3: cleanup of stray struct hns3_link_mode_mapping
net: hns3: fix ETS bandwidth validation bug
net: hns3: reallocate SSU' buffer size when pfc_en changes
net: hns3: add compatible handling for MAC VLAN switch parameter configuration
net: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE
net: hns3: Use the correct style for SPDX License Identifier
net: hns3: add struct netdev_queue debug info for TX timeout
net: hns3: log and clear hardware error after reset complete
net: hns3: fix mis-counting IRQ vector numbers issue

Changed in kunpeng920:
status: New → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

These patches can be found in v5.4..v5.5-rc6 but are not yet backported to focal

net: hns3: fix VF ID issue for setting VF VLAN
net: hns3: fix a use after free problem in hns3_nic_maybe_stop_tx()
net: hns3: fix for TX queue not restarted problem
net: hns3: remove unused macros
net: hns3: cleanup byte order issues when printed
net: hns3: cleanup some print format warning
net: hns3: add or modify some comments
net: hns3: optimize local variable initialization
net: hns3: cleanup a format-truncation warning
net: hns3: cleanup some coding style issues
net: hns3: cleanup some magic numbers
net: hns3: dump some debug information when reset fail
net: hns3: do not allocate linear data for fraglist skb
net: hns3: minor cleanup for hns3_handle_rx_bd()
net: hns3: make struct hns3_enet_ring cacheline aligned
net: hns3: introduce ring_to_netdev() in enet module
net: hns3: minor optimization for barrier in IO path
net: hns3: optimized MAC address in management table.
net: hns3: remove struct hns3_nic_ring_data in hns3_enet module
net: hns3: support tx-scatter-gather-fraglist feature
net: hns3: add support for configuring VF MAC from the host
net: hns3: add support for configuring bandwidth of VF on the host
net: hns3: add support for setting VF trust
net: hns3: add support for spoof check setting
net: hns3: add support for setting VF link status on the host
net: hns3: make array tick_array static, makes object smaller

Revision history for this message
Ike Panhc (ikepanhc) wrote :

I am going to work on patches in #2 first.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: New → In Progress
assignee: nobody → Ike Panhc (ikepanhc)
Revision history for this message
Ike Panhc (ikepanhc) wrote :

I can not find "treewide: Use sizeof_member() macro but found a similiar. Do you mean this patch?

commit c593642c8be046915ca3a4a300243a68077cd207
Author: Pankaj Bharadiya <email address hidden>
Date: Mon Dec 9 10:31:43 2019 -0800

    treewide: Use sizeof_field() macro

    Replace all the occurrences of FIELD_SIZEOF() with sizeof_field() except
    at places where these are defined. Later patches will remove the unused
    definition of FIELD_SIZEOF().

description: updated
Revision history for this message
Ike Panhc (ikepanhc) wrote :
description: updated
Seth Forshee (sforshee)
Changed in linux (Ubuntu):
status: In Progress → Fix Committed
Changed in kunpeng920:
status: In Progress → Fix Committed
Ike Panhc (ikepanhc)
description: updated
Ike Panhc (ikepanhc)
description: updated
description: updated
Revision history for this message
Fred Kimmy (kongzizaixian) wrote :

I can not find "treewide: Use sizeof_member() macro but found a similiar. Do you mean this patch?

commit c593642c8be046915ca3a4a300243a68077cd207
Author: Pankaj Bharadiya <email address hidden>
Date: Mon Dec 9 10:31:43 2019 -0800

    treewide: Use sizeof_field() macro

    Replace all the occurrences of FIELD_SIZEOF() with sizeof_field() except
    at places where these are defined. Later patches will remove the unused
    definition of FIELD_SIZEOF().

you can ignore this patchset

Revision history for this message
Fred Kimmy (kongzizaixian) wrote :

net: hns3: refactor the notification scheme of PF reset
net: hns3: refactor the procedure of VF FLR
net: hns3: modify hclge_func_reset_sync_vf()'s return type to void
net: hns3: enlarge HCLGE_RESET_WAIT_CNT
net: hns3: refactor the precedure of PF FLR
net: hns3: split hclgevf_reset() into preparing and rebuilding part
net: hns3: schedule hclgevf_service by using delayed workqueue
net: hns3: modify an unsuitable reset level for hardware error
net: hns3: replace an unsuitable variable type in hclge_inform_reset_assert_to_vf()
net: hns3: add protection when get SFP speed as 0
net: hns3: modify the IRQ name of misc vectors
net: hns3: modify an unsuitable log in hclge_map_ring_to_vector()
net: hns3: modify the IRQ name of TQP vector
net: hns3: re-organize vector handle
net: hns3: add trace event support for HNS3 driver
net: hns3: only print misc interrupt status when handling fails
net: hns3: add a log for getting chain failure in hns3_nic_uninit_vector_data()
net: hns3: add some VF VLAN information for command "ip link show"
net: hns3: implement ndo_features_check ops for hns3 driver
net: hns3: get FD rules location before dump in debugfs
net: hns3: optimization for CMDQ uninitialization
net: hns3: remove useless mutex vport_cfg_mutex in the struct hclge_dev
net: hns3: check FE bit before calling hns3_add_frag()
net: hns3: do not schedule the periodic task when reset fail
net: hns3: allocate WQ with WQ_MEM_RECLAIM flag
net: hns3: remove unnecessary work in hclgevf_main
net: hns3: remove mailbox and reset work in hclge_main
net: hns3: schedule hclgevf_service by using delayed workqueue

pls ensuring this aboving patchset will merge into ubuntu 20.04 kernel verison. thank you

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Moving kunpeng920 series back to "in progress" as revised patchlist needs to be analysed.

Changed in kunpeng920:
status: Fix Committed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :
Changed in linux (Ubuntu):
status: Fix Committed → In Progress
Ike Panhc (ikepanhc)
tags: removed: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :
Changed in kunpeng920:
status: In Progress → Fix Committed
Ike Panhc (ikepanhc)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal' to 'verification-done-focal'. If the problem still exists, change the tag 'verification-needed-focal' to 'verification-failed-focal'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-focal
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Thanks. 5.4.0-18.22 works fine to me.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (81.5 KiB)

This bug was fixed in the package linux - 5.4.0-18.22

---------------
linux (5.4.0-18.22) focal; urgency=medium

  * focal/linux: 5.4.0-18.22 -proposed tracker (LP: #1866488)

  * Packaging resync (LP: #1786013)
    - [Packaging] resync getabis
    - [Packaging] update helper scripts

  * Add sysfs attribute to show remapped NVMe (LP: #1863621)
    - SAUCE: ata: ahci: Add sysfs attribute to show remapped NVMe device count

  * [20.04 FEAT] Compression improvements in Linux kernel (LP: #1830208)
    - lib/zlib: add s390 hardware support for kernel zlib_deflate
    - s390/boot: rename HEAP_SIZE due to name collision
    - lib/zlib: add s390 hardware support for kernel zlib_inflate
    - s390/boot: add dfltcc= kernel command line parameter
    - lib/zlib: add zlib_deflate_dfltcc_enabled() function
    - btrfs: use larger zlib buffer for s390 hardware compression
    - [Config] Introducing s390x specific kernel config option CONFIG_ZLIB_DFLTCC

  * [UBUNTU 20.04] s390x/pci: increase CONFIG_PCI_NR_FUNCTIONS to 512 in kernel
    config (LP: #1866056)
    - [Config] Increase CONFIG_PCI_NR_FUNCTIONS from 64 to 512 starting with focal
      on s390x

  * CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set (LP: #1865332)
    - [Config] CONFIG_IP_MROUTE_MULTIPLE_TABLES=y

  * Dell XPS 13 9300 Intel 1650S wifi [34f0:1651] fails to load firmware
    (LP: #1865962)
    - iwlwifi: remove IWL_DEVICE_22560/IWL_DEVICE_FAMILY_22560
    - iwlwifi: 22000: fix some indentation
    - iwlwifi: pcie: rx: use rxq queue_size instead of constant
    - iwlwifi: allocate more receive buffers for HE devices
    - iwlwifi: remove some outdated iwl22000 configurations
    - iwlwifi: assume the driver_data is a trans_cfg, but allow full cfg

  * [FOCAL][REGRESSION] Intel Gen 9 brightness cannot be controlled
    (LP: #1861521)
    - Revert "USUNTU: SAUCE: drm/i915: Force DPCD backlight mode on Dell Precision
      4K sku"
    - Revert "UBUNTU: SAUCE: drm/i915: Force DPCD backlight mode on X1 Extreme 2nd
      Gen 4K AMOLED panel"
    - SAUCE: drm/dp: Introduce EDID-based quirks
    - SAUCE: drm/i915: Force DPCD backlight mode on X1 Extreme 2nd Gen 4K AMOLED
      panel
    - SAUCE: drm/i915: Force DPCD backlight mode for some Dell CML 2020 panels

  * [20.04 FEAT] Enable proper kprobes on ftrace support (LP: #1865858)
    - s390/ftrace: save traced function caller
    - s390: support KPROBES_ON_FTRACE

  * alsa/sof: load different firmware on different platforms (LP: #1857409)
    - ASoC: SOF: Intel: hda: use fallback for firmware name
    - ASoC: Intel: acpi-match: split CNL tables in three
    - ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.

  * [UBUNTU 20.04] Enable CONFIG_NET_SWITCHDEV in kernel config for s390x
    starting with focal (LP: #1865452)
    - [Config] Enable CONFIG_NET_SWITCHDEV in kernel config for s390x starting
      with focal

  * Focal update: v5.4.24 upstream stable release (LP: #1866333)
    - io_uring: grab ->fs as part of async offload
    - EDAC: skx_common: downgrade message importance on missing PCI device
    - net: dsa: b53: Ensure the default VID is untagged
    - net: fib_rules: Correctly set table field when table number exceeds 8 bit...

Changed in linux (Ubuntu):
status: In Progress → Fix Released
Ike Panhc (ikepanhc)
Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.