newbie questions about patching a kernel
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Kernel > newbie questions about patching a kernel




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    newbie questions about patching a kernel  
Chris Tenney


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-14-04 07:48 AM

This is an install of Redhat Fedora FC2 on a Sager NP-8790

I was getting a dma error of:    dma_timer_expiry: dma status == 0x20
which was causing slow downs and lockups.

I found this patch listed in my notebook forum as stated here:
http://www.powernotebooks.com/forum...opic.php?t=1063

This is what one user listed as a fix:

OK, it turns out that the DMA timeout problem was indeed a kernel bug in the
2.6.x tree. There is now a patch to solve the problem, and I can report that
it works perfectly. Here is a link to the patch and the patch itself:

--- linux-2.6.7/drivers/ide/ide-probe.c 2004-06-21 15:25:51.000000000 +0200
+++ linux/drivers/ide/ide-probe.c 2004-06-21 15:29:19.901710936 +0200
@@ -897,7 +897,7 @@
blk_queue_segment_boundary(q, 0xffff);

if (!hwif->rqsize)
- hwif->rqsize = hwif->no_lba48 ? 256 : 65536;
+ hwif->rqsize = 256;
if (hwif->rqsize < max_sectors)
max_sectors = hwif->rqsize;
blk_queue_max_sectors(q, max_sectors);


And the link:

http://lkml.org/lkml/2004/6/21/101

How do I get that into the kernel?  And, the 2nd question, can I place this
in the command line when I do a install to avoid the errors or patch the
kernel before doint the install?

Thanks,

Chris







[ Post a follow-up to this message ]



    Re: newbie questions about patching a kernel  
pete


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-20-04 12:49 PM

Chris Tenney wrote:

> This is an install of Redhat Fedora FC2 on a Sager NP-8790
>
> I was getting a dma error of:    dma_timer_expiry: dma status == 0x20
> which was causing slow downs and lockups.
>
> I found this patch listed in my notebook forum as stated here:
> http://www.powernotebooks.com/forum...opic.php?t=1063
>
[snip]

> How do I get that into the kernel?  And, the 2nd question, can I place
> this in the command line when I do a install to avoid the errors or patch
> the kernel before doint the install?

Enter your kernel source directory (/usr/src/linux or whatever), and use the
patch command:

patch -p0 < /somepath/patch.diff

(or you might need to use -p1 instead of -p0). This will apply the patch to
the relevant file(s).

Cheers,

Pete





[ Post a follow-up to this message ]



    Re: newbie questions about patching a kernel  
Nils O. Selåsdal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:24 AM

On Wed, 14 Jul 2004 07:56:58 +0000, Chris Tenney wrote:

> This is an install of Redhat Fedora FC2 on a Sager NP-8790
>
> I was getting a dma error of:    dma_timer_expiry: dma status == 0x20
> which was causing slow downs and lockups.
>
> I found this patch listed in my notebook forum as stated here:
> http://www.powernotebooks.com/forum...opic.php?t=1063
>
> This is what one user listed as a fix:
>
> OK, it turns out that the DMA timeout problem was indeed a kernel bug in t
he
> 2.6.x tree. There is now a patch to solve the problem, and I can report th
at
> it works perfectly. Here is a link to the patch and the patch itself:
>
> --- linux-2.6.7/drivers/ide/ide-probe.c 2004-06-21 15:25:51.000000000 +020
0
> +++ linux/drivers/ide/ide-probe.c 2004-06-21 15:29:19.901710936 +0200
> @@ -897,7 +897,7 @@
> blk_queue_segment_boundary(q, 0xffff);
>
> if (!hwif->rqsize)
> - hwif->rqsize = hwif->no_lba48 ? 256 : 65536;
> + hwif->rqsize = 256;
> if (hwif->rqsize < max_sectors)
> max_sectors = hwif->rqsize;
> blk_queue_max_sectors(q, max_sectors);
>
>
> And the link:
>
> http://lkml.org/lkml/2004/6/21/101
>
> How do I get that into the kernel?  And, the 2nd question, can I place thi
s
> in the command line when I do a install to avoid the errors or patch the
> kernel before doint the install?
Just fyi, there is released errate kernels, probably this fix is in a
newer kernel, so see e.g. www.fedoranews.org for an update kernel-
Installing an official ready to use kernel will save you countless
hours, especially if you're a newbie.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register