1. 23 Jan, 2019 13 commits
    • Varun Wadekar's avatar
      Tegra: bpmp_ipc: IPC driver to communicate with BPMP firmware · 26e2b93a
      Varun Wadekar authored
      
      
      This patch adds the driver to communicate with the BPMP firmware on Tegra
      SoCs, starting Tegra186. BPMP firmware is responsible for clock enable/
      disable requests, module resets among other things.
      
      MRQ is short for Message ReQuest. This is the general purpose, multi channel
      messaging protocol that is widely used to communicate with BPMP. This is further
      divided into a common high level protocol and a peer-specific low level protocol.
      The higher level protocol specifies the peer identification, channel definition
      and allocation, message structure, message semantics and message dispatch process
      whereas the lower level protocol defines actual message transfer implementation
      details. Currently, BPMP supports two lower level protocols - Token Mail Operations
      (TMO), IVC Mail Operations (IMO).
      
      This driver implements the IMO protocol. IMO is implemented using the IVC (Inter-VM
      Communication) protocol which is a lockless, shared memory messaging queue management
      protocol.
      
      The IVC peer is expected to perform the following as part of establishing a connection
      with BPMP.
      
      1. Initialize the channels with tegra_ivc_init() or its equivalent.
      2. Reset the channel with tegra_ivc_channel_reset. The peer should also ensure that
         BPMP is notified via the doorbell.
      3. Poll until the channel connection is established [tegra_ivc_channel_notified() return
         0]. Interrupt BPMP with doorbell each time after tegra_ivc_channel_notified() return
         non zero.
      
      The IPC driver currently supports reseting the GPCDMAand XUSB_PADCTL hardware blocks. In
      future, more hardware blocks would be supported.
      
      Change-Id: I52a4bd3a853de6c4fa410904b6614ff1c63df364
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      26e2b93a
    • Varun Wadekar's avatar
      Tegra: call 'early_init' handler earlier during boot · 01da3bd2
      Varun Wadekar authored
      
      
      This patch calls the 'early_init' handler earlier during boot. This
      allows the platforms using Tegra186 onwards to init the BPMP interface
      earlier.
      
      Change-Id: I0d540df39de7864ce9051ebe11eca5432c462ebf
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      01da3bd2
    • Anthony Zhou's avatar
      spd: trusty : fix defects flagged by MISRA scan · 591054a3
      Anthony Zhou authored
      
      
      Main Fixes:
      
      Use int32_t replace int [Rule 4.6]
      
      Added explicit casts (e.g. 0U) to integers in order for them to be
        compatible with whatever operation they're used in [Rule 10.1]
      
      Force operands of an operator to the same type category [Rule 10.4]
      
      Fixed if statement conditional to be essentially boolean [Rule 14.4]
      
      Voided non c-library functions whose return types are not used
      [Rule 17.7]
      
      Change-Id: I98caa330c371757eb2dfb9438448cb99115ed907
      Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
      591054a3
    • Steven Kao's avatar
      Tegra: memctrl_v2: allow CPU accesses to TZRAM · d6306d14
      Steven Kao authored
      
      
      This patch enables CPU access configuration register to allow
      accesses to the TZRAM aperture on chips after Tegra186.
      
      Change-Id: I0898582f8bd6fd35360ecf8ca5cee21fe35f7aab
      Signed-off-by: default avatarSteven Kao <skao@nvidia.com>
      d6306d14
    • Anthony Zhou's avatar
      Tegra: lib: debug: fix MISRA violation Rule 21.6 · 91196b02
      Anthony Zhou authored
      
      
      MISRA Rule 21.6, The standard library input/output functions
      shall not be used.
      
      This patch removes headers that are not really needed.
      
      Change-Id: I746138ce7ee95d7ca985d020f89b2738d997a7a2
      Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
      91196b02
    • Harvey Hsieh's avatar
      Tegra: memctrl_v2: pack TZDRAM base to RSVD55_SCRATCH · b886c7c5
      Harvey Hsieh authored
      
      
      This patch saves the TZDRAM_BASE value to secure RSVD55
      scratch register. The warmboot code uses this register to
      restore the settings on exiting System Suspend.
      
      Change-Id: Id76175c2a7d931227589468511365599e2908411
      Signed-off-by: default avatarHarvey Hsieh <hhsieh@nvidia.com>
      b886c7c5
    • Varun Wadekar's avatar
      Tegra: enable -nostdlib flag · 7f9d75d2
      Varun Wadekar authored
      
      
      This patch enables the '-nostdlib' flag to instruct the compiler
      to not use the standard system libraries and startup files.
      
      Change-Id: Ibf34856f7579ed686280cee19c35d08448cf921c
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      7f9d75d2
    • Varun Wadekar's avatar
      Tegra186: mce: get the "right" uncore command/response bits · f8f400d2
      Varun Wadekar authored
      
      
      This patch corrects the logic to read the uncore command/response bits
      from the command/response values. The previous logic tapped into incorrect
      bits leading to garbage counter values.
      
      Change-Id: Ib8327ca3cb3d2086bb268e9a5366865cdf35b493
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      f8f400d2
    • Varun Wadekar's avatar
      Tegra186: mce: use udelay() to calculate timeouts · f9f620d6
      Varun Wadekar authored
      
      
      This patch modifies the timeout loop to use udelay() instead of
      mdelay(). This helps with the boot time on some platforms which
      issue a lot of MCE calls and every mdelay adds up increasing the
      boot time by a lot.
      
      Change-Id: Ic50081b73e1cbc2714361235b5c396e294b8f752
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      f9f620d6
    • Anthony Zhou's avatar
      Tegra186: fix MISRA Rule 8.3 violation · 8dc92783
      Anthony Zhou authored
      
      
      MISRA Rule 8.3, All declarations of an object or function
      shall use the same names and type qualifiers.
      
      This patch removes unused function(s).
      
      Change-Id: I90865c003d46f1dc08bfb5f4fe8a327ea42a2bb7
      Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
      8dc92783
    • Varun Wadekar's avatar
      Helper function to read ID_AFR0_EL1 system register · e4e97f1d
      Varun Wadekar authored
      
      
      This patch provides helper function to read the ID_AFR0_EL1
      system register for platforms.
      
      Change-Id: Id5491b18e3bf9f619d98d6cc8efd9d2cf5918c9d
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      e4e97f1d
    • Puneet Saxena's avatar
      Tegra: memctrl_v2: platform handlers to program MSS · ab2eb455
      Puneet Saxena authored
      
      
      Introduce platform handlers to program the MSS settings.
      This allows the current driver to scale to future chips.
      
      Change-Id: I40a27648a1a3c73b1ce38dafddc1babb6f0b0d9b
      Signed-off-by: default avatarPuneet Saxena <puneets@nvidia.com>
      Signed-off-by: default avatarKrishna Reddy <vdumpa@nvidia.com>
      ab2eb455
    • Antonio Niño Díaz's avatar
      Merge pull request #1768 from bryanodonoghue/integration+linaro_warp7-tbb · ae478c26
      Antonio Niño Díaz authored
      Integration+linaro warp7 tbb
      ae478c26
  2. 22 Jan, 2019 7 commits
  3. 21 Jan, 2019 10 commits
  4. 18 Jan, 2019 10 commits