From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049135; b=KoIP6Xa79UZ3WecBR8ElysDoS6LtbKQb7Sl8SoTj/u8FQPUahH/odqhgrPFizcxneLej 5wl024rSrg8vSIBqyEXTNXK+OPq2zy24sfYLLvgz3SllkUPg/Wkt19zLtamqJgA6JUM/W xuZLpKM1vVI83ZrAnXgEXOc69aZGbdfu+xu+jcm82oLUioufNHDDmyrAFBonTsOa+epu8 0ygHMOXN2/6dPioodbrSdV3tT+/Kmf64wzHUKUowFKr+NMjzPfOZMLB57Fwr9dMdm+gZ5 U48wHCgXAbH9jbVp3Q4V1Yfqt9HqQvids81QpeXRt4BPaBLlgJcOfi1iD5UfiCgcwCQ== 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=fznIFMDnPks6MR1YIq4Jbm9ZVuXBEbciLbiHzbV6aUPGq3UfkFDJmS6ogFwOXK9/YvDl +Ms8Dd6QpQNjkS3c7VX9Y/rj4b1203NPz9kbkDB78bgLhlqdFtYzEE1QjHqk93PEss6w/ DGnHaPU/XMC0ZosZHVS6N0wTIRi9hl7pbo4l1jtMUvxmp5LiOxVa0uhijpmFcprjZfEXo Wij5FugHv6wssKjOopvsVN9UZH+Ny3zqEQ8Y9/0RPTaWiWxbekvFDUUn80UNdJFgw7g/G FGZHqu15g/fPT1AYxD+LkpPRtZbH6SpxUavkUJyupPJ4BNqdZzYASmWWzTClr8nWrMA== 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=cTN57yQ4; arc=none smtp.remote-ip=74.125.82.44 Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.44]) (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 74EE3606A325 for ; Mon, 30 Nov 2026 14:32:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 74EE3606A325 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=cTN57yQ4 Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-194d0c31715so45591c88.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=1796049134; x=1796653934; 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=cTN57yQ48VNS/oHkLbJ1fbg0tlDfSVp5D2AXBopQ/dUHxki3KgRwMJg3LFPyV2IXo7 LrjuuAvkKSqZCYFYW/vsqA1tQV0VlKbfhMfA3JPo705rog5kMmeZE5+/NJpZkuvkmfol 2IMKuw5uE4dQP8/4AcD8UNyqbdG6VBC/oPBAlWJAvjHhL0gCIOqGVGw06nMKQCH03IiT sU8kNs3AmbFwbuFrqb57TfboT/VCIrC82flH+iipMUZEDdVol/SocFw8qXnn36IjJ1yF UImoaZECBGLz86uNlf9FRH0nKbp6gii5CjyRRFvlY+cuooHogI5syr657uT9jVV/kNj2 igCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796049134; x=1796653934; 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=Qy8TnzKXX3HWd0Iq4OrQ30OlEbstLw5LJnbvng3gO8Qwhw8o1gecWse52sowSYzRhX QSD6K0d9t1Zk0l2ZyuwQpfBMvpuQrDpqcWV33OdSIkJ3T1tKy+NKFUiXrMCNJagmVx78 t0xAneAlb4i24oq7j1PkW5wobA05H8zFucRBrmkbsDstjdB/3zLl6PDbQyMv3IQ1SGzz pAwHDEL2m4DBGnfKo4B+V/79BtPAen4ZXgJMyvt0SoE9sNrd5Ox0gxQrDXOmoy5ptL38 AoFSMo44HTNgKINOVsB8U8GwYbg89Sgm0ytWfCvF39QjebSD6Li6XDV4uEd0pH/sKlfR FgVw== X-Forwarded-Encrypted: i=1; AL+hErGYM+MyytM47Y5kiiKr8GVLaCyTGPiGGyYNHdDOg5lcbGlOWQ083OkbfPRRUblsExsqTfKm+V2yFyNq284=@vger.kernel.org X-Gm-Message-State: APuU4Z/etpukXfpCIjMA+YvjhgsnUNAXKLnfcJDu44jX0QmMOe3JUERB Stn15TRPNrs2LQkrlOjfp/Rx2rxkyxzEBGu+fP7c8BPw4VRKjrqhXNP+F5T0cRAd2Q== X-Gm-Gg: AZFdTZf+Fgs81IRSMChF6lI4i25Z5TqADEYZ58YHeItI6SRv3tGWmokYyX8jJX8qZJE tjTly4HF42TRWCq8Yj/PS8EYE3aPwu6fXK6ikMSZAycdhNeSni7/lcOihKOUMJEX8VaWxj70Ri+ DyOp3o1nzdVmj86McbmxbQAj0Jax5VbFbNKcSuMaDSMCC9GLyrlJGo97z+87CiFy2R+jP1efUe+ 8Fsh4NzjIWBzK8iAWXlOhidfDV6HmbZFkRDyVL5eZvBotydEB+TJ41BI9vx19C7UXGHa92lLaaV JF6rLCIc7zjimhF/XmYlDu7oqUn+y6UL50zUgM9eTSM523+JmT4Kfs80Visvf7IIutMjjiXfGtj Ds2vz0vJ78NtNcRK6xbNeeAlIiDAUdT97nyaeIup6DS8PNsRoDlwO9ZYxe0hg2IGvd9Q924u6pm G2vjGzYNgvz7TQIVBpsQzBrGKYuA7PwVxjY2GlCauxLBKPORqHQOFuny8/J3D+5CJf1yje3dgpy yPghbZumjNAWRP1ad4UcVqVq31/XeH2boFXv9uonFNZwCr+Hwf0dztEAemNOVGEICU9Mh2Qsiq8 wDnaxWD03/HjsIjJ+UNURQceH9Zxk233DFJACbOhxyg9SBKJd/GBqYvwoNKz1IHiWa0k 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-kernel@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