Skip to content

Commit fd9879b

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
Pull powerpc updates from Michael Ellerman: "Here's a first pull request for powerpc updates for 3.18. The bulk of the additions are for the "cxl" driver, for IBM's Coherent Accelerator Processor Interface (CAPI). Most of it's in drivers/misc, which Greg & Arnd maintain, Greg said he was happy for us to take it through our tree. There's the usual minor cleanups and fixes, including a bit of noise in drivers from some of those. A bunch of updates to our EEH code, which has been getting more testing. Several nice speedups from Anton, including 20% in clear_page(). And a bunch of updates for freescale from Scott" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (130 commits) cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking cxl: Add documentation for userspace APIs cxl: Add driver to Kbuild and Makefiles cxl: Add userspace header file cxl: Driver code for powernv PCIe based cards for userspace access cxl: Add base builtin support powerpc/mm: Add hooks for cxl powerpc/opal: Add PHB to cxl mode call powerpc/mm: Add new hash_page_mm() powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts cxl: Add new header for call backs and structs powerpc/powernv: Split out set MSI IRQ chip code powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize powerpc/msi: Improve IRQ bitmap allocator powerpc/cell: Make spu_flush_all_slbs() generic powerpc/cell: Move data segment faulting code out of cell platform powerpc/cell: Move spu_handle_mm_fault() out of cell platform powerpc/pseries: Use new defines when calling H_SET_MODE powerpc: Update contact info in Documentation files powerpc/perf/hv-24x7: Simplify catalog_read() ...
2 parents 81ae31d + d53ba6b commit fd9879b

236 files changed

Lines changed: 8633 additions & 1566 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog
22
Date: February 2014
3-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
3+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
44
Description:
55
Provides access to the binary "24x7 catalog" provided by the
66
hypervisor on POWER7 and 8 systems. This catalog lists events
@@ -10,14 +10,14 @@ Description:
1010

1111
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_length
1212
Date: February 2014
13-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
13+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
1414
Description:
1515
A number equal to the length in bytes of the catalog. This is
1616
also extractable from the provided binary "catalog" sysfs entry.
1717

1818
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_version
1919
Date: February 2014
20-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
20+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
2121
Description:
2222
Exposes the "version" field of the 24x7 catalog. This is also
2323
extractable from the provided binary "catalog" sysfs entry.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
What: /sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
22
Date: February 2014
3-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
3+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
44
Description:
55
'0' if the hypervisor is configured to forbid access to event
66
counters being accumulated by other guests and to physical
@@ -9,35 +9,35 @@ Description:
99

1010
What: /sys/bus/event_source/devices/hv_gpci/interface/ga
1111
Date: February 2014
12-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
12+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
1313
Description:
1414
0 or 1. Indicates whether we have access to "GA" events (listed
1515
in arch/powerpc/perf/hv-gpci.h).
1616

1717
What: /sys/bus/event_source/devices/hv_gpci/interface/expanded
1818
Date: February 2014
19-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
19+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
2020
Description:
2121
0 or 1. Indicates whether we have access to "EXPANDED" events (listed
2222
in arch/powerpc/perf/hv-gpci.h).
2323

2424
What: /sys/bus/event_source/devices/hv_gpci/interface/lab
2525
Date: February 2014
26-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
26+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
2727
Description:
2828
0 or 1. Indicates whether we have access to "LAB" events (listed
2929
in arch/powerpc/perf/hv-gpci.h).
3030

3131
What: /sys/bus/event_source/devices/hv_gpci/interface/version
3232
Date: February 2014
33-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
33+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
3434
Description:
3535
A number indicating the version of the gpci interface that the
3636
hypervisor reports supporting.
3737

3838
What: /sys/bus/event_source/devices/hv_gpci/interface/kernel_version
3939
Date: February 2014
40-
Contact: Cody P Schafer <cody@linux.vnet.ibm.com>
40+
Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4141
Description:
4242
A number indicating the latest version of the gpci interface
4343
that the kernel is aware of.
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
Slave contexts (eg. /sys/class/cxl/afu0.0s):
2+
3+
What: /sys/class/cxl/<afu>/irqs_max
4+
Date: September 2014
5+
Contact: linuxppc-dev@lists.ozlabs.org
6+
Description: read/write
7+
Decimal value of maximum number of interrupts that can be
8+
requested by userspace. The default on probe is the maximum
9+
that hardware can support (eg. 2037). Write values will limit
10+
userspace applications to that many userspace interrupts. Must
11+
be >= irqs_min.
12+
13+
What: /sys/class/cxl/<afu>/irqs_min
14+
Date: September 2014
15+
Contact: linuxppc-dev@lists.ozlabs.org
16+
Description: read only
17+
Decimal value of the minimum number of interrupts that
18+
userspace must request on a CXL_START_WORK ioctl. Userspace may
19+
omit the num_interrupts field in the START_WORK IOCTL to get
20+
this minimum automatically.
21+
22+
What: /sys/class/cxl/<afu>/mmio_size
23+
Date: September 2014
24+
Contact: linuxppc-dev@lists.ozlabs.org
25+
Description: read only
26+
Decimal value of the size of the MMIO space that may be mmaped
27+
by userspace.
28+
29+
What: /sys/class/cxl/<afu>/modes_supported
30+
Date: September 2014
31+
Contact: linuxppc-dev@lists.ozlabs.org
32+
Description: read only
33+
List of the modes this AFU supports. One per line.
34+
Valid entries are: "dedicated_process" and "afu_directed"
35+
36+
What: /sys/class/cxl/<afu>/mode
37+
Date: September 2014
38+
Contact: linuxppc-dev@lists.ozlabs.org
39+
Description: read/write
40+
The current mode the AFU is using. Will be one of the modes
41+
given in modes_supported. Writing will change the mode
42+
provided that no user contexts are attached.
43+
44+
45+
What: /sys/class/cxl/<afu>/prefault_mode
46+
Date: September 2014
47+
Contact: linuxppc-dev@lists.ozlabs.org
48+
Description: read/write
49+
Set the mode for prefaulting in segments into the segment table
50+
when performing the START_WORK ioctl. Possible values:
51+
none: No prefaulting (default)
52+
work_element_descriptor: Treat the work element
53+
descriptor as an effective address and
54+
prefault what it points to.
55+
all: all segments process calling START_WORK maps.
56+
57+
What: /sys/class/cxl/<afu>/reset
58+
Date: September 2014
59+
Contact: linuxppc-dev@lists.ozlabs.org
60+
Description: write only
61+
Writing 1 here will reset the AFU provided there are not
62+
contexts active on the AFU.
63+
64+
What: /sys/class/cxl/<afu>/api_version
65+
Date: September 2014
66+
Contact: linuxppc-dev@lists.ozlabs.org
67+
Description: read only
68+
Decimal value of the current version of the kernel/user API.
69+
70+
What: /sys/class/cxl/<afu>/api_version_com
71+
Date: September 2014
72+
Contact: linuxppc-dev@lists.ozlabs.org
73+
Description: read only
74+
Decimal value of the the lowest version of the userspace API
75+
this this kernel supports.
76+
77+
78+
79+
Master contexts (eg. /sys/class/cxl/afu0.0m)
80+
81+
What: /sys/class/cxl/<afu>m/mmio_size
82+
Date: September 2014
83+
Contact: linuxppc-dev@lists.ozlabs.org
84+
Description: read only
85+
Decimal value of the size of the MMIO space that may be mmaped
86+
by userspace. This includes all slave contexts space also.
87+
88+
What: /sys/class/cxl/<afu>m/pp_mmio_len
89+
Date: September 2014
90+
Contact: linuxppc-dev@lists.ozlabs.org
91+
Description: read only
92+
Decimal value of the Per Process MMIO space length.
93+
94+
What: /sys/class/cxl/<afu>m/pp_mmio_off
95+
Date: September 2014
96+
Contact: linuxppc-dev@lists.ozlabs.org
97+
Description: read only
98+
Decimal value of the Per Process MMIO space offset.
99+
100+
101+
Card info (eg. /sys/class/cxl/card0)
102+
103+
What: /sys/class/cxl/<card>/caia_version
104+
Date: September 2014
105+
Contact: linuxppc-dev@lists.ozlabs.org
106+
Description: read only
107+
Identifies the CAIA Version the card implements.
108+
109+
What: /sys/class/cxl/<card>/psl_version
110+
Date: September 2014
111+
Contact: linuxppc-dev@lists.ozlabs.org
112+
Description: read only
113+
Identifies the revision level of the PSL.
114+
115+
What: /sys/class/cxl/<card>/base_image
116+
Date: September 2014
117+
Contact: linuxppc-dev@lists.ozlabs.org
118+
Description: read only
119+
Identifies the revision level of the base image for devices
120+
that support loadable PSLs. For FPGAs this field identifies
121+
the image contained in the on-adapter flash which is loaded
122+
during the initial program load.
123+
124+
What: /sys/class/cxl/<card>/image_loaded
125+
Date: September 2014
126+
Contact: linuxppc-dev@lists.ozlabs.org
127+
Description: read only
128+
Will return "user" or "factory" depending on the image loaded
129+
onto the card.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* Bus Enumeration by Freescale PCI-X Agent
2+
3+
Typically any Freescale PCI-X bridge hardware strapped into Agent mode
4+
is prevented from enumerating the bus. The PrPMC form-factor requires
5+
all mezzanines to be PCI-X Agents, but one per system may still
6+
enumerate the bus.
7+
8+
The property defined below will allow a PCI-X bridge to be used for bus
9+
enumeration despite being strapped into Agent mode.
10+
11+
Required properties:
12+
- fsl,pci-agent-force-enum : There is no value associated with this
13+
property. The property itself is treated as a boolean.
14+
15+
Example:
16+
17+
/* PCI-X bridge known to be PrPMC Monarch */
18+
pci0: pci@ef008000 {
19+
fsl,pci-agent-force-enum;
20+
#interrupt-cells = <1>;
21+
#size-cells = <2>;
22+
#address-cells = <3>;
23+
compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
24+
device_type = "pci";
25+
...
26+
...
27+
};

‎Documentation/ioctl/ioctl-number.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ Code Seq#(hex) Include File Comments
313313
0xB1 00-1F PPPoX <mailto:mostrows@styx.uwaterloo.ca>
314314
0xB3 00 linux/mmc/ioctl.h
315315
0xC0 00-0F linux/usb/iowarrior.h
316+
0xCA 00-0F uapi/misc/cxl.h
316317
0xCB 00-1F CBM serial IEC bus in development:
317318
<mailto:michael.klein@puffin.lb.shuttle.de>
318319
0xCD 01 linux/reiserfs_fs.h

‎Documentation/powerpc/00-INDEX‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ bootwrapper.txt
1111
cpu_features.txt
1212
- info on how we support a variety of CPUs with minimal compile-time
1313
options.
14+
cxl.txt
15+
- Overview of the CXL driver.
1416
eeh-pci-error-recovery.txt
1517
- info on PCI Bus EEH Error Recovery
1618
firmware-assisted-dump.txt

0 commit comments

Comments
 (0)