Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3929294pxj; Mon, 21 Jun 2021 09:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJVcIsspezTgu5ajwZnsx9VPo2uRjPACC0B+X8aW2HhhQqAARtFZNWoYVWOpV67ATYodg+ X-Received: by 2002:a05:6e02:1bab:: with SMTP id n11mr6225383ili.95.1624293299282; Mon, 21 Jun 2021 09:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293299; cv=none; d=google.com; s=arc-20160816; b=zmIKtwzAtTTekOxHf6MBHQmShUu5KGX8eLbWUZQZDjMw8TV1dOeWlMosLo9yttgODp PL0YY2tU+dw2/3gvggcWN/bdIjdzmcWXjd7YbqqwI+ZimFBMiWwr4TUm6ol7myWMUAwu a6bvQCCY1ZTlsY5rTQqsyBr2jTDnnIlKlg+LhKybjwXIZwSQhkQiVyszKBSN40lDwFog 45YEQ34MvI/DyWHxDgB3n7Zy3n3bti5qtr+hzTGhQ/MY+1eZZqyTT3ojQU9FrKjHk1jW Li1R7xxpJCoBuB2/AVQrhu3aHwVACu/AE4UJEWoY3q6WG3T8X4zW4wywMc+VqyV1tS18 xjZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JzJRGeSufRHBp5pCEm2rU39PEo9avPaehlDfhBq2fEY=; b=mkrOa1FM+p7FG3oexZIGJ05aNmt+XbH7pUS034cJJvT3VOBkxmK46KPJS0OEmqbPMS GpgaM2F9YfqpVvebubjmH8gSlc69gJLYmLAtxbe6goTlJT+Q9MMGV4NnjM0r1rf1EKf0 QJBZqy/TCIeqmK+9ztctPADr1zK3Mp9EXedtX1WNJZnZDoWaYdifedu2IWJ6A4FiGt3S bsst+iGBqDvicdnH/rSs4Uixsa6vmVMU8SZwGvUNlYwcyZHRkMNqWHoEzp3t4671hIdy oLGJs54ReGUxlSnJBqOibnYo6tfo6P5GiUiADf1L1Zx3hRDMd9Jg/doCGjE1bjgP7sKz ajLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mmkH2Yr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si11930462ilk.46.2021.06.21.09.34.47; Mon, 21 Jun 2021 09:34:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mmkH2Yr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbhFUQeW (ORCPT + 99 others); Mon, 21 Jun 2021 12:34:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:49586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232331AbhFUQbM (ORCPT ); Mon, 21 Jun 2021 12:31:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15AA76138C; Mon, 21 Jun 2021 16:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292727; bh=4UBEDegR1+ok8VwfXrcRVjGbp2H2ycDcefRkifNqyCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mmkH2Yr2+AzyWxCI3/CPFzWT94+YuEClJU2vVdvQshKKWVkbIZ3oXMCr746laMjTU O5zBnmoCBk6ETKsByCIRPVHiKFoSHQd6Z99AvL9PE1DLemOLYj1ToTwEsZpvGRfAyj H28eYsgvYjNR52wASIC5nirc6vWAYMQF55AE6P+M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Antti=20J=C3=A4rvinen?= , Bjorn Helgaas , Kishon Vijay Abraham I Subject: [PATCH 5.10 107/146] PCI: Mark TI C667X to avoid bus reset Date: Mon, 21 Jun 2021 18:15:37 +0200 Message-Id: <20210621154918.077242614@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antti Järvinen commit b5cf198e74a91073d12839a3e2db99994a39995d upstream. Some TI KeyStone C667X devices do not support bus/hot reset. The PCIESS automatically disables LTSSM when Secondary Bus Reset is received and device stops working. Prevent bus reset for these devices. With this change, the device can be assigned to VMs with VFIO, but it will leak state between VMs. Reference: https://e2e.ti.com/support/processors/f/791/t/954382 Link: https://lore.kernel.org/r/20210315102606.17153-1-antti.jarvinen@gmail.com Signed-off-by: Antti Järvinen Signed-off-by: Bjorn Helgaas Reviewed-by: Kishon Vijay Abraham I Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3577,6 +3577,16 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_A */ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset); +/* + * Some TI KeyStone C667X devices do not support bus/hot reset. The PCIESS + * automatically disables LTSSM when Secondary Bus Reset is received and + * the device stops working. Prevent bus reset for these devices. With + * this change, the device can be assigned to VMs with VFIO, but it will + * leak state between VMs. Reference + * https://e2e.ti.com/support/processors/f/791/t/954382 + */ +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TI, 0xb005, quirk_no_bus_reset); + static void quirk_no_pm_reset(struct pci_dev *dev) { /*