Thread (1 message) 1 message, 1 author, 2011-07-14
DORMANTno replies

[PATCH 1/1 V2] Add Thread Support for the Context ID Register of ARM v6 & v7 Architectures

From: Will Deacon <hidden>
Date: 2011-07-14 11:36:25

On Thu, Jul 14, 2011 at 12:07:00PM +0100, Wolfgang BETZ wrote:
Ciao Will,
Hello,
maybe there is a basic misunderstanding: do we speak about the actual CONTEXTID
register or the data structures in the Linux kernel which represents this
register?
Sorry, I didn't see that you'd changed the context ID writes so that they
write the masked value. I also looked to see if there's a handy thread ID
register you can use instead but there isn't (TPIDRRO is used for the TLS).

Looking again at the structure of your code (FrankH has already pointed out
a lot of the implementation issues), perhaps this would be better off as a
(configurable) thread notifier which reads the context ID, sets the upper
bits (taking care to preserve the ASID) and writes it back.

This is far less invasive, is easy to enable/disable and is also easy to
implement for future cores without requiring changes to older CPUs.

Would that work?

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help