1. 09 Oct, 2020 1 commit
    • Jimmy Brisson's avatar
      Don't return error information from console_flush · 831b0e98
      Jimmy Brisson authored
      
      
      And from crash_console_flush.
      
      We ignore the error information return by console_flush in _every_
      place where we call it, and casting the return type to void does not
      work around the MISRA violation that this causes. Instead, we collect
      the error information from the driver (to avoid changing that API), and
      don't return it to the caller.
      
      Change-Id: I1e35afe01764d5c8f0efd04f8949d333ffb688c1
      Signed-off-by: default avatarJimmy Brisson <jimmy.brisson@arm.com>
      831b0e98
  2. 28 Aug, 2020 3 commits
    • Varun Wadekar's avatar
      Tegra: memctrl: platform setup handler functions · 08e60f80
      Varun Wadekar authored
      
      
      The driver initially contained the setup steps to help Tegra186
      and Tegra194 SoCs. In order to support future SoCs and make sure
      that the driver remains generic enough, some code should be moved
      to SoC.
      
      This patch creates a setup handler for a platform to implement its
      initialization sequence.
      
      Change-Id: I8bab7fd07f25e0457ead8e2d2713efe54782a59b
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      08e60f80
    • Anthony Zhou's avatar
      Tegra: sip: add VPR resize enabled check · e9b9c2c8
      Anthony Zhou authored
      
      
      The Memory Controller provides a control register to check
      if the video memory can be resized. The previous bootloader
      might have locked this feature, which will be reflected by
      this register.
      
      This patch reads the control register before processing
      a video memory resize request. An error code, -ENOTSUP,
      is returned if the feature is locked.
      
      Change-Id: Ia1d67f7a94aa15c6b18ff5c9b9b952e179596ae3
      Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
      e9b9c2c8
    • Anthony Zhou's avatar
      Tegra194: add redundancy checks for MMIO writes · 2561cb50
      Anthony Zhou authored
      
      
      MMIO writes should verify that the writes actually went through.
      Read the value back after the write operation, perform assert
      if the read back value is not same as the write value.
      
      Change-Id: Id2ceb014116f3aa6a9e86505ca1ae9911470a679
      Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
      2561cb50
  3. 24 Aug, 2020 2 commits
    • Varun Wadekar's avatar
      Tegra: smmu: add smmu_verify function · 21ec61a9
      Varun Wadekar authored
      
      
      The SMMU configuration can get corrupted or updated by
      external clients during boot without our knowledge.
      
      This patch introduces a "verify" function for the SMMU
      driver, to check that the boot configuration settings are
      intact.  Usually, this function should be called at the
      end of the boot cycle.
      
      This function only calls panic() on silicon platforms.
      
      Change-Id: I2ab45a7f228781e71c73ba1f4ffc49353effe146
      Signed-off-by: default avatarGeorge Bauernschmidt <georgeb@nvidia.com>
      21ec61a9
    • Varun Wadekar's avatar
      Tegra: spe: do not flush console in console_putc · 64b2a237
      Varun Wadekar authored
      
      
      SPE no longer requires the flush bit to be set to start transmitting
      characters over the physical uart. Therefore, the flush bit is no
      longer required when calling console_core_putc. However, flushing the
      console still requires the flush bit.
      
      This patch removes the flush bit from the mailbox messages in
      console_core_putc to improve ACK latency.
      
      Original change by: Mustafa Bilgen <mbilgen@nvidia.com>
      
      Change-Id: I5b7d1f3ea69ea2ce308566dbaae222b04e4c373d
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      64b2a237
  4. 09 Aug, 2020 2 commits