mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Move MC HAL to common
Move implementation of MC HAL to common/mc. Also bump gk20a implementation to gm20b. gk20a_mc_boot_0 was used via a HAL, but we have only one possible implementation. It also has to be anyway called directly to detect which HALs to assign, so make it a true common function. mc_gk20a_handle_intr_nonstall was also used only in os/linux/intr.c so move it there. JIRA NVGPU-954 Change-Id: I79aedc9158f90d578db0edc17b714617b52690ac Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813519 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
bf14c2a0fa
commit
7ac0b046a5
@@ -15,7 +15,6 @@
|
||||
#include <linux/irqreturn.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/mc_gk20a.h"
|
||||
|
||||
#include <nvgpu/atomic.h>
|
||||
#include <nvgpu/unit.h>
|
||||
@@ -107,6 +106,21 @@ irqreturn_t nvgpu_intr_nonstall(struct gk20a *g)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static void mc_gk20a_handle_intr_nonstall(struct gk20a *g, u32 ops)
|
||||
{
|
||||
bool semaphore_wakeup, post_events;
|
||||
|
||||
semaphore_wakeup =
|
||||
(((ops & GK20A_NONSTALL_OPS_WAKEUP_SEMAPHORE) != 0U) ?
|
||||
true : false);
|
||||
post_events = (((ops & GK20A_NONSTALL_OPS_POST_EVENTS) != 0U) ?
|
||||
true: false);
|
||||
|
||||
if (semaphore_wakeup) {
|
||||
g->ops.semaphore_wakeup(g, post_events);
|
||||
}
|
||||
}
|
||||
|
||||
void nvgpu_intr_nonstall_cb(struct work_struct *work)
|
||||
{
|
||||
struct nvgpu_os_linux *l =
|
||||
|
||||
Reference in New Issue
Block a user