Skip to content

Commit

Permalink
Updated copyright header for the files that are changed in 2021.1 (#8428
Browse files Browse the repository at this point in the history
)

* Updated copyright header for the files that are changed in 2021.1

Signed-off-by: suresh avula <[email protected]>

* Updated copyright year for Xilinx and AMD

---------

Signed-off-by: suresh avula <[email protected]>
  • Loading branch information
sureshreddyavula authored Sep 24, 2024
1 parent bc7e75e commit 6ac18e6
Show file tree
Hide file tree
Showing 38 changed files with 112 additions and 56 deletions.
3 changes: 2 additions & 1 deletion src/runtime_src/core/edge/drm/zocl/zocl_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* A GEM style (optionally CMA backed) device manager for ZynQ based
* OpenCL accelerators.
*
* Copyright (C) 2016-2021 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022 Xilinx, Inc. All rights reserved.
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* Authors:
* Sonal Santan <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2017-2018, Xilinx Inc
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the Free Software Foundation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-present, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-present, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-present, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-2020, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-2020, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* This file is part of the Xilinx DMA IP Core driver for Linux
*
* Copyright (c) 2017-2020, Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Simple Driver for Management PF
*
* Copyright (C) 2017-2020 Xilinx, Inc.
* Copyright (C) 2017-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Code borrowed from Xilinx SDAccel XDMA driver
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/aim.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/am.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/asm.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/fmgr.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* FPGA Manager bindings for XRT driver
*
* Copyright (C) 2019 Xilinx, Inc. All rights reserved.
* Copyright (C) 2019-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Sonal Santan
* Jan Stephan <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/lapc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/qdma.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2016-2018 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: [email protected]
* Jan Stephan <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/qdma4.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020- Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: [email protected]
* Jan Stephan <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/subdev/spc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2020-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Chien-Wei Lan <[email protected]>
*
Expand Down
41 changes: 21 additions & 20 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright (C) 2006 Peter Korsgaard <[email protected]>
* Copyright (C) 2007 Secret Lab Technologies Ltd.
* Copyright (C) 2020 Chien-Wei Lan <[email protected]>
* Copyright (c) 2024, Advanced Micro Devices, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
Expand Down Expand Up @@ -338,13 +339,13 @@ static void ulite_shutdown(struct uart_port *port)
mutex_unlock(&pdata->lock);
}

#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 1, 0)) || defined(RHEL_9_2_GE)
static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
const struct ktermios *old)
#else
#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 1, 0)) || defined(RHEL_9_2_GE)
static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
const struct ktermios *old)
#else
static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
struct ktermios *old)
#endif
#endif
{
unsigned long flags;
unsigned int baud;
Expand Down Expand Up @@ -554,39 +555,39 @@ static int ulite_probe(struct platform_device *pdev)
return ret;
}

/*
* Sometime in Kernel version 6.5+ the platform_driver probe function will have
* its return code changed from `int` to `void`. This is to enforce the notion
* that the returned error code does nothing.
* For now, older drivers should handle the error within this function and return
* anything. Once the conversion of the return type is complete we must update
* the return type from int to void and change all instances of `return 0` to
* `return`.
* https://elixir.bootlin.com/linux/latest/source/include/linux/platform_device.h#L211
*/
/*
* Sometime in Kernel version 6.5+ the platform_driver probe function will have
* its return code changed from `int` to `void`. This is to enforce the notion
* that the returned error code does nothing.
* For now, older drivers should handle the error within this function and return
* anything. Once the conversion of the return type is complete we must update
* the return type from int to void and change all instances of `return 0` to
* `return`.
* https://elixir.bootlin.com/linux/latest/source/include/linux/platform_device.h#L211
*/
static int ulite_remove(struct platform_device *pdev)
{
struct uart_port *port = platform_get_drvdata(pdev);
struct uartlite_data *pdata;

if (!port)
return 0;
return 0;

sysfs_remove_group(&pdev->dev.kobj, &ulite_attr_group);

pdata = port->private_data;
if (!pdata)
return 0;
return 0;

atomic_set(&pdata->console_opened, 0);
if (pdata->thread)
kthread_stop(pdata->thread);

uart_remove_one_port(pdata->xcl_ulite_driver, port);
uart_remove_one_port(pdata->xcl_ulite_driver, port);
platform_set_drvdata(pdev, NULL);
port->mapbase = 0;

return 0;
return 0;
}

struct xocl_drv_private ulite_priv = {
Expand Down Expand Up @@ -630,4 +631,4 @@ void __exit xocl_fini_ulite(void)
{
platform_driver_unregister(&ulite_platform_driver);
uart_unregister_driver(&xcl_ulite_driver);
}
}
1 change: 1 addition & 0 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/xiic.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (C) 2017 Xilinx, Inc. All rights reserved.
* Copyright (c) 2009-2010 Intel Corporation
* Copyright (c) 2024, Advanced Micro Devices, Inc.
*
* I2C driver module
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2016-2019 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors:
* Sonal Santan <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2016-2018 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors:
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2016-2021 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: Jan Stephan <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* Copyright (C) 2016-2020 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: [email protected]
*
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* Copyright (C) 2016-2021 Xilinx, Inc. All rights reserved.
* Copyright (C) 2016-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Authors: [email protected]
* Jan Stephan <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* Copyright (C) 2019-2021 Xilinx, Inc
* Copyright (C) 2019-2022, Xilinx Inc
* Copyright (C) 2022-present Advanced Micro Devices, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
Expand Down
3 changes: 2 additions & 1 deletion src/xma/include/app/xmabuffers.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2018, Xilinx Inc - All rights reserved
* Copyright (C) 2018-2022, Xilinx Inc - All rights reserved
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
* Xilinx SDAccel Media Accelerator API
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
Expand Down
3 changes: 2 additions & 1 deletion src/xma/include/lib/xma_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2019 Xilinx, Inc
* Copyright (C) 2019-2022 Xilinx, Inc
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
Expand Down
3 changes: 2 additions & 1 deletion src/xma/src/xmaapi/xma_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2019 Xilinx, Inc
* Copyright (C) 2019-2022 Xilinx, Inc. All rights reserved.
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
Expand Down
3 changes: 2 additions & 1 deletion src/xma/src/xmaapi/xmaadmin.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2018, Xilinx Inc - All rights reserved
* Copyright (C) 2018-2022, Xilinx Inc - All rights reserved
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved.
* Xilinx SDAccel Media Accelerator API
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
Expand Down
Loading

0 comments on commit 6ac18e6

Please sign in to comment.