Skip to content

Commit 1e876e3

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Martin Schwidefsky: "A couple of last-minute fixes: a build regression for !SMP, a recent memory detection patch caused kdump to break, a regression in regard to sscanf vs reboot from FCP, and two fixes in the DMA mapping code for PCI" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/ipl: Fix FCP WWPN and LUN format strings for read s390/mem_detect: fix memory hole handling s390/dma: support debug_dma_mapping_error s390/dma: fix mapping_error detection s390/irq: Only define synchronize_irq() on SMP
2 parents ad46547 + eda4ddf commit 1e876e3

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎arch/s390/include/asm/dma-mapping.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
5050
{
5151
struct dma_map_ops *dma_ops = get_dma_ops(dev);
5252

53+
debug_dma_mapping_error(dev, dma_addr);
5354
if (dma_ops->mapping_error)
5455
return dma_ops->mapping_error(dev, dma_addr);
55-
return (dma_addr == 0UL);
56+
return (dma_addr == DMA_ERROR_CODE);
5657
}
5758

5859
static inline void *dma_alloc_coherent(struct device *dev, size_t size,

‎arch/s390/kernel/ipl.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,9 @@ static struct bin_attribute sys_reipl_fcp_scp_data_attr = {
754754
.write = reipl_fcp_scpdata_write,
755755
};
756756

757-
DEFINE_IPL_ATTR_RW(reipl_fcp, wwpn, "0x%016llx\n", "%016llx\n",
757+
DEFINE_IPL_ATTR_RW(reipl_fcp, wwpn, "0x%016llx\n", "%llx\n",
758758
reipl_block_fcp->ipl_info.fcp.wwpn);
759-
DEFINE_IPL_ATTR_RW(reipl_fcp, lun, "0x%016llx\n", "%016llx\n",
759+
DEFINE_IPL_ATTR_RW(reipl_fcp, lun, "0x%016llx\n", "%llx\n",
760760
reipl_block_fcp->ipl_info.fcp.lun);
761761
DEFINE_IPL_ATTR_RW(reipl_fcp, bootprog, "%lld\n", "%lld\n",
762762
reipl_block_fcp->ipl_info.fcp.bootprog);
@@ -1323,9 +1323,9 @@ static struct shutdown_action __refdata reipl_action = {
13231323

13241324
/* FCP dump device attributes */
13251325

1326-
DEFINE_IPL_ATTR_RW(dump_fcp, wwpn, "0x%016llx\n", "%016llx\n",
1326+
DEFINE_IPL_ATTR_RW(dump_fcp, wwpn, "0x%016llx\n", "%llx\n",
13271327
dump_block_fcp->ipl_info.fcp.wwpn);
1328-
DEFINE_IPL_ATTR_RW(dump_fcp, lun, "0x%016llx\n", "%016llx\n",
1328+
DEFINE_IPL_ATTR_RW(dump_fcp, lun, "0x%016llx\n", "%llx\n",
13291329
dump_block_fcp->ipl_info.fcp.lun);
13301330
DEFINE_IPL_ATTR_RW(dump_fcp, bootprog, "%lld\n", "%lld\n",
13311331
dump_block_fcp->ipl_info.fcp.bootprog);

‎arch/s390/kernel/irq.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ void measurement_alert_subclass_unregister(void)
312312
}
313313
EXPORT_SYMBOL(measurement_alert_subclass_unregister);
314314

315+
#ifdef CONFIG_SMP
315316
void synchronize_irq(unsigned int irq)
316317
{
317318
/*
@@ -320,6 +321,7 @@ void synchronize_irq(unsigned int irq)
320321
*/
321322
}
322323
EXPORT_SYMBOL_GPL(synchronize_irq);
324+
#endif
323325

324326
#ifndef CONFIG_PCI
325327

‎arch/s390/mm/mem_detect.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ void create_mem_hole(struct mem_chunk mem_chunk[], unsigned long addr,
123123
continue;
124124
} else if ((addr <= chunk->addr) &&
125125
(addr + size >= chunk->addr + chunk->size)) {
126-
memset(chunk, 0 , sizeof(*chunk));
126+
memmove(chunk, chunk + 1, (MEMORY_CHUNKS-i-1) * sizeof(*chunk));
127+
memset(&mem_chunk[MEMORY_CHUNKS-1], 0, sizeof(*chunk));
127128
} else if (addr + size < chunk->addr + chunk->size) {
128129
chunk->size = chunk->addr + chunk->size - addr - size;
129130
chunk->addr = addr + size;

0 commit comments

Comments
 (0)