From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92AA43815F0 for ; Mon, 24 Aug 2026 20:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787601772; cv=none; b=SaVbGiFL7yMtxwkZYSgYElNFo1Gkm6kPEo52Iwx4oTiXWuTGQMgjHx2xI/RJqmj9hre/uzQsnGK9ySqdEyix8C6rp6jaOjEVlmcaoDfVTB3TQ6dAtC57nRSx6nm923npA/fqYXB1PSFk3Gt/EHOngR/64+vKsEeANRTt6C7N4DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787601772; c=relaxed/simple; bh=QQxK1dMYfMEITfED9pcxrpNSHfy8AiyMMu885Ozu8Dg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P0+ogVcbuw4MHl3ZFolWRmMQ5qZfTy1iUIu1K1s8qvj+i95Mbcj3e+LSwD3yvWkUTbMG0bGxpsPzlTWb9Dc6th1ZHOY3PRnrgyu6q6HObVW6vSmEEDmI7Xv7ngwrbQr56Ype5IMS+7KU5e+vu8yHXK88JcxBsnnUilWfhpUSRtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oeMbOAgg; arc=none smtp.client-ip=209.85.214.181 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.b="oeMbOAgg" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2d3b445a84fso2835ad.1 for ; Mon, 24 Aug 2026 13:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787601770; x=1788206570; 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=2JSlxwskXTbuoDvNvgTyyULaG2qnymU60jxRuo89A6s=; b=oeMbOAggQjWf7IPVMS14ZehmqgXssmnIKoCBL7r+wbrCvwQNO55N/Uq5k0qXf5aXXe uHAOADa0nWgt/kD1gYHkhwJFiywr6t3LDepiRtz2ffaNNqW+2iAumyHt72uLnL1UUu0T 8qE6rkqgQNhZ/2Sej7aq8/9g7PsorWl1XGdWyK8ZD7dbGOZlaC1vNZKVswfgLhMzd/In qRdQgMvsdnOIcIGwfZaNo5JLQHQxWs1CnhS26smWS1C5z7jzFxauWjCfvBS6CIIpYSiP 6gpPjuv/55lVo/PoErh99OiE7jNZX8b4TEloGvGDNEqCZ2wejcn9znBLbBmTDTK7lxNx 1UKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787601770; x=1788206570; 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=2JSlxwskXTbuoDvNvgTyyULaG2qnymU60jxRuo89A6s=; b=LJx6+FVwiXbj8nlv4bOVMGrKUVDQ+0OzvJyNHABTJZTzNK1d8az/cMxwIP06T8qmb9 7tJiBv20GhvSWPcmrTSVuB6F3ysBoSGBL1Gp5egHT02mCIHqb90hot+JMUHdpXQl7Ibj v117qpf5R8WKyjXluYJxR6mX0vsBwkh2EOOAhN1n4zGOmBwM6mfa9dMKVG1QRBYf7R5h 1Rh4QFgEraY3LheDTfiNfg0vkrHIwF/Klv7akU0AzQpiDF1gNM06fvSZpWoZTviSCpi+ gpNjaa2d2XLhRJpy8TOq04i210YtYtXDDabbVMhYzZsw2BYC8FSTpWFXh0aj1GVUBzxK pxIA== X-Forwarded-Encrypted: i=1; AHgh+RqD8RqFAADtfbBpHbeo6qoeNIoy+Iq7qPsaali38tKnRY1J6wqR0W9iNKpws4yoyPXl1ErMDX1god6p70k=@vger.kernel.org X-Gm-Message-State: AFuF++mj+JdFIyJQjaajdidKdUvnPaCoVkWXG8pQUUK4PbwjqY5U8lIh gqbptSYjj4LWwcxlkjZY2loNMMsGeJUb6EYPKbB/X4ATxOfLHMagoXuKQakKw++iOQ== X-Gm-Gg: AR+sD13fJ5FTsOwV+xkGiiMBhQdEAGfZN7EXnUSZUl9xnE+K+pwsGMf7GSsZO/Q/QxG ipNXHCvxRpl8yI/eLQqRBUpIt91KI3D/qrLDjXYLOwNTdvjNhIzFHgHzaB7imNRkj2lZ321UsGP P4PaR6uaTtpwov7fY53ZEnke2kOP1FpOE6rj1lJTRwvzhhAQbqqPWcxU4i/6JMwPxvWoC4RjhAj VQkhnYpyAzVaAq7HUZwX2sln8bjsO4sSr7dDZAD26yu+rC3gZTUi4rUl1ZaNtFxWbwdgKXvwQY8 Zr0IL8X0wfwRFGqekN33syShEISYnilXUlL0JzBMsVQU2V9FVGTBJQXjfLrgyGTrIZg+Q64/WDr vFgLV8vRaO1MF+2408aNdlRBI/br/i3ZUbFtwqvWygYJbcMIH+AfY8uGinaqKlly8E3yNbQytOG q/Tf4jlzmrJ2jU9ubtKuQpUABzWhu+TSus6INHFLkY+TnKuIHE9VnY/FRgJUMhgGMzgE19kE05F efQrrbcPkwOeteqAP7kp+GWMo5av4J30G1QoOgFstzahp6+hE00Z11Q6Sw= X-Received: by 2002:a17:902:cecb:b0:2d0:1aaf:daec with SMTP id d9443c01a7336-2d6e0830038mr894155ad.9.1787601769181; Mon, 24 Aug 2026 13:02:49 -0700 (PDT) Received: from google.com (210.87.127.34.bc.googleusercontent.com. [34.127.87.210]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39645da08desm723671a91.17.2026.08.24.13.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 13:02:48 -0700 (PDT) Date: Mon, 24 Aug 2026 20:02:45 +0000 From: Samiullah Khawaja To: David Matlack Cc: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, Adithya Jayachandran , Alexander Graf , Alex Williamson , Bjorn Helgaas , Chris Li , David Rientjes , Jacob Pan , Jason Gunthorpe , Jonathan Corbet , Josh Hilke , Leon Romanovsky , Lukas Wunner , Mike Rapoport , Parav Pandit , Pasha Tatashin , Pranjal Shrivastava , Pratyush Yadav , Saeed Mahameed , Shuah Khan , Vipin Sharma , William Tu , Yi Liu Subject: Re: [PATCH v8 11/12] PCI: liveupdate: Do not disable bus mastering on preserved devices during kexec Message-ID: References: <20260728221007.2098560-1-dmatlack@google.com> <20260728221007.2098560-12-dmatlack@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20260728221007.2098560-12-dmatlack@google.com> On Tue, Jul 28, 2026 at 10:10:05PM +0000, David Matlack wrote: >Do not disable bus mastering on outgoing preserved devices during >pci_device_shutdown() for kexec. > >Preserved devices must be allowed to perform memory transactions during >a Live Update to ensure continuous operation. Clearing the bus >mastering bit would prevent these devices from issuing any memory >requests while the new kernel boots. > >Because bridges upstream of preserved endpoint devices are also >automatically preserved, this change also avoids clearing bus mastering >on them. This is critical because clearing bus mastering on an upstream >bridge prevents the bridge from forwarding memory requests upstream (i.e. >it would prevent the endpoint device from accessing system RAM and doing >peer-to-peer transactions with devices not downstream of the bridge). > >Reviewed-by: Pranjal Shrivastava >Reviewed-by: Pasha Tatashin >Signed-off-by: David Matlack >--- > drivers/pci/liveupdate.c | 11 +++++++++++ > drivers/pci/liveupdate.h | 6 ++++++ > drivers/pci/pci-driver.c | 7 +++++-- > 3 files changed, 22 insertions(+), 2 deletions(-) > Reviewed-by: Samiullah Khawaja