All of lore.kernel.org
 help / color / mirror / Atom feed
From: noman pouigt <variksla@gmail.com>
To: linux-kernel@vger.kernel.org,
	kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Mapping ram memory using ioremap
Date: Wed, 11 May 2022 16:00:14 -0700	[thread overview]
Message-ID: <CAES_P+-khQGqec2_xqVEU4m0b9WscvLUinQmPXi6zX_P4mP+hw@mail.gmail.com> (raw)

We are using part of DRAM as shared memory
between DSP and SoC. However, DSP
can only access higher 1GB of DRAM.

In order to map the aforementioned memory
I tried using ioremap and it blurted out the
warning as mentioned in this article.
https://lwn.net/Articles/409700/

What is the alternative to using ioremap to
map specific RAM memory region for use
in the driver as shared memory?

I tried memremap + reserved memory as well
and it failed.

WARNING: multiple messages have this Message-ID (diff)
From: noman pouigt <variksla@gmail.com>
To: linux-kernel@vger.kernel.org,
	 kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Mapping ram memory using ioremap
Date: Wed, 11 May 2022 16:00:14 -0700	[thread overview]
Message-ID: <CAES_P+-khQGqec2_xqVEU4m0b9WscvLUinQmPXi6zX_P4mP+hw@mail.gmail.com> (raw)

We are using part of DRAM as shared memory
between DSP and SoC. However, DSP
can only access higher 1GB of DRAM.

In order to map the aforementioned memory
I tried using ioremap and it blurted out the
warning as mentioned in this article.
https://lwn.net/Articles/409700/

What is the alternative to using ioremap to
map specific RAM memory region for use
in the driver as shared memory?

I tried memremap + reserved memory as well
and it failed.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2022-05-11 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11 23:00 noman pouigt [this message]
2022-05-11 23:00 ` Mapping ram memory using ioremap noman pouigt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAES_P+-khQGqec2_xqVEU4m0b9WscvLUinQmPXi6zX_P4mP+hw@mail.gmail.com \
    --to=variksla@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.