linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Tresidder <rtresidd@tresar-electronics.com.au>
To: Steven Toth <stoth@kernellabs.com>
Cc: Linux-Media <linux-media@vger.kernel.org>
Subject: Re: Hauppauge WinTV-HVR2205 driver feedback
Date: Mon, 5 Oct 2015 22:39:13 +0800	[thread overview]
Message-ID: <56128B91.2090100@tresar-electronics.com.au> (raw)
In-Reply-To: <56128AA6.8010106@tresar-electronics.com.au>

Hi
   Just for clarification
I forgot to add that I had already got past that little bump by chunking 
the allocation to src_buf in the same loop as the memcpy_toio
But I'll rebuild the module with the memcpy_toio directly accessing src 
and see how it goes.

Regards
    Richard Tresidder

On 05/10/15 22:35, Richard Tresidder wrote:
>
>
> On 05/10/15 22:22, Steven Toth wrote:
>> On Sun, Oct 4, 2015 at 9:59 PM, Richard Tresidder
>> <rtresidd@tresar-electronics.com.au> wrote:
>>> Hi Steven
>>>     Nope standard x86_64
>>> kernel 3.10.0-229.14.1.el7.x86_64
>> Hmm.
>>
>>> Was rather surprised as all my quick reading indicates that the kernel
>>> should quite happily do this...
>>> Though looks like its the largest chunk you can request? I'm not 
>>> well enough
>>> up to speed with the nitty gritty..
>> Yeah, 4MB is the upper limit IIRC.
>>
>>> There is mention of something similar against this card on www 
>>> linuxtv org
>>> wiki index.php  Hauppauge_WinTV-HVR-2200
>>>
>>> ********
>>> Note: Some kernels will not have enough free memory available for the
>>> driver. The dmesg error will start with a message like this:
>>> ] modprobe: page allocation failure: order:10, mode:0x2000d0
>>> followed by a stack trace and other debugging information. While the 
>>> driver
>>> will load, no devices will be registered.
>>> The simple workaround is to allocate more memory for the kernel:
>>> sudo /bin/echo 16384 > /proc/sys/vm/min_free_kbytes
>>> sudo rmmod saa7164
>>> sudo modprobe saa7164
>>> ********
>> Hmm. I wasn't aware people in the past has seen the issue either. I
>> assume you've tried the above and its not helping, or in fact growing
>> that number for experimentation purposes.
>>
>> Do you have a large number of other devices / drivers loaded? I
>> suspect another driver is burning through kernel memory before the
>> saa7164 has a chance to be initialized.
> Nope nothing I can see Its actually the only addon card I have in this 
> system..
> I'd be buggered If 4GB of RAM is fragmented enough early on in the 
> boot stage...?
> I've hunted but can't find a nice way to determine what contiguous 
> blocks are available..
> Noted there was a simple module that could be compiled in to test such 
> things, I'll play with that and see what it turns up..
>
>> I took a quick look at saa7164-fw.c this morning, I see no reason why
>> the allocation is required at all. With a small patch the function
>> could be made to memcpy from 'src' directly, dropping the need to
>> allocate srcbuf what-so-ever. This would remove the need for the 4MB
>> temporary allocation, and might get you past this issue, likely on to
>> the next (user buffer allocations are also large - as I recall). Note
>> that the 4MB allocation is temporary, so its not a long term saving,
>> but it might get you past the hump.
> That was my thoughts exactly.. but I took a minimal fiddling approach 
> to begin with..
> I wasn't sure if there was some requirement for the memcpy_toio 
> requiring a specially allocated source..? can't see why..
> Was going to dig into that next as a side job..
>
>


  reply	other threads:[~2015-10-05 14:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04  4:55 Hauppauge WinTV-HVR2205 driver feedback Richard Tresidder
2015-10-04 14:03 ` Steven Toth
2015-10-05  1:59   ` Richard Tresidder
2015-10-05 14:22     ` Steven Toth
2015-10-05 14:35       ` Richard Tresidder
2015-10-05 14:39         ` Richard Tresidder [this message]
2015-10-05 14:43         ` Steven Toth
2015-10-05 15:26           ` Richard Tresidder
2015-10-05 15:32             ` Steven Toth
2015-10-05 12:45 ` Tycho Lürsen
2015-10-05 14:22   ` Richard Tresidder
2015-10-05 16:03   ` Richard Tresidder
2015-10-11  6:18   ` Richard Tresidder
2015-10-11  7:33     ` Tycho Lürsen
  -- strict thread matches above, loose matches on Subject: below --
2015-06-03  3:55 Stephen Allan
2015-06-03  7:55 ` Antti Palosaari
2015-06-03  8:02   ` Antti Palosaari
2015-06-03  9:29     ` Olli Salonen
2015-06-03 14:30       ` Steven Toth
2015-06-04 12:46         ` Steven Toth
2015-06-03 15:34       ` Antti Palosaari
2015-06-03 19:08         ` Olli Salonen
2015-06-03 19:46           ` Antti Palosaari
2015-06-04  8:07             ` Olli Salonen
2015-06-04  0:38     ` Stephen Allan
2015-06-04  1:22       ` faulkner-ball
2015-06-03 14:31   ` Steven Toth
2015-06-03 21:50     ` Peter Faulkner-Ball
2015-06-03 22:16       ` Steven Toth

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=56128B91.2090100@tresar-electronics.com.au \
    --to=rtresidd@tresar-electronics.com.au \
    --cc=linux-media@vger.kernel.org \
    --cc=stoth@kernellabs.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).