14 Oct, 2020

1 commit

  • Currently "default" configuration option means coredumps are
    enabled. To avoid confusion rename the "default" configuration
    option to "enabled" and disable collection of dumps by default
    as doing so makes sense for production devices.

    Signed-off-by: Rishabh Bhatnagar
    Link: https://lore.kernel.org/r/1601662144-5964-2-git-send-email-rishabhb@codeaurora.org
    Signed-off-by: Bjorn Andersson

    Rishabh Bhatnagar
     

22 Jul, 2020

3 commits

  • The current coredump implementation uses vmalloc area to copy
    all the segments. But this might put strain on low memory targets
    as the firmware size sometimes is in tens of MBs. The situation
    becomes worse if there are multiple remote processors undergoing
    recovery at the same time. This patch adds inline coredump
    functionality that avoids extra memory usage. This requires
    recovery to be halted until data is read by userspace and free
    function is called.

    Reviewed-by: Bjorn Andersson
    Reviewed-by: Sibi Sankar
    Reviewed-by: Mathieu Poirier
    Signed-off-by: Rishabh Bhatnagar
    Tested-by: Sibi Sankar
    Link: https://lore.kernel.org/r/1594938035-7327-5-git-send-email-rishabhb@codeaurora.org
    Signed-off-by: Bjorn Andersson

    Rishabh Bhatnagar
     
  • Change the segment dump API signature to include size and offset
    arguments. Refactor the qcom_q6v5_mss driver to use these
    arguments while copying the segment. Doing this lays the ground
    work for "inline" coredump functionality being added in the next
    patch.

    Tested-by: Sibi Sankar
    Reviewed-by: Bjorn Andersson
    Reviewed-by: Sibi Sankar
    Reviewed-by: Mathieu Poirier
    Signed-off-by: Rishabh Bhatnagar
    Link: https://lore.kernel.org/r/1594938035-7327-4-git-send-email-rishabhb@codeaurora.org
    Signed-off-by: Bjorn Andersson

    Rishabh Bhatnagar
     
  • Move all coredump functionality to an individual file. This is
    being done so that the current functionality can be extended
    in future patchsets.

    Signed-off-by: Rishabh Bhatnagar
    Reviewed-by: Bjorn Andersson
    Reviewed-by: Mathieu Poirier
    Reviewed-by: Sibi Sankar
    Tested-by: Sibi Sankar
    Link: https://lore.kernel.org/r/1594938035-7327-2-git-send-email-rishabhb@codeaurora.org
    Signed-off-by: Bjorn Andersson

    Rishabh Bhatnagar