From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796427770; b=vX3JlGUhbL2d/7hwLalTK1jKEsIAZE+GRg55xB0Bz7QMEuR2TiBHJIwYm+nFSZTXvNmk bm8EVd5FPekC0QBhuRyIts/ipiClv6ABAM9wDFZEU87KXJB76RF0RAiNrnsjLQSxSbWSN Hpgl2/PmOuPjE2gFA0qSL2pCt74cH6yyWS2Tjdu7ETMty5XgeM/wqlV/3hsMKvdVU7MZ4 kP/ea08eu+aG9somNOeSd0rwDydAj1xoPN5nmYdRjgmf1HwO6urmvv+J32eAER4ZjXoYi HWE4+wrorRYRFhbwPwtu8rYRyCQvhMBBQCuf77uLyZ5MgJ7rSUwyBdJ2aNB3NmM9Ltg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796427770; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=V9Sujzx2+q1xYXe3HPnU1eDozhClF0OK4WwA0GNmbuA=; b=rdMTZ+ilIyrkQNHgcZ0UTjIjv1zgEXDSvjq34XI+HxqEV0ejK7gW97DvQlXvvE3fGlEk EcJxLicuvoZC+5XiM+Gj6srpf+yEtWe/UFjedCPOi2YC8rpUOplGJ8EAjKocFNWtscvYZ bpMPfah3Ei63SEg9qddYrLDKGaUawigfz3CrhLujscsOfvXHvljT/waAw8cmM1QaVnkPG qUk5IbOWjB1G7GTD7P8tU6R8n03MY3iSeNik7DnQPPRZxGT6cN4agm3TmM4G+ThwNdMgv y8w/P39Zlv/3fd6Od4wF4NAtdNzYatQNt7RuorcW7z7n92F8raV0GBEu6xGYJZPAHZQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=G7+no1sa; arc=none smtp.remote-ip=209.85.216.41 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0C2C606A330 for ; Fri, 4 Dec 2026 23:42:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F0C2C606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=G7+no1sa Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-3b532dfb874so1041079a91.3 for ; Fri, 04 Dec 2026 15:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796427769; x=1797032569; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=V9Sujzx2+q1xYXe3HPnU1eDozhClF0OK4WwA0GNmbuA=; b=G7+no1saPKAo8HiwevcqJfCX2TOZDJHuoYE5lu2Z3VXvqYp4+0IP+G16fhYB+eX7W3 zQLTH70i4i+p9EfSia93TAlphZOSaMCjdoMCfuJS1XA6yz/+kOffqwxkH1wi47ZzxqXp 1ROE3iUNAibT22UP1MjaQITzRtzr2ybWDAhgpAu3QOiDAopc6svYX0koHFuw0TbEFrsD vISW92FhNf2XP6XQr/AsHPz2uDNonn//X+HSwJmPJ31axoeYban9NG+0LAEa6PzxSCLG TeNjCIdfTDxSpp2xocj9M5Jva2uqnORniuDr2idxcuNYFED7dY6vRGIu0NK00LmlwHrK vUGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796427769; x=1797032569; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=V9Sujzx2+q1xYXe3HPnU1eDozhClF0OK4WwA0GNmbuA=; b=bd77506zlFP2S/cDpssZlCH5sce5G4nVzLKFMIZsLxWE1qsX8jr5Vbjw3OG1DU2e1l fP0vYGkX74spvOxt7nEmACAzmc8N4IjN+olMylJv8+aMG4Vwffr2+rcGv9CnR6CUyzAy RSvap+Lg7sMF5KmUFolnHC8BGB8rQzzph3rf3W/GabMBP6O2563tSl6VvqWu49ZIFNly xfZRm6HCYXyalYDw8igJ4XESKKm2wwO33jL+N5AkL1pUhUPLd4ayOZgu2jBX8f2ZEV+2 Y9UYSQu0Vvw7NqFY2pRW5ur+SSNMfofaJ6zBoRmQnV1nvcLaHe9ykczg62C52hsO/hzP LclA== X-Forwarded-Encrypted: i=1; AL+hErFeH22tTKZiNeNUMX34rFckrcUUMaS5/KEjNevdQ9ymvATW/9ycZUSE3/NJabmpZhji5vfIy7CDnlGJ/7Q=@vger.kernel.org X-Gm-Message-State: AB4q+uGTp9kveDojdtZ/yMNXmsqlT6++H7mbEy9y2+KTxvrGL1CjIRre oH50AM7yJRe3vdnE5J/R+J7OrbO52HNnvTOc+kSF/XsGH80VDE+dt/cyNfdh0mGQuGumNnuqVjw hov3p5A== X-Gm-Gg: AZFdTZeh1tZR1zIgMVpAdtWpASU3q9phQ92ILlsYNn1xw4l/0SmsI59xoJDGHqtppmt fMfPbgfaUOE6AL/ukSRhpfQqGNAWpJeO+c/b+jF/BI15+MAl505P37LI5Wq0OFQdNJzgAD6ZRdk YEcKSxXL2wSZJbQv6uho+cIZpGs8vX9Tl1ZCADPD2AUAXZhfo3s3AZY8gvNG/QyHOHOH4nyjEXJ bFpaEp+qHtBlNANMP0R9IsFwHiEdo8W3EJMjAmq+RYJ2f6rAky/EG1vdzz960fzUIcaHCVsMn+S ydVmpMn49twvGWdSnd31MycogGfuU0zpEihbywWPA/VCZSUR7UBXDz1hm/7/Q8d+QffIxphBSbU s8iRuBJ6EC5r50I5jplulbFC78GFciAL/O9BSEigsL4I5yK06dZFLp6xo1KxJIVu+IEXLaN1IC3 NPqFxABzmRSqoURJ2bXoXshnnEdUQwgsxOT30Bbineo5P8aqXoAI00aojc4WGgGKLuWHSKkF82Z YuzPY7KxxjgLzA+ma7I6LbdUvrVfAObdrOP9PMpQ0SwByZB5emE9inlzm14xUDuMapr6BLigO/l LxI7suitnF4XIY7D9ujJnD4QV0tb3Et39P/tldrES3pnr5wrrmTJMMoVuGxUe9Qp X-Received: by 2002:a17:90b:394c:b0:3b4:bef:9bc7 with SMTP id 98e67ed59e1d1-3b5e053be51mr3204115a91.7.1796427768214; Fri, 04 Dec 2026 15:42:48 -0800 (PST) Received: from localhost (33.79.127.34.bc.googleusercontent.com. [34.127.79.33]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5ddc55a47sm6113498a91.13.2026.12.04.15.42.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 15:42:47 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 15:42:47 -0800 Message-Id: Cc: "Bjorn Helgaas" , , "Lukas Wunner" , , "David Matlack" , "Alistair Francis" , "Jonathan Cameron" , "Gregory Price" , "Alexey Kardashevskiy" , "Thomas Gleixner" Subject: Re: [PATCH v2 0/2] PCI/DOE: Speed up mailbox polling From: "David Matlack" To: "Bjorn Helgaas" , "Michal Clapinski" X-Mailer: aerc 0.21.0 References: <20261103163101.1696520-1-mclapinski@google.com> <20261103212714.GA1139635@bhelgaas> In-Reply-To: <20261103212714.GA1139635@bhelgaas> On Tue Nov 3, 2026 at 1:27 PM PST, Bjorn Helgaas wrote: > I wish we had a way to use interrupts instead of polling, but it > doesn't seem like we have a way to share MSI/MSI-X vectors between > PCI core code like this and the eventual driver. Added Thomas in case > he has any brilliant ideas about that. I thought about this a bit, and I don't know if interrupts would buy much for the enumeration case: - The DOE interrupt is signaled for Data Object Ready and DOE Error, but not when DOE Busy clears (PCIe r6.2, sec 6.30.3, per pci_doe_send_req()). So pci_doe_abort() would still have to poll. - During enumeration there's no driver yet, so the PCI core would have to allocate and enable MSI/MSI-X vectors itself just for the DOE exchanges, and then tear them down before the driver probes. That setup and teardown may cost about as much as the ~110 us discovery exchanges it would replace (pure speculation on my part). - Polling with a short busy-poll before sleeping already notices a response within a few microseconds of it being ready, which is about the same as the latency of taking an interrupt and waking up the waiting task. Interrupts would help with exchanges that take much longer, where polling burns more CPU. But I think that's a separate problem from this series.