1. 25 Mar, 2021 35 commits
  2. 24 Mar, 2021 5 commits
    • David S. Miller's avatar
      Merge branch 'ipa-versions-and-registers' · 69cdfb53
      David S. Miller authored
      Alex Elder says:
      
      ====================
      net: ipa: versions and registers
      
      Version 2 of this series adds kernel-doc descriptions for all
      members of the ipa_version enumerated type in patch 2.
      
      The original description of the series is below.
      
      					-Alex
      
      This series is sort of a mix of things, generally related to
      updating IPA versions and register definitions.
      
      The first patch fixes some version-related tests throughout the code
      so the conditions are valid for IPA versions other than the two that
      are currently supported.  Support for additional versions is
      forthcoming, and this is a preparatory step.
      
      The second patch adds to the set of defined IPA versions, to include
      all versions between 3.0 and 4.11.
      
      The next defines an endpoint initialization register that was
      previously not being configured.  We now initialize that register
      (so that NAT is explicitly disabled) on all AP endpoints.
      
      The fourth adds support for an extra bit in a field in a register,
      which is present starting at IPA v4.5.
      
      The last two are sort of standalone.  One just moves a function
      definition and makes it private.  The other increases the number of
      GSI channels and events supported by the driver, sufficient for IPA
      v4.5.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      69cdfb53
    • Alex Elder's avatar
      net: ipa: increase channels and events · 810a2e1f
      Alex Elder authored
      Increase the maximum number of channels and event rings supported by
      the driver, to allow the maximum available on the SDX55.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      810a2e1f
    • Alex Elder's avatar
      net: ipa: move ipa_aggr_granularity_val() · 1910494e
      Alex Elder authored
      We only use ipa_aggr_granularity_val() inside "ipa_main.c", so it
      doesn't really need to be defined in a header file.  It makes some
      sense to be grouped with the register definitions, but it is unlike
      the other inline functions now defined in "ipa_reg.h".  So move it
      into "ipa_main.c" where it's used.  TIMER_FREQUENCY is used only
      by that function, so move that definition as well.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1910494e
    • Alex Elder's avatar
      net: ipa: limit local processing context address · e6e49e43
      Alex Elder authored
      Not all of the bits of the LOCAL_PKT_PROC_CNTXT register are valid.
      Until IPA v4.5, there are 17 valid bits (though the bottom three
      must be zero).  Starting with IPA v4.5, 18 bits are valid.
      
      Introduce proc_cntxt_base_addr_encoded() to encode the base address
      for use in the register using only the valid bits.
      
      Shorten the name of the register (omit "_BASE") to avoid the need to
      wrap the line in the one place it's used.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e6e49e43
    • Alex Elder's avatar
      net: ipa: define the ENDP_INIT_NAT register · 647a05f3
      Alex Elder authored
      Define the ENDP_INIT_NAT register for setting up the NAT
      configuration for an endpoint.  We aren't using NAT at this
      time, so explicitly set the type to BYPASS for all endpoints.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      647a05f3