forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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() ...
- Loading branch information
Showing
236 changed files
with
8,633 additions
and
1,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
Provides access to the binary "24x7 catalog" provided by the | ||
hypervisor on POWER7 and 8 systems. This catalog lists events | ||
|
@@ -10,14 +10,14 @@ Description: | |
|
||
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_length | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
A number equal to the length in bytes of the catalog. This is | ||
also extractable from the provided binary "catalog" sysfs entry. | ||
|
||
What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_version | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
Exposes the "version" field of the 24x7 catalog. This is also | ||
extractable from the provided binary "catalog" sysfs entry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
What: /sys/bus/event_source/devices/hv_gpci/interface/collect_privileged | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
'0' if the hypervisor is configured to forbid access to event | ||
counters being accumulated by other guests and to physical | ||
|
@@ -9,35 +9,35 @@ Description: | |
|
||
What: /sys/bus/event_source/devices/hv_gpci/interface/ga | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
0 or 1. Indicates whether we have access to "GA" events (listed | ||
in arch/powerpc/perf/hv-gpci.h). | ||
|
||
What: /sys/bus/event_source/devices/hv_gpci/interface/expanded | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
0 or 1. Indicates whether we have access to "EXPANDED" events (listed | ||
in arch/powerpc/perf/hv-gpci.h). | ||
|
||
What: /sys/bus/event_source/devices/hv_gpci/interface/lab | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
0 or 1. Indicates whether we have access to "LAB" events (listed | ||
in arch/powerpc/perf/hv-gpci.h). | ||
|
||
What: /sys/bus/event_source/devices/hv_gpci/interface/version | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
A number indicating the version of the gpci interface that the | ||
hypervisor reports supporting. | ||
|
||
What: /sys/bus/event_source/devices/hv_gpci/interface/kernel_version | ||
Date: February 2014 | ||
Contact: Cody P Schafer <[email protected]> | ||
Contact: Linux on PowerPC Developer List <[email protected]> | ||
Description: | ||
A number indicating the latest version of the gpci interface | ||
that the kernel is aware of. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
Slave contexts (eg. /sys/class/cxl/afu0.0s): | ||
|
||
What: /sys/class/cxl/<afu>/irqs_max | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read/write | ||
Decimal value of maximum number of interrupts that can be | ||
requested by userspace. The default on probe is the maximum | ||
that hardware can support (eg. 2037). Write values will limit | ||
userspace applications to that many userspace interrupts. Must | ||
be >= irqs_min. | ||
|
||
What: /sys/class/cxl/<afu>/irqs_min | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the minimum number of interrupts that | ||
userspace must request on a CXL_START_WORK ioctl. Userspace may | ||
omit the num_interrupts field in the START_WORK IOCTL to get | ||
this minimum automatically. | ||
|
||
What: /sys/class/cxl/<afu>/mmio_size | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the size of the MMIO space that may be mmaped | ||
by userspace. | ||
|
||
What: /sys/class/cxl/<afu>/modes_supported | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
List of the modes this AFU supports. One per line. | ||
Valid entries are: "dedicated_process" and "afu_directed" | ||
|
||
What: /sys/class/cxl/<afu>/mode | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read/write | ||
The current mode the AFU is using. Will be one of the modes | ||
given in modes_supported. Writing will change the mode | ||
provided that no user contexts are attached. | ||
|
||
|
||
What: /sys/class/cxl/<afu>/prefault_mode | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read/write | ||
Set the mode for prefaulting in segments into the segment table | ||
when performing the START_WORK ioctl. Possible values: | ||
none: No prefaulting (default) | ||
work_element_descriptor: Treat the work element | ||
descriptor as an effective address and | ||
prefault what it points to. | ||
all: all segments process calling START_WORK maps. | ||
|
||
What: /sys/class/cxl/<afu>/reset | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: write only | ||
Writing 1 here will reset the AFU provided there are not | ||
contexts active on the AFU. | ||
|
||
What: /sys/class/cxl/<afu>/api_version | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the current version of the kernel/user API. | ||
|
||
What: /sys/class/cxl/<afu>/api_version_com | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the the lowest version of the userspace API | ||
this this kernel supports. | ||
|
||
|
||
|
||
Master contexts (eg. /sys/class/cxl/afu0.0m) | ||
|
||
What: /sys/class/cxl/<afu>m/mmio_size | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the size of the MMIO space that may be mmaped | ||
by userspace. This includes all slave contexts space also. | ||
|
||
What: /sys/class/cxl/<afu>m/pp_mmio_len | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the Per Process MMIO space length. | ||
|
||
What: /sys/class/cxl/<afu>m/pp_mmio_off | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Decimal value of the Per Process MMIO space offset. | ||
|
||
|
||
Card info (eg. /sys/class/cxl/card0) | ||
|
||
What: /sys/class/cxl/<card>/caia_version | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Identifies the CAIA Version the card implements. | ||
|
||
What: /sys/class/cxl/<card>/psl_version | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Identifies the revision level of the PSL. | ||
|
||
What: /sys/class/cxl/<card>/base_image | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Identifies the revision level of the base image for devices | ||
that support loadable PSLs. For FPGAs this field identifies | ||
the image contained in the on-adapter flash which is loaded | ||
during the initial program load. | ||
|
||
What: /sys/class/cxl/<card>/image_loaded | ||
Date: September 2014 | ||
Contact: [email protected] | ||
Description: read only | ||
Will return "user" or "factory" depending on the image loaded | ||
onto the card. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* Bus Enumeration by Freescale PCI-X Agent | ||
|
||
Typically any Freescale PCI-X bridge hardware strapped into Agent mode | ||
is prevented from enumerating the bus. The PrPMC form-factor requires | ||
all mezzanines to be PCI-X Agents, but one per system may still | ||
enumerate the bus. | ||
|
||
The property defined below will allow a PCI-X bridge to be used for bus | ||
enumeration despite being strapped into Agent mode. | ||
|
||
Required properties: | ||
- fsl,pci-agent-force-enum : There is no value associated with this | ||
property. The property itself is treated as a boolean. | ||
|
||
Example: | ||
|
||
/* PCI-X bridge known to be PrPMC Monarch */ | ||
pci0: pci@ef008000 { | ||
fsl,pci-agent-force-enum; | ||
#interrupt-cells = <1>; | ||
#size-cells = <2>; | ||
#address-cells = <3>; | ||
compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci"; | ||
device_type = "pci"; | ||
... | ||
... | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,6 +313,7 @@ Code Seq#(hex) Include File Comments | |
0xB1 00-1F PPPoX <mailto:[email protected]> | ||
0xB3 00 linux/mmc/ioctl.h | ||
0xC0 00-0F linux/usb/iowarrior.h | ||
0xCA 00-0F uapi/misc/cxl.h | ||
0xCB 00-1F CBM serial IEC bus in development: | ||
<mailto:[email protected]> | ||
0xCD 01 linux/reiserfs_fs.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.