Commit f154c806 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 's390-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull more s390 updates from Heiko Carstens:
 "Except for the xpram device driver removal it is all about fixes and
  cleanups.

   - Fix topology update on cpu hotplug, so notifiers see expected
     masks. This bug was uncovered with SCHED_CORE support.

   - Fix stack unwinding so that the correct number of entries are
     omitted like expected by common code. This fixes KCSAN selftests.

   - Add kmemleak annotation to stack_alloc to avoid false positive
     kmemleak warnings.

   - Avoid layering violation in common I/O code and don't unregister
     subchannel from child-drivers.

   - Remove xpram device driver for which no real use case exists since
     the kernel is 64 bit only. Also all hypervisors got required
     support removed in the meantime, which means the xpram device
     driver is dead code.

   - Fix -ENODEV handling of clp_get_state in our PCI code.

   - Enable KFENCE in debug defconfig.

   - Cleanup hugetlbfs s390 specific Kconfig dependency.

   - Quite a lot of trivial fixes to get rid of "W=1" warnings, and and
     other simple cleanups"

* tag 's390-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
  hugetlbfs: s390 is always 64bit
  s390/ftrace: remove incorrect __va usage
  s390/zcrypt: remove incorrect kernel doc indicators
  scsi: zfcp: fix kernel doc comments
  s390/sclp: add __nonstring annotation
  s390/hmcdrv_ftp: fix kernel doc comment
  s390: remove xpram device driver
  s390/pci: read clp_list_pci_req only once
  s390/pci: fix clp_get_state() handling of -ENODEV
  s390/cio: fix kernel doc comment
  s390/ctrlchar: fix kernel doc comment
  s390/con3270: use proper type for tasklet function
  s390/cpum_cf: move array from header to C file
  s390/mm: fix kernel doc comments
  s390/topology: fix topology information when calling cpu hotplug notifiers
  s390/unwind: use current_frame_address() to unwind current task
  s390/configs: enable CONFIG_KFENCE in debug_defconfig
  s390/entry: make oklabel within CHKSTG macro local
  s390: add kmemleak annotation in stack_alloc()
  s390/cio: dont unregister subchannel from child-drivers
parents 7b871c77 bb9c14ad
...@@ -110,6 +110,7 @@ config S390 ...@@ -110,6 +110,7 @@ config S390
select ARCH_STACKWALK select ARCH_STACKWALK
select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_ATOMIC_RMW
select ARCH_SUPPORTS_DEBUG_PAGEALLOC select ARCH_SUPPORTS_DEBUG_PAGEALLOC
select ARCH_SUPPORTS_HUGETLBFS
select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_SUPPORTS_NUMA_BALANCING
select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_BUILTIN_BSWAP
select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_CMPXCHG_LOCKREF
......
...@@ -804,6 +804,7 @@ CONFIG_DEBUG_VM_PGFLAGS=y ...@@ -804,6 +804,7 @@ CONFIG_DEBUG_VM_PGFLAGS=y
CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m
CONFIG_DEBUG_PER_CPU_MAPS=y CONFIG_DEBUG_PER_CPU_MAPS=y
CONFIG_KFENCE=y
CONFIG_DEBUG_SHIRQ=y CONFIG_DEBUG_SHIRQ=y
CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS=y
CONFIG_DETECT_HUNG_TASK=y CONFIG_DETECT_HUNG_TASK=y
......
...@@ -397,7 +397,6 @@ CONFIG_BLK_DEV_DRBD=m ...@@ -397,7 +397,6 @@ CONFIG_BLK_DEV_DRBD=m
CONFIG_BLK_DEV_NBD=m CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=32768 CONFIG_BLK_DEV_RAM_SIZE=32768
# CONFIG_BLK_DEV_XPRAM is not set
CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_BLK=y
CONFIG_BLK_DEV_RBD=m CONFIG_BLK_DEV_RBD=m
CONFIG_BLK_DEV_NVME=m CONFIG_BLK_DEV_NVME=m
......
...@@ -35,7 +35,6 @@ CONFIG_NET=y ...@@ -35,7 +35,6 @@ CONFIG_NET=y
# CONFIG_ETHTOOL_NETLINK is not set # CONFIG_ETHTOOL_NETLINK is not set
CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS=y
CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM=y
# CONFIG_BLK_DEV_XPRAM is not set
# CONFIG_DCSSBLK is not set # CONFIG_DCSSBLK is not set
# CONFIG_DASD is not set # CONFIG_DASD is not set
CONFIG_ENCLOSURE_SERVICES=y CONFIG_ENCLOSURE_SERVICES=y
......
...@@ -24,13 +24,6 @@ enum cpumf_ctr_set { ...@@ -24,13 +24,6 @@ enum cpumf_ctr_set {
#define CPUMF_LCCTL_ENABLE_SHIFT 16 #define CPUMF_LCCTL_ENABLE_SHIFT 16
#define CPUMF_LCCTL_ACTCTL_SHIFT 0 #define CPUMF_LCCTL_ACTCTL_SHIFT 0
static const u64 cpumf_ctr_ctl[CPUMF_CTR_SET_MAX] = {
[CPUMF_CTR_SET_BASIC] = 0x02,
[CPUMF_CTR_SET_USER] = 0x04,
[CPUMF_CTR_SET_CRYPTO] = 0x08,
[CPUMF_CTR_SET_EXT] = 0x01,
[CPUMF_CTR_SET_MT_DIAG] = 0x20,
};
static inline void ctr_set_enable(u64 *state, u64 ctrsets) static inline void ctr_set_enable(u64 *state, u64 ctrsets)
{ {
......
...@@ -18,6 +18,7 @@ extern struct mutex smp_cpu_state_mutex; ...@@ -18,6 +18,7 @@ extern struct mutex smp_cpu_state_mutex;
extern unsigned int smp_cpu_mt_shift; extern unsigned int smp_cpu_mt_shift;
extern unsigned int smp_cpu_mtid; extern unsigned int smp_cpu_mtid;
extern __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS]; extern __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS];
extern cpumask_t cpu_setup_mask;
extern int __cpu_up(unsigned int cpu, struct task_struct *tidle); extern int __cpu_up(unsigned int cpu, struct task_struct *tidle);
......
...@@ -34,16 +34,6 @@ static inline bool on_stack(struct stack_info *info, ...@@ -34,16 +34,6 @@ static inline bool on_stack(struct stack_info *info,
return addr >= info->begin && addr + len <= info->end; return addr >= info->begin && addr + len <= info->end;
} }
static __always_inline unsigned long get_stack_pointer(struct task_struct *task,
struct pt_regs *regs)
{
if (regs)
return (unsigned long) kernel_stack_pointer(regs);
if (task == current)
return current_stack_pointer();
return (unsigned long) task->thread.ksp;
}
/* /*
* Stack layout of a C stack frame. * Stack layout of a C stack frame.
*/ */
...@@ -74,6 +64,16 @@ struct stack_frame { ...@@ -74,6 +64,16 @@ struct stack_frame {
((unsigned long)__builtin_frame_address(0) - \ ((unsigned long)__builtin_frame_address(0) - \
offsetof(struct stack_frame, back_chain)) offsetof(struct stack_frame, back_chain))
static __always_inline unsigned long get_stack_pointer(struct task_struct *task,
struct pt_regs *regs)
{
if (regs)
return (unsigned long)kernel_stack_pointer(regs);
if (task == current)
return current_frame_address();
return (unsigned long)task->thread.ksp;
}
/* /*
* To keep this simple mark register 2-6 as being changed (volatile) * To keep this simple mark register 2-6 as being changed (volatile)
* by the called function, even though register 6 is saved/nonvolatile. * by the called function, even though register 6 is saved/nonvolatile.
......
...@@ -55,10 +55,10 @@ static inline bool unwind_error(struct unwind_state *state) ...@@ -55,10 +55,10 @@ static inline bool unwind_error(struct unwind_state *state)
return state->error; return state->error;
} }
static inline void unwind_start(struct unwind_state *state, static __always_inline void unwind_start(struct unwind_state *state,
struct task_struct *task, struct task_struct *task,
struct pt_regs *regs, struct pt_regs *regs,
unsigned long first_frame) unsigned long first_frame)
{ {
task = task ?: current; task = task ?: current;
first_frame = first_frame ?: get_stack_pointer(task, regs); first_frame = first_frame ?: get_stack_pointer(task, regs);
......
...@@ -140,10 +140,10 @@ _LPP_OFFSET = __LC_LPP ...@@ -140,10 +140,10 @@ _LPP_OFFSET = __LC_LPP
TSTMSK __LC_MCCK_CODE,(MCCK_CODE_STG_ERROR|MCCK_CODE_STG_KEY_ERROR) TSTMSK __LC_MCCK_CODE,(MCCK_CODE_STG_ERROR|MCCK_CODE_STG_KEY_ERROR)
jnz \errlabel jnz \errlabel
TSTMSK __LC_MCCK_CODE,MCCK_CODE_STG_DEGRAD TSTMSK __LC_MCCK_CODE,MCCK_CODE_STG_DEGRAD
jz oklabel\@ jz .Loklabel\@
TSTMSK __LC_MCCK_CODE,MCCK_CODE_STG_FAIL_ADDR TSTMSK __LC_MCCK_CODE,MCCK_CODE_STG_FAIL_ADDR
jnz \errlabel jnz \errlabel
oklabel\@: .Loklabel\@:
.endm .endm
#if IS_ENABLED(CONFIG_KVM) #if IS_ENABLED(CONFIG_KVM)
......
...@@ -341,13 +341,13 @@ NOKPROBE_SYMBOL(prepare_ftrace_return); ...@@ -341,13 +341,13 @@ NOKPROBE_SYMBOL(prepare_ftrace_return);
*/ */
int ftrace_enable_ftrace_graph_caller(void) int ftrace_enable_ftrace_graph_caller(void)
{ {
brcl_disable(__va(ftrace_graph_caller)); brcl_disable(ftrace_graph_caller);
return 0; return 0;
} }
int ftrace_disable_ftrace_graph_caller(void) int ftrace_disable_ftrace_graph_caller(void)
{ {
brcl_enable(__va(ftrace_graph_caller)); brcl_enable(ftrace_graph_caller);
return 0; return 0;
} }
......
...@@ -158,6 +158,14 @@ static size_t cfdiag_getctrset(struct cf_ctrset_entry *ctrdata, int ctrset, ...@@ -158,6 +158,14 @@ static size_t cfdiag_getctrset(struct cf_ctrset_entry *ctrdata, int ctrset,
return need; return need;
} }
static const u64 cpumf_ctr_ctl[CPUMF_CTR_SET_MAX] = {
[CPUMF_CTR_SET_BASIC] = 0x02,
[CPUMF_CTR_SET_USER] = 0x04,
[CPUMF_CTR_SET_CRYPTO] = 0x08,
[CPUMF_CTR_SET_EXT] = 0x01,
[CPUMF_CTR_SET_MT_DIAG] = 0x20,
};
/* Read out all counter sets and save them in the provided data buffer. /* Read out all counter sets and save them in the provided data buffer.
* The last 64 byte host an artificial trailer entry. * The last 64 byte host an artificial trailer entry.
*/ */
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include <linux/compat.h> #include <linux/compat.h>
#include <linux/start_kernel.h> #include <linux/start_kernel.h>
#include <linux/hugetlb.h> #include <linux/hugetlb.h>
#include <linux/kmemleak.h>
#include <asm/boot_data.h> #include <asm/boot_data.h>
#include <asm/ipl.h> #include <asm/ipl.h>
...@@ -356,9 +357,12 @@ void *restart_stack; ...@@ -356,9 +357,12 @@ void *restart_stack;
unsigned long stack_alloc(void) unsigned long stack_alloc(void)
{ {
#ifdef CONFIG_VMAP_STACK #ifdef CONFIG_VMAP_STACK
return (unsigned long)__vmalloc_node(THREAD_SIZE, THREAD_SIZE, void *ret;
THREADINFO_GFP, NUMA_NO_NODE,
__builtin_return_address(0)); ret = __vmalloc_node(THREAD_SIZE, THREAD_SIZE, THREADINFO_GFP,
NUMA_NO_NODE, __builtin_return_address(0));
kmemleak_not_leak(ret);
return (unsigned long)ret;
#else #else
return __get_free_pages(GFP_KERNEL, THREAD_SIZE_ORDER); return __get_free_pages(GFP_KERNEL, THREAD_SIZE_ORDER);
#endif #endif
......
...@@ -95,6 +95,7 @@ __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS]; ...@@ -95,6 +95,7 @@ __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS];
#endif #endif
static unsigned int smp_max_threads __initdata = -1U; static unsigned int smp_max_threads __initdata = -1U;
cpumask_t cpu_setup_mask;
static int __init early_nosmt(char *s) static int __init early_nosmt(char *s)
{ {
...@@ -902,13 +903,14 @@ static void smp_start_secondary(void *cpuvoid) ...@@ -902,13 +903,14 @@ static void smp_start_secondary(void *cpuvoid)
vtime_init(); vtime_init();
vdso_getcpu_init(); vdso_getcpu_init();
pfault_init(); pfault_init();
cpumask_set_cpu(cpu, &cpu_setup_mask);
update_cpu_masks();
notify_cpu_starting(cpu); notify_cpu_starting(cpu);
if (topology_cpu_dedicated(cpu)) if (topology_cpu_dedicated(cpu))
set_cpu_flag(CIF_DEDICATED_CPU); set_cpu_flag(CIF_DEDICATED_CPU);
else else
clear_cpu_flag(CIF_DEDICATED_CPU); clear_cpu_flag(CIF_DEDICATED_CPU);
set_cpu_online(cpu, true); set_cpu_online(cpu, true);
update_cpu_masks();
inc_irq_stat(CPU_RST); inc_irq_stat(CPU_RST);
local_irq_enable(); local_irq_enable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE); cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
...@@ -950,10 +952,13 @@ early_param("possible_cpus", _setup_possible_cpus); ...@@ -950,10 +952,13 @@ early_param("possible_cpus", _setup_possible_cpus);
int __cpu_disable(void) int __cpu_disable(void)
{ {
unsigned long cregs[16]; unsigned long cregs[16];
int cpu;
/* Handle possible pending IPIs */ /* Handle possible pending IPIs */
smp_handle_ext_call(); smp_handle_ext_call();
set_cpu_online(smp_processor_id(), false); cpu = smp_processor_id();
set_cpu_online(cpu, false);
cpumask_clear_cpu(cpu, &cpu_setup_mask);
update_cpu_masks(); update_cpu_masks();
/* Disable pseudo page faults on this cpu. */ /* Disable pseudo page faults on this cpu. */
pfault_fini(); pfault_fini();
......
...@@ -67,7 +67,7 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c ...@@ -67,7 +67,7 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c
static cpumask_t mask; static cpumask_t mask;
cpumask_clear(&mask); cpumask_clear(&mask);
if (!cpu_online(cpu)) if (!cpumask_test_cpu(cpu, &cpu_setup_mask))
goto out; goto out;
cpumask_set_cpu(cpu, &mask); cpumask_set_cpu(cpu, &mask);
switch (topology_mode) { switch (topology_mode) {
...@@ -88,7 +88,7 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c ...@@ -88,7 +88,7 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c
case TOPOLOGY_MODE_SINGLE: case TOPOLOGY_MODE_SINGLE:
break; break;
} }
cpumask_and(&mask, &mask, cpu_online_mask); cpumask_and(&mask, &mask, &cpu_setup_mask);
out: out:
cpumask_copy(dst, &mask); cpumask_copy(dst, &mask);
} }
...@@ -99,16 +99,16 @@ static void cpu_thread_map(cpumask_t *dst, unsigned int cpu) ...@@ -99,16 +99,16 @@ static void cpu_thread_map(cpumask_t *dst, unsigned int cpu)
int i; int i;
cpumask_clear(&mask); cpumask_clear(&mask);
if (!cpu_online(cpu)) if (!cpumask_test_cpu(cpu, &cpu_setup_mask))
goto out; goto out;
cpumask_set_cpu(cpu, &mask); cpumask_set_cpu(cpu, &mask);
if (topology_mode != TOPOLOGY_MODE_HW) if (topology_mode != TOPOLOGY_MODE_HW)
goto out; goto out;
cpu -= cpu % (smp_cpu_mtid + 1); cpu -= cpu % (smp_cpu_mtid + 1);
for (i = 0; i <= smp_cpu_mtid; i++) for (i = 0; i <= smp_cpu_mtid; i++) {
if (cpu_present(cpu + i)) if (cpumask_test_cpu(cpu + i, &cpu_setup_mask))
cpumask_set_cpu(cpu + i, &mask); cpumask_set_cpu(cpu + i, &mask);
cpumask_and(&mask, &mask, cpu_online_mask); }
out: out:
cpumask_copy(dst, &mask); cpumask_copy(dst, &mask);
} }
...@@ -569,6 +569,7 @@ void __init topology_init_early(void) ...@@ -569,6 +569,7 @@ void __init topology_init_early(void)
alloc_masks(info, &book_info, 2); alloc_masks(info, &book_info, 2);
alloc_masks(info, &drawer_info, 3); alloc_masks(info, &drawer_info, 3);
out: out:
cpumask_set_cpu(0, &cpu_setup_mask);
__arch_update_cpu_topology(); __arch_update_cpu_topology();
__arch_update_dedicated_flag(NULL); __arch_update_dedicated_flag(NULL);
} }
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
/** /**
* gmap_alloc - allocate and initialize a guest address space * gmap_alloc - allocate and initialize a guest address space
* @mm: pointer to the parent mm_struct
* @limit: maximum address of the gmap address space * @limit: maximum address of the gmap address space
* *
* Returns a guest address space structure. * Returns a guest address space structure.
...@@ -504,7 +503,7 @@ EXPORT_SYMBOL_GPL(gmap_translate); ...@@ -504,7 +503,7 @@ EXPORT_SYMBOL_GPL(gmap_translate);
/** /**
* gmap_unlink - disconnect a page table from the gmap shadow tables * gmap_unlink - disconnect a page table from the gmap shadow tables
* @gmap: pointer to guest mapping meta data structure * @mm: pointer to the parent mm_struct
* @table: pointer to the host page table * @table: pointer to the host page table
* @vmaddr: vm address associated with the host page table * @vmaddr: vm address associated with the host page table
*/ */
...@@ -527,7 +526,7 @@ static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *old, pmd_t new, ...@@ -527,7 +526,7 @@ static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *old, pmd_t new,
unsigned long gaddr); unsigned long gaddr);
/** /**
* gmap_link - set up shadow page tables to connect a host to a guest address * __gmap_link - set up shadow page tables to connect a host to a guest address
* @gmap: pointer to guest mapping meta data structure * @gmap: pointer to guest mapping meta data structure
* @gaddr: guest address * @gaddr: guest address
* @vmaddr: vm address * @vmaddr: vm address
...@@ -1971,7 +1970,7 @@ int gmap_shadow_sgt(struct gmap *sg, unsigned long saddr, unsigned long sgt, ...@@ -1971,7 +1970,7 @@ int gmap_shadow_sgt(struct gmap *sg, unsigned long saddr, unsigned long sgt,
EXPORT_SYMBOL_GPL(gmap_shadow_sgt); EXPORT_SYMBOL_GPL(gmap_shadow_sgt);
/** /**
* gmap_shadow_lookup_pgtable - find a shadow page table * gmap_shadow_pgt_lookup - find a shadow page table
* @sg: pointer to the shadow guest address space structure * @sg: pointer to the shadow guest address space structure
* @saddr: the address in the shadow aguest address space * @saddr: the address in the shadow aguest address space
* @pgt: parent gmap address of the page table to get shadowed * @pgt: parent gmap address of the page table to get shadowed
...@@ -2165,7 +2164,7 @@ int gmap_shadow_page(struct gmap *sg, unsigned long saddr, pte_t pte) ...@@ -2165,7 +2164,7 @@ int gmap_shadow_page(struct gmap *sg, unsigned long saddr, pte_t pte)
} }
EXPORT_SYMBOL_GPL(gmap_shadow_page); EXPORT_SYMBOL_GPL(gmap_shadow_page);
/** /*
* gmap_shadow_notify - handle notifications for shadow gmap * gmap_shadow_notify - handle notifications for shadow gmap
* *
* Called with sg->parent->shadow_lock. * Called with sg->parent->shadow_lock.
...@@ -2225,7 +2224,7 @@ static void gmap_shadow_notify(struct gmap *sg, unsigned long vmaddr, ...@@ -2225,7 +2224,7 @@ static void gmap_shadow_notify(struct gmap *sg, unsigned long vmaddr,
/** /**
* ptep_notify - call all invalidation callbacks for a specific pte. * ptep_notify - call all invalidation callbacks for a specific pte.
* @mm: pointer to the process mm_struct * @mm: pointer to the process mm_struct
* @addr: virtual address in the process address space * @vmaddr: virtual address in the process address space
* @pte: pointer to the page table entry * @pte: pointer to the page table entry
* @bits: bits from the pgste that caused the notify call * @bits: bits from the pgste that caused the notify call
* *
......
...@@ -834,7 +834,7 @@ int set_guest_storage_key(struct mm_struct *mm, unsigned long addr, ...@@ -834,7 +834,7 @@ int set_guest_storage_key(struct mm_struct *mm, unsigned long addr,
} }
EXPORT_SYMBOL(set_guest_storage_key); EXPORT_SYMBOL(set_guest_storage_key);
/** /*
* Conditionally set a guest storage key (handling csske). * Conditionally set a guest storage key (handling csske).
* oldkey will be updated when either mr or mc is set and a pointer is given. * oldkey will be updated when either mr or mc is set and a pointer is given.
* *
...@@ -867,7 +867,7 @@ int cond_set_guest_storage_key(struct mm_struct *mm, unsigned long addr, ...@@ -867,7 +867,7 @@ int cond_set_guest_storage_key(struct mm_struct *mm, unsigned long addr,
} }
EXPORT_SYMBOL(cond_set_guest_storage_key); EXPORT_SYMBOL(cond_set_guest_storage_key);
/** /*
* Reset a guest reference bit (rrbe), returning the reference and changed bit. * Reset a guest reference bit (rrbe), returning the reference and changed bit.
* *
* Returns < 0 in case of error, otherwise the cc to be reported to the guest. * Returns < 0 in case of error, otherwise the cc to be reported to the guest.
......
...@@ -383,8 +383,8 @@ static int clp_find_pci(struct clp_req_rsp_list_pci *rrb, u32 fid, ...@@ -383,8 +383,8 @@ static int clp_find_pci(struct clp_req_rsp_list_pci *rrb, u32 fid,
rc = clp_list_pci_req(rrb, &resume_token, &nentries); rc = clp_list_pci_req(rrb, &resume_token, &nentries);
if (rc) if (rc)
return rc; return rc;
fh_list = rrb->response.fh_list;
for (i = 0; i < nentries; i++) { for (i = 0; i < nentries; i++) {
fh_list = rrb->response.fh_list;
if (fh_list[i].fid == fid) { if (fh_list[i].fid == fid) {
*entry = fh_list[i]; *entry = fh_list[i];
return 0; return 0;
...@@ -449,14 +449,17 @@ int clp_get_state(u32 fid, enum zpci_state *state) ...@@ -449,14 +449,17 @@ int clp_get_state(u32 fid, enum zpci_state *state)
struct clp_fh_list_entry entry; struct clp_fh_list_entry entry;
int rc; int rc;
*state = ZPCI_FN_STATE_RESERVED;
rrb = clp_alloc_block(GFP_ATOMIC); rrb = clp_alloc_block(GFP_ATOMIC);
if (!rrb) if (!rrb)
return -ENOMEM; return -ENOMEM;
rc = clp_find_pci(rrb, fid, &entry); rc = clp_find_pci(rrb, fid, &entry);
if (!rc) if (!rc) {
*state = entry.config_state; *state = entry.config_state;
} else if (rc == -ENODEV) {
*state = ZPCI_FN_STATE_RESERVED;
rc = 0;
}
clp_free_block(rrb); clp_free_block(rrb);
return rc; return rc;
......
...@@ -2,17 +2,6 @@ ...@@ -2,17 +2,6 @@
comment "S/390 block device drivers" comment "S/390 block device drivers"
depends on S390 && BLOCK depends on S390 && BLOCK
config BLK_DEV_XPRAM
def_tristate m
prompt "XPRAM disk support"
depends on S390 && BLOCK
help
Select this option if you want to use your expanded storage on S/390
or zSeries as a disk. This is useful as a _fast_ swap device if you
want to access more than 2G of memory when running in 31 bit mode.
This option is also available as a module which will be called
xpram. If unsure, say "N".
config DCSSBLK config DCSSBLK
def_tristate m def_tristate m
select FS_DAX_LIMITED select FS_DAX_LIMITED
......
...@@ -16,7 +16,6 @@ obj-$(CONFIG_DASD) += dasd_mod.o ...@@ -16,7 +16,6 @@ obj-$(CONFIG_DASD) += dasd_mod.o
obj-$(CONFIG_DASD_DIAG) += dasd_diag_mod.o obj-$(CONFIG_DASD_DIAG) += dasd_diag_mod.o
obj-$(CONFIG_DASD_ECKD) += dasd_eckd_mod.o obj-$(CONFIG_DASD_ECKD) += dasd_eckd_mod.o
obj-$(CONFIG_DASD_FBA) += dasd_fba_mod.o obj-$(CONFIG_DASD_FBA) += dasd_fba_mod.o
obj-$(CONFIG_BLK_DEV_XPRAM) += xpram.o
obj-$(CONFIG_DCSSBLK) += dcssblk.o obj-$(CONFIG_DCSSBLK) += dcssblk.o
scm_block-objs := scm_drv.o scm_blk.o scm_block-objs := scm_drv.o scm_blk.o
......
This diff is collapsed.
...@@ -292,13 +292,15 @@ con3270_update(struct timer_list *t) ...@@ -292,13 +292,15 @@ con3270_update(struct timer_list *t)
* Read tasklet. * Read tasklet.
*/ */
static void static void
con3270_read_tasklet(struct raw3270_request *rrq) con3270_read_tasklet(unsigned long data)
{ {
static char kreset_data = TW_KR; static char kreset_data = TW_KR;
struct raw3270_request *rrq;
struct con3270 *cp; struct con3270 *cp;
unsigned long flags; unsigned long flags;
int nr_up, deactivate; int nr_up, deactivate;
rrq = (struct raw3270_request *)data;
cp = (struct con3270 *) rrq->view; cp = (struct con3270 *) rrq->view;
spin_lock_irqsave(&cp->view.lock, flags); spin_lock_irqsave(&cp->view.lock, flags);
nr_up = cp->nr_up; nr_up = cp->nr_up;
...@@ -625,8 +627,7 @@ con3270_init(void) ...@@ -625,8 +627,7 @@ con3270_init(void)
INIT_LIST_HEAD(&condev->lines); INIT_LIST_HEAD(&condev->lines);
INIT_LIST_HEAD(&condev->update); INIT_LIST_HEAD(&condev->update);
timer_setup(&condev->timer, con3270_update, 0); timer_setup(&condev->timer, con3270_update, 0);
tasklet_init(&condev->readlet, tasklet_init(&condev->readlet, con3270_read_tasklet,
(void (*)(unsigned long)) con3270_read_tasklet,
(unsigned long) condev->read); (unsigned long) condev->read);
raw3270_add_view(&condev->view, &con3270_fn, 1, RAW3270_VIEW_LOCK_IRQ); raw3270_add_view(&condev->view, &con3270_fn, 1, RAW3270_VIEW_LOCK_IRQ);
......
...@@ -34,12 +34,13 @@ void schedule_sysrq_work(struct sysrq_work *sw) ...@@ -34,12 +34,13 @@ void schedule_sysrq_work(struct sysrq_work *sw)
/** /**
* Check for special chars at start of input. * ctrlchar_handle - check for special chars at start of input
* *
* @param buf Console input buffer. * @buf: console input buffer
* @param len Length of valid data in buffer. * @len: length of valid data in buffer
* @param tty The tty struct for this console. * @tty: the tty struct for this console
* @return CTRLCHAR_NONE, if nothing matched, *
* Return: CTRLCHAR_NONE, if nothing matched,
* CTRLCHAR_SYSRQ, if sysrq was encountered * CTRLCHAR_SYSRQ, if sysrq was encountered
* otherwise char to be inserted logically or'ed * otherwise char to be inserted logically or'ed
* with CTRLCHAR_CTRL * with CTRLCHAR_CTRL
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* struct hmcdrv_ftp_ops - HMC drive FTP operations * struct hmcdrv_ftp_ops - HMC drive FTP operations
* @startup: startup function * @startup: startup function
* @shutdown: shutdown function * @shutdown: shutdown function
* @cmd: FTP transfer function * @transfer: FTP transfer function
*/ */
struct hmcdrv_ftp_ops { struct hmcdrv_ftp_ops {
int (*startup)(void); int (*startup)(void);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#define SCLP_HEADER "sclp: " #define SCLP_HEADER "sclp: "
struct sclp_trace_entry { struct sclp_trace_entry {
char id[4]; char id[4] __nonstring;
u32 a; u32 a;
u64 b; u64 b;
}; };
......
...@@ -262,7 +262,10 @@ static int blacklist_parse_proc_parameters(char *buf) ...@@ -262,7 +262,10 @@ static int blacklist_parse_proc_parameters(char *buf)
if (strcmp("free", parm) == 0) { if (strcmp("free", parm) == 0) {
rc = blacklist_parse_parameters(buf, free, 0); rc = blacklist_parse_parameters(buf, free, 0);
css_schedule_eval_all_unreg(0); /* There could be subchannels without proper devices connected.
* evaluate all the entries
*/
css_schedule_eval_all();
} else if (strcmp("add", parm) == 0) } else if (strcmp("add", parm) == 0)
rc = blacklist_parse_parameters(buf, add, 0); rc = blacklist_parse_parameters(buf, add, 0);
else if (strcmp("purge", parm) == 0) else if (strcmp("purge", parm) == 0)
......
...@@ -867,19 +867,6 @@ static void io_subchannel_register(struct ccw_device *cdev) ...@@ -867,19 +867,6 @@ static void io_subchannel_register(struct ccw_device *cdev)
wake_up(&ccw_device_init_wq); wake_up(&ccw_device_init_wq);
} }
static void ccw_device_call_sch_unregister(struct ccw_device *cdev)
{
struct subchannel *sch;
/* Get subchannel reference for local processing. */
if (!get_device(cdev->dev.parent))
return;
sch = to_subchannel(cdev->dev.parent);
css_sch_device_unregister(sch);
/* Release subchannel reference for local processing. */
put_device(&sch->dev);
}
/* /*
* subchannel recognition done. Called from the state machine. * subchannel recognition done. Called from the state machine.
*/ */
...@@ -1857,10 +1844,10 @@ static void ccw_device_todo(struct work_struct *work) ...@@ -1857,10 +1844,10 @@ static void ccw_device_todo(struct work_struct *work)
css_schedule_eval(sch->schid); css_schedule_eval(sch->schid);
fallthrough; fallthrough;
case CDEV_TODO_UNREG: case CDEV_TODO_UNREG:
if (sch_is_pseudo_sch(sch)) spin_lock_irq(sch->lock);
ccw_device_unregister(cdev); sch_set_cdev(sch, NULL);
else spin_unlock_irq(sch->lock);
ccw_device_call_sch_unregister(cdev); ccw_device_unregister(cdev);
break; break;
default: default:
break; break;
......
...@@ -91,7 +91,7 @@ static int diag210_to_senseid(struct senseid *senseid, struct diag210 *diag) ...@@ -91,7 +91,7 @@ static int diag210_to_senseid(struct senseid *senseid, struct diag210 *diag)
} }
/** /**
* diag_get_dev_info - retrieve device information via diag 0x210 * diag210_get_dev_info - retrieve device information via diag 0x210
* @cdev: ccw device * @cdev: ccw device
* *
* Returns zero on success, non-zero otherwise. * Returns zero on success, non-zero otherwise.
......
...@@ -71,7 +71,7 @@ static LIST_HEAD(zcrypt_ops_list); ...@@ -71,7 +71,7 @@ static LIST_HEAD(zcrypt_ops_list);
/* Zcrypt related debug feature stuff. */ /* Zcrypt related debug feature stuff. */
debug_info_t *zcrypt_dbf_info; debug_info_t *zcrypt_dbf_info;
/** /*
* Process a rescan of the transport layer. * Process a rescan of the transport layer.
* *
* Returns 1, if the rescan has been processed, otherwise 0. * Returns 1, if the rescan has been processed, otherwise 0.
...@@ -462,7 +462,7 @@ static void zcdn_destroy_all(void) ...@@ -462,7 +462,7 @@ static void zcdn_destroy_all(void)
#endif #endif
/** /*
* zcrypt_read (): Not supported beyond zcrypt 1.3.1. * zcrypt_read (): Not supported beyond zcrypt 1.3.1.
* *
* This function is not supported beyond zcrypt 1.3.1. * This function is not supported beyond zcrypt 1.3.1.
...@@ -473,7 +473,7 @@ static ssize_t zcrypt_read(struct file *filp, char __user *buf, ...@@ -473,7 +473,7 @@ static ssize_t zcrypt_read(struct file *filp, char __user *buf,
return -EPERM; return -EPERM;
} }
/** /*
* zcrypt_write(): Not allowed. * zcrypt_write(): Not allowed.
* *
* Write is is not allowed * Write is is not allowed
...@@ -484,7 +484,7 @@ static ssize_t zcrypt_write(struct file *filp, const char __user *buf, ...@@ -484,7 +484,7 @@ static ssize_t zcrypt_write(struct file *filp, const char __user *buf,
return -EPERM; return -EPERM;
} }
/** /*
* zcrypt_open(): Count number of users. * zcrypt_open(): Count number of users.
* *
* Device open function to count number of users. * Device open function to count number of users.
...@@ -512,7 +512,7 @@ static int zcrypt_open(struct inode *inode, struct file *filp) ...@@ -512,7 +512,7 @@ static int zcrypt_open(struct inode *inode, struct file *filp)
return stream_open(inode, filp); return stream_open(inode, filp);
} }
/** /*
* zcrypt_release(): Count number of users. * zcrypt_release(): Count number of users.
* *
* Device close function to count number of users. * Device close function to count number of users.
...@@ -2153,7 +2153,7 @@ static void zcdn_exit(void) ...@@ -2153,7 +2153,7 @@ static void zcdn_exit(void)
#endif #endif
/** /*
* zcrypt_api_init(): Module initialization. * zcrypt_api_init(): Module initialization.
* *
* The module initialization code. * The module initialization code.
...@@ -2191,7 +2191,7 @@ int __init zcrypt_api_init(void) ...@@ -2191,7 +2191,7 @@ int __init zcrypt_api_init(void)
return rc; return rc;
} }
/** /*
* zcrypt_api_exit(): Module termination. * zcrypt_api_exit(): Module termination.
* *
* The module termination code. * The module termination code.
......
...@@ -65,7 +65,7 @@ static struct ap_device_id zcrypt_cex2a_queue_ids[] = { ...@@ -65,7 +65,7 @@ static struct ap_device_id zcrypt_cex2a_queue_ids[] = {
MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_queue_ids); MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_queue_ids);
/** /*
* Probe function for CEX2A card devices. It always accepts the AP device * Probe function for CEX2A card devices. It always accepts the AP device
* since the bus_match already checked the card type. * since the bus_match already checked the card type.
* @ap_dev: pointer to the AP device. * @ap_dev: pointer to the AP device.
...@@ -124,7 +124,7 @@ static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev) ...@@ -124,7 +124,7 @@ static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX2A card driver information * This is called to remove the CEX2A card driver information
* if an AP card device is removed. * if an AP card device is removed.
*/ */
...@@ -142,7 +142,7 @@ static struct ap_driver zcrypt_cex2a_card_driver = { ...@@ -142,7 +142,7 @@ static struct ap_driver zcrypt_cex2a_card_driver = {
.flags = AP_DRIVER_FLAG_DEFAULT, .flags = AP_DRIVER_FLAG_DEFAULT,
}; };
/** /*
* Probe function for CEX2A queue devices. It always accepts the AP device * Probe function for CEX2A queue devices. It always accepts the AP device
* since the bus_match already checked the queue type. * since the bus_match already checked the queue type.
* @ap_dev: pointer to the AP device. * @ap_dev: pointer to the AP device.
...@@ -183,7 +183,7 @@ static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) ...@@ -183,7 +183,7 @@ static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX2A queue driver information * This is called to remove the CEX2A queue driver information
* if an AP queue device is removed. * if an AP queue device is removed.
*/ */
......
...@@ -171,7 +171,7 @@ static const struct attribute_group cca_queue_attr_grp = { ...@@ -171,7 +171,7 @@ static const struct attribute_group cca_queue_attr_grp = {
.attrs = cca_queue_attrs, .attrs = cca_queue_attrs,
}; };
/** /*
* Large random number detection function. Its sends a message to a CEX2C/CEX3C * Large random number detection function. Its sends a message to a CEX2C/CEX3C
* card to find out if large random numbers are supported. * card to find out if large random numbers are supported.
* @ap_dev: pointer to the AP device. * @ap_dev: pointer to the AP device.
...@@ -237,7 +237,7 @@ static int zcrypt_cex2c_rng_supported(struct ap_queue *aq) ...@@ -237,7 +237,7 @@ static int zcrypt_cex2c_rng_supported(struct ap_queue *aq)
return rc; return rc;
} }
/** /*
* Probe function for CEX2C/CEX3C card devices. It always accepts the * Probe function for CEX2C/CEX3C card devices. It always accepts the
* AP device since the bus_match already checked the hardware type. * AP device since the bus_match already checked the hardware type.
* @ap_dev: pointer to the AP card device. * @ap_dev: pointer to the AP card device.
...@@ -303,7 +303,7 @@ static int zcrypt_cex2c_card_probe(struct ap_device *ap_dev) ...@@ -303,7 +303,7 @@ static int zcrypt_cex2c_card_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX2C/CEX3C card driver information * This is called to remove the CEX2C/CEX3C card driver information
* if an AP card device is removed. * if an AP card device is removed.
*/ */
...@@ -325,7 +325,7 @@ static struct ap_driver zcrypt_cex2c_card_driver = { ...@@ -325,7 +325,7 @@ static struct ap_driver zcrypt_cex2c_card_driver = {
.flags = AP_DRIVER_FLAG_DEFAULT, .flags = AP_DRIVER_FLAG_DEFAULT,
}; };
/** /*
* Probe function for CEX2C/CEX3C queue devices. It always accepts the * Probe function for CEX2C/CEX3C queue devices. It always accepts the
* AP device since the bus_match already checked the hardware type. * AP device since the bus_match already checked the hardware type.
* @ap_dev: pointer to the AP card device. * @ap_dev: pointer to the AP card device.
...@@ -376,7 +376,7 @@ static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev) ...@@ -376,7 +376,7 @@ static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX2C/CEX3C queue driver information * This is called to remove the CEX2C/CEX3C queue driver information
* if an AP queue device is removed. * if an AP queue device is removed.
*/ */
......
...@@ -394,7 +394,7 @@ static const struct attribute_group ep11_queue_attr_grp = { ...@@ -394,7 +394,7 @@ static const struct attribute_group ep11_queue_attr_grp = {
.attrs = ep11_queue_attrs, .attrs = ep11_queue_attrs,
}; };
/** /*
* Probe function for CEX4/CEX5/CEX6/CEX7 card device. It always * Probe function for CEX4/CEX5/CEX6/CEX7 card device. It always
* accepts the AP device since the bus_match already checked * accepts the AP device since the bus_match already checked
* the hardware type. * the hardware type.
...@@ -562,7 +562,7 @@ static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) ...@@ -562,7 +562,7 @@ static int zcrypt_cex4_card_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX4/CEX5/CEX6/CEX7 card driver * This is called to remove the CEX4/CEX5/CEX6/CEX7 card driver
* information if an AP card device is removed. * information if an AP card device is removed.
*/ */
...@@ -586,7 +586,7 @@ static struct ap_driver zcrypt_cex4_card_driver = { ...@@ -586,7 +586,7 @@ static struct ap_driver zcrypt_cex4_card_driver = {
.flags = AP_DRIVER_FLAG_DEFAULT, .flags = AP_DRIVER_FLAG_DEFAULT,
}; };
/** /*
* Probe function for CEX4/CEX5/CEX6/CEX7 queue device. It always * Probe function for CEX4/CEX5/CEX6/CEX7 queue device. It always
* accepts the AP device since the bus_match already checked * accepts the AP device since the bus_match already checked
* the hardware type. * the hardware type.
...@@ -652,7 +652,7 @@ static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev) ...@@ -652,7 +652,7 @@ static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev)
return rc; return rc;
} }
/** /*
* This is called to remove the CEX4/CEX5/CEX6/CEX7 queue driver * This is called to remove the CEX4/CEX5/CEX6/CEX7 queue driver
* information if an AP queue device is removed. * information if an AP queue device is removed.
*/ */
......
...@@ -39,7 +39,7 @@ MODULE_DESCRIPTION("Cryptographic Accelerator (message type 50), " \ ...@@ -39,7 +39,7 @@ MODULE_DESCRIPTION("Cryptographic Accelerator (message type 50), " \
"Copyright IBM Corp. 2001, 2012"); "Copyright IBM Corp. 2001, 2012");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
/** /*
* The type 50 message family is associated with a CEXxA cards. * The type 50 message family is associated with a CEXxA cards.
* *
* The four members of the family are described below. * The four members of the family are described below.
...@@ -136,7 +136,7 @@ struct type50_crb3_msg { ...@@ -136,7 +136,7 @@ struct type50_crb3_msg {
unsigned char message[512]; unsigned char message[512];
} __packed; } __packed;
/** /*
* The type 80 response family is associated with a CEXxA cards. * The type 80 response family is associated with a CEXxA cards.
* *
* Note that all unsigned char arrays are right-justified and left-padded * Note that all unsigned char arrays are right-justified and left-padded
...@@ -188,7 +188,7 @@ unsigned int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *crt, int *fcode) ...@@ -188,7 +188,7 @@ unsigned int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *crt, int *fcode)
return 0; return 0;
} }
/** /*
* Convert a ICAMEX message to a type50 MEX message. * Convert a ICAMEX message to a type50 MEX message.
* *
* @zq: crypto queue pointer * @zq: crypto queue pointer
...@@ -255,7 +255,7 @@ static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq, ...@@ -255,7 +255,7 @@ static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Convert a ICACRT message to a type50 CRT message. * Convert a ICACRT message to a type50 CRT message.
* *
* @zq: crypto queue pointer * @zq: crypto queue pointer
...@@ -346,7 +346,7 @@ static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq, ...@@ -346,7 +346,7 @@ static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Copy results from a type 80 reply message back to user space. * Copy results from a type 80 reply message back to user space.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -418,7 +418,7 @@ static int convert_response_cex2a(struct zcrypt_queue *zq, ...@@ -418,7 +418,7 @@ static int convert_response_cex2a(struct zcrypt_queue *zq,
} }
} }
/** /*
* This function is called from the AP bus code after a crypto request * This function is called from the AP bus code after a crypto request
* "msg" has finished with the reply message "reply". * "msg" has finished with the reply message "reply".
* It is called from tasklet context. * It is called from tasklet context.
...@@ -457,7 +457,7 @@ static void zcrypt_cex2a_receive(struct ap_queue *aq, ...@@ -457,7 +457,7 @@ static void zcrypt_cex2a_receive(struct ap_queue *aq,
static atomic_t zcrypt_step = ATOMIC_INIT(0); static atomic_t zcrypt_step = ATOMIC_INIT(0);
/** /*
* The request distributor calls this function if it picked the CEXxA * The request distributor calls this function if it picked the CEXxA
* device to handle a modexpo request. * device to handle a modexpo request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -502,7 +502,7 @@ static long zcrypt_cex2a_modexpo(struct zcrypt_queue *zq, ...@@ -502,7 +502,7 @@ static long zcrypt_cex2a_modexpo(struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* The request distributor calls this function if it picked the CEXxA * The request distributor calls this function if it picked the CEXxA
* device to handle a modexpo_crt request. * device to handle a modexpo_crt request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -547,7 +547,7 @@ static long zcrypt_cex2a_modexpo_crt(struct zcrypt_queue *zq, ...@@ -547,7 +547,7 @@ static long zcrypt_cex2a_modexpo_crt(struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* The crypto operations for message type 50. * The crypto operations for message type 50.
*/ */
static struct zcrypt_ops zcrypt_msgtype50_ops = { static struct zcrypt_ops zcrypt_msgtype50_ops = {
......
...@@ -44,7 +44,7 @@ MODULE_DESCRIPTION("Cryptographic Coprocessor (message type 6), " \ ...@@ -44,7 +44,7 @@ MODULE_DESCRIPTION("Cryptographic Coprocessor (message type 6), " \
"Copyright IBM Corp. 2001, 2012"); "Copyright IBM Corp. 2001, 2012");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
/** /*
* CPRB * CPRB
* Note that all shorts, ints and longs are little-endian. * Note that all shorts, ints and longs are little-endian.
* All pointer fields are 32-bits long, and mean nothing * All pointer fields are 32-bits long, and mean nothing
...@@ -107,7 +107,7 @@ struct function_and_rules_block { ...@@ -107,7 +107,7 @@ struct function_and_rules_block {
unsigned char only_rule[8]; unsigned char only_rule[8];
} __packed; } __packed;
/** /*
* The following is used to initialize the CPRBX passed to the CEXxC/CEXxP * The following is used to initialize the CPRBX passed to the CEXxC/CEXxP
* card in a type6 message. The 3 fields that must be filled in at execution * card in a type6 message. The 3 fields that must be filled in at execution
* time are req_parml, rpl_parml and usage_domain. * time are req_parml, rpl_parml and usage_domain.
...@@ -236,7 +236,7 @@ int speed_idx_ep11(int req_type) ...@@ -236,7 +236,7 @@ int speed_idx_ep11(int req_type)
} }
/** /*
* Convert a ICAMEX message to a type6 MEX message. * Convert a ICAMEX message to a type6 MEX message.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -305,7 +305,7 @@ static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_queue *zq, ...@@ -305,7 +305,7 @@ static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Convert a ICACRT message to a type6 CRT message. * Convert a ICACRT message to a type6 CRT message.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -374,7 +374,7 @@ static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_queue *zq, ...@@ -374,7 +374,7 @@ static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Convert a XCRB message to a type6 CPRB message. * Convert a XCRB message to a type6 CPRB message.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -571,7 +571,7 @@ static int xcrb_msg_to_type6_ep11cprb_msgx(bool userspace, struct ap_message *ap ...@@ -571,7 +571,7 @@ static int xcrb_msg_to_type6_ep11cprb_msgx(bool userspace, struct ap_message *ap
return 0; return 0;
} }
/** /*
* Copy results from a type 86 ICA reply message back to user space. * Copy results from a type 86 ICA reply message back to user space.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -697,7 +697,7 @@ static int convert_type86_ica(struct zcrypt_queue *zq, ...@@ -697,7 +697,7 @@ static int convert_type86_ica(struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Copy results from a type 86 XCRB reply message back to user space. * Copy results from a type 86 XCRB reply message back to user space.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -728,7 +728,7 @@ static int convert_type86_xcrb(bool userspace, struct zcrypt_queue *zq, ...@@ -728,7 +728,7 @@ static int convert_type86_xcrb(bool userspace, struct zcrypt_queue *zq,
return 0; return 0;
} }
/** /*
* Copy results from a type 86 EP11 XCRB reply message back to user space. * Copy results from a type 86 EP11 XCRB reply message back to user space.
* *
* @zq: crypto device pointer * @zq: crypto device pointer
...@@ -911,7 +911,7 @@ static int convert_response_rng(struct zcrypt_queue *zq, ...@@ -911,7 +911,7 @@ static int convert_response_rng(struct zcrypt_queue *zq,
} }
} }
/** /*
* This function is called from the AP bus code after a crypto request * This function is called from the AP bus code after a crypto request
* "msg" has finished with the reply message "reply". * "msg" has finished with the reply message "reply".
* It is called from tasklet context. * It is called from tasklet context.
...@@ -966,7 +966,7 @@ static void zcrypt_msgtype6_receive(struct ap_queue *aq, ...@@ -966,7 +966,7 @@ static void zcrypt_msgtype6_receive(struct ap_queue *aq,
complete(&(resp_type->work)); complete(&(resp_type->work));
} }
/** /*
* This function is called from the AP bus code after a crypto request * This function is called from the AP bus code after a crypto request
* "msg" has finished with the reply message "reply". * "msg" has finished with the reply message "reply".
* It is called from tasklet context. * It is called from tasklet context.
...@@ -1015,7 +1015,7 @@ static void zcrypt_msgtype6_receive_ep11(struct ap_queue *aq, ...@@ -1015,7 +1015,7 @@ static void zcrypt_msgtype6_receive_ep11(struct ap_queue *aq,
static atomic_t zcrypt_step = ATOMIC_INIT(0); static atomic_t zcrypt_step = ATOMIC_INIT(0);
/** /*
* The request distributor calls this function if it picked the CEXxC * The request distributor calls this function if it picked the CEXxC
* device to handle a modexpo request. * device to handle a modexpo request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -1063,7 +1063,7 @@ static long zcrypt_msgtype6_modexpo(struct zcrypt_queue *zq, ...@@ -1063,7 +1063,7 @@ static long zcrypt_msgtype6_modexpo(struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* The request distributor calls this function if it picked the CEXxC * The request distributor calls this function if it picked the CEXxC
* device to handle a modexpo_crt request. * device to handle a modexpo_crt request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -1112,7 +1112,7 @@ static long zcrypt_msgtype6_modexpo_crt(struct zcrypt_queue *zq, ...@@ -1112,7 +1112,7 @@ static long zcrypt_msgtype6_modexpo_crt(struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* Fetch function code from cprb. * Fetch function code from cprb.
* Extracting the fc requires to copy the cprb from userspace. * Extracting the fc requires to copy the cprb from userspace.
* So this function allocates memory and needs an ap_msg prepared * So this function allocates memory and needs an ap_msg prepared
...@@ -1140,7 +1140,7 @@ unsigned int get_cprb_fc(bool userspace, struct ica_xcRB *xcRB, ...@@ -1140,7 +1140,7 @@ unsigned int get_cprb_fc(bool userspace, struct ica_xcRB *xcRB,
return XCRB_msg_to_type6CPRB_msgX(userspace, ap_msg, xcRB, func_code, dom); return XCRB_msg_to_type6CPRB_msgX(userspace, ap_msg, xcRB, func_code, dom);
} }
/** /*
* The request distributor calls this function if it picked the CEXxC * The request distributor calls this function if it picked the CEXxC
* device to handle a send_cprb request. * device to handle a send_cprb request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -1170,7 +1170,7 @@ static long zcrypt_msgtype6_send_cprb(bool userspace, struct zcrypt_queue *zq, ...@@ -1170,7 +1170,7 @@ static long zcrypt_msgtype6_send_cprb(bool userspace, struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* Fetch function code from ep11 cprb. * Fetch function code from ep11 cprb.
* Extracting the fc requires to copy the ep11 cprb from userspace. * Extracting the fc requires to copy the ep11 cprb from userspace.
* So this function allocates memory and needs an ap_msg prepared * So this function allocates memory and needs an ap_msg prepared
...@@ -1198,7 +1198,7 @@ unsigned int get_ep11cprb_fc(bool userspace, struct ep11_urb *xcrb, ...@@ -1198,7 +1198,7 @@ unsigned int get_ep11cprb_fc(bool userspace, struct ep11_urb *xcrb,
return xcrb_msg_to_type6_ep11cprb_msgx(userspace, ap_msg, xcrb, func_code); return xcrb_msg_to_type6_ep11cprb_msgx(userspace, ap_msg, xcrb, func_code);
} }
/** /*
* The request distributor calls this function if it picked the CEX4P * The request distributor calls this function if it picked the CEX4P
* device to handle a send_ep11_cprb request. * device to handle a send_ep11_cprb request.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -1228,7 +1228,7 @@ static long zcrypt_msgtype6_send_ep11_cprb(bool userspace, struct zcrypt_queue * ...@@ -1228,7 +1228,7 @@ static long zcrypt_msgtype6_send_ep11_cprb(bool userspace, struct zcrypt_queue *
} __packed * payload_hdr = NULL; } __packed * payload_hdr = NULL;
/** /*
* The target domain field within the cprb body/payload block will be * The target domain field within the cprb body/payload block will be
* replaced by the usage domain for non-management commands only. * replaced by the usage domain for non-management commands only.
* Therefore we check the first bit of the 'flags' parameter for * Therefore we check the first bit of the 'flags' parameter for
...@@ -1299,7 +1299,7 @@ unsigned int get_rng_fc(struct ap_message *ap_msg, int *func_code, ...@@ -1299,7 +1299,7 @@ unsigned int get_rng_fc(struct ap_message *ap_msg, int *func_code,
return 0; return 0;
} }
/** /*
* The request distributor calls this function if it picked the CEXxC * The request distributor calls this function if it picked the CEXxC
* device to generate random data. * device to generate random data.
* @zq: pointer to zcrypt_queue structure that identifies the * @zq: pointer to zcrypt_queue structure that identifies the
...@@ -1339,7 +1339,7 @@ static long zcrypt_msgtype6_rng(struct zcrypt_queue *zq, ...@@ -1339,7 +1339,7 @@ static long zcrypt_msgtype6_rng(struct zcrypt_queue *zq,
return rc; return rc;
} }
/** /*
* The crypto operations for a CEXxC card. * The crypto operations for a CEXxC card.
*/ */
static struct zcrypt_ops zcrypt_msgtype6_norng_ops = { static struct zcrypt_ops zcrypt_msgtype6_norng_ops = {
......
...@@ -766,7 +766,7 @@ static void zfcp_dbf_unregister(struct zfcp_dbf *dbf) ...@@ -766,7 +766,7 @@ static void zfcp_dbf_unregister(struct zfcp_dbf *dbf)
} }
/** /**
* zfcp_adapter_debug_register - registers debug feature for an adapter * zfcp_dbf_adapter_register - registers debug feature for an adapter
* @adapter: pointer to adapter for which debug features should be registered * @adapter: pointer to adapter for which debug features should be registered
* return: -ENOMEM on error, 0 otherwise * return: -ENOMEM on error, 0 otherwise
*/ */
...@@ -824,7 +824,7 @@ int zfcp_dbf_adapter_register(struct zfcp_adapter *adapter) ...@@ -824,7 +824,7 @@ int zfcp_dbf_adapter_register(struct zfcp_adapter *adapter)
} }
/** /**
* zfcp_adapter_debug_unregister - unregisters debug feature for an adapter * zfcp_dbf_adapter_unregister - unregisters debug feature for an adapter
* @adapter: pointer to adapter for which debug features should be unregistered * @adapter: pointer to adapter for which debug features should be unregistered
*/ */
void zfcp_dbf_adapter_unregister(struct zfcp_adapter *adapter) void zfcp_dbf_adapter_unregister(struct zfcp_adapter *adapter)
......
...@@ -2275,7 +2275,7 @@ static void zfcp_fsf_close_lun_handler(struct zfcp_fsf_req *req) ...@@ -2275,7 +2275,7 @@ static void zfcp_fsf_close_lun_handler(struct zfcp_fsf_req *req)
} }
/** /**
* zfcp_fsf_close_LUN - close LUN * zfcp_fsf_close_lun - close LUN
* @erp_action: pointer to erp_action triggering the "close LUN" * @erp_action: pointer to erp_action triggering the "close LUN"
* Returns: 0 on success, error otherwise * Returns: 0 on success, error otherwise
*/ */
......
...@@ -384,7 +384,7 @@ static int zfcp_qdio_allocate(struct zfcp_qdio *qdio) ...@@ -384,7 +384,7 @@ static int zfcp_qdio_allocate(struct zfcp_qdio *qdio)
} }
/** /**
* zfcp_close_qdio - close qdio queues for an adapter * zfcp_qdio_close - close qdio queues for an adapter
* @qdio: pointer to structure zfcp_qdio * @qdio: pointer to structure zfcp_qdio
*/ */
void zfcp_qdio_close(struct zfcp_qdio *qdio) void zfcp_qdio_close(struct zfcp_qdio *qdio)
......
...@@ -111,9 +111,9 @@ static void zfcp_unit_release(struct device *dev) ...@@ -111,9 +111,9 @@ static void zfcp_unit_release(struct device *dev)
} }
/** /**
* zfcp_unit_enqueue - enqueue unit to unit list of a port. * zfcp_unit_add - add unit to unit list of a port.
* @port: pointer to port where unit is added * @port: pointer to port where unit is added
* @fcp_lun: FCP LUN of unit to be enqueued * @fcp_lun: FCP LUN of unit to be added
* Returns: 0 success * Returns: 0 success
* *
* Sets up some unit internal structures and creates sysfs entry. * Sets up some unit internal structures and creates sysfs entry.
......
...@@ -234,8 +234,7 @@ config ARCH_SUPPORTS_HUGETLBFS ...@@ -234,8 +234,7 @@ config ARCH_SUPPORTS_HUGETLBFS
config HUGETLBFS config HUGETLBFS
bool "HugeTLB file system support" bool "HugeTLB file system support"
depends on X86 || IA64 || SPARC64 || (S390 && 64BIT) || \ depends on X86 || IA64 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN
ARCH_SUPPORTS_HUGETLBFS || BROKEN
help help
hugetlbfs is a filesystem backing for HugeTLB pages, based on hugetlbfs is a filesystem backing for HugeTLB pages, based on
ramfs. For architectures that support it, say Y here and read ramfs. For architectures that support it, say Y here and read
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment