Red Hat Kernel - newbie questions about patching a kernel

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Kernel > September 2004 > newbie questions about patching a kernel





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author newbie questions about patching a kernel
Chris Tenney

2004-07-14, 2: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


pete

2004-07-20, 7:49 am

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
Nils O. Selåsdal

2004-09-22, 9:24 pm

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 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?

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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com