Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:5.12 commit in: /
Date: Wed, 07 Jul 2021 13:12:16
Message-Id: 1625663522.1543a4ff033001d8fec13c3222bdb05883fb220d.mpagano@gentoo
1 commit: 1543a4ff033001d8fec13c3222bdb05883fb220d
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 13:12:02 2021 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 13:12:02 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1543a4ff
7
8 Linuxpatch 5.12.15
9
10 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
11
12 0000_README | 4 ++
13 1014_linux-5.12.15.patch | 126 +++++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 130 insertions(+)
15
16 diff --git a/0000_README b/0000_README
17 index 96f1ac7..7954680 100644
18 --- a/0000_README
19 +++ b/0000_README
20 @@ -99,6 +99,10 @@ Patch: 1013_linux-5.12.14.patch
21 From: http://www.kernel.org
22 Desc: Linux 5.12.14
23
24 +Patch: 1014_linux-5.12.15.patch
25 +From: http://www.kernel.org
26 +Desc: Linux 5.12.15
27 +
28 Patch: 1500_XATTR_USER_PREFIX.patch
29 From: https://bugs.gentoo.org/show_bug.cgi?id=470644
30 Desc: Support for namespace user.pax.* on tmpfs.
31
32 diff --git a/1014_linux-5.12.15.patch b/1014_linux-5.12.15.patch
33 new file mode 100644
34 index 0000000..a027bec
35 --- /dev/null
36 +++ b/1014_linux-5.12.15.patch
37 @@ -0,0 +1,126 @@
38 +diff --git a/Makefile b/Makefile
39 +index 433f164f9ee0f..09e1a0967bab7 100644
40 +--- a/Makefile
41 ++++ b/Makefile
42 +@@ -1,7 +1,7 @@
43 + # SPDX-License-Identifier: GPL-2.0
44 + VERSION = 5
45 + PATCHLEVEL = 12
46 +-SUBLEVEL = 14
47 ++SUBLEVEL = 15
48 + EXTRAVERSION =
49 + NAME = Frozen Wasteland
50 +
51 +diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
52 +index eec2dcca2f390..ac7c786fa09f9 100644
53 +--- a/arch/x86/include/asm/kvm_host.h
54 ++++ b/arch/x86/include/asm/kvm_host.h
55 +@@ -307,6 +307,7 @@ union kvm_mmu_extended_role {
56 + unsigned int cr4_pke:1;
57 + unsigned int cr4_smap:1;
58 + unsigned int cr4_smep:1;
59 ++ unsigned int cr4_la57:1;
60 + unsigned int maxphyaddr:6;
61 + };
62 + };
63 +diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
64 +index 676ec0d1e6be4..fb2231cf19b5d 100644
65 +--- a/arch/x86/kvm/mmu/mmu.c
66 ++++ b/arch/x86/kvm/mmu/mmu.c
67 +@@ -4463,6 +4463,7 @@ static union kvm_mmu_extended_role kvm_calc_mmu_role_ext(struct kvm_vcpu *vcpu)
68 + ext.cr4_smap = !!kvm_read_cr4_bits(vcpu, X86_CR4_SMAP);
69 + ext.cr4_pse = !!is_pse(vcpu);
70 + ext.cr4_pke = !!kvm_read_cr4_bits(vcpu, X86_CR4_PKE);
71 ++ ext.cr4_la57 = !!kvm_read_cr4_bits(vcpu, X86_CR4_LA57);
72 + ext.maxphyaddr = cpuid_maxphyaddr(vcpu);
73 +
74 + ext.valid = 1;
75 +diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
76 +index e3607ec4c2e83..fb365aef336b5 100644
77 +--- a/drivers/gpio/Kconfig
78 ++++ b/drivers/gpio/Kconfig
79 +@@ -1361,6 +1361,7 @@ config GPIO_TPS68470
80 + config GPIO_TQMX86
81 + tristate "TQ-Systems QTMX86 GPIO"
82 + depends on MFD_TQMX86 || COMPILE_TEST
83 ++ depends on HAS_IOPORT_MAP
84 + select GPIOLIB_IRQCHIP
85 + help
86 + This driver supports GPIO on the TQMX86 IO controller.
87 +@@ -1428,6 +1429,7 @@ menu "PCI GPIO expanders"
88 + config GPIO_AMD8111
89 + tristate "AMD 8111 GPIO driver"
90 + depends on X86 || COMPILE_TEST
91 ++ depends on HAS_IOPORT_MAP
92 + help
93 + The AMD 8111 south bridge contains 32 GPIO pins which can be used.
94 +
95 +diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
96 +index 157106e1e4381..b9fdf05d76694 100644
97 +--- a/drivers/gpio/gpio-mxc.c
98 ++++ b/drivers/gpio/gpio-mxc.c
99 +@@ -334,7 +334,7 @@ static int mxc_gpio_init_gc(struct mxc_gpio_port *port, int irq_base)
100 + ct->chip.irq_unmask = irq_gc_mask_set_bit;
101 + ct->chip.irq_set_type = gpio_set_irq_type;
102 + ct->chip.irq_set_wake = gpio_set_wake_irq;
103 +- ct->chip.flags = IRQCHIP_MASK_ON_SUSPEND;
104 ++ ct->chip.flags = IRQCHIP_MASK_ON_SUSPEND | IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND;
105 + ct->regs.ack = GPIO_ISR;
106 + ct->regs.mask = GPIO_IMR;
107 +
108 +diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
109 +index f2720a0061993..0a47a2a5553d1 100644
110 +--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
111 ++++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
112 +@@ -549,7 +549,7 @@ nouveau_bo_sync_for_device(struct nouveau_bo *nvbo)
113 + struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm;
114 + int i, j;
115 +
116 +- if (!ttm_dma)
117 ++ if (!ttm_dma || !ttm_dma->dma_address)
118 + return;
119 + if (!ttm_dma->pages) {
120 + NV_DEBUG(drm, "ttm_dma 0x%p: pages NULL\n", ttm_dma);
121 +@@ -585,7 +585,7 @@ nouveau_bo_sync_for_cpu(struct nouveau_bo *nvbo)
122 + struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm;
123 + int i, j;
124 +
125 +- if (!ttm_dma)
126 ++ if (!ttm_dma || !ttm_dma->dma_address)
127 + return;
128 + if (!ttm_dma->pages) {
129 + NV_DEBUG(drm, "ttm_dma 0x%p: pages NULL\n", ttm_dma);
130 +diff --git a/drivers/s390/crypto/vfio_ap_ops.c b/drivers/s390/crypto/vfio_ap_ops.c
131 +index 6946a7e26eff7..ef5e792c665fd 100644
132 +--- a/drivers/s390/crypto/vfio_ap_ops.c
133 ++++ b/drivers/s390/crypto/vfio_ap_ops.c
134 +@@ -366,16 +366,6 @@ static int vfio_ap_mdev_remove(struct mdev_device *mdev)
135 + struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
136 +
137 + mutex_lock(&matrix_dev->lock);
138 +-
139 +- /*
140 +- * If the KVM pointer is in flux or the guest is running, disallow
141 +- * un-assignment of control domain.
142 +- */
143 +- if (matrix_mdev->kvm_busy || matrix_mdev->kvm) {
144 +- mutex_unlock(&matrix_dev->lock);
145 +- return -EBUSY;
146 +- }
147 +-
148 + vfio_ap_mdev_reset_queues(mdev);
149 + list_del(&matrix_mdev->node);
150 + kfree(matrix_mdev);
151 +diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
152 +index e4633b84c556a..7815ed642d434 100644
153 +--- a/drivers/scsi/sr.c
154 ++++ b/drivers/scsi/sr.c
155 +@@ -220,6 +220,8 @@ static unsigned int sr_get_events(struct scsi_device *sdev)
156 + return DISK_EVENT_EJECT_REQUEST;
157 + else if (med->media_event_code == 2)
158 + return DISK_EVENT_MEDIA_CHANGE;
159 ++ else if (med->media_event_code == 3)
160 ++ return DISK_EVENT_EJECT_REQUEST;
161 + return 0;
162 + }
163 +