Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1052258imm; Wed, 13 Jun 2018 12:31:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKJz+FMj42qIsV9Bp9wig0A9fJQvxY7SMA2F783cfkHVuVEqCXLhmg8g0mVbbCdyXnaHhtk X-Received: by 2002:a65:630b:: with SMTP id g11-v6mr5080225pgv.303.1528918283898; Wed, 13 Jun 2018 12:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528918283; cv=none; d=google.com; s=arc-20160816; b=SIfaryf9VwkGOvbYH7PvznzSL++Dbh0eMOTKC9Y4veiPOjbg+4Ln25EMxjSje+OU7D n0A10+qTlDoH4TmBzWhNmnT3/ayjsEuynmPiZ5ZG7qe6QxtmGpkAtwLF1gSf7RWrH8RA k2mQlmJfpglaKf/hKm2909GXcJF9LzBC5+ZezFg1m3Or6vyGmXeQ22rk9TJF3jeJfvS5 th+B9tBq+2GFQg1T11Uzo6b+1P1urUtJQwNi0we7YfSy5HQwl7mSjNtpEgw+2TADh8xp WLalBDCbMiEc7TaoQf+1VFlVb9miZiFy8O+z1nArfOxicvN0RME18wZv7ygg9dhUwjFy wvbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=lgGFmjLAK7yOpjMwY9Od55vJpaBBFJmJ6ITM8d/Ntgk=; b=SuRNb2dlW21fFVN6l3elFwtS5/gjOpYkLtvl3Dl5z2oAMSHbQ1NoXxtKLTD9URnQoW FJDEr1oYQ0lXJLD2ktza/FZgMJPoj1WHnG5763+PcxGLFLDG9LwS5j2QpIbF/K6NXI29 6ueONQ3guon+6ABDuf4vBHBpCbT/506dG4DxBVTOAre1JCAqbDsgtgQtHI0V1g6X6Clg NDISCu40k5wU6USD3VWDh2KxJHPJRuS5/5UwbXc+46WlJZh37jFUPnRzlU6m3NHCidA9 RDfKz4Y76MG77Kuou2nwFYnsaLAq/vrY4eGzyVNfRse3tO7uEi8kA+um3bZGIXZlanj4 IYHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si3370501plz.190.2018.06.13.12.31.09; Wed, 13 Jun 2018 12:31:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935528AbeFMTai (ORCPT + 99 others); Wed, 13 Jun 2018 15:30:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54032 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935438AbeFMTae (ORCPT ); Wed, 13 Jun 2018 15:30:34 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 43E554022414; Wed, 13 Jun 2018 19:30:34 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 031671C5BB; Wed, 13 Jun 2018 19:30:31 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w5DJUVcq001529; Wed, 13 Jun 2018 15:30:31 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w5DJUVKL001525; Wed, 13 Jun 2018 15:30:31 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 13 Jun 2018 15:30:31 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Steven Rostedt cc: Alan Stern , Thomas Gleixner , Ming Lei , Greg Kroah-Hartman , USB list , Kernel development list Subject: Re: [PATCH] usb: don't offload isochronous urb completions to ksoftirq In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 13 Jun 2018 19:30:34 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 13 Jun 2018 19:30:34 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Jun 2018, Alan Stern wrote: > [Steve: Sorry for dumping you into the middle of this discussion. > Please see especially the last two paragraphs below. Mikulas is > getting dropouts with USB audio because part of the processing uses a > tasklet.] The problem is this: I have a single core machine with a usb2 sound card. When I increase the priority of a music player, the audio starts skipping. The reason for the skipping is that the ehci usb driver is offloading urb callbacks using tasklet_hi_schedule, the callbacks end up being offloaded to the ksoftirqd thread (that has priority 0), the music player with elevated priority preempts ksoftirqd and causes delays in the urb callbacks. Is this some deficiency in the softirq subsystem? (should we perhaps treat tasklet_hi specially and not offload it as much as the others?) Or should the ehci driver be fixed not to use tasklets? Mikulas