login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
19
Re: bnx2 dirver's firmware images
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Denys Vlasenko <vda.linux@...>
To: Michael Chan <mchan@...>
Cc: David Miller <davem@...>, <linux-kernel@...>, netdev <netdev@...>
Subject:
Re: bnx2 dirver's firmware images
Date: Wednesday, September 19, 2007 - 4:29 pm
On Wednesday 19 September 2007 22:00, Michael Chan wrote:
quoted text
> On Wed, 2007-09-19 at 09:30 +0100, Denys Vlasenko wrote: > + /* gzip header (1f,8b,08... 10 bytes total + possible asciz filename) > + * is stripped, 32-bit unpacked size (LE) is prepended instead */ > + sz = *zbuf++; > + sz = (sz << 8) + *zbuf++; > + sz = (sz << 8) + *zbuf++; > + sz = (sz << 8) + *zbuf++; > > I don't have a problem with removing the gzip header. It doesn't > contain very useful information other than a valid header for sanity > check. But I don't think we need to arbitrarily add the unpacked size > in front of the gzipped data. The driver knows the size (e.g. the size > of RAM on the chip) and should pass it to the call. The driver should > also allocate the memory for the unpacked data instead of allocating the > memory inside the call and freeing it by the caller. For example, the > driver may need to use pci_alloc_consistent() if the firmware is to be > DMA'ed to the chip. > > Other than that, everything else looks fine. Thanks.
Are you saying that you successfully run-tested it? -- vda -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Fernando Luis
[PATCH] affinity is not defined in non-smp kernels - x86_64
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Matthew Garrett
Re: [RFC][PATCH -mm 3/3] PM: Disable _request_firmware before hibernation/suspend
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
Martin Langhoff
Re: Change set based shallow clone
Pierre Habouzit
Re: [RFC] Re: Convert 'git blame' to parse_options()
Josh Boyer
git-unpack-objects
Karl
[StGIT PATCH] Don't use patches/<branch>/current
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
Henning Brauer
Re: About Xen: maybe a reiterative question but ..
sonjaya
openvpn on openbsd 4.1
Stefan Beke
mail dovecot: pipe() failed: Too many open files
linux-netdev
:
Julius Volz
[PATCHv3 21/24] IPVS: Add function to determine if IPv6 address is local
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Indan Zupancic
Re: Realtek 8111C transmit timed out
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Latest forum posts
make bzImage
7 hours ago
Linux kernel
make bzImage
8 hours ago
Linux kernel
collectl: the one performance monitoring tool for all your needs
9 hours ago
Linux general
Replacing Windows XP bootloader with GRUB bootloader
13 hours ago
Linux general
Anybody know where I can find an embedded sw engineer with good experience in digital video products???
15 hours ago
Windows
Problem in Inserting a module
18 hours ago
Linux kernel
stop process from getting scheduled out
1 day ago
Linux kernel
register_security LSM
1 day ago
Linux kernel
Process activity notification
1 day ago
Linux kernel
How to make my PCIE ATA storage device running in Linux
1 day ago
Linux general
Show all forums...
Recent Tags
more tags
Colocation donated by:
Who's online
There are currently
5 users
and
929 guests
online.
Online users
catfeeder
Jeremy
Mr_Z
kingneutron
cushioncritter
Syndicate
speck-geostationary