mbox series

[RFC,0/1] AWAN HACK to flush console

Message ID 20210908183901.3773783-1-grimm@linux.ibm.com
Headers show
Series AWAN HACK to flush console | expand

Message

Ryan Grimm Sept. 8, 2021, 6:39 p.m. UTC
I encountered an AWAN environment where the tools for reading caches
were broken.  Normally, we'd use this tool to access caches directly for
the inmem console.

We do have a tool that can read the DIMMs so I hacked this up and it
actually worked.

Just sharing b/c it might be useful if we encounter this again.

Does the hack look like it is working as intended?  Do I need to worry
about a sync?

Also, I tried to handle console wrapping with the ugly calculation

(total_cache_lines % (INMEM_CON_LEN / 128)) * 128

but it's difficult to test.

Ryan Grimm (1):
  AWAN CHIP HACK: Flush console buffer to memory

 core/console.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)