From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796427769; b=G5s8g7VXIwPsFkVyX69Avz2vm/TeNSPWcrNO9JFpsYt95HIUXAffNXZnd5lJfFxftClO SrJtfbKqRVrI+gnavz8DqYHCcHOrspN5yVc9nnY/jHu8pW6av0U9dJqVX9jKXK7yMz2Vw bJFj7X03oPgHYlenb/At5YUuoQ1QHgZxpGujCbsRpMKf5cReRSJJ4kE+yS/1Mze5c+d6+ 09vve/5+vl+oyAuPjcXREGsRT1COwotCTEB5mZ/qmRCP9I6KwKlyMS+lgDFSzryOKnJb2 piHr2dAECEXyM5I6E5GyRL2eWNYUXLIULtfdUSfrwfh9GcnzH5/vySmLhIKMFljq6mA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796427769; 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=ILgkJQWsSEotcKRjJQT+Lqmelf9vUNGymhuadItz5Ln4Vn5fyS/2FsPs/DTz+4ufjTbg gB6ZKCvYuFvQh1GtUuH7JF4GZZ9oEG3A/6ULM94b/2riPd4BY9zB45wp9sO3uv1HnO+zk eBODoxtQpvahD/9GxISO0jUPwFCNhEdDIIL/EFhM/1Pgh/ibnIg2UhesmcVL6DbQd4Qn1 R98uq+DH7TnIOtxW/wJLGTE7PMfQ+gLZdb1HNLj7L+SLhFdWEmUxJpEY2Rub9ASno3Hgp uvhoL1LVdKb1o2J+oHhKrLcU6Qef43raY/rDG0muehAY/6Xre1y1KgQtbRb97PhTrlA== 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.48 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 7A55D606A322 for ; Fri, 4 Dec 2026 23:42:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7A55D606A322 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-f48.google.com with SMTP id 98e67ed59e1d1-3b5e015ce05so907965a91.0 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=tdawW2oHTDhH0z4/GxnqtqjDjiJgcMMCwBi/dV7ubJ0LImZOwsuusJL27l0nA4sgAm sZo3ikpepjPFqfUAINeKIXtTQNzXRyBCJbQtL3Uh1QSBpJohgzcahOqHPkTrpXM9ymTC zKX4WvSQzJrsNa2WhsmFoD4FvzdOfbgz2Hprdlg6DHc5w9GKJv7I4R7BUjvJ/Co5ED5I 1QTmmUVjTzpZAt9HyBFJAzhf1oqc8fQGTs2pAz/enjZSc7BTp8wAftiJGKtTliqxmwjc O+eHMXJzhR786RWCuGH1qbzjJbxe8qCHgfYIxAQdV1xFBKxI+dFYVD3rg7QUvfe2/juP PRUw== X-Forwarded-Encrypted: i=1; AL+hErFJpWS4fyEBs7Njhzes4Y1IAbnhN0/phWakm2cyQeie46J4dinz3C52CYEeeeSU/paEQInnP3bXWs4=@vger.kernel.org X-Gm-Message-State: AB4q+uHmEZQ4s+4Q3XSvTPK/xfLUxaBTS8l3vTanXaVHK/BrDyBlvHcI rl5pRqVSE6j3OH6BwoFoq0iXbr5EM6ytPvDJ/ZarIPzV/icpbwnKKDgc/crN7HgyWw== X-Gm-Gg: AZFdTZdvUNwyKToARMQ3LfuzQJeh9SmeDeWlWEMfHFflJXHG2zrj9VIgOiUBvkj4vXG W8PJgdz1/Ck6RWVnIPfwcxA97SNXAHdGgzag+F4kW8dPMSR7btkuyeGsEG/nkma6TWvPnxxhPWU DlDUwpP59/8GGC+VPFNY+OBfI/xFD3UAYGceglzzZ3YK0Iia967BUxURKb/ohVNFtwhjCoCxz6X VWIQlmFBdsde3cZiC1zYfi6Q4TGJvDWF4y3C21y6xGzYgOo2TY8xe/bzg7K9Y+aEJZELQWoB6d+ 0HD8hhMl9DqsReu3VdyThf9ViJwlfRp98SK/IuerH2ZcM/E03onmEwVA418B2MjAWJgb2Vsuvdn B1KfqWTMpr2BwR0Avz8pN5ZUwBs58TzA7rY5izSk9xjW/QQM9D49V5zKxjzrAa18v9euP4grfnA mmjT/d/ffuXy1HPTFphibfPDqNgoJV9HrvsE0uONx8IqmGlzPLDmhqrCRrxSpB39CpUojSUpEc2 88cQ0XO8upxMBjrjG2LQPxbAzt8Vp+kbiUPTcTxO9Mt8yHuJe7mvU4EhkntS89LUIZTSDFa/XV+ zxGG+WSZWpfV8V/V+rKHeuvWhfEz+mEMaH49xRYOG51tzKfIN8d1AUgn5z0GOx0K 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-pci@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.