From: jorge.ramirez-ortiz@linaro.org (Jorge Ramirez-Ortiz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5] drivers/tty: amba: defer probing DMA availability until hw_init
Date: Mon, 09 Mar 2015 15:12:39 -0400 [thread overview]
Message-ID: <54FDF0A7.20009@linaro.org> (raw)
In-Reply-To: <20150309155711.GS8656@n2100.arm.linux.org.uk>
On 03/09/2015 11:57 AM, Russell King - ARM Linux wrote:
> On Tue, Mar 03, 2015 at 11:06:32AM -0500, Jorge Ramirez-Ortiz wrote:
>> On 02/26/2015 11:56 AM, Jorge Ramirez-Ortiz wrote:
>>> - chan = dma_request_slave_channel(dev, "tx");
>>> + uap->dma_probed = true;
>>> +
>>> + chan = dma_request_slave_channel_reason(uap_dev, "tx");
>>> + if (IS_ERR(chan)) {
>>> + if (PTR_ERR(chan) == -EPROBE_DEFER) {
>>> + dev_info(uap_dev, "DMA driver not ready\n");
> I still object to this.
it was an oversight, not intentional. my fault.
>
> It _can't_ be right that we plaster the kernel console with these
> messages when the is a DMA possible, but the DMA driver is a module
> which hasn't been loaded yet.
>
> You probably don't realise it, but init daemons tend to open the
> console, write their message, and then close it again. What your
> message above means is that each time an init daemon does that, we
> get a "DMA driver not ready" message.
I initially - before your first remarks- did think about the init daemons and
balancing the value I saw in having the message in (for product developers) I
thought it was worth having it.
What I didnt know relates to your second point about modules:
- That for as long as the device tree declares a DMA name that matches the one
that the UART requests in its DT settings, attempting to request a channel on it
before said DMA driver has been registered would be returning EPROBE_DEFER (same
thing for ACPI).
- And yes, as the situation described above could go on for ever (maybe the
driver was blacklisted) the clutter in the log would be unacceptable.
[I had only looked at defer driver probing from the perspective of its internal
lists (deferred_probe_ending/active_list) and did not have the overall picture
in mind. So I missed this point]
>
> IMHO, that is unacceptable.
>
agree.
next prev parent reply other threads:[~2015-03-09 19:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 16:56 No subject Jorge Ramirez-Ortiz
2015-02-26 16:56 ` [PATCH v5] drivers/tty: amba: defer probing DMA availability until hw_init Jorge Ramirez-Ortiz
2015-03-03 16:06 ` Jorge Ramirez-Ortiz
2015-03-09 15:57 ` Russell King - ARM Linux
2015-03-09 19:12 ` Jorge Ramirez-Ortiz [this message]
2015-03-03 16:13 ` Rob Herring
2015-03-04 21:33 ` Jorge Ramirez-Ortiz
2015-03-05 21:00 ` Rob Herring
2015-03-09 15:58 ` 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=54FDF0A7.20009@linaro.org \
--to=jorge.ramirez-ortiz@linaro.org \
--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).