Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A75CC07E96 for ; Mon, 12 Jul 2021 02:24:33 +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 7E93261004 for ; Mon, 12 Jul 2021 02:24:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E93261004 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-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1m2lc5-0003oO-9c; Sun, 11 Jul 2021 22:24:05 -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 1m2lc2-0003nv-EB for kernelnewbies@kernelnewbies.org; Sun, 11 Jul 2021 22:24:03 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 12 Jul 2021 11:23:53 +0900 X-Original-SENDERIP: 211.180.235.152 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 send001-relay.gov-dooray.com with SMTP id 0a5f48ff60eba7b9; Mon, 12 Jul 2021 11:23:53 +0900 DKIM-Signature: a=rsa-sha256; b=knaQOx8atd9/Dj6tG8SavYd+g6I0pzev8sfrr0qcRjuYdQIaxLPTaXNvtcPU+Cx1IkkmGXIwv6 s3iyVurItTQfp7ZSoG7IitJjQmPczILzWi+0PDFRDmdsXZJ/kkQM2UY1tcwxEYd1XRQbSb9h99MO iMcoXDhgtwHLiUQY4ScEaR5rOLaCpBM+um1m3CdWRGnUJax+mAFfowP+lmb7tysIy9ZuSPNiN64O PFSdX7FNwet35FG7PqSSDGjEsFGgJbczxc5iejTL4LiiZ1ZeW7XKaEhS5czZ2ByNTK7bJBw7a2k+ GTFqWHYVP6VWbmH9jPEMnwEL+TQovUdzvIkJDtrA==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=/4zzSvN4oJytl+e0y/yme2H04nQVhfVkp3Dev7e2BH8=; 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 d004f4a160eba7b8; Mon, 12 Jul 2021 11:23:52 +0900 From: To: "'Deepanshu Kartikey'" References: <012001d7766a$21c7eb80$6557c280$@etri.re.kr> In-Reply-To: Subject: RE: ioremap and page table Date: Mon, 12 Jul 2021 11:23:52 +0900 Message-ID: <000001d776c4$f522dfd0$df689f70$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIX4tKh1a4b1TlBTq29k0fyzuk/AQG06ggjqrAcRGA= Content-Language: ko Cc: kernelnewbies@kernelnewbies.org 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="===============3485038578493388476==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============3485038578493388476== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D77710.650B2410" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0001_01D77710.650B2410 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Ah, yes of course the virtual address. Thanks for pointing it out! Chan Kim =20 From: Deepanshu Kartikey =20 Sent: Monday, July 12, 2021 1:48 AM To: ckim@etri.re.kr Cc: kernelnewbies@kernelnewbies.org Subject: Re: ioremap and page table =20 =20 What my understanding is that ioremap converts your address to a virtual = address. So, yes everything then is handled by the kernel =20 =20 =20 On Sun, Jul 11, 2021 at 9:04 PM > wrote: Hello all, I=E2=80=99m almost sure but want to check if my understanding is = correct. To use a memory mapped IO, we use functions like request_mem_region and = ioremap, iounmap functions.=20 I guess when we call ioremap function, the kernel sets up page table for = the region so that the region becomes non-cacheable, and I don=E2=80=99t = also have to worry about reordering problem.=20 Is my understanding correct? Thanks! Chan Kim _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org = https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------=_NextPart_000_0001_01D77710.650B2410 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Ah, yes of course the virtual address. Thanks for = pointing it out!

Chan Kim

 

From:<= /b> Deepanshu = Kartikey <kartikey406@gmail.com>
Sent: Monday, July 12, = 2021 1:48 AM
To: ckim@etri.re.kr
Cc: = kernelnewbies@kernelnewbies.org
Subject: Re: ioremap and page = table

 

 

What my understanding is that = ioremap converts your address to a virtual address. So, yes everything = then is handled by the kernel

 

 

 

On Sun, Jul 11, 2021 at 9:04 PM = <ckim@etri.re.kr> = wrote:

Hello all,

I=E2=80=99m almost sure but want = to check if my understanding is correct.

To use a memory mapped IO, we use functions like = request_mem_region and ioremap, iounmap functions. =

I guess when we call ioremap function, the kernel sets up = page table for the region so that the region becomes non-cacheable, and = I don=E2=80=99t also have  to worry about = reordering problem.

Is my understanding correct?

Thanks!

Chan Kim

_______________________________________________
Kernelnew= bies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernel= newbies

------=_NextPart_000_0001_01D77710.650B2410-- --===============3485038578493388476== 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 --===============3485038578493388476==--