mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Brownell <david-b@pacbell.net>,
	Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
	linux-usb-devel@lists.sourceforge.net, Greg KH <gregkh@suse.de>,
	LKML <linux-kernel@vger.kernel.org>,
	"Stuart_Hayes@Dell.com" <Stuart_Hayes@dell.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Daniel Exner <dex@dragonslave.de>
Subject: Re: [linux-usb-devel] [4/4] 2.6.23-rc3: known regressions
Date: Mon, 20 Aug 2007 22:51:28 -0700	[thread overview]
Message-ID: <1187675488.2676.3.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <alpine.LFD.0.999.0708202201580.30176@woody.linux-foundation.org>


> Have we done that? Yes. We actually had a "no-hlt" kernel command line 
> flag that literally disabled halting the CPU, because it apparently caused 
> problems for some floppy disk setups (and yes, the main reasonable 
> explanation was some bad DMA interaction, we never figured it out).
> 
> So it might be much better if we instead re-introduced that kind of "DMA 
> latency requirement", and letting different subsystems react to that as 
> they may.


wait.... we HAVE that infrastructure .. see kernel/latency.c ...


> It really can affect more than just cpufreq - I would not be in the 
> *least* surprised if C3 latencies and other things can cause these things 
> too! But even within cpufreq, it's quite likely to hit certain situations 
> more than others.

and kernel/latency.c was designed EXACTLY for that reason. All the USB
layer has to do is to announce it's latency requirement like this:

/* 
 * Some broadcom chips are buggy and can't take more than 5 usec as DMA
 * latency; inform the rest of kernel of this.
 */
if (weird_broadcom_chip())
	set_acceptable_latency("ehci", 5);


and the C-state code will honor it. CPUFREQ doesn't honor it yet but
that's easy to add.. (this assumes the ACPI BIOS informs us correctly
about the cpu behavior, but that's the best we can do obviously unless
you want a table inside the kernel keyed off vendor/model/stepping)




-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


  reply	other threads:[~2007-08-21  5:57 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <46C098FD.1030601@googlemail.com>
2007-08-13 17:59 ` [2/4] " Michal Piotrowski
2007-08-13 23:29   ` Luca Tettamanti
2007-08-14  6:37     ` Michal Piotrowski
2007-08-13 17:59 ` [3/4] " Michal Piotrowski
2007-08-14 22:09   ` Francois Romieu
2007-08-13 17:59 ` [4/4] " Michal Piotrowski
2007-08-21  1:41   ` [linux-usb-devel] " David Brownell
2007-08-21  2:02     ` Linus Torvalds
2007-08-21  4:02       ` David Brownell
2007-08-21  4:15         ` Linus Torvalds
2007-08-21  4:48           ` David Brownell
2007-08-21  5:31             ` Linus Torvalds
2007-08-21  5:51               ` Arjan van de Ven [this message]
2007-08-21  6:04                 ` Arjan van de Ven
2007-08-21  6:26                   ` Linus Torvalds
2007-08-21  6:28                     ` Arjan van de Ven
2007-08-21  6:45                       ` Linus Torvalds
2007-08-21  6:25                 ` Linus Torvalds
2007-08-21  6:24                   ` Arjan van de Ven
2007-08-21  6:03               ` Linus Torvalds
2007-08-21  6:34                 ` David Brownell
2007-08-21  6:52                   ` Linus Torvalds
2007-08-21  7:24                     ` Linus Torvalds
2007-08-22  3:34                       ` Linus Torvalds
2007-08-22 14:42                         ` Stuart_Hayes
2007-08-22 18:41                           ` Linus Torvalds
2007-08-22 20:41                             ` Stuart_Hayes
2007-08-22 23:35                         ` Junio C Hamano
2007-08-21  4:27       ` [linux-usb-devel] " David Brownell

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=1187675488.2676.3.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=Stuart_Hayes@dell.com \
    --cc=akpm@linux-foundation.org \
    --cc=david-b@pacbell.net \
    --cc=dex@dragonslave.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=michal.k.k.piotrowski@gmail.com \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®