From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rich Townsend Subject: Re: sbs-linux acpi-ec-nospinlock patch for 2.6.11 Date: Fri, 11 Mar 2005 11:55:42 -0500 Message-ID: <4231CD8E.5080105@bartol.udel.edu> References: <3ACA40606221794F80A5670F0AF15F8407663381@pdsmsx403> <4231C946.4090301@bartol.udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4231C946.4090301-OBnUx95tOyn10jlvfTC4gA@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "Yu, Luming" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Rich Townsend wrote: > > Yu, Luming wrote: > >>I don't know what is acpi-ec-nospinlock patch. >>But the patch at http://bugzilla.kernel.org/show_bug.cgi?id=3851#c52 is worthy testing, if you have EC related issue. >>Thanks, >>Luming > > > It was a small patch I wrote, to lock EC access using a semaphore rather > than a spinlock. This was to stop the stuttering caused when the EC > driver was polling for completion of a transaction. > > Eventually, of course, we want to switch over to event-based EC > management. I already tried one of the older EC/event patches on the > page you give above, with not much success; but I'll give one of the > newer ones a shot. > OK, I've tried the newest patch (I needed to fix a small error in it, relating to a statement label, to get it to work on 2.6.11). It seems to work OK in all respects apart from speed. On bootup, it takes about 30 seconds for the EC to get initialized. Battery status reads take about 4 seconds. Events (eg, AC power change) take about 5 seconds before they actually reach /proc/acpi/events. This clearly makes the patch of limited usefullness. What can be done to increase the speed? cheers, Rich ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click