Philippe Bergheaud | 49fd644 | 2014-12-12 11:28:53 +0100 | [diff] [blame] | 1 | Note: Attributes that are shared between devices are stored in the directory |
| 2 | pointed to by the symlink device/. |
| 3 | Example: The real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is |
| 4 | /sys/class/cxl/afu0.0s/device/irqs_max, i.e. /sys/class/cxl/afu0.0/irqs_max. |
| 5 | |
| 6 | |
Ian Munsie | a9282d0 | 2014-10-08 19:55:05 +1100 | [diff] [blame] | 7 | Slave contexts (eg. /sys/class/cxl/afu0.0s): |
| 8 | |
| 9 | What: /sys/class/cxl/<afu>/irqs_max |
| 10 | Date: September 2014 |
| 11 | Contact: linuxppc-dev@lists.ozlabs.org |
| 12 | Description: read/write |
| 13 | Decimal value of maximum number of interrupts that can be |
| 14 | requested by userspace. The default on probe is the maximum |
| 15 | that hardware can support (eg. 2037). Write values will limit |
| 16 | userspace applications to that many userspace interrupts. Must |
| 17 | be >= irqs_min. |
| 18 | |
| 19 | What: /sys/class/cxl/<afu>/irqs_min |
| 20 | Date: September 2014 |
| 21 | Contact: linuxppc-dev@lists.ozlabs.org |
| 22 | Description: read only |
| 23 | Decimal value of the minimum number of interrupts that |
| 24 | userspace must request on a CXL_START_WORK ioctl. Userspace may |
| 25 | omit the num_interrupts field in the START_WORK IOCTL to get |
| 26 | this minimum automatically. |
| 27 | |
| 28 | What: /sys/class/cxl/<afu>/mmio_size |
| 29 | Date: September 2014 |
| 30 | Contact: linuxppc-dev@lists.ozlabs.org |
| 31 | Description: read only |
| 32 | Decimal value of the size of the MMIO space that may be mmaped |
| 33 | by userspace. |
| 34 | |
| 35 | What: /sys/class/cxl/<afu>/modes_supported |
| 36 | Date: September 2014 |
| 37 | Contact: linuxppc-dev@lists.ozlabs.org |
| 38 | Description: read only |
| 39 | List of the modes this AFU supports. One per line. |
| 40 | Valid entries are: "dedicated_process" and "afu_directed" |
| 41 | |
| 42 | What: /sys/class/cxl/<afu>/mode |
| 43 | Date: September 2014 |
| 44 | Contact: linuxppc-dev@lists.ozlabs.org |
| 45 | Description: read/write |
| 46 | The current mode the AFU is using. Will be one of the modes |
| 47 | given in modes_supported. Writing will change the mode |
| 48 | provided that no user contexts are attached. |
| 49 | |
| 50 | |
| 51 | What: /sys/class/cxl/<afu>/prefault_mode |
| 52 | Date: September 2014 |
| 53 | Contact: linuxppc-dev@lists.ozlabs.org |
| 54 | Description: read/write |
| 55 | Set the mode for prefaulting in segments into the segment table |
| 56 | when performing the START_WORK ioctl. Possible values: |
| 57 | none: No prefaulting (default) |
| 58 | work_element_descriptor: Treat the work element |
| 59 | descriptor as an effective address and |
| 60 | prefault what it points to. |
| 61 | all: all segments process calling START_WORK maps. |
| 62 | |
| 63 | What: /sys/class/cxl/<afu>/reset |
| 64 | Date: September 2014 |
| 65 | Contact: linuxppc-dev@lists.ozlabs.org |
| 66 | Description: write only |
| 67 | Writing 1 here will reset the AFU provided there are not |
| 68 | contexts active on the AFU. |
| 69 | |
| 70 | What: /sys/class/cxl/<afu>/api_version |
| 71 | Date: September 2014 |
| 72 | Contact: linuxppc-dev@lists.ozlabs.org |
| 73 | Description: read only |
| 74 | Decimal value of the current version of the kernel/user API. |
| 75 | |
Philippe Bergheaud | 49fd644 | 2014-12-12 11:28:53 +0100 | [diff] [blame] | 76 | What: /sys/class/cxl/<afu>/api_version_compatible |
Ian Munsie | a9282d0 | 2014-10-08 19:55:05 +1100 | [diff] [blame] | 77 | Date: September 2014 |
| 78 | Contact: linuxppc-dev@lists.ozlabs.org |
| 79 | Description: read only |
| 80 | Decimal value of the the lowest version of the userspace API |
| 81 | this this kernel supports. |
| 82 | |
| 83 | |
Ian Munsie | a9282d0 | 2014-10-08 19:55:05 +1100 | [diff] [blame] | 84 | Master contexts (eg. /sys/class/cxl/afu0.0m) |
| 85 | |
| 86 | What: /sys/class/cxl/<afu>m/mmio_size |
| 87 | Date: September 2014 |
| 88 | Contact: linuxppc-dev@lists.ozlabs.org |
| 89 | Description: read only |
| 90 | Decimal value of the size of the MMIO space that may be mmaped |
| 91 | by userspace. This includes all slave contexts space also. |
| 92 | |
| 93 | What: /sys/class/cxl/<afu>m/pp_mmio_len |
| 94 | Date: September 2014 |
| 95 | Contact: linuxppc-dev@lists.ozlabs.org |
| 96 | Description: read only |
| 97 | Decimal value of the Per Process MMIO space length. |
| 98 | |
| 99 | What: /sys/class/cxl/<afu>m/pp_mmio_off |
| 100 | Date: September 2014 |
| 101 | Contact: linuxppc-dev@lists.ozlabs.org |
| 102 | Description: read only |
| 103 | Decimal value of the Per Process MMIO space offset. |
| 104 | |
| 105 | |
| 106 | Card info (eg. /sys/class/cxl/card0) |
| 107 | |
| 108 | What: /sys/class/cxl/<card>/caia_version |
| 109 | Date: September 2014 |
| 110 | Contact: linuxppc-dev@lists.ozlabs.org |
| 111 | Description: read only |
| 112 | Identifies the CAIA Version the card implements. |
| 113 | |
Philippe Bergheaud | 49fd644 | 2014-12-12 11:28:53 +0100 | [diff] [blame] | 114 | What: /sys/class/cxl/<card>/psl_revision |
Ian Munsie | a9282d0 | 2014-10-08 19:55:05 +1100 | [diff] [blame] | 115 | Date: September 2014 |
| 116 | Contact: linuxppc-dev@lists.ozlabs.org |
| 117 | Description: read only |
| 118 | Identifies the revision level of the PSL. |
| 119 | |
| 120 | What: /sys/class/cxl/<card>/base_image |
| 121 | Date: September 2014 |
| 122 | Contact: linuxppc-dev@lists.ozlabs.org |
| 123 | Description: read only |
| 124 | Identifies the revision level of the base image for devices |
| 125 | that support loadable PSLs. For FPGAs this field identifies |
| 126 | the image contained in the on-adapter flash which is loaded |
| 127 | during the initial program load. |
| 128 | |
| 129 | What: /sys/class/cxl/<card>/image_loaded |
| 130 | Date: September 2014 |
| 131 | Contact: linuxppc-dev@lists.ozlabs.org |
| 132 | Description: read only |
| 133 | Will return "user" or "factory" depending on the image loaded |
| 134 | onto the card. |
Ryan Grimm | 95bc11b | 2015-01-19 11:52:49 -0600 | [diff] [blame^] | 135 | |
| 136 | What: /sys/class/cxl/<card>/load_image_on_perst |
| 137 | Date: December 2014 |
| 138 | Contact: linuxppc-dev@lists.ozlabs.org |
| 139 | Description: read/write |
| 140 | Valid entries are "none", "user", and "factory". |
| 141 | "none" means PERST will not cause image to be loaded to the |
| 142 | card. A power cycle is required to load the image. |
| 143 | "none" could be useful for debugging because the trace arrays |
| 144 | are preserved. |
| 145 | "user" and "factory" means PERST will cause either the user or |
| 146 | user or factory image to be loaded. |
| 147 | Default is to reload on PERST whichever image the card has |
| 148 | loaded. |