Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp812705pxy; Wed, 21 Apr 2021 16:04:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5YO7PDAgCsqVrryrt9uPkFGSpbQt5swFTmhaIxKmFxf/1CZmYnweuI5LA8amdkWOahRCL X-Received: by 2002:a17:90a:e28b:: with SMTP id d11mr14043762pjz.53.1619046287360; Wed, 21 Apr 2021 16:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619046287; cv=none; d=google.com; s=arc-20160816; b=oM55SQ89A+H0u41uZoyLWsXIrl6EPA3adP6m+S+KGWZ2bAc8FinOshxpTiZOFibRpP hrRhX2fgW0+KKQplMETUsUPw8F0OvPGCN4M0N7DFafMB649EFJpc34BfYQ0KX0hSKqjs KAuOi9zy3ItHwmXDgAaWJQFmMrfhDBYjpnRH/91aeM9DeLnBvlaYeLk9T1LwODLeVcNu d59sXRHvftCKWItEI+5dLQmOnq/TiZrLuZY5au53/fyrfvaxxrLOuU8UtjSLTMuyPcGk I3kfdTB5a5G+niUyQWke0E1oaEJmNqaXrjSFlawQDeKTpWFYLvlzB762kdV9MHamXAWl uQYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0L1hvEKwz2Eae758ou8xZPBroWeu9aFN+KpI9k9ujLM=; b=MPkLfG6qJUrrfJJF5RxOrATqLinzCXSOU4KxdTCCKSkHoQ7NhqlllFeqFt3AGOXg6D ihMZp2Q3Ghg4dbWxlok9U0bsTGQ4xI5wdTfdrOzQQaBlc4CZgOHvZY2uvjFYww+ByoHw WXoXpbbTppYOGtr+H7B6xUHYd51+PwYqhyIRKmiL3mppCGOVuV+9uE+I4ipSiLfbNQdK FnFpvSVaKlSGsjIiB+CBBfimo6cn8Fsm8S1nIgtYwjvsT9UQ9vKRWpbUSohx2oqR/MfG 2fvVa9IMAU8OzKoNQVOjt42r6ZT6LnyUAgGIbrDVOLKS2xQPbg/3qgA6EBvisKZcYkcj +nvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gKiXkibF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si4326655pjr.164.2021.04.21.16.04.32; Wed, 21 Apr 2021 16:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gKiXkibF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243969AbhDUPXK (ORCPT + 99 others); Wed, 21 Apr 2021 11:23:10 -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