Skip to content

Commit 9d588f6

Browse files
committed
Merge tag 's390-5.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Vasily Gorbik: - Fix panic in gup_fast on large pud by providing an implementation of pud_write. This has been overlooked during migration to common gup code. - Fix unexpected write combining on PCI stores. * tag 's390-5.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/pci: Fix unexpected write combine on resource s390/mm: fix panic in gup_fast on large pud
2 parents 5236647 + df057c9 commit 9d588f6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

arch/s390/include/asm/pgtable.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,12 @@ static inline int pmd_write(pmd_t pmd)
752752
return (pmd_val(pmd) & _SEGMENT_ENTRY_WRITE) != 0;
753753
}
754754

755+
#define pud_write pud_write
756+
static inline int pud_write(pud_t pud)
757+
{
758+
return (pud_val(pud) & _REGION3_ENTRY_WRITE) != 0;
759+
}
760+
755761
static inline int pmd_dirty(pmd_t pmd)
756762
{
757763
return (pmd_val(pmd) & _SEGMENT_ENTRY_DIRTY) != 0;

arch/s390/pci/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static void zpci_map_resources(struct pci_dev *pdev)
424424

425425
if (zpci_use_mio(zdev))
426426
pdev->resource[i].start =
427-
(resource_size_t __force) zdev->bars[i].mio_wb;
427+
(resource_size_t __force) zdev->bars[i].mio_wt;
428428
else
429429
pdev->resource[i].start = (resource_size_t __force)
430430
pci_iomap_range_fh(pdev, i, 0, 0);
@@ -531,7 +531,7 @@ static int zpci_setup_bus_resources(struct zpci_dev *zdev,
531531
flags |= IORESOURCE_MEM_64;
532532

533533
if (zpci_use_mio(zdev))
534-
addr = (unsigned long) zdev->bars[i].mio_wb;
534+
addr = (unsigned long) zdev->bars[i].mio_wt;
535535
else
536536
addr = ZPCI_ADDR(entry);
537537
size = 1UL << zdev->bars[i].size;

0 commit comments

Comments
 (0)