dma: imx-sdma: Add ssi dual fifo script support]
PATCH 1/3 dma: imx-sdma: Add ssi dual fifo script support]
Just found that I missed Sascha's mail address in my TO list of last reply. So resend it. And sorry for the duplicated mails.
----- Forwarded message from Nicolin Chen <[email protected]> -----
Date: Wed, 30 Oct 2013 12:48:48 +0800
From: Nicolin Chen <[email protected]>
Subject: Re: [PATCH 1/3] dma: imx-sdma: Add ssi dual fifo script support
User-Agent: Mutt/1.5.21 (2010-09-15)
Hi Sascha,
Quoted 33 lines · Sascha Hauer
Look at
drivers/dma/imx-sdma.c:Quoted 7 lines
/**
* structsdma_firmware_header- Layout of the firmware image *
* @magic "SDMA"
* @version_major increased whenever layout of struct
*sdma_script_start_addrs
* changes.Can you image why this firmware has a version field? Right, it's because it encodes the layout of struct
sdma_script_start_addrs.As the comment clearly states you have to *increase this field* when you add scripts.
Obviously you missed that, as the firmware on lkml posted recently shows:
Quoted 1 line
00000000:
414d445300000001 000000010000001cSDMA............^^^^^^^^ Still '1'Quoted 10 lines
00000010: 00000026
000000b40000067a00000282 &.......z....... 00000020: ffffffff 00000000 ffffffff ffffffff ................ 00000030: ffffffff ffffffff ffffffff ffffffff ................ 00000040: ffffffff ffffffff00001a6affffffff ........j....... 00000050:000002eb000018bbffffffff 00000408 ................ 00000060: ffffffff000003c0ffffffff ffffffff ................ 00000070: ffffffff000002abffffffff0000037b............{... 00000080: ffffffff ffffffff0000044c0000046e........L...n... 00000090: ffffffff 00001800 ffffffff ffffffff ................000000a0: 00000000 00001800 0000186200001a16........b.......
Quoted 9 lines
^^^^^^^^^^^^^^^^^
new script addresses introducedReview
Quoted 2 lines
(quoted diff) +1
-1-#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 34 +#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 37And no, this is not a bug. It's your firmware header that is buggy.
I wasn't aware that the problem is far more complicated than I thought. And thank you for telling me all this.
Quoted 11 lines
What you need is:
#define
SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V237You (you as a company, not you as a person) knew that it was me who created this firmware format. So it was absolutely unnecessary to create an incompatible firmware instead of dropping me a short note.
Please add a version check to the driver as necessary and provide a proper firmware.
Just currently it's not easy for me to create a new proper firmware, and I's been told that besides this version number, it also lacks a decent license info. So may I just refine this patch as you suggested to add a version check and add those new scripts first?
Thank you,
Nicolin Chen
Quoted 8 lines
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
----- End forwarded message -----
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html