Skip to content
Snippets Groups Projects
  1. Apr 04, 2022
  2. Mar 03, 2022
  3. Mar 02, 2022
  4. Feb 16, 2022
  5. Feb 15, 2022
  6. Feb 11, 2022
  7. Feb 08, 2022
    • Petr Ondracek's avatar
      AAUTO-323 Fix for VTS test case... · 29af4b74
      Petr Ondracek authored
      AAUTO-323 Fix for VTS test case com.android.tests.sysfs.KernelApiSysfsTest#testKfenceSampleRate from module KernelApiSysfsTest. Changed KFENCE sampling interval from 100 -> 500 (recommended value, alligned with GKI image)
      29af4b74
  8. Jan 28, 2022
  9. Jan 26, 2022
  10. Jan 25, 2022
  11. Jan 20, 2022
    • zhai.he's avatar
      MA-20012 Fix build error when export new symbols · a736a4fd
      zhai.he authored
      
      Because the argument type is volatile, but the parameter is
      not, you need both to be volatile.
      
      test:
      
      when build nxp kernel in aosp kernel repo, we will meet the build error.
      /opt/android/kernel_symbols_build/gki-imx/common/drivers/mxc/hantro/hantrodec.c:402:48:
      error: passing 'volatile u8 *' (aka 'volatile unsigned ch
      ar *') to parameter of type 'u8 *' (aka 'unsigned char *') discards qualifiers
      [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      trusty_ctrlblk_write(&hantrodec_data, 0, 0x3, iobase);  //VPUMIX G1/G2 block soft reset  control
      
      BUILD_CONFIG=common/build.config.imx build/build_abi.sh
      
      Change-Id: I055e65c65927fb3171aa4b8fd536106aaf252913
      Signed-off-by: default avatarzhai.he <zhai.he@nxp.com>
      a736a4fd
    • Zhipeng Wang's avatar
      MA-19967-2 defconfig: Add CONFIG_MX8QDX_PM_DOMAINS · 47b2c784
      Zhipeng Wang authored
      
      In order to distinguish the compilation of 8q and 8m boards in domain.c
      and domain.h.
      
      Change-Id: I0c2b4232f51f12cb7353740c17a9ba950769decf
      Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
      47b2c784
    • Zhipeng Wang's avatar
      MA-19967-1 Fix: [8QM & 8QXP] Power consumption increased in suspend mode · 432f9acb
      Zhipeng Wang authored
      
      This patch is from:
      PM/Domains: Support enter deepest state for multiple states domains
      
      Because this patch changes struct generic_pm_domain breaks gki, and
      without this patch causes the power consumption of VCC_MAIN to
      increase during 8q* suspend. So I increased CONFIG_MX8QDX_PM_DOMAINS
      to distinguish.
      
      Change-Id: I0579b19155529f397003eef80dea02f2e75fd00a
      Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
      432f9acb
    • Zhipeng Wang's avatar
      MA-19967 Revert "MA-19337 Revert "PM / Domains: Support enter deepest state... · 17d42098
      Zhipeng Wang authored
      MA-19967 Revert "MA-19337 Revert "PM / Domains: Support enter deepest state for multiple states domains""
      
      The last time it was reverted, because of structure changes that
      blocks gki. To fix [8QM & 8QXP] Power consumption increased in
      suspend mode, I plan to use a CONFIG to distinguish 8m* and 8q*.
      
      This reverts commit 0c6748b7.
      
      Change-Id: Ifce0f9d592e96ba691042e45f41ad3392b8a341f
      17d42098
  12. Jan 14, 2022
    • Zhipeng Wang's avatar
      MA-19960 Add pcm512 audio card to powersave image · 31879790
      Zhipeng Wang authored
      
      Add pcm512 audio card to powersave image.
      Enable powersave image LPA.
      
      Change-Id: I049621f8bb60e53a9eb6eb12926c1ae9044a2864
      Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
      31879790
    • Zhipeng Wang's avatar
      MA-19930 clk: imx8mp: fix clock tree update of TF-A managed clocks · e64720c0
      Zhipeng Wang authored
      
      On the i.MX8M*, the TF-A exposes a SiP (Silicon Provider) service
      for DDR frequency scaling. The imx8m-ddrc-devfreq driver calls the
      SiP and then does clk_set_parent on the DDR muxes to synchronize
      the clock tree.
      
      Since 936c3836 ("clk: imx: fix composite peripheral flags"),
      these TF-A managed muxes have SET_PARENT_GATE set, which results
      in imx8m-ddrc-devfreq's clk_set_parent after SiP failing with -EBUSY:
      
      clk_set_parent(dram_apb_src, sys1_pll_40m);(busfreq-imx8mq.c)
      
      This is safe to do, because updating the Linux clock tree to reflect
      reality will always be glitch-free.
      
      Since 926bf912("clk: imx8m: fix clock tree update of TF-A
      managed clocks"), it adds this method and enables 8mm, 8mn and 8mq. I
      think 8mp is also needed.
      
      Another reason I added this patch is that powersave image BT music
      requires dram to be 400MTS, so clk_set_parent(dram_alt_src,
      sys1_pll_800m); is required. Without this patch, it will not succeed.
      
      Change-Id: I4f07573dea4ac9a8a88b04cf795b346299940635
      Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
      e64720c0
    • Zhang Bo's avatar
      MA-19979[Android] Add DRM_FORMAT_ARGB8888 support for imx8ulp as recovery mode required · 8bc6af2e
      Zhang Bo authored
      
      Even driver don't support alpha in imx8ulp, still add DRM_FORMAT_ARGB8888 format
      for primary plane. Because android recovery mode only support DRM_FORMAT_RGBA8888,
      DRM_FORMAT_ARGB8888, DRM_FORMAT_XBGR8888, DRM_FORMAT_BGRA8888.
      So declare DRM_FORMAT_ARGB8888 is supported in driver and discard the alpha when
      set format for framebuffer.
      
      Change-Id: I81e1d36565f61ee5425d34fb672a531ecebd9155
      Signed-off-by: default avatarZhang Bo <bo.zhang@nxp.com>
      8bc6af2e
  13. Jan 13, 2022
    • Dandan Sun's avatar
      MA-19319-3 add cooling device for the binded thermal sensor · 383be025
      Dandan Sun authored
      
      this patch register the gpu cooling device for node "devfreq", thermal policy
      thermal_of_populate_bind_params in thermal_of.c will bind the cooling device
      and trip point from the map, remove the previous implementation "bind every
      thermal zone registered in dts with gpu cooling device thermal-devfreq-%d".
      
      Change-Id: I1240a64d00ac702da19c47da525d67ae6c2c4428
      Signed-off-by: default avatarDandan Sun <dandan.sun@nxp.com>
      383be025
    • Dandan Sun's avatar
      MA-19319-2 bind the thermal zone and gpu cooling device in dts · 41509495
      Dandan Sun authored
      
      this patch put the thermal zone and gpu cooling device bind in dts,
      register the gpu cooling device for node "devfreq", thermal policy
      thermal_of_populate_bind_params in thermal_of.c will bind the cooling
      device and trip point from the map.
      
      Change-Id: I0607eda3219981514b05b8057ce485498e401cb7
      Signed-off-by: default avatarDandan Sun <dandan.sun@nxp.com>
      41509495
    • Dandan Sun's avatar
      MA-19319-1 put gpufreq cooling device register in gpu driver · 602439ea
      Dandan Sun authored
      
      in current implementation, bind every thermal zone registered in dts
      with one cooling device "thermal-devfreq-%d", and add
      notifier_call_chain when register cooling device, use step_wise
      governor, step_wise_throttle compute state based on the temp trend,
      and if need to throttle, do process step_wise_throttle ->
      thermal_cdev_update ->thermal_cdev_set_cur_state -> set_cur_state
      -> devfreq_cooling_notifier_call_chain(state) ->
      gpu driver receive state notifier, and change gpu freq.
      
      Issue of current implementation: in current implementation,
      whatever the thermal sensor is, always trigger gpu freq change,
      this is not proper, cpu thermal sensor and drc thermal sensor
      should not bind with gpu cooling device.
      
      Solution: this patch change to put the bind in dts, make it more clear.
      register the gpu cooling device for node "devfreq", thermal policy
      thermal_of_populate_bind_params in thermal_of.c will bind the cooling
      device and trip point from the map.
      
      this patch put gpufreq cooling device register in gpu driver, thermal
      driver can use devfreq_cooling_handle_event_change to handle gpufreq
      adjustment according to the temp change.
      
      Change-Id: I563b8d7669d915a6dce24ce8621a1bd3f64abc4d
      Signed-off-by: default avatarDandan Sun <dandan.sun@nxp.com>
      602439ea
  14. Jan 07, 2022
  15. Jan 05, 2022
    • Ondrej Lutera's avatar
    • Zhipeng Wang's avatar
      MA-19930 clk: imx8mp: fix clock tree update of TF-A managed clocks · 509fe6bf
      Zhipeng Wang authored
      
      On the i.MX8M*, the TF-A exposes a SiP (Silicon Provider) service
      for DDR frequency scaling. The imx8m-ddrc-devfreq driver calls the
      SiP and then does clk_set_parent on the DDR muxes to synchronize
      the clock tree.
      
      Since 936c3836 ("clk: imx: fix composite peripheral flags"),
      these TF-A managed muxes have SET_PARENT_GATE set, which results
      in imx8m-ddrc-devfreq's clk_set_parent after SiP failing with -EBUSY:
      
      clk_set_parent(dram_apb_src, sys1_pll_40m);(busfreq-imx8mq.c)
      
      This is safe to do, because updating the Linux clock tree to reflect
      reality will always be glitch-free.
      
      Since 926bf912("clk: imx8m: fix clock tree update of TF-A
      managed clocks"), it adds this method and enables 8mm, 8mn and 8mq. I
      think 8mp is also needed.
      
      Another reason I added this patch is that powersave image BT music
      requires dram to be 400MTS, so clk_set_parent(dram_alt_src,
      sys1_pll_800m); is required. Without this patch, it will not succeed.
      
      Change-Id: I4f07573dea4ac9a8a88b04cf795b346299940635
      Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
      509fe6bf
  16. Jan 04, 2022
Loading