From patchwork Wed Aug 28 22:42:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 13782064 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4E9E1AC89F; Wed, 28 Aug 2024 22:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724884906; cv=none; b=An8PpQp4yLzr7/BX9w+Yc61c+L712tCZ8gfCbcqa5KSYYZA2aEeGINd7cRmVnw24H22W+YBId1kNOshAlw2JiuPn17LprzGcn5ceS6Kgr42RsS1GTJlOlTjOjhkJv406RMJ1IkRy48gpMliPpheePOuX1a4IHT4PU4Ya8tV62tM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724884906; c=relaxed/simple; bh=xpsblPxj8MQBZhnwfMSzjOp3nVu9TEPCYbdLNAfUBPk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d8Rgl3V6QIvpgT345fVWantOiYP5YZdWWWZlIe1xxzFJkXDjEl3EncVTSHa+Ajro/q/C63ZLg0hyLJ6wrindWchpBbKZSFRuwQdTscqTMAq3U4p8FWfxKLzPhdjaYDmTGASj6FX++dx2+zX/Bh/r2ApIXaBY3O+Vgz0dNYgsNeg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=bNtg2e/X; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bNtg2e/X" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724884905; x=1756420905; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xpsblPxj8MQBZhnwfMSzjOp3nVu9TEPCYbdLNAfUBPk=; b=bNtg2e/XmQIm2P3ZBxufiVVHea/5PWEgftbnpJ4hZOSj+VMOJ8cfbRpM XGFSaMwjYjIY3gyoO05y855mJSLqXV/V2iXYISxW5j47wYyq2xa1gqXjp U1PP+HFZGOzugHYH6wN3oU9YYdYpgJ8MglDl3ZwmKvk9VuHxaoc1sMt0m rXorsdqfHD8tFSExitSS9y+2MRfQ7xpFVahZXkTBfs15IiHyir9JMVGSi UE/+xbrozKGXBNlkdicNQX819hslsQm11CdGOCQK19S6qF0HWdvHpAY4E U3cWsMUU8M90NaEtDJIZIW+/HU1Nc9sfn4QB1v5WrgMeaUaMenZzJAa61 A==; X-CSE-ConnectionGUID: IlVQruHeT6uwDkqvLFKcqw== X-CSE-MsgGUID: Zz+z7n8CROakhUMwJcbfWQ== X-IronPort-AV: E=McAfee;i="6700,10204,11178"; a="26348977" X-IronPort-AV: E=Sophos;i="6.10,184,1719903600"; d="scan'208";a="26348977" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2024 15:41:43 -0700 X-CSE-ConnectionGUID: sWUiHppIT3SW9Y/KFcG+Hg== X-CSE-MsgGUID: ad9S5w91SIunvqJfZS0dcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,184,1719903600"; d="scan'208";a="67520118" Received: from fyu1.sc.intel.com ([172.25.103.126]) by fmviesa003.fm.intel.com with ESMTP; 28 Aug 2024 15:41:42 -0700 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Fenghua Yu Subject: [PATCH 1/2] dmaengine: idxd: Add a new DSA device ID on Granite Rapids-D platform Date: Wed, 28 Aug 2024 15:42:03 -0700 Message-Id: <20240828224204.151761-2-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240828224204.151761-1-fenghua.yu@intel.com> References: <20240828224204.151761-1-fenghua.yu@intel.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 A new DSA device ID, 0x11fb, is introduced on the Granite Rapids-D platform. Add the device ID to the IDXD driver. Since a potential security issue has been fixed on the new device, it's secure to assign the device to virtual machines, and therefore, the new device ID will not be added to the VFIO denylist. Additionally, the new device ID may be useful in identifying and addressing any other potential issues with this specific device in the future. The same is also applied to any other new DSA/IAA devices with new device IDs. Signed-off-by: Fenghua Yu Reviewed-by: Dave Jiang --- drivers/dma/idxd/init.c | 2 ++ include/linux/pci_ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c index 21f6905b554d..415b17b0acd0 100644 --- a/drivers/dma/idxd/init.c +++ b/drivers/dma/idxd/init.c @@ -69,6 +69,8 @@ static struct idxd_driver_data idxd_driver_data[] = { static struct pci_device_id idxd_pci_tbl[] = { /* DSA ver 1.0 platforms */ { PCI_DEVICE_DATA(INTEL, DSA_SPR0, &idxd_driver_data[IDXD_TYPE_DSA]) }, + /* DSA on GNR-D platforms */ + { PCI_DEVICE_DATA(INTEL, DSA_GNRD, &idxd_driver_data[IDXD_TYPE_DSA]) }, /* IAX ver 1.0 platforms */ { PCI_DEVICE_DATA(INTEL, IAX_SPR0, &idxd_driver_data[IDXD_TYPE_IAX]) }, diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index e388c8b1cbc2..ff99047dac44 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2706,6 +2706,7 @@ #define PCI_DEVICE_ID_INTEL_82815_MC 0x1130 #define PCI_DEVICE_ID_INTEL_82815_CGC 0x1132 #define PCI_DEVICE_ID_INTEL_SST_TNG 0x119a +#define PCI_DEVICE_ID_INTEL_DSA_GNRD 0x11fb #define PCI_DEVICE_ID_INTEL_82092AA_0 0x1221 #define PCI_DEVICE_ID_INTEL_82437 0x122d #define PCI_DEVICE_ID_INTEL_82371FB_0 0x122e From patchwork Wed Aug 28 22:42:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 13782065 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40B8B1AD3FD; Wed, 28 Aug 2024 22:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724884906; cv=none; b=uJQ/UMqSNh79uBnUuKpKX1sp+lE543dKactPc0/hBdrEoUbmebP6nrWugGp3kLdGYj2YNaSVuhW4CuA03rBB/i41CbCIPjHYgi6+ePdY4GW8cD7+oHuPnfBQB64Dlek9voda9JP5DLC80cEVnCogNxO90F67dwG/ttB34bw1vcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724884906; c=relaxed/simple; bh=rfhhqtQV/Lw8e9UJf+v73dA8SchxPlXI1kSFw1LueEw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XSOkFAR7iJvgMpx+eOynoqG1xnP1ZQP+fI0vOgr3DJ6uGIsyQdydd5OnSC+WFtn3aKCJZLRpaKyzfSg4B7vHO/HS92ZHYdUaSJujcVda6YAcv16zWvH8rbnEhSz+18+MwPS0yPWijne9UnFwUn9+3HJvayJgvm9awMmP8N5jEgc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TEwBZPCv; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TEwBZPCv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724884905; x=1756420905; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rfhhqtQV/Lw8e9UJf+v73dA8SchxPlXI1kSFw1LueEw=; b=TEwBZPCvqElh42zHWU20xpfiafEUQb148lxxK0fcNcfjYyG8MQGFY9zo ZOouBbFq+L5v1DkKrZR/Lzcw+8yIUow/Fl73iOXI9Y3N1MnCfQM4xugap VLCDns+sOxpj0ak3ZXGZ0JuuNXmNgtZM59kAf25TXyUq7G1qbX+1kuA0t wR2xs4dnrWj5Sgom/Sf6VhZbSDMb+KkljFg43aMADRksIuJ49UN/QVJKc cDslq9WCKGRXc+ryBvIOwovNhsHxLE3pyIegyBvDqRkjtQ1TN95dYJ9kp woygLa07TuDyMdmEGb+d34sS22pILtCvVC5ZhRKBmO2kyA5KzB/iq+Nyy g==; X-CSE-ConnectionGUID: 3oSH6T4ETiSrLFXswcPtEQ== X-CSE-MsgGUID: hZP1N/UKRrCwAO6x42Y0sw== X-IronPort-AV: E=McAfee;i="6700,10204,11178"; a="26348979" X-IronPort-AV: E=Sophos;i="6.10,184,1719903600"; d="scan'208";a="26348979" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2024 15:41:43 -0700 X-CSE-ConnectionGUID: AkiDrQw/RAibhSzELYOelA== X-CSE-MsgGUID: jxtSJegbRUGiwNaw6rpBjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,184,1719903600"; d="scan'208";a="67520121" Received: from fyu1.sc.intel.com ([172.25.103.126]) by fmviesa003.fm.intel.com with ESMTP; 28 Aug 2024 15:41:42 -0700 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Fenghua Yu Subject: [PATCH 2/2] dmaengine: idxd: Add new DSA and IAA device IDs on Diamond Rapids platform Date: Wed, 28 Aug 2024 15:42:04 -0700 Message-Id: <20240828224204.151761-3-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240828224204.151761-1-fenghua.yu@intel.com> References: <20240828224204.151761-1-fenghua.yu@intel.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 A new DSA device ID, 0x1212, and a new IAA device ID, 0x1216, are introduced on Diamond Rapids platform. Add the device IDs to the IDXD driver. Signed-off-by: Fenghua Yu --- drivers/dma/idxd/init.c | 4 ++++ include/linux/pci_ids.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c index 415b17b0acd0..21e3cff66f77 100644 --- a/drivers/dma/idxd/init.c +++ b/drivers/dma/idxd/init.c @@ -71,9 +71,13 @@ static struct pci_device_id idxd_pci_tbl[] = { { PCI_DEVICE_DATA(INTEL, DSA_SPR0, &idxd_driver_data[IDXD_TYPE_DSA]) }, /* DSA on GNR-D platforms */ { PCI_DEVICE_DATA(INTEL, DSA_GNRD, &idxd_driver_data[IDXD_TYPE_DSA]) }, + /* DSA on DMR platforms */ + { PCI_DEVICE_DATA(INTEL, DSA_DMR, &idxd_driver_data[IDXD_TYPE_DSA]) }, /* IAX ver 1.0 platforms */ { PCI_DEVICE_DATA(INTEL, IAX_SPR0, &idxd_driver_data[IDXD_TYPE_IAX]) }, + /* IAX on DMR platforms */ + { PCI_DEVICE_DATA(INTEL, IAX_DMR, &idxd_driver_data[IDXD_TYPE_IAX]) }, { 0, } }; MODULE_DEVICE_TABLE(pci, idxd_pci_tbl); diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index ff99047dac44..e15ebb3942ae 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2707,6 +2707,8 @@ #define PCI_DEVICE_ID_INTEL_82815_CGC 0x1132 #define PCI_DEVICE_ID_INTEL_SST_TNG 0x119a #define PCI_DEVICE_ID_INTEL_DSA_GNRD 0x11fb +#define PCI_DEVICE_ID_INTEL_DSA_DMR 0x1212 +#define PCI_DEVICE_ID_INTEL_IAX_DMR 0x1216 #define PCI_DEVICE_ID_INTEL_82092AA_0 0x1221 #define PCI_DEVICE_ID_INTEL_82437 0x122d #define PCI_DEVICE_ID_INTEL_82371FB_0 0x122e