From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3722EC433B4 for ; Wed, 21 Apr 2021 15:22:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07DE1600D1 for ; Wed, 21 Apr 2021 15:22:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243966AbhDUPXL (ORCPT ); Wed, 21 Apr 2021 11:23:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:52304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243965AbhDUPXH (ORCPT ); Wed, 21 Apr 2021 11:23:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 10DB2600D1; Wed, 21 Apr 2021 15:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619018553; bh=uCRYmylzXXwa0XgJ+Nt67oOm790cS23CJ6ivt68PYCE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gKiXkibF/agDmdT747lettzZS6BzcIS9zeBkCcI7acJPPdkTnfvXXDTuqwCJTetO0 YwhkHieLcgJ8T75/6pa2ZcC/NL34QgNmUNf2auwdtjA6cUJdlTg2nsAdl1afv8mnEw /ciHEsx3N2B0bmY+jruPcscaKZo+J8oywdXQ45Po= Date: Wed, 21 Apr 2021 17:22:30 +0200 From: Greg KH To: Lorenzo Colitti Cc: Thomas Gleixner , Maciej =?utf-8?Q?=C5=BBenczykowski?= , Ingo Molnar , Anna-Maria Behnsen , lkml , mikael.beckius@windriver.com, Maciej =?utf-8?Q?=C5=BBenczykowski?= , Will Deacon Subject: Re: [PATCH] hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() Message-ID: References: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> <87eef5qbrx.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 11:40:54PM +0900, Lorenzo Colitti wrote: > On Wed, Apr 21, 2021 at 11:08 PM Lorenzo Colitti wrote: > > load the timer will almost never fire since there will always be > > another packet coming. So the speed of adding/updating the timer is > > much more important than the accuracy. We will try to move it to > > timer_list. > > ... but actually, that's not acceptable, because AFAICS timer_list > counts in jiffies so its resolution might be as low as 10ms. It's not > acceptable to delay network traffic by up to 10ms under load. Not sure > if there is another timer API that can be used here. What do other network drivers do? This has to be a common problem, why is this USB driver somehow unique here? thanks, greg k-h