From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049135; b=GohuEfqmchHmFXxpYraXKpZ+hdyTmb342PCf9HJYlg0bmxcwcDM3KoWRIIlZqaKbPPZQ jAq38mE3G2+Uhv+3EqiWPexE2tIihBlETssRMDzXRtqNAcKFM54W5dA67BpMDDbQtLCEP yEbF8dvdLL1i+hhmkAHhRqg0OMvQzZwIRLMFAgwbT9/qyujGud9SRj0V4opS7Cs/L7CfX oogjK/b4R6Zhfqa2wnWfxDUKalvUUobH4M2aUufPo/PkDy3z+iSqumDPMHjX1MdXAbPxR SrPf0rPsuRxJFNUH7/GapHDh6aguWw3aTSPrDbo4XefnYxkj3beg5ucWOHpRL50Z/dA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796049135; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=0RY120uqtNh8tgrFyUZ3RlZdwqk54jaLcqlya5UQp4w=; b=gaePc9rmUTcoq5DeKvI4lIrm94Ax6Of1MvmoEIcqBv1O8fjqkOtEBdxBMjfMfxJ3PzAk F9+97bU5s8+OrfPYG7bu+NgXtPPJVTt460rrhZP4BCHVBQ00FZjnUnb6Kw80caZ0tqhEQ qIqXVi+kCp7WhRZM69qQvgT4icYzSdiDXLhdf6lH+xgLwK+14ZYJaSmGNNcTwm638nXEJ rhRzUcSyctalBs5GeIKTB9+FYQDZl0+4xwsVL3J11Juk54O2OCZEZISetLpl6NCs/L/sG LTXSf+rYy/iUJNsdf26bPBVJPR2h3x+FTEWp9zmHNzOOCPU/7z9VATG/kymeBmozhVw== 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=VgDd4aHa; arc=none smtp.remote-ip=74.125.82.45 Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45]) (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 6F3EF606A31C for ; Mon, 30 Nov 2026 14:32:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6F3EF606A31C 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=VgDd4aHa Received: by mail-dl1-f45.google.com with SMTP id a92af1059eb24-194d0c31715so45594c88.0 for ; Mon, 30 Nov 2026 06:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796049135; x=1796653935; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=0RY120uqtNh8tgrFyUZ3RlZdwqk54jaLcqlya5UQp4w=; b=VgDd4aHaeritSlnpEu231ey8zFtrPnxUZmSLDmrQmGOqHLIC55I+Af+6QvKDGjCxI7 LJmaECmKjSLM9jJQYNR0eG78R3Sq6lLFKKayOEL7J7iATTYxri3cSGtEYfbJRwDC4x/n GVDlp2DCFNzQ6jt8nJzpCMYR5F2dyoHOux9K10M5ptyZQW3/AGfiZgutCuATRSqWZfhu NFvW7V9r74tdzeVcZY1XL/sRDWVwTW3NcUdyowpoE9olWNMcqf7s23yWed45GFWn7Wxb DmVEj+5c/ZYNy5G3mUuAyQEpZVDtYi9b/4PbZGZro7oAdnnIVWlFLHM3q59WPxlQ2GM8 uaHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796049135; x=1796653935; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0RY120uqtNh8tgrFyUZ3RlZdwqk54jaLcqlya5UQp4w=; b=hu78vLyjCNqn6K44/qu+IuGNGMGqbGCLyMdv9UILA0glWdpEJxNeoKp9zPgxAv4juy VmhhPxUMjQmncFuvDRrT/U52TBJDxcslF6i1cU/qCRBialxqysDJyPiJTStVovloqBg0 9A36HVHvctJPnoz8aQm3ofVoYw20mLAzE+Y5zyio+WJbLVjcOe9oxd/42odXgelJrEwR lEnpHwyV/wTX7BtX5zAU4xlA1n+BcpKSLDiJZ9YMAfXtd9N9gonxis8Nk/AHkHD0CysD gcPBSsx+l0SGRklHsU0KAxB7r+6NryXtzdQ6Q1VmJDp3nHg7NGmsdt3ueAOXPnJW+8XZ J2hw== X-Forwarded-Encrypted: i=1; AL+hErFEaEqTBhrmcPG5Ddcx4E5TDVBab99Y4aA/+Xq/xhHQBNYsN8P/JYVJoZ0Rcv+6JZZXrKD0VSgRvv5H@vger.kernel.org X-Gm-Message-State: APuU4Z+ohkUV+C2nPMxeq7QJYxujj/W58RctTyAWf1/1/KtMvaUm4+Au QtLU9Ak4i+2bsFNiV4iFZIf3Vduvw6rj3Ba4rNhCt5+BRPAg7A7f6/aI9mBZ+43DwQ== X-Gm-Gg: AZFdTZcep5O9cJpNikeEJf6PnEFjX1hI4vG9IcrHSOHRLr1D7EUFK7zDo0En2o4VdiV AW6CdI6I13SF4UBSFSzuBxWoGtgFgmITF7LsjTntSQWeQ44fj1pYj3S8qIXVZyoFOGXGqmNVcL2 wXnJVkkKp31qKzDGbVvdFtnC8S7d83xuqk5AX6iyMGOEcLbaqD9rlRXOAoERfEV9BSxOBRTvoNk TbzL5e7WFXGCsJzL2EQgzkbZizPA9eCIA2cF5cZATEajWzpo8kv3AIPXmyoRaNadTcQaHa7oXHi uOVPo8qpjk0f1kLpGQ0zapbnGtJ7LCdRi3x4fiuU9Lxlkor6m1Dz0H4ibwNrxfwECKnQX7KfWSX vfPCK3lWE/GyrgmdiB9hOFvtobLtCp+RV67/KxNb4gdLmwtVlAqGLRtTX1rdl06DtSQQTGd1onB 92hTyET6GszkJJ8w+vN/acqS6f16ZUCjslKd5GxP0dBhaosHqDruj8Zw2kB6PONqdatS6Gss6Y1 CsfO+QKNLASKgEsTbUX0m1d/kkUyGBxSRK5nYMOa8+P8fz4ocSjlt6LtVXuIJn3bIKxh6T5yO14 D67+FoX4ABGsT4pSOJ8H5GijF8sal1zRIvt/wEr69HM+5zvGv1KJH/JVuPYznr+JVJmb X-Received: by 2002:a05:7022:7e8c:b0:137:e62c:421c with SMTP id a92af1059eb24-1b563de20e4mr6371205c88.4.1796049133538; Mon, 30 Nov 2026 06:32:13 -0800 (PST) Received: from google.com (105.211.142.34.bc.googleusercontent.com. [34.142.211.105]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385646633d0sm171079515eec.3.2026.11.30.06.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 06:32:13 -0800 (PST) Date: Mon, 30 Nov 2026 14:32:05 +0000 From: Pranjal Shrivastava To: Danny Gonzalez Cc: Bjorn Helgaas , Joerg Roedel , Will Deacon , Robin Murphy , "Rafael J . Wysocki" , Len Brown , Jason Gunthorpe , Nicolin Chen , Lu Baolu , Kevin Tian , decot@google.com, sheenamo@google.com, linux-pci@vger.kernel.org, iommu@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, skhawaja@google.com, dmatlack@google.com Subject: Re: [PATCH v3 0/2] PCI/ATS: Disable ATS when ACS TB is set upstream Message-ID: References: <20261120002311.394649-1-digonzal@google.com> X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261120002311.394649-1-digonzal@google.com> On Fri, Nov 20, 2026 at 12:23:09AM +0000, Danny Gonzalez wrote: Hi Danny, > This series disables ATS on endpoints when an upstream bridge has ACS > Translation Blocking (PCI_ACS_TB) enabled, preventing ACS Violations on > translated DMA requests. > +David, Sami I'd like to discuss a tangential problem here. AFAIU, today nothing checks the upstream ports' TB before enabling ATS, so once TB is set, every Translation Request and Translated TLP from the endpoint is blocked as an ACS Violation. TB can legitimately be set by firmware or by "pci=config_acs=" in the current kernel, hence ATS enablement has to respect it regardless, and I agree with checking it. However, a case where we kexec (not Live Update) into a new kernel looks like a separate problem though: the previous kernel set TB (e.g. it booted with pci=noats, which makes pci_std_enable_acs() set it), and since pci_enable_acs() keeps existing bits, the next kernel inherits it and can't tell it apart from a firmware setting. I don't think a plain (non Live Update) kexec should hand its ACS policy to the next kernel. I'm wondering it the outgoing kernel should restore the ACS control it found at boot when shutting down for kexec? That might need pci_enable_acs() to remember the value it found, but then the next kernel would start from the firmware's settings, as on a cold boot. Thanks, Praan