From: Sergey Vlasov <vsu@altlinux.ru>
To: Lee Trager <Lee@PicturesInMotion.net>
Cc: B.Zolnierkiewicz@elka.pw.edu.pl, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: HPA Resume patch
Date: Sun, 27 Aug 2006 14:16:56 +0400 [thread overview]
Message-ID: <20060827141656.0e4d2c17.vsu@altlinux.ru> (raw)
In-Reply-To: <44F15ADB.5040609@PicturesInMotion.net>
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
On Sun, 27 Aug 2006 04:42:03 -0400 Lee Trager wrote:
> This patch fixes a problem with computers that have HPA on their hard
> drive and not being able to come out of resume from RAM or disk. I've
> tested this patch on 2.6.17.x and 2.6.18-rc4 and it works great on both
> of these. This patch also fixes the bug #6840. This is my first patch to
> the kernel and I was told to e-mail the above people to get my patch
> into the kernel. If I made a mistake please be gentle and correct me ;)
The patch adds a call from ide.c to a function inside ide-disk.c - this
won't work when IDE support is built as modules (it will cause a
circular dependency between ide-core and ide-disk modules).
The proper way to do such calls is to add a new method to ide_driver_t
and call it from generic_ide_resume(). Also, if the ide_do_drive_cmd()
call failed, it is probably unsafe to reset HPA, so you need to check
the result and call the resume method only if the low-level resume has
succeeded.
And please and "-p" to diff options.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-08-27 10:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 8:42 HPA Resume patch Lee Trager
2006-08-27 10:16 ` Sergey Vlasov [this message]
2006-08-27 15:06 ` Pavel Machek
2006-08-27 17:05 ` Jens Axboe
2006-08-29 2:14 ` Lee Trager
2006-08-29 4:00 ` Randy.Dunlap
2006-08-29 9:10 ` Lee Trager
2006-08-29 9:12 ` Jens Axboe
2006-09-02 8:53 ` Lee Trager
2006-08-29 14:14 ` Valdis.Kletnieks
2006-08-27 17:09 ` Randy.Dunlap
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=20060827141656.0e4d2c17.vsu@altlinux.ru \
--to=vsu@altlinux.ru \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=Lee@PicturesInMotion.net \
--cc=akpm@osdl.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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).