[PATCH 2/4] powerpc/pseries: Fix alignment of PLPKS structures and buffers

2022-12-19 Thread Andrew Donnellan
A number of structures and buffers passed to PKS hcalls have alignment requirements, which could on occasion cause problems: - Authorisation structures must be 16-byte aligned and must not cross a page boundary - Label structures must not cross page coundaries - Password output buffers must no

[PATCH 3/4] powerpc/pseries: Expose PLPKS config values, support additional fields

2022-12-19 Thread Andrew Donnellan
From: Nayna Jain The plpks driver uses the H_PKS_GET_CONFIG hcall to retrieve configuration and status information about the PKS from the hypervisor. Update _plpks_get_config() to handle some additional fields. Add getter functions to allow the PKS configuration information to be accessed from o

[PATCH 4/4] powerpc/pseries: Implement signed update for PLPKS objects

2022-12-19 Thread Andrew Donnellan
From: Nayna Jain The Platform Keystore provides a signed update interface which can be used to create, replace or append to certain variables in the PKS in a secure fashion, with the hypervisor requiring that the update be signed using the Platform Key. Implement an interface to the H_PKS_SIGNED

[PATCH 1/4] powerpc/pseries: Fix handling of PLPKS object flushing timeout

2022-12-19 Thread Andrew Donnellan
plpks_confirm_object_flushed() uses the H_PKS_CONFIRM_OBJECT_FLUSHED hcall to check whether changes to an object in the Platform KeyStore have been flushed to non-volatile storage. The hcall returns two output values, the return code and the flush status. plpks_confirm_object_flushed() polls the h

[PATCH 0/4] PLPKS bugfixes and enhancements

2022-12-19 Thread Andrew Donnellan
This series fixes a few miscellaneous bugs in the plpks driver, and adds some additional internal APIs that will be used by some patches that are coming imminently. This supersedes Nayna's earlier patch at: https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20221106210744.603240-2-na...@linux

[PATCH] cputime: remove cputime_to_nsecs fallback

2022-12-19 Thread Nicholas Piggin
The archs that use cputime_to_nsecs() internally provide their own definition and don't need the fallback. cputime_to_usecs() unused except in this fallback, and is not defined anywhere. This removes the final remnant of the cputime_t code from the kernel. Cc: Peter Zijlstra Cc: Rik van Riel Cc

Re: [RFC PATCH] mm: remove zap_page_range and change callers to use zap_vma_page_range

2022-12-19 Thread Mike Kravetz
On 12/19/22 13:06, Michal Hocko wrote: > On Fri 16-12-22 11:20:12, Mike Kravetz wrote: > > zap_page_range was originally designed to unmap pages within an address > > range that could span multiple vmas. While working on [1], it was > > discovered that all callers of zap_page_range pass a range en

Re: [PATCH v1 06/10] powerpc/bpf: Perform complete extra passes to update addresses

2022-12-19 Thread Christophe Leroy
Le 13/12/2022 à 11:23, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> BPF core calls the jit compiler again for an extra pass in order >> to properly set subprog addresses. >> >> Unlike other architectures, powerpc only updates the addresses >> during that extra pass. It means that holes mu

RE: [PATCH net v2] powerpc: dts: t208x: Disable 10G on MAC1 and MAC2

2022-12-19 Thread Camelia Alexandra Groza
> -Original Message- > From: Sean Anderson > Sent: Friday, December 16, 2022 19:30 > To: David S . Miller ; net...@vger.kernel.org > Cc: devicet...@vger.kernel.org; Rob Herring ; > Christophe Leroy ; Nicholas Piggin > ; Michael Ellerman ; linuxppc- > d...@lists.ozlabs.org; Krzysztof Kozlow

[linux-next:master] BUILD REGRESSION d650871875b2ccc670f1044be7f3cc90f276745d

2022-12-19 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: d650871875b2ccc670f1044be7f3cc90f276745d Add linux-next specific files for 20221219 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202211242120.mzzvguln-...@intel.com https

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.2-1 tag

2022-12-19 Thread pr-tracker-bot
The pull request you sent on Mon, 19 Dec 2022 14:58:38 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.2-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5f6e430f931d245da838db3e10e918681207029b Thank you! -- Deet-doot-do

[powerpc:merge] BUILD SUCCESS 11af322e07122d71e49f25998ae52b6d83932bba

2022-12-19 Thread kernel test robot
randconfig-a001-20221219 i386 randconfig-a003-20221219 i386 randconfig-a002-20221219 arc defconfig i386defconfig x86_64 randconfig-a002-20221219 x86_64allnoc

Re: [PATCH] [Backport for 4.14] perf script python: Remove explicit shebang from tests/attr.c

2022-12-19 Thread Greg KH
On Mon, Dec 19, 2022 at 12:21:47PM +, Christophe Leroy wrote: > > > Le 19/12/2022 à 13:18, Greg KH a écrit : > > On Fri, Dec 16, 2022 at 12:38:12PM +0100, Christophe Leroy wrote: > >> From: Tony Jones > >> > >> [Upstream commit d72eadbc1d2866fc047edd4535ffb0298fe240be] > >> > >> tests/attr.c

Re: [PATCH] [Backport for 4.14] perf script python: Remove explicit shebang from tests/attr.c

2022-12-19 Thread Christophe Leroy
Le 19/12/2022 à 13:18, Greg KH a écrit : > On Fri, Dec 16, 2022 at 12:38:12PM +0100, Christophe Leroy wrote: >> From: Tony Jones >> >> [Upstream commit d72eadbc1d2866fc047edd4535ffb0298fe240be] >> >> tests/attr.c invokes attr.py via an explicit invocation of Python >> ($PYTHON) so there is there

Re: [PATCH] [Backport for 4.14] perf script python: Remove explicit shebang from tests/attr.c

2022-12-19 Thread Greg KH
On Fri, Dec 16, 2022 at 12:38:12PM +0100, Christophe Leroy wrote: > From: Tony Jones > > [Upstream commit d72eadbc1d2866fc047edd4535ffb0298fe240be] > > tests/attr.c invokes attr.py via an explicit invocation of Python > ($PYTHON) so there is therefore no need for an explicit shebang. > > Also m

Re: [RFC PATCH] mm: remove zap_page_range and change callers to use zap_vma_page_range

2022-12-19 Thread Michal Hocko
On Fri 16-12-22 11:20:12, Mike Kravetz wrote: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers of zap_page_range pass a range entirely within > a single vma. In addition, the

Re: [PATCH] powerpc/kexec_file: print error string on usable memory property update failure

2022-12-19 Thread Hari Bathini
On 16/12/22 5:57 pm, Sourabh Jain wrote: Print the FDT error description along with the error message if failed to set the "linux,drconf-usable-memory" property in the kdump kernel's FDT. Signed-off-by: Sourabh Jain LGTM Acked-by: Hari Bathini --- arch/powerpc/kexec/file_load_64.c |