All of lore.kernel.org
 help / color / mirror / Atom feed
* How to add a haradware breakpoint on a physical memory address?
@ 2017-11-17  9:57 kipade
  2017-11-17 15:03 ` valdis.kletnieks at vt.edu
  0 siblings, 1 reply; 3+ messages in thread
From: kipade @ 2017-11-17  9:57 UTC (permalink / raw)
  To: kernelnewbies

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 monitor on the other variable.


any hints will be very very appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171117/5a319ad3/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* How to add a haradware breakpoint on a physical memory address?
  2017-11-17  9:57 How to add a haradware breakpoint on a physical memory address? kipade
@ 2017-11-17 15:03 ` valdis.kletnieks at vt.edu
  2017-11-17 23:44   ` kipade
  0 siblings, 1 reply; 3+ messages in thread
From: valdis.kletnieks at vt.edu @ 2017-11-17 15:03 UTC (permalink / raw)
  To: kernelnewbies

On Fri, 17 Nov 2017 17:57:26 +0800, kipade said:

> 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 monitor on the other variable.

If you have two different variables pointing to the same physical address,
you *probably* are doing something wrong.  Why was something else
using memory that got used by the GPU?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171117/17ea66db/attachment.bin 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* How to add a haradware breakpoint on a physical memory address?
  2017-11-17 15:03 ` valdis.kletnieks at vt.edu
@ 2017-11-17 23:44   ` kipade
  0 siblings, 0 replies; 3+ messages in thread
From: kipade @ 2017-11-17 23:44 UTC (permalink / raw)
  To: kernelnewbies

Thanks for your reply. The real fact is, a block of physical memory was reserver whilekernel booting, so that, the block of memory can not used by the whole memoryusing the normal api, such as malloc, get_free_pages.(because the block of memoryhave to reserved for remote dsp core). However, 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.kletnieks at vt.edu wrote:
>On Fri, 17 Nov 2017 17:57:26 +0800, kipade said:
>
>> 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 monitor on the other variable.
>
>If you have two different variables pointing to the same physical address,
>you *probably* are doing something wrong.  Why was something else
>using memory that got used by the GPU?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171118/370b93b1/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-17 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17  9:57 How to add a haradware breakpoint on a physical memory address? kipade
2017-11-17 15:03 ` valdis.kletnieks at vt.edu
2017-11-17 23:44   ` kipade

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.