Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp564017pxb; Thu, 30 Sep 2021 11:56:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyskZT5xFdzHVa9K86N5KEMHCKNW5DmMw3mtuMWqPWcgivmJJbTLLAOZnTrdpoMrhbcYJHa X-Received: by 2002:a65:4209:: with SMTP id c9mr6042250pgq.399.1633028199312; Thu, 30 Sep 2021 11:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633028199; cv=none; d=google.com; s=arc-20160816; b=LE+tJ6CchcER9PFc/VCDm5JnFYT9jWmX8858IBCEIZSpKvIEvrVD+RtqgDC1sKyU/V KF20cSg+xknjF5DuAAi1a3mpG0U+VHRaZ3brCSq3CBmyvT+yxMj9lW80pCtGgL5NCvRx S4zUIPawa3SjZJeKo/cxmj8msghwbm6IMt7RZMhpPcccIU6AxScgLQp1L4czRlrooH8N 8OqLoXRSQgwaAnbYvC52BvXb20BnwWlIi0RyXG+XAW37+vRB1SokBY1o8yZ2AzOhKmbn EAEhREGGesHyztuE3RsjmYjhjIKLpOfLCeqOw1oQtwgnZqdl21falZv4P7fFq/8vegxG mUmQ== 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=u7/zMdrPeVyZNLTntHruwDpYub+H9qwtzzzSUntktcA=; b=MpM5Uu22WCcdm1kcMIihm5TnfxwHlSWBJ7aGO9n1QEM4Nc1fWOafqAjY7AzL+3itCL JVz+p8oIZrUtZkJ6pemb4AiPwd7kiIMOYZiR8A2N3oeyE1LdsLITb1hEO7ZiNr9D4/io RHY0DrKARNUmWcRK9JW9PFfSNciO8RoT/dyuSESVxN9Fq2fXL9qN2r0jud+QCshI3QdG f6Rzl2s8qCzpVpnQqiaYw3c/to1vBfzaLY8xT2fHEdBLcBOm/49Z8o0igwLsKR0EwX4F pju/hkULJy9iov3j1pSFP+AH+ckpxDGZ5jODcboodC/0G6ffrwRFbg9gvmll30SC+jky 8xqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y3+XlroL; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si4725606pgn.123.2021.09.30.11.56.25; Thu, 30 Sep 2021 11:56:39 -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=@redhat.com header.s=mimecast20190719 header.b=Y3+XlroL; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351306AbhI3QcP (ORCPT + 99 others); Thu, 30 Sep 2021 12:32:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35977 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351345AbhI3QcK (ORCPT ); Thu, 30 Sep 2021 12:32:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633019426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u7/zMdrPeVyZNLTntHruwDpYub+H9qwtzzzSUntktcA=; b=Y3+XlroLA5TtOUcqWUR5haHikw0SJVLqBzWXn5InZ2zgRSGgjZ2tTrBMRs4HcGyGb0AWFM ofLQ+LtiGFkzEOtJgCm/NvDetOHnxxp46whs0VsIoXWO1hKgY8AKWIpvGN0R2qIFzkRu11 x/yu/UMVRMAiC+d7an5WpDsYSHJaU28= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-z2r_DDwdMRWSxVzVoPhJUw-1; Thu, 30 Sep 2021 12:30:22 -0400 X-MC-Unique: z2r_DDwdMRWSxVzVoPhJUw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3FA3A18125C0; Thu, 30 Sep 2021 16:30:19 +0000 (UTC) Received: from localhost (unknown [10.39.195.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id A3A2B1017E3E; Thu, 30 Sep 2021 16:30:18 +0000 (UTC) Date: Thu, 30 Sep 2021 17:30:17 +0100 From: Stefan Hajnoczi To: Andy Lutomirski Cc: Sohil Mehta , the arch/x86 maintainers , Tony Luck , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Jens Axboe , Christian Brauner , "Peter Zijlstra (Intel)" , Shuah Khan , Arnd Bergmann , Jonathan Corbet , Raj Ashok , Jacob Pan , Gayatri Kammela , Zeng Guang , "Williams, Dan J" , Randy E Witt , "Shankar, Ravi V" , Ramesh Thomas , Linux API , linux-arch@vger.kernel.org, Linux Kernel Mailing List , linux-kselftest@vger.kernel.org Subject: Re: [RFC PATCH 00/13] x86 User Interrupts support Message-ID: References: <20210913200132.3396598-1-sohil.mehta@intel.com> <456bf9cf-87b8-4c3d-ac0c-7e392bcf26de@www.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IzEoHzzIxT1o87/+" Content-Disposition: inline In-Reply-To: <456bf9cf-87b8-4c3d-ac0c-7e392bcf26de@www.fastmail.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IzEoHzzIxT1o87/+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 28, 2021 at 09:31:34PM -0700, Andy Lutomirski wrote: > On Mon, Sep 13, 2021, at 1:01 PM, Sohil Mehta wrote: > > User Interrupts Introduction > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > > User Interrupts (Uintr) is a hardware technology that enables delivering > > interrupts directly to user space. > > > > Today, virtually all communication across privilege boundaries happens = by going > > through the kernel. These include signals, pipes, remote procedure call= s and > > hardware interrupt based notifications. User interrupts provide the fou= ndation > > for more efficient (low latency and low CPU utilization) versions of th= ese > > common operations by avoiding transitions through the kernel. > > >=20 > ... >=20 > I spent some time reviewing the docs (ISE) and contemplating how this all= fits together, and I have a high level question: >=20 > Can someone give an example of a realistic workload that would benefit fr= om SENDUIPI and precisely how it would use SENDUIPI? Or an example of a re= alistic workload that would benefit from hypothetical device-initiated user= interrupts and how it would use them? I'm having trouble imagining someth= ing that wouldn't work as well or better by simply polling, at least on DMA= -coherent architectures like x86. I was wondering the same thing. One thing came to mind: An application that wants to be *interrupted* from what it's doing rather than waiting until the next polling point. For example, applications that are CPU-intensive and have green threads. I can't name a real application like this though :P. Stefan --IzEoHzzIxT1o87/+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmFV5hkACgkQnKSrs4Gr c8gkYAf8DF5mZAyvdq7MYNw7V3LLjLXQA/PJX65e9s/VzX1DOImgxepjEQfAkQUT /IncDgMu0mkE0+jU/ZwEngFzI77d5uDzt/xV8cVHjqfE7vCy8SASNg4HFijkl7aF aS+vZ2XK89S28S8ocQ/d7GPE80E+IEuxjInzASwimHFCmFtW8U+ka4CmIxbsw6e1 1ahYfTSnKrwSR2qSzW7cwU4WZFibG0TR0Lgz/oBm9dQuqu7IArWmSTNRKAQPJtqU Q+TtjQh/s1Gvvzq8gvdBB6/2mWVE4fUfwatayUBb3HdcUt+5/J32kT/vjeY9HSZL PkwYaTLC72ly4H9nhy2lYDD7XbfgFQ== =O0C0 -----END PGP SIGNATURE----- --IzEoHzzIxT1o87/+--