Skip to content

Commit 5f5c995

Browse files
committed
Merge tag 'powerpc-6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc updates from Madhavan Srinivasan: - CONFIG_HZ changes to move the base_slice from 10ms to 1ms - Patchset to move some of the mutex handling to lock guard - Expose secvars relevant to the key management mode - Misc cleanups and fixes Thanks to Ankit Chauhan, Christophe Leroy, Donet Tom, Gautam Menghani, Haren Myneni, Johan Korsnes, Madadi Vineeth Reddy, Paul Mackerras, Shrikanth Hegde, Srish Srinivasan, Thomas Fourier, Thomas Huth, Thomas Weißschuh, Souradeep, Amit Machhiwal, R Nageswara Sastry, Venkat Rao Bagalkote, Andrew Donnellan, Greg Kroah-Hartman, Mimi Zohar, Mukesh Kumar Chaurasiya, Nayna Jain, Ritesh Harjani (IBM), Sourabh Jain, Srikar Dronamraju, Stefan Berger, Tyrel Datwyler, and Kowshik Jois. * tag 'powerpc-6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (23 commits) arch/powerpc: Remove .interp section in vmlinux powerpc: Drop GPL boilerplate text with obsolete FSF address powerpc: Don't use %pK through printk arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions integrity/platform_certs: Allow loading of keys in the static key management mode powerpc/secvar: Expose secvars relevant to the key management mode powerpc/pseries: Correct secvar format representation for static key management (powerpc/512) Fix possible `dma_unmap_single()` on uninitialized pointer powerpc: floppy: Add missing checks after DMA map book3s64/radix : Optimize vmemmap start alignment book3s64/radix : Handle error conditions properly in radix_vmemmap_populate powerpc/pseries/dlpar: Search DRC index from ibm,drc-indexes for IO add KVM: PPC: Book3S HV: Add H_VIRT mapping for tracing exits powerpc: sysdev: use lock guard for mutex powerpc: powernv: ocxl: use lock guard for mutex powerpc: book3s: vas: use lock guard for mutex powerpc: fadump: use lock guard for mutex powerpc: rtas: use lock guard for mutex powerpc: eeh: use lock guard for mutex ...
2 parents 6fb4443 + da30705 commit 5f5c995

File tree

25 files changed

+224
-223
lines changed

25 files changed

+224
-223
lines changed

Documentation/ABI/testing/sysfs-secvar

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ Description: A string indicating which backend is in use by the firmware.
2222
and is expected to be "ibm,edk2-compat-v1".
2323

2424
On pseries/PLPKS, this is generated by the kernel based on the
25-
version number in the SB_VERSION variable in the keystore, and
26-
has the form "ibm,plpks-sb-v<version>", or
27-
"ibm,plpks-sb-unknown" if there is no SB_VERSION variable.
25+
version number in the SB_VERSION variable in the keystore. The
26+
version numbering in the SB_VERSION variable starts from 1. The
27+
format string takes the form "ibm,plpks-sb-v<version>" in the
28+
case of dynamic key management mode. If the SB_VERSION variable
29+
does not exist (or there is an error while reading it), it takes
30+
the form "ibm,plpks-sb-v0", indicating that the key management
31+
mode is static.
2832

2933
What: /sys/firmware/secvar/vars/<variable name>
3034
Date: August 2019
@@ -34,6 +38,13 @@ Description: Each secure variable is represented as a directory named as
3438
representation. The data and size can be determined by reading
3539
their respective attribute files.
3640

41+
Only secvars relevant to the key management mode are exposed.
42+
Only in the dynamic key management mode should the user have
43+
access (read and write) to the secure boot secvars db, dbx,
44+
grubdb, grubdbx, and sbat. These secvars are not consumed in the
45+
static key management mode. PK, trustedcadb and moduledb are the
46+
secvars common to both static and dynamic key management modes.
47+
3748
What: /sys/firmware/secvar/vars/<variable_name>/size
3849
Date: August 2019
3950
Contact: Nayna Jain <[email protected]>

arch/powerpc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION)
101101
endif
102102

103103
LDFLAGS_vmlinux-y := -Bstatic
104-
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
104+
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie --no-dynamic-linker
105105
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) += -z notext
106106
LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)
107107

arch/powerpc/boot/dts/microwatt.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
ibm,powerpc-cpu-features {
3939
display-name = "Microwatt";
40-
isa = <3010>;
40+
isa = <3100>;
4141
device_type = "cpu-features";
4242
compatible = "ibm,powerpc-cpu-features";
4343

arch/powerpc/configs/powernv_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y
4646
CONFIG_CPU_FREQ_GOV_USERSPACE=y
4747
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
4848
CONFIG_CPU_IDLE=y
49-
CONFIG_HZ_100=y
49+
CONFIG_HZ_1000=y
5050
CONFIG_BINFMT_MISC=m
5151
CONFIG_PPC_TRANSACTIONAL_MEM=y
5252
CONFIG_PPC_UV=y
@@ -340,3 +340,4 @@ CONFIG_KVM_BOOK3S_64_HV=m
340340
CONFIG_VHOST_NET=m
341341
CONFIG_PRINTK_TIME=y
342342
CONFIG_PRINTK_CALLER=y
343+
CONFIG_KALLSYMS_ALL=y

arch/powerpc/configs/ppc64_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y
5757
CONFIG_CPU_FREQ_GOV_USERSPACE=y
5858
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
5959
CONFIG_CPU_FREQ_PMAC64=y
60-
CONFIG_HZ_100=y
60+
CONFIG_HZ_1000=y
6161
CONFIG_PPC_TRANSACTIONAL_MEM=y
6262
CONFIG_KEXEC=y
6363
CONFIG_KEXEC_FILE=y
@@ -465,3 +465,4 @@ CONFIG_TEST_MEMCAT_P=m
465465
CONFIG_TEST_MEMINIT=m
466466
CONFIG_TEST_FREE_PAGES=m
467467
CONFIG_MEMTEST=y
468+
CONFIG_KALLSYMS_ALL=y

arch/powerpc/configs/ppc6xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ CONFIG_NET_SCH_DSMARK=m
252252
CONFIG_NET_SCH_NETEM=m
253253
CONFIG_NET_SCH_INGRESS=m
254254
CONFIG_NET_CLS_BASIC=m
255-
CONFIG_NET_CLS_TCINDEX=m
256255
CONFIG_NET_CLS_ROUTE4=m
257256
CONFIG_NET_CLS_FW=m
258257
CONFIG_NET_CLS_U32=m

arch/powerpc/include/asm/floppy.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,12 @@ static int hard_dma_setup(char *addr, unsigned long size, int mode, int io)
144144
bus_addr = 0;
145145
}
146146

147-
if (!bus_addr) /* need to map it */
147+
if (!bus_addr) { /* need to map it */
148148
bus_addr = dma_map_single(&isa_bridge_pcidev->dev, addr, size,
149149
dir);
150+
if (dma_mapping_error(&isa_bridge_pcidev->dev, bus_addr))
151+
return -ENOMEM;
152+
}
150153

151154
/* remember this one as prev */
152155
prev_addr = addr;

arch/powerpc/include/uapi/asm/eeh.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
/*
3-
* This program is free software; you can redistribute it and/or modify
4-
* it under the terms of the GNU General Public License, version 2, as
5-
* published by the Free Software Foundation.
6-
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10-
* GNU General Public License for more details.
11-
*
12-
* You should have received a copy of the GNU General Public License
13-
* along with this program; if not, write to the Free Software
14-
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15-
*
163
* Copyright IBM Corp. 2015
174
*
185
* Authors: Gavin Shan <[email protected]>

arch/powerpc/include/uapi/asm/kvm.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
/*
3-
* This program is free software; you can redistribute it and/or modify
4-
* it under the terms of the GNU General Public License, version 2, as
5-
* published by the Free Software Foundation.
6-
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10-
* GNU General Public License for more details.
11-
*
12-
* You should have received a copy of the GNU General Public License
13-
* along with this program; if not, write to the Free Software
14-
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15-
*
163
* Copyright IBM Corp. 2007
174
*
185
* Authors: Hollis Blanchard <[email protected]>

arch/powerpc/include/uapi/asm/kvm_para.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
/*
3-
* This program is free software; you can redistribute it and/or modify
4-
* it under the terms of the GNU General Public License, version 2, as
5-
* published by the Free Software Foundation.
6-
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10-
* GNU General Public License for more details.
11-
*
12-
* You should have received a copy of the GNU General Public License
13-
* along with this program; if not, write to the Free Software
14-
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15-
*
163
* Copyright IBM Corp. 2008
174
*
185
* Authors: Hollis Blanchard <[email protected]>

0 commit comments

Comments
 (0)