NSP Images upstream for Nord Platform
Hi,
We are currently planning to upstream the NSP firmware for the Nord platform. The platform contains four NSPs, and a single NSP firmware binary is built that can be used across all of them. However, the current SSL validation mechanism requires a unique SWID to authenticate firmware loading on each NSP. As a result, four copies of the same firmware image are generated during the build process, with each copy undergoing a signing step to embed the corresponding SWID information.
This approach is consistent with the methodology followed in the earlier Nord program where firmware was successfully delivered. The same reference image is used for both QLI and upstream releases.
We attempted to upstream all four NSP firmware images; however, the submission was rejected on the basis that the images are identical. While the underlying firmware content is the same, each image contains a distinct SWID and therefore does not represent a binary-identical copy. These uniquely signed images are required to ensure successful authentication and loading on their respective NSPs. This requirement arises from the current SSL authentication implementation governing firmware loading.
Several proposals have been discussed regarding potential enhancements to the SSL authentication process. The SSL team has evaluated these suggestions and is currently assessing available options. However, any viable solution would require significant design changes, along with the associated development effort and validation time.
In the interim, we request approval to upstream all four NSP firmware images. Although the images differ only in their embedded signatures (SWIDs), each is necessary for proper deployment and operation. Allowing these images to be upstreamed would help avoid blocking progress on the Nord project while a longer-term solution is being evaluated.
Regards,
Venkata Kasinath Kota
Quoted 20 lines · Venkata Kota
We are currently planning to upstream the NSP firmware for the Nord platform. The platform contains four NSPs, and a single NSP firmware binary is built that can be used across all of them. However, the current SSL validation mechanism requires a unique SWID to authenticate firmware loading on each NSP. As a result, four copies of the same firmware image are generated during the build process, with each copy undergoing a signing step to embed the corresponding SWID information.
This approach is consistent with the methodology followed in the earlier Nord program where firmware was successfully delivered. The same reference image is used for both QLI and upstream releases.
We attempted to upstream all four NSP firmware images; however, the submission was rejected on the basis that the images are identical. While the underlying firmware content is the same, each image contains a distinct SWID and therefore does not represent a binary-identical copy. These uniquely signed images are required to ensure successful authentication and loading on their respective NSPs. This requirement arises from the current SSL authentication implementation governing firmware loading.
Quoted 5 lines
Several proposals have been discussed regarding potential enhancements to the SSL authentication process. The SSL team has evaluated these suggestions and is currently assessing available options. However, any viable solution would require significant design changes, along with the associated development effort and validation time.
Thanks for providing a good summary. The mdt_loader, the module used by the DSP driver to load the firmware, already supports loading ELF firmware split into multiple binary segments. While this (legacy) format is considered obsolete, it gives a hint on how to support the Nord platform, while keeping linux-firmware contents sane.
Please split the signature segment to a separate file having .bNN extension (where NN is the segment index) and make sure that mdt_loader can load it correctly, possibly extending the helper code. Use symbolic links to share main firmware image, while keeping only signatures apart.
Signature · 2 lines
With best wishes Dmitry
Quoted 3 lines · Dmitry Baryshkov
ure segment to a separate file having .bNN
extension (where NN is the segment index) and make sure thatmdt_loadercan load it correctly, possibly extending the helper code. Use symbolic
will have to check with the teams on the possible implementation and the timelines in which they could deliver this solutions. Will comeback after talking to the concerned teams
Quoted 33 lines · Dmitry Baryshkov
Quoted 20 lines · Venkata Kota
We are currently planning to upstream the NSP firmware for the Nord platform. The platform contains four NSPs, and a single NSP firmware binary is built that can be used across all of them. However, the current SSL validation mechanism requires a unique SWID to authenticate firmware loading on each NSP. As a result, four copies of the same firmware image are generated during the build process, with each copy undergoing a signing step to embed the corresponding SWID information.
This approach is consistent with the methodology followed in the earlier Nord program where firmware was successfully delivered. The same reference image is used for both QLI and upstream releases.
We attempted to upstream all four NSP firmware images; however, the submission was rejected on the basis that the images are identical. While the underlying firmware content is the same, each image contains a distinct SWID and therefore does not represent a binary-identical copy. These uniquely signed images are required to ensure successful authentication and loading on their respective NSPs. This requirement arises from the current SSL authentication implementation governing firmware loading.
Quoted 5 lines
Several proposals have been discussed regarding potential enhancements to the SSL authentication process. The SSL team has evaluated these suggestions and is currently assessing available options. However, any viable solution would require significant design changes, along with the associated development effort and validation time.
Thanks for providing a good summary. The
mdt_loader, the module used by the DSP driver to load the firmware, already supports loading ELF firmware split into multiple binary segments. While this (legacy) format is considered obsolete, it gives a hint on how to support the Nord platform, while keeping linux-firmware contents sane.
Quoted 5 lines
Please split the signature segment to a separate file having .bNN extension (where NN is the segment index) and make sure that
mdt_loadercan load it correctly, possibly extending the helper code. Use symbolic links to share main firmware image, while keeping only signatures apart.
Hi Dmitry, I am working with the concerned teams to get this implemented and take care of this problem not for this chipset, but a bunch of them that would follow. This needs work from different teams and validation as well. This is not in the purview of the image team to make these changes and push. The solution needs to work upstream as well as on QLI metas planned internally. The estimated effort has been provided to be roughly a month considering changes (generic) to all branches wherever needed and push after validation. In the interim, in order to unblock the feature testing for NORD across teams for the next one month or so, the request is to allow the copies of the firmware for now. We would remove them with the right solution as soon as the solution is available with testing.
Quoted 36 lines · Venkata Kota
Quoted 33 lines · Dmitry Baryshkov
Quoted 20 lines · Venkata Kota
We are currently planning to upstream the NSP firmware for the Nord platform. The platform contains four NSPs, and a single NSP firmware binary is built that can be used across all of them. However, the current SSL validation mechanism requires a unique SWID to authenticate firmware loading on each NSP. As a result, four copies of the same firmware image are generated during the build process, with each copy undergoing a signing step to embed the corresponding SWID information.
This approach is consistent with the methodology followed in the earlier Nord program where firmware was successfully delivered. The same reference image is used for both QLI and upstream releases.
We attempted to upstream all four NSP firmware images; however, the submission was rejected on the basis that the images are identical. While the underlying firmware content is the same, each image contains a distinct SWID and therefore does not represent a binary-identical copy. These uniquely signed images are required to ensure successful authentication and loading on their respective NSPs. This requirement arises from the current SSL authentication implementation governing firmware loading.
Quoted 5 lines
Several proposals have been discussed regarding potential enhancements to the SSL authentication process. The SSL team has evaluated these suggestions and is currently assessing available options. However, any viable solution would require significant design changes, along with the associated development effort and validation time.
Thanks for providing a good summary. The
mdt_loader, the module used by the DSP driver to load the firmware, already supports loading ELF firmware split into multiple binary segments. While this (legacy) format is considered obsolete, it gives a hint on how to support the Nord platform, while keeping linux-firmware contents sane.
Quoted 6 lines
Quoted 5 lines
Please split the signature segment to a separate file having .bNN extension (where NN is the segment index) and make sure that
mdt_loadercan load it correctly, possibly extending the helper code. Use symbolic links to share main firmware image, while keeping only signatures apart.Hi Dmitry, I am working with the concerned teams to get this implemented and take care of this problem not for this chipset, but a bunch of them that would follow. This needs work from different teams and validation as well. This is not in the purview of the image team to make these changes and push. The solution needs to work upstream as well as on QLI metas planned internally. The estimated effort has been provided to be roughly a month considering changes (generic) to all branches wherever needed and push after validation. In the interim, in order to unblock the feature testing for NORD across teams for the next one month or so, the request is to allow the copies of the firmware for now. We would remove them with the right solution as soon as the solution is available with testing.
Hi Dmitry,
As I understand, we see this release this week is the only release before December, by when we would move to latest Kernel on this program.
There would not be any update on the NHLOS post this till December and this is to unblock the rest of the teams work on their PRs. We would work on getting the changes done for a single copy of the image by then and post proper testing across targets and images, we would make changes to the upstream branch as well. The request is to help unblock the internal development activity.
Quoted 55 lines · Venkata Kota
Quoted 52 lines · Venkata Kota
Quoted 49 lines · Dmitry Baryshkov
Quoted 28 lines · Venkata Kota
We are currently planning to upstream the NSP firmware for the Nord platform. The platform contains four NSPs, and a single NSP firmware binary
is built that can be used across all of them. However, the current SSL validation mechanism requires a unique SWID to authenticate firmware loading
on each NSP. As a result, four copies of the same firmware image are generated during the build process, with each copy undergoing a signing step
to embed the corresponding SWID information.This approach is consistent with the methodology followed in the earlier Nord program where firmware was successfully delivered. The same reference
image is used for both QLI and upstream releases.We attempted to upstream all four NSP firmware images; however, the submission was rejected on the basis that the images are identical. While
the underlying firmware content is the same, each image contains a distinct
SWID and therefore does not represent a binary-identical copy. These uniquely signed images are required to ensure successful authentication and
loading on their respective NSPs. This requirement arises from the current
SSL authentication implementation governing firmware loading.Quoted 8 lines
Several proposals have been discussed regarding potential enhancements to
the SSL authentication process. The SSL team has evaluated these suggestions
and is currently assessing available options. However, any viable solution
would require significant design changes, along with the associated development effort and validation time.Thanks for providing a good summary. The
mdt_loader, the module used by the DSP driver to load the firmware, already supports loading ELF firmware split into multiple binary segments. While this (legacy) format is considered obsolete, it gives a hint on how to support the Nord platform, while keeping linux-firmware contents sane.Please split the signature segment to a separate file having .bNN extension (where NN is the segment index) and make sure that
mdt_loadercan load it correctly, possibly extending the helper code. Use symbolic links to share main firmware image, while keeping only signatures apart.
Quoted 6 lines
Quoted 6 lines
Hi Dmitry, I am working with the concerned teams to get this implemented and take care of this problem not for this chipset, but a bunch of them that would follow. This needs work from different teams and validation as well. This is not in the purview of the image team to make these changes and push. The solution needs to work upstream as well as on QLI metas planned internally.
This is of no concern to the upstream linux-firmware or to the users of it. You are trying to add more firmware files, which takes some space, after it gets reworked we will still need to provide backwards compatibility for the exsting filenames in linux-firmware, etc.
Quoted 3 lines
Quoted 3 lines
The estimated effort has been provided to be
roughly a month considering changes (generic) to all branches wherever needed and push after validation.
mdt_loader already supports splitting the firmware into multiple segments and loading it from the split configuration. It just needs to be either reused as is or extended for this particular case. So, the month is an overkill for such a simple task.
Quoted 9 lines
Quoted 5 lines
In the interim, in order to unblock
the feature testing for NORD across teams for the next one month or so, the request is to allow the copies of the firmware for now. We would remove them with the right solution as soon as the solution is available with testing.Hi Dmitry,
As I understand, we see this release this week is the only release before December, by when we would move to latest Kernel on this program.
How is this related to the files being added to linux-firmware?
Quoted 1 line
There would not be any update on the NHLOS post this till December and this
Why? What if there are critical issues? Vulnerabilities?
More importantly, do you really need a new NHLOS update? Can it be solved completely on the kernel side?
Quoted 5 lines
is to unblock the rest of the teams work on their PRs. We would work on getting the changes done for a single copy of the image by then and post proper testing across targets and images, we would make changes to the upstream branch as well. The request is to help unblock the internal development activity.
Rejected. Internal development should not complicate upstream workflows or upstream support process. We have had complaints that there are too many firmware files for Qualcomm platforms. We should not bring extra firmware files for no reason. Consider this as a request to also fix lemans firmware to remove the duplication. On that platform, cdsp0/1 and gpdsp0/1 show a significant overlap between firmware files.
Signature · 2 lines
With best wishes Dmitry