[PATCH] fpga zynq: Check the bitstream for validity
Jason Gunthorpe
jgunthorpe at obsidianresearch.com
Mon Nov 28 10:00:24 PST 2016
I seem to have missed being CC on this follow up from Mike and wanted
to respond:
> What you're creating here will require active maintenance. There
> are already 7007 and 7012 devices which aren't in your list so the
> driver will refuse to load them until someone fills in the IDs.
I don't know what list you are refering to, are you sure you are
responding to the right patch?
The patch searches for the sync word, it has nothing to do with IDs,
and does not attempt to parse any of the proprietary headers. Based on
the Xilinx documentation this will work on 7 Series, US and US+ at a
minimum. Certainly on all Zynq hardware.
> The bitstream format is actually proprietary and undocumented.
> Any "checks" in code are likely based on guesswork and reverse
> engineering.
No, this part is fully documented in UG470.
> We also use partial reprogramming a lot. Did you test
> that? On all devices?
You should read the patch, it only does the check on a full bitstream.
Jason
More information about the linux-arm-kernel
mailing list