Re: [TuxOnIce-users] TuxOnIce 3.3 for Linux 3.4.

Yechiel Cohen <[email protected]> Fri, 26 Oct 2012 05:16:53 +0200
Newsgroups gmane.linux.swsusp.devel,gmane.linux.swsusp.general
Message-ID <CAH49+rQiAwjBioMVQi97DN6A37z6R_K8eo6yfARfV-9pMFCiEA@mail.gmail.com>
Hi again,

I wanted to report that the patch of toi-3.3 for linux3.4 is working on my
device perfectly,
(suspend + resume) X as much as I want = big smile on my boss face..

Anyway, tI still have one unresolved issue about MTD (cache) flushing.
*1) It happens at suspend start:*
# mkswap /dev/mtdblock2
Setting up swapspace version 1, size = 67104768 bytes
# swapon /dev/mtdblock2
Adding 65532k swap on /dev/mtdblock2.  Priority:-1 extents:1 across:65532k
SS
# echo > /sys/power/tuxonice/do_hibernate
...and I get one of the following error messages:
"
TuxOnIce 3.3, with support for usm, compression, block i/o, swap storage,
file storage, userui.
TuxOnIce: Unable to find a signature. Could you have moved a swap file?
TuxOnIce: Block I/O: No signature found at /dev/mtdblock2.
"
At this point, swsusp suspend succeeds to find signature.

Sometimes I get "Failed to prepare the image because...
- You need some storage available to be able to hibernate."

*2) It also happens at suspend end:*
Even in times suspend has succeeded. At next powerup, tuxonice will claim
that no image found.

I can bypass issue #1 only by running TOI after some cycles of swsusp
suspend and resume.
To solve issue #2, I managed to force mtd flush in the end of the suspend
procedure, as follows:

diff --git a/kernel/power/tuxonice_bio_core.c
b/kernel/power/tuxonice_bio_core.c
index 03e7fc0..6de4743 100644
--- a/kernel/power/tuxonice_bio_core.c
+++ b/kernel/power/tuxonice_bio_core.c
@@ -1414,6 +1414,9 @@ static int toi_bio_write_header_cleanup(void)
     if (!result)
         result = toi_bio_mark_have_image();

+    /* FIXME: mtdblock doesn't sync without this */
+    blkdev_ioctl(resume_block_device, 0, BLKFLSBUF, 0);
+
     return result;
 }

Do you have any info about it?

Thanks again! Its really fast and smooth.

Regards,
Yechiel

On Tue, Oct 23, 2012 at 1:24 PM, Yechiel Cohen <[email protected]> wrote:

>
> Many thanks Nigel!
>
> I have no words to express my respect to your work.
> I will keep you updated how it worked for us.
>
> Have a nice day.
> Yechiel
>
>
> On Tue, Oct 23, 2012 at 1:14 PM, Nigel Cunningham <
> [email protected]> wrote:
>
>>  Hi again.
>>
>>
>> On 10/23/2012 10:02 PM, Nigel Cunningham wrote:
>>
>> Hi Yechiel.
>>
>> On 10/23/2012 08:28 PM, Yechiel Cohen wrote:
>>
>> Hello Nigel,
>>
>> Is there a TOI patch for kernel3.4?
>> I saw that the latest official patch at http://tuxonice.net/ was for
>> Kernel3.0.
>>
>> I was using the current-tuxonice-for-3.0.patch.bz2<http://tuxonice.net/files/current-tuxonice-for-3.0.patch.bz2> patch
>> on my device running Linux 3.0.22 version. Now we are upgrading to Linux3.4
>> and would like to keep using TOI.
>>
>>  I've just fixed up the http://tuxonice.net/downloads/all directory and
>> have uploaded new patches with the format:
>>
>>
>> http://tuxonice.net/downloads/all/tuxonice-for-linux-(Version)-(Year)-(Month)-(Date)
>> [-DayVersion].patch.bz2
>>
>> So you can now get:
>>
>>
>> http://tuxonice.net/downloads/all/tuxonice-for-linux-3.4-2012-10-23.patch.bz2
>>
>> I've updated my script to automatically upload new versions as the git
>> tree is updated.
>>
>> Regards,
>>
>> Nigel
>>
>>
>> Actually, I'll add the minor version to the stable branch patches so the
>> next 3.4 patch will begin
>>
>> tuxonice-for-linux-3.4.16-2012...
>>
>> I could do that for head too, but will it be as useful?
>>
>> Regards,
>>
>> Nigel
>>
>
>
>
> --
>
> *Take care,*
>
> *Yechiel*
>
>


-- 

*Take care,*

*Yechiel*

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel