From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049135; b=4Myjbt57+G3avFsdh7WetMONdgYRMtlcljvDa1xWWOgFbjedpbqqVxnB4L4Y36I/NRsR 9G6Ib2wlMIi6BP4yTPAjO+aJWmwIpHipTuBzLYOdEJPMoNJkRv6ucNAedk0+Ox1hmfMEb NDmZ9VohxR8rLk8cjip/Gq8Gj8m2S1DVMy6OyOvkwKmTnACMrXxnTa4xO6+FU62KIBgeE xBe/GVUgKb5eDFHEQQu2GRgzlM+5742brI6X0iibJa5zlXSjDxN7vE2S5q+vAn82VNuqD KTtn6YfMhcSMedfMcjpkEHUutiRLCbQS53lMxicy024vh09XG3q/y+RBZ7oEwRJnO8A== 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=zVwgITQSPfjuxisDJKcXFk7f6VSBSfjGWvQBR1QlEsueVzgt0A/49wgB/xxnuRrhCPZz RACsqNPvov+T3NUsa7cIEpk303vXEpUMxU/bNrJXBHZNs8TmfcXfHtZmxD89g607ysyEe i45sRi2jdd3SB4yYeWjaXxXnx6NsJOKyGv/pGLTAmkCaJ2T59E6BM9f/Edg4fopUVbu58 eP+n3yHN6cKlufpbftVOta7jrJP/k5JoESZ36bD3xxn3JrT/H0uVvERc7VKcVqnd0+5wa mV1cxrx41hWR9dwMB8iLdkrzg7M2tGWjVGEhPsTPCkkCIEAfEx5HDCNQ26UJiz6EIUw== 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.51 Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (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 7E5DE606A327 for ; Mon, 30 Nov 2026 14:32:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7E5DE606A327 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-f51.google.com with SMTP id a92af1059eb24-1ae7fc5681dso46145c88.1 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=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=2wbC96jCjyGnEtMwUy+g1bIcq38BjlUJnNPZlLdzjEY9lg4ZAyznsNOXUebjTcB/dM G+GGjMt+nJ54Qh4CYOJK5FNGUI95mfLdqcFX8IaNAGA02W6f8cIqOvvbOMC1L93URYSR v9kyfUgsKrcdxo0fB0wF/MxVkfyjh9yup2H9haFHpizVKPYPYiPwYuI+yolNZKrhTzdu LIgeD3vDoua8fpkE/9bE/a/Dt4AHGb+z0slfjtVi0g548qd5DAs7pdRwGzhY9G7GIzWO l6rdLpOmb5/cTTVx9B4f/CP2Noc71mrZ4PYK2E8N7lMPet2muINJdTmOJLqLlsJGUhG/ JNew== X-Forwarded-Encrypted: i=1; AL+hErErGgS5HsUJs9+tB+psxTnoy8DkPCTHMYG0ebgR/HQcY7D1e3B57jFk6NxVtdtk/qPaMW5Ap+rHKdk=@vger.kernel.org X-Gm-Message-State: APuU4Z9LtqN2LjFFmW4XfBpyiRqHlNnmYIKFKQxvfyEkFzD/OmQtn2cT +VHL4xGeiet+YEUFboszjHYQJ9IJWivyJ/wl5TFCGlS+VDuK6jRHlXIa1bOd3oIK4Q== X-Gm-Gg: AZFdTZdp9kREZMKEu43dnLFkfdVFQ3iDVp5mlbErsyELNJDNeJB9GBmxWe/tW6AA0Fm qIHqGgNNHGEZenZrc0IjZn2RxIYOb+/z4iPFA/Xk6nQknHT/sp8QQ/mxjXPXMUtAkMLQpPMHZcv wPI1W75Xh+Rt4q0aVIOt/+If2zN8DN3fB5o51OVSG9nkmm/7qGYyyZElvsKkNjiPfTCGnepGKJO HWOU8fuprimOoy+OvQnktAPjJERXtQVL9g6ZtkDD7QprVhLI6SUMR01f/3qfyX2w/gj3/NUuV92 /FdydLbt76izRBvIm0y1Z1aPHsBrrUhcNn3mByfgHWCal7q1mHS3s0Sq+H/Vhjh1AAjrsxobCtE VL5SBcktAXzfzRFSy4akmTCdo5gZLiLMH/oFfXQNdL1zZHMQbxS5sHNkwS0LpG+IpMStKslVaIH 3vqjw5ZREq+kMAj+n5o14vn8ctn3yy7vzJpfBaTzTwCdRIe8tC4gN6W/oneGQeG3R+KvwZqOFdq TOtmgu6tMbfX1f5JUAy1nE0uxetDW6V5h8UlWZzFA9e4AcN4jrSO45gNpSuljC51MJ4wKHQqogQ 25J2JS0qVTbprsZ78Q5YN7SrN22gE0a8IT4CqfpIAfq1d4fvpnC6dtl6PorSVwdXuBf3 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-pci@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