From patchwork Tue Feb 6 03:41:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thangaraj Samynathan X-Patchwork-Id: 19974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1301968dyb; Mon, 5 Feb 2024 19:44:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEb1PK02O7akK7iY1f5kvCTE979EVIJ0ZyPjyvzRRN/4tIPoeOIeEdoPUN1Hmn/ohRqTCV9 X-Received: by 2002:ac8:5915:0:b0:42a:ac88:afa7 with SMTP id 21-20020ac85915000000b0042aac88afa7mr1216064qty.12.1707191055046; Mon, 05 Feb 2024 19:44:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707191055; cv=pass; d=google.com; s=arc-20160816; b=RTujCSXdGd7xb6G5ip2kBPcwjpWg3wkkYbRsk2hOdPOlrPmgHXaG/stYiVvqMPJVsE 2ApBckSbTYbaJMMKUGdoH8fHuDL7KdmbrZAZ4czhaObq+2822Vg00umE95nOLBcgihwS lcsURxyKn3rsHNTU2JheryKpm/urfhVC2Ophp+BDv+vk2OCZVWb0Z/+KmxVf+IQK+Bod Q0dwjmBPW2L1H3jL9pTsBcb63vbRtbXoxMWcuxG3EkaAVmwd4dg7a2Uz/m4AmVJcP/3A dMHx3VDwaR+UQvzRkkpYMsiS3AK7tyTntVapVhRlLSDf7mdKMbZ76dCrl0nhAMIH3cdP whjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UqD7GKQI2wGw8Tt5f06Nlw6odCRtbS3Vxj0klwAcO0Y=; fh=N9bHwGLnuueyZfR4363IxaM0Wn1OjKhh/OzuxJDJ9Fs=; b=vDmeGwXQ3BUB8Jl9q7HU3K6wjgLimlKqx9U3SCRtqKQ6rfJg1/u5tiIfb/3jvG7+53 AwiVgZHQQdw43h85bzib1enSArfmy3YB86zsBsvdMfBbD2ZrqziJGM8rvQClzzGd7X2L oGtKjabUAK8CZq+r+Vc5zCZAFqccdk3tmBE96FSwBu1JImG6jSiZtS4o6jBi5jqxH9qg MMPK2DO8p+ryFsa8nSrAw3XLmVqEXTCqZnzqQqap/y5Or3oG1VtGvUizqBv5x4PGPrtW eD6o/Wewi6P1TMjQnIKHBmqOf0gjjm572fEIF/WDWWtE1yjrfQyb1MWnHq9csM6IJlzO Wd3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jExk9LCI; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-54270-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54270-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com X-Forwarded-Encrypted: i=1; AJvYcCXf5iXsjIKEMInyIHZW3jklx2fPuwcCDQ7/CrwZHQTR4fb5XXpdd0HtLimXPm+x5Uv1ughH4Kc0F8EvJYqF0SoTzfKIsg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s19-20020a05622a1a9300b0042a17bf5a11si1457594qtc.736.2024.02.05.19.44.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 19:44:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54270-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jExk9LCI; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-54270-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54270-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BFA541C21AFB for ; Tue, 6 Feb 2024 03:44:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E912745D3; Tue, 6 Feb 2024 03:43:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="jExk9LCI" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 82F4A2595; Tue, 6 Feb 2024 03:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707191036; cv=none; b=I17hx2Msf6Pu564tTtydDYmTHcZGQrS1dLZxV9QF1AqhmGw4Kf/3nzEIfH8/FwO3ADhDQ5XDIt/EW5YrukGPfpFPX0BJcDrVQBCzue9JErezxvUmxd6/wl+VkJR4R4tK/VQTAQnrkWN3KYv4v6u8Mu1IW6HOUgfR7ZgSib1Gxmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707191036; c=relaxed/simple; bh=6VuaWSlmv52TfSRHByUinUpVvYEdIDQJBKINYMHBdAg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=O4uf4+X010mKo7nZj2ix3zt81AS2+DLiqfd2oXyIFWTu3TsYfzcY9smqEyCKC2IEN+suT95ue3v8NEbK8trfqoDWguFYxyFFflCznNCUFc1w61IRmwqOuox6wDFI6Lpmbt9HOmTMHbx+wwcc7DtAPIYf0vleJGdP3OtRKd30z+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=jExk9LCI; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707191034; x=1738727034; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6VuaWSlmv52TfSRHByUinUpVvYEdIDQJBKINYMHBdAg=; b=jExk9LCInHMZH2T7WEyhYrXajjP9Jwu2zwa9JvAb7ClF+tX6foaUmjRC KmG+c24dsvxB6OwuOYTwijn09rm8UnClC2yPXZCitU2JW+OgCtG9R4VsD Di/gkHTxMiugDtHi2s8Si391jQXblMIkS/Rh2Sbvt2Gk+sN1x/Hv3x08D tbMImVWCSf+A+LBiia3rB+m6nNxR68Cu5FfEV4766b/3b3r21cMU4IiOW IBUKTCwd1SR/KxWnoiu7VQVUks7CxIV0OugnH8ldWzQ3BJ5DBx8PS8lP3 g9UROcGmZUUFgOM8Wi3WCrQc4lmdZplQHFFugCfBAtIZgnEsCjcorJntC A==; X-CSE-ConnectionGUID: fiSYXhrfTQy9hSpjm7+bzA== X-CSE-MsgGUID: BqoQ7Km3S4OdyAWTmvN6YQ== X-IronPort-AV: E=Sophos;i="6.05,246,1701154800"; d="scan'208";a="15826644" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 05 Feb 2024 20:43:53 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 5 Feb 2024 20:43:13 -0700 Received: from che-dk-ungapp03lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 5 Feb 2024 20:43:11 -0700 From: Thangaraj Samynathan To: , , CC: , , Subject: [PATCH v2 SPI for-next 0/3] DMA Support for SPI in PCI1xxxx Date: Tue, 6 Feb 2024 09:11:15 +0530 Message-ID: <20240206034118.748801-1-thangaraj.s@microchip.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790119567928243542 X-GMAIL-MSGID: 1790119567928243542 This series of patch is to add DMA Support that improves SPI Performance in PCI1xxxx. With DMA Support in 20MHz clock, the performance is improved from 6Mbps to 17Mbps. v2: -Added can_dma operation, so that the core can do all DMA mapping and switch between DMA and PIO operation by itself. -Added error messages for syslock acquire failure and DMA mask set failures. v1: -Initial Submission Thangaraj Samynathan (3): spi: mchp-pci1xxxx: Add support for DMA in SPI spi: mchp-pci1xxxx: DMA Read support for copying data into SPI Buf spi: mchp-pci1xxxx: DMA Write Support for copying data from SPI Buf drivers/spi/spi-pci1xxxx.c | 510 +++++++++++++++++++++++++++++++++++-- 1 file changed, 483 insertions(+), 27 deletions(-)