From: Mel Gorman <mel@csn.ul.ie>
To: Zhu Yi <yi.zhu@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Pekka Enberg <penberg@cs.helsinki.fi>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
Mel Gorman <mel@skynet.ie>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
James Ketrenos <jketreno@linux.intel.com>,
"Chatre, Reinette" <reinette.chatre@intel.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"ipw2100-devel@lists.sourceforge.net"
<ipw2100-devel@lists.sourceforge.net>
Subject: Re: [Bug #14016] mm/ipw2200 regression
Date: Thu, 27 Aug 2009 10:45:39 +0100 [thread overview]
Message-ID: <20090827094539.GA21183@csn.ul.ie> (raw)
In-Reply-To: <1251364289.3704.176.camel@debian>
On Thu, Aug 27, 2009 at 05:11:29PM +0800, Zhu Yi wrote:
> On Wed, 2009-08-26 at 22:44 +0800, Andrew Morton wrote:
> >
> > It is perhaps pretty simple to make the second (GFP_ATOMIC) allocation
> > go away. The code is already conveniently structured to do this:
> >
> > do {
> > chunk = (struct fw_chunk *)(data + offset);
> > offset += sizeof(struct fw_chunk);
> > /* build DMA packet and queue up for sending */
> > /* dma to chunk->address, the chunk->length bytes from
> > data +
> > * offeset*/
> > /* Dma loading */
> > rc = ipw_fw_dma_add_buffer(priv, shared_phys + offset,
> >
> > le32_to_cpu(chunk->address),
> >
> > le32_to_cpu(chunk->length));
> > if (rc) {
> > IPW_DEBUG_INFO("dmaAddBuffer Failed\n");
> > goto out;
> > }
> >
> > offset += le32_to_cpu(chunk->length);
> > } while (offset < len);
> >
> > what is the typical/expected value of chunk->length here? If it's
> > significantly less than 4096*(2^6), could we convert this function to
> > use a separate DMAable allocation per fw_chunk?
>
> Unfortunately, the largest chunk size for the latest 3.1 firmware is
> 0x20040, which also requires order 6 page allocation. I'll try to use
> the firmware DMA command block (64 slots) to handle the image (each for
> 4k, totally 256k).
>
That would be preferable as trying to make alloc-6 atomic allocations isn't
going to pan out. As I noted, doing it as GFP_KERNEL is possible but it'll
manifest as weird stalls periodically when the driver is loaded due to
reclaim and if the system is swapless, it might not work at all if memory
is mostly anonymous.
If the DMA command block doesn't work out, what is the feasibility of holding
onto the order-6 allocation once the module is loaded instead of allocing
for the duration of the firmware loading and then freeing it again?
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-08-27 9:45 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 20:00 2.6.31-rc7-git2: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-25 20:00 ` [Bug #13645] NULL pointer dereference at (null) (level2_spare_pgt) Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13809] oprofile: possible circular locking dependency detected Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13740] X server crashes with 2.6.31-rc2 when options are changed Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13733] 2.6.31-rc2: irq 16: nobody cared Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13836] suspend script fails, related to stdout? Rafael J. Wysocki
2009-08-26 11:10 ` Tomas M.
[not found] ` <4A951838.4090803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-08-26 20:56 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13848] iwlwifi (4965) regression since 2.6.30 Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13869] Radeon framebuffer (w/o KMS) corruption at boot Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13906] Huawei E169 GPRS connection causes Ooops Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13935] 2.6.31-rcX breaks Apple MightyMouse (Bluetooth version) Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13941] x86 Geode issue Rafael J. Wysocki
2009-08-25 23:37 ` Martin-Éric Racine
[not found] ` <11fae7c70908251637p2fe53296g1c2e65b9fca5e5a1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-26 20:59 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k Rafael J. Wysocki
2009-08-26 6:39 ` Fabio Comolli
[not found] ` <b637ec0b0908252339u20b7b2c6od3601697cb7aee43-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-26 21:00 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13940] iwlagn and sky2 stopped working, ACPI-related Rafael J. Wysocki
2009-08-26 0:00 ` Ricardo Jorge da Fonseca Marques Ferreira
[not found] ` <200908260100.57360.storm-cOTmPFJTJjbk1uMJSBkQmQ@public.gmane.org>
2009-08-26 20:58 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13942] Troubles with AoE and uninitialized object Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13947] Libertas: Association request to the driver failed Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13948] ath5k broken after suspend-to-ram Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13960] rtl8187 not connect to wifi Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13950] Oops when USB Serial disconnected while in use Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13987] Received NMI interrupt at resume Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14011] Kernel paging request failed in kmem_cache_alloc Rafael J. Wysocki
2009-08-26 6:17 ` Pekka Enberg
2009-08-26 14:01 ` Matthias Dahl
[not found] ` <200908261601.05734.ml_kernel-Rk1lLwyeSiSCvTm3UDtA3g@public.gmane.org>
2009-08-26 14:59 ` Pekka Enberg
[not found] ` <84144f020908260759q6554971dva6cc89a0ad9821b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-26 15:08 ` Eric Paris
2009-08-26 21:03 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14012] latest git fried my x86_64 imac Rafael J. Wysocki
2009-08-26 0:28 ` Justin P. Mattock
[not found] ` <4A9481B9.3070607-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-08-26 21:06 ` Rafael J. Wysocki
[not found] ` <200908262306.38464.rjw-KKrjLPT3xs0@public.gmane.org>
2009-08-26 21:58 ` Justin P. Mattock
2009-08-27 18:01 ` Justin P. Mattock
[not found] ` <4A96CA0A.90405-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-08-27 19:45 ` Rafael J. Wysocki
2009-08-27 20:47 ` Randy Dunlap
[not found] ` <20090827134756.53359c08.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2009-08-27 21:01 ` Justin P. Mattock
2009-08-25 20:34 ` [Bug #14015] pty regressed again, breaking expect and gcc's testsuite Rafael J. Wysocki
2009-08-27 19:54 ` Mikael Pettersson
[not found] ` <19094.58486.867940.103340-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-08-28 18:56 ` Rafael J. Wysocki
[not found] ` <200908282056.10251.rjw-KKrjLPT3xs0@public.gmane.org>
2009-08-28 20:23 ` Mikael Pettersson
[not found] ` <19096.15539.205951.931871-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-08-29 14:16 ` Mikael Pettersson
[not found] ` <19097.14413.89047.384281-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-08-29 19:01 ` Rafael J. Wysocki
2009-08-31 13:22 ` Mikael Pettersson
[not found] ` <19099.52899.620345.326521-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-09-01 1:34 ` Mikael Pettersson
[not found] ` <19100.31254.666066.755541-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-09-01 18:42 ` Rafael J. Wysocki
[not found] ` <200909012042.59856.rjw-KKrjLPT3xs0@public.gmane.org>
2009-09-03 1:23 ` Linus Torvalds
2009-09-03 11:29 ` OGAWA Hirofumi
[not found] ` <87pra89sgp.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
2009-09-03 21:00 ` Mikael Pettersson
2009-09-04 0:01 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909031353360.15956-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 1:41 ` OGAWA Hirofumi
[not found] ` <87ab1bmqpr.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
2009-09-04 1:52 ` Linus Torvalds
2009-09-04 15:28 ` Alan Cox
[not found] ` <20090904162807.1dba7a32-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2009-09-04 17:33 ` Linus Torvalds
2009-09-03 20:27 ` Mikael Pettersson
[not found] ` <alpine.LFD.2.00.0909021429360.3590-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 13:23 ` Mikael Pettersson
[not found] ` <19105.5352.28380.230615-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-09-04 17:30 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040729490.5232-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 17:53 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040739060.17375-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 17:55 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040753370.17375-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 18:11 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040804450.23850-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 19:11 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040910140.4537-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-04 19:19 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909040917120.4537-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-05 10:46 ` Mikael Pettersson
[not found] ` <19106.16773.461397.654704-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-09-05 20:29 ` Linus Torvalds
[not found] ` <alpine.LFD.2.01.0909051256550.3414-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-09-05 22:42 ` Mikael Pettersson
2009-09-05 17:00 ` OGAWA Hirofumi
[not found] ` <87pra55nsr.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
2009-09-05 18:06 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.0909051059360.6727-OZUqEyPC5NRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-09-05 18:56 ` OGAWA Hirofumi
2009-09-05 21:56 ` Alan Cox
[not found] ` <20090905225642.79251527-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2009-09-05 22:46 ` OGAWA Hirofumi
2009-09-04 21:12 ` Alan Cox
2009-08-25 20:34 ` [Bug #14016] mm/ipw2200 regression Rafael J. Wysocki
2009-08-26 6:09 ` Pekka Enberg
2009-08-26 8:27 ` Johannes Weiner
[not found] ` <20090826082741.GA25955-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
2009-08-26 9:37 ` Mel Gorman
2009-08-26 14:44 ` Andrew Morton
[not found] ` <20090826074409.606b5124.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-08-27 9:11 ` Zhu Yi
2009-08-27 9:45 ` Mel Gorman [this message]
2009-08-28 3:42 ` ipw2200: firmware DMA loading rework Zhu Yi
2009-08-30 12:37 ` Bartlomiej Zolnierkiewicz
2009-09-02 17:48 ` Bartlomiej Zolnierkiewicz
2009-09-02 18:02 ` Luis R. Rodriguez
[not found] ` <43e72e890909021102g7f844c79xefccf305f5f5c5b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-02 18:26 ` Bartlomiej Zolnierkiewicz
[not found] ` <200909022026.17910.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-09-19 13:25 ` Bartlomiej Zolnierkiewicz
2009-09-21 8:58 ` Mel Gorman
2009-09-21 9:59 ` Bartlomiej Zolnierkiewicz
2009-09-21 10:08 ` Mel Gorman
2009-09-21 10:46 ` Bartlomiej Zolnierkiewicz
2009-09-21 10:56 ` Pekka Enberg
2009-09-21 13:12 ` Bartlomiej Zolnierkiewicz
2009-09-21 13:37 ` Mel Gorman
[not found] ` <200909211246.34774.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-09-21 11:02 ` Mel Gorman
2009-09-03 12:49 ` Mel Gorman
[not found] ` <20090903124913.GA26110-wPRd99KPJ+uzQB+pC5nmwQ@public.gmane.org>
2009-09-05 14:28 ` Theodore Tso
[not found] ` <20090905142837.GI16217-3s7WtUTddSA@public.gmane.org>
2009-09-08 11:00 ` Mel Gorman
[not found] ` <20090908110041.GE28127@csn.ul.ie>
2009-09-08 20:39 ` Simon Kitching
2009-08-26 9:51 ` [Bug #14016] mm/ipw2200 regression Johannes Weiner
2009-08-25 20:34 ` [Bug #14013] hd don't show up Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14018] kernel freezes, inotify problem Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14017] _end symbol missing from Symbol.map Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14057] Strange network timeouts w/ e100 Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14031] dvb_usb_af9015: Oops on hotplugging Rafael J. Wysocki
2009-08-25 23:57 ` Stefan Lippers-Hollmann
[not found] ` <200908260157.48560.s.L-H-Mmb7MZpHnFY@public.gmane.org>
2009-08-26 0:03 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14030] Kernel NULL pointer dereference at 0000000000000008, pty-related Rafael J. Wysocki
2009-08-26 0:16 ` Linus Torvalds
[not found] ` <alpine.LFD.2.01.0908251716050.3218-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-08-26 21:11 ` Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14058] Oops in fsnotify Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14060] oops: sysfs_remove_link and i915 Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14061] Crash due to buggy flat_phys_pkg_id Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #14062] Failure to boot as xen guest Rafael J. Wysocki
2009-09-01 19:47 ` Jeremy Fitzhardinge
-- strict thread matches above, loose matches on Subject: below --
2009-08-19 20:20 2.6.31-rc6-git5: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-19 20:27 ` [Bug #14016] mm/ipw2200 regression Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090827094539.GA21183@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=akpm@linux-foundation.org \
--cc=bzolnier@gmail.com \
--cc=hannes@cmpxchg.org \
--cc=ipw2100-devel@lists.sourceforge.net \
--cc=jketreno@linux.intel.com \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mel@skynet.ie \
--cc=netdev@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
--cc=reinette.chatre@intel.com \
--cc=rjw@sisk.pl \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).