OpenSolaris

Printable Version Enter a New Search
Bug ID 6567521
Synopsis audio1575 fails when hires_tick =1
State 10-Fix Delivered (Fix available in build)
Category:Subcategory audio:driver-audio1575
Keywords development_escape | non-regression | triaged
Responsible Engineer Ramesh Chitrothu
Reported Against snv_65
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_77
Fixed In snv_77
Release Fixed solaris_nevada(snv_77) , solaris_10u5(s10u5_07) (Bug ID:2155549)
Related Bugs
Submit Date 8-June-2007
Last Update Date 23-April-2009
Description
after updating my new Ultra-45 to be more like my old workstation, the audio driver
start failing with:

un  8 10:29:53 kuanuku audiosup: [ID 384451 kern.warning] WARNING: audio15750: 
failure to power up the AC97 Codec
Jun  8 10:29:53 kuanuku audiosup: [ID 472426 kern.warning] WARNING: audio15750: 
attach() failure to init chip


After some headscratching a number of powercycles, OPB upgrade, I finally netbooted
to find it working again; then I figured it must be the hires_tick = 1 setting
in /etc/system which can sometimes cause drivers to shorten their sleeps.
Reverting that setting alone made the driver work again.

A common error is to specify a delay of shorter than 10ms; and that is the
case in the audio1575 driver to:.
#define M1575_LOOP_CTR                  (100)


        ticks = drv_usectohz(M1575_LOOP_CTR);

Both with HZ=100 and HZ=1000, this returns "1" but that makes the delay calls
being either 10ms or 1ms; the code suggests 100us is sufficient but that seems to
be wrong by a factor 100.
Work Around
N/A
Comments
N/A