ARM-software / tf-issues

Issue tracking for the ARM Trusted Firmware project
37 stars 16 forks source link

del PSCI code for bare metal soc bringup #58

Closed chinamao closed 10 years ago

chinamao commented 10 years ago

hi, experts: For the bare-metal SOC bringup, PSCI related code seems redundant. So: Is there any simple method to exclude psci related code when compiling ATF code?

Not call runtime_svc_init() is enough?

best wishes,

danh-arm commented 10 years ago

I guess you're saying that (temporarily at least) you're only interested in cold boot of the SoC and you don't need any runtime secure world functionality (like PSCI)? Currently this isn't a supported configuration but I can see a few ways of modifying the generic code to achieve that:

  1. As you suggest, modify bl31_main() to disable runtime services. That might work on its own but there would be lots of other redundant code in BL3-1.
  2. Comment out the code that registers the PSCI runtime service (DECLARE_RT_SVC) in psci_setup.c. Again, that would leave lots of redundant code.
  3. Modify bl2_main() to not load BL3-1 at all and pass control directly to non-trusted firmware (BL3-3).

If you have a longer term requirement to disable some of this generic code in your SoC port, you should come and speak to us about what you need from the ARM Trusted Firmware project.

Regards

Dan.

chinamao commented 10 years ago

hi, danh: Yes, my goal is: "Only interested in cold boot of the SOC, not need any runtime secure world functionality temporarily ."

I prefer your method 3.

Thanks a lot!