Skip to contentSkip to conversation

Qlogic/FC firmware

DISCUSSION David S. Miller 3 participants 9 messages Aug 21, 2001

lore
Share & tools
lore
#0 lore raw

Who removed it from the 2.4.x driver recently, and why?

I've been playing around, accidently corrupting my firmware a few times, and had to grab the firmware back from older trees to make my qlogic,FC card usable again.

Removing the firmware makes no sense, if the firmware was incorrect for some reason, simply correct it.

Later,
David S. Miller
[email protected]

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"David" == David S Miller <[email protected]> writes:

David> Who removed it from the 2.4.x driver recently, and why?

David> I've been playing around, accidently corrupting my firmware a David> few times, and had to grab the firmware back from older trees David> to make my qlogic,FC card usable again.

David> Removing the firmware makes no sense, if the firmware was David> incorrect for some reason, simply correct it.

Alan did after I pointed out to him that it was incompatible with the GPL (BSD license with advertisement clause). Really hard to fix unless you get QLogic to change the license for you.

Jes

#2 lore raw

From: Jes Sorensen <[email protected]>
Date: 21 Aug 2001 15:31:05 +0200

Alan did after I pointed out to him that it was incompatible with the GPL (BSD license with advertisement clause). Really hard to fix unless you get QLogic to change the license for you.

And what about the Qlogic,ISP firmware in the tree too? Those have no copyright notice, but I think this is due to omission. The same identical firmware code in Matt Jacob's isp_dist.tar.gz driver has the BSD license at the top of every firmware file.

You might as well remove all of these drivers in whole, as they are basically non-functional without the accompanying firmware.

Later,
David S. Miller
[email protected]

#3 lore raw
In reply to Jes Sorensen
Quoted 3 lines

Alan did after I pointed out to him that it was incompatible with the GPL (BSD license with advertisement clause). Really hard to fix unless you get QLogic to change the license for you.

Also the firmware we were including was seriously out of date, was a release candidate (not a certified release) and took up tons of ram

#4 lore raw

From: Alan Cox <[email protected]>
Date: Tue, 21 Aug 2001 14:44:16 +0100 (BST)

Also the firmware we were including was seriously out of date, was a release candidate (not a certified release) and took up tons of ram

In many cases the driver worked before, and fails to work afterwards.

I still contend that the whole driver should have been lifted instead of leaving a crippled version there.

Later,
David S. Miller
[email protected]

#7 lore raw
In reply to David S. Miller
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"David" == David S Miller <[email protected]> writes:

David> From: Jes Sorensen <[email protected]> Date: 21 Aug 2001
David> 15:31:05 +0200

Quoted 4 lines

Alan did after I pointed out to him that it was incompatible
with the GPL (BSD license with advertisement clause). Really hard to fix unless you get QLogic to change the license for you.

David> And what about the Qlogic,ISP firmware in the tree too? Those David> have no copyright notice, but I think this is due to omission. David> The same identical firmware code in Matt Jacob's David> isp_dist.tar.gz driver has the BSD license at the top of every David> firmware file.

I have no idea where that firmware comes from. Since QLogic has in fact re-released some of their firmware images under the GPL I have no reason to believe images without copyright messages are in violation of the BSD license.

If you have evidence that the isp driver ships with firmware thats in violation of the GPL, then please remove it as well.

David> You might as well remove all of these drivers in whole, as they David> are basically non-functional without the accompanying firmware.

So you are suggesting that we keep violating the GPL in order to help out people nuking their own flash by mistake?

The much cleaner way to solve this problem is to write a user space tool to upgrade the image in the flash ram on the QL with your latest favorite image found at www.qlogic.com. It's a 128KB image, you can write directly to the flash in two banks by setting the read/write bit and setting the 2nd bank bit for the last 64KB.

Jes

#8 lore raw

From: Jes Sorensen <[email protected]>
Date: 21 Aug 2001 15:51:55 +0200

The much cleaner way to solve this problem is to write a user space tool to upgrade the image in the flash ram on the QL with your latest favorite image found at www.qlogic.com. It's a 128KB image, you can write directly to the flash in two banks by setting the read/write bit and setting the 2nd bank bit for the last 64KB.

When the Qlogic,FC sees a master abort, the firmware is essentially cleared to zero.

This is what was happening to me.

Now what if I cannot boot now because this was on my root block device. I cannot even go back to a previous rev of the kernel I was working on to get it back.

If you're going to say "put the user thing in initrd", I'm going to say "bite me". I build a static kernel with no initrd and that is how I'd like it to stay. It is one thing to do initrd firmware loading for devices not necessary for booting and mounting root, that is acceptable, this isn't.

Jes, I think your arguments are wrong. I think the driver should have been removed in whole and replaced with something like this in qlogicfc.c so everyone would know what the problem is:

/* This driver was removed due to licensing in the firmware
* which conflicts with the GPL. The driver is only really
* fully functional with the firmware included, so instead of
* breaking half of the qlogic/fc users out there we removed
* this driver outright.
*/

I would have never sent out the email which started this thread had this been done. I would not have questioned anything, and would have instead said "unfortunate" to myself and left it at that.

Later,
David S. Miller
[email protected]

#5 lore raw
In reply to Jes Sorensen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"David" == David S Miller <[email protected]> writes:

David> From: Jes Sorensen <[email protected]> Date: 21 Aug 2001
David> 15:51:55 +0200

Quoted 6 lines

The much cleaner way to solve this problem is to write a
user space tool to upgrade the image in the flash ram on the QL with your latest favorite image found at www.qlogic.com. It's a 128KB image, you can write directly to the flash in two banks by setting the read/write bit and setting the 2nd bank bit for the last 64KB.

David> When the Qlogic,FC sees a master abort, the firmware is David> essentially cleared to zero.

David> This is what was happening to me.

Ehm, isn't the firmware only cleared to zero in the runtime memory or are you saying that they nuke their flash ram as well? If the flash ram is safe, you should still be able to boot any kernel and go from there after you reset the adapter.

Clearing the firmware is still utterly stupid, but thats a firmware stupidity. It is actually possibly to find the binary firmware image out in the flash, but it's located at a weird location that makes me suspect that they have some directory structure which I do not know about.

David> If you're going to say "put the user thing in initrd", I'm David> going to say "bite me". I build a static kernel with no initrd David> and that is how I'd like it to stay. It is one thing to do David> initrd firmware loading for devices not necessary for booting David> and mounting root, that is acceptable, this isn't.

Well I thought Linus said we were going to have a required init ramdisk for 2.5 anyway. But thats of course an unknown amount of time away.

David> Jes, I think your arguments are wrong. I think the driver David> should have been removed in whole and replaced with something David> like this in qlogicfc.c so everyone would know what the problem David> is:

I disagree, the driver will still work just fine for people who have the cards in machines such as PCs. I do agree however that it would probably have been a good idea to leave a note in there stating why it was removed.

However the reason I barked was because of you suggesting we remove all firmware or should just have left it in there. If we have a GPL violation then IMHO it has to be dealt with immediately, then we can look at the damages afterwards.

Jes

#6 lore raw

From: Jes Sorensen <[email protected]>
Date: 21 Aug 2001 16:28:09 +0200

However the reason I barked was because of you suggesting we remove all firmware or should just have left it in there. If we have a GPL violation then IMHO it has to be dealt with immediately, then we can look at the damages afterwards.

Lack of copyright does not imply "do whatever you want with it". The plain fact is that we don't know, and I'm trying to say "it likely is a problem, let's go find out".

I think the QLogic,ISP driver firmware(s) being distributed is just as serious an issue as the "obvious" qlogicfc_asm.c violation.

Later,
David S. Miller
[email protected]