summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2020-12-09 19:50:46 +0200
committerOded Gabbay <ogabbay@kernel.org>2020-12-28 08:47:39 +0200
commit377182a3cc5ae6cc17fb04d06864c975f9f71c18 (patch)
treed10bd352b17ce001d9e0018dac5fc69eb7378fb6 /include/uapi
parent90ffe170a390d5a620f8fe66758514e369e85d24 (diff)
downloadlwn-377182a3cc5ae6cc17fb04d06864c975f9f71c18.tar.gz
lwn-377182a3cc5ae6cc17fb04d06864c975f9f71c18.zip
habanalabs: adjust pci controller init to new firmware
When the firmware security is enabled, the pcie_aux_dbi_reg_addr register in the PCI controller is blocked. Therefore, ignore the result of writing to this register and assume it worked. Also remove the prints on errors in the internal ELBI write function. If the security is enabled, the firmware is responsible for setting this register correctly so we won't have any problem. If the security is disabled, the write will work (unless something is totally broken at the PCI level and then the whole sequence will fail). In addition, remove a write to register pcie_aux_dbi_reg_addr+4, which was never actually needed. Moreover, PCIE_DBI registers are blocked to access from host when firmware security is enabled. Use a different register to flush the writes. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions