Re: [PATCH 0/9] Clean up some old patches post F31

2019-08-15 Thread Peter Robinson
On Thu, 15 Aug 2019, 20:57 Laura Abbott,  wrote:

> I'd like to drop a bunch of patches Fedora has been carrying since
> forever. Most of these are fairly minor tweaks most people forgot
> we had and nobody cares about. My motivation is both in the spirit
> of cleaning up and also to better align Fedora + RHEL (I had a talk
> about this at Flock, video should be up soon).
>
> If someone wants to make an effort at upstreaming any of these, feel
> free to do so but I really think most of these are cruft.
>

I think all of these make sense, ultimately if they come up as an issue it
probably means there needs to be a discussion upstream to fix it properly
there.

It reminds me I've been meaning to do a similar review on some of the long
running but minor patches we have here for arm too.

Peter

Thanks,
> Laura
>
> Laura Abbott (9):
>   Drop namespaces config tweak
>   Drop cpumask auto select patch
>   Drop scsi warning patch
>   Remove ancient ath9k workaround
>   Drop old lis3 patch
>   Remove some old modalias adjustments
>   Remove old keyboard logging patch
>   Remove patch for GCC VTA
>   Remove crash driver
>
>  Kbuild-Add-an-option-to-enable-GCC-VTA.patch  |  94 ---
>  ath9k-rx-dma-stop-check.patch |  38 -
>  .../fedora/generic/x86/x86_64/CONFIG_NR_CPUS  |   2 +-
>  crash-driver.patch| 722 --
>  die-floppy-die.patch  |  29 -
>  input-kill-stupid-messages.patch  |  30 -
>  kernel.spec   |  20 -
>  ...-CPUMASK_OFFSTACK-usable-without-deb.patch |  34 -
>  lis3-improve-handling-of-null-rate.patch  |  75 --
>  namespaces-no-expert.patch|  27 -
>  no-pcspkr-modalias.patch  |  22 -
>  ...validate_disk-prevent-NULL-ptr-deref.patch |  39 -
>  12 files changed, 1 insertion(+), 1131 deletions(-)
>  delete mode 100644 Kbuild-Add-an-option-to-enable-GCC-VTA.patch
>  delete mode 100644 ath9k-rx-dma-stop-check.patch
>  delete mode 100644 crash-driver.patch
>  delete mode 100644 die-floppy-die.patch
>  delete mode 100644 input-kill-stupid-messages.patch
>  delete mode 100644
> lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
>  delete mode 100644 lis3-improve-handling-of-null-rate.patch
>  delete mode 100644 namespaces-no-expert.patch
>  delete mode 100644 no-pcspkr-modalias.patch
>  delete mode 100644 scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
>
> --
> 2.21.0
> ___
> kernel mailing list -- kernel@lists.fedoraproject.org
> To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
>
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 9/9] Remove crash driver

2019-08-15 Thread Laura Abbott
This has since been replaced by other in kernel pieces. We
can finally drop it.

Signed-off-by: Laura Abbott 
---
 crash-driver.patch | 722 -
 kernel.spec|   2 -
 2 files changed, 724 deletions(-)
 delete mode 100644 crash-driver.patch

diff --git a/crash-driver.patch b/crash-driver.patch
deleted file mode 100644
index 164dc90f5..0
--- a/crash-driver.patch
+++ /dev/null
@@ -1,722 +0,0 @@
-From 973e23bf27b0b2e5021321357fc570cccea3104c Mon Sep 17 00:00:00 2001
-From: Dave Anderson 
-Date: Tue, 26 Nov 2013 12:42:46 -0500
-Subject: [PATCH] crash-driver
-
-Bugzilla: N/A
-Upstream-status: Fedora mustard

- arch/arm/include/asm/crash-driver.h |   6 ++
- arch/arm64/include/asm/crash-driver.h   |   6 ++
- arch/ia64/include/asm/crash-driver.h|  90 ++
- arch/ia64/kernel/ia64_ksyms.c   |   3 +
- arch/powerpc/include/asm/crash-driver.h |   6 ++
- arch/s390/include/asm/crash-driver.h|  60 +++
- arch/s390/mm/maccess.c  |   2 +
- arch/x86/include/asm/crash-driver.h |   6 ++
- drivers/char/Kconfig|   3 +
- drivers/char/Makefile   |   2 +
- drivers/char/crash.c| 128 
- include/asm-generic/crash-driver.h  |  72 ++
- 12 files changed, 384 insertions(+)
- create mode 100644 arch/arm/include/asm/crash-driver.h
- create mode 100644 arch/arm64/include/asm/crash-driver.h
- create mode 100644 arch/ia64/include/asm/crash-driver.h
- create mode 100644 arch/powerpc/include/asm/crash-driver.h
- create mode 100644 arch/s390/include/asm/crash-driver.h
- create mode 100644 arch/x86/include/asm/crash-driver.h
- create mode 100644 drivers/char/crash.c
- create mode 100644 include/asm-generic/crash-driver.h
-
-diff --git a/arch/arm/include/asm/crash-driver.h 
b/arch/arm/include/asm/crash-driver.h
-new file mode 100644
-index 000..06e7ae9
 /dev/null
-+++ b/arch/arm/include/asm/crash-driver.h
-@@ -0,0 +1,6 @@
-+#ifndef _ARM_CRASH_H
-+#define _ARM_CRASH_H
-+
-+#include 
-+
-+#endif /* _ARM_CRASH_H */
-diff --git a/arch/arm64/include/asm/crash-driver.h 
b/arch/arm64/include/asm/crash-driver.h
-new file mode 100644
-index 000..43b26da
 /dev/null
-+++ b/arch/arm64/include/asm/crash-driver.h
-@@ -0,0 +1,6 @@
-+#ifndef _ARM64_CRASH_H
-+#define _ARM64_CRASH_H
-+
-+#include 
-+
-+#endif /* _ARM64_CRASH_H */
-diff --git a/arch/ia64/include/asm/crash-driver.h 
b/arch/ia64/include/asm/crash-driver.h
-new file mode 100644
-index 000..404bcb9
 /dev/null
-+++ b/arch/ia64/include/asm/crash-driver.h
-@@ -0,0 +1,90 @@
-+#ifndef _ASM_IA64_CRASH_H
-+#define _ASM_IA64_CRASH_H
-+
-+/*
-+ * linux/include/asm-ia64/crash-driver.h
-+ *
-+ * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2, or (at your option)
-+ * any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-+ *
-+ */
-+
-+#ifdef __KERNEL__
-+
-+#include 
-+#include 
-+#include 
-+
-+static inline void *
-+map_virtual(u64 offset, struct page **pp)
-+{
-+  struct page *page;
-+  unsigned long pfn;
-+  u32 type;
-+
-+  if (REGION_NUMBER(offset) == 5) {
-+  char byte;
-+
-+  if (__get_user(byte, (char *)offset) == 0)
-+  return (void *)offset;
-+  else
-+  return NULL;
-+  }
-+
-+  switch (type = efi_mem_type(offset))
-+  {
-+  case EFI_LOADER_CODE:
-+  case EFI_LOADER_DATA:
-+  case EFI_BOOT_SERVICES_CODE:
-+  case EFI_BOOT_SERVICES_DATA:
-+  case EFI_CONVENTIONAL_MEMORY:
-+  break;
-+
-+  default:
-+  printk(KERN_INFO
-+  "crash memory driver: invalid memory type for %lx: %d\n",
-+  offset, type);
-+  return NULL;
-+  }
-+
-+  pfn = offset >> PAGE_SHIFT;
-+
-+  if (!pfn_valid(pfn)) {
-+  printk(KERN_INFO
-+  "crash memory driver: invalid pfn: %lx )\n", pfn);
-+  return NULL;
-+  }
-+
-+  page = pfn_to_page(pfn);
-+
-+  if (!page->virtual) {
-+  printk(KERN_INFO
-+  "crash memory driver: offset: %lx page: %lx page->virtual: 
NULL\n",
-+  offset, (unsigned long)page);
-+  return NULL;
-+  }
-+
-+ 

[PATCH 8/9] Remove patch for GCC VTA

2019-08-15 Thread Laura Abbott
It's been years and gcc has changed a lot.

Signed-off-by: Laura Abbott 
---
 Kbuild-Add-an-option-to-enable-GCC-VTA.patch | 94 
 kernel.spec  |  2 -
 2 files changed, 96 deletions(-)
 delete mode 100644 Kbuild-Add-an-option-to-enable-GCC-VTA.patch

diff --git a/Kbuild-Add-an-option-to-enable-GCC-VTA.patch 
b/Kbuild-Add-an-option-to-enable-GCC-VTA.patch
deleted file mode 100644
index 6bbb0efdf..0
--- a/Kbuild-Add-an-option-to-enable-GCC-VTA.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From a446d2f94ce540689c7a46bf457d92409e9c4d7e Mon Sep 17 00:00:00 2001
-From: Josh Stone 
-Date: Fri, 21 Nov 2014 10:40:00 -0800
-Subject: [PATCH] Kbuild: Add an option to enable GCC VTA
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Due to recent codegen issues, gcc -fvar-tracking-assignments was
-unconditionally disabled in commit 2062afb4f804a ("Fix gcc-4.9.0
-miscompilation of load_balance() in scheduler").  However, this reduces
-the debuginfo coverage for variable locations, especially in inline
-functions.  VTA is certainly not perfect either in those cases, but it
-is much better than without.  With compiler versions that have fixed the
-codegen bugs, we would prefer to have the better details for SystemTap,
-and surely other debuginfo consumers like perf will benefit as well.
-
-This patch simply makes CONFIG_DEBUG_INFO_VTA an option.  I considered
-Frank and Linus's discussion of a cc-option-like -fcompare-debug test,
-but I'm convinced that a narrow test of an arch-specific codegen issue
-is not really useful.  GCC has their own regression tests for this, so
-I'd suggest GCC_COMPARE_DEBUG=-fvar-tracking-assignments-toggle is more
-useful for kernel developers to test confidence.
-
-In fact, I ran into a couple more issues when testing for this patch[1],
-although neither of those had any codegen impact.
- [1] https://bugzilla.redhat.com/show_bug.cgi?id=1140872
-
-With gcc-4.9.2-1.fc22, I can now build v3.18-rc5 with Fedora's i686 and
-x86_64 configs, and this is completely clean with GCC_COMPARE_DEBUG.
-
-Cc: Frank Ch. Eigler 
-Cc: Jakub Jelinek 
-Cc: Josh Boyer 
-Cc: Greg Kroah-Hartman 
-Cc: Linus Torvalds 
-Cc: Andrew Morton 
-Cc: Markus Trippelsdorf 
-Cc: Michel Dänzer 
-Signed-off-by: Josh Stone 
-Signed-off-by: Jeremy Cline 

- Makefile  |  4 
- lib/Kconfig.debug | 18 +-
- 2 files changed, 21 insertions(+), 1 deletion(-)
-
-diff --git a/Makefile b/Makefile
-index 9ef547fc7ffe..5777d902f8f3 100644
 a/Makefile
-+++ b/Makefile
-@@ -735,7 +735,11 @@ KBUILD_CFLAGS += -fomit-frame-pointer
- KBUILD_CFLAGS += -ftrivial-auto-var-init=pattern
- endif
- 
-+ifdef CONFIG_DEBUG_INFO_VTA
-+DEBUG_CFLAGS  += $(call cc-option, -fvar-tracking-assignments)
-+else
- DEBUG_CFLAGS  := $(call cc-option, -fno-var-tracking-assignments)
-+endif
- 
- ifdef CONFIG_DEBUG_INFO
- ifdef CONFIG_DEBUG_INFO_SPLIT
-diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
-index 0d9e81779e37..424206212931 100644
 a/lib/Kconfig.debug
-+++ b/lib/Kconfig.debug
-@@ -217,7 +217,23 @@ config DEBUG_INFO_DWARF4
- Generate dwarf4 debug info. This requires recent versions
- of gcc and gdb. It makes the debug information larger.
- But it significantly improves the success of resolving
--variables in gdb on optimized code.
-+variables in gdb on optimized code.  The gcc docs also
-+recommend enabling -fvar-tracking-assignments for maximum
-+benefit. (see DEBUG_INFO_VTA)
-+
-+config DEBUG_INFO_VTA
-+  bool "Enable var-tracking-assignments for debuginfo"
-+  depends on DEBUG_INFO
-+  help
-+Enable gcc -fvar-tracking-assignments for improved debug
-+information on variable locations in optimized code.  Per
-+gcc, DEBUG_INFO_DWARF4 is recommended for best use of VTA.
-+
-+VTA has been implicated in codegen bugs (gcc PR61801,
-+PR61904), so this may deserve some caution.  One can set
-+GCC_COMPARE_DEBUG=-fvar-tracking-assignments-toggle in the
-+environment to automatically compile everything both ways,
-+generating an error if anything differs.
- 
- config DEBUG_INFO_BTF
-   bool "Generate BTF typeinfo"
--- 
-2.20.1
-
diff --git a/kernel.spec b/kernel.spec
index e7e73d104..c91483f3d 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -495,8 +495,6 @@ Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz
 # Standalone patches
 # 100 - Generic long running patches
 
-Patch115: Kbuild-Add-an-option-to-enable-GCC-VTA.patch
-
 Patch116: crash-driver.patch
 
 Patch122: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List 

[PATCH 7/9] Remove old keyboard logging patch

2019-08-15 Thread Laura Abbott
Let's see if this results in flooding.

Signed-off-by: Laura Abbott 
---
 input-kill-stupid-messages.patch | 30 --
 kernel.spec  |  2 --
 2 files changed, 32 deletions(-)
 delete mode 100644 input-kill-stupid-messages.patch

diff --git a/input-kill-stupid-messages.patch b/input-kill-stupid-messages.patch
deleted file mode 100644
index 04205f857..0
--- a/input-kill-stupid-messages.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From: "kernel-t...@fedoraproject.org" 
-Date: Thu, 29 Jul 2010 16:46:31 -0700
-Subject: [PATCH] input: kill stupid messages
-
-Bugzilla: N/A
-Upstream-status: Fedora mustard

- drivers/input/keyboard/atkbd.c | 4 
- 1 file changed, 4 insertions(+)
-
-diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
-index ec876b5b1382..9d5216e23a09 100644
 a/drivers/input/keyboard/atkbd.c
-+++ b/drivers/input/keyboard/atkbd.c
-@@ -436,11 +436,15 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, 
unsigned char data,
-   goto out;
-   case ATKBD_RET_ACK:
-   case ATKBD_RET_NAK:
-+# if 0
-+  /* Quite a few key switchers and other tools trigger this
-+   * and it confuses people who can do nothing about it */
-   if (printk_ratelimit())
-   dev_warn(>dev,
-"Spurious %s on %s. "
-"Some program might be trying to access 
hardware directly.\n",
-data == ATKBD_RET_ACK ? "ACK" : "NAK", 
serio->phys);
-+#endif
-   goto out;
-   case ATKBD_RET_ERR:
-   atkbd->err_count++;
diff --git a/kernel.spec b/kernel.spec
index 0e9ba6be4..e7e73d104 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -495,8 +495,6 @@ Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz
 # Standalone patches
 # 100 - Generic long running patches
 
-Patch111: input-kill-stupid-messages.patch
-
 Patch115: Kbuild-Add-an-option-to-enable-GCC-VTA.patch
 
 Patch116: crash-driver.patch
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 6/9] Remove some old modalias adjustments

2019-08-15 Thread Laura Abbott
We've come a long way. Let's just leave these drivers alone.

Signed-off-by: Laura Abbott 
---
 die-floppy-die.patch | 29 -
 kernel.spec  |  4 
 no-pcspkr-modalias.patch | 22 --
 3 files changed, 55 deletions(-)
 delete mode 100644 die-floppy-die.patch
 delete mode 100644 no-pcspkr-modalias.patch

diff --git a/die-floppy-die.patch b/die-floppy-die.patch
deleted file mode 100644
index caaa2dde5..0
--- a/die-floppy-die.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Kyle McMartin 
-Date: Tue, 30 Mar 2010 00:04:29 -0400
-Subject: [PATCH] die-floppy-die
-
-Kill the floppy.ko pnp modalias. We were surviving just fine without
-autoloading floppy drivers, tyvm.
-
-Please feel free to register all complaints in the wastepaper bin.
-
-Bugzilla: N/A
-Upstream-status: Fedora mustard

- drivers/block/floppy.c | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
-index a08cda955285..e320e1e679cf 100644
 a/drivers/block/floppy.c
-+++ b/drivers/block/floppy.c
-@@ -4633,8 +4633,7 @@ static const struct pnp_device_id floppy_pnpids[] = {
-   {"PNP0700", 0},
-   {}
- };
--
--MODULE_DEVICE_TABLE(pnp, floppy_pnpids);
-+/* MODULE_DEVICE_TABLE(pnp, floppy_pnpids); */
- 
- #else
- 
diff --git a/kernel.spec b/kernel.spec
index 1a7af5cd4..0e9ba6be4 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -497,10 +497,6 @@ Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz
 
 Patch111: input-kill-stupid-messages.patch
 
-Patch112: die-floppy-die.patch
-
-Patch113: no-pcspkr-modalias.patch
-
 Patch115: Kbuild-Add-an-option-to-enable-GCC-VTA.patch
 
 Patch116: crash-driver.patch
diff --git a/no-pcspkr-modalias.patch b/no-pcspkr-modalias.patch
deleted file mode 100644
index 2ccd87202..0
--- a/no-pcspkr-modalias.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From: "kernel-t...@fedoraproject.org" 
-Date: Thu, 29 Jul 2010 16:46:31 -0700
-Subject: [PATCH] no pcspkr modalias
-
-Bugzilla: N/A
-Upstream-status: Fedora mustard

- drivers/input/misc/pcspkr.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c
-index 56ddba21de84..23534f420e68 100644
 a/drivers/input/misc/pcspkr.c
-+++ b/drivers/input/misc/pcspkr.c
-@@ -23,7 +23,6 @@
- MODULE_AUTHOR("Vojtech Pavlik ");
- MODULE_DESCRIPTION("PC Speaker beeper driver");
- MODULE_LICENSE("GPL");
--MODULE_ALIAS("platform:pcspkr");
-
- static int pcspkr_event(struct input_dev *dev, unsigned int type,
-   unsigned int code, int value)
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 4/9] Remove ancient ath9k workaround

2019-08-15 Thread Laura Abbott
It's been years. Let's see if we actually still need this.

Signed-off-by: Laura Abbott 
---
 ath9k-rx-dma-stop-check.patch | 38 ---
 kernel.spec   |  2 --
 2 files changed, 40 deletions(-)
 delete mode 100644 ath9k-rx-dma-stop-check.patch

diff --git a/ath9k-rx-dma-stop-check.patch b/ath9k-rx-dma-stop-check.patch
deleted file mode 100644
index 40cbafc7b..0
--- a/ath9k-rx-dma-stop-check.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From: "kernel-t...@fedoraproject.org" 
-Date: Wed, 6 Feb 2013 09:57:47 -0500
-Subject: [PATCH] ath9k: rx dma stop check
-

- drivers/net/wireless/ath/ath9k/mac.c | 12 +++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/wireless/ath/ath9k/mac.c 
b/drivers/net/wireless/ath/ath9k/mac.c
-index bba85d1a6cd1..ebbee8f17130 100644
 a/drivers/net/wireless/ath/ath9k/mac.c
-+++ b/drivers/net/wireless/ath/ath9k/mac.c
-@@ -693,7 +693,7 @@ bool ath9k_hw_stopdmarecv(struct ath_hw *ah, bool *reset)
- {
- #define AH_RX_STOP_DMA_TIMEOUT 1   /* usec */
-   struct ath_common *common = ath9k_hw_common(ah);
--  u32 mac_status, last_mac_status = 0;
-+  u32 mac_status = 0, last_mac_status = 0;
-   int i;
- 
-   /* Enable access to the DMA observation bus */
-@@ -723,6 +723,16 @@ bool ath9k_hw_stopdmarecv(struct ath_hw *ah, bool *reset)
-   }
- 
-   if (i == 0) {
-+  if (!AR_SREV_9300_20_OR_LATER(ah) &&
-+  (mac_status & 0x700) == 0) {
-+  /*
-+   * DMA is idle but the MAC is still stuck
-+   * processing events
-+   */
-+  *reset = true;
-+  return true;
-+  }
-+
-   ath_err(common,
-   "DMA failed to stop in %d ms AR_CR=0x%08x 
AR_DIAG_SW=0x%08x DMADBG_7=0x%08x\n",
-   AH_RX_STOP_DMA_TIMEOUT / 1000,
diff --git a/kernel.spec b/kernel.spec
index 260976479..79aabba51 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -507,8 +507,6 @@ Patch116: crash-driver.patch
 
 Patch117: lis3-improve-handling-of-null-rate.patch
 
-Patch120: ath9k-rx-dma-stop-check.patch
-
 Patch122: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch
 
 # This no longer applies, let's see if it needs to be updated
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 2/9] Drop cpumask auto select patch

2019-08-15 Thread Laura Abbott
We've been carrying a patch to make CPUMASK_OFFSTACK selectable
without debugging for a long time now. The comment said this was
going to be replaced with something else but that never seemed
to happen. We're carrying it to have a higher number of CPUs but
at this point I don't think it's worth it since the upper bound is
now 512. This should be enough for most Fedora use cases so just
drop the patch.

Signed-off-by: Laura Abbott 
---
 .../fedora/generic/x86/x86_64/CONFIG_NR_CPUS  |  2 +-
 kernel.spec   |  2 --
 ...-CPUMASK_OFFSTACK-usable-without-deb.patch | 34 ---
 3 files changed, 1 insertion(+), 37 deletions(-)
 delete mode 100644 lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch

diff --git a/configs/fedora/generic/x86/x86_64/CONFIG_NR_CPUS 
b/configs/fedora/generic/x86/x86_64/CONFIG_NR_CPUS
index 27d187f4d..9ce2b2de6 100644
--- a/configs/fedora/generic/x86/x86_64/CONFIG_NR_CPUS
+++ b/configs/fedora/generic/x86/x86_64/CONFIG_NR_CPUS
@@ -1 +1 @@
-CONFIG_NR_CPUS=1024
+CONFIG_NR_CPUS=512
diff --git a/kernel.spec b/kernel.spec
index a662ee004..4253ff035 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -495,8 +495,6 @@ Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz
 # Standalone patches
 # 100 - Generic long running patches
 
-Patch110: lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
-
 Patch111: input-kill-stupid-messages.patch
 
 Patch112: die-floppy-die.patch
diff --git a/lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch 
b/lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
deleted file mode 100644
index 5e6d6611e..0
--- a/lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Josh Boyer 
-Date: Mon, 11 Nov 2013 08:39:16 -0500
-Subject: [PATCH] lib/cpumask: Make CPUMASK_OFFSTACK usable without debug
- dependency
-
-When CPUMASK_OFFSTACK was added in 2008, it was dependent upon
-DEBUG_PER_CPU_MAPS being enabled, or an architecture could select it.
-The debug dependency adds additional overhead that isn't required for
-operation of the feature, and we need CPUMASK_OFFSTACK to increase the
-NR_CPUS value beyond 512 on x86.  We drop the current dependency and make
-sure SMP is set.
-
-Bugzilla: N/A
-Upstream-status: Nak'd, supposedly replacement coming to auto-select
-
-Signed-off-by: Josh Boyer 

- lib/Kconfig | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/lib/Kconfig b/lib/Kconfig
-index 3a2ef67db6c7..4af1e7e5a611 100644
 a/lib/Kconfig
-+++ b/lib/Kconfig
-@@ -396,7 +396,8 @@ config CHECK_SIGNATURE
-   bool
- 
- config CPUMASK_OFFSTACK
--  bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
-+  bool "Force CPU masks off stack"
-+  depends on SMP
-   help
- Use dynamic allocation for cpumask_var_t, instead of putting
- them on the stack.  This is a bit more expensive, but avoids
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 3/9] Drop scsi warning patch

2019-08-15 Thread Laura Abbott
It's been years since we've seen this warning. Just drop it.

Signed-off-by: Laura Abbott 
---
 kernel.spec   |  2 -
 ...validate_disk-prevent-NULL-ptr-deref.patch | 39 ---
 2 files changed, 41 deletions(-)
 delete mode 100644 scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch

diff --git a/kernel.spec b/kernel.spec
index 4253ff035..260976479 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -507,8 +507,6 @@ Patch116: crash-driver.patch
 
 Patch117: lis3-improve-handling-of-null-rate.patch
 
-Patch118: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
-
 Patch120: ath9k-rx-dma-stop-check.patch
 
 Patch122: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch
diff --git a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch 
b/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
deleted file mode 100644
index a19267cc1..0
--- a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 7afe9a8d7dca86a8f35250f21f5f0a62ea2fedf7 Mon Sep 17 00:00:00 2001
-From: "kernel-t...@fedoraproject.org" 
-Date: Fri, 10 Feb 2012 14:56:13 -0500
-Subject: [PATCH] scsi: sd_revalidate_disk prevent NULL ptr deref
-
-Bugzilla: 754518
-Upstream-status: Fedora mustard (might be worth dropping...)

- drivers/scsi/sd.c | 7 ++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
-index 3d22fc3..07aec76 100644
 a/drivers/scsi/sd.c
-+++ b/drivers/scsi/sd.c
-@@ -2825,7 +2825,7 @@ static inline u32 logical_to_sectors(struct scsi_device 
*sdev, u32 blocks)
- static int sd_revalidate_disk(struct gendisk *disk)
- {
-   struct scsi_disk *sdkp = scsi_disk(disk);
--  struct scsi_device *sdp = sdkp->device;
-+  struct scsi_device *sdp;
-   struct request_queue *q = sdkp->disk->queue;
-   sector_t old_capacity = sdkp->capacity;
-   unsigned char *buffer;
-@@ -2833,6 +2833,11 @@ static int sd_revalidate_disk(struct gendisk *disk)
-   SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp,
- "sd_revalidate_disk\n"));
- 
-+  if (WARN_ONCE((!sdkp), "Invalid scsi_disk from %p\n", disk))
-+  goto out;
-+
-+  sdp = sdkp->device;
-+
-   /*
-* If the device is offline, don't try and read capacity or any
-* of the other niceties.
--- 
-2.5.0
-
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 1/9] Drop namespaces config tweak

2019-08-15 Thread Laura Abbott
We've come a long way for namespaces since 2013 and
all arches now enable namespaces. Drop the patch where
we can turn it off and on.

Signed-off-by: Laura Abbott 
---
 kernel.spec|  2 --
 namespaces-no-expert.patch | 27 ---
 2 files changed, 29 deletions(-)
 delete mode 100644 namespaces-no-expert.patch

diff --git a/kernel.spec b/kernel.spec
index 734ffaed1..a662ee004 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -511,8 +511,6 @@ Patch117: lis3-improve-handling-of-null-rate.patch
 
 Patch118: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
 
-Patch119: namespaces-no-expert.patch
-
 Patch120: ath9k-rx-dma-stop-check.patch
 
 Patch122: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch
diff --git a/namespaces-no-expert.patch b/namespaces-no-expert.patch
deleted file mode 100644
index d732f9d0a..0
--- a/namespaces-no-expert.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 235b02d70a6a9837896c2ff4ca9d03f172cc4281 Mon Sep 17 00:00:00 2001
-From: "kernel-t...@fedoraproject.org" 
-Date: Wed, 30 Jan 2013 10:55:31 -0500
-Subject: [PATCH] namespaces: no expert
-
-Bugzilla: N/A
-Upstream-status: Fedora mustard

- init/Kconfig | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/init/Kconfig b/init/Kconfig
-index 2934249fba46..19d9ee8c120b 100644
 a/init/Kconfig
-+++ b/init/Kconfig
-@@ -871,7 +871,7 @@ config SOCK_CGROUP_DATA
- endif # CGROUPS
- 
- menuconfig NAMESPACES
--  bool "Namespaces support" if EXPERT
-+  bool "Namespaces support"
-   depends on MULTIUSER
-   default !EXPERT
-   help
--- 
-2.14.3
-
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 5/9] Drop old lis3 patch

2019-08-15 Thread Laura Abbott
We've been carrying this patch for years. If someone wants to
do the work to get it upstream, they are welcome to do so.

Signed-off-by: Laura Abbott 
---
 kernel.spec  |  2 -
 lis3-improve-handling-of-null-rate.patch | 75 
 2 files changed, 77 deletions(-)
 delete mode 100644 lis3-improve-handling-of-null-rate.patch

diff --git a/kernel.spec b/kernel.spec
index 79aabba51..1a7af5cd4 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -505,8 +505,6 @@ Patch115: Kbuild-Add-an-option-to-enable-GCC-VTA.patch
 
 Patch116: crash-driver.patch
 
-Patch117: lis3-improve-handling-of-null-rate.patch
-
 Patch122: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch
 
 # This no longer applies, let's see if it needs to be updated
diff --git a/lis3-improve-handling-of-null-rate.patch 
b/lis3-improve-handling-of-null-rate.patch
deleted file mode 100644
index 1dd00b645..0
--- a/lis3-improve-handling-of-null-rate.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-From: =?UTF-8?q?=C3=89ric=20Piel?= 
-Date: Thu, 3 Nov 2011 16:22:40 +0100
-Subject: [PATCH] lis3: improve handling of null rate
-
-When obtaining a rate of 0, we would disable the device supposely
-because it seems to behave incorectly. It actually only comes from the
-fact that the device is off and on lis3dc it's reflected in the rate.
-So handle this nicely by just waiting a safe time, and then using the
-device as normally.
-
-Bugzilla: 785814
-Upstream-status: ??
-
-Signed-off-by: ??ric Piel 

- drivers/misc/lis3lv02d/lis3lv02d.c | 16 
- 1 file changed, 8 insertions(+), 8 deletions(-)
-
-diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c 
b/drivers/misc/lis3lv02d/lis3lv02d.c
-index fb8705fc3aca..50c2b93c1273 100644
 a/drivers/misc/lis3lv02d/lis3lv02d.c
-+++ b/drivers/misc/lis3lv02d/lis3lv02d.c
-@@ -216,7 +216,8 @@ static void lis3lv02d_get_xyz(struct lis3lv02d *lis3, int 
*x, int *y, int *z)
- /* conversion btw sampling rate and the register values */
- static int lis3_12_rates[4] = {40, 160, 640, 2560};
- static int lis3_8_rates[2] = {100, 400};
--static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000};
-+/* LIS3DC: 0 = power off, above 9 = undefined */
-+static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000, 
-1, -1, -1, -1, -1, -1};
- static int lis3_3dlh_rates[4] = {50, 100, 400, 1000};
- 
- /* ODR is Output Data Rate */
-@@ -231,12 +232,11 @@ static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
-   return lis3->odrs[(ctrl >> shift)];
- }
- 
--static int lis3lv02d_get_pwron_wait(struct lis3lv02d *lis3)
-+static int lis3lv02d_wait_pwron(struct lis3lv02d *lis3)
- {
-   int div = lis3lv02d_get_odr(lis3);
--
--  if (WARN_ONCE(div == 0, "device returned spurious data"))
--  return -ENXIO;
-+  if (div <= 0)
-+  div = 1; /* maximum delay */
- 
-   /* LIS3 power on delay is quite long */
-   msleep(lis3->pwron_delay / div);
-@@ -303,7 +303,7 @@ static int lis3lv02d_selftest(struct lis3lv02d *lis3, s16 
results[3])
- 
-   lis3->read(lis3, ctlreg, );
-   lis3->write(lis3, ctlreg, (reg | selftest));
--  ret = lis3lv02d_get_pwron_wait(lis3);
-+  ret = lis3lv02d_wait_pwron(lis3);
-   if (ret)
-   goto fail;
- 
-@@ -314,7 +314,7 @@ static int lis3lv02d_selftest(struct lis3lv02d *lis3, s16 
results[3])
- 
-   /* back to normal settings */
-   lis3->write(lis3, ctlreg, reg);
--  ret = lis3lv02d_get_pwron_wait(lis3);
-+  ret = lis3lv02d_wait_pwron(lis3);
-   if (ret)
-   goto fail;
- 
-@@ -434,7 +434,7 @@ int lis3lv02d_poweron(struct lis3lv02d *lis3)
-   }
-   }
- 
--  err = lis3lv02d_get_pwron_wait(lis3);
-+  err = lis3lv02d_wait_pwron(lis3);
-   if (err)
-   return err;
- 
-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org


[PATCH 0/9] Clean up some old patches post F31

2019-08-15 Thread Laura Abbott
I'd like to drop a bunch of patches Fedora has been carrying since
forever. Most of these are fairly minor tweaks most people forgot
we had and nobody cares about. My motivation is both in the spirit
of cleaning up and also to better align Fedora + RHEL (I had a talk
about this at Flock, video should be up soon).

If someone wants to make an effort at upstreaming any of these, feel
free to do so but I really think most of these are cruft.

Thanks,
Laura

Laura Abbott (9):
  Drop namespaces config tweak
  Drop cpumask auto select patch
  Drop scsi warning patch
  Remove ancient ath9k workaround
  Drop old lis3 patch
  Remove some old modalias adjustments
  Remove old keyboard logging patch
  Remove patch for GCC VTA
  Remove crash driver

 Kbuild-Add-an-option-to-enable-GCC-VTA.patch  |  94 ---
 ath9k-rx-dma-stop-check.patch |  38 -
 .../fedora/generic/x86/x86_64/CONFIG_NR_CPUS  |   2 +-
 crash-driver.patch| 722 --
 die-floppy-die.patch  |  29 -
 input-kill-stupid-messages.patch  |  30 -
 kernel.spec   |  20 -
 ...-CPUMASK_OFFSTACK-usable-without-deb.patch |  34 -
 lis3-improve-handling-of-null-rate.patch  |  75 --
 namespaces-no-expert.patch|  27 -
 no-pcspkr-modalias.patch  |  22 -
 ...validate_disk-prevent-NULL-ptr-deref.patch |  39 -
 12 files changed, 1 insertion(+), 1131 deletions(-)
 delete mode 100644 Kbuild-Add-an-option-to-enable-GCC-VTA.patch
 delete mode 100644 ath9k-rx-dma-stop-check.patch
 delete mode 100644 crash-driver.patch
 delete mode 100644 die-floppy-die.patch
 delete mode 100644 input-kill-stupid-messages.patch
 delete mode 100644 lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
 delete mode 100644 lis3-improve-handling-of-null-rate.patch
 delete mode 100644 namespaces-no-expert.patch
 delete mode 100644 no-pcspkr-modalias.patch
 delete mode 100644 scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch

-- 
2.21.0
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org