Searched refs:guc_fw (Results 1 - 3 of 3) sorted by relevance
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | intel_guc_loader.c | 237 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; guc_ucode_xfer_dma() local 238 struct drm_i915_gem_object *fw_obj = guc_fw->guc_fw_obj; guc_ucode_xfer_dma() 245 offset = ucode_size = guc_fw->guc_fw_size - UOS_RSA_SIG_SIZE; guc_ucode_xfer_dma() 296 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; guc_ucode_xfer() local 300 ret = i915_gem_object_set_to_gtt_domain(guc_fw->guc_fw_obj, false); guc_ucode_xfer() 306 ret = i915_gem_obj_ggtt_pin(guc_fw->guc_fw_obj, 0, 0); guc_ucode_xfer() 358 i915_gem_object_ggtt_unpin(guc_fw->guc_fw_obj); guc_ucode_xfer() 378 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; intel_guc_ucode_load() local 382 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status), intel_guc_ucode_load() 383 intel_guc_fw_status_repr(guc_fw->guc_fw_load_status)); intel_guc_ucode_load() 387 if (guc_fw->guc_fw_fetch_status == GUC_FIRMWARE_NONE) intel_guc_ucode_load() 390 if (guc_fw->guc_fw_fetch_status == GUC_FIRMWARE_SUCCESS && intel_guc_ucode_load() 391 guc_fw->guc_fw_load_status == GUC_FIRMWARE_FAIL) intel_guc_ucode_load() 394 guc_fw->guc_fw_load_status = GUC_FIRMWARE_PENDING; intel_guc_ucode_load() 397 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status)); intel_guc_ucode_load() 399 switch (guc_fw->guc_fw_fetch_status) { intel_guc_ucode_load() 410 guc_fw->guc_fw_path, intel_guc_ucode_load() 411 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status), intel_guc_ucode_load() 412 guc_fw->guc_fw_fetch_status); intel_guc_ucode_load() 428 guc_fw->guc_fw_load_status = GUC_FIRMWARE_SUCCESS; intel_guc_ucode_load() 431 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status), intel_guc_ucode_load() 432 intel_guc_fw_status_repr(guc_fw->guc_fw_load_status)); intel_guc_ucode_load() 447 if (guc_fw->guc_fw_load_status == GUC_FIRMWARE_PENDING) intel_guc_ucode_load() 448 guc_fw->guc_fw_load_status = GUC_FIRMWARE_FAIL; intel_guc_ucode_load() 456 static void guc_fw_fetch(struct drm_device *dev, struct intel_guc_fw *guc_fw) guc_fw_fetch() argument 467 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status)); guc_fw_fetch() 469 err = request_firmware(&fw, guc_fw->guc_fw_path, &dev->pdev->dev); guc_fw_fetch() 476 guc_fw->guc_fw_path, fw); guc_fw_fetch() 491 guc_fw->guc_fw_major_found = *(u16 *)(css_header + UOS_VER_MAJOR_OFFSET); guc_fw_fetch() 492 guc_fw->guc_fw_minor_found = *(u16 *)(css_header + UOS_VER_MINOR_OFFSET); guc_fw_fetch() 494 if (guc_fw->guc_fw_major_found != guc_fw->guc_fw_major_wanted || guc_fw_fetch() 495 guc_fw->guc_fw_minor_found < guc_fw->guc_fw_minor_wanted) { guc_fw_fetch() 497 guc_fw->guc_fw_major_found, guc_fw->guc_fw_minor_found, guc_fw_fetch() 498 guc_fw->guc_fw_major_wanted, guc_fw->guc_fw_minor_wanted); guc_fw_fetch() 504 guc_fw->guc_fw_major_found, guc_fw->guc_fw_minor_found, guc_fw_fetch() 505 guc_fw->guc_fw_major_wanted, guc_fw->guc_fw_minor_wanted); guc_fw_fetch() 515 guc_fw->guc_fw_obj = obj; guc_fw_fetch() 516 guc_fw->guc_fw_size = fw->size; guc_fw_fetch() 519 guc_fw->guc_fw_obj); guc_fw_fetch() 522 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_SUCCESS; guc_fw_fetch() 527 err, fw, guc_fw->guc_fw_obj); guc_fw_fetch() 529 guc_fw->guc_fw_path, err); guc_fw_fetch() 531 obj = guc_fw->guc_fw_obj; guc_fw_fetch() 534 guc_fw->guc_fw_obj = NULL; guc_fw_fetch() 537 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_FAIL; guc_fw_fetch() 552 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; intel_guc_ucode_init() local 562 guc_fw->guc_fw_major_wanted = 4; intel_guc_ucode_init() 563 guc_fw->guc_fw_minor_wanted = 3; intel_guc_ucode_init() 569 guc_fw->guc_dev = dev; intel_guc_ucode_init() 570 guc_fw->guc_fw_path = fw_path; intel_guc_ucode_init() 571 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_NONE; intel_guc_ucode_init() 572 guc_fw->guc_fw_load_status = GUC_FIRMWARE_NONE; intel_guc_ucode_init() 579 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_FAIL; intel_guc_ucode_init() 583 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_PENDING; intel_guc_ucode_init() 585 guc_fw_fetch(dev, guc_fw); intel_guc_ucode_init() 596 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; intel_guc_ucode_fini() local 602 if (guc_fw->guc_fw_obj) intel_guc_ucode_fini() 603 drm_gem_object_unreference(&guc_fw->guc_fw_obj->base); intel_guc_ucode_fini() 604 guc_fw->guc_fw_obj = NULL; intel_guc_ucode_fini() 607 guc_fw->guc_fw_fetch_status = GUC_FIRMWARE_NONE; intel_guc_ucode_fini()
|
H A D | intel_guc.h | 82 struct intel_guc_fw guc_fw; member in struct:intel_guc
|
H A D | i915_debugfs.c | 2388 struct intel_guc_fw *guc_fw = &dev_priv->guc.guc_fw; i915_guc_load_status_info() local 2396 guc_fw->guc_fw_path); i915_guc_load_status_info() 2398 intel_guc_fw_status_repr(guc_fw->guc_fw_fetch_status)); i915_guc_load_status_info() 2400 intel_guc_fw_status_repr(guc_fw->guc_fw_load_status)); i915_guc_load_status_info() 2402 guc_fw->guc_fw_major_wanted, guc_fw->guc_fw_minor_wanted); i915_guc_load_status_info() 2404 guc_fw->guc_fw_major_found, guc_fw->guc_fw_minor_found); i915_guc_load_status_info()
|
Completed in 130 milliseconds