search for: nvkm_falcon_v1_func

Displaying 5 results from an estimated 5 matches for "nvkm_falcon_v1_func".

2016 Dec 06
0
[PATCH 3/8] core: add falcon library functions
...gt;addr + 0x108); + falcon->code.limit = (reg & 0x1ff) << 8; + falcon->data.limit = (reg & 0x3fe00) >> 1; + + reg = nvkm_rd32(device, falcon->addr + 0xc08); + falcon->debug = (reg >> 20) & 0x1; + + if (falcon->secret == 0) + falcon->func = &nvkm_falcon_v1_func; + else + falcon->func = &nvkm_falcon_v1_secure_func; + + list_add(&falcon->head, &device->falcons); + } else if (falcon->subdev) { + nvkm_error(subdev, "%s falcon already acquired by %s!\n", + nvkm_falcon_name[id], + nvkm_subdev_name[falcon->subd...
2016 Dec 13
0
[PATCH v2 4/15] pmu: instanciate the falcon in PMU device
...drm/nouveau/nvkm/subdev/pmu/base.c @@ -139,5 +139,9 @@ nvkm_pmu_new_(const struct nvkm_pmu_func *func, struct nvkm_device *device, pmu->func = func; INIT_WORK(&pmu->recv.work, nvkm_pmu_recv); init_waitqueue_head(&pmu->recv.wait); + + nvkm_falcon_ctor(&pmu->subdev, &nvkm_falcon_v1_func, "PMU", 0x10a000, + &pmu->falcon); + return 0; } -- git-series 0.8.10
2016 Dec 13
0
[PATCH v2 5/15] pmu: add nvkm_pmu_ctor() function
...rn -ENOMEM; nvkm_subdev_ctor(&nvkm_pmu, device, index, &pmu->subdev); pmu->func = func; INIT_WORK(&pmu->recv.work, nvkm_pmu_recv); @@ -143,5 +140,17 @@ nvkm_pmu_new_(const struct nvkm_pmu_func *func, struct nvkm_device *device, nvkm_falcon_ctor(&pmu->subdev, &nvkm_falcon_v1_func, "PMU", 0x10a000, &pmu->falcon); +} + +int +nvkm_pmu_new_(const struct nvkm_pmu_func *func, struct nvkm_device *device, + int index, struct nvkm_pmu **ppmu) +{ + struct nvkm_pmu *pmu; + if (!(pmu = *ppmu = kzalloc(sizeof(*pmu), GFP_KERNEL))) + return -ENOMEM; + + nvkm...
2016 Dec 06
9
[PATCH 0/8] Falcon library
This was the first step of the secure boot refactoring - as Ben asked for some fixes, I now submit it as its own series to make it easier to review (and also because rebasing secure boot on top of this takes time and I don't want to do it until this is validated!). This series attempts to factorize the duplicate falcon-related code into a single library, using the existing nvkm_falcon
2016 Dec 13
15
[PATCH v2 0/15] Falcon library
This was the first step of the secure boot refactoring - as Ben asked for some fixes, I now submit it as its own series to make it easier to review (and also because rebasing secure boot on top of this takes time and I don't want to do it until this is validated!). This series attempts to factorize the duplicate falcon-related code into a single library, using the existing nvkm_falcon