Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCC startup (istep 21.1) #100

Merged
merged 66 commits into from
Oct 20, 2021
Merged

OCC startup (istep 21.1) #100

merged 66 commits into from
Oct 20, 2021

Commits on Oct 19, 2021

  1. Add OCC operations

    Signed-off-by: Igor Bagnucki <igor.bagnucki@3mdeb.com>
    Igor Bagnucki authored and SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    e166d04 View commit details
    Browse the repository at this point in the history
  2. Beginning of istep 21.1

    Change-Id: Ia342e6befc92c52dcced360dbc5c658ddf31d6b8
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    fbd21d6 View commit details
    Browse the repository at this point in the history
  3. Continue with start_pm_complex()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    a292066 View commit details
    Browse the repository at this point in the history
  4. Finish with setup_memory_boot()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6d0bb7a View commit details
    Browse the repository at this point in the history
  5. Implement special_wakeup_all(enable=false)

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    11ed04b View commit details
    Browse the repository at this point in the history
  6. pm_corequad_init()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    08990d1 View commit details
    Browse the repository at this point in the history
  7. Implement pstate_gpe_init()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    e82f559 View commit details
    Browse the repository at this point in the history
  8. Implement pm_pba_init()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5556398 View commit details
    Browse the repository at this point in the history
  9. Initialize MCS bits in configuration vector

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    dcf3260 View commit details
    Browse the repository at this point in the history
  10. Implement wait_for_occ_checkpoint()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6c99246 View commit details
    Browse the repository at this point in the history
  11. Implement poll_occ()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6c498cc View commit details
    Browse the repository at this point in the history
  12. The bulk of sending commands to OCC

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    8a758f0 View commit details
    Browse the repository at this point in the history
  13. Finish implementing communication with OCC

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    ec9c079 View commit details
    Browse the repository at this point in the history
  14. Implement switching OCC to active state

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    8bb2627 View commit details
    Browse the repository at this point in the history
  15. Initialize user power limit (no limit)

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    efeab6c View commit details
    Browse the repository at this point in the history
  16. Start implementing send_occ_config_data()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    2ba98cf View commit details
    Browse the repository at this point in the history
  17. Add PCAP config data

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    429affe View commit details
    Browse the repository at this point in the history
  18. Do not auto-start Pstate GPE protocol

    Hostboot doesn't seem to do it and it times out anyway.
    
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    c794f08 View commit details
    Browse the repository at this point in the history
  19. Fix SCOM addrs in pba_slave_setup_runtime_phase()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d1c99d8 View commit details
    Browse the repository at this point in the history
  20. Fix bugs on constructing bootcode for OCC

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5ed5194 View commit details
    Browse the repository at this point in the history
  21. Simplify pba_slave_setup_runtime_phase()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    242647d View commit details
    Browse the repository at this point in the history
  22. Fix stack usage errors

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    4e2483f View commit details
    Browse the repository at this point in the history
  23. Fix PPC_PLACE() macros in pb_pba_init()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    9dff7d5 View commit details
    Browse the repository at this point in the history
  24. Simplify pm_pba_bar_config()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3343f06 View commit details
    Browse the repository at this point in the history
  25. Add pm_pss_init()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    ab549ba View commit details
    Browse the repository at this point in the history
  26. pstate_gpe_init() fixes

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    0249f68 View commit details
    Browse the repository at this point in the history
  27. Fix wait_for_occ_checkpoint()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    25b2d10 View commit details
    Browse the repository at this point in the history
  28. Comments and formatting

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    8c0de36 View commit details
    Browse the repository at this point in the history
  29. Bug fixes

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3fd34b6 View commit details
    Browse the repository at this point in the history
  30. Pass APSS, MEMCFG and SYSCFG data to OCC

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    ecf16b1 View commit details
    Browse the repository at this point in the history
  31. The rest of configuration data

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    63af1aa View commit details
    Browse the repository at this point in the history
  32. Process OCC errors

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    34336c9 View commit details
    Browse the repository at this point in the history
  33. More error reporting

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    04cadc4 View commit details
    Browse the repository at this point in the history
  34. Improve get_gpu_msg_data()

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    441027e View commit details
    Browse the repository at this point in the history
  35. istep 16.2

    Change-Id: I082ed14d5c6f7fa26a6edefd6d73f725b0b36cd9
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    b6346e1 View commit details
    Browse the repository at this point in the history
  36. Set error masks like Hostboot does

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    eba8aca View commit details
    Browse the repository at this point in the history
  37. Better logging

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    4cbe4c2 View commit details
    Browse the repository at this point in the history
  38. Restart SGPE before starting OCC

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    903e6e8 View commit details
    Browse the repository at this point in the history
  39. Don't add istep 16.2 here

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    662e05b View commit details
    Browse the repository at this point in the history
  40. Remove SGPE reset code

    It didn't work and this can be done differently.
    
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    f05f377 View commit details
    Browse the repository at this point in the history
  41. Start OCC in istep 15.4

    This makes resetting it later unnecessary.
    
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    4258ac7 View commit details
    Browse the repository at this point in the history
  42. Some code improvements

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d43d380 View commit details
    Browse the repository at this point in the history
  43. Remove debug output

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d3c755d View commit details
    Browse the repository at this point in the history
  44. Add informational messages

    It takes some time to start OCC.
    
    Change-Id: I1609349c673b4f0295e4e743add61f66a66aa6b1
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    1d7d73f View commit details
    Browse the repository at this point in the history
  45. Formatting corrections for occ.h/occ.c

    Change-Id: I56651886bc752ce9f17707ff0393abfdb65cb51d
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    bd04816 View commit details
    Browse the repository at this point in the history
  46. A couple of corrections

    Change-Id: I4ab8a73cb73ccd486f08713920e8c389adff22b7
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    27bb8b7 View commit details
    Browse the repository at this point in the history
  47. Remove makeStart405Instruction() and related

    Change-Id: I632fbad29216554ba44055ce803d912a4246da4c
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    a547bf1 View commit details
    Browse the repository at this point in the history
  48. Extract ops.h

    Change-Id: Ia3d53035ac34e64cd5c224e1423526990f62df06
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    57c1d80 View commit details
    Browse the repository at this point in the history
  49. Move some OCC-specific code from homer.c to occ.c

    Change-Id: Iebbba0ecaa235c37c70d182ec03022d852402971
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6b1e3ed View commit details
    Browse the repository at this point in the history
  50. Update OP codes

    Change-Id: Idfe51a377fd01d945ba888f4cc613742f067a955
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5589346 View commit details
    Browse the repository at this point in the history
  51. Fixes for sending wakeups

    Change-Id: I5a011866c2453801a5e998fe87550b3e288f970d
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    953dd8b View commit details
    Browse the repository at this point in the history
  52. Don't set HOMER BAR second time

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    8dc0379 View commit details
    Browse the repository at this point in the history
  53. Remove extra delay in check_ocb_mode()

    Change-Id: I53c1c46492d57032d02bf3fc514933e4f4f50597
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6f1f74b View commit details
    Browse the repository at this point in the history
  54. Move ppc_* functions from occ.c to ops.h

    Change-Id: Ic6ebdd8e6fa2f8347f60d6a2435ce7c4ef1eb19d
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3eb1d82 View commit details
    Browse the repository at this point in the history
  55. Simplify special_occ_wakeup_disable()

    Change-Id: I93427b99d18f3ca8b35c5cc9d0414a8d868f7f6d
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    2d9b4b3 View commit details
    Browse the repository at this point in the history
  56. Comments and corrections for pm_pss_init()

    Change-Id: I75a7bbf1474ffe556356f04e28d23bd47d14004f
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    85949d4 View commit details
    Browse the repository at this point in the history
  57. Remove duplicated pba slave setup

    Change-Id: I8a634e023dd8cecfa771c68ebe5134c1d4acf04e
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    61ecb4c View commit details
    Browse the repository at this point in the history
  58. Fix deadcode in write_occ_cmd()

    Change-Id: Ia13098cedf6e68889a4152dfb616710aebb488d1
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    f02ea98 View commit details
    Browse the repository at this point in the history
  59. Various review corrections

    Change-Id: Ia70f487001b965648ec779353149f2c62f996670
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3c6d38c View commit details
    Browse the repository at this point in the history
  60. Compute SCOM values using PPC_* macros

    Change-Id: I306de2b11cd98cc99c3262dc74dabcf8c22565d7
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    4cf184a View commit details
    Browse the repository at this point in the history
  61. Use correct PB freq in one more place

    Change-Id: I212fec18384c81488b5f3de1631dda1df08248d0
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d579f61 View commit details
    Browse the repository at this point in the history
  62. Initialize PBA slaves earlier (on PBA reset)

    Change-Id: Ia0e991efe26b8abf6f020cb10eb82f951674e25b
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    f9c2637 View commit details
    Browse the repository at this point in the history
  63. Add pm_occ_fir_init()

    Change-Id: I483b9ce660a7d840a52437f1de0428df2ea84706
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5182aed View commit details
    Browse the repository at this point in the history
  64. Add pm_pba_fir_init()

    Also fix a bug in pm_occ_fir_init() and move the two functions to a
    separate file.
    
    Change-Id: Idbbbe002ed673beaad18ccd144f193a290baf969
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3bc8399 View commit details
    Browse the repository at this point in the history
  65. Make SCOM writes match Hostboot

    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6ec1403 View commit details
    Browse the repository at this point in the history
  66. Merge fir.c into occ.c

    Change-Id: I3e60bd4b2299691cb18df98c218514671eb3a440
    Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
    SergiiDmytruk committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    b1915fa View commit details
    Browse the repository at this point in the history