* How to alloc_pages from a given physical memory?
@ 2017-07-06 3:08 ` kipade
2017-07-06 8:53 ` Kamil Konieczny
0 siblings, 1 reply; 11+ messages in thread
From: kipade @ 2017-07-06 3:08 UTC (permalink / raw)
To: kernelnewbies
Here I want to allocate a block of shared memory from a given physical
address, such as 0x90000000, 6M. However, alloc_pages can't fit this
point. I had reserved enugh pages via cmem, there also have enough
continous pages for such allocation anywhere else. What should I do?
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 3:08 ` How to alloc_pages from a given physical memory? kipade
@ 2017-07-06 8:53 ` Kamil Konieczny
2017-07-06 9:04 ` kipade
0 siblings, 1 reply; 11+ messages in thread
From: Kamil Konieczny @ 2017-07-06 8:53 UTC (permalink / raw)
To: kernelnewbies
On 06.07.2017 05:08, kipade wrote:
> Here I want to allocate a block of shared memory from a given physical
> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
> point. I had reserved enugh pages via cmem, there also have enough
> continous pages for such allocation anywhere else. What should I do?
On what platform are you working ?
I think this is platfrom depended.
--
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 8:53 ` Kamil Konieczny
@ 2017-07-06 9:04 ` kipade
2017-07-06 9:30 ` Kamil Konieczny
0 siblings, 1 reply; 11+ messages in thread
From: kipade @ 2017-07-06 9:04 UTC (permalink / raw)
To: kernelnewbies
I use arm 32bit cpu, with kernel 3.14
? 2017?07?06? 16:53, Kamil Konieczny wrote:
>
> On 06.07.2017 05:08, kipade wrote:
>> Here I want to allocate a block of shared memory from a given physical
>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>> point. I had reserved enugh pages via cmem, there also have enough
>> continous pages for such allocation anywhere else. What should I do?
> On what platform are you working ?
>
> I think this is platfrom depended.
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 9:04 ` kipade
@ 2017-07-06 9:30 ` Kamil Konieczny
2017-07-06 9:38 ` kipade
2017-07-06 9:43 ` kipade
0 siblings, 2 replies; 11+ messages in thread
From: Kamil Konieczny @ 2017-07-06 9:30 UTC (permalink / raw)
To: kernelnewbies
On 06.07.2017 11:04, kipade wrote:
> I use arm 32bit cpu, with kernel 3.14
banana-pi ? nano-pi ? orange-pi ? odroid ?
Is it memory region for system registers ?
>> On 06.07.2017 05:08, kipade wrote:
>>> Here I want to allocate a block of shared memory from a given physical
>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>> point. I had reserved enugh pages via cmem, there also have enough
>>> continous pages for such allocation anywhere else. What should I do?
--
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 9:30 ` Kamil Konieczny
@ 2017-07-06 9:38 ` kipade
2017-07-06 9:43 ` kipade
1 sibling, 0 replies; 11+ messages in thread
From: kipade @ 2017-07-06 9:38 UTC (permalink / raw)
To: kernelnewbies
cortex A15, omap5 platform
? 2017?07?06? 17:30, Kamil Konieczny wrote:
>
> On 06.07.2017 11:04, kipade wrote:
>> I use arm 32bit cpu, with kernel 3.14
> banana-pi ? nano-pi ? orange-pi ? odroid ?
>
> Is it memory region for system registers ?
>
>>> On 06.07.2017 05:08, kipade wrote:
>>>> Here I want to allocate a block of shared memory from a given physical
>>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>> continous pages for such allocation anywhere else. What should I do?
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 9:30 ` Kamil Konieczny
2017-07-06 9:38 ` kipade
@ 2017-07-06 9:43 ` kipade
2017-07-06 10:01 ` Kamil Konieczny
1 sibling, 1 reply; 11+ messages in thread
From: kipade @ 2017-07-06 9:43 UTC (permalink / raw)
To: kernelnewbies
In fact, I want to allocate a continous of pages from a given physical
address for a shm object in
shmem_file_setup, might i should write a customized shmem_file_setup2
for this?
? 2017?07?06? 17:30, Kamil Konieczny wrote:
>
> On 06.07.2017 11:04, kipade wrote:
>> I use arm 32bit cpu, with kernel 3.14
> banana-pi ? nano-pi ? orange-pi ? odroid ?
>
> Is it memory region for system registers ?
>
>>> On 06.07.2017 05:08, kipade wrote:
>>>> Here I want to allocate a block of shared memory from a given physical
>>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>> continous pages for such allocation anywhere else. What should I do?
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 9:43 ` kipade
@ 2017-07-06 10:01 ` Kamil Konieczny
2017-07-06 10:20 ` kipade
0 siblings, 1 reply; 11+ messages in thread
From: Kamil Konieczny @ 2017-07-06 10:01 UTC (permalink / raw)
To: kernelnewbies
On 06.07.2017 11:43, kipade wrote:
> In fact, I want to allocate a continous of pages from a given physical
> address for a shm object in
>
> shmem_file_setup, might i should write a customized shmem_file_setup2
> for this?
> I use arm 32bit cpu, with kernel 3.14
why do want this specific address 0x90000000 ?
can it be 0x40000000 ? or 0x50000000 ? or 0x68880000 ?
is this 0x90000000 located in hardware registers ?
some memory regions are not accessible directly for allocation,
because they are used for communication with hardware SoC,
and so they are used by kernel drivers or directly by kernel
kernel driver may or may not expose that memory region for user space,
but this is driver work
maybe you should ask on platform forum,
you did not answer my question on what platform you are working
>>>> On 06.07.2017 05:08, kipade wrote:
>>>>> Here I want to allocate a block of shared memory from a given physical
>>>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>>> continous pages for such allocation anywhere else. What should I do?
--
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 10:01 ` Kamil Konieczny
@ 2017-07-06 10:20 ` kipade
2017-07-06 11:17 ` Kamil Konieczny
0 siblings, 1 reply; 11+ messages in thread
From: kipade @ 2017-07-06 10:20 UTC (permalink / raw)
To: kernelnewbies
I reserved such memory as cma range, and Im sure it can be allocated via
cma, such as dma_alloc_writecombine*. I want to hard code the physical
address because I have to make sure such address can be access by
another ipu cores of the soc platform. I think this can be reserved via
a generic way: Just customize page allocation for a shm object. (I have
a look at the kerrnel source, every omap_bo_object was bind a shm file,
so, i only need allocate pages by my way will resolve all the further
problem. otherwise, i would encounter many other unkown issues for me).*
On 06.07.2017 18:01, Kamil Konieczny wrote:
>
> On 06.07.2017 11:43, kipade wrote:
>> In fact, I want to allocate a continous of pages from a given physical
>> address for a shm object in
>>
>> shmem_file_setup, might i should write a customized shmem_file_setup2
>> for this?
>> I use arm 32bit cpu, with kernel 3.14
> why do want this specific address 0x90000000 ?
>
> can it be 0x40000000 ? or 0x50000000 ? or 0x68880000 ?
>
> is this 0x90000000 located in hardware registers ?
>
> some memory regions are not accessible directly for allocation,
> because they are used for communication with hardware SoC,
> and so they are used by kernel drivers or directly by kernel
>
> kernel driver may or may not expose that memory region for user space,
> but this is driver work
>
> maybe you should ask on platform forum,
> you did not answer my question on what platform you are working
>
>>>>> On 06.07.2017 05:08, kipade wrote:
>>>>>> Here I want to allocate a block of shared memory from a given physical
>>>>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>>>> continous pages for such allocation anywhere else. What should I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170706/a24c53a3/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 10:20 ` kipade
@ 2017-07-06 11:17 ` Kamil Konieczny
2017-07-06 13:43 ` kipade
0 siblings, 1 reply; 11+ messages in thread
From: Kamil Konieczny @ 2017-07-06 11:17 UTC (permalink / raw)
To: kernelnewbies
On 06.07.2017 12:20, kipade wrote:
> [...] (I have a look at> the kerrnel source, every omap_bo_object [...]
> [...] I use arm 32bit cpu, with kernel 3.14
> Here I want to allocate a block of shared memory from a given physical
> address, such as 0x90000000, 6M. [...]
it is well beyond newbie, you may find help on vendor forum,
i guess it is TI (Texas Instruments) Sitara SoC,
google search gives first hit:
http://processors.wiki.ti.com/index.php/CMEM_Overview
--
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 11:17 ` Kamil Konieczny
@ 2017-07-06 13:43 ` kipade
2017-07-06 14:52 ` Kamil Konieczny
0 siblings, 1 reply; 11+ messages in thread
From: kipade @ 2017-07-06 13:43 UTC (permalink / raw)
To: kernelnewbies
Might be? I have no puzzle of CMem? OK, I will continue go search solutions for that.
And, if I got it, I will come back for sharing solutions here.
And, thank you, all
At 2017-07-06 19:17:45, "Kamil Konieczny" <k.konieczny@partner.samsung.com> wrote:
>
>
>On 06.07.2017 12:20, kipade wrote:
>
>> [...] (I have a look at> the kerrnel source, every omap_bo_object [...]
>
>> [...] I use arm 32bit cpu, with kernel 3.14
>
>> Here I want to allocate a block of shared memory from a given physical
>> address, such as 0x90000000, 6M. [...]
>
>it is well beyond newbie, you may find help on vendor forum,
>i guess it is TI (Texas Instruments) Sitara SoC,
>google search gives first hit:
>
>http://processors.wiki.ti.com/index.php/CMEM_Overview
>
>--
>Best regards,
>Kamil Konieczny
>Samsung R&D Institute Poland
>
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies at kernelnewbies.org
>https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170706/9f9f8d6d/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* How to alloc_pages from a given physical memory?
2017-07-06 13:43 ` kipade
@ 2017-07-06 14:52 ` Kamil Konieczny
0 siblings, 0 replies; 11+ messages in thread
From: Kamil Konieczny @ 2017-07-06 14:52 UTC (permalink / raw)
To: kernelnewbies
On 06.07.2017 15:43, kipade wrote:
> Might be? I have no puzzle of CMem? OK, I will continue go search solutions for that.
> And, if I got it, I will come back for sharing solutions here.
> And, thank you, all
Are you writing kernel module ?
or you try to compile kernel with cmem module ?
What hardware are you using ?
How are you allocating shmem ?
Can you give few code lines for what you try ?
The more info you give, more help you receive.
Well, it may be faster to go directly to some kernel list or vendor list
with your questions.
>> On 06.07.2017 12:20, kipade wrote:
>>
>>> [...] (I have a look at> the kerrnel source, every omap_bo_object [...]
>>
>>> [...] I use arm 32bit cpu, with kernel 3.14
>>
>>> Here I want to allocate a block of shared memory from a given physical
>>> address, such as 0x90000000, 6M. [...]
>>
>> it is well beyond newbie, you may find help on vendor forum,
>> i guess it is TI (Texas Instruments) Sitara SoC,
>> google search gives first hit:
>>
>> http://processors.wiki.ti.com/index.php/CMEM_Overview
--
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-07-06 14:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170706030832epcas2p134389ce39645a79dcf6f8fb24b1e2436@epcas2p1.samsung.com>
2017-07-06 3:08 ` How to alloc_pages from a given physical memory? kipade
2017-07-06 8:53 ` Kamil Konieczny
2017-07-06 9:04 ` kipade
2017-07-06 9:30 ` Kamil Konieczny
2017-07-06 9:38 ` kipade
2017-07-06 9:43 ` kipade
2017-07-06 10:01 ` Kamil Konieczny
2017-07-06 10:20 ` kipade
2017-07-06 11:17 ` Kamil Konieczny
2017-07-06 13:43 ` kipade
2017-07-06 14:52 ` Kamil Konieczny
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.