01 Jul, 2022

1 commit


03 Mar, 2021

1 commit

  • On the remove path, there is a need to teardown the IRQs and disconnect
    from the PHY only if the DPMAC is not in TYPE_FIXED.
    Update the remove path so that we do not end up accesing an invalid MC
    portal.

    Signed-off-by: Ioana Ciornei

    Ioana Ciornei
     

23 Feb, 2021

1 commit


22 Feb, 2021

1 commit


04 Feb, 2021

1 commit


28 Jan, 2021

1 commit


27 Jan, 2021

2 commits


26 Jan, 2021

5 commits


20 Jan, 2021

14 commits

  • This is the 5.10.9 stable release

    * tag 'v5.10.9': (153 commits)
    Linux 5.10.9
    netfilter: nf_nat: Fix memleak in nf_nat_init
    netfilter: conntrack: fix reading nf_conntrack_buckets
    ...

    Signed-off-by: Jason Liu

    Jason Liu
     
  • This is the 5.10.8 stable release

    * tag 'v5.10.8': (104 commits)
    Linux 5.10.8
    tools headers UAPI: Sync linux/fscrypt.h with the kernel sources
    drm/panfrost: Remove unused variables in panfrost_job_close()
    ...

    Signed-off-by: Jason Liu

    Jason Liu
     
  • This is the 5.10.7 stable release

    * tag 'v5.10.7': (144 commits)
    Linux 5.10.7
    scsi: target: Fix XCOPY NAA identifier lookup
    rtlwifi: rise completion at the last step of firmware callback
    ...

    Signed-off-by: Jason Liu

    Jason Liu
     
  • This is the 5.10.6 stable release

    * tag 'v5.10.6': (21 commits)
    Linux 5.10.6
    mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start
    exec: Transform exec_update_mutex into a rw_semaphore
    ...

    Signed-off-by: Jason Liu

    Conflicts:
    drivers/rtc/rtc-pcf2127.c

    Jason Liu
     
  • commit 869c4d5eb1e6fbda66aa790c48bdb946d71494a0 upstream.

    The function bnxt_get_ulp_stat_ctxs() does not count the stats contexts
    used by the RDMA driver correctly when the RDMA driver is freeing the
    MSIX vectors. It assumes that if the RDMA driver is registered, the
    additional stats contexts will be needed. This is not true when the
    RDMA driver is about to unregister and frees the MSIX vectors.

    This slight error leads to over accouting of the stats contexts needed
    after the RDMA driver has unloaded. This will cause some firmware
    warning and error messages in dmesg during subsequent config. changes
    or ifdown/ifup.

    Fix it by properly accouting for extra stats contexts only if the
    RDMA driver is registered and MSIX vectors have been successfully
    requested.

    Fixes: c027c6b4e91f ("bnxt_en: get rid of num_stat_ctxs variable")
    Reviewed-by: Yongping Zhang
    Reviewed-by: Pavan Chebbi
    Signed-off-by: Michael Chan
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Michael Chan
     
  • [ Upstream commit 25c904b59aaf4816337acd415514b0c47715f604 ]

    Adding vf VLANID for the first time, or after having cleared previously
    defined VLANID works fine, however, attempting to change an existing vf
    VLANID clears the rules on the firmware, but does not add new rules for
    the new vf VLANID.

    Fix this by changing the logic in function esw_acl_egress_lgcy_setup()
    so that it will always configure egress rules.

    Fixes: ea651a86d468 ("net/mlx5: E-Switch, Refactor eswitch egress acl codes")
    Signed-off-by: Alaa Hleihel
    Signed-off-by: Saeed Mahameed
    Signed-off-by: Sasha Levin

    Alaa Hleihel
     
  • [ Upstream commit 0c4accc41cb56e527c8c049f5495af9f3d6bef7e ]

    Fix smatch warnings:

    drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c:105 esw_acl_egress_lgcy_setup() warn: passing zero to 'PTR_ERR'
    drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c:177 esw_acl_egress_ofld_setup() warn: passing zero to 'PTR_ERR'
    drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c:184 esw_acl_ingress_lgcy_setup() warn: passing zero to 'PTR_ERR'
    drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c:262 esw_acl_ingress_ofld_setup() warn: passing zero to 'PTR_ERR'

    esw_acl_table_create() never returns NULL, so
    NULL test should be removed.

    Signed-off-by: YueHaibing
    Signed-off-by: Saeed Mahameed
    Signed-off-by: Sasha Levin

    YueHaibing
     
  • [ Upstream commit eed38eeee734756596e2cc163bdc7dac3be501b1 ]

    Connection counters may be shared for both directions when the counter
    is used for connection aging purposes. However, if TC flow
    accounting is enabled then a unique counter is required per direction.

    Instantiate a unique counter per direction if the conntrack accounting
    extension is enabled. Use a shared counter when the connection accounting
    extension is disabled.

    Fixes: 1edae2335adf ("net/mlx5e: CT: Use the same counter for both directions")
    Signed-off-by: Oz Shlomo
    Reported-by: Marcelo Ricardo Leitner
    Reviewed-by: Roi Dayan
    Reviewed-by: Paul Blakey
    Signed-off-by: Saeed Mahameed
    Signed-off-by: Sasha Levin

    Oz Shlomo
     
  • [ Upstream commit 445c6198fe7be03b7d38e66fe8d4b3187bc251d4 ]

    Since commit 1d6cd3929360 ("modpost: turn missing MODULE_LICENSE()
    into error") the ppc32_allmodconfig build fails with:

    ERROR: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/freescale/fs_enet/mii-fec.o
    ERROR: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/freescale/fs_enet/mii-bitbang.o

    Add the missing MODULE_LICENSEs to fix the build. Both files include a
    copyright header indicating they are GPL v2.

    Signed-off-by: Michael Ellerman
    Reviewed-by: Andrew Lunn
    Signed-off-by: David S. Miller
    Signed-off-by: Sasha Levin

    Michael Ellerman
     
  • [ Upstream commit 887078de2a23689e29d6fa1b75d7cbc544c280be ]

    Table 8-53 in the QUICC Engine Reference manual shows definitions of
    fields up to a size of 192 bytes, not just 128. But in table 8-111,
    one does find the text

    Base Address of the Global Transmitter Parameter RAM Page. [...]
    The user needs to allocate 128 bytes for this page. The address must
    be aligned to the page size.

    I've checked both rev. 7 (11/2015) and rev. 9 (05/2018) of the manual;
    they both have this inconsistency (and the table numbers are the
    same).

    Adding a bit of debug printing, on my board the struct
    ucc_geth_tx_global_pram is allocated at offset 0x880, while
    the (opaque) ucc_geth_thread_data_tx gets allocated immediately
    afterwards, at 0x900. So whatever the engine writes into the thread
    data overlaps with the tail of the global tx pram (and devmem says
    that something does get written during a simple ping).

    I haven't observed any failure that could be attributed to this, but
    it seems to be the kind of thing that would be extremely hard to
    debug. So extend the struct definition so that we do allocate 192
    bytes.

    Signed-off-by: Rasmus Villemoes
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Sasha Levin

    Rasmus Villemoes
     
  • [ Upstream commit f6f92968e1e5a7a9d211faaebefc26ebe408dad7 ]

    Not all firmware versions support allocating DMA memory in smaller blocks so
    first try to allocate big block of DMA memory for QMI. If the allocation fails,
    let firmware request multiple blocks of DMA memory with smaller size.

    This also fixes an unnecessary error message seen during ath11k probe on
    QCA6390:

    ath11k_pci 0000:06:00.0: Respond mem req failed, result: 1, err: 0
    ath11k_pci 0000:06:00.0: qmi failed to respond fw mem req:-22

    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

    Signed-off-by: Carl Huang
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/1608127593-15192-1-git-send-email-kvalo@codeaurora.org
    Signed-off-by: Sasha Levin

    Carl Huang
     
  • [ Upstream commit 3597010630d0aa96f5778901e691c6068bb86318 ]

    During connect and disconnect stress test, crashed happened
    because ar->rx_channel is NULL. Fix it by checking whether
    ar->rx_channel is NULL.

    Crash stack is as below:
    RIP: 0010:ath11k_dp_rx_h_ppdu+0x110/0x230 [ath11k]
    [ 5028.808963] ath11k_dp_rx_wbm_err+0x14a/0x360 [ath11k]
    [ 5028.808970] ath11k_dp_rx_process_wbm_err+0x41c/0x520 [ath11k]
    [ 5028.808978] ath11k_dp_service_srng+0x25e/0x2d0 [ath11k]
    [ 5028.808982] ath11k_pci_ext_grp_napi_poll+0x23/0x80 [ath11k_pci]
    [ 5028.808986] net_rx_action+0x27e/0x400
    [ 5028.808990] __do_softirq+0xfd/0x2bb
    [ 5028.808993] irq_exit+0xa6/0xb0
    [ 5028.808995] do_IRQ+0x56/0xe0
    [ 5028.808997] common_interrupt+0xf/0xf

    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

    Signed-off-by: Carl Huang
    Signed-off-by: Kalle Valo
    Link: https://lore.kernel.org/r/20201211055613.9310-1-cjhuang@codeaurora.org
    Signed-off-by: Sasha Levin

    Carl Huang
     
  • commit cb82a54904a99df9e8f9e9d282046055dae5a730 upstream.

    This USB-C Hub (17ef:721e) based on the Realtek RTL8153B chip used to
    use the cdc_ether driver. However, using this driver, with the system
    suspended the device constantly sends pause-frames as soon as the
    receive buffer fills up. This causes issues with other devices, where
    some Ethernet switches stop forwarding packets altogether.

    Using the Realtek driver (r8152) fixes this issue. Pause frames are no
    longer sent while the host system is suspended.

    Signed-off-by: Leon Schuermann
    Tested-by: Leon Schuermann
    Link: https://lore.kernel.org/r/20210111190312.12589-2-leon@is.currently.online
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Leon Schuermann
     
  • commit bff6f1db91e330d7fba56f815cdbc412c75fe163 upstream.

    Set all EHL/TGL phy_addr to -1 so that the driver will automatically
    detect it at run-time by probing all the possible 32 addresses.

    Signed-off-by: Voon Weifeng
    Signed-off-by: Wong Vee Khee
    Link: https://lore.kernel.org/r/20201106094341.4241-1-vee.khee.wong@intel.com
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Voon Weifeng
     

19 Jan, 2021

2 commits

  • During suspend/resume stress test, we found descriptor write back by DMA
    could exhibit unusual behavior, e.g.:
    003 [0xc4310030]: 0x0 0x40 0x0 0xb5010040

    We can see that desc3 write back is 0xb5010040, it is still ownd by DMA,
    so application would not recycle this buffer. It will trigger fatal bus
    error when DMA try to use this descriptor again. When current descriptor
    move to this bad descriptor, it would not receive any more. To fix this
    issue, we should re-init all rx buffers when mac resume back. This issue
    can be reproduced on i.MX8MP EVK board.

    Reviewed-by: Jun Li
    Signed-off-by: Joakim Zhang

    Joakim Zhang
     
  • stmmac_xmit() call stmmac_tx_timer_arm() at the end to modify tx timer to
    do the transmission cleanup work. Imagine such a situation, stmmac enters
    suspend immediately after tx timer modified, it's expire callback
    stmmac_tx_clean() would not be invoked. This could affect BQL, since
    netdev_tx_sent_queue() has been called, but netdev_tx_completed_queue()
    have not been involved, as a result, dql_avail(&dev_queue->dql) finally always
    return a negative value.

    __dev_queue_xmit->__dev_xmit_skb->qdisc_run->__qdisc_run->qdisc_restart->dequeue_skb:
    if ((q->flags & TCQ_F_ONETXQUEUE) &&
    netif_xmit_frozen_or_stopped(txq)) // __QUEUE_STATE_STACK_XOFF is set

    Net core will stop transmitting any more. Finillay, net watchdong would timeout.
    To fix this issue, we should call netdev_tx_reset_queue() in stmmac_resume().

    Reviewed-by: Jun Li
    Signed-off-by: Joakim Zhang

    Joakim Zhang
     

17 Jan, 2021

11 commits

  • commit 0d136f5cd9a7ba6ded7f8ff17e8b1ba680f37625 upstream.

    The error message says that "Jumbo frames are not supported on XDP", but
    the code checks for mtu > MVNETA_MAX_RX_BUF_SIZE, not mtu > 1500.

    Fix this error message.

    Signed-off-by: Marek Behún
    Fixes: 0db51da7a8e9 ("net: mvneta: add basic XDP support")
    Cc: Lorenzo Bianconi
    Cc: Thomas Petazzoni
    Link: https://lore.kernel.org/r/20210105172333.21613-1-kabel@kernel.org
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Marek Behún
     
  • commit 87508224485323ce2d4e7fb929ec80f51adcc238 upstream.

    Force link UP can be enabled by bootloader during tftpboot
    and breaks NFS support.
    Force link UP disabled during port init procedure.

    Fixes: f84bf386f395 ("net: mvpp2: initialize the GoP")
    Signed-off-by: Stefan Chulski
    Acked-by: Marcin Wojtas
    Link: https://lore.kernel.org/r/1608216735-14501-1-git-send-email-stefanc@marvell.com
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Stefan Chulski
     
  • commit 69931e11288520c250152180ecf9b6ac5e6e40ed upstream.

    Without this, the driver runs into a link failure

    arm-linux-gnueabi-ld: drivers/net/wan/slic_ds26522.o: in function `slic_ds26522_probe':
    slic_ds26522.c:(.text+0x100c): undefined reference to `byte_rev_table'
    arm-linux-gnueabi-ld: slic_ds26522.c:(.text+0x1cdc): undefined reference to `byte_rev_table'
    arm-linux-gnueabi-ld: drivers/net/wan/slic_ds26522.o: in function `slic_write':
    slic_ds26522.c:(.text+0x1e4c): undefined reference to `byte_rev_table'

    Fixes: c37d4a0085c5 ("Maxim/driver: Add driver for maxim ds26522")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • commit 7a6eb072a9548492ead086f3e820e9aac71c7138 upstream.

    mlx5e_create_ttc_table_groups() frees ft->g on failure of
    kvzalloc(), but such failure will be caught by its caller
    in mlx5e_create_ttc_table() and ft->g will be freed again
    in mlx5e_destroy_flow_table(). The same issue also occurs
    in mlx5e_create_ttc_table_groups(). Set ft->g to NULL after
    kfree() to avoid double free.

    Fixes: 7b3722fa9ef6 ("net/mlx5e: Support RSS for GRE tunneled packets")
    Fixes: 33cfaaa8f36f ("net/mlx5e: Split the main flow steering table")
    Signed-off-by: Dinghao Liu
    Reviewed-by: Leon Romanovsky
    Signed-off-by: Saeed Mahameed
    Signed-off-by: Greg Kroah-Hartman

    Dinghao Liu
     
  • commit 5b0bb12c58ac7d22e05b5bfdaa30a116c8c32e32 upstream.

    When mlx5_create_flow_group() fails, ft->g should be
    freed just like when kvzalloc() fails. The caller of
    mlx5e_create_l2_table_groups() does not catch this
    issue on failure, which leads to memleak.

    Fixes: 33cfaaa8f36f ("net/mlx5e: Split the main flow steering table")
    Signed-off-by: Dinghao Liu
    Reviewed-by: Leon Romanovsky
    Signed-off-by: Saeed Mahameed
    Signed-off-by: Greg Kroah-Hartman

    Dinghao Liu
     
  • commit e186620d7bf11b274b985b839c38266d7918cc05 upstream.

    Without crc32, the driver fails to link:

    arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o: in function `wil_fw_verify':
    fw.c:(.text+0x74c): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o:fw.c:(.text+0x758): more undefined references to `crc32_le' follow

    Fixes: 151a9706503f ("wil6210: firmware download")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • commit 2860d45a589818dd8ffd90cdc4bcf77f36a5a6be upstream.

    Without this, the driver fails to link:

    lpc_eth.c:(.text+0x1934): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_grc_dump':
    qed_debug.c:(.text+0x4068): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_idle_chk_dump':
    qed_debug.c:(.text+0x51fc): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_mcp_trace_dump':
    qed_debug.c:(.text+0x6000): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_dbg_reg_fifo_dump':
    qed_debug.c:(.text+0x66cc): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o:qed_debug.c:(.text+0x6aa4): more undefined references to `crc32_le' follow

    Fixes: 7a4b21b7d1f0 ("qed: Add nvram selftest")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • commit 1d48595c786b1b9dc6be301e8d7f6fc74e9882aa upstream.

    Without crc32, this driver fails to link:

    arm-linux-gnueabi-ld: drivers/net/can/kvaser_pciefd.o: in function `kvaser_pciefd_probe':
    kvaser_pciefd.c:(.text+0x2b0): undefined reference to `crc32_be'

    Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
    Signed-off-by: Arnd Bergmann
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • commit c4aec381ab98c9189d47b935832541d520f1f67f upstream.

    In m_can_class_register() the clock is started, but stopped on exit. When
    calling m_can_class_unregister(), the clock is stopped a second time.

    This patch removes the erroneous m_can_clk_stop() in m_can_class_unregister().

    Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
    Cc: Dan Murphy
    Cc: Sriram Dash
    Reviewed-by: Sean Nyekjaer
    Link: https://lore.kernel.org/r/20201215103238.524029-2-mkl@pengutronix.de
    Signed-off-by: Marc Kleine-Budde
    Signed-off-by: Greg Kroah-Hartman

    Marc Kleine-Budde
     
  • commit aee2b3ccc8a63d1cd7da6a8a153d1f3712d40826 upstream.

    According to the TCAN4550 datasheet "SLLSF91 - DECEMBER 2018" the tcan4x5x has
    the same bittiming constants as a m_can revision 3.2.x/3.3.0.

    The tcan4x5x chip I'm using identifies itself as m_can revision 3.2.1, so
    remove the tcan4x5x specific bittiming values and rely on the values in the
    m_can driver, which are selected according to core revision.

    Fixes: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
    Cc: Dan Murphy
    Reviewed-by: Sean Nyekjaer
    Link: https://lore.kernel.org/r/20201215103238.524029-3-mkl@pengutronix.de
    Signed-off-by: Marc Kleine-Budde
    Signed-off-by: Greg Kroah-Hartman

    Marc Kleine-Budde
     
  • commit 8f56bc4dc1011be6e2a53198b615fdc588b4ef6a upstream.

    Change the order of operations in the link_up handling to be
    sure that the queues are up and ready before we announce that
    the link is up.

    Signed-off-by: Shannon Nelson
    Reviewed-by: Saeed Mahameed
    Signed-off-by: Jakub Kicinski
    Signed-off-by: Greg Kroah-Hartman

    Shannon Nelson