From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A4BD51CDFD4; Sun, 24 Nov 2024 13:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732455298; cv=none; b=OuTCrLJCi0JsHuYNTmyTXCpXiO3/AGQvRzOP9ERc+4nLqBPkXdYXUA8p5z3N8KOX9e58h1poxLuf77kxwqNPBIUxzN4j4L4s2QouXGGWeNvdkaubtYZMnquTX1N9QsgSWPBCbAVo0qhfoadVPHScdiDEjeaoBkvavmDPSY/+HjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732455298; c=relaxed/simple; bh=hhkA2pdK1QpVueJ8E9tgnINE7vu5M+w/vckqk6u5p5Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pE1fUlDKXJi85WDPMm8K6Www0idZnXAbwUx7uiwkZTfLmF67Phnx2J7EhwJaUCAeAKkPGeqfF/GtFYTqc5mTw9CQItlW7G41xrY6PQhz7WdNiz2t3ILW0RQhzR9qfA9ePoU4/DOY9Csdp7cfZh8BaJwDRKqZcilZaVgfxNo60i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h46BM533; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h46BM533" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A6EBC4CECC; Sun, 24 Nov 2024 13:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732455298; bh=hhkA2pdK1QpVueJ8E9tgnINE7vu5M+w/vckqk6u5p5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h46BM5335N78Tr/tiVlgpvSeonZr7KFgOsbP5/jl7Jf9mWCKWbdXQ8855n60dMsZb jZxswCFqF0UDTr9TmtXgO+6+O7WeoG1Fx7UiTzd4hOAltzwLc4q/stfoEETJOf3bCV IbAkkv4CaECfEuDn1z+HhMdbxj6Pw5z25xFTAPGxC8mJAesOIxpvcQdxypakooQIAt 4Q2xepDBs+BYntG8oOio8HGPdE+ET2EydyFXvqPpXFXL8VKqDD0Wmm1xySJOx58SLb Umxh13Kma+WEbvvHFDDXG0d6Yo5/2oWChfbbFl8c/l4pk4IqGLAVXerZKthmDUJ9Fo YUs2YYXH9rMFw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jeffrey Hugo , Troy Hanson , Jacek Lawrynowicz , Sasha Levin , ogabbay@kernel.org, corbet@lwn.net, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH AUTOSEL 6.12 033/107] accel/qaic: Add AIC080 support Date: Sun, 24 Nov 2024 08:28:53 -0500 Message-ID: <20241124133301.3341829-33-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241124133301.3341829-1-sashal@kernel.org> References: <20241124133301.3341829-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.12.1 Content-Transfer-Encoding: 8bit From: Jeffrey Hugo [ Upstream commit b8128f7815ff135f0333c1b46dcdf1543c41b860 ] Add basic support for the new AIC080 product. The PCIe Device ID is 0xa080. AIC080 is a lower cost, lower performance SKU variant of AIC100. >From the qaic perspective, it is the same as AIC100. Reviewed-by: Troy Hanson Signed-off-by: Jeffrey Hugo Reviewed-by: Jacek Lawrynowicz Link: https://patchwork.freedesktop.org/patch/msgid/20241004195209.3910996-1-quic_jhugo@quicinc.com Signed-off-by: Sasha Levin --- Documentation/accel/qaic/aic080.rst | 14 ++++++++++++++ Documentation/accel/qaic/index.rst | 1 + drivers/accel/qaic/qaic_drv.c | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Documentation/accel/qaic/aic080.rst diff --git a/Documentation/accel/qaic/aic080.rst b/Documentation/accel/qaic/aic080.rst new file mode 100644 index 0000000000000..d563771ea6ce4 --- /dev/null +++ b/Documentation/accel/qaic/aic080.rst @@ -0,0 +1,14 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +=============================== + Qualcomm Cloud AI 80 (AIC080) +=============================== + +Overview +======== + +The Qualcomm Cloud AI 80/AIC080 family of products are a derivative of AIC100. +The number of NSPs and clock rates are reduced to fit within resource +constrained solutions. The PCIe Product ID is 0xa080. + +As a derivative product, all AIC100 documentation applies. diff --git a/Documentation/accel/qaic/index.rst b/Documentation/accel/qaic/index.rst index ad19b88d1a669..967b9dd8bacea 100644 --- a/Documentation/accel/qaic/index.rst +++ b/Documentation/accel/qaic/index.rst @@ -10,4 +10,5 @@ accelerator cards. .. toctree:: qaic + aic080 aic100 diff --git a/drivers/accel/qaic/qaic_drv.c b/drivers/accel/qaic/qaic_drv.c index bf10156c334e7..f139c564eadf9 100644 --- a/drivers/accel/qaic/qaic_drv.c +++ b/drivers/accel/qaic/qaic_drv.c @@ -34,6 +34,7 @@ MODULE_IMPORT_NS(DMA_BUF); +#define PCI_DEV_AIC080 0xa080 #define PCI_DEV_AIC100 0xa100 #define QAIC_NAME "qaic" #define QAIC_DESC "Qualcomm Cloud AI Accelerators" @@ -365,7 +366,7 @@ static struct qaic_device *create_qdev(struct pci_dev *pdev, const struct pci_de return NULL; qdev->dev_state = QAIC_OFFLINE; - if (id->device == PCI_DEV_AIC100) { + if (id->device == PCI_DEV_AIC080 || id->device == PCI_DEV_AIC100) { qdev->num_dbc = 16; qdev->dbc = devm_kcalloc(dev, qdev->num_dbc, sizeof(*qdev->dbc), GFP_KERNEL); if (!qdev->dbc) @@ -607,6 +608,7 @@ static struct mhi_driver qaic_mhi_driver = { }; static const struct pci_device_id qaic_ids[] = { + { PCI_DEVICE(PCI_VENDOR_ID_QCOM, PCI_DEV_AIC080), }, { PCI_DEVICE(PCI_VENDOR_ID_QCOM, PCI_DEV_AIC100), }, { } }; -- 2.43.0