From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBA37C433F5 for ; Wed, 29 Sep 2021 07:17:12 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53CF661357 for ; Wed, 29 Sep 2021 07:17:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 53CF661357 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mVTq1-0000C5-Ai for kernelnewbies@archiver.kernel.org; Wed, 29 Sep 2021 03:17:09 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1mVToJ-0006Nd-Rq for kernelnewbies@kernelnewbies.org; Wed, 29 Sep 2021 03:15:25 -0400 Received: from unknown (HELO send002-relay.gov-dooray.com) (211.180.235.153) by 129.254.9.16 with ESMTP; 29 Sep 2021 16:15:14 +0900 X-Original-SENDERIP: 211.180.235.153 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send002-relay.gov-dooray.com with SMTP id 150b2a4361541282; Wed, 29 Sep 2021 16:15:14 +0900 DKIM-Signature: a=rsa-sha256; b=Fs7day9/oNfbYwwI34LAMDjnNJxri823NACtrutX5sj0eEwHA/aymIgVQzI3z6eDmXkAIu4Xnk wirT3wRnLamQBOBihZcFIfJEMdOmBHhWrQRAaBEeIPRCQWo7xx0o0P1YMY0lEbNrQfDN+HTlpl0B j0yynaxOiVB0YAwBI3XmYvLhXaE7b9MAnJakXphLRKOEqCjMASU6K/VAWPmKULdO/x/jzHt2X3Qj YsfzJSK8g97u/6TAFmpn01IaL6IsdmYmLR4m+/1MIZ86rf3MPDX1pXqB3z+tbB6IZYvZxtfymqZu SyHkhaa5V55n1zy2JluQRnL2dBczypvMPl7UeqcQ==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=S9s4R2b5/YbJyn3IKiDclZ2oedK4SQyNih9YflExM00=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id 105c7acc61541282; Wed, 29 Sep 2021 16:15:14 +0900 From: To: Subject: does dma_alloc_coherent setup iommu page table? Date: Wed, 29 Sep 2021 16:15:13 +0900 Message-ID: <007201d7b501$bf0a5880$3d1f0980$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: Ade1AblhXH+CTZm5Q+iCO82eS3cDYg== Content-Language: ko X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8367824073453097990==" Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org This is a multipart message in MIME format. --===============8367824073453097990== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0073_01D7B54D.2EF275B0" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0073_01D7B54D.2EF275B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all, When the driver calls dma_alloc_coherent for a device, and if the device uses iommu, is the table entry for the iommu setup for the dma_handle? Seeing the struct device has something related to iommu, I guess so.. Any help appreciated. Thanks! Chan Kim ------=_NextPart_000_0073_01D7B54D.2EF275B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all,

When the driver calls = dma_alloc_coherent for a device, and if the device uses iommu, is the = table entry for the iommu setup for the = dma_handle?

Seeing the struct device has something related to iommu, I = guess so..

Any help appreciated.

Thanks!

Chan = Kim

------=_NextPart_000_0073_01D7B54D.2EF275B0-- --===============8367824073453097990== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8367824073453097990==--