linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC] P9 ldmx support
@ 2016-04-11 18:57 Jack Miller
  2016-04-11 18:57 ` [PATCH 1/3] powerpc: Complete FSCR context switch Jack Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Jack Miller @ 2016-04-11 18:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: michaele, michael.neuling

All -

These are patches based on next to support the forthcoming ldmx instruction
through the existing P8 EBB infrastructure. Obviously it doesn't actually
*work* without some other patches and a P9 system, but with the context
switch change to FSCR it makes sense to get this upstream for testing ASAP.

The first patch context switches FSCR per thread so that the second patch can
lazily enable this feature (FSCR.LM) with a facility unavailable exception
and context switch two new ldmx registers (LMRR / LMSER) per thread as well.
Third patch is a couple of basic tests.

Any comments welcome.

- Jack

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [v2] P9 ldmx support
@ 2016-04-18 19:07 Jack Miller
  2016-04-18 19:08 ` [PATCH 3/3] powerpc: Load Monitor Register Tests Jack Miller
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Miller @ 2016-04-18 19:07 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, mikey, anton

Second spin of these patches:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-April/141609.html

Differences from v1:

- As part of the FSCR context switch patch, remove extra FSCR manipulation in
  the DSCR case. If anything set FSCR.DSCR it should automatically be set
  correctly now. If I understand correctly, dscr_inherit is still required
  however and covers the < P8 case.

- Minor assembly readability clean up suggested by Segher (thanks!)

Any further comments or concerns welcome.

- Jack

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH 2/3] powerpc: Load Monitor Register Support
@ 2016-04-18 20:47 kbuild test robot
  2016-04-18 21:08 ` [v3] P9 ldmx support Jack Miller
  0 siblings, 1 reply; 19+ messages in thread
From: kbuild test robot @ 2016-04-18 20:47 UTC (permalink / raw)
  To: Jack Miller; +Cc: kbuild-all, linuxppc-dev, mikey, anton

[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]

Hi Jack,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.6-rc4 next-20160418]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Jack-Miller/powerpc-Complete-FSCR-context-switch/20160419-031650
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allnoconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/process.c: In function 'start_thread':
>> arch/powerpc/kernel/process.c:1615:17: error: 'struct thread_struct' has no member named 'fscr'
     current->thread.fscr &= ~FSCR_LM;
                    ^

vim +1615 arch/powerpc/kernel/process.c

  1609		if (cpu_has_feature(CPU_FTR_TM))
  1610			regs->msr |= MSR_TM;
  1611		current->thread.tm_tfhar = 0;
  1612		current->thread.tm_texasr = 0;
  1613		current->thread.tm_tfiar = 0;
  1614	#endif /* CONFIG_PPC_TRANSACTIONAL_MEM */
> 1615		current->thread.fscr &= ~FSCR_LM;
  1616	}
  1617	EXPORT_SYMBOL(start_thread);
  1618	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 5792 bytes --]

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

end of thread, other threads:[~2016-05-04 11:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 18:57 [RFC] P9 ldmx support Jack Miller
2016-04-11 18:57 ` [PATCH 1/3] powerpc: Complete FSCR context switch Jack Miller
2016-04-12 23:42   ` [1/3] " Michael Ellerman
2016-04-13 10:51   ` [PATCH 1/3] " Anton Blanchard
2016-04-13 17:52     ` Jack Miller
2016-04-13 23:49       ` Michael Neuling
2016-04-14 18:39         ` Jack Miller
2016-04-14 23:11           ` Michael Neuling
2016-04-11 18:57 ` [PATCH 2/3] powerpc: Load Monitor Register Support Jack Miller
2016-04-12  5:40   ` Segher Boessenkool
2016-04-13 17:39     ` Jack Miller
2016-04-11 18:57 ` [PATCH 3/3] powerpc: Load Monitor Register Tests Jack Miller
2016-04-15 10:34   ` Madhavan Srinivasan
2016-04-12  1:05 ` [RFC] P9 ldmx support Michael Neuling
  -- strict thread matches above, loose matches on Subject: below --
2016-04-18 19:07 [v2] " Jack Miller
2016-04-18 19:08 ` [PATCH 3/3] powerpc: Load Monitor Register Tests Jack Miller
2016-04-18 20:47 [PATCH 2/3] powerpc: Load Monitor Register Support kbuild test robot
2016-04-18 21:08 ` [v3] P9 ldmx support Jack Miller
2016-04-18 21:08   ` [PATCH 3/3] powerpc: Load Monitor Register Tests Jack Miller
2016-05-04 10:43     ` Michael Neuling
2016-05-04 11:31       ` Michael Ellerman
2016-05-04 11:41         ` Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).