Since commit ece67f4758 ("soc/tegra: Make ARCH_TEGRA_SOC_FOO defaults
for NVIDIA Tegra"), all Tegra arm64 archs are enabled for GKI. Commit
eb5e5c1f62 ("ANDROID: gki_defconfig: Enable Tegra SoCs") disabled
options related to Tegra archs older than Tegra234 since that was the
only one supported at the time. Now that all archs are supported, these
options can be used.
* SERIAL_8250_TEGRA is used by Tegra210 and Tegra186 for UART serial
* TEGRA186_TIMER is used by Tegra186 and newer for watchdog timers
* TEGRA_IOMMU_SMMU is required by Tegra210 for mmu
* TEGRA210_EMC can be a module, but depends on an additional built-in
config; plus all other Tegra emc support is built-in already
* TEGRA_AHB is used by Tegra210
* ARM_TEGRA20_CPUFREQ and ARM_TEGRA124_CPUFREQ Kconfig changes are reset
to match mainline. New vendor snippets enabling CPUFREQ_DT can disable
as needed. The rockpi4 target is updated as an example of this.
Change-Id: I05541c6e1fc1ccd9ab430451a66f0d5cc3c7b0e1
Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
* These have been recently broken by a dependency upgrade. This commit
disables them while they get fixed.
Bug: 536813037
Bug: 536732335
Bug: 536739090
Change-Id: I279fbb2ce563e3597e96ec762b26866d12b0ea22
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
This will allow mixed builds to use source-built pahole.
Bug: 477549297
Change-Id: Ibc9293bef1fa9ce4ebeb8c0ba1126e9ce0ec0713
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
This makes the kernel builds use source-built pahole.
Bug: 477549297
Change-Id: I7ceb5d5349c1e920ff996a4d629ad0d1ad53948e
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
Add include/linux/kconfig.h to the hdrs of the dt-bindings target. This
is required for device trees to use `IS_ENABLED` macro.
Bug: 448483795
Change-Id: Icb120826738b0c315a272981f313924b8060f8d6
Signed-off-by: Yuan-Jen (淵仁) Cheng <cyuanjen@google.com>
The x86 kernel build target doesn't define the ddk_headers_archive
target as the aarch64 does. Add it accordingly.
Bug: 516461325
Test: Verify that the kernel_x86_64_ddk_headers_archive.tar.gz
is produced.
Change-Id: Iaff578b3e93fa9b911adfe9c0549728e3882ad84
Signed-off-by: Hubert Mazur <hmazur@google.com>
Upstream 'transhuge_stress' kselftest now uses thp_settings sources to
determine whether thp is available in the system. We need to manually
incorporate these source files to the bazel recipe, so do that.
This patch fixes:
common/tools/testing/selftests/mm/transhuge-stress.c:20:10: fatal error: 'thp_settings.h' file not found
20 | #include "thp_settings.h"
| ^~~~~~~~~~~~~~~~
Fixes: cfe9a446f5 ("selftests/mm: transhuge_stress: skip the test when thp not available")
Change-Id: Ie7c0609f91817fb492ba33590311b7d0bef0f809
Signed-off-by: Carlos Llamas <cmllamas@google.com>
The tegra124-cpufreq module is now indirectly enabled by default via
ARCH_TEGRA -> ARCH_TEGRA_124_SOC -> ARM_TEGRA124_CPUFREQ. This selection
begin after commit ece67f4758 ("soc/tegra: Make ARCH_TEGRA_SOC_FOO
defaults for NVIDIA Tegra") for 32bit arm targets.
Fixes: ece67f4758 ("soc/tegra: Make ARCH_TEGRA_SOC_FOO defaults for NVIDIA Tegra")
Change-Id: I9a4705bce0c7157feea7a263367b74493246e8d7
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Upstream commit ce5c7c17e7 ("mux: add visible config symbol to enable
multiplexer subsystem") made CONFIG_MUX_CORE a visible config and also
switched its type from tristate to bool. Since, several audio drivers
such as wcd938x.ko depend on this option, it now needs to be built-in.
This is fine as the MUX core is pretty small (<37K). However, this can
be turned off in the future if the dependency from the audio drivers is
removed.
Fixes: ce5c7c17e7 ("mux: add visible config symbol to enable multiplexer subsystem")
Change-Id: I6973d1dccf93035840b87575a22fce6b0792162a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
CRYPTO_MICHAEL_MIC has been removed from the kernel and the algorithm
has been integrated into cfg80211 directly instead, so drop the config
from the db845c_gki.fragment too.
Cc: Eric Biggers <ebiggers@google.com>
Fixes: 8c6d03b7a2 ("crypto: Remove michael_mic from crypto_shash API")
Change-Id: Ie380368ba2dacfe66b5f6e8bd9d0bbfb73c5f699
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Update BUILD.bazel and vts_config_*.xml files to include Kselftest x86 architecture tests that were built but not included in the VTS configuration. This improves VTS test coverage.
Test: Built VTS tests zip for x86_64 and arm64
Bug: 512653373
Change-Id: I33fb029f3c4b93946677e3066648ce58a1dbc92e
Signed-off-by: Wake Liu <wakel@google.com>
Update BUILD.bazel and vts_config_*.xml files to include Kselftest vDSO tests that were built but not included in the VTS configuration. This improves VTS test coverage.
Test: Built VTS tests zip for x86_64 and arm64
Bug: 512653373
Change-Id: I152bed01768a6f04f5f13011ecb7fdb8839d68e3
Signed-off-by: Wake Liu <wakel@google.com>
Update BUILD.bazel and vts_config_*.xml files to include Kselftest timer tests that were built but not included in the VTS configuration. This improves VTS test coverage.
Test: Built VTS tests zip for x86_64 and arm64
Bug: 512653373
Change-Id: I62d025439ccf0e5d2dec47f734c3ed85a806a2f7
Signed-off-by: Wake Liu <wakel@google.com>
Update BUILD.bazel and vts_config_*.xml files to include Kselftest size tests that were built but not included in the VTS configuration. This improves VTS test coverage.
Test: Built VTS tests zip for x86_64 and arm64
Bug: 512653373
Change-Id: Ife8dbbd43b58933bb6ecf2d158025dd6c1686b79
Signed-off-by: Wake Liu <wakel@google.com>
Update BUILD.bazel and vts_config_*.xml files to include Kselftest memory management tests that were built but not included in the VTS configuration. This improves VTS test coverage.
Test: Built VTS tests zip for x86_64 and arm64
Bug: 512653373
Change-Id: Id2202521c432d72ab749c449becaa4a721ce73aa
Signed-off-by: Wake Liu <wakel@google.com>
This reverts commit 12bd29ac6a which
pulls them in via GKI now.
Bug: 505327866
Change-Id: I546a584acd7036a53f72a6cd6bc32d1e20587873
Signed-off-by: Will McVicker <willmcvicker@google.com>
ufshcd-priv.h has definitions and declarations that are intended for the
UFS core only. This header file should not be included from UFS host
drivers. Hence, remove ufshcd-priv.h from the DDK.
Bug: 497906133
Change-Id: I757e849bbd9e20d90acbd657127a4ca694222dee
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This reverts commit af99cf46e2.
It is no longer needed since commit 5abfa0c4da ("Revert "selftests:
vDSO: parse_vdso: Use UAPI headers instead of libc headers"") has
switched back to using libc headers. Reverting this commit fixes the
duplicate definitions with the UAPI headers:
tools/testing/selftests/vDSO/parse_vdso.c:22:
usr/include/elf.h:124:3: error: typedef redefinition with different types ('struct Elf32_Verdef' vs 'struct Elf32_Verdef')
124 | } Elf32_Verdef;
| ^
include/uapi/linux/elf.h:593:3: note: previous definition is here
593 | } Elf32_Verdef;
| ^
Change-Id: I35750e94b9718d86caa87391ba482f75f06fb339
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Add zstd compressed kernel image to be built by default. Zstd compressed
kernel image is approximately 1.6 times smaller than lz4 which will improve
boot time on platforms with slower I/O (e.g. eMMC) though it shall be
carefully used and verified with BootPerf test as lz4 offers faster
decompression time in general than zstd.
Bug: 457429470
Test: tools/bazel run //common:kernel_aarch64_dist
Test: Verify that Image.zst is present in dist dir
Change-Id: Ia73cbd9fb12fccd30665490d1ceab1496e4b08d7
Signed-off-by: Hubert Mazur <hmazur@google.com>
This allows Bazel to natively resolve the external repository paths in
standalone workspaces which Bazel uses during tests. `package_name()`
approach only returns the path relative to the root of its own
workspace, which causes the include path to be set incorrectly for test
workspaces.
Bug: 477549297
Change-Id: Iab298c120acc5d29e5eb41b30ba145a3726b07a4
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
This change prevents bpf_86 include paths from polluting include paths
for downstream targets.
Bug: 477549297
Change-Id: Id36fc673d016bc4a73d63b515f145e1976425e4e
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
copt -I tools/lib/bpf is not required since all headers under this
directory are included with the hdrs attribute.
Bug: 477549297
Change-Id: I1e47f481034f4c3b5dc0308c016e55810ff2f455
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
It is used as prebuilt artifacts of x86_64 headers for ddk workspace.
Test: tools/bazel build //common:kernel_x86_64_ddk_headers_archive
Bug: 493138451
Change-Id: I467136525571acef2d443db6b5d5cbc93c74e982
Signed-off-by: Brandon Chen <brandon.chen@imgtec.com>
The wifi7-specific functionality was split out from the ath12k core into
a new ath12k_wifi7.ko module. This sill gets enabled via CONFIG_ATH12K,
so add it to the list of db845c module outs.
Cc: Amit Pundir <amit.pundir@linaro.org>
Fixes: a720270452 ("wifi: ath12k: Modularize driver into common and Wi-Fi 7 specific components")
Change-Id: I7178a05925c0004e434d7bcd25d5637861d6b49b
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This change builds pahole from sources in external/dwarves with libbpf
library built from sources in the kernel tree.
Bug: 477549297
Change-Id: I79a921239f66238c435470b38f6337e1d4137107
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
* This is in favor of using --dynamic_partition_size
Bug: 466517442
Change-Id: If65ad6e711a95426ef2d5f4b43c57db50a305020
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
x86 libbpf is a dependency for pahole, required for building pahole from
sources.
Bug: 477549297
Change-Id: Icd19ec89ab4bd5637bb82fb6262233e31dacf1e8
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
Add zstd compressed kernel image to be built by default. Zstd compressed
kernel image is approximately 1.6 times smaller than lz4 which will improve
boot time on platforms with slower I/O (e.g. eMMC) though it shall be
carefully used and verified with BootPerf test as lz4 offers faster
decompression time in general than zstd.
Bug: 457429470
Test: tools/bazel run //common:kernel_aarch64_dist
Test: Verify that Image.zst is present in dist dir
Change-Id: I2de45af338d55acaa85cc033e5935c8f8877387b
Signed-off-by: Hubert Mazur <hmazur@google.com>
Upstream has moved away from relative path header inclusion for
kselftest.h and ksefltest_harness.h headers. It now uses the compiler
option -I for the non-relative paths. This patch makes the equivalent
change to our bazel file, so that build targets can find the headers.
Cc: Wake Liu <wakel@google.com>
Cc: HONG Yifan <elsk@google.com>
Fixes: e6fbd1759c ("selftests: complete kselftest include centralization")
Change-Id: I77b46c97057f2745feee72ea6a3fced71c1a5544
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This reverts commit 062cbc4876.
There was no follow up of this patch upstream, also the cherry-pick is
not clean. Revert this as it creates merge conflicts with upstream
changes and if really needed, please send a new version upstream.
Bug: 444295917
Cc: Wake Liu <wakel@google.com>
Change-Id: I8ffdf3e8331c9318749fdadf9759921b209e424b
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Add Image.lzma build artifact for the aarch64 kernel build. LZMA
compressed binary has the lowest size compared to gzip and lz4 which
might be useful for platforms where partition size is limited.
Bug: 457429470
Test: tools/bazel run //common:kernel_aarch64_dist
Change-Id: I4ddc3dd28b2967e7e1e88a0c0b3f192dfb7fb687
Signed-off-by: Hubert Mazur <hmazur@google.com>
Add the kselftest_rtc_rtctest tests to all architectures
in the VTS test configuration.
Bug: 416599813
Change-Id: I9c4d3a394fe98913da21a77d0ad02c13466a0005
Signed-off-by: Wake Liu <wakel@google.com>
Branches happen and the comments become stale.
Bug: 393366754
Change-Id: I6bbd74752bd2154d6560e0dd12dc169a5df611e2
Signed-off-by: Giuliano Procida <gprocida@google.com>
This file was obsoleted a long while ago.
Bug: 393366754
Change-Id: I156073dab87ce04a7bc2ea06dafe169e6ef4452b
Signed-off-by: Giuliano Procida <gprocida@google.com>
Add the kselftest_breakpoints_breakpoint_test to all architectures
and to the VTS test configuration.
Bug: 416599813
Signed-off-by: Wake Liu <wakel@google.com>
Change-Id: I8bde8dd8829e8f910bcb50984c6507373f81b825
Add the following net kselftests to VTS for all architectures:
- socket
- psock_tpacket
- reuseport_dualstack
- reuseaddr_conflict
The tests are added to the `vts_kselftest_tests` filegroup in BUILD.bazel
and the corresponding VTS config files.
Bug: 416599813
Change-Id: I75b63586720d6644d5dcae5605c4ad1344cb2980
Signed-off-by: Wake Liu <wakel@google.com>
The module is now built-in as selected by CONFIG_PCIE_QCOM, so there is
no longer a need to list it under the db845c's modules.
Fixes: add7b05aee ("PCI: qcom: Select PCI Power Control Slot driver")
Change-Id: Ie1aece13a78b48b131ebb96f02cff52551553e55
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Upstream has added a new stmmac module "dwmac-sun55i.ko" selected as
default for ARCH_SUNXI. Add it to the rockpi4 modules list along with
its dependency "mdio-mux.ko".
Fixes: f603808a98 ("net: stmmac: Add support for Allwinner A523 GMAC200")
Change-Id: I947e1e72c0f6d5da6b5151ce131bfe360b9360ae
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This allows us to pull in some out-of-tree drivers needed that aren't
upstream yet (or won't be upstreamed).
Bug: 447432784
Change-Id: If00523fabcc84d99c66290dc0385ddbb8d95731b
Signed-off-by: Will McVicker <willmcvicker@google.com>
when build with the --debug option being passed, so that it is possible
to run the tools like scripts/decode_stacktrace.sh to decode the kernel
call trace for kernel module functions.
Bug: 146449535
Test: KOs in dist have the debug information when --debug passsed
Change-Id: I1e437795573c7c6a1df0803dbbae67e247e319cb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Upstream refactored some of the duplicated code across WCD codecs into a
new common helper. This module gets selected by the codec drivers used
the db845c build, so add it to its list of modules.
Fixes: 4f16b6351b ("ASoC: codecs: wcd: add common helper for wcd codecs")
Change-Id: I581c942ca2da9cb25d8bd8764e25e7f6e16dd525
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Upstream has removed the vdso_test_clock_getres test as it is redundant
with vdso_test_abi, so remove all instances of this test from our test
mapping files accordingly.
Fixes: e82bf7570d ("selftests: vDSO: Drop vdso_test_clock_getres")
Change-Id: I045207fd4dd838ab9624a958c4201b0b2ae2fb43
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This build target compiles both the kernel and gs101 upstream drivers.
Since several of the gs101 drivers depend on ARCH_EXYNOS, we cannot use
GKI's kernel_aarch64 build as the base_kernel yet. Instead, this
build target uses the gki_defconfig + raviole_gki.fragment to build
the kernel and driver modules.
Bug: 447432784
Change-Id: I1f2d36d107bec890e925c84843c05dd0f93df33b
Signed-off-by: Will McVicker <willmcvicker@google.com>
Move most bazel files, like abi.bzl and modules.bzl, to the
bazel/ folder. This is so that our top-level directory
is clean from Android-specific files.
Re-export some symbols in the top-level modules.bzl file. This is
so that we still allow mixed builds to use it.
Bug: 448148817
Change-Id: Id6b7565c4de57fb8951d98896e027657d456a75f
Signed-off-by: HONG Yifan <elsk@google.com>