1. 31 Jan, 2020 10 commits
    • Varun Wadekar's avatar
      Tegra194: mce: fix multiple MISRA issues · 4a232d5b
      Varun Wadekar authored
      
      
      This patch fixes violations of the following MISRA rules
      
      * Rule 8.5  "An external object or function shall be declared once in
                   one and only one file"
      * Rule 10.3 "The value of an expression shall not be assigned to an
                   object with a narrower essential type or of a different
                   esential type category"
      
      Change-Id: I4314cd4fea0a4adc6665868dd31e619b4f367e14
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      4a232d5b
    • Varun Wadekar's avatar
      Tegra: bpmp: fix multiple MISRA issues · 64aa08fb
      Varun Wadekar authored
      
      
      This patch fixes violations for the following MISRA rules
      
      * Rule 5.7  "A tag name shall be a unique identifier"
      * Rule 10.1 "Operands shall not be of an inappropriate essential type"
      * Rule 10.3 "The value of an expression shall not be assigned to an object
                   with a narrower essential type or of a different essential type
                   category"
      * Rule 10.4 "Both operands of an operator in which the usual arithmetic
                   conversions are performed shall have the same essential type
                   category"
      * Rule 20.7 "Expressions resulting from the expansion of macro parameters
                   shall be enclosed in parentheses"
      * Rule 21.1 "#define and #undef shall not be used on a reserved identifier
                   or reserved macro name"
      
      Change-Id: I83cbe659c2d72e76dd4759959870b57c58adafdf
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      64aa08fb
    • Varun Wadekar's avatar
      Tegra194: se: fix multiple MISRA issues · 8d4107f0
      Varun Wadekar authored
      
      
      This patch fixes violations for the following MISRA rules
      
      * Rule 8.4  "A compatible declaration shall be visible when an object or
                   function with external linkage is defined"
      * Rule 10.1 "Operands shall not be of an inappropriate essential type"
      * Rule 10.6 "Both operands of an operator in which the usual arithmetic
                   conversions are perdormed shall have the same essential type
                   category"
      * Rule 17.7 "The value returned by a function having non-void return
                   type shall be used"
      
      Change-Id: I171ac8340de729fd7be928fa0c0694e9bb8569f0
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      8d4107f0
    • Varun Wadekar's avatar
      Tegra: compile PMC driver for Tegra132/Tegra210 platforms · 57c539f9
      Varun Wadekar authored
      
      
      The PMC driver is used only by Tegra210 and Tegra132 platforms. This
      patch removes pmc.c from the common makefile and moves it to the
      platform specific makefiles.
      
      As a result, the PMC code from common code has been moved to Tegra132
      and Tegra210 platform ports.
      
      Change-Id: Ia157f70e776b3eff3c12eb8f0f02d30102670a98
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      57c539f9
    • Varun Wadekar's avatar
      Tegra: memctrl_v2: remove weakly defined TZDRAM setup handler · f561a179
      Varun Wadekar authored
      
      
      This patch removes the per-platform, weakly defined TZDRAM setup handler,
      as all affected platforms implement the actual handler.
      
      Change-Id: I95d04b2a771bc5d673e56b097d45c493fa388ee8
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      f561a179
    • Varun Wadekar's avatar
      Tegra: remove weakly defined per-platform SiP handler · ba37943d
      Varun Wadekar authored
      
      
      This patch removes the weakly defined per-platform SiP handler
      as all platforms implement this handler, defeating the need for
      a weak definition.
      
      Change-Id: Id4c7e69163d2635de1813f5a385ac874253a8da9
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      ba37943d
    • Varun Wadekar's avatar
      Tegra: remove weakly defined PSCI platform handlers · e44f86ef
      Varun Wadekar authored
      
      
      This patch removes all the weakly defined PSCI handlers defined
      per-platform, to improve code coverage numbers and reduce MISRA
      defects.
      
      Change-Id: I0f9c0caa0a6071d0360d07454b19dcc7340da8c2
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      e44f86ef
    • Varun Wadekar's avatar
      Tegra: remove weakly defined platform setup handlers · 39171cd0
      Varun Wadekar authored
      
      
      This patch converts the weakly defined platform setup handlers into
      actual platform specific handlers to improve code coverage numbers
      and some MISRA defects.
      
      The weakly defined handlers never get executed thus resulting in
      lower coverage - function, function calls, statements, branches
      and pairs.
      
      Change-Id: I02f450f66b5754a90d934df4d76eb91459fca5f9
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      39171cd0
    • Varun Wadekar's avatar
      Tegra: per-SoC DRAM base values · 5f1803f9
      Varun Wadekar authored
      
      
      Tegra194 supports upto 64GB of DRAM, whereas the previous SoCs support
      upto 32GB DRAM. This patch moves the common DRAM base/end macros to
      individual Tegra SoC headers to fix this anomaly.
      
      Change-Id: I1a9f386b67c2311baab289e726d95cef6954071b
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      5f1803f9
    • Sandrine Bailleux's avatar
  2. 30 Jan, 2020 3 commits
  3. 29 Jan, 2020 10 commits
  4. 28 Jan, 2020 9 commits
  5. 27 Jan, 2020 8 commits
    • Andrew F. Davis's avatar
      ti: k3: drivers: ti_sci: Put sequence number in coherent memory · 32967a37
      Andrew F. Davis authored
      
      
      The current message sequence number is accessed both with caches on and
      off so put this memory in the un-cached coherent section so accesses
      are consistent and coherency is maintained.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Change-Id: Ieeefefeaffc691e4e4c4de7c74490d50ff9de807
      32967a37
    • Andrew F. Davis's avatar
      ti: k3: drivers: ti_sci: Remove indirect structure of const data · 592ede25
      Andrew F. Davis authored
      
      
      The 'info' structure contained what is only static data for this
      implementation of TI-SCI. Remove this indirection and remove the
      struct.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Change-Id: I2328fddf388bf7d56a56bd673c080e78c86fe072
      592ede25
    • Andrew F. Davis's avatar
      ti: k3: common: Enable ARM cluster power down · 586621f1
      Andrew F. Davis authored
      
      
      When all cores in a cluster are powered down the parent cluster can
      be also powered down. When the last core has requested powering down
      follow by sending the cluster power down sequence to the system
      power controller firmware.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Change-Id: I0ffeb339852c66ef62743aecd3e17ca20bad6216
      586621f1
    • Andrew F. Davis's avatar
      ti: k3: common: Rename device IDs to be more consistent · 9f49a177
      Andrew F. Davis authored
      
      
      The core number is called 'core_id' but the processor and device IDs are
      called 'proc' and 'device'. Rename these to make them less confusing.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Change-Id: I3d7c6dddd7aa37b5dee1aa9689ce31730e9c3b59
      9f49a177
    • Raghu Krishnamurthy's avatar
      T589: Fix insufficient ordering guarantees in bakery lock · c0018913
      Raghu Krishnamurthy authored
      
      
      bakery_lock_get() uses DMB LD after lock acquisition and
      bakery_lock_release() uses DMB ST before releasing the lock. This is
      insufficient in both cases. With just DMB LD, stores in the critical
      section can be reordered before the DMB LD which could mean writes in
      the critical section completing before the lock has been acquired
      successfully. Similarly, with just DMB ST, a load in the critical section
      could be reordered after the the DMB ST. DMB is the least expensive
      barrier that can provide the required ordering.
      Signed-off-by: default avatarRaghu Krishnamurthy <raghu.ncstate@icloud.com>
      Change-Id: Ieb74cbf5b76b09e1789331b71f37f7c660221b0e
      c0018913
    • Soby Mathew's avatar
      Merge changes from topic "pie" into integration · 0281e60c
      Soby Mathew authored
      * changes:
        uniphier: make all BL images completely position-independent
        uniphier: make uniphier_mmap_setup() work with PIE
        uniphier: pass SCP base address as a function parameter
        uniphier: set buffer offset and length for io_block dynamically
        uniphier: use more mmap_add_dynamic_region() for loading images
        bl_common: add BL_END macro
        uniphier: turn on ENABLE_PIE
        TSP: add PIE support
        BL2_AT_EL3: add PIE support
        BL31: discard .dynsym .dynstr .hash sections to make ENABLE_PIE work
        PIE: pass PIE options only to BL31
        Build: support per-BL LDFLAGS
      0281e60c
    • Manish Pandey's avatar
      Neovers N1: added support to update presence of External LLC · f2d6b4ee
      Manish Pandey authored
      
      
      CPUECTLR_EL1.EXTLLC bit indicates the presense of internal or external
      last level cache(LLC) in the system, the reset value is internal LLC.
      
      To cater for the platforms(like N1SDP) which has external LLC present
      introduce a new build option 'NEOVERSE_N1_EXTERNAL_LLC' which can be
      enabled by platform port.
      Signed-off-by: default avatarManish Pandey <manish.pandey2@arm.com>
      Change-Id: Ibf475fcd6fd44401897a71600f4eafe989921363
      f2d6b4ee
    • Vijayenthiran Subramaniam's avatar
      plat/arm/sgi: move topology information to board folder · a9fbf13e
      Vijayenthiran Subramaniam authored
      
      
      The platform topology description of the upcoming Arm's RD platforms
      have different topology than those listed in the sgi_topology.c file. So
      instead of adding platform specific topology into existing
      sgi_topology.c file, those can be added to respective board files. In
      order to maintain consistency with the upcoming platforms, move the
      existing platform topology description to respective board files.
      
      Change-Id: I4689c7d24cd0c75a3dc234370c34a85c08598abb
      Signed-off-by: default avatarVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
      a9fbf13e