On Fri, 23 Aug 2019 21:44:42 +0200,Correct - I didn't change any of the underlying mechanisms,
Scott Branden wrote:
Hi Takashi,But how? You patch doesn't change anything about the fallback loading
Thanks for review. comments below.
On 2019-08-23 3:05 a.m., Takashi Iwai wrote:
On Thu, 22 Aug 2019 21:24:46 +0200,Seems to work fine in the fw_run_tests.sh with fallbacks.
Scott Branden wrote:
Add offset to request_firmware_into_buf to allow for portionsAFAIU, this won't work with the fallback user helper, right?
of firmware file to be read into a buffer. Necessary where firmware
needs to be loaded in portions from file in memory constrained systems.
mechanism.
Or, if the expected behavior is to load the whole contentThe merit of the API is that the entire file is not copied into a buffer.
and then copy a part, what's the merit of this API?
I don't know what the underlying mechanisms are doing right now.
This looks also suspicious. Loading a part of the file from theAlso it won't work for the compressed firmware files as-is.Although unnecessary, seems to work fine in the fw_run_tests.sh with
"both" and "xzonly" options.
middle and decompression won't work together, from obvious reasons.
Then all of the tests for "both" and "xzonly" could be broken.
If the test passes, it means that the test itself is more likely
incorrect, I'm afraid.
Regards,
thanks,
Takashi