cvp.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #include <linux/debugfs.h>
  7. #include <linux/dma-mapping.h>
  8. #include <linux/init.h>
  9. #include <linux/ioctl.h>
  10. #include <linux/list.h>
  11. #include <linux/module.h>
  12. #include <linux/of_platform.h>
  13. #include <linux/platform_device.h>
  14. #include <linux/slab.h>
  15. #include <linux/types.h>
  16. #include <linux/version.h>
  17. #include <linux/io.h>
  18. #include "msm_cvp_core.h"
  19. #include "msm_cvp_common.h"
  20. #include "msm_cvp_debug.h"
  21. #include "msm_cvp_internal.h"
  22. #include "msm_cvp_res_parse.h"
  23. #include "msm_cvp_resources.h"
  24. #include "msm_cvp_buf.h"
  25. #include "cvp_hfi_api.h"
  26. #include "cvp_private.h"
  27. #include "msm_cvp_clocks.h"
  28. #include "msm_cvp_dsp.h"
  29. #include "msm_cvp.h"
  30. #include "vm/cvp_vm.h"
  31. #define CLASS_NAME "cvp"
  32. #define DRIVER_NAME "cvp"
  33. struct msm_cvp_drv *cvp_driver;
  34. static int cvp_open(struct inode *inode, struct file *filp)
  35. {
  36. struct msm_cvp_inst *inst;
  37. dprintk(CVP_SESS, "%s\n", __func__);
  38. inst = msm_cvp_open(MSM_CVP_USER, current);
  39. if (!inst) {
  40. dprintk(CVP_ERR, "Failed to create cvp instance\n");
  41. return -ENOMEM;
  42. }
  43. filp->private_data = inst;
  44. return 0;
  45. }
  46. static int cvp_close(struct inode *inode, struct file *filp)
  47. {
  48. int rc = 0;
  49. struct msm_cvp_inst *inst = filp->private_data;
  50. rc = msm_cvp_close(inst);
  51. filp->private_data = NULL;
  52. return rc;
  53. }
  54. static unsigned int cvp_poll(struct file *filp, struct poll_table_struct *p)
  55. {
  56. int rc = 0;
  57. struct msm_cvp_inst *inst = filp->private_data;
  58. unsigned long flags = 0;
  59. poll_wait(filp, &inst->event_handler.wq, p);
  60. spin_lock_irqsave(&inst->event_handler.lock, flags);
  61. if (inst->event_handler.event == CVP_SSR_EVENT)
  62. rc |= POLLPRI;
  63. if (inst->event_handler.event == CVP_DUMP_EVENT)
  64. rc |= POLLIN;
  65. inst->event_handler.event = CVP_NO_EVENT;
  66. spin_unlock_irqrestore(&inst->event_handler.lock, flags);
  67. return rc;
  68. }
  69. static const struct file_operations cvp_fops = {
  70. .owner = THIS_MODULE,
  71. .open = cvp_open,
  72. .release = cvp_close,
  73. .unlocked_ioctl = cvp_unblocked_ioctl,
  74. .compat_ioctl = cvp_compat_ioctl,
  75. .poll = cvp_poll,
  76. };
  77. static int read_platform_resources(struct msm_cvp_core *core,
  78. struct platform_device *pdev)
  79. {
  80. int rc = 0;
  81. if (!core || !pdev) {
  82. dprintk(CVP_ERR, "%s: Invalid params %pK %pK\n",
  83. __func__, core, pdev);
  84. return -EINVAL;
  85. }
  86. core->hfi_type = CVP_HFI_IRIS;
  87. core->resources.pdev = pdev;
  88. if (pdev->dev.of_node) {
  89. /* Target supports DT, parse from it */
  90. rc = cvp_read_platform_resources_from_drv_data(core);
  91. rc = cvp_read_platform_resources_from_dt(&core->resources);
  92. } else {
  93. dprintk(CVP_ERR, "pdev node is NULL\n");
  94. rc = -EINVAL;
  95. }
  96. return rc;
  97. }
  98. static void init_cycle_info(struct cvp_cycle_info *info)
  99. {
  100. memset(info->sum_fps, 0, HFI_MAX_HW_THREADS*sizeof(u32));
  101. memset(info->hi_ctrl_lim, 0, HFI_MAX_HW_THREADS*sizeof(u32));
  102. memset(info->lo_ctrl_lim, 0, HFI_MAX_HW_THREADS*sizeof(u32));
  103. memset(info->cycle, 0,
  104. HFI_MAX_HW_THREADS*sizeof(struct cvp_cycle_stat));
  105. info->conf_freq = 0;
  106. }
  107. static int msm_cvp_initialize_core(struct platform_device *pdev,
  108. struct msm_cvp_core *core)
  109. {
  110. int i = 0;
  111. int rc = 0;
  112. if (!core)
  113. return -EINVAL;
  114. rc = read_platform_resources(core, pdev);
  115. if (rc) {
  116. dprintk(CVP_ERR, "Failed to get platform resources\n");
  117. return rc;
  118. }
  119. INIT_LIST_HEAD(&core->instances);
  120. mutex_init(&core->lock);
  121. mutex_init(&core->clk_lock);
  122. core->state = CVP_CORE_UNINIT;
  123. for (i = SYS_MSG_INDEX(SYS_MSG_START);
  124. i <= SYS_MSG_INDEX(SYS_MSG_END); i++) {
  125. init_completion(&core->completions[i]);
  126. }
  127. INIT_WORK(&core->ssr_work, msm_cvp_ssr_handler);
  128. init_cycle_info(&core->dyn_clk);
  129. core->ssr_count = 0;
  130. return rc;
  131. }
  132. static ssize_t link_name_show(struct device *dev,
  133. struct device_attribute *attr,
  134. char *buf)
  135. {
  136. struct msm_cvp_core *core = dev_get_drvdata(dev);
  137. if (core)
  138. if (dev == core->dev)
  139. return snprintf(buf, PAGE_SIZE, "msm_cvp\n");
  140. else
  141. return 0;
  142. else
  143. return 0;
  144. }
  145. static DEVICE_ATTR_RO(link_name);
  146. static ssize_t pwr_collapse_delay_store(struct device *dev,
  147. struct device_attribute *attr,
  148. const char *buf, size_t count)
  149. {
  150. unsigned long val = 0;
  151. int rc = 0;
  152. struct msm_cvp_core *core = NULL;
  153. rc = kstrtoul(buf, 0, &val);
  154. if (rc)
  155. return rc;
  156. else if (!val)
  157. return -EINVAL;
  158. core = cvp_driver->cvp_core;
  159. if (!core)
  160. return -EINVAL;
  161. core->resources.msm_cvp_pwr_collapse_delay = val;
  162. return count;
  163. }
  164. static ssize_t pwr_collapse_delay_show(struct device *dev,
  165. struct device_attribute *attr,
  166. char *buf)
  167. {
  168. struct msm_cvp_core *core = NULL;
  169. core = cvp_driver->cvp_core;
  170. if (!core)
  171. return -EINVAL;
  172. return snprintf(buf, PAGE_SIZE, "%u\n",
  173. core->resources.msm_cvp_pwr_collapse_delay);
  174. }
  175. static DEVICE_ATTR_RW(pwr_collapse_delay);
  176. static ssize_t thermal_level_show(struct device *dev,
  177. struct device_attribute *attr,
  178. char *buf)
  179. {
  180. return snprintf(buf, PAGE_SIZE, "%d\n", cvp_driver->thermal_level);
  181. }
  182. static ssize_t thermal_level_store(struct device *dev,
  183. struct device_attribute *attr,
  184. const char *buf, size_t count)
  185. {
  186. int rc = 0, val = 0;
  187. rc = kstrtoint(buf, 0, &val);
  188. if (rc || val < 0) {
  189. dprintk(CVP_WARN,
  190. "Invalid thermal level value: %s\n", buf);
  191. return -EINVAL;
  192. }
  193. dprintk(CVP_PWR, "Thermal level old %d new %d\n",
  194. cvp_driver->thermal_level, val);
  195. if (val == cvp_driver->thermal_level)
  196. return count;
  197. cvp_driver->thermal_level = val;
  198. msm_cvp_comm_handle_thermal_event();
  199. return count;
  200. }
  201. static DEVICE_ATTR_RW(thermal_level);
  202. static ssize_t sku_version_show(struct device *dev,
  203. struct device_attribute *attr, char *buf)
  204. {
  205. return scnprintf(buf, PAGE_SIZE, "%d",
  206. cvp_driver->sku_version);
  207. }
  208. static DEVICE_ATTR_RO(sku_version);
  209. static ssize_t boot_store(struct device *dev,
  210. struct device_attribute *attr,
  211. const char *buf, size_t count)
  212. {
  213. int rc = 0, val = 0;
  214. static int booted;
  215. rc = kstrtoint(buf, 0, &val);
  216. if (rc || val < 0) {
  217. dprintk(CVP_WARN,
  218. "Invalid boot value: %s\n", buf);
  219. return -EINVAL;
  220. }
  221. if (val == 1 && booted == 0) {
  222. struct msm_cvp_inst *inst;
  223. inst = msm_cvp_open(MSM_CVP_BOOT, current);
  224. if (!inst) {
  225. dprintk(CVP_ERR,
  226. "Failed to create cvp instance\n");
  227. return -ENOMEM;
  228. }
  229. rc = msm_cvp_close(inst);
  230. if (rc) {
  231. dprintk(CVP_ERR,
  232. "Failed to close cvp instance\n");
  233. return rc;
  234. }
  235. } else if (val == 2) {
  236. struct msm_cvp_inst *inst;
  237. inst = msm_cvp_open(MSM_CVP_USER, current);
  238. if (!inst) {
  239. dprintk(CVP_ERR,
  240. "Failed to create eva instance\n");
  241. return -ENOMEM;
  242. }
  243. rc = msm_cvp_session_create(inst);
  244. if (rc)
  245. dprintk(CVP_ERR, "Failed to create eva session\n");
  246. rc = msm_cvp_close(inst);
  247. if (rc) {
  248. dprintk(CVP_ERR,
  249. "Failed to close eva instance\n");
  250. return rc;
  251. }
  252. }
  253. booted = 1;
  254. return count;
  255. }
  256. static DEVICE_ATTR_WO(boot);
  257. static struct attribute *msm_cvp_core_attrs[] = {
  258. &dev_attr_pwr_collapse_delay.attr,
  259. &dev_attr_thermal_level.attr,
  260. &dev_attr_sku_version.attr,
  261. &dev_attr_link_name.attr,
  262. &dev_attr_boot.attr,
  263. NULL
  264. };
  265. static struct attribute_group msm_cvp_core_attr_group = {
  266. .attrs = msm_cvp_core_attrs,
  267. };
  268. static const struct of_device_id msm_cvp_plat_match[] = {
  269. {.compatible = "qcom,msm-cvp"},
  270. {.compatible = "qcom,msm-cvp,context-bank"},
  271. {.compatible = "qcom,msm-cvp,bus"},
  272. {.compatible = "qcom,msm-cvp,mem-cdsp"},
  273. {}
  274. };
  275. static int msm_probe_cvp_device(struct platform_device *pdev)
  276. {
  277. int rc = 0;
  278. struct msm_cvp_core *core;
  279. if (!cvp_driver) {
  280. dprintk(CVP_ERR, "Invalid cvp driver\n");
  281. return -EINVAL;
  282. }
  283. core = kzalloc(sizeof(*core), GFP_KERNEL);
  284. if (!core)
  285. return -ENOMEM;
  286. core->platform_data = cvp_get_drv_data(&pdev->dev);
  287. dev_set_drvdata(&pdev->dev, core);
  288. rc = msm_cvp_initialize_core(pdev, core);
  289. if (rc) {
  290. dprintk(CVP_ERR, "Failed to init core\n");
  291. goto err_core_init;
  292. }
  293. rc = alloc_chrdev_region(&core->dev_num, 0, 1, DRIVER_NAME);
  294. if (rc < 0) {
  295. dprintk(CVP_ERR, "alloc_chrdev_region failed: %d\n",
  296. rc);
  297. goto err_alloc_chrdev;
  298. }
  299. core->class = class_create(THIS_MODULE, CLASS_NAME);
  300. if (IS_ERR(core->class)) {
  301. rc = PTR_ERR(core->class);
  302. dprintk(CVP_ERR, "class_create failed: %d\n",
  303. rc);
  304. goto err_class_create;
  305. }
  306. core->dev = device_create(core->class, NULL,
  307. core->dev_num, NULL, DRIVER_NAME);
  308. if (IS_ERR(core->dev)) {
  309. rc = PTR_ERR(core->dev);
  310. dprintk(CVP_ERR, "device_create failed: %d\n",
  311. rc);
  312. goto err_device_create;
  313. }
  314. dev_set_drvdata(core->dev, core);
  315. cdev_init(&core->cdev, &cvp_fops);
  316. rc = cdev_add(&core->cdev,
  317. MKDEV(MAJOR(core->dev_num), 0), 1);
  318. if (rc < 0) {
  319. dprintk(CVP_ERR, "cdev_add failed: %d\n",
  320. rc);
  321. goto error_cdev_add;
  322. }
  323. rc = sysfs_create_group(&core->dev->kobj, &msm_cvp_core_attr_group);
  324. if (rc) {
  325. dprintk(CVP_ERR,
  326. "Failed to create attributes\n");
  327. goto err_cores_exceeded;
  328. }
  329. /* VM manager shall be started before HFI init */
  330. vm_manager.vm_ops->vm_start(core);
  331. core->device = cvp_hfi_initialize(core->hfi_type,
  332. &core->resources, &cvp_handle_cmd_response);
  333. if (IS_ERR_OR_NULL(core->device)) {
  334. mutex_lock(&cvp_driver->lock);
  335. mutex_unlock(&cvp_driver->lock);
  336. rc = PTR_ERR(core->device) ?: -EBADHANDLE;
  337. if (rc != -EPROBE_DEFER)
  338. dprintk(CVP_ERR, "Failed to create HFI device\n");
  339. else
  340. dprintk(CVP_CORE, "msm_cvp: request probe defer\n");
  341. goto err_hfi_initialize;
  342. }
  343. cvp_synx_ftbl_init(core);
  344. mutex_lock(&cvp_driver->lock);
  345. cvp_driver->cvp_core = core;
  346. mutex_unlock(&cvp_driver->lock);
  347. cvp_driver->debugfs_root = msm_cvp_debugfs_init_drv();
  348. if (!cvp_driver->debugfs_root)
  349. dprintk(CVP_ERR, "Failed to create debugfs for msm_cvp\n");
  350. core->debugfs_root = msm_cvp_debugfs_init_core(
  351. core, cvp_driver->debugfs_root);
  352. cvp_driver->sku_version = core->resources.sku_version;
  353. dprintk(CVP_CORE, "populating sub devices\n");
  354. /*
  355. * Trigger probe for each sub-device i.e. qcom,msm-cvp,context-bank.
  356. * When msm_cvp_probe is called for each sub-device, parse the
  357. * context-bank details and store it in core->resources.context_banks
  358. * list.
  359. */
  360. rc = of_platform_populate(pdev->dev.of_node, msm_cvp_plat_match, NULL,
  361. &pdev->dev);
  362. if (rc) {
  363. dprintk(CVP_ERR, "Failed to trigger probe for sub-devices\n");
  364. goto err_fail_sub_device_probe;
  365. }
  366. atomic64_set(&core->kernel_trans_id, ARRAY_SIZE(cvp_hfi_defs));
  367. if (core->resources.dsp_enabled) {
  368. rc = cvp_dsp_device_init();
  369. if (rc)
  370. dprintk(CVP_WARN, "Failed to initialize DSP driver\n");
  371. } else {
  372. dprintk(CVP_DSP, "DSP interface not enabled\n");
  373. }
  374. return rc;
  375. err_fail_sub_device_probe:
  376. cvp_hfi_deinitialize(core->hfi_type, core->device);
  377. debugfs_remove_recursive(cvp_driver->debugfs_root);
  378. err_hfi_initialize:
  379. err_cores_exceeded:
  380. cdev_del(&core->cdev);
  381. error_cdev_add:
  382. device_destroy(core->class, core->dev_num);
  383. err_device_create:
  384. class_destroy(core->class);
  385. err_class_create:
  386. unregister_chrdev_region(core->dev_num, 1);
  387. err_alloc_chrdev:
  388. sysfs_remove_group(&pdev->dev.kobj, &msm_cvp_core_attr_group);
  389. err_core_init:
  390. dev_set_drvdata(&pdev->dev, NULL);
  391. kfree(core);
  392. return rc;
  393. }
  394. static int msm_cvp_probe_mem_cdsp(struct platform_device *pdev)
  395. {
  396. return cvp_read_mem_cdsp_resources_from_dt(pdev);
  397. }
  398. static int msm_cvp_probe_context_bank(struct platform_device *pdev)
  399. {
  400. return cvp_read_context_bank_resources_from_dt(pdev);
  401. }
  402. static int msm_cvp_probe_bus(struct platform_device *pdev)
  403. {
  404. return cvp_read_bus_resources_from_dt(pdev);
  405. }
  406. static int msm_cvp_probe(struct platform_device *pdev)
  407. {
  408. /*
  409. * Sub devices probe will be triggered by of_platform_populate() towards
  410. * the end of the probe function after msm-cvp device probe is
  411. * completed. Return immediately after completing sub-device probe.
  412. */
  413. if (of_device_is_compatible(pdev->dev.of_node, "qcom,msm-cvp")) {
  414. return msm_probe_cvp_device(pdev);
  415. } else if (of_device_is_compatible(pdev->dev.of_node,
  416. "qcom,msm-cvp,bus")) {
  417. return msm_cvp_probe_bus(pdev);
  418. } else if (of_device_is_compatible(pdev->dev.of_node,
  419. "qcom,msm-cvp,context-bank")) {
  420. return msm_cvp_probe_context_bank(pdev);
  421. } else if (of_device_is_compatible(pdev->dev.of_node,
  422. "qcom,msm-cvp,mem-cdsp")) {
  423. return msm_cvp_probe_mem_cdsp(pdev);
  424. }
  425. /* How did we end up here? */
  426. MSM_CVP_ERROR(1);
  427. return -EINVAL;
  428. }
  429. static int msm_cvp_remove(struct platform_device *pdev)
  430. {
  431. int rc = 0;
  432. struct msm_cvp_core *core;
  433. if (!pdev) {
  434. dprintk(CVP_ERR, "%s invalid input %pK", __func__, pdev);
  435. return -EINVAL;
  436. }
  437. core = dev_get_drvdata(&pdev->dev);
  438. if (!core) {
  439. dprintk(CVP_ERR, "%s invalid core", __func__);
  440. return -EINVAL;
  441. }
  442. cvp_hfi_deinitialize(core->hfi_type, core->device);
  443. msm_cvp_free_platform_resources(&core->resources);
  444. sysfs_remove_group(&pdev->dev.kobj, &msm_cvp_core_attr_group);
  445. dev_set_drvdata(&pdev->dev, NULL);
  446. mutex_destroy(&core->lock);
  447. mutex_destroy(&core->clk_lock);
  448. kfree(core);
  449. return rc;
  450. }
  451. static int msm_cvp_pm_suspend(struct device *dev)
  452. {
  453. int rc = 0;
  454. struct msm_cvp_core *core;
  455. /*
  456. * Bail out if
  457. * - driver possibly not probed yet
  458. * - not the main device. We don't support power management on
  459. * subdevices (e.g. context banks)
  460. */
  461. if (!dev || !dev->driver ||
  462. !of_device_is_compatible(dev->of_node, "qcom,msm-cvp"))
  463. return 0;
  464. core = dev_get_drvdata(dev);
  465. if (!core) {
  466. dprintk(CVP_ERR, "%s invalid core\n", __func__);
  467. return -EINVAL;
  468. }
  469. rc = msm_cvp_suspend();
  470. if (rc == -ENOTSUPP)
  471. rc = 0;
  472. else if (rc)
  473. dprintk(CVP_WARN, "Failed to suspend: %d\n", rc);
  474. return rc;
  475. }
  476. static int msm_cvp_pm_resume(struct device *dev)
  477. {
  478. dprintk(CVP_INFO, "%s\n", __func__);
  479. return 0;
  480. }
  481. static const struct dev_pm_ops msm_cvp_pm_ops = {
  482. SET_SYSTEM_SLEEP_PM_OPS(msm_cvp_pm_suspend, msm_cvp_pm_resume)
  483. };
  484. MODULE_DEVICE_TABLE(of, msm_cvp_plat_match);
  485. static struct platform_driver msm_cvp_driver = {
  486. .probe = msm_cvp_probe,
  487. .remove = msm_cvp_remove,
  488. .driver = {
  489. .name = "msm_cvp",
  490. .of_match_table = msm_cvp_plat_match,
  491. .pm = &msm_cvp_pm_ops,
  492. },
  493. };
  494. static int __init msm_cvp_init(void)
  495. {
  496. int rc = 0;
  497. cvp_driver = kzalloc(sizeof(*cvp_driver), GFP_KERNEL);
  498. if (!cvp_driver) {
  499. dprintk(CVP_ERR,
  500. "Failed to allocate memroy for msm_cvp_drv\n");
  501. return -ENOMEM;
  502. }
  503. mutex_init(&cvp_driver->lock);
  504. rc = platform_driver_register(&msm_cvp_driver);
  505. if (rc) {
  506. dprintk(CVP_ERR,
  507. "Failed to register platform driver\n");
  508. kfree(cvp_driver);
  509. cvp_driver = NULL;
  510. return rc;
  511. }
  512. cvp_driver->msg_cache.cache = KMEM_CACHE(cvp_session_msg, 0);
  513. cvp_driver->frame_cache.cache = KMEM_CACHE(msm_cvp_frame, 0);
  514. cvp_driver->buf_cache.cache = KMEM_CACHE(cvp_internal_buf, 0);
  515. cvp_driver->smem_cache.cache = KMEM_CACHE(msm_cvp_smem, 0);
  516. mutex_init(&wncc_buf_pool.lock);
  517. return rc;
  518. }
  519. static void __exit msm_cvp_exit(void)
  520. {
  521. cvp_dsp_device_exit();
  522. kmem_cache_destroy(cvp_driver->msg_cache.cache);
  523. kmem_cache_destroy(cvp_driver->frame_cache.cache);
  524. kmem_cache_destroy(cvp_driver->buf_cache.cache);
  525. kmem_cache_destroy(cvp_driver->smem_cache.cache);
  526. platform_driver_unregister(&msm_cvp_driver);
  527. debugfs_remove_recursive(cvp_driver->debugfs_root);
  528. mutex_destroy(&cvp_driver->lock);
  529. mutex_destroy(&wncc_buf_pool.lock);
  530. kfree(cvp_driver);
  531. cvp_driver = NULL;
  532. }
  533. module_init(msm_cvp_init);
  534. module_exit(msm_cvp_exit);
  535. MODULE_SOFTDEP("pre: msm-mmrm");
  536. MODULE_SOFTDEP("pre: synx-driver");
  537. MODULE_SOFTDEP("pre: frpc-adsprpc");
  538. MODULE_LICENSE("GPL v2");
  539. MODULE_IMPORT_NS(DMA_BUF);