Skip to content

Commit 145eba1

Browse files
caihuoqing1990jgunthorpe
authored andcommitted
RDMA/hfi1: Convert to SPDX identifier
use SPDX-License-Identifier instead of a verbose license text Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Cai Huoqing <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent d164bf6 commit 145eba1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+133
-3170
lines changed

drivers/infiniband/hw/hfi1/affinity.c

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
12
/*
23
* Copyright(c) 2015 - 2020 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
5+
476
#include <linux/topology.h>
487
#include <linux/cpumask.h>
498
#include <linux/module.h>

drivers/infiniband/hw/hfi1/affinity.h

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,8 @@
1+
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
12
/*
23
* Copyright(c) 2015 - 2020 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
5+
476
#ifndef _HFI1_AFFINITY_H
487
#define _HFI1_AFFINITY_H
498

drivers/infiniband/hw/hfi1/aspm.h

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,8 @@
1+
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
12
/*
23
* Copyright(c) 2015-2017 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
5+
476
#ifndef _ASPM_H
487
#define _ASPM_H
498

drivers/infiniband/hw/hfi1/chip.c

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,6 @@
1+
// SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
12
/*
23
* Copyright(c) 2015 - 2020 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
475

486
/*

drivers/infiniband/hw/hfi1/chip.h

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,10 @@
1-
#ifndef _CHIP_H
2-
#define _CHIP_H
1+
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
32
/*
43
* Copyright(c) 2015 - 2020 Intel Corporation.
5-
*
6-
* This file is provided under a dual BSD/GPLv2 license. When using or
7-
* redistributing this file, you may do so under either license.
8-
*
9-
* GPL LICENSE SUMMARY
10-
*
11-
* This program is free software; you can redistribute it and/or modify
12-
* it under the terms of version 2 of the GNU General Public License as
13-
* published by the Free Software Foundation.
14-
*
15-
* This program is distributed in the hope that it will be useful, but
16-
* WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18-
* General Public License for more details.
19-
*
20-
* BSD LICENSE
21-
*
22-
* Redistribution and use in source and binary forms, with or without
23-
* modification, are permitted provided that the following conditions
24-
* are met:
25-
*
26-
* - Redistributions of source code must retain the above copyright
27-
* notice, this list of conditions and the following disclaimer.
28-
* - Redistributions in binary form must reproduce the above copyright
29-
* notice, this list of conditions and the following disclaimer in
30-
* the documentation and/or other materials provided with the
31-
* distribution.
32-
* - Neither the name of Intel Corporation nor the names of its
33-
* contributors may be used to endorse or promote products derived
34-
* from this software without specific prior written permission.
35-
*
36-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
38-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
40-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
43-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
44-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
45-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47-
*
484
*/
495

6+
#ifndef _CHIP_H
7+
#define _CHIP_H
508
/*
519
* This file contains all of the defines that is specific to the HFI chip
5210
*/

drivers/infiniband/hw/hfi1/chip_registers.h

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,11 @@
1-
#ifndef DEF_CHIP_REG
2-
#define DEF_CHIP_REG
3-
1+
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
42
/*
53
* Copyright(c) 2015, 2016 Intel Corporation.
6-
*
7-
* This file is provided under a dual BSD/GPLv2 license. When using or
8-
* redistributing this file, you may do so under either license.
9-
*
10-
* GPL LICENSE SUMMARY
11-
*
12-
* This program is free software; you can redistribute it and/or modify
13-
* it under the terms of version 2 of the GNU General Public License as
14-
* published by the Free Software Foundation.
15-
*
16-
* This program is distributed in the hope that it will be useful, but
17-
* WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19-
* General Public License for more details.
20-
*
21-
* BSD LICENSE
22-
*
23-
* Redistribution and use in source and binary forms, with or without
24-
* modification, are permitted provided that the following conditions
25-
* are met:
26-
*
27-
* - Redistributions of source code must retain the above copyright
28-
* notice, this list of conditions and the following disclaimer.
29-
* - Redistributions in binary form must reproduce the above copyright
30-
* notice, this list of conditions and the following disclaimer in
31-
* the documentation and/or other materials provided with the
32-
* distribution.
33-
* - Neither the name of Intel Corporation nor the names of its
34-
* contributors may be used to endorse or promote products derived
35-
* from this software without specific prior written permission.
36-
*
37-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
38-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
39-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
40-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
41-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
42-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
45-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
46-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
47-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48-
*
494
*/
505

6+
#ifndef DEF_CHIP_REG
7+
#define DEF_CHIP_REG
8+
519
#define CORE 0x000000000000
5210
#define CCE (CORE + 0x000000000000)
5311
#define ASIC (CORE + 0x000000400000)

drivers/infiniband/hw/hfi1/common.h

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,6 @@
1+
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
12
/*
23
* Copyright(c) 2015 - 2020 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
475

486
#ifndef _COMMON_H

0 commit comments

Comments
 (0)