CURRENT, devbuf memory allocation and hald

Joe Marcus Clarke marcus at
Thu Apr 17 18:52:36 UTC 2008

Pascal Hofstee wrote:
> On Thu, 17 Apr 2008 14:33:38 -0400
> Joe Marcus Clarke <marcus at> wrote:
>> This could be related to the recent ATA changes in -CURRENT.
>> Typically, we poll /dev/cd0 using ATAPICAM.  You might try removing
>> any fdi files you've created to use the ATAPI device rather than the
>> ATAPICAM device to see if it helps.
>> On each pass of the poller, we send a TUR command to the device.  If
>> the command returns that the device is ready, we say it has media.
>> The code for this can be found in libprobe/hfp-cdrom.c.
> I have not created any fdi files myself but since the problem seems
> to be cd/dvd related i already went ahead and actually loaded the
> atapicam kernel module and restarted hald ... unfortunately the problem
> persists though in a mitigated form ... the increase with atapicam
> loaded seems to be at 40k/10sec instead of 140k/10s without atapicam
> loaded.
> Whether i have inserted or not does not seem to have any impact on the
> problem whatsoever though.

The ATAPI subsystem must not be releasing the resources after sending 
the TUR command.  You might float this by sos to see what he thinks. 
You could also revert all of his recent ATA changes to see if that fixes 
the problem.


Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome at
FreeNode / #freebsd-gnome

More information about the freebsd-gnome mailing list