1. 12 2月, 2021 4 次提交
    • H
      octeontx2-pf: cn10k: Get max mtu supported from admin function · ab58a416
      Hariprasad Kelam 提交于
      CN10K supports max MTU of 16K on LMAC links and 64k on LBK
      links and Octeontx2 silicon supports 9K mtu on both links.
      Get the same from nix_get_hw_info mbox message in netdev probe.
      
      This patch also calculates receive buffer size required based
      on the MTU set.
      Signed-off-by: NHariprasad Kelam <hkelam@marvell.com>
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NGeetha sowjanya <gakula@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ab58a416
    • G
      octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations · 4c236d5d
      Geetha sowjanya 提交于
      This patch adds support to use new LMTST lines for NPA batch free
      and burst SQE flush. Adds new dev_hw_ops structure to hold platform
      specific functions and create new files cn10k.c and cn10k.h.
      Signed-off-by: NGeetha sowjanya <gakula@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4c236d5d
    • G
      octeontx2-pf: cn10k: Map LMTST region · 6e8ad438
      Geetha sowjanya 提交于
      On CN10K platform transmit/receive buffer alloc and free from/to hardware
      had changed to support burst operation. Whereas pervious silicon's only
      support single buffer free at a time.
      To Support the same firmware allocates a DRAM region for each PF/VF for
      storing LMTLINES. These LMTLINES are used for NPA batch free and for
      flushing SQE to the hardware.
      PF/VF LMTST region is accessed via BAR4. PFs LMTST region is followed
      by its VFs mbox memory. The size of region varies from 2KB to 256KB based
      on number of LMTLINES configured.
      
      This patch adds support for
      - Mapping PF/VF LMTST region.
      - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch
        free operation.
      - Reserves 72-512 LMTST lines for NIX SQE flush.
      Signed-off-by: NGeetha sowjanya <gakula@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e8ad438
    • S
      octeontx2-pf: cn10k: Add mbox support for CN10K · facede82
      Subbaraya Sundeep 提交于
      Firmware allocates memory regions for PFs and VFs in DRAM.
      The PFs memory region is used for AF-PF and PF-VF mailbox.
      This mbox facilitate communication between AF-PF and PF-VF.
      
      On CN10K platform:
      The DRAM region allocated to PF is enumerated as PF BAR4 memory.
      PF BAR4 contains AF-PF mbox region followed by its VFs mbox region.
      AF-PF mbox region base address is configured at RVU_AF_PFX_BAR4_ADDR
      PF-VF mailbox base address is configured at
      RVU_PF(x)_VF_MBOX_ADDR = RVU_AF_PF()_BAR4_ADDR+64KB. PF access its
      mbox region via BAR4, whereas VF accesses PF-VF DRAM mailboxes via
      BAR2 indirect access.
      
      On CN9XX platform:
      Mailbox region in DRAM is divided into two parts AF-PF mbox region and
      PF-VF mbox region i.e all PFs mbox region is contiguous similarly all
      VFs.
      The base address of the AF-PF mbox region is configured at
      RVU_AF_PF_BAR4_ADDR.
      AF-PF1 mbox address can be calculated as RVU_AF_PF_BAR4_ADDR * mbox
      size.
      The base address of PF-VF mbox region for each PF is configure at
      RVU_AF_PF(0..15)_VF_BAR4_ADDR.PF access its mbox region via BAR4 and its
      VF mbox regions from RVU_PF_VF_BAR4_ADDR register, whereas VF access its
      mbox region via BAR4.
      
      This patch changes mbox initialization to support both CN9XX and CN10K
      platform.
      The patch also adds new hw_cap flag to setting hw features like TSO etc
      and removes platform specific name from the PF/VF driver name to make it
      appropriate for all supported platforms
      
      This patch also removes platform specific name from the PF/VF driver name
      to make it appropriate for all supported platforms
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NGeetha sowjanya <gakula@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      facede82
  2. 11 2月, 2021 1 次提交
  3. 29 1月, 2021 1 次提交
  4. 21 11月, 2020 1 次提交
  5. 18 11月, 2020 5 次提交
  6. 01 10月, 2020 2 次提交
  7. 24 9月, 2020 1 次提交
  8. 02 9月, 2020 1 次提交
  9. 25 8月, 2020 1 次提交
  10. 29 7月, 2020 1 次提交
  11. 01 5月, 2020 1 次提交
  12. 26 3月, 2020 1 次提交
  13. 24 3月, 2020 6 次提交
  14. 03 3月, 2020 1 次提交
  15. 27 1月, 2020 13 次提交