From: Takashi Iwai Subject: Re: HR timer 1000Hz limit since kernel 4.4.0-77 Date: Tue, 23 May 2017 08:01:39 +0200 Message-ID: References: <990803c6-b19a-a694-d28f-abfd8b19582e@rogers.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 4F5F12664EB for ; Tue, 23 May 2017 08:01:40 +0200 (CEST) In-Reply-To: <990803c6-b19a-a694-d28f-abfd8b19582e@rogers.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Tim Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 22 May 2017 18:30:27 +0200, Tim wrote: > > Hello, ever since kernel 4.4.0-77, there seems to be > a limit on the ALSA HR timer, I can't set it above 1000Hz > (snd_timer_params() fails with -22 invalid argument). > I used to be able to set the rate much higher than that. > Been observed in two completely different distros, one with > a much newer kernel. How can I overcome this limit? It's a recently introduced limit to avoid the too condensed spinlocks that may lead to a kernel lockup (the commit 71321eb3f2d0). If sub-ms timer is really required, we may introduce some module option to allow it, but it's the last-resort. What's the exact use case? thanks, Takashi