Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1235046pxb; Fri, 13 Nov 2020 07:33:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhcry7VxGs5eXvD4iCMIpeoe7Y3mXe1q4w7IxhS8WywTLc+2E0mOTuSEnjV9vBfTyCzgrQ X-Received: by 2002:a17:906:40c9:: with SMTP id a9mr2277583ejk.518.1605281622418; Fri, 13 Nov 2020 07:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605281622; cv=none; d=google.com; s=arc-20160816; b=nj1+mUaN000RSYXAg1WRsImKzVdZssUcQ3PdK9O53Y+9D3WmsYClH0pbfOIa5BOxbR KwtZn+YQVPpP7M9bPCadjx+1hW+G7yafFs1ubjV1d8zrVGTddERn7meTiGUiiVaieypH 1BpTWlaO9hwNI+1l+OdRbPQwmJP7z33+aHe+1Ii1oTzxTnaOhQz+0O2ozYzKBc697l4Z zEz3RIp8jpsV+fLODh9rXJowCtqG5Mo9aOTd9nrmLP8xH8e7BJj5vO8XIBpGEJpz9OH7 QdKAiR4fZshxjLm0/Fr+APtMo1lP0InnztjLd+oIJtmgVBDmvWUIjfDuLw14utNB5tAR YJRg== 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=E1piaRScpugNaOInOx9skGYdBMnp5lcZTvsuoFH6j/8=; b=XsTR+toLOqwI44aER4BVwj5Y/oDPOdHVxkJsFWmNGAWvbELir+z9jwGVTKQqewgGFr PjaQXMJ3mj4K8FljvKn2KP9US2AhXA+8g2KA7LWEZgoZ+ASk1vhmPub99zOV/G8XIPrS +rrtSAABEJpUxn4voM5BShEWEnPGi+YGvKuXQ4BKNBwomeZGNy/ui/uUUAMQFl4YTTWj eMbXj5q7SByQBimYYCMXrMPozsR1uLuk+4vDrexCvAfewVcVQd2ICBSIhBJBvn9eU1oB DEzMMHFVzuKH6G4BzJqHREnM0I0AMAMKJWUWf4BP2hyIANHvuSEbMlyeGuZ4IOJewPL5 9x4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tIa+n2qH; 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=fail (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 hr12si5637309ejc.562.2020.11.13.07.33.18; Fri, 13 Nov 2020 07:33:42 -0800 (PST) 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=@kernel.org header.s=default header.b=tIa+n2qH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbgKMPb5 (ORCPT + 99 others); Fri, 13 Nov 2020 10:31:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:51034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbgKMPb5 (ORCPT ); Fri, 13 Nov 2020 10:31:57 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE112208D5; Fri, 13 Nov 2020 15:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605281516; bh=D+K4eSnXMa89LSYZ7jMaE8u+DXUbJR1/k9ED80rrD7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tIa+n2qHt2lDhuEwBt0MljRqQxaq0sqOY4cMgfJ3+csbJx9x2mLT7Sc38QXTYVCl3 WDlCXMAFV6wi6QOHdHqb9JDAMmnPQ3igo8lcfJA3OaspPbUkgu+qp3VRkw8kpWX7Sb +hHPtYlmIWiY7lHRbInh4m/G1boQ2bwcxWSYpj2I= Date: Fri, 13 Nov 2020 16:32:53 +0100 From: Greg Kroah-Hartman To: Andrey Konovalov Cc: Sebastian Andrzej Siewior , Dmitry Vyukov , USB list , LKML , Andrew Morton , Alan Stern , Shuah Khan , Alexander Potapenko , Marco Elver , Aleksandr Nogikh , Nazime Hande Harputluoglu , Thomas Gleixner Subject: Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq Message-ID: References: <20201113123035.tjllvijjzd54npsf@linutronix.de> <20201113132818.zhtdhzg6ukv4wgxl@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 Fri, Nov 13, 2020 at 02:42:44PM +0100, Andrey Konovalov wrote: > On Fri, Nov 13, 2020 at 2:28 PM Sebastian Andrzej Siewior > wrote: > > > > On 2020-11-13 13:51:19 [+0100], Andrey Konovalov wrote: > > > Hi Sebastian, > > > > Hi Andrey, > > > > > Replaced with what and why? > > > > Linus requested in > > https://lkml.kernel.org/r/CAHk-=wht7kAeyR5xEW2ORj7m0hibVxZ3t+2ie8vNHLQfdbN2_g@mail.gmail.com/ > > > > that drivers should not change their behaviour on context magic like > > in_atomic(), in_interrupt() and so on. > > The USB bits were posted in > > https://lkml.kernel.org/r/20201019100629.419020859@linutronix.de > > > > and merged (which is probably the same time as this patch). > > > > I haven't look what this code should do or does but there are HCDs for > > which this is never true like the UHCI/OHCI controller for instance. > > We could go back to adding softirq-specific kcov callbacks. Perhaps > with a simpler implementation than what we had before to only cover > this case. Something like kcov_remote_start_usb_softirq() and > kcov_remote_stop_softirq() that do the softirq check internally. > > Greg, what would you prefer? I really have no idea, sorry.