bnx2 dirver's firmware images

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Chan <mchan@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 1:23 pm

Hi Michael,

In bnx2_fw.h I see the following:

static u32 bnx2_RXP_b06FwBss[(0x13dc/4) + 1] = { 0x0 };

static struct fw_info bnx2_rxp_fw_06 = {
...
        .bss                            = bnx2_RXP_b06FwBss,
...
};

I grepped for the usage of .bss member (grepped for '[.>]bss[^_]')
and it is used only here:

        if (fw->bss) {
                int j;

                for (j = 0; j < (fw->bss_len/4); j++, offset += 4) {
                        REG_WR_IND(bp, offset, fw->bss[j]);
                }
        }

If I understand it correctly, you read zero words one by one from
bnx2_RXP_b06FwBss and writing them into the card. This is very
suboptimal usage of nearly 5k of kernel unswappable memory.

Do you plan to fix it?

Do you have any plans to switch to request_firmware() interface,
which will allow you to avoid keeping firmware in unswappable kernel
memory and thus free ~80k?

$ size bnx2.o
   text    data     bss     dec     hex filename
  52255   81551    6360  140166   22386 bnx2.o
--
vda
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bnx2 dirver's firmware images, Denys Vlasenko, (Tue Sep 18, 1:23 pm)
Re: bnx2 dirver's firmware images, Michael Chan, (Tue Sep 18, 2:45 pm)
Re: bnx2 dirver's firmware images, Denys Vlasenko, (Tue Sep 18, 1:55 pm)
Re: bnx2 dirver's firmware images, Michael Chan, (Tue Sep 18, 3:09 pm)
Re: bnx2 dirver's firmware images, David Miller, (Tue Sep 18, 2:23 pm)
Re: bnx2 dirver's firmware images, H. Peter Anvin, (Tue Sep 18, 2:41 pm)
Re: bnx2 dirver's firmware images, David Miller, (Tue Sep 18, 3:20 pm)
Re: bnx2 dirver's firmware images, H. Peter Anvin, (Tue Sep 18, 3:27 pm)
Re: bnx2 dirver's firmware images, David Miller, (Tue Sep 18, 4:08 pm)
Re: bnx2 dirver's firmware images, Sam Ravnborg, (Tue Sep 18, 4:35 pm)
Re: bnx2 dirver's firmware images, maximilian attems, (Wed Sep 19, 1:10 pm)
Re: bnx2 dirver's firmware images, H. Peter Anvin, (Wed Sep 19, 1:12 pm)
Re: bnx2 dirver's firmware images, maximilian attems, (Wed Sep 19, 1:18 pm)
Re: bnx2 dirver's firmware images, Sam Ravnborg, (Wed Sep 19, 1:37 pm)
Re: bnx2 dirver's firmware images, H. Peter Anvin, (Tue Sep 18, 4:40 pm)
Re: bnx2 dirver's firmware images, Michael Chan, (Tue Sep 18, 4:05 pm)
Re: bnx2 dirver's firmware images, maximilian attems, (Wed Sep 19, 12:33 pm)
Re: bnx2 dirver's firmware images, David Miller, (Wed Sep 19, 12:38 pm)
Re: bnx2 dirver's firmware images, maximilian attems, (Wed Sep 19, 12:51 pm)
Re: bnx2 dirver's firmware images, Denys Vlasenko, (Wed Sep 19, 4:30 am)
Re: bnx2 dirver's firmware images, Michael Chan, (Wed Sep 19, 5:00 pm)
Re: bnx2 dirver's firmware images, Denys Vlasenko, (Wed Sep 19, 4:29 pm)
Re: bnx2 dirver's firmware images, Michael Chan, (Wed Sep 19, 5:43 pm)
Re: bnx2 dirver's firmware images, Denys Vlasenko, (Thu Sep 20, 10:49 am)
Re: bnx2 dirver's firmware images, Michael Chan, (Thu Sep 20, 10:12 pm)
Re: bnx2 dirver's firmware images, David Miller, (Tue Sep 18, 3:21 pm)
Re: bnx2 dirver's firmware images, Bill Davidsen, (Wed Sep 19, 9:40 am)
Re: bnx2 dirver's firmware images, David Miller, (Wed Sep 19, 12:09 pm)
Re: bnx2 dirver's firmware images, Willy Tarreau, (Tue Sep 18, 5:30 pm)
Re: bnx2 dirver's firmware images, David Miller, (Tue Sep 18, 5:31 pm)
Re: bnx2 dirver's firmware images, Willy Tarreau, (Tue Sep 18, 5:37 pm)
Re: bnx2 dirver's firmware images, Michael Chan, (Tue Sep 18, 7:14 pm)