• Vaibhav Jain's avatar
    cxl: Disable prefault_mode in Radix mode · c9debbd1
    Vaibhav Jain authored
    commit b6c84ba2 upstream.
    
    Currently we see a kernel-oops reported on Power-9 while attaching a
    context to an AFU, with radix-mode and sysfs attr 'prefault_mode' set
    to anything other than 'none'. The backtrace of the oops is of this
    form:
    
      Unable to handle kernel paging request for data at address 0x00000080
      Faulting instruction address: 0xc00800000bcf3b20
      cpu 0x1: Vector: 300 (Data Access) at [c00000037f003800]
          pc: c00800000bcf3b20: cxl_load_segment+0x178/0x290 [cxl]
          lr: c00800000bcf39f0: cxl_load_segment+0x48/0x290 [cxl]
          sp: c00000037f003a80
         msr: 9000000000009033
         dar: 80
       dsisr: 40000000
        current = 0xc00000037f280000
        paca    = 0xc0000003ffffe600   softe: 3        irq_happened: 0x01
          pid   = 3529, comm = afp_no_int
      <snip>
      cxl_prefault+0xfc/0x248 [cxl]
      process_element_entry_psl9+0xd8/0x1a0 [cxl]
      cxl_attach_dedicated_process_psl9+0x44/0x130 [cxl]
      native_attach_process+0xc0/0x1...
    c9debbd1
sysfs.c 18.2 KB