[git pull v2] habanalabs fixes for 5.1-rc3

From: Oded Gabbay
Date: Tue Mar 26 2019 - 04:13:42 EST


Hi Greg,

A couple of important fixes for habanalabs driver:

- Fix host crash upon resume after suspend
- Fix MMU related bugs which result in user's jobs getting stuck
- Fix race between user context cleanup and hard-reset which results in
host crash
- Fix sparse warning

Thanks,
Oded

The following changes since commit 8c2ffd9174779014c3fe1f96d9dc3641d9175f00:

Linux 5.1-rc2 (2019-03-24 14:02:26 -0700)

are available in the Git repository at:

git://people.freedesktop.org/~gabbayo/linux tags/misc-habanalabs-fixes-2019-03-26

for you to fetch changes up to 7c22278edd0a931c565a8511dfc1bc57ffbb9166:

habanalabs: cast to expected type (2019-03-03 10:23:29 +0200)

----------------------------------------------------------------
The following bug fixes are included in this tag:

- Fix host crash upon resume after suspend
- Fix MMU related bugs which result in user's jobs getting stuck
- Fix race between user context cleanup and hard-reset which results in
host crash
- Fix sparse warning

----------------------------------------------------------------
Oded Gabbay (3):
habanalabs: perform accounting for active CS
habanalabs: prevent host crash during suspend/resume
habanalabs: cast to expected type

Omer Shpigelman (4):
habanalabs: fix MMU number of pages calculation
habanalabs: fix bug when mapping very large memory area
habanalabs: complete user context cleanup before hard reset
habanalabs: fix mapping with page size bigger than 4KB

drivers/misc/habanalabs/command_submission.c | 6 +++
drivers/misc/habanalabs/debugfs.c | 7 +--
drivers/misc/habanalabs/device.c | 71 ++++++++++++++++++++++++++--
drivers/misc/habanalabs/goya/goya.c | 65 +------------------------
drivers/misc/habanalabs/habanalabs.h | 21 ++++----
drivers/misc/habanalabs/hw_queue.c | 5 +-
drivers/misc/habanalabs/memory.c | 38 ++++++++-------
drivers/misc/habanalabs/mmu.c | 6 ++-
8 files changed, 117 insertions(+), 102 deletions(-)