diff options
| -rw-r--r-- | MAINTAINERS | 4 | ||||
| -rw-r--r-- | arch/tile/include/hv/drv_mpipe_intf.h | 26 | ||||
| -rw-r--r-- | arch/tile/kernel/kgdb.c | 16 | ||||
| -rw-r--r-- | arch/tile/kernel/pci_gx.c | 2 |
4 files changed, 24 insertions, 24 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 03e00c7c88eb..378ebfff2d1f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -11137,8 +11137,8 @@ F: include/uapi/linux/tipc*.h | |||
| 11137 | F: net/tipc/ | 11137 | F: net/tipc/ |
| 11138 | 11138 | ||
| 11139 | TILE ARCHITECTURE | 11139 | TILE ARCHITECTURE |
| 11140 | M: Chris Metcalf <cmetcalf@ezchip.com> | 11140 | M: Chris Metcalf <cmetcalf@mellanox.com> |
| 11141 | W: http://www.ezchip.com/scm/ | 11141 | W: http://www.mellanox.com/repository/solutions/tile-scm/ |
| 11142 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git | 11142 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git |
| 11143 | S: Supported | 11143 | S: Supported |
| 11144 | F: arch/tile/ | 11144 | F: arch/tile/ |
diff --git a/arch/tile/include/hv/drv_mpipe_intf.h b/arch/tile/include/hv/drv_mpipe_intf.h index c97e416dd963..ff7f50f970a5 100644 --- a/arch/tile/include/hv/drv_mpipe_intf.h +++ b/arch/tile/include/hv/drv_mpipe_intf.h | |||
| @@ -211,7 +211,7 @@ _gxio_mpipe_link_mac_t; | |||
| 211 | * request shared data permission on the same link. | 211 | * request shared data permission on the same link. |
| 212 | * | 212 | * |
| 213 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, | 213 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, |
| 214 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() | 214 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open() |
| 215 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. | 215 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. |
| 216 | */ | 216 | */ |
| 217 | #define GXIO_MPIPE_LINK_DATA 0x00000001UL | 217 | #define GXIO_MPIPE_LINK_DATA 0x00000001UL |
| @@ -219,7 +219,7 @@ _gxio_mpipe_link_mac_t; | |||
| 219 | /** Do not request data permission on the specified link. | 219 | /** Do not request data permission on the specified link. |
| 220 | * | 220 | * |
| 221 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, | 221 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, |
| 222 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() | 222 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open() |
| 223 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. | 223 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. |
| 224 | */ | 224 | */ |
| 225 | #define GXIO_MPIPE_LINK_NO_DATA 0x00000002UL | 225 | #define GXIO_MPIPE_LINK_NO_DATA 0x00000002UL |
| @@ -230,7 +230,7 @@ _gxio_mpipe_link_mac_t; | |||
| 230 | * data permission on it, this open will fail. | 230 | * data permission on it, this open will fail. |
| 231 | * | 231 | * |
| 232 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, | 232 | * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, |
| 233 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() | 233 | * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open() |
| 234 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. | 234 | * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. |
| 235 | */ | 235 | */ |
| 236 | #define GXIO_MPIPE_LINK_EXCL_DATA 0x00000004UL | 236 | #define GXIO_MPIPE_LINK_EXCL_DATA 0x00000004UL |
| @@ -241,7 +241,7 @@ _gxio_mpipe_link_mac_t; | |||
| 241 | * permission on the same link. | 241 | * permission on the same link. |
| 242 | * | 242 | * |
| 243 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, | 243 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, |
| 244 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() | 244 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open() |
| 245 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. | 245 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. |
| 246 | */ | 246 | */ |
| 247 | #define GXIO_MPIPE_LINK_STATS 0x00000008UL | 247 | #define GXIO_MPIPE_LINK_STATS 0x00000008UL |
| @@ -249,7 +249,7 @@ _gxio_mpipe_link_mac_t; | |||
| 249 | /** Do not request stats permission on the specified link. | 249 | /** Do not request stats permission on the specified link. |
| 250 | * | 250 | * |
| 251 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, | 251 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, |
| 252 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() | 252 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open() |
| 253 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. | 253 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. |
| 254 | */ | 254 | */ |
| 255 | #define GXIO_MPIPE_LINK_NO_STATS 0x00000010UL | 255 | #define GXIO_MPIPE_LINK_NO_STATS 0x00000010UL |
| @@ -267,7 +267,7 @@ _gxio_mpipe_link_mac_t; | |||
| 267 | * reset by other statistics programs. | 267 | * reset by other statistics programs. |
| 268 | * | 268 | * |
| 269 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, | 269 | * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, |
| 270 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() | 270 | * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open() |
| 271 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. | 271 | * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. |
| 272 | */ | 272 | */ |
| 273 | #define GXIO_MPIPE_LINK_EXCL_STATS 0x00000020UL | 273 | #define GXIO_MPIPE_LINK_EXCL_STATS 0x00000020UL |
| @@ -278,7 +278,7 @@ _gxio_mpipe_link_mac_t; | |||
| 278 | * permission on the same link. | 278 | * permission on the same link. |
| 279 | * | 279 | * |
| 280 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, | 280 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, |
| 281 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() | 281 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open() |
| 282 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. | 282 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. |
| 283 | */ | 283 | */ |
| 284 | #define GXIO_MPIPE_LINK_CTL 0x00000040UL | 284 | #define GXIO_MPIPE_LINK_CTL 0x00000040UL |
| @@ -286,7 +286,7 @@ _gxio_mpipe_link_mac_t; | |||
| 286 | /** Do not request control permission on the specified link. | 286 | /** Do not request control permission on the specified link. |
| 287 | * | 287 | * |
| 288 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, | 288 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, |
| 289 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() | 289 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open() |
| 290 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. | 290 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. |
| 291 | */ | 291 | */ |
| 292 | #define GXIO_MPIPE_LINK_NO_CTL 0x00000080UL | 292 | #define GXIO_MPIPE_LINK_NO_CTL 0x00000080UL |
| @@ -301,7 +301,7 @@ _gxio_mpipe_link_mac_t; | |||
| 301 | * it prevents programs like mpipe-link from configuring the link. | 301 | * it prevents programs like mpipe-link from configuring the link. |
| 302 | * | 302 | * |
| 303 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, | 303 | * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, |
| 304 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() | 304 | * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open() |
| 305 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. | 305 | * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. |
| 306 | */ | 306 | */ |
| 307 | #define GXIO_MPIPE_LINK_EXCL_CTL 0x00000100UL | 307 | #define GXIO_MPIPE_LINK_EXCL_CTL 0x00000100UL |
| @@ -311,7 +311,7 @@ _gxio_mpipe_link_mac_t; | |||
| 311 | * change the desired state of the link when it is closed or the process | 311 | * change the desired state of the link when it is closed or the process |
| 312 | * exits. No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, | 312 | * exits. No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, |
| 313 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or | 313 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or |
| 314 | * ::GXIO_MPIPE_LINK_AUTO_NONE may be specifed in a gxio_mpipe_link_open() | 314 | * ::GXIO_MPIPE_LINK_AUTO_NONE may be specified in a gxio_mpipe_link_open() |
| 315 | * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. | 315 | * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. |
| 316 | */ | 316 | */ |
| 317 | #define GXIO_MPIPE_LINK_AUTO_UP 0x00000200UL | 317 | #define GXIO_MPIPE_LINK_AUTO_UP 0x00000200UL |
| @@ -322,7 +322,7 @@ _gxio_mpipe_link_mac_t; | |||
| 322 | * open, set the desired state of the link to down. No more than one of | 322 | * open, set the desired state of the link to down. No more than one of |
| 323 | * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, | 323 | * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, |
| 324 | * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be | 324 | * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be |
| 325 | * specifed in a gxio_mpipe_link_open() call. If none are specified, | 325 | * specified in a gxio_mpipe_link_open() call. If none are specified, |
| 326 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. | 326 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. |
| 327 | */ | 327 | */ |
| 328 | #define GXIO_MPIPE_LINK_AUTO_UPDOWN 0x00000400UL | 328 | #define GXIO_MPIPE_LINK_AUTO_UPDOWN 0x00000400UL |
| @@ -332,7 +332,7 @@ _gxio_mpipe_link_mac_t; | |||
| 332 | * process has the link open, set the desired state of the link to down. | 332 | * process has the link open, set the desired state of the link to down. |
| 333 | * No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, | 333 | * No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, |
| 334 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or | 334 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or |
| 335 | * ::GXIO_MPIPE_LINK_AUTO_NONE may be specifed in a gxio_mpipe_link_open() | 335 | * ::GXIO_MPIPE_LINK_AUTO_NONE may be specified in a gxio_mpipe_link_open() |
| 336 | * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. | 336 | * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. |
| 337 | */ | 337 | */ |
| 338 | #define GXIO_MPIPE_LINK_AUTO_DOWN 0x00000800UL | 338 | #define GXIO_MPIPE_LINK_AUTO_DOWN 0x00000800UL |
| @@ -342,7 +342,7 @@ _gxio_mpipe_link_mac_t; | |||
| 342 | * closed or the process exits. No more than one of | 342 | * closed or the process exits. No more than one of |
| 343 | * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, | 343 | * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, |
| 344 | * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be | 344 | * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be |
| 345 | * specifed in a gxio_mpipe_link_open() call. If none are specified, | 345 | * specified in a gxio_mpipe_link_open() call. If none are specified, |
| 346 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. | 346 | * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. |
| 347 | */ | 347 | */ |
| 348 | #define GXIO_MPIPE_LINK_AUTO_NONE 0x00001000UL | 348 | #define GXIO_MPIPE_LINK_AUTO_NONE 0x00001000UL |
diff --git a/arch/tile/kernel/kgdb.c b/arch/tile/kernel/kgdb.c index a506c2c28943..9247d6b562f4 100644 --- a/arch/tile/kernel/kgdb.c +++ b/arch/tile/kernel/kgdb.c | |||
| @@ -126,15 +126,15 @@ void | |||
| 126 | sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) | 126 | sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) |
| 127 | { | 127 | { |
| 128 | struct pt_regs *thread_regs; | 128 | struct pt_regs *thread_regs; |
| 129 | const int NGPRS = TREG_LAST_GPR + 1; | ||
| 129 | 130 | ||
| 130 | if (task == NULL) | 131 | if (task == NULL) |
| 131 | return; | 132 | return; |
| 132 | 133 | ||
| 133 | /* Initialize to zero. */ | ||
| 134 | memset(gdb_regs, 0, NUMREGBYTES); | ||
| 135 | |||
| 136 | thread_regs = task_pt_regs(task); | 134 | thread_regs = task_pt_regs(task); |
| 137 | memcpy(gdb_regs, thread_regs, TREG_LAST_GPR * sizeof(unsigned long)); | 135 | memcpy(gdb_regs, thread_regs, NGPRS * sizeof(unsigned long)); |
| 136 | memset(&gdb_regs[NGPRS], 0, | ||
| 137 | (TILEGX_PC_REGNUM - NGPRS) * sizeof(unsigned long)); | ||
| 138 | gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; | 138 | gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; |
| 139 | gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum; | 139 | gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum; |
| 140 | } | 140 | } |
| @@ -433,9 +433,9 @@ int kgdb_arch_handle_exception(int vector, int signo, int err_code, | |||
| 433 | struct kgdb_arch arch_kgdb_ops; | 433 | struct kgdb_arch arch_kgdb_ops; |
| 434 | 434 | ||
| 435 | /* | 435 | /* |
| 436 | * kgdb_arch_init - Perform any architecture specific initalization. | 436 | * kgdb_arch_init - Perform any architecture specific initialization. |
| 437 | * | 437 | * |
| 438 | * This function will handle the initalization of any architecture | 438 | * This function will handle the initialization of any architecture |
| 439 | * specific callbacks. | 439 | * specific callbacks. |
| 440 | */ | 440 | */ |
| 441 | int kgdb_arch_init(void) | 441 | int kgdb_arch_init(void) |
| @@ -447,9 +447,9 @@ int kgdb_arch_init(void) | |||
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | /* | 449 | /* |
| 450 | * kgdb_arch_exit - Perform any architecture specific uninitalization. | 450 | * kgdb_arch_exit - Perform any architecture specific uninitialization. |
| 451 | * | 451 | * |
| 452 | * This function will handle the uninitalization of any architecture | 452 | * This function will handle the uninitialization of any architecture |
| 453 | * specific callbacks, for dynamic registration and unregistration. | 453 | * specific callbacks, for dynamic registration and unregistration. |
| 454 | */ | 454 | */ |
| 455 | void kgdb_arch_exit(void) | 455 | void kgdb_arch_exit(void) |
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index 4c017d0d2de8..aa2b44cd8fd3 100644 --- a/arch/tile/kernel/pci_gx.c +++ b/arch/tile/kernel/pci_gx.c | |||
| @@ -1326,7 +1326,7 @@ invalid_device: | |||
| 1326 | 1326 | ||
| 1327 | 1327 | ||
| 1328 | /* | 1328 | /* |
| 1329 | * See tile_cfg_read() for relevent comments. | 1329 | * See tile_cfg_read() for relevant comments. |
| 1330 | * Note that "val" is the value to write, not a pointer to that value. | 1330 | * Note that "val" is the value to write, not a pointer to that value. |
| 1331 | */ | 1331 | */ |
| 1332 | static int tile_cfg_write(struct pci_bus *bus, unsigned int devfn, int offset, | 1332 | static int tile_cfg_write(struct pci_bus *bus, unsigned int devfn, int offset, |
