Firmware versioning best practices: ath3k-2.fw rename or replace ath3k-1.fw ?
Suraj,
What is the difference between ath3k-2.fw and ath3k-1.fw ?
Won't the API change now that you are addressing the sflash configuration fix? Would it not help to identify the two different firmwares then?
David, Marcel, what are your preferences for a firmware upgrade where the firmware does not change API (lets just pretend it does not for a moment) ? Do we keep the same filename?
In this particular case I would assume our new sflash configuration fix that might be being worked on might change the re-enumerated USB device IDs so it seems to me a good idea to use a new filename. I should note ath3k-2.fw already made it to linux-firmware.git...
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Does this sound sane? If so then the sflash configuration fix would seem to me like it would require a new filename. Now, while we're at it, how about bug fixes?
Suraj -- keep these discussions public please....
Luis
Hi Luis,
Quoted 3 lines · Luis Rodriguez
Suraj,
What is the difference between ath3k-2.fw and ath3k-1.fw ?
This is the same question for which I have been trying to get an answer. The only information that I got was it fixes some critical bug and support shared antenna.
If ath3k-2.fw is an upgrade of ath3k-1.fw why do we need to name it differently?
Quoted 8 lines
Won't the API change now that you are addressing the sflash configuration fix? Would it not help to identify the two different firmwares then?
David, Marcel, what are your preferences for a firmware upgrade where the firmware does not change API (lets just pretend it does not for a moment) ? Do we keep the same filename?
Marcel had answered me before. It makes sense to have same file name. Other ways we end up changing the driver whenever there is a firmware change.
Quoted 10 lines
In this particular case I would assume our new sflash configuration fix that might be being worked on might change the re-enumerated USB device IDs so it seems to me a good idea to use a new filename. I should note ath3k-2.fw already made it to linux-firmware.git...
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Quoted 7 lines
Does this sound sane? If so then the sflash configuration fix would seem to me like it would require a new filename. Now, while we're at it, how about bug fixes?
Suraj -- keep these discussions public please....
Luis
Regards
Suraj
Quoted 5 lines · Suraj Sumangala
Hi Luis,
Quoted 2 lines · Luis Rodriguez
Suraj,
Quoted 8 lines
Quoted 1 line
What is the difference between ath3k-2.fw and ath3k-1.fw ?
This is the same question for which I have been trying to get an answer. The only information that I got was it fixes some critical bug and support shared antenna.
If ath3k-2.fw is an upgrade of ath3k-1.fw why do we need to name it differently?
Sure, agreed, but what about the sflash configuration fix?
Quoted 4 lines
Quoted 4 lines
Won't the API change now that you are addressing the sflash configuration fix? Would it not help to identify the two different firmwares then?
Quoted 12 lines
Quoted 3 lines
David, Marcel, what are your preferences for a firmware upgrade where the firmware does not change API (lets just pretend it does not for a moment) ? Do we keep the same filename?
Marcel had answered me before. It makes sense to have same file name. Other ways we end up changing the driver whenever there is a firmware change.
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
Luis
Quoted 7 lines · Luis R. Rodriguez
Quoted 4 lines
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
I would summarize it as:
If a new firmware version also works with an old driver, keep the filename.
If a new firmware version also requires a new driver, change the name.
If a new driver requires a new firmware, change the name.
c'ya
sven-haegar
Signature · 2 lines
Three may keep a secret, if two of them are dead. - Ben F.
Marcel Holtmann
maintainerHi Sven-Haeger,
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
I would summarize it as:
If a new firmware version also works with an old driver, keep the filename.
correct.
Quoted 3 lines
If a new firmware version also requires a new driver, change the name.
If a new driver requires a new firmware, change the name.
These two depend. The exposed API stays the same. The firmware file itself is the same. Just the loading procedure is different. So no need to change the firmware name.
Let me repeat this. If the API of the firmware exposed after loading it, breaks or is incompatible, then you need a new name.
If you have generic commands to detect features in the firmware, then you should never be needed to change your firmware name. So you could extend the API as much as you like with keeping the same name.
The different firmware names are for the driver to be able to detect the API of the firmware. And only if that is only possible via the filename you should use different filenames. Otherwise don't bother and use the generic feature detection of the firmware itself.
And for Bluetooth in specific that is HCI. So any company needed different firmware filenames for Bluetooth have done something really really wrong in their development cycles.
Regards
Marcel
Quoted 5 lines · Luis R. Rodriguez
Quoted 3 lines · Suraj Sumangala
Marcel had answered me before. It makes sense to have same file name. Other ways we end up changing the driver whenever there is a firmware change.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
I don't really understand why you would not want to change the code revision part of the filename.
I totally agree that you don't want to change the driver every time the firmware gets a bug fix, but wasn't that the whole point of splitting the name into API and code revisions portions, and symlinking the file to one that just has the API version?
What's the issue with using the process as originally documented?
- Henry
Marcel Holtmann
maintainerHi Henry,
Quoted 15 lines
Quoted 11 lines
Quoted 8 lines
Marcel had answered me before. It makes sense to have same file name. Other ways we end up changing the driver whenever there is a firmware change.
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
I don't really understand why you would not want to change the code revision part of the filename.
Quoted 6 lines
I totally agree that you don't want to change the driver every time the firmware gets a bug fix, but wasn't that the whole point of splitting the name into API and code revisions portions, and symlinking the file to one that just has the API version?
What's the issue with using the process as originally documented?
as I stated before, for Bluetooth this makes no sense. You don't need API version numbers since the API is a STANDARD. It is called HCI. So please don't use API version numbers in the firmware files.
I will reject firmware file versions for upstream drivers.
Regards
Marcel
Quoted 22 lines · Marcel Holtmann
Hi Henry,
Quoted 20 lines
Quoted 11 lines
Quoted 8 lines
Marcel had answered me before. It makes sense to have same file name. Other ways we end up changing the driver whenever there is a firmware change.
Quoted 4 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Thanks, I've updated that link above to document bug fixing does not require a filename change.
I don't really understand why you would not want to change the code revision part of the filename.
I totally agree that you don't want to change the driver every time the firmware gets a bug fix, but wasn't that the whole point of splitting the name into API and code revisions portions, and symlinking the file to one that just has the API version?
Quoted 7 lines
Quoted 1 line
What's the issue with using the process as originally documented?
as I stated before, for Bluetooth this makes no sense. You don't need API version numbers since the API is a STANDARD. It is called HCI. So please don't use API version numbers in the firmware files.
I will reject firmware file versions for upstream drivers.
Does the HCI standard ever get improved upon? If so, how do devices never get firmware updates that would allow them to use some newer HCI APIs?
I've updated the documentation above for 802.11 and Bluetooth with the above, please feel free to further extend it as you see fit.
Luis
SGkgTHVpcywNCg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGxpbnV4 LWJsdWV0b290aC1vd25lckB2Z2VyLmtlcm5lbC5vcmcgW21haWx0bzpsaW51eC1ibHVldG9vdGgt DQo+IG93bmVyQHZnZXIua2VybmVsLm9yZ10gT24gQmVoYWxmIE9mIEx1aXMgUi4gUm9kcmlndWV6 DQo+IFNlbnQ6IFdlZG5lc2RheSwgT2N0b2JlciAxMywgMjAxMCAxMDo0MyBBTQ0KPiBUbzogTWFy Y2VsIEhvbHRtYW5uDQo+IENjOiBIZW5yeSBQdGFzaW5za2k7IFN1cmFqIFN1bWFuZ2FsYTsgTHVp cyBSb2RyaWd1ZXo7IERhdmlkIFdvb2Rob3VzZTsNCj4gbGludXgtYmx1ZXRvb3RoOyBsaW51eC1r ZXJuZWxAdmdlci5rZXJuZWwub3JnOyBsaW51eC13aXJlbGVzcw0KPiBTdWJqZWN0OiBSZTogRmly bXdhcmUgdmVyc2lvbmluZyBiZXN0IHByYWN0aWNlczogYXRoM2stMi5mdyByZW5hbWUgb3INCj4g cmVwbGFjZSBhdGgzay0xLmZ3ID8NCj4gDQo+IE9uIFdlZCwgT2N0IDEzLCAyMDEwIGF0IDM6MDYg QU0sIE1hcmNlbCBIb2x0bWFubiA8bWFyY2VsQGhvbHRtYW5uLm9yZz4NCj4gd3JvdGU6DQo+ID4g SGkgSGVucnksDQo+ID4NCj4gPj4gPiA+IE1hcmNlbCBoYWQgYW5zd2VyZWQgb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KPiAgIEx1aXMNCg0KSENJIGlzIGFsd2F5cyBiYWNrd2FyZCBjb21wYXRpYmxlLiAgTmV3ZXIg Y29tbWFuZHMgYXJlIHByb3Blcmx5IGRpc2NvdmVyYWJsZSBieSBib3RoIHNpZGVzIG9mIHRoZSBI Q0kgbGluay4NCkFzIGxvbmcgYXMgdGhlIHByb2NlZHVyZSB0byBkb3dubG9hZCBmaXJtd2FyZSBk b2VzIG5vdCBkZXBlbmQgb24gbmV3IEhDSSBjb21tYW5kcyAoaXQgZG9lcyBub3QpLCB0aGVuIHRo ZSBmaXJtd2FyZSBpdHNlbGYgY2FuIHRlYWNoIGFuIG9sZCBjb250cm9sbGVyIHRvIGxlYXJuIG5l dyB0cmlja3MuDQoNCglLKysNCg==
Quoted 58 lines · Kevin Hayes
Hi Luis,
Quoted 55 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Luis R. Rodriguez
Sent: Wednesday, October 13, 2010 10:43 AM
To: Marcel Holtmann
Cc: Henry Ptasinski; Suraj Sumangala; Luis Rodriguez; David Woodhouse; linux-bluetooth; [email protected]; linux-wireless
Subject: Re: Firmware versioning best practices: ath3k-2.fw rename or replace ath3k-1.fw ?Quoted 3 lines · Marcel Holtmann
Hi Henry,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Marcel had answered me before. It makes sense to have same file
name.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Other ways we end up changing the driver whenever there is a
firmware
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
change.
Quoted 3 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-
versioningQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Thanks, I've updated that link above to document bug fixing does
not require
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
a filename change.
I don't really understand why you would not want to change the code
revision
Quoted 3 lines
Quoted 3 lines
part of the filename.
I totally agree that you don't want to change the driver every time
the
Quoted 1 line
Quoted 1 line
firmware gets a bug fix, but wasn't that the whole point of
splitting the name
Quoted 1 line
Quoted 1 line
into API and code revisions portions, and symlinking the file to one
that just
Quoted 9 lines
Quoted 3 lines
has the API version?
What's the issue with using the process as originally documented?
as I stated before, for Bluetooth this makes no sense. You don't need API version numbers since the API is a STANDARD. It is called HCI. So please don't use API version numbers in the firmware files.
I will reject firmware file versions for upstream drivers.
Does the HCI standard ever get improved upon? If so, how do devices never get firmware updates that would allow them to use some newer HCI APIs?
Quoted 6 lines
Quoted 4 lines
I've updated the documentation above for 802.11 and Bluetooth with the above, please feel free to further extend it as you see fit.
=C2=A0 Luis
HCI is always backward compatible. =C2=A0Newer commands are properly disc=
overable by both sides of the HCI link.
Quoted 1 line
As long as the procedure to download firmware does not depend on new HCI =
commands (it does not), then the firmware itself can teach an old controlle= r to learn new tricks.
Does HCI support uploading firmware? Can't we resolve this blacklist crap issue if devices just used HCI to upload firmware?
Luis
SGkgTHVpcywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBsaW51eC1i bHVldG9vdGgtb3duZXJAdmdlci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtYmx1ZXRvb3RoLQ0K PiBvd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBMdWlzIFIuIFJvZHJpZ3Vleg0K PiBTZW50OiBXZWRuZXNkYXksIE9jdG9iZXIgMTMsIDIwMTAgMTE6MTAgQU0NCj4gVG86IEtldmlu IEhheWVzDQo+IENjOiBMdWlzIFJvZHJpZ3VlejsgTWFyY2VsIEhvbHRtYW5uOyBIZW5yeSBQdGFz aW5za2k7IFN1cmFqIFN1bWFuZ2FsYTsNCj4gRGF2aWQgV29vZGhvdXNlOyBsaW51eC1ibHVldG9v dGg7IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LQ0KPiB3aXJlbGVzcw0KPiBT dWJ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mVwb3J0IHRo ZSBQSUQuDQpJdCBtdXN0IGJlIHNvbWUgZXh0ZXJuYWwgY29kZSB0aGF0IHBpY2tzIHRoZSBmaXJt d2FyZSB0byBsb2FkIGFuZCBpbmplY3QgaXQgaW50byB0aGUgY29udHJvbGxlci4NClRoYXQgZXh0 ZXJuYWwgY29kZSBpcyB0aGUgREZVIGJpdC4gIFdlIG11c3QgYmxhY2tsaXN0IHRoZSBkZXZpY2Ug c28gdGhhdCBidHVzYiBkb2VzIG5vdCBjbGFpbSBpdCwgc28gd2UgY2FuIHVzZSB0aGUgREZVLg0K DQogICAgSysrDQoNCltQYXJkb24gdGhlIGdhcmJhZ2UgdGhhdCBvdXIgbWFpbCBzZXJ2ZXIgYWRk cy4uLl0NCg0KDQoNCg0KDQo=
Hi Luis,
Quoted 2 lines · Luis R. Rodriguez
Does HCI support uploading firmware? Can't we resolve this blacklist crap issue if devices just used HCI to upload firmware?
HCI does not support uploading firmware. But HCI does provide options for vendor specific commands that can be used for uploading firmware as long as your device has enough intelligence to understand the command when it comes.
This is what we do for AR300x serial devices. We do not download firmware, but we do download all configuration entries as VS HCI commands.
Quoted 2 lines
Luis
Regards
Suraj
Marcel Holtmann
maintainerHi Luis,
Quoted 9 lines
What is the difference between ath3k-2.fw and ath3k-1.fw ?
Won't the API change now that you are addressing the sflash configuration fix? Would it not help to identify the two different firmwares then?
David, Marcel, what are your preferences for a firmware upgrade where the firmware does not change API (lets just pretend it does not for a moment) ? Do we keep the same filename?
that is what most companies do and that is what iwlwifi has done so far. Only if the API breaks a different suffix is used.
With Bluetooth this should be never needed at all. The reason is that you need to expose Bluetooth HCI. And that has generic version, support commands and supported features commands.
We are not even using the version information for anything useful these days since the firmware has to identify its features and its supported commands with standard HCI commands. So it is pretty simple to detect what Bluetooth subsystem needs to do.
Quoted 4 lines
In this particular case I would assume our new sflash configuration fix that might be being worked on might change the re-enumerated USB device IDs so it seems to me a good idea to use a new filename. I should note ath3k-2.fw already made it to linux-firmware.git...
No it does not. The changed PID is not a breakage. It will just keep working. So please fix this in linux-firmware.git right away and remove the new firmware file.
And here is something that is wrong with your process as well. Don't submit firmware files upstream before the upstream maintainers accepted your driver or patch.
I know it is nice to have the firmware available quickly, but if your driver gets rejected for the reason we have stated in this thread, you have dangling firmware somewhere.
Quoted 7 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Does this sound sane? If so then the sflash configuration fix would seem to me like it would require a new filename. Now, while we're at it, how about bug fixes?
If your firmware files are identical and the exposed API is identical (in this case Bluetooth HCI), then you do NO need a new filename.
Regards
Marcel
Quoted 8 lines · Marcel Holtmann
Hi Luis,
Quoted 6 lines
What is the difference between ath3k-2.fw and ath3k-1.fw ?
Won't the API change now that you are addressing the sflash configuration fix? Would it not help to identify the two different firmwares then?
Quoted 5 lines
Quoted 3 lines
David, Marcel, what are your preferences for a firmware upgrade where the firmware does not change API (lets just pretend it does not for a moment) ? Do we keep the same filename?
that is what most companies do and that is what iwlwifi has done so far.
Luis
this is what we have been doing for our ath9k_htc driver. We kept the same fie name for firmware updates as we haven't changed any APIs/interfaces that host driver depends on.
Quoted 48 lines
Only if the API breaks a different suffix is used.
With Bluetooth this should be never needed at all. The reason is that you need to expose Bluetooth HCI. And that has generic version, support commands and supported features commands.
We are not even using the version information for anything useful these days since the firmware has to identify its features and its supported commands with standard HCI commands. So it is pretty simple to detect what Bluetooth subsystem needs to do.
Quoted 4 lines
In this particular case I would assume our new sflash configuration fix that might be being worked on might change the re-enumerated USB device IDs so it seems to me a good idea to use a new filename. I should note ath3k-2.fw already made it to linux-firmware.git...
No it does not. The changed PID is not a breakage. It will just keep working. So please fix this in linux-firmware.git right away and remove the new firmware file.
And here is something that is wrong with your process as well. Don't submit firmware files upstream before the upstream maintainers accepted your driver or patch.
I know it is nice to have the firmware available quickly, but if your driver gets rejected for the reason we have stated in this thread, you have dangling firmware somewhere.
Quoted 7 lines
I last tried to document a thread we had over this here:
http://wireless.kernel.org/en/developers/Documentation/firmware-versioning
Does this sound sane? If so then the sflash configuration fix would seem to me like it would require a new filename. Now, while we're at it, how about bug fixes?
If your firmware files are identical and the exposed API is identical (in this case Bluetooth HCI), then you do NO need a new filename.
Regards
Marcel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html