From: jsg Date: Thu, 21 Mar 2024 05:06:42 +0000 (+0000) Subject: unstub intel_uc_fw_copy_rsa() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=df7185d0bd4cdbd532d72e947d7a251791b5e676;p=openbsd unstub intel_uc_fw_copy_rsa() --- diff --git a/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c b/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c index aad62dfe90b..15cf21b827e 100644 --- a/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c +++ b/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c @@ -1314,9 +1314,6 @@ void intel_uc_fw_cleanup_fetch(struct intel_uc_fw *uc_fw) */ size_t intel_uc_fw_copy_rsa(struct intel_uc_fw *uc_fw, void *dst, u32 max_len) { - STUB(); - return 0; -#ifdef notyet struct intel_memory_region *mr = uc_fw->obj->mm.region; u32 size = min_t(u32, uc_fw->rsa_size, max_len); u32 offset = uc_fw->dma_start_offset + sizeof(struct uc_css_header) + uc_fw->ucode_size; @@ -1330,7 +1327,7 @@ size_t intel_uc_fw_copy_rsa(struct intel_uc_fw *uc_fw, void *dst, u32 max_len) idx = offset >> PAGE_SHIFT; offset = offset_in_page(offset); if (i915_gem_object_has_struct_page(uc_fw->obj)) { - struct page *page; + struct vm_page *page; for_each_sgt_page(page, iter, uc_fw->obj->mm.pages) { u32 len = min_t(u32, size, PAGE_SIZE - offset); @@ -1379,7 +1376,6 @@ size_t intel_uc_fw_copy_rsa(struct intel_uc_fw *uc_fw, void *dst, u32 max_len) } return count; -#endif } /**