Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259980 - tp_smapi hdaps driver has problems with kernel-2.6.28
Summary: tp_smapi hdaps driver has problems with kernel-2.6.28
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 06:58 UTC by Benjamin Schulz
Modified: 2009-10-17 10:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2009-02-23 06:58:33 UTC
I have a 2.6.28 kernel. I installed tp_smapi with USE="hdaps". however, in the init file /etc/init.d/hdapsd, there were the following lines

    if [[ ! -e /sys/block/${DISK}/queue/protect ]] ; then
   	eerror "No protect entry for ${DISK}!"
   	eerror "Make sure your kernel is patched with the blk_freeze patch"
   	return 1
    fi

Obviously, Kernel 2.6.28 doesn't neet that check. In fact, it produces errors and does not allow, hdapsd to start. hdapsd works on my system, if I start it with hdapsd -d sda -s 12 -a. It is just that check in /etc/init.d/hdapsd which does not work. So, I commented the above lines out. Disk-shock protection now works on my system.

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2009-03-03 16:33:36 UTC
Hi, I've a similar problem. 
Banjamin, I need some information,
which exactly version of app-laptop/tp_smapi and app-laptop/hdapsd are you using,
and wich kernel and version (gentoo-sources 2.6.28-r2?)
Michael
Comment 2 Michael Weber (RETIRED) gentoo-dev 2009-03-03 17:11:14 UTC
ok, there is a new interface bewteen queue protect kernel part and the user land daemon hdaps.

app-laptop/hdapsd-20060409-r3 does not work with with gentoo-sources 2.6.28-r2 (2.6.27 too, i think)

you need http://www.zen24593.zen.co.uk/hdaps/hdapsd-20081004.c
from http://www.zen24593.zen.co.uk/hdaps/
ans maybe app-laptop/tp_smapi-0.39
This is the works for me status here (ThinkPad R61).

I'll modify an ebuild this or next night.

Michael
Comment 3 Benjamin Schulz 2009-03-06 19:32:31 UTC
I'm using tp_smapi version 0.40 (the 0.39 ebuild can be simply renamed to 0.40 and a new digest created). The hdapsd driver I use is the latest one from 
bug 166166 : 
http://bugs.gentoo.org/show_bug.cgi?id=166166
the kernel is 2.6.28-gentoo-r2-i686
Comment 4 Benjamin Schulz 2009-03-06 19:33:45 UTC
another ebuild for tp_smapi 0.40 is here:
http://bugs.gentoo.org/show_bug.cgi?id=254043
Comment 5 Benjamin Schulz 2009-03-06 19:36:35 UTC
(In reply to comment #3)
> and a new digest created). The hdapsd driver I use is the latest one from 

this line should read: the hdapsd daemon I use, is the latest one from...

The driver is of course from tp_smapi-0.40
Comment 6 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-14 22:29:43 UTC
i believe this is fixed in hdapsd-20090401, which was just comitted to the tree.
can you confirm this?
Comment 7 Benjamin Schulz 2009-10-15 20:00:32 UTC
I can confirm that the current ebuild which is now in the three works for me.
Comment 8 Michael Weber (RETIRED) gentoo-dev 2009-10-17 10:27:10 UTC
Hi,

(In reply to comment #7)
> I can confirm that the current ebuild which is now in the three works for me.
> 

I can confirm this on amd64, gentoo-sources 2.6.31-r2/r3 and tp_smapi-0.40.