]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'topic/xive' (early part) into next
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 Apr 2017 12:25:02 +0000 (22:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 Apr 2017 12:31:37 +0000 (22:31 +1000)
This merges the arch part of the XIVE support, leaving the final commit
with the KVM specific pieces dangling on the branch for Paul to merge
via the kvm-ppc tree.

1  2 
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/kernel/irq.c
arch/powerpc/kvm/book3s_hv_rm_xics.c
arch/powerpc/kvm/book3s_xics.c
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/platforms/powernv/Kconfig
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/setup.c
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/xmon/xmon.c

index a599a2c893c3f4ca805081a12c23e9617275d2f8,bc8ac3c0e649891536d306e8f3935f3645b09f64..cb3e6242a78c51794e8d61e2a68e6621af8f549d
  #define OPAL_INT_SET_MFRR                     125
  #define OPAL_PCI_TCE_KILL                     126
  #define OPAL_NMMU_SET_PTCR                    127
 -#define OPAL_LAST                             144
+ #define OPAL_XIVE_RESET                               128
+ #define OPAL_XIVE_GET_IRQ_INFO                        129
+ #define OPAL_XIVE_GET_IRQ_CONFIG              130
+ #define OPAL_XIVE_SET_IRQ_CONFIG              131
+ #define OPAL_XIVE_GET_QUEUE_INFO              132
+ #define OPAL_XIVE_SET_QUEUE_INFO              133
+ #define OPAL_XIVE_DONATE_PAGE                 134
+ #define OPAL_XIVE_ALLOCATE_VP_BLOCK           135
+ #define OPAL_XIVE_FREE_VP_BLOCK                       136
+ #define OPAL_XIVE_GET_VP_INFO                 137
+ #define OPAL_XIVE_SET_VP_INFO                 138
+ #define OPAL_XIVE_ALLOCATE_IRQ                        139
+ #define OPAL_XIVE_FREE_IRQ                    140
+ #define OPAL_XIVE_SYNC                                141
+ #define OPAL_XIVE_DUMP                                142
+ #define OPAL_XIVE_RESERVED3                   143
+ #define OPAL_XIVE_RESERVED4                   144
 +#define OPAL_NPU_INIT_CONTEXT                 146
 +#define OPAL_NPU_DESTROY_CONTEXT              147
 +#define OPAL_NPU_MAP_LPAR                     148
 +#define OPAL_LAST                             148
  
  /* Device tree flags */
  
Simple merge
Simple merge
Simple merge
Simple merge
index 5e1527eea8f74305d98b1829e5510b0c597173c7,085605a731689223974ab98a8b4f1579fa3edad5..f620572f891f4ffdde6702f400158383bba5dd59
@@@ -292,6 -301,18 +292,21 @@@ OPAL_CALL(opal_int_eoi,                          OPAL_INT_EOI
  OPAL_CALL(opal_int_set_mfrr,                  OPAL_INT_SET_MFRR);
  OPAL_CALL(opal_pci_tce_kill,                  OPAL_PCI_TCE_KILL);
  OPAL_CALL(opal_nmmu_set_ptcr,                 OPAL_NMMU_SET_PTCR);
+ OPAL_CALL(opal_xive_reset,                    OPAL_XIVE_RESET);
+ OPAL_CALL(opal_xive_get_irq_info,             OPAL_XIVE_GET_IRQ_INFO);
+ OPAL_CALL(opal_xive_get_irq_config,           OPAL_XIVE_GET_IRQ_CONFIG);
+ OPAL_CALL(opal_xive_set_irq_config,           OPAL_XIVE_SET_IRQ_CONFIG);
+ OPAL_CALL(opal_xive_get_queue_info,           OPAL_XIVE_GET_QUEUE_INFO);
+ OPAL_CALL(opal_xive_set_queue_info,           OPAL_XIVE_SET_QUEUE_INFO);
+ OPAL_CALL(opal_xive_donate_page,              OPAL_XIVE_DONATE_PAGE);
+ OPAL_CALL(opal_xive_alloc_vp_block,           OPAL_XIVE_ALLOCATE_VP_BLOCK);
+ OPAL_CALL(opal_xive_free_vp_block,            OPAL_XIVE_FREE_VP_BLOCK);
+ OPAL_CALL(opal_xive_allocate_irq,             OPAL_XIVE_ALLOCATE_IRQ);
+ OPAL_CALL(opal_xive_free_irq,                 OPAL_XIVE_FREE_IRQ);
+ OPAL_CALL(opal_xive_get_vp_info,              OPAL_XIVE_GET_VP_INFO);
+ OPAL_CALL(opal_xive_set_vp_info,              OPAL_XIVE_SET_VP_INFO);
+ OPAL_CALL(opal_xive_sync,                     OPAL_XIVE_SYNC);
+ OPAL_CALL(opal_xive_dump,                     OPAL_XIVE_DUMP);
 +OPAL_CALL(opal_npu_init_context,              OPAL_NPU_INIT_CONTEXT);
 +OPAL_CALL(opal_npu_destroy_context,           OPAL_NPU_DESTROY_CONTEXT);
 +OPAL_CALL(opal_npu_map_lpar,                  OPAL_NPU_MAP_LPAR);
Simple merge
index fddc857af7724b3c5bd4242fe3c181e2921781ca,67435b9bf98d0657fbf494f8e7289aee8cb261e5..f77a104abf9fb9f852e8e173e403100c9a2af810
@@@ -29,8 -29,8 +29,9 @@@
  #include <linux/nmi.h>
  #include <linux/ctype.h>
  
 +#include <asm/debugfs.h>
  #include <asm/ptrace.h>
+ #include <asm/smp.h>
  #include <asm/string.h>
  #include <asm/prom.h>
  #include <asm/machdep.h>