Skip to content

Commit 43f37c3

Browse files
committed
s390/pci_mmio: use follow_pfnmap API
jira LE-3557 Rebuild_History Non-Buildable kernel-5.14.0-570.26.1.el9_6 commit-author Peter Xu <[email protected]> commit bd8c2d1 Empty-Commit: Cherry-Pick Conflicts during history rebuild. Will be included in final tarball splat. Ref for failed cherry-pick at: ciq/ciq_backports/kernel-5.14.0-570.26.1.el9_6/bd8c2d18.failed Use the new API that can understand huge pfn mappings. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Cc: Niklas Schnelle <[email protected]> Cc: Gerald Schaefer <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Gavin Shan <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Sean Christopherson <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> (cherry picked from commit bd8c2d1) Signed-off-by: Jonathan Maple <[email protected]> # Conflicts: # arch/s390/pci/pci_mmio.c
1 parent ce993ca commit 43f37c3

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
s390/pci_mmio: use follow_pfnmap API
2+
3+
jira LE-3557
4+
Rebuild_History Non-Buildable kernel-5.14.0-570.26.1.el9_6
5+
commit-author Peter Xu <[email protected]>
6+
commit bd8c2d18bf5cccd8842d00b17d6f222beb98b1b3
7+
Empty-Commit: Cherry-Pick Conflicts during history rebuild.
8+
Will be included in final tarball splat. Ref for failed cherry-pick at:
9+
ciq/ciq_backports/kernel-5.14.0-570.26.1.el9_6/bd8c2d18.failed
10+
11+
Use the new API that can understand huge pfn mappings.
12+
13+
Link: https://lkml.kernel.org/r/[email protected]
14+
Signed-off-by: Peter Xu <[email protected]>
15+
Cc: Niklas Schnelle <[email protected]>
16+
Cc: Gerald Schaefer <[email protected]>
17+
Cc: Heiko Carstens <[email protected]>
18+
Cc: Vasily Gorbik <[email protected]>
19+
Cc: Alexander Gordeev <[email protected]>
20+
Cc: Christian Borntraeger <[email protected]>
21+
Cc: Sven Schnelle <[email protected]>
22+
Cc: Alex Williamson <[email protected]>
23+
Cc: Aneesh Kumar K.V <[email protected]>
24+
Cc: Borislav Petkov <[email protected]>
25+
Cc: Catalin Marinas <[email protected]>
26+
Cc: Dave Hansen <[email protected]>
27+
Cc: David Hildenbrand <[email protected]>
28+
Cc: Gavin Shan <[email protected]>
29+
Cc: Ingo Molnar <[email protected]>
30+
Cc: Jason Gunthorpe <[email protected]>
31+
Cc: Matthew Wilcox <[email protected]>
32+
Cc: Paolo Bonzini <[email protected]>
33+
Cc: Ryan Roberts <[email protected]>
34+
Cc: Sean Christopherson <[email protected]>
35+
Cc: Thomas Gleixner <[email protected]>
36+
Cc: Will Deacon <[email protected]>
37+
Cc: Zi Yan <[email protected]>
38+
Signed-off-by: Andrew Morton <[email protected]>
39+
(cherry picked from commit bd8c2d18bf5cccd8842d00b17d6f222beb98b1b3)
40+
Signed-off-by: Jonathan Maple <[email protected]>
41+
42+
# Conflicts:
43+
# arch/s390/pci/pci_mmio.c
44+
diff --cc arch/s390/pci/pci_mmio.c
45+
index 588089332931,de5c0b389a3e..000000000000
46+
--- a/arch/s390/pci/pci_mmio.c
47+
+++ b/arch/s390/pci/pci_mmio.c
48+
@@@ -169,7 -168,9 +168,13 @@@ SYSCALL_DEFINE3(s390_pci_mmio_write, un
49+
if (!(vma->vm_flags & VM_WRITE))
50+
goto out_unlock_mmap;
51+
52+
++<<<<<<< HEAD
53+
+ ret = follow_pte(vma->vm_mm, mmio_addr, &ptep, &ptl);
54+
++=======
55+
+ args.address = mmio_addr;
56+
+ args.vma = vma;
57+
+ ret = follow_pfnmap_start(&args);
58+
++>>>>>>> bd8c2d18bf5c (s390/pci_mmio: use follow_pfnmap API)
59+
if (ret)
60+
goto out_unlock_mmap;
61+
62+
@@@ -308,7 -308,9 +312,13 @@@ SYSCALL_DEFINE3(s390_pci_mmio_read, uns
63+
if (!(vma->vm_flags & VM_WRITE))
64+
goto out_unlock_mmap;
65+
66+
++<<<<<<< HEAD
67+
+ ret = follow_pte(vma->vm_mm, mmio_addr, &ptep, &ptl);
68+
++=======
69+
+ args.vma = vma;
70+
+ args.address = mmio_addr;
71+
+ ret = follow_pfnmap_start(&args);
72+
++>>>>>>> bd8c2d18bf5c (s390/pci_mmio: use follow_pfnmap API)
73+
if (ret)
74+
goto out_unlock_mmap;
75+
76+
* Unmerged path arch/s390/pci/pci_mmio.c

0 commit comments

Comments
 (0)