linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Cc: mikey@neuling.org, anton@samba.org, shuahkh@osg.samsung.com,
	mpe@ellerman.id.au
Subject: [PATCH V5 00/13] POWER DSCR fixes, improvements, docs and tests
Date: Thu, 21 May 2015 12:13:00 +0530	[thread overview]
Message-ID: <1432190593-17253-1-git-send-email-khandual@linux.vnet.ibm.com> (raw)

	This patch series has patches for POWER DSCR fixes, improvements,
in code documentaion, kernel support user documentation and selftest based
test cases. It has got five test cases which are derived from Anton's DSCR
test bucket which can be listed as follows.

(1) http://ozlabs.org/~anton/junkcode/dscr_default_test.c
(2) http://ozlabs.org/~anton/junkcode/dscr_explicit_test.c
(3) http://ozlabs.org/~anton/junkcode/dscr_inherit_exec_test.c
(4) http://ozlabs.org/~anton/junkcode/dscr_inherit_test.c
(5) http://ozlabs.org/~anton/junkcode/user_dscr_test.c

NOTE1: Anton's original inherit exec test expected the child to have
system default DSCR value instead of the inherited DSCR value from
it's parent. But looks like thats not the case when we execute the
test, it always inherits it's parent's DSCR value over the exec call
as well. So I have changed the test program assuming its correct to
have the inherited DSCR value in the fork/execed child program.
Please let me know if thats not correct and I am missing something
there.

Changes in V5:
-------------
- Fixed build problem with get_default_dscr/set_default_dscr functions
  by checking on the return values of read & write system calls.

Changes in V4: (https://lkml.org/lkml/2015/5/18/215)
--------------
- Restoring the system DSCR default value in test cases before exiting
- Removed new-line from all the perror() calls
- Some minor cosmetic changes to the test cases
- Added Anton's SOB to the above mentioned five derived test cases

Changes in V3: (https://lkml.org/lkml/2015/4/10/117)
--------------
- Minor changes to last couple of sysfs test cases
- Added .gitignore file for the new test directory

Changes in V2: (https://lkml.org/lkml/2015/1/13/148)
-------------
- Updated the thread struct DSCR value inside mtspr facility exception path
- Modified the in code documentation to follow the kernel-doc format
- Added seven selftest based DSCR related test cases under powerpc

Original V1:
------------
- Posted here at https://patchwork.ozlabs.org/patch/418583/


Anshuman Khandual (13):
  powerpc: Fix handling of DSCR related facility unavailable exception
  powerpc, process: Remove the unused extern dscr_default
  powerpc, offset: Change PACA_DSCR to PACA_DSCR_DEFAULT
  powerpc, dscr: Added some in-code documentation
  documentation, powerpc: Add documentation for DSCR support
  selftests, powerpc: Add test for system wide DSCR default
  selftests, powerpc: Add test for explicitly changing DSCR value
  selftests, powerpc: Add test for DSCR SPR numbers
  selftests, powerpc: Add test for DSCR value inheritence across fork
  selftests, powerpc: Add test for DSCR inheritence across fork & exec
  selftests, powerpc: Add test for all DSCR sysfs interfaces
  selftests, powerpc: Add thread based stress test for DSCR sysfs interfaces
  selftests, powerpc: Add gitignore file for the new DSCR tests

 Documentation/powerpc/00-INDEX                     |   2 +
 Documentation/powerpc/dscr.txt                     |  83 +++++++++++++
 arch/powerpc/include/asm/processor.h               |   9 ++
 arch/powerpc/kernel/asm-offsets.c                  |   2 +-
 arch/powerpc/kernel/entry_64.S                     |   2 +-
 arch/powerpc/kernel/process.c                      |   1 -
 arch/powerpc/kernel/sysfs.c                        |  38 ++++++
 arch/powerpc/kernel/tm.S                           |   4 +-
 arch/powerpc/kernel/traps.c                        |  45 +++++++-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S            |   2 +-
 tools/testing/selftests/powerpc/Makefile           |   2 +-
 tools/testing/selftests/powerpc/dscr/.gitignore    |   7 ++
 tools/testing/selftests/powerpc/dscr/Makefile      |  19 +++
 tools/testing/selftests/powerpc/dscr/dscr.h        | 128 +++++++++++++++++++++
 .../selftests/powerpc/dscr/dscr_default_test.c     | 128 +++++++++++++++++++++
 .../selftests/powerpc/dscr/dscr_explicit_test.c    |  72 ++++++++++++
 .../powerpc/dscr/dscr_inherit_exec_test.c          | 118 +++++++++++++++++++
 .../selftests/powerpc/dscr/dscr_inherit_test.c     |  96 ++++++++++++++++
 .../selftests/powerpc/dscr/dscr_sysfs_test.c       |  98 ++++++++++++++++
 .../powerpc/dscr/dscr_sysfs_thread_test.c          | 123 ++++++++++++++++++++
 .../selftests/powerpc/dscr/dscr_user_test.c        |  62 ++++++++++
 21 files changed, 1029 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/powerpc/dscr.txt
 create mode 100644 tools/testing/selftests/powerpc/dscr/.gitignore
 create mode 100644 tools/testing/selftests/powerpc/dscr/Makefile
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr.h
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_default_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_explicit_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_inherit_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c
 create mode 100644 tools/testing/selftests/powerpc/dscr/dscr_user_test.c

-- 
2.1.0

             reply	other threads:[~2015-05-21  6:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21  6:43 Anshuman Khandual [this message]
2015-05-21  6:43 ` [PATCH V5 01/13] powerpc: Fix handling of DSCR related facility unavailable exception Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 02/13] powerpc, process: Remove the unused extern dscr_default Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 03/13] powerpc, offset: Change PACA_DSCR to PACA_DSCR_DEFAULT Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 04/13] powerpc, dscr: Added some in-code documentation Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 05/13] documentation, powerpc: Add documentation for DSCR support Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 06/13] selftests, powerpc: Add test for system wide DSCR default Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 07/13] selftests, powerpc: Add test for explicitly changing DSCR value Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 08/13] selftests, powerpc: Add test for DSCR SPR numbers Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 09/13] selftests, powerpc: Add test for DSCR value inheritence across fork Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 10/13] selftests, powerpc: Add test for DSCR inheritence across fork & exec Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 11/13] selftests, powerpc: Add test for all DSCR sysfs interfaces Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 12/13] selftests, powerpc: Add thread based stress test for " Anshuman Khandual
2015-06-03  8:44   ` Anshuman Khandual
2015-05-21  6:43 ` [PATCH V5 13/13] selftests, powerpc: Add gitignore file for the new DSCR tests Anshuman Khandual
2015-05-25  8:38 ` [PATCH V5 00/13] POWER DSCR fixes, improvements, docs and tests Anshuman Khandual

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1432190593-17253-1-git-send-email-khandual@linux.vnet.ibm.com \
    --to=khandual@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mikey@neuling.org \
    --cc=mpe@ellerman.id.au \
    --cc=shuahkh@osg.samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).