initial commit
imported from https://salsa.debian.org/kernel-team/linux.git commit 9d5cc9d9d6501d7f1dd7e194d4b245bd0b6c6a22 version 6.11.4-1
This commit is contained in:
49
debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch
vendored
Normal file
49
debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Thu, 03 Nov 2016 15:25:26 -0600
|
||||
Subject: cpupower: Fix checks for CPU existence
|
||||
Forwarded: https://lore.kernel.org/all/20170418023118.GD4152@decadent.org.uk/
|
||||
|
||||
Calls to cpufreq_cpu_exists(cpu) were converted to
|
||||
cpupower_is_cpu_online(cpu) when libcpupower was introduced and the
|
||||
former function was deleted. However, cpupower_is_cpu_online() does
|
||||
not distinguish physically absent and offline CPUs, and does not set
|
||||
errno.
|
||||
|
||||
cpufreq-set has already been fixed (commit c25badc9ceb6).
|
||||
|
||||
In cpufreq-bench, which prints an error message for offline CPUs,
|
||||
properly distinguish and report the zero and negative cases.
|
||||
|
||||
Fixes: ac5a181d065d ("cpupower: Add cpuidle parts into library")
|
||||
Fixes: 53d1cd6b125f ("cpupowerutils: bench - Fix cpu online check")
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
[carnil: Update/Refresh patch for 4.14.17: The issue with the
|
||||
incorrect check has been fixed with upstream commit 53d1cd6b125f.
|
||||
Keep in the patch the distinction and report for the zero and
|
||||
negative cases.]
|
||||
---
|
||||
--- a/tools/power/cpupower/bench/system.c
|
||||
+++ b/tools/power/cpupower/bench/system.c
|
||||
@@ -58,12 +58,19 @@ long long int get_time()
|
||||
|
||||
int set_cpufreq_governor(char *governor, unsigned int cpu)
|
||||
{
|
||||
+ int rc;
|
||||
|
||||
dprintf("set %s as cpufreq governor\n", governor);
|
||||
|
||||
- if (cpupower_is_cpu_online(cpu) != 1) {
|
||||
- perror("cpufreq_cpu_exists");
|
||||
- fprintf(stderr, "error: cpu %u does not exist\n", cpu);
|
||||
+ rc = cpupower_is_cpu_online(cpu);
|
||||
+ if (rc != 1) {
|
||||
+ if (rc < 0)
|
||||
+ fprintf(stderr, "cpupower_is_cpu_online: %s\n",
|
||||
+ strerror(-rc));
|
||||
+ else
|
||||
+ fprintf(stderr,
|
||||
+ "error: cpu %u is offline or does not exist\n",
|
||||
+ cpu);
|
||||
return -1;
|
||||
}
|
||||
|
91
debian/patches/bugfix/all/disable-some-marvell-phys.patch
vendored
Normal file
91
debian/patches/bugfix/all/disable-some-marvell-phys.patch
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
From: Ian Campbell <ijc@hellion.org.uk>
|
||||
Subject: phy/marvell: disable 4-port phys
|
||||
Date: Wed, 20 Nov 2013 08:30:14 +0000
|
||||
Bug-Debian: https://bugs.debian.org/723177
|
||||
Forwarded: https://lore.kernel.org/netdev/1386932764.20787.85.camel@dagon.hellion.org.uk/
|
||||
|
||||
The Marvell PHY was originally disabled because it can cause networking
|
||||
failures on some systems. According to Lennert Buytenhek this is because some
|
||||
of the variants added did not share the same register layout. Since the known
|
||||
cases are all 4-ports disable those variants (indicated by a 4 in the
|
||||
penultimate position of the model name) until they can be audited for
|
||||
correctness.
|
||||
|
||||
[bwh: Also #if-out the init functions for these PHYs to avoid
|
||||
compiler warnings]
|
||||
|
||||
--- a/drivers/net/phy/marvell.c
|
||||
+++ b/drivers/net/phy/marvell.c
|
||||
@@ -1366,6 +1366,7 @@ static int m88e1118_config_init(struct p
|
||||
return genphy_soft_reset(phydev);
|
||||
}
|
||||
|
||||
+#if 0
|
||||
static int m88e1149_config_init(struct phy_device *phydev)
|
||||
{
|
||||
int err;
|
||||
@@ -1391,7 +1392,9 @@ static int m88e1149_config_init(struct p
|
||||
|
||||
return genphy_soft_reset(phydev);
|
||||
}
|
||||
+#endif
|
||||
|
||||
+#if 0
|
||||
static int m88e1145_config_init_rgmii(struct phy_device *phydev)
|
||||
{
|
||||
int err;
|
||||
@@ -1469,6 +1472,7 @@ static int m88e1145_config_init(struct p
|
||||
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static int m88e1540_get_fld(struct phy_device *phydev, u8 *msecs)
|
||||
{
|
||||
@@ -3790,6 +3794,7 @@ static struct phy_driver marvell_drivers
|
||||
.led_hw_control_set = m88e1318_led_hw_control_set,
|
||||
.led_hw_control_get = m88e1318_led_hw_control_get,
|
||||
},
|
||||
+#if 0
|
||||
{
|
||||
.phy_id = MARVELL_PHY_ID_88E1145,
|
||||
.phy_id_mask = MARVELL_PHY_ID_MASK,
|
||||
@@ -3813,6 +3818,8 @@ static struct phy_driver marvell_drivers
|
||||
.cable_test_start = m88e1111_vct_cable_test_start,
|
||||
.cable_test_get_status = m88e1111_vct_cable_test_get_status,
|
||||
},
|
||||
+#endif
|
||||
+#if 0
|
||||
{
|
||||
.phy_id = MARVELL_PHY_ID_88E1149R,
|
||||
.phy_id_mask = MARVELL_PHY_ID_MASK,
|
||||
@@ -3831,6 +3838,8 @@ static struct phy_driver marvell_drivers
|
||||
.get_strings = marvell_get_strings,
|
||||
.get_stats = marvell_get_stats,
|
||||
},
|
||||
+#endif
|
||||
+#if 0
|
||||
{
|
||||
.phy_id = MARVELL_PHY_ID_88E1240,
|
||||
.phy_id_mask = MARVELL_PHY_ID_MASK,
|
||||
@@ -3851,6 +3860,7 @@ static struct phy_driver marvell_drivers
|
||||
.get_tunable = m88e1011_get_tunable,
|
||||
.set_tunable = m88e1011_set_tunable,
|
||||
},
|
||||
+#endif
|
||||
{
|
||||
.phy_id = MARVELL_PHY_ID_88E1116R,
|
||||
.phy_id_mask = MARVELL_PHY_ID_MASK,
|
||||
@@ -4139,9 +4149,9 @@ static struct mdio_device_id __maybe_unu
|
||||
{ MARVELL_PHY_ID_88E1111_FINISAR, MARVELL_PHY_ID_MASK },
|
||||
{ MARVELL_PHY_ID_88E1118, MARVELL_PHY_ID_MASK },
|
||||
{ MARVELL_PHY_ID_88E1121R, MARVELL_PHY_ID_MASK },
|
||||
- { MARVELL_PHY_ID_88E1145, MARVELL_PHY_ID_MASK },
|
||||
- { MARVELL_PHY_ID_88E1149R, MARVELL_PHY_ID_MASK },
|
||||
- { MARVELL_PHY_ID_88E1240, MARVELL_PHY_ID_MASK },
|
||||
+/* { MARVELL_PHY_ID_88E1145, MARVELL_PHY_ID_MASK }, */
|
||||
+/* { MARVELL_PHY_ID_88E1149R, MARVELL_PHY_ID_MASK }, */
|
||||
+/* { MARVELL_PHY_ID_88E1240, MARVELL_PHY_ID_MASK }, */
|
||||
{ MARVELL_PHY_ID_88E1318S, MARVELL_PHY_ID_MASK },
|
||||
{ MARVELL_PHY_ID_88E1116R, MARVELL_PHY_ID_MASK },
|
||||
{ MARVELL_PHY_ID_88E1510, MARVELL_PHY_ID_MASK },
|
32
debian/patches/bugfix/all/documentation-use-relative-source-paths-in-abi-documentation.patch
vendored
Normal file
32
debian/patches/bugfix/all/documentation-use-relative-source-paths-in-abi-documentation.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Mon, 16 Sep 2024 00:07:04 +0200
|
||||
Subject: Documentation: Use relative source filenames in ABI documentation
|
||||
|
||||
Currently the ABI documentation files contain absolute source
|
||||
filenames, which makes them unreproducible if the build directory can
|
||||
vary.
|
||||
|
||||
Remove the source base directory ($srctree) from the source filenames
|
||||
shown in the documentation.
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/Documentation/sphinx/kernel_abi.py
|
||||
+++ b/Documentation/sphinx/kernel_abi.py
|
||||
@@ -103,6 +103,7 @@ class KernelCmd(Directive):
|
||||
lines = code_block + "\n\n"
|
||||
|
||||
line_regex = re.compile(r"^\.\. LINENO (\S+)\#([0-9]+)$")
|
||||
+ srctree = os.path.abspath(os.environ["srctree"])
|
||||
ln = 0
|
||||
n = 0
|
||||
f = fname
|
||||
@@ -127,7 +128,7 @@ class KernelCmd(Directive):
|
||||
# sphinx counts lines from 0
|
||||
ln = int(match.group(2)) - 1
|
||||
else:
|
||||
- content.append(line, f, ln)
|
||||
+ content.append(line, os.path.relpath(f, srctree), ln)
|
||||
|
||||
kernellog.info(self.state.document.settings.env.app, "%s: parsed %i lines" % (fname, n))
|
||||
|
60
debian/patches/bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch
vendored
Normal file
60
debian/patches/bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Wed, 13 Apr 2016 21:48:06 +0100
|
||||
Subject: fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers
|
||||
Bug-Debian: https://bugs.debian.org/819725
|
||||
Forwarded: https://lore.kernel.org/all/20160517133631.GF7555@decadent.org.uk/
|
||||
|
||||
This helps initramfs builders and other tools to find the full
|
||||
dependencies of a module.
|
||||
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
[Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream]
|
||||
---
|
||||
fs/btrfs/super.c | 2 +-
|
||||
fs/ext4/super.c | 2 +-
|
||||
fs/jbd2/journal.c | 1 +
|
||||
fs/nfsd/nfsctl.c | 3 +++
|
||||
4 files changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/fs/btrfs/super.c
|
||||
+++ b/fs/btrfs/super.c
|
||||
@@ -2619,7 +2619,7 @@ module_exit(exit_btrfs_fs)
|
||||
|
||||
MODULE_DESCRIPTION("B-Tree File System (BTRFS)");
|
||||
MODULE_LICENSE("GPL");
|
||||
-MODULE_SOFTDEP("pre: crc32c");
|
||||
+MODULE_SOFTDEP("pre: crypto-crc32c");
|
||||
MODULE_SOFTDEP("pre: xxhash64");
|
||||
MODULE_SOFTDEP("pre: sha256");
|
||||
MODULE_SOFTDEP("pre: blake2b-256");
|
||||
--- a/fs/ext4/super.c
|
||||
+++ b/fs/ext4/super.c
|
||||
@@ -7404,6 +7404,6 @@ static void __exit ext4_exit_fs(void)
|
||||
MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
|
||||
MODULE_DESCRIPTION("Fourth Extended Filesystem");
|
||||
MODULE_LICENSE("GPL");
|
||||
-MODULE_SOFTDEP("pre: crc32c");
|
||||
+MODULE_SOFTDEP("pre: crypto-crc32c");
|
||||
module_init(ext4_init_fs)
|
||||
module_exit(ext4_exit_fs)
|
||||
--- a/fs/jbd2/journal.c
|
||||
+++ b/fs/jbd2/journal.c
|
||||
@@ -3194,6 +3194,7 @@ static void __exit journal_exit(void)
|
||||
|
||||
MODULE_DESCRIPTION("Generic filesystem journal-writing module");
|
||||
MODULE_LICENSE("GPL");
|
||||
+MODULE_SOFTDEP("pre: crypto-crc32c");
|
||||
module_init(journal_init);
|
||||
module_exit(journal_exit);
|
||||
|
||||
--- a/fs/nfsd/nfsctl.c
|
||||
+++ b/fs/nfsd/nfsctl.c
|
||||
@@ -2353,5 +2353,8 @@ static void __exit exit_nfsd(void)
|
||||
MODULE_AUTHOR("Olaf Kirch <okir@monad.swb.de>");
|
||||
MODULE_DESCRIPTION("In-kernel NFS server");
|
||||
MODULE_LICENSE("GPL");
|
||||
+#ifdef CONFIG_NFSD_V4
|
||||
+MODULE_SOFTDEP("pre: crypto-md5");
|
||||
+#endif
|
||||
module_init(init_nfsd)
|
||||
module_exit(exit_nfsd)
|
45
debian/patches/bugfix/all/kbuild-bpf-fix-btf-reproducibility.patch
vendored
Normal file
45
debian/patches/bugfix/all/kbuild-bpf-fix-btf-reproducibility.patch
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Mon, 16 Sep 2024 01:54:24 +0200
|
||||
Subject: kbuild, bpf: Fix BTF reproducibility
|
||||
|
||||
pahole 1.22 introduced the -j option for parallel processing, and
|
||||
kbuild uses it, but this makes its output unreproducible.
|
||||
|
||||
pahole 1.27 introduced --btf_features=+reproducible_build which makes
|
||||
the output reproducible even when -j is used.
|
||||
|
||||
Assume that if KBUILD_BUILD_TIMESTAMP is set then a reproducible build
|
||||
is required, and use both options if available or neither if not.
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/scripts/Makefile.btf
|
||||
+++ b/scripts/Makefile.btf
|
||||
@@ -12,8 +12,6 @@ endif
|
||||
|
||||
pahole-flags-$(call test-ge, $(pahole-ver), 121) += --btf_gen_floats
|
||||
|
||||
-pahole-flags-$(call test-ge, $(pahole-ver), 122) += -j
|
||||
-
|
||||
pahole-flags-$(call test-ge, $(pahole-ver), 125) += --skip_encoding_btf_inconsistent_proto --btf_gen_optimized
|
||||
|
||||
else
|
||||
@@ -27,6 +25,18 @@ endif
|
||||
|
||||
endif
|
||||
|
||||
+# pahole 1.22 introduced the -j option for parallel processing, but
|
||||
+# this makes its output unreproducible.
|
||||
+# pahole 1.27 introduced --btf_features=+reproducible_build which
|
||||
+# makes the output reproducible even when -j is used.
|
||||
+# Assume that if KBUILD_BUILD_TIMESTAMP is set then a reproducible
|
||||
+# build is required and we must not use -j alone.
|
||||
+ifeq ($(KBUILD_BUILD_TIMESTAMP),)
|
||||
+pahole-flags-$(call test-ge, $(pahole-ver), 122) += -j
|
||||
+else
|
||||
+pahole-flags-$(call test-ge, $(pahole-ver), 127) += -j --btf_features=+reproducible_build
|
||||
+endif
|
||||
+
|
||||
pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
|
||||
|
||||
export PAHOLE_FLAGS := $(pahole-flags-y)
|
23
debian/patches/bugfix/all/kbuild-fix-recordmcount-dependency.patch
vendored
Normal file
23
debian/patches/bugfix/all/kbuild-fix-recordmcount-dependency.patch
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Subject: kbuild: Fix recordmcount dependency for OOT modules
|
||||
Date: Mon, 08 Sep 2014 18:31:24 +0100
|
||||
Forwarded: no
|
||||
|
||||
We never rebuild anything in-tree when building an out-of-tree
|
||||
modules, so external modules should not depend on the recordmcount
|
||||
sources.
|
||||
|
||||
--- a/scripts/Makefile.build
|
||||
+++ b/scripts/Makefile.build
|
||||
@@ -210,6 +210,11 @@ cmd_record_mcount = $(if $(findstring $(
|
||||
$(sub_cmd_record_mcount))
|
||||
endif # CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT
|
||||
|
||||
+# Don't require recordmcount source for an OOT build.
|
||||
+ifdef KBUILD_EXTMOD
|
||||
+recordmcount_source :=
|
||||
+endif
|
||||
+
|
||||
# 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory
|
||||
# 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file
|
||||
# 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file
|
18
debian/patches/bugfix/all/libapi-define-_fortify_source-as-2-not-empty.patch
vendored
Normal file
18
debian/patches/bugfix/all/libapi-define-_fortify_source-as-2-not-empty.patch
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Sat, 15 Jan 2022 22:30:49 +0100
|
||||
Subject: libapi: Define _FORTIFY_SOURCE as 2, not empty
|
||||
Forwarded: https://lore.kernel.org/lkml/20230424102049.58338-1-ukleinek@debian.org/
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/tools/lib/api/Makefile
|
||||
+++ b/tools/lib/api/Makefile
|
||||
@@ -29,7 +29,7 @@ endif
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG),0)
|
||||
- CFLAGS += -D_FORTIFY_SOURCE
|
||||
+ CFLAGS += -D_FORTIFY_SOURCE=2
|
||||
endif
|
||||
|
||||
# Treat warnings as errors unless directed not to
|
23
debian/patches/bugfix/all/module-disable-matching-missing-version-crc.patch
vendored
Normal file
23
debian/patches/bugfix/all/module-disable-matching-missing-version-crc.patch
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Fri, 02 Dec 2016 23:06:18 +0000
|
||||
Subject: module: Disable matching missing version CRC
|
||||
Forwarded: not-needed
|
||||
|
||||
This partly reverts commit cd3caefb4663e3811d37cc2afad3cce642d60061.
|
||||
We want to fail closed if a symbol version CRC is missing, as the
|
||||
alternative may allow subverting module signing.
|
||||
---
|
||||
--- a/kernel/module/version.c
|
||||
+++ b/kernel/module/version.c
|
||||
@@ -46,9 +46,8 @@ int check_version(const struct load_info
|
||||
goto bad_version;
|
||||
}
|
||||
|
||||
- /* Broken toolchain. Warn once, then let it go.. */
|
||||
- pr_warn_once("%s: no symbol version for %s\n", info->name, symname);
|
||||
- return 1;
|
||||
+ pr_warn("%s: no symbol version for %s\n", info->name, symname);
|
||||
+ return 0;
|
||||
|
||||
bad_version:
|
||||
pr_warn("%s: disagrees about version of symbol %s\n", info->name, symname);
|
27
debian/patches/bugfix/all/perf-tools-pass-extra_cflags-through-to-libbpf-build-again.patch
vendored
Normal file
27
debian/patches/bugfix/all/perf-tools-pass-extra_cflags-through-to-libbpf-build-again.patch
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Fri, 16 Aug 2024 15:58:04 +0200
|
||||
Subject: perf tools: Pass EXTRA_CFLAGS through to libbpf build again
|
||||
|
||||
When perf was statically linked to libbpf, any definition of
|
||||
EXTRA_CFLAGS passed to Makefile.perf propagated to the sub-make of
|
||||
libbpf. Since commit 9dabf4003423 ("perf python: Switch module to
|
||||
linking libraries from building source"), EXTRA_CFLAGS is overridden
|
||||
to "-fPIC" for the sub-make.
|
||||
|
||||
Change to include any user-provided EXTRA_CFLAGS before the "-fPIC"
|
||||
option.
|
||||
|
||||
Fixes: 9dabf4003423 ("perf python: Switch module to linking libraries ...")
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/tools/perf/Makefile.perf
|
||||
+++ b/tools/perf/Makefile.perf
|
||||
@@ -951,7 +951,7 @@ $(LIBAPI)-clean:
|
||||
$(LIBBPF): FORCE | $(LIBBPF_OUTPUT)
|
||||
$(Q)$(MAKE) -C $(LIBBPF_DIR) FEATURES_DUMP=$(FEATURE_DUMP_EXPORT) \
|
||||
O= OUTPUT=$(LIBBPF_OUTPUT)/ DESTDIR=$(LIBBPF_DESTDIR) prefix= subdir= \
|
||||
- EXTRA_CFLAGS="-fPIC" $@ install_headers
|
||||
+ EXTRA_CFLAGS="$(EXTRA_CFLAGS) -fPIC" $@ install_headers
|
||||
|
||||
$(LIBBPF)-clean:
|
||||
$(call QUIET_CLEAN, libbpf)
|
30
debian/patches/bugfix/all/perf-tools-support-extra-cxxflags.patch
vendored
Normal file
30
debian/patches/bugfix/all/perf-tools-support-extra-cxxflags.patch
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Mon, 15 May 2023 15:58:39 +0200
|
||||
Subject: perf tools: Support EXTRA_CXXFLAGS
|
||||
|
||||
Add support for an EXTRA_CXXFLAGS variable, used similarly to
|
||||
EXTRA_CFLAGS.
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/tools/perf/Makefile.config
|
||||
+++ b/tools/perf/Makefile.config
|
||||
@@ -18,6 +18,7 @@ detected_var = $(shell echo "$(1)=$($(1)
|
||||
|
||||
CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
|
||||
HOSTCFLAGS := $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
|
||||
+CXXFLAGS := $(EXTRA_CXXFLAGS)
|
||||
|
||||
# Enabled Wthread-safety analysis for clang builds.
|
||||
ifeq ($(CC_NO_CLANG), 0)
|
||||
--- a/tools/perf/Makefile.perf
|
||||
+++ b/tools/perf/Makefile.perf
|
||||
@@ -33,7 +33,7 @@ include ../scripts/utilities.mak
|
||||
#
|
||||
# Define LDFLAGS=-static to build a static binary.
|
||||
#
|
||||
-# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds.
|
||||
+# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds, and similarly EXTRA_CXXFLAGS.
|
||||
#
|
||||
# Define EXCLUDE_EXTLIBS=-lmylib to exclude libmylib from the auto-generated
|
||||
# EXTLIBS.
|
@@ -0,0 +1,88 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Subject: radeon, amdgpu: Firmware is required for DRM and KMS on R600 onward
|
||||
Date: Tue, 08 Jan 2013 03:25:52 +0000
|
||||
Bug-Debian: https://bugs.debian.org/607194
|
||||
Bug-Debian: https://bugs.debian.org/607471
|
||||
Bug-Debian: https://bugs.debian.org/610851
|
||||
Bug-Debian: https://bugs.debian.org/627497
|
||||
Bug-Debian: https://bugs.debian.org/632212
|
||||
Bug-Debian: https://bugs.debian.org/637943
|
||||
Bug-Debian: https://bugs.debian.org/649448
|
||||
Bug-Debian: https://bugs.debian.org/697229
|
||||
Bug-Debian: https://bugs.debian.org/1053764
|
||||
Forwarded: no
|
||||
Last-Update: 2023-11-08
|
||||
|
||||
radeon requires firmware/microcode for the GPU in all chips, but for
|
||||
newer chips (apparently R600 'Evergreen' onward) it also expects
|
||||
firmware for the memory controller and other sub-blocks.
|
||||
|
||||
radeon attempts to gracefully fall back and disable some features if
|
||||
the firmware is not available, but becomes unstable - the framebuffer
|
||||
and/or system memory may be corrupted, or the display may stay black.
|
||||
|
||||
Therefore, perform a basic check for the existence of
|
||||
/lib/firmware/radeon when a device is probed, and abort if it
|
||||
is missing, except for the pre-R600 case.
|
||||
|
||||
Update 2023-11-08:
|
||||
In bug 1053764 Mario Limonciello <mario.limonciello@amd.com> states
|
||||
that the patch isn't needed anymore for amdgpu, so remove that part
|
||||
of the patch
|
||||
---
|
||||
drivers/gpu/drm/radeon/radeon_drv.c | 30 +++++++++++++++++++++++++
|
||||
1 files changed, 30 insertions(+)
|
||||
|
||||
--- a/drivers/gpu/drm/radeon/radeon_drv.c
|
||||
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
#include <linux/compat.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/namei.h>
|
||||
+#include <linux/path.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/vga_switcheroo.h>
|
||||
#include <linux/mmu_notifier.h>
|
||||
@@ -255,6 +257,28 @@ MODULE_DEVICE_TABLE(pci, pciidlist);
|
||||
|
||||
static const struct drm_driver kms_driver;
|
||||
|
||||
+/* Test that /lib/firmware/radeon is a directory (or symlink to a
|
||||
+ * directory). We could try to match the udev search path, but let's
|
||||
+ * keep it simple.
|
||||
+ */
|
||||
+static bool radeon_firmware_installed(void)
|
||||
+{
|
||||
+#if IS_BUILTIN(CONFIG_DRM_RADEON)
|
||||
+ /* It may be too early to tell. Assume it's there. */
|
||||
+ return true;
|
||||
+#else
|
||||
+ struct path path;
|
||||
+
|
||||
+ if (kern_path("/lib/firmware/radeon", LOOKUP_DIRECTORY | LOOKUP_FOLLOW,
|
||||
+ &path) == 0) {
|
||||
+ path_put(&path);
|
||||
+ return true;
|
||||
+ }
|
||||
+
|
||||
+ return false;
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
static int radeon_pci_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
@@ -295,6 +319,12 @@ static int radeon_pci_probe(struct pci_d
|
||||
if (vga_switcheroo_client_probe_defer(pdev))
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
+ if ((ent->driver_data & RADEON_FAMILY_MASK) >= CHIP_R600 &&
|
||||
+ !radeon_firmware_installed()) {
|
||||
+ DRM_ERROR("radeon kernel modesetting for R600 or later requires firmware installed\n");
|
||||
+ return -ENODEV;
|
||||
+ }
|
||||
+
|
||||
/* Get rid of things like offb */
|
||||
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &kms_driver);
|
||||
if (ret)
|
21
debian/patches/bugfix/all/revert-tools-build-clean-cflags-and-ldflags-for-fixdep.patch
vendored
Normal file
21
debian/patches/bugfix/all/revert-tools-build-clean-cflags-and-ldflags-for-fixdep.patch
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Mon, 16 Sep 2024 19:14:19 +0200
|
||||
Subject: Revert "tools build: Clean CFLAGS and LDFLAGS for fixdep"
|
||||
|
||||
This reverts commit 5725dd8fa888b4dcdff58241f9d3d3ac42a048e2. That
|
||||
was a workaround for the bug fixed by commit 6b3db6f9b970 "tools
|
||||
build: Make fixdep a hostprog" and is no longer needed.
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/tools/build/Makefile.include
|
||||
+++ b/tools/build/Makefile.include
|
||||
@@ -2,7 +2,7 @@
|
||||
build := -f $(srctree)/tools/build/Makefile.build dir=. obj
|
||||
|
||||
fixdep:
|
||||
- $(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep
|
||||
+ $(Q)$(MAKE) -C $(srctree)/tools/build $(OUTPUT)fixdep
|
||||
|
||||
fixdep-clean:
|
||||
$(Q)$(MAKE) -C $(srctree)/tools/build clean
|
27
debian/patches/bugfix/all/tools-build-remove-bpf-run-time-check-at-build-time.patch
vendored
Normal file
27
debian/patches/bugfix/all/tools-build-remove-bpf-run-time-check-at-build-time.patch
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Sun, 21 Feb 2016 15:33:15 +0000
|
||||
Subject: tools/build: Remove bpf() run-time check at build time
|
||||
Forwarded: no
|
||||
|
||||
It is not correct to test that a syscall works on the build system's
|
||||
kernel. We might be building on an earlier kernel version or with
|
||||
security restrictions that block bpf().
|
||||
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
--- a/tools/build/feature/test-bpf.c
|
||||
+++ b/tools/build/feature/test-bpf.c
|
||||
@@ -35,8 +35,10 @@ int main(void)
|
||||
attr.prog_flags = 0;
|
||||
|
||||
/*
|
||||
- * Test existence of __NR_bpf and BPF_PROG_LOAD.
|
||||
- * This call should fail if we run the testcase.
|
||||
+ * bwh: Don't use the bpf() syscall as we might be building on a
|
||||
+ * much older kernel. Do "use" the attr structure here to avoid
|
||||
+ * a "set but not used" warning.
|
||||
*/
|
||||
- return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr));
|
||||
+ (void)&attr;
|
||||
+ return 0;
|
||||
}
|
17
debian/patches/bugfix/all/tools-perf-fix-missing-ldflags-for-some-programs.patch
vendored
Normal file
17
debian/patches/bugfix/all/tools-perf-fix-missing-ldflags-for-some-programs.patch
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
From: Ben Hutchings <benh@debian.org>
|
||||
Date: Sat, 15 Jan 2022 22:59:11 +0100
|
||||
Subject: tools/perf: Fix missing LDFLAGS for some programs
|
||||
|
||||
Signed-off-by: Ben Hutchings <benh@debian.org>
|
||||
---
|
||||
--- a/tools/perf/Makefile.perf
|
||||
+++ b/tools/perf/Makefile.perf
|
||||
@@ -785,7 +785,7 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c in
|
||||
.SECONDARY: $(DLFILTERS:.so=.o)
|
||||
|
||||
$(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
|
||||
- $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<
|
||||
+ $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) $(LDFLAGS) -shared -o $@ $<
|
||||
|
||||
ifndef NO_JVMTI
|
||||
LIBJVMTI_IN := $(OUTPUT)jvmti/jvmti-in.o
|
39
debian/patches/bugfix/all/tools-perf-remove-shebangs.patch
vendored
Normal file
39
debian/patches/bugfix/all/tools-perf-remove-shebangs.patch
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Fri, 25 Sep 2015 20:09:23 +0100
|
||||
Subject: tools/perf: Remove shebang lines from perf scripts
|
||||
Forwarded: no
|
||||
|
||||
perf scripts need to be invoked through perf, not directly through
|
||||
perl (or other language interpreter). So including shebang lines in
|
||||
them is useless and possibly misleading.
|
||||
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
--- a/tools/perf/scripts/perl/rw-by-file.pl
|
||||
+++ b/tools/perf/scripts/perl/rw-by-file.pl
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/perl -w
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# (c) 2009, Tom Zanussi <tzanussi@gmail.com>
|
||||
|
||||
--- a/tools/perf/scripts/perl/rw-by-pid.pl
|
||||
+++ b/tools/perf/scripts/perl/rw-by-pid.pl
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/perl -w
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# (c) 2009, Tom Zanussi <tzanussi@gmail.com>
|
||||
|
||||
--- a/tools/perf/scripts/perl/rwtop.pl
|
||||
+++ b/tools/perf/scripts/perl/rwtop.pl
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/perl -w
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
|
||||
|
||||
--- a/tools/perf/scripts/perl/wakeup-latency.pl
|
||||
+++ b/tools/perf/scripts/perl/wakeup-latency.pl
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/perl -w
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# (c) 2009, Tom Zanussi <tzanussi@gmail.com>
|
||||
|
31
debian/patches/bugfix/all/tools_lib_symbol_use_d_fortify_source_2_for_non_debug_builds.patch
vendored
Normal file
31
debian/patches/bugfix/all/tools_lib_symbol_use_d_fortify_source_2_for_non_debug_builds.patch
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
From: Uwe Kleine-König <ukleinek@debian.org>
|
||||
Subject: tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds
|
||||
Date: Mon, 24 Apr 2023 12:28:27 +0200
|
||||
Forwarded: https://lore.kernel.org/all/20230424102827.58707-1-ukleinek@debian.org/
|
||||
|
||||
Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to
|
||||
define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other
|
||||
Makefiles with the same problem.
|
||||
|
||||
Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build")
|
||||
Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
|
||||
Acked-by: Ian Rogers <irogers@google.com>
|
||||
---
|
||||
tools/lib/symbol/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile
|
||||
index 13d43c6f92b4..4a08cc4e19f2 100644
|
||||
--- a/tools/lib/symbol/Makefile
|
||||
+++ b/tools/lib/symbol/Makefile
|
||||
@@ -39,7 +39,7 @@ endif
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG),0)
|
||||
- CFLAGS += -D_FORTIFY_SOURCE
|
||||
+ CFLAGS += -D_FORTIFY_SOURCE=2
|
||||
endif
|
||||
|
||||
# Treat warnings as errors unless directed not to
|
||||
--
|
||||
2.39.2
|
29
debian/patches/bugfix/all/usbip-document-tcp-wrappers.patch
vendored
Normal file
29
debian/patches/bugfix/all/usbip-document-tcp-wrappers.patch
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Sun, 24 Jun 2012 02:51:39 +0100
|
||||
Subject: usbip: Document TCP wrappers
|
||||
Forwarded: no
|
||||
|
||||
Add references to TCP wrappers configuration in the manual page.
|
||||
|
||||
--- a/tools/usb/usbip/doc/usbipd.8
|
||||
+++ b/tools/usb/usbip/doc/usbipd.8
|
||||
@@ -14,7 +14,8 @@ Devices have to explicitly be exported u
|
||||
before usbipd makes them available to other hosts.
|
||||
|
||||
The daemon accepts connections from USB/IP clients
|
||||
-on TCP port 3240 by default.
|
||||
+on TCP port 3240 by default. The clients authorised to connect may be
|
||||
+configured as documented in hosts_access(5).
|
||||
|
||||
.SH OPTIONS
|
||||
.HP
|
||||
@@ -69,7 +70,8 @@ Show version.
|
||||
|
||||
.B usbipd
|
||||
offers no authentication or authorization for USB/IP. Any
|
||||
-USB/IP client can connect and use exported devices.
|
||||
+USB/IP client running on an authorised host can connect and
|
||||
+use exported devices.
|
||||
|
||||
.SH EXAMPLES
|
||||
|
35
debian/patches/bugfix/arm/arm-dts-kirkwood-fix-sata-pinmux-ing-for-ts419.patch
vendored
Normal file
35
debian/patches/bugfix/arm/arm-dts-kirkwood-fix-sata-pinmux-ing-for-ts419.patch
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Fri, 17 Feb 2017 01:30:30 +0000
|
||||
Subject: ARM: dts: kirkwood: Fix SATA pinmux-ing for TS419
|
||||
Forwarded: https://lore.kernel.org/all/20170218003251.GC4152@decadent.org.uk/
|
||||
Bug-Debian: https://bugs.debian.org/855017
|
||||
|
||||
The old board code for the TS419 assigns MPP pins 15 and 16 as SATA
|
||||
activity signals (and none as SATA presence signals). Currently the
|
||||
device tree assigns the SoC's default pinmux groups for SATA, which
|
||||
conflict with the second Ethernet port.
|
||||
|
||||
Reported-by: gmbh@gazeta.pl
|
||||
Tested-by: gmbh@gazeta.pl
|
||||
References: https://bugs.debian.org/855017
|
||||
Cc: stable@vger.kernel.org # 3.15+
|
||||
Fixes: 934b524b3f49 ("ARM: Kirkwood: Add DT description of QNAP 419")
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
arch/arm/boot/dts/marvell/kirkwood-ts419.dtsi | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/marvell/kirkwood-ts419.dtsi
|
||||
+++ b/arch/arm/boot/dts/marvell/kirkwood-ts419.dtsi
|
||||
@@ -69,3 +69,11 @@
|
||||
phy-handle = <ðphy1>;
|
||||
};
|
||||
};
|
||||
+
|
||||
+&pmx_sata0 {
|
||||
+ marvell,pins = "mpp15";
|
||||
+};
|
||||
+
|
||||
+&pmx_sata1 {
|
||||
+ marvell,pins = "mpp16";
|
||||
+};
|
31
debian/patches/bugfix/arm/arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch
vendored
Normal file
31
debian/patches/bugfix/arm/arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Wed, 11 Jul 2018 23:40:55 +0100
|
||||
Subject: ARM: mm: Export __sync_icache_dcache() for xen-privcmd
|
||||
Forwarded: https://lore.kernel.org/all/20180711225013.GF14131@decadent.org.uk/
|
||||
|
||||
The xen-privcmd driver, which can be modular, calls set_pte_at()
|
||||
which in turn may call __sync_icache_dcache().
|
||||
|
||||
The call to __sync_icache_dcache() may be optimised out because it is
|
||||
conditional on !pte_special(), and xen-privcmd calls pte_mkspecial().
|
||||
However, in a non-LPAE configuration there is no "special" bit and the
|
||||
call is really unconditional.
|
||||
|
||||
Fixes: 3ad0876554ca ("xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE")
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
arch/arm/mm/flush.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
Index: debian-kernel/arch/arm/mm/flush.c
|
||||
===================================================================
|
||||
--- debian-kernel.orig/arch/arm/mm/flush.c
|
||||
+++ debian-kernel/arch/arm/mm/flush.c
|
||||
@@ -292,6 +292,7 @@ void __sync_icache_dcache(pte_t pteval)
|
||||
if (pte_exec(pteval))
|
||||
__flush_icache_all();
|
||||
}
|
||||
+EXPORT_SYMBOL_GPL(__sync_icache_dcache);
|
||||
#endif
|
||||
|
||||
/*
|
80
debian/patches/bugfix/arm64/arm64-acpi-Add-fixup-for-HPE-m400-quirks.patch
vendored
Normal file
80
debian/patches/bugfix/arm64/arm64-acpi-Add-fixup-for-HPE-m400-quirks.patch
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
From: Geoff Levand <geoff@infradead.org>
|
||||
Date: Wed, 13 Jun 2018 10:56:08 -0700
|
||||
Subject: arm64/acpi: Add fixup for HPE m400 quirks
|
||||
Forwarded: https://lore.kernel.org/all/51d3d738-cdf5-2992-bba5-c3e1f34096c2@infradead.org/
|
||||
|
||||
Adds a new ACPI init routine acpi_fixup_m400_quirks that adds
|
||||
a work-around for HPE ProLiant m400 APEI firmware problems.
|
||||
|
||||
The work-around disables APEI when CONFIG_ACPI_APEI is set and
|
||||
m400 firmware is detected. Without this fixup m400 systems
|
||||
experience errors like these on startup:
|
||||
|
||||
[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 2
|
||||
[Hardware Error]: event severity: fatal
|
||||
[Hardware Error]: Error 0, type: fatal
|
||||
[Hardware Error]: section_type: memory error
|
||||
[Hardware Error]: error_status: 0x0000000000001300
|
||||
[Hardware Error]: error_type: 10, invalid address
|
||||
Kernel panic - not syncing: Fatal hardware error!
|
||||
|
||||
Signed-off-by: Geoff Levand <geoff@infradead.org>
|
||||
[bwh: Adjust context and indentation to apply to Linux 6.10]
|
||||
---
|
||||
arch/arm64/kernel/acpi.c | 31 +++++++++++++++++++++++++++++++
|
||||
1 file changed, 31 insertions(+)
|
||||
|
||||
--- a/arch/arm64/kernel/acpi.c
|
||||
+++ b/arch/arm64/kernel/acpi.c
|
||||
@@ -36,6 +36,8 @@
|
||||
#include <asm/daifflags.h>
|
||||
#include <asm/smp_plat.h>
|
||||
|
||||
+#include <acpi/apei.h>
|
||||
+
|
||||
int acpi_noirq = 1; /* skip ACPI IRQ initialization */
|
||||
int acpi_disabled = 1;
|
||||
EXPORT_SYMBOL(acpi_disabled);
|
||||
@@ -178,6 +180,33 @@ out:
|
||||
}
|
||||
|
||||
/*
|
||||
+ * acpi_fixup_m400_quirks - Work-around for HPE ProLiant m400 APEI firmware
|
||||
+ * problems.
|
||||
+ */
|
||||
+static void __init acpi_fixup_m400_quirks(void)
|
||||
+{
|
||||
+ acpi_status status;
|
||||
+ struct acpi_table_header *header;
|
||||
+#if !defined(CONFIG_ACPI_APEI)
|
||||
+ int hest_disable = HEST_DISABLED;
|
||||
+#endif
|
||||
+
|
||||
+ if (!IS_ENABLED(CONFIG_ACPI_APEI) || hest_disable != HEST_ENABLED)
|
||||
+ return;
|
||||
+
|
||||
+ status = acpi_get_table(ACPI_SIG_HEST, 0, &header);
|
||||
+
|
||||
+ if (ACPI_SUCCESS(status) && !strncmp(header->oem_id, "HPE ", 6) &&
|
||||
+ !strncmp(header->oem_table_id, "ProLiant", 8) &&
|
||||
+ MIDR_IMPLEMENTOR(read_cpuid_id()) == ARM_CPU_IMP_APM) {
|
||||
+ hest_disable = HEST_DISABLED;
|
||||
+ pr_info("Disabled APEI for m400.\n");
|
||||
+ }
|
||||
+
|
||||
+ acpi_put_table(header);
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
* acpi_boot_table_init() called from setup_arch(), always.
|
||||
* 1. find RSDP and get its address, and then find XSDT
|
||||
* 2. extract all tables and checksums them all
|
||||
@@ -257,6 +286,8 @@ done:
|
||||
|
||||
if (IS_ENABLED(CONFIG_ACPI_BGRT))
|
||||
acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);
|
||||
+
|
||||
+ acpi_fixup_m400_quirks();
|
||||
}
|
||||
}
|
||||
|
46
debian/patches/bugfix/powerpc/fbdev-offb-Update-expected-device-name.patch
vendored
Normal file
46
debian/patches/bugfix/powerpc/fbdev-offb-Update-expected-device-name.patch
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
From: Cyril Brulebois <cyril@debamax.com>
|
||||
Date: Wed, 12 Apr 2023 11:55:08 +0200
|
||||
Subject: fbdev/offb: Update expected device name
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
Origin: https://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git/commit?id=27c74ea74be805ccba1bc1a0a03cc79c51dca6ea
|
||||
|
||||
Since commit 241d2fb56a18 ("of: Make OF framebuffer device names unique"),
|
||||
as spotted by Frédéric Bonnard, the historical "of-display" device is
|
||||
gone: the updated logic creates "of-display.0" instead, then as many
|
||||
"of-display.N" as required.
|
||||
|
||||
This means that offb no longer finds the expected device, which prevents
|
||||
the Debian Installer from setting up its interface, at least on ppc64el.
|
||||
|
||||
It might be better to iterate on all possible nodes, but updating the
|
||||
hardcoded device from "of-display" to "of-display.0" is confirmed to fix
|
||||
the Debian Installer at the very least.
|
||||
|
||||
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217328
|
||||
Link: https://bugs.debian.org/1033058
|
||||
Fixes: 241d2fb56a18 ("of: Make OF framebuffer device names unique")
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
|
||||
Signed-off-by: Helge Deller <deller@gmx.de>
|
||||
---
|
||||
drivers/video/fbdev/offb.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
|
||||
index 0065a77b6dbc8..b5fdef2b74359 100644
|
||||
--- a/drivers/video/fbdev/offb.c
|
||||
+++ b/drivers/video/fbdev/offb.c
|
||||
@@ -696,7 +696,7 @@ MODULE_DEVICE_TABLE(of, offb_of_match_display);
|
||||
|
||||
static struct platform_driver offb_driver_display = {
|
||||
.driver = {
|
||||
- .name = "of-display",
|
||||
+ .name = "of-display.0",
|
||||
.of_match_table = offb_of_match_display,
|
||||
},
|
||||
.probe = offb_probe_display,
|
||||
--
|
||||
2.30.2
|
||||
|
@@ -0,0 +1,39 @@
|
||||
From: Krzysztof Kozlowski <krzk@kernel.org>
|
||||
Date: Wed, 29 Aug 2018 09:32:23 +0200
|
||||
Subject: powerpc/boot: Fix missing crc32poly.h when building with KERNEL_XZ
|
||||
Origin: https://patchwork.ozlabs.org/patch/963258/
|
||||
|
||||
After commit faa16bc404d7 ("lib: Use existing define with
|
||||
polynomial") the lib/xz/xz_crc32.c includes a header from include/linux
|
||||
directory thus any other user of this code should define proper include
|
||||
path.
|
||||
|
||||
This fixes the build error on powerpc with CONFIG_KERNEL_XZ:
|
||||
|
||||
In file included from ../arch/powerpc/boot/../../../lib/decompress_unxz.c:233:0,
|
||||
from ../arch/powerpc/boot/decompress.c:42:
|
||||
../arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:29: fatal error: linux/crc32poly.h: No such file or directory
|
||||
|
||||
Reported-by: Michal Kubecek <mkubecek@suse.cz>
|
||||
Fixes: faa16bc404d7 ("lib: Use existing define with polynomial")
|
||||
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
|
||||
Reported-by: kbuild test robot <lkp@intel.com>
|
||||
Reported-by: Meelis Roos <mroos@linux.ee>
|
||||
Tested-by: Michal Kubecek <mkubecek@suse.cz>
|
||||
---
|
||||
arch/powerpc/boot/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: linux/arch/powerpc/boot/Makefile
|
||||
===================================================================
|
||||
--- linux.orig/arch/powerpc/boot/Makefile
|
||||
+++ linux/arch/powerpc/boot/Makefile
|
||||
@@ -70,7 +70,7 @@ BOOTCFLAGS += -fno-stack-protector
|
||||
endif
|
||||
|
||||
BOOTCFLAGS += -include $(srctree)/include/linux/compiler_attributes.h
|
||||
-BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj)
|
||||
+BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) -I$(srctree)/include
|
||||
|
||||
DTC_FLAGS ?= -p 1024
|
||||
|
95
debian/patches/bugfix/sh/sh-boot-do-not-use-hyphen-in-exported-variable-name.patch
vendored
Normal file
95
debian/patches/bugfix/sh/sh-boot-do-not-use-hyphen-in-exported-variable-name.patch
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Mon, 07 Feb 2022 00:00:26 +0100
|
||||
Subject: sh: Do not use hyphen in exported variable names
|
||||
|
||||
arch/sh/Makefile defines and exports ld-bfd to be used by
|
||||
arch/sh/boot/Makefile and arch/sh/boot/compressed/Makefile. However
|
||||
some shells, including dash, will not pass through environment
|
||||
variables whose name includes a hyphen. Usually GNU make does not use
|
||||
a shell to recurse, but if e.g. $(srctree) contains '~' it will use a
|
||||
shell here.
|
||||
|
||||
Rename the variable to ld_bfd.
|
||||
|
||||
(Another instance of this problem was fixed upstream by commit
|
||||
82977af93a0d "sh: rename suffix-y to suffix_y".)
|
||||
|
||||
References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=4.13%7Erc5-1%7Eexp1&stamp=1502943967&raw=0
|
||||
Fixes: ef9b542fce00 ("sh: bzip2/lzma uImage support.")
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
arch/sh/Makefile | 10 +++++-----
|
||||
arch/sh/boot/compressed/Makefile | 4 ++--
|
||||
arch/sh/boot/romimage/Makefile | 4 ++--
|
||||
3 files changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
Index: linux/arch/sh/Makefile
|
||||
===================================================================
|
||||
--- linux.orig/arch/sh/Makefile
|
||||
+++ linux/arch/sh/Makefile
|
||||
@@ -102,16 +102,16 @@ UTS_MACHINE := sh
|
||||
LDFLAGS_vmlinux += -e _stext
|
||||
|
||||
ifdef CONFIG_CPU_LITTLE_ENDIAN
|
||||
-ld-bfd := elf32-sh-linux
|
||||
-LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld-bfd)
|
||||
+ld_bfd := elf32-sh-linux
|
||||
+LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld_bfd)
|
||||
KBUILD_LDFLAGS += -EL
|
||||
else
|
||||
-ld-bfd := elf32-shbig-linux
|
||||
-LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld-bfd)
|
||||
+ld_bfd := elf32-shbig-linux
|
||||
+LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld_bfd)
|
||||
KBUILD_LDFLAGS += -EB
|
||||
endif
|
||||
|
||||
-export ld-bfd
|
||||
+export ld_bfd
|
||||
|
||||
# Mach groups
|
||||
machdir-$(CONFIG_SOLUTION_ENGINE) += mach-se
|
||||
Index: linux/arch/sh/boot/compressed/Makefile
|
||||
===================================================================
|
||||
--- linux.orig/arch/sh/boot/compressed/Makefile
|
||||
+++ linux/arch/sh/boot/compressed/Makefile
|
||||
@@ -36,7 +36,7 @@ endif
|
||||
|
||||
ccflags-remove-$(CONFIG_MCOUNT) += -pg
|
||||
|
||||
-LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \
|
||||
+LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(IMAGE_OFFSET) -e startup \
|
||||
-T $(obj)/../../kernel/vmlinux.lds
|
||||
|
||||
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
|
||||
@@ -60,7 +60,7 @@ $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.b
|
||||
|
||||
OBJCOPYFLAGS += -R .empty_zero_page
|
||||
|
||||
-LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
|
||||
+LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T
|
||||
|
||||
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE
|
||||
$(call if_changed,ld)
|
||||
Index: linux/arch/sh/boot/romimage/Makefile
|
||||
===================================================================
|
||||
--- linux.orig/arch/sh/boot/romimage/Makefile
|
||||
+++ linux/arch/sh/boot/romimage/Makefile
|
||||
@@ -13,7 +13,7 @@ mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724) :
|
||||
load-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-load-y)
|
||||
obj-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-obj-y)
|
||||
|
||||
-LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \
|
||||
+LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(load-y) -e romstart \
|
||||
-T $(obj)/../../kernel/vmlinux.lds
|
||||
|
||||
$(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
|
||||
@@ -24,7 +24,7 @@ OBJCOPYFLAGS += -j .empty_zero_page
|
||||
$(obj)/zeropage.bin: vmlinux FORCE
|
||||
$(call if_changed,objcopy)
|
||||
|
||||
-LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
|
||||
+LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T
|
||||
|
||||
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
|
||||
$(call if_changed,ld)
|
35
debian/patches/bugfix/x86/perf-tools-fix-unwind-build-on-i386.patch
vendored
Normal file
35
debian/patches/bugfix/x86/perf-tools-fix-unwind-build-on-i386.patch
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Sat, 22 Jul 2017 17:37:33 +0100
|
||||
Subject: perf tools: Fix unwind build on i386
|
||||
Forwarded: no
|
||||
|
||||
EINVAL may not be defined when building unwind-libunwind.c with
|
||||
REMOTE_UNWIND_LIBUNWIND, resulting in a compiler error in
|
||||
LIBUNWIND__ARCH_REG_ID(). Its only caller, access_reg(), only checks
|
||||
for a negative return value and doesn't care what it is. So change
|
||||
-EINVAL to -1.
|
||||
|
||||
Fixes: 52ffe0ff02fc ("Support x86(32-bit) cross platform callchain unwind.")
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
|
||||
--- a/tools/perf/arch/x86/util/unwind-libunwind.c
|
||||
+++ b/tools/perf/arch/x86/util/unwind-libunwind.c
|
||||
@@ -66,7 +66,7 @@ int LIBUNWIND__ARCH_REG_ID(int regnum)
|
||||
break;
|
||||
default:
|
||||
pr_err("unwind: invalid reg id %d\n", regnum);
|
||||
- return -EINVAL;
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
return id;
|
||||
@@ -106,7 +106,7 @@ int LIBUNWIND__ARCH_REG_ID(int regnum)
|
||||
break;
|
||||
default:
|
||||
pr_err("unwind: invalid reg id %d\n", regnum);
|
||||
- return -EINVAL;
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
return id;
|
22
debian/patches/bugfix/x86/revert-perf-build-fix-libunwind-feature-detection-on.patch
vendored
Normal file
22
debian/patches/bugfix/x86/revert-perf-build-fix-libunwind-feature-detection-on.patch
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Fri, 25 Sep 2015 22:50:50 +0100
|
||||
Subject: Revert "perf build: Fix libunwind feature detection on 32-bit x86"
|
||||
Forwarded: no
|
||||
|
||||
This reverts commit 05b41775e2edd69a83f592e3534930c934d4038e.
|
||||
It broke feature detection that was working just fine for us.
|
||||
---
|
||||
tools/perf/Makefile.config | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/tools/perf/Makefile.config
|
||||
+++ b/tools/perf/Makefile.config
|
||||
@@ -38,7 +38,7 @@ ifeq ($(SRCARCH),x86)
|
||||
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
|
||||
$(call detected,CONFIG_X86_64)
|
||||
else
|
||||
- LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind
|
||||
+ LIBUNWIND_LIBS = -lunwind -lunwind-x86
|
||||
endif
|
||||
endif
|
||||
|
34
debian/patches/bugfix/x86/viafb-autoload-on-olpc-xo1.5-only.patch
vendored
Normal file
34
debian/patches/bugfix/x86/viafb-autoload-on-olpc-xo1.5-only.patch
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Sat, 20 Apr 2013 15:52:02 +0100
|
||||
Subject: viafb: Autoload on OLPC XO 1.5 only
|
||||
Bug-Debian: https://bugs.debian.org/705788
|
||||
Forwarded: no
|
||||
|
||||
It appears that viafb won't work automatically on all the boards for
|
||||
which it has a PCI device ID match. Currently, it is blacklisted by
|
||||
udev along with most other framebuffer drivers, so this doesn't matter
|
||||
much.
|
||||
|
||||
However, this driver is required for console support on the XO 1.5.
|
||||
We need to allow it to be autoloaded on this model only, and then
|
||||
un-blacklist it in udev.
|
||||
|
||||
---
|
||||
--- a/drivers/video/fbdev/via/via-core.c
|
||||
+++ b/drivers/video/fbdev/via/via-core.c
|
||||
@@ -695,7 +695,14 @@ static const struct pci_device_id via_pc
|
||||
.driver_data = UNICHROME_VX900 },
|
||||
{ }
|
||||
};
|
||||
-MODULE_DEVICE_TABLE(pci, via_pci_table);
|
||||
+
|
||||
+static const struct pci_device_id via_pci_autoload_table[] __initconst = {
|
||||
+ /* OLPC XO 1.5 */
|
||||
+ { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_VX855_DID),
|
||||
+ .subvendor = 0x152d, .subdevice = 0x0833 },
|
||||
+ { }
|
||||
+};
|
||||
+MODULE_DEVICE_TABLE(pci, via_pci_autoload_table);
|
||||
|
||||
static const struct dev_pm_ops via_pm_ops = {
|
||||
#ifdef CONFIG_PM_SLEEP
|
Reference in New Issue
Block a user