Skip to content

Conversation

artursartamonovsadi
Copy link

@artursartamonovsadi artursartamonovsadi commented Aug 27, 2025

Checks checksum of LDR Section headers.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

@@ -132,10 +138,10 @@ static struct adi_sharc_resource_table _rsc_table_template = {
},
};

enum adi_rproc_rpmsg_state {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes require a separate commit since they dont really contribute to the feature.

Also, if RPMsg and remoteproc are sharing a common structure/flags/states, would it be a better idea to look at a common abstraction layer that just plugs into the two interfaces? if so, do we need these changes for now?

}
if (ret) {
dev_err(rproc_data->dev, "Fail to request ICC IRQ\n");
if (!rproc_data->adi_rsc_table) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same...

}

return 0;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

if (rproc_data->verify)
dev_info(rproc_data->dev,
"Verified and loaded ldr\n");

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@pamolloy
Copy link
Collaborator

In the future if you are linting a source file (e.g. fixing line length) and making functional changes it would be nice to separate them into different commits

rproc_data->icc_irq_flags = IRQF_PERCPU | IRQF_SHARED | IRQF_ONESHOT;

irq_flags = IRQF_PERCPU | IRQF_SHARED | IRQF_ONESHOT;
rproc_data->icc_irq_flags = irq_flags;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra variable shouldn't be necessary if it is just fixing the line length


rproc_data = (struct adi_rproc_data *)rproc->priv;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this isn't a line length issue since the function header is longer?

* In case of Direct Code Execution and Single block boot streams it is possible
* to verify the block header via an xor checksum of the bcode_flag field.
*/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

}

/* Prepare in advance for an empty final block */
final_hdr_empty = !!(is_final_and_empty(next_hdr));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add !! here?

curr_hdr_xor_checksum);
return -EINVAL;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@artursartamonovsadi artursartamonovsadi force-pushed the adsp-main-6.12-integrate-remoteproc-crc branch from 98612ef to 3b2ee5c Compare August 29, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants