1. 29 7月, 2020 2 次提交
  2. 24 7月, 2020 6 次提交
  3. 02 7月, 2020 2 次提交
  4. 31 5月, 2020 2 次提交
  5. 28 5月, 2020 1 次提交
  6. 23 5月, 2020 3 次提交
  7. 22 5月, 2020 2 次提交
  8. 21 3月, 2020 2 次提交
    • J
      ice: discover and store size of available flash · 81f07491
      Jacob Keller 提交于
      When reading from the NVM using a flat address, it is useful to know the
      upper bound on the size of the flash contents. This value is not stored
      within the NVM.
      
      We can determine the size by performing a bisection between upper and
      lower bounds. It is known that the size cannot exceed 16 MB (offset of
      0xFFFFFF).
      
      Use a while loop to bisect the upper and lower bounds by reading one
      byte at a time. On a failed read, lower the maximum bound. On
      a successful read, increase the lower bound.
      
      Save this as the flash_size in the ice_nvm_info structure that contains
      data related to the NVM.
      
      The size will be used in a future patch for implementing full NVM read
      via ethtool's GEEPROM command.
      
      The maximum possible size for the flash is bounded by the size limit for
      the NVM AdminQ commands. Add a new macro, ICE_AQC_NVM_MAX_OFFSET, which
      can be used to represent this upper bound.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      81f07491
    • J
      ice: create function to read a section of the NVM and Shadow RAM · e9450990
      Jacob Keller 提交于
      The NVM contents are read via firmware by using the ice_aq_read_nvm
      function. This function has a couple of limits:
      
      1) The AdminQ commands can only take buffers sized up to 4Kb. Thus, any
         larger read must be split into multiple reads.
      2) when reading from the Shadow RAM, reads must not cross sector
         boundaries. The sectors are also 4Kb in size.
      
      Implement the ice_read_flat_nvm function to read portions of the NVM by
      flat offset. That is, to read using offsets from the start of the NVM
      rather than from a specific module.
      
      This function will be able to read both from the NVM and from the Shadow
      RAM. For simplicity NVM reads will always be broken up to not cross 4Kb
      page boundaries, even though this is not required unless reading from
      the Shadow RAM.
      
      Use this new function as the implementation of ice_read_sr_word_aq.
      
      The ice_read_sr_buf_aq function is not modified here. This is because
      a following change will remove the only caller of that function in favor
      of directly using ice_read_flat_nvm. Thus, there is little benefit to
      changing it now only to remove it momentarily. At the same time, the
      ice_read_sr_aq function will also be removed.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e9450990
  9. 16 2月, 2020 1 次提交
  10. 13 2月, 2020 1 次提交
  11. 26 1月, 2020 2 次提交
  12. 25 1月, 2020 1 次提交
  13. 09 11月, 2019 1 次提交
  14. 07 11月, 2019 2 次提交
  15. 13 9月, 2019 2 次提交
  16. 04 9月, 2019 2 次提交
  17. 24 8月, 2019 1 次提交
  18. 31 5月, 2019 3 次提交
  19. 30 5月, 2019 1 次提交
  20. 29 5月, 2019 2 次提交
  21. 02 5月, 2019 1 次提交