Is there a simple method to keep memory coherent between two different cpus

2017-03-26 Thread kipade
Here I want to share a block of physical memory between two different cpus. I want to simple use original real mode memory address. Is there a simple way to invalid linux memory cache after writing to and before reading from it? ex. invalid_cache_range(u32 phy_address, u32 length). My cpu is

Where could I get source code for Atmel 641t touchscreen?

2017-08-17 Thread kipade
Hello all, Where could I get the source code of Atmel 641t touchscreen driver? I searched, no spec document and linux driver source for downloading. Regards, kipade ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https

Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread kipade
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

Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread kipade
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 a

Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread kipade
, 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

Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread kipade
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 0x9000, 6M. However, alloc_pages can't fit this >> poi

Re:Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread kipade
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.koniec...@partner.samsung.com> wrote: > > >On 06.07

How to alloc_pages from a given physical memory?

2017-07-05 Thread kipade
Here I want to allocate a block of shared memory from a given physical address, such as 0x9000, 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?

Re: Where could I get source code for Atmel 641t touchscreen?

2017-08-18 Thread kipade
y can read it. Any hints? 在 2017/8/18 下午9:32, Amit Kumar 写道: On Fri, Aug 18, 2017 at 12:49 PM kipade <kip...@163.com <mailto:kip...@163.com>> wrote: Thanks for your reply. The code following the link almost the same as the official kernel source. what a pity this is not t

Re: Where could I get source code for Atmel 641t touchscreen?

2017-08-18 Thread kipade
, 2017 at 2:25 PM Amit Kumar wrote: Hi, On Thu, Aug 17, 2017 at 2:33 PM kipade <kip...@163.com <mailto:kip...@163.com>> wrote: Hello all, Where could I get the source code of Atmel 641t touchscreen driver? I searched, no spec document and linux driver source for downloa

Re: Access RAM data externally (dual port ram)

2017-08-23 Thread kipade
I think the linux OS can access all ram devices connected to the SOC where linux running on. For the ram bank owned by FPGA, the linux OS will reserve it from random allocating in kernel and user spaces, however, it still can access the reserved memory via map operation if needed. 在 2017/8/19

How to add a haradware breakpoint on a physical memory address?

2017-11-17 Thread kipade
I found some memory was rewrite by gpu module, but i have not found where it layout. I just use samples hw_breakpoint module for memory monitor. However, i found it only monitor on a virtual address, in another words, if two variable point the same physical memory, it can't be detected if I just

Re:Re: How to add a haradware breakpoint on a physical memory address?

2017-11-17 Thread kipade
, the block of memory was rewrittenif the application called eglSwapBuffer. and the gpu driver using gem memorymanaging method, i checked all pages allocated for ever gem_object but foundnothing. At 2017-11-17 23:03:32, valdis.kletni...@vt.edu wrote: >On Fri, 17 Nov 2017 17:57:26 +0800, kipade s

What happened when the user space application accesss device registers via mapped memory on /dev/mem?

2017-12-06 Thread kipade
Hi all, I want to know the details of device(not physical ram device) registers via mapped memory on /dev/mem. For example, a Soc CPU has some internal device register resources, the driver will map the memory block to a virtual memory to kernel. But, the user application can use /dev/mem to

How to correctly load a driver without device tree?

2018-06-20 Thread kipade
, the device would not be configured correctly. so, how to make it usable? Regards, kipade.___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to correctly load a driver without device tree?

2018-06-20 Thread kipade
, you can make your own Target like early.target and load modules without udev. But you need to load modules without device tree, I guess that's not possible. your system is booting without device tree? Thanks, Akash On Wed, Jun 20, 2018, 14:03 kipade <mailto:kip...@163.com>&

Re: How to correctly load a driver without device tree?

2018-06-20 Thread kipade
If so, I think that's the perfect resolution for that. and, what should I do next for that way? On 2018年06月20日 20:31, Greg KH wrote: On Wed, Jun 20, 2018 at 04:30:40PM +0800, kipade wrote: That's a usb host driver. As I know, the whole usb subsystem initialization would take up to 2 seconds

Re: How to correctly load a driver without device tree?

2018-06-20 Thread kipade
06月20日 16:01, Greg KH wrote: On Wed, Jun 20, 2018 at 02:36:52PM +0800, kipade wrote: Now, most of kernel device are initialized by its driver according by what described within device tree block. Here, the dtb was parsed and used during kernel booting. If so, I want to load a device driver after

where and when the kernel destroy devices memory if there were no matched driver for it?

2018-06-26 Thread kipade
Hi, all As my question, would kernel destroy deivces struct if there were no matched driver attached on it? If so, what's a suite time to drop them, and where? Thanks. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: where and when the kernel destroy devices memory if there were no matched driver for it?

2018-06-27 Thread kipade
, Greg KH wrote: On Wed, Jun 27, 2018 at 01:52:55PM +0800, kipade wrote: Hi, all As my question, would kernel destroy deivces struct if there were no matched driver attached on it? No, only when the device is removed from the system does that structure get destroyed. greg k-h

How to dealwith mmap for a filesystem filter driver?

2019-02-16 Thread kipade
Hello all, I created a filter driver for the vfs, for some special file read, I want to replace its data got from the disk and return to the new data to user space, eg. decryption. my hooked read entry like this: int my_hooked_read(struct file* filp, char* buffer, size_t count, loff_t* pos) {

Re: Was there a way to bind a shared memory object onto a fixed physical memory address?

2020-04-19 Thread kipade
, Greg KH wrote: On Thu, Apr 02, 2020 at 05:38:31PM +0800, kipade wrote: As the topic, I want to specify a fixed physical memory space to a shared memory object, which can use shm_XXX api to access the memory. Of course I do not want to use mmap api to map /dev/mem device memory into user program

Was there a way to bind a shared memory object onto a fixed physical memory address?

2020-04-02 Thread kipade
As the topic, I want to specify a fixed physical memory space to a shared memory object, which can use shm_XXX api to access the memory. Of course I do not want to use mmap api to map /dev/mem device memory into user program. Thanks all. ___

why high io requests will slow down kernel scheduling?

2023-12-16 Thread kipade
Hello, Im puzzled about the influence about iowait. Almost all the document say, the iowait "Show the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request." And, if there was a programs writing disk frequently, the system's iowait would