forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/misc/cxl/hcalls.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2015 IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106
....@@ -171,7 +167,7 @@
171167 }
172168 }
173169
174
-/**
170
+/*
175171 * cxl_h_detach_process - Detach a process element from a coherent
176172 * platform function.
177173 */
....@@ -201,7 +197,7 @@
201197 }
202198 }
203199
204
-/**
200
+/*
205201 * cxl_h_control_function - This H_CONTROL_CA_FUNCTION hypervisor call allows
206202 * the partition to manipulate or query
207203 * certain coherent platform function behaviors.
....@@ -242,7 +238,7 @@
242238 }
243239 }
244240
245
-/**
241
+/*
246242 * cxl_h_reset_afu - Perform a reset to the coherent platform function.
247243 */
248244 long cxl_h_reset_afu(u64 unit_address)
....@@ -253,7 +249,7 @@
253249 NULL);
254250 }
255251
256
-/**
252
+/*
257253 * cxl_h_suspend_process - Suspend a process from being executed
258254 * Parameter1 = process-token as returned from H_ATTACH_CA_PROCESS when
259255 * process was attached.
....@@ -266,7 +262,7 @@
266262 NULL);
267263 }
268264
269
-/**
265
+/*
270266 * cxl_h_resume_process - Resume a process to be executed
271267 * Parameter1 = process-token as returned from H_ATTACH_CA_PROCESS when
272268 * process was attached.
....@@ -279,7 +275,7 @@
279275 NULL);
280276 }
281277
282
-/**
278
+/*
283279 * cxl_h_read_error_state - Checks the error state of the coherent
284280 * platform function.
285281 * R4 contains the error state
....@@ -292,7 +288,7 @@
292288 state);
293289 }
294290
295
-/**
291
+/*
296292 * cxl_h_get_afu_err - collect the AFU error buffer
297293 * Parameter1 = byte offset into error buffer to retrieve, valid values
298294 * are between 0 and (ibm,error-buffer-size - 1)
....@@ -308,7 +304,7 @@
308304 NULL);
309305 }
310306
311
-/**
307
+/*
312308 * cxl_h_get_config - collect configuration record for the
313309 * coherent platform function
314310 * Parameter1 = # of configuration record to retrieve, valid values are
....@@ -328,7 +324,7 @@
328324 NULL);
329325 }
330326
331
-/**
327
+/*
332328 * cxl_h_terminate_process - Terminate the process before completion
333329 * Parameter1 = process-token as returned from H_ATTACH_CA_PROCESS when
334330 * process was attached.
....@@ -341,7 +337,7 @@
341337 NULL);
342338 }
343339
344
-/**
340
+/*
345341 * cxl_h_collect_vpd - Collect VPD for the coherent platform function.
346342 * Parameter1 = # of VPD record to retrieve, valid values are between 0
347343 * and (ibm,#config-records - 1).
....@@ -359,7 +355,7 @@
359355 out);
360356 }
361357
362
-/**
358
+/*
363359 * cxl_h_get_fn_error_interrupt - Read the function-wide error data based on an interrupt
364360 */
365361 long cxl_h_get_fn_error_interrupt(u64 unit_address, u64 *reg)
....@@ -369,7 +365,7 @@
369365 0, 0, 0, 0, reg);
370366 }
371367
372
-/**
368
+/*
373369 * cxl_h_ack_fn_error_interrupt - Acknowledge function-wide error data
374370 * based on an interrupt
375371 * Parameter1 = value to write to the function-wide error interrupt register
....@@ -382,7 +378,7 @@
382378 NULL);
383379 }
384380
385
-/**
381
+/*
386382 * cxl_h_get_error_log - Retrieve the Platform Log ID (PLID) of
387383 * an error log
388384 */
....@@ -394,7 +390,7 @@
394390 NULL);
395391 }
396392
397
-/**
393
+/*
398394 * cxl_h_collect_int_info - Collect interrupt info about a coherent
399395 * platform function after an interrupt occurred.
400396 */
....@@ -429,7 +425,7 @@
429425 }
430426 }
431427
432
-/**
428
+/*
433429 * cxl_h_control_faults - Control the operation of a coherent platform
434430 * function after a fault occurs.
435431 *
....@@ -474,7 +470,7 @@
474470 }
475471 }
476472
477
-/**
473
+/*
478474 * cxl_h_control_facility - This H_CONTROL_CA_FACILITY hypervisor call
479475 * allows the partition to manipulate or query
480476 * certain coherent platform facility behaviors.
....@@ -513,7 +509,7 @@
513509 }
514510 }
515511
516
-/**
512
+/*
517513 * cxl_h_reset_adapter - Perform a reset to the coherent platform facility.
518514 */
519515 long cxl_h_reset_adapter(u64 unit_address)
....@@ -524,7 +520,7 @@
524520 NULL);
525521 }
526522
527
-/**
523
+/*
528524 * cxl_h_collect_vpd - Collect VPD for the coherent platform function.
529525 * Parameter1 = 4K naturally aligned real buffer containing block
530526 * list entries
....@@ -540,7 +536,7 @@
540536 out);
541537 }
542538
543
-/**
539
+/*
544540 * cxl_h_download_facility - This H_DOWNLOAD_CA_FACILITY
545541 * hypervisor call provide platform support for
546542 * downloading a base adapter image to the coherent
....@@ -620,7 +616,7 @@
620616 }
621617 }
622618
623
-/**
619
+/*
624620 * cxl_h_download_adapter_image - Download the base image to the coherent
625621 * platform facility.
626622 */
....@@ -633,7 +629,7 @@
633629 list_address, num, out);
634630 }
635631
636
-/**
632
+/*
637633 * cxl_h_validate_adapter_image - Validate the base image in the coherent
638634 * platform facility.
639635 */