Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp24121lqj; Thu, 11 Apr 2024 08:56:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOB5lHctRbb3Li203nkmGah14mf58Qo8JVZnUOzjNXWyTk1vNy2nXLSIJxc1GP3QTWKWSCc/QKO7N3hWW/h32ZZ0OHdyE4gIN3FYSfFw== X-Google-Smtp-Source: AGHT+IGZMYMiJvdQI5gPuzcnmyt+6UhJZvJ7wrrr9KY0wqzb3rKWkM+MO+wQC29n+O2+bcuKjG+W X-Received: by 2002:a05:6359:14cb:b0:183:9a25:852a with SMTP id lz11-20020a05635914cb00b001839a25852amr7731444rwb.7.1712851003477; Thu, 11 Apr 2024 08:56:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712851003; cv=pass; d=google.com; s=arc-20160816; b=DQBYJDsgnXyEpGTGlWWdz4ypHEC+X9v6rj5l9LiGKraCyLEG3Qd8JfkEM05hlnxJkV 16yCVsTyj6TwoMKtbpqTmjwdm9DlCRo0IwnLt6csdlbp7XAPqNsd92ubwLxc4ujOwH+8 BaNqZd2VlbL3s1L+l5PNgiR7oqflow98lNwmY/lTNhVW2lcGnJT8mb0AcP92XIh2QLD1 MjSbi0hIDU3Ipur8bQ2sZxg/GZ+Bn215ha7mJem4SkQWUZZdEv0v5LFzcpGGymj/p/HM PlH8msxPWZEPfgJDqrViX15pUjHBL4pd6ZH7mWfyM9iD9xQoS4T48qfWho39NgZbrErX oOQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=L+0SgvYfp2HlqnXUngMq1zhm8WKfYeRAmlhecspRZUk=; fh=J6myIoe9+o4o5RvWb7blLbj1j3hbXhj8ZS3Kli2aPAw=; b=rWIdtJkOTltQjhR7paUSY3GKSoIrhq+dDTRRm6nGkoxEmMKLiAJPdKWuoO2LSDEE3b Muhx2VuYZXYizmHAVRc8+y9DRc5JZL4d5w/aqrqdOJHuY0Ttrm9UzuG0cIvyyeu7w6rV ifZYw79YWIgtFdNdWCQuJ9sfWwjPPF+hPwDrE/P/Py0I1kLif0lL6zF7MpFdbhUKPtsO k0FplNTRXFuBZJoJxXwWuv2yvzi55W0LSuB08EE3l7WGDL4FKVH3BTgDCWtXdlg8YklM x4HkbalMWgaKmPDj9Qr42NuVij5ltvY1XKvrnjkuQ+7cVNoLxerB8hAgPTSk42MPTNrf NXoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=z3Fw6elo; arc=pass (i=1 spf=pass spfdomain=sylv.io dkim=pass dkdomain=sylv.io dmarc=pass fromdomain=sylv.io); spf=pass (google.com: domain of linux-kernel+bounces-140741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sylv.io Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2-20020a631d42000000b005f057f3a771si1401743pgm.591.2024.04.11.08.56.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:56:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=z3Fw6elo; arc=pass (i=1 spf=pass spfdomain=sylv.io dkim=pass dkdomain=sylv.io dmarc=pass fromdomain=sylv.io); spf=pass (google.com: domain of linux-kernel+bounces-140741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sylv.io Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D805B292DC for ; Thu, 11 Apr 2024 15:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3665D179BC; Thu, 11 Apr 2024 15:22:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sylv.io header.i=@sylv.io header.b="z3Fw6elo" Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28C5D14F68; Thu, 11 Apr 2024 15:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712848969; cv=none; b=qptJIrzoKXmgXNFtdM7gKEP3cJbdOa57vi+cQHXeIoGklg/a8OBco4nsRFBTjcixlVKa7R7vZpkoJnHFHhROMbywuDYJl57XgXRQLD/3ucdH0WpVLi/DdJlYWr6HgMZCSmDzKXo4i0ednNv4ui7ItjNbhpTigpjkWxANmBnhkGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712848969; c=relaxed/simple; bh=V1tankF8vnXxhI5jHIfzU9REJx8/FWrFvAkiwcw9YEQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=obQLy22xsFAd88Gs/Oz/EBDrPyDbtUEJVOLpCTDSWVb2gtYqeFNzOycwpnsRcOv4cMgz6sAqJZLF6DAbQ8H1a9SPCXvD0c9W6QuUSGae2CpSDO/kfSS9ANEBv22rh3mFJJn3/NgmXkgfwGYhteJbSomunyWp6d66iKuVWfOgZI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sylv.io; spf=pass smtp.mailfrom=sylv.io; dkim=pass (2048-bit key) header.d=sylv.io header.i=@sylv.io header.b=z3Fw6elo; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sylv.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sylv.io Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4VFk371Z6vz9sWt; Thu, 11 Apr 2024 17:22:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sylv.io; s=MBO0001; t=1712848963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=L+0SgvYfp2HlqnXUngMq1zhm8WKfYeRAmlhecspRZUk=; b=z3Fw6eloAdfaGNjnXghLf6bmhpVAv4w0ZEZNzGvnxkzb0/WKInEtRSvysi/qzetWBDOoqN tW1nZRFJx2P6USJwiczmFPx8Vf79m/A5kP329Fb6hrh2Qj/O6FXZptpXtGLvt11i6PKtBm i9Lmtctnrz+EdewP7hyQa+nWT0jr5il9lAcNR7dsbWoPvJMEQf/C8EwWaH4bm/7ow0VC/O cIS63BYNrr039hTsVXRUq9KZXHvbsadEYJ1dd+3y7AJGVeS2tKz74wsrdMGMhiptN5zGiN ep+7HZfRAw9SQjQtT+1wwBv6AZkem8ze2iJ7RcifhayRsdaP7tUs+goqRNhfCQ== From: Marcello Sylvester Bauer To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman , Marcello Sylvester Bauer , Matthias Stoeckl , Uwe Kleine-Koenig , Marcello Sylvester Bauer Subject: [PATCH v1 0/2] usb: gadget: dummy_hcd: Switch to hrtimers for better performance Date: Thu, 11 Apr 2024 17:22:09 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4VFk371Z6vz9sWt About 10 years ago, there was a discussion about the poor performance of dummy_hcd due to the use of jiffies instead of hrtimers [1]. There was a proposal to switch to hrtimers, but the patch never made it into the mainline, and I cannot figure out why. This patch set brings the idea back to the mailing list with the intention of improving the overall performance of this driver. [1](https://linux-usb.vger.kernel.narkive.com/Fdt5oBR8/dummy-hcd-performance-correctness) Marcello Sylvester Bauer (2): usb: gadget: dummy_hcd: Switch to hrtimer transfer scheduler usb: gadget: dummy_hcd: Set transfer interval to 1 microframe drivers/usb/gadget/udc/dummy_hcd.c | 37 ++++++++++++++++++------------ 1 file changed, 22 insertions(+), 15 deletions(-) -- 2.44.0