Message ID | 20240201233400.3394996-4-cleech@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp94633dyc; Thu, 1 Feb 2024 15:37:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3x5vie3PyuwWr/Py813y8nYKQtt8hjC2HF5/EnbMHt37Lyhu8nf3veWHt55svq2D3wcpj X-Received: by 2002:a17:907:1119:b0:a31:34a9:d742 with SMTP id qu25-20020a170907111900b00a3134a9d742mr344300ejb.3.1706830620148; Thu, 01 Feb 2024 15:37:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706830620; cv=pass; d=google.com; s=arc-20160816; b=vDgzxBxKDWZRcPvyx/LKv992qST/VO+LzE39PEWm+LsajsbuBLWMZq2M3Zahs9A3U0 Uii7hBe9r1WdDLo2EFmlNTRK99Xe9Jh8zKY+5o1ZFpiCMN13vZoZmPUcwbxp8RClIUzT 7ZA5nqUG4SAkMGarvcSpnS9a+OoALgRvpZHAE1QUpFpTnJnPLc5ac6AHo1lcLcnUsa/n /4uOo5H9PmZ3Ce4ZHt9Ifu4vdgir5TjSeznhJEMDuyKDjqNuzfTiZBgWXnxuc+8MOml/ TQ8EStmCvuU5n4Ug1zK1n7Hj+XoQ/CxrSFkcaUX5T6h7DAyS/EikrgcwhiuTXusbTgJh suVg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Feaa7ltqMImVUAF90OIsH77NDPTc4xlAwHCDaWrW23I=; fh=hkuJQZZE1xa6ixxvZyUSEIaoUVGSkvpXv18YjPdR9jw=; b=h9XvXJA7xhXAQsWrli72QfGuzzTgOTZAsnkkPzP8O0WxQ2rx/L26zOVAP+9edPsLBz lWKAchJ/mTi3LbLWHcTSNxC1J9WNYlBh2hecTZ26zopla4i49ic7eFISdUUvpkDV2lPr XxAazharmYftnRlOqi5fpxhtMx9v0s26Xpxqw3DDAjKdYQVezMpGmS5AuJAkAzTo+v8/ WPyLa0pWsGYnXVsnRWz8B7rc1mOCLtanKhj15aPH7T2UfscinfkL5Mi8pxTmLpJD9lS5 cHIOAYOLgh71+mIqutDGaG/ZZoL5vWCf80vcQ57hlSnweE5ByeKpiAQnRlnjYypZZgGK IRYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TzmPpz9K; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCVz3yujXX/GuRUdO4SEEZ4EOurS9VxUek7RuUazWkwYyyunoK9iTGimh6QfLpWhDTyCDod+MGjkEXc5s20isGEUJnPlHA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v27-20020a17090606db00b00a3281fb08f4si250518ejb.824.2024.02.01.15.36.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 15:37:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TzmPpz9K; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49001-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C85DE1F2542D for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 23:36:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76982495E0; Thu, 1 Feb 2024 23:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TzmPpz9K" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 2ED81481AA for <linux-kernel@vger.kernel.org>; Thu, 1 Feb 2024 23:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706830469; cv=none; b=CgHuwJvxndtUdlI4CjyHthwaIYiECqim/ZP9x3bEf1GocUpzdkWmsUUDUi4iMrXu9PusvKwWdyL53KgaUMWvoJfBYRbuf4g+/WMmhLg1KhtfYHOCtenMeFGgVKT55ZStn+NjZZHwbZWL0CMEorCqPYeri3tWMTQk10svO8cRCxA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706830469; c=relaxed/simple; bh=3FokyUnI5P5cmAhKtt6pFHX6NyRCuaS0/kuNt9gir80=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Mt3SaeqoU6Lt4b3nOrgHro8TURjKKm6+xX+WyffRHf1aH8xIL4rgovgaY0pYx58ZKx0IxexGCOtSRAIT2W8xbyBEnjt6wzr0EBON06Fctq4qsI8Y3b+EYYUcs4/jYqpIpNFO9OQUGgY2/qGnZlcGUSzc1uH+xoNa4vUWcepVzcM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TzmPpz9K; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706830466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Feaa7ltqMImVUAF90OIsH77NDPTc4xlAwHCDaWrW23I=; b=TzmPpz9KnoDnbxPGIwqhAhlNgZbOr0395I9f28uIFNnLQOEDj0EKpmybiYBwTeErGbcBa9 5ppoNN+r0uYJh1UwD4GJNOVcoz0ly6x4YaLEEPGj02MHhuAh2vS0/ASnKMor0FGvzC6JRE qap+drmMY4/2sO7NWk0DLltVXpEBbAI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-333-gWWzCNdgOoS9f3Qu8Af-FQ-1; Thu, 01 Feb 2024 18:34:21 -0500 X-MC-Unique: gWWzCNdgOoS9f3Qu8Af-FQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E9CA829AC00A; Thu, 1 Feb 2024 23:34:20 +0000 (UTC) Received: from rhel-developer-toolbox-latest.rmtusor.csb (unknown [10.2.16.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB9661BDB1; Thu, 1 Feb 2024 23:34:19 +0000 (UTC) From: Chris Leech <cleech@redhat.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Nilesh Javali <njavali@marvell.com> Cc: Christoph Hellwig <hch@lst.de>, John Meneghini <jmeneghi@redhat.com>, Lee Duncan <lduncan@suse.com>, Mike Christie <michael.christie@oracle.com>, Hannes Reinecke <hare@kernel.org>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, GR-QLogic-Storage-Upstream@marvell.com Subject: [PATCH v5 3/4] uio_pruss: UIO_MEM_DMA_COHERENT conversion Date: Thu, 1 Feb 2024 15:33:59 -0800 Message-ID: <20240201233400.3394996-4-cleech@redhat.com> In-Reply-To: <20240201233400.3394996-1-cleech@redhat.com> References: <20240201233400.3394996-1-cleech@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789741623964004783 X-GMAIL-MSGID: 1789741623964004783 |
Series |
UIO_MEM_DMA_COHERENT for cnic/bnx2/bnx2x
|
|
Commit Message
Chris Leech
Feb. 1, 2024, 11:33 p.m. UTC
Conversion of this driver to use UIO_MEM_DMA_COHERENT for
dma_alloc_coherent memory instead of UIO_MEM_PHYS.
Signed-off-by: Chris Leech <cleech@redhat.com>
---
drivers/uio/uio_pruss.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index 77e2dc4048855..72b33f7d4c40f 100644 --- a/drivers/uio/uio_pruss.c +++ b/drivers/uio/uio_pruss.c @@ -191,9 +191,11 @@ static int pruss_probe(struct platform_device *pdev) p->mem[1].size = sram_pool_sz; p->mem[1].memtype = UIO_MEM_PHYS; - p->mem[2].addr = gdev->ddr_paddr; + p->mem[2].addr = (phys_addr_t) gdev->ddr_vaddr; + p->mem[2].dma_addr = gdev->ddr_paddr; p->mem[2].size = extram_pool_sz; - p->mem[2].memtype = UIO_MEM_PHYS; + p->mem[2].memtype = UIO_MEM_DMA_COHERENT; + p->mem[2].dma_device = dev; p->name = devm_kasprintf(dev, GFP_KERNEL, "pruss_evt%d", cnt); p->version = DRV_VERSION;