linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: IrDA driver fails on PXA255
Date: Tue, 31 May 2011 22:00:27 +0100	[thread overview]
Message-ID: <20110531210027.GA3660@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <alpine.DEB.2.00.1105311253510.5646@chino.kir.corp.google.com>

On Tue, May 31, 2011 at 01:03:03PM -0700, David Rientjes wrote:
> The problem certainly isn't being ignored in this thread, or in the patch 
> that I sent to fix Dmitry's issue by default, so that doesn't seem to be 
> the case.  What would be ignored, though, is if it just emitted a 
> WARN_ON() without failing the allocation so everything works perfectly.

Sorry, you did not send a patch to fix it.  You sent a *bodge* to enable
the DMA zone.  As long as you insist that's a valid fix, you're going
to carry zero credibility with me.

The fact is that this driver should not be using GFP_DMA to allocate
things which aren't even DMA buffers, and its use of GFP_DMA should be
removed.  But rather than look at that and work it out, and then produce
a patch to sort that out, the only thing you can do is come up with
bodge to enable the DMA zone, and continue to insist that's the right
solution.

I repeat, enabling the DMA zone for this driver is a pure and utter
bodge, and the change to make these allocations fail _will_ and _has_
caused regressions.

Your whinge that we should re-enable the DMA zone which has been
disabled for quite a long time now to work around this new restriction
is extremely idiotic.

Do the right thing.  Make allocations to GFP_DMA zones _warn_ first for
a cycle so that affected drivers can be fixed.  Then for the next cycle,
make it a hard failure.

  reply	other threads:[~2011-05-31 21:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-28 20:57 IrDA driver fails on PXA255 Dmitry Eremin-Solenikov
2011-05-28 23:34 ` David Rientjes
2011-05-28 23:46   ` Russell King - ARM Linux
2011-05-29  2:22     ` David Rientjes
2011-05-29  7:25       ` Russell King - ARM Linux
2011-05-29 21:19         ` David Rientjes
2011-05-29 21:58           ` Russell King - ARM Linux
2011-05-31  5:01             ` David Rientjes
2011-05-29  8:36   ` Dmitry Eremin-Solenikov
2011-05-29 21:17     ` David Rientjes
2011-05-29 21:33       ` Dmitry Eremin-Solenikov
2011-05-29 21:56       ` Russell King - ARM Linux
2011-05-31  5:05         ` David Rientjes
2011-05-31  7:26           ` Russell King - ARM Linux
2011-05-31 20:03             ` David Rientjes
2011-05-31 21:00               ` Russell King - ARM Linux [this message]
2011-05-31 22:11                 ` David Rientjes
2011-06-01  7:54                   ` Russell King - ARM Linux
2011-06-01 15:50                     ` Russell King - ARM Linux

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=20110531210027.GA3660@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).