| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SN Platform GRU Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * GRU DRIVER TABLES, MACROS, externs, etc |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | #ifndef __GRUTABLES_H__ |
|---|
| .. | .. |
|---|
| 320 | 307 | |
|---|
| 321 | 308 | struct gru_mm_struct { |
|---|
| 322 | 309 | struct mmu_notifier ms_notifier; |
|---|
| 323 | | - atomic_t ms_refcnt; |
|---|
| 324 | 310 | spinlock_t ms_asid_lock; /* protects ASID assignment */ |
|---|
| 325 | 311 | atomic_t ms_range_active;/* num range_invals active */ |
|---|
| 326 | | - char ms_released; |
|---|
| 327 | 312 | wait_queue_head_t ms_wait_queue; |
|---|
| 328 | 313 | DECLARE_BITMAP(ms_asidmap, GRU_MAX_GRUS); |
|---|
| 329 | 314 | struct gru_mm_tracker ms_asids[GRU_MAX_GRUS]; |
|---|
| .. | .. |
|---|
| 387 | 372 | int ts_data_valid; /* Indicates if ts_gdata has |
|---|
| 388 | 373 | valid data */ |
|---|
| 389 | 374 | struct gru_gseg_statistics ustats; /* User statistics */ |
|---|
| 390 | | - unsigned long ts_gdata[0]; /* save area for GRU data (CB, |
|---|
| 375 | + unsigned long ts_gdata[]; /* save area for GRU data (CB, |
|---|
| 391 | 376 | DS, CBE) */ |
|---|
| 392 | 377 | }; |
|---|
| 393 | 378 | |
|---|