Unverified Commit 4619dd77 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Improve coverage in default KUnit runs

Merge series from Mark Brown <broonie@kernel.org>:

We have some KUnit tests for ASoC but they're not being run as much as
they should be since ASoC isn't enabled in the configs used by default
with KUnit and in the case of the topology tests there is no way to
enable them without enabling drivers that use them.  This series
provides a Kconfig option which KUnit can use directly rather than worry
about drivers.

Further, since KUnit is typically run in UML but ALSA prevents build
with UML we need to remove that Kconfig conflict.  As far as I can tell
the motiviation for this is that many ALSA drivers use iomem APIs which
are not available under UML and it's more trouble than it's worth to go
through and add per driver dependencies.  In order to avoid these issues
we also provide stubs for these APIs so there are no build time issues
if a driver relies on iomem but does not depend on it.  With these stubs
I am able to build all the sound drivers available in a UML defconfig
(UML allmodconfig appears to have substantial other issues in a quick
test).

With this series I am able to run the topology KUnit tests as part of a
kunit --alltests run.
parents b174f9ca b7dc237e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
John Stultz <johnstul@us.ibm.com>
<jon.toppins+linux@gmail.com> <jtoppins@cumulusnetworks.com>
<jon.toppins+linux@gmail.com> <jtoppins@redhat.com>
Jonas Gorski <jonas.gorski@gmail.com> <jogo@openwrt.org>
Jordan Crouse <jordan@cosmicpenguin.net> <jcrouse@codeaurora.org>
<josh@joshtriplett.org> <josh@freedesktop.org>
<josh@joshtriplett.org> <josh@kernel.org>
+38 −38
Original line number Diff line number Diff line
@@ -994,7 +994,7 @@ Description: This file shows the amount of physical memory needed
What:		/sys/bus/platform/drivers/ufshcd/*/rpm_lvl
What:		/sys/bus/platform/devices/*.ufs/rpm_lvl
Date:		September 2014
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry could be used to set or show the UFS device
		runtime power management level. The current driver
		implementation supports 7 levels with next target states:
@@ -1021,7 +1021,7 @@ Description: This entry could be used to set or show the UFS device
What:		/sys/bus/platform/drivers/ufshcd/*/rpm_target_dev_state
What:		/sys/bus/platform/devices/*.ufs/rpm_target_dev_state
Date:		February 2018
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry shows the target power mode of an UFS device
		for the chosen runtime power management level.

@@ -1030,7 +1030,7 @@ Description: This entry shows the target power mode of an UFS device
What:		/sys/bus/platform/drivers/ufshcd/*/rpm_target_link_state
What:		/sys/bus/platform/devices/*.ufs/rpm_target_link_state
Date:		February 2018
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry shows the target state of an UFS UIC link
		for the chosen runtime power management level.

@@ -1039,7 +1039,7 @@ Description: This entry shows the target state of an UFS UIC link
What:		/sys/bus/platform/drivers/ufshcd/*/spm_lvl
What:		/sys/bus/platform/devices/*.ufs/spm_lvl
Date:		September 2014
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry could be used to set or show the UFS device
		system power management level. The current driver
		implementation supports 7 levels with next target states:
@@ -1066,7 +1066,7 @@ Description: This entry could be used to set or show the UFS device
What:		/sys/bus/platform/drivers/ufshcd/*/spm_target_dev_state
What:		/sys/bus/platform/devices/*.ufs/spm_target_dev_state
Date:		February 2018
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry shows the target power mode of an UFS device
		for the chosen system power management level.

@@ -1075,7 +1075,7 @@ Description: This entry shows the target power mode of an UFS device
What:		/sys/bus/platform/drivers/ufshcd/*/spm_target_link_state
What:		/sys/bus/platform/devices/*.ufs/spm_target_link_state
Date:		February 2018
Contact:	Subhash Jadavani <subhashj@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This entry shows the target state of an UFS UIC link
		for the chosen system power management level.

@@ -1084,7 +1084,7 @@ Description: This entry shows the target state of an UFS UIC link
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/monitor_enable
What:		/sys/bus/platform/devices/*.ufs/monitor/monitor_enable
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the status of performance monitor enablement
		and it can be used to start/stop the monitor. When the monitor
		is stopped, the performance data collected is also cleared.
@@ -1092,7 +1092,7 @@ Description: This file shows the status of performance monitor enablement
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/monitor_chunk_size
What:		/sys/bus/platform/devices/*.ufs/monitor/monitor_chunk_size
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file tells the monitor to focus on requests transferring
		data of specific chunk size (in Bytes). 0 means any chunk size.
		It can only be changed when monitor is disabled.
@@ -1100,7 +1100,7 @@ Description: This file tells the monitor to focus on requests transferring
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_total_sectors
What:		/sys/bus/platform/devices/*.ufs/monitor/read_total_sectors
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how many sectors (in 512 Bytes) have been
		sent from device to host after monitor gets started.

@@ -1109,7 +1109,7 @@ Description: This file shows how many sectors (in 512 Bytes) have been
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_total_busy
What:		/sys/bus/platform/devices/*.ufs/monitor/read_total_busy
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how long (in micro seconds) has been spent
		sending data from device to host after monitor gets started.

@@ -1118,7 +1118,7 @@ Description: This file shows how long (in micro seconds) has been spent
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_nr_requests
What:		/sys/bus/platform/devices/*.ufs/monitor/read_nr_requests
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how many read requests have been sent after
		monitor gets started.

@@ -1127,7 +1127,7 @@ Description: This file shows how many read requests have been sent after
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_max
What:		/sys/bus/platform/devices/*.ufs/monitor/read_req_latency_max
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the maximum latency (in micro seconds) of
		read requests after monitor gets started.

@@ -1136,7 +1136,7 @@ Description: This file shows the maximum latency (in micro seconds) of
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_min
What:		/sys/bus/platform/devices/*.ufs/monitor/read_req_latency_min
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the minimum latency (in micro seconds) of
		read requests after monitor gets started.

@@ -1145,7 +1145,7 @@ Description: This file shows the minimum latency (in micro seconds) of
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_avg
What:		/sys/bus/platform/devices/*.ufs/monitor/read_req_latency_avg
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the average latency (in micro seconds) of
		read requests after monitor gets started.

@@ -1154,7 +1154,7 @@ Description: This file shows the average latency (in micro seconds) of
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_sum
What:		/sys/bus/platform/devices/*.ufs/monitor/read_req_latency_sum
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the total latency (in micro seconds) of
		read requests sent after monitor gets started.

@@ -1163,7 +1163,7 @@ Description: This file shows the total latency (in micro seconds) of
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_total_sectors
What:		/sys/bus/platform/devices/*.ufs/monitor/write_total_sectors
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how many sectors (in 512 Bytes) have been sent
		from host to device after monitor gets started.

@@ -1172,7 +1172,7 @@ Description: This file shows how many sectors (in 512 Bytes) have been sent
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_total_busy
What:		/sys/bus/platform/devices/*.ufs/monitor/write_total_busy
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how long (in micro seconds) has been spent
		sending data from host to device after monitor gets started.

@@ -1181,7 +1181,7 @@ Description: This file shows how long (in micro seconds) has been spent
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_nr_requests
What:		/sys/bus/platform/devices/*.ufs/monitor/write_nr_requests
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows how many write requests have been sent after
		monitor gets started.

@@ -1190,7 +1190,7 @@ Description: This file shows how many write requests have been sent after
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_max
What:		/sys/bus/platform/devices/*.ufs/monitor/write_req_latency_max
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the maximum latency (in micro seconds) of write
		requests after monitor gets started.

@@ -1199,7 +1199,7 @@ Description: This file shows the maximum latency (in micro seconds) of write
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_min
What:		/sys/bus/platform/devices/*.ufs/monitor/write_req_latency_min
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the minimum latency (in micro seconds) of write
		requests after monitor gets started.

@@ -1208,7 +1208,7 @@ Description: This file shows the minimum latency (in micro seconds) of write
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_avg
What:		/sys/bus/platform/devices/*.ufs/monitor/write_req_latency_avg
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the average latency (in micro seconds) of write
		requests after monitor gets started.

@@ -1217,7 +1217,7 @@ Description: This file shows the average latency (in micro seconds) of write
What:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_sum
What:		/sys/bus/platform/devices/*.ufs/monitor/write_req_latency_sum
Date:		January 2021
Contact:	Can Guo <cang@codeaurora.org>
Contact:	Can Guo <quic_cang@quicinc.com>
Description:	This file shows the total latency (in micro seconds) of write
		requests after monitor gets started.

@@ -1226,7 +1226,7 @@ Description: This file shows the total latency (in micro seconds) of write
What:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_presv_us_en
What:		/sys/bus/platform/devices/*.ufs/device_descriptor/wb_presv_us_en
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows if preserve user-space was configured

		The file is read only.
@@ -1234,7 +1234,7 @@ Description: This entry shows if preserve user-space was configured
What:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_shared_alloc_units
What:		/sys/bus/platform/devices/*.ufs/device_descriptor/wb_shared_alloc_units
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the shared allocated units of WB buffer

		The file is read only.
@@ -1242,7 +1242,7 @@ Description: This entry shows the shared allocated units of WB buffer
What:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_type
What:		/sys/bus/platform/devices/*.ufs/device_descriptor/wb_type
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the configured WB type.
		0x1 for shared buffer mode. 0x0 for dedicated buffer mode.

@@ -1251,7 +1251,7 @@ Description: This entry shows the configured WB type.
What:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_buff_cap_adj
What:		/sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_buff_cap_adj
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the total user-space decrease in shared
		buffer mode.
		The value of this parameter is 3 for TLC NAND when SLC mode
@@ -1262,7 +1262,7 @@ Description: This entry shows the total user-space decrease in shared
What:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_alloc_units
What:		/sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_max_alloc_units
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the Maximum total WriteBooster Buffer size
		which is supported by the entire device.

@@ -1271,7 +1271,7 @@ Description: This entry shows the Maximum total WriteBooster Buffer size
What:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_wb_luns
What:		/sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_max_wb_luns
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the maximum number of luns that can support
		WriteBooster.

@@ -1280,7 +1280,7 @@ Description: This entry shows the maximum number of luns that can support
What:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_red_type
What:		/sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_sup_red_type
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	The supportability of user space reduction mode
		and preserve user space mode.
		00h: WriteBooster Buffer can be configured only in
@@ -1295,7 +1295,7 @@ Description: The supportability of user space reduction mode
What:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_wb_type
What:		/sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_sup_wb_type
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	The supportability of WriteBooster Buffer type.

		===  ==========================================================
@@ -1310,7 +1310,7 @@ Description: The supportability of WriteBooster Buffer type.
What:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_enable
What:		/sys/bus/platform/devices/*.ufs/flags/wb_enable
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the status of WriteBooster.

		== ============================
@@ -1323,7 +1323,7 @@ Description: This entry shows the status of WriteBooster.
What:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_en
What:		/sys/bus/platform/devices/*.ufs/flags/wb_flush_en
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows if flush is enabled.

		== =================================
@@ -1336,7 +1336,7 @@ Description: This entry shows if flush is enabled.
What:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_during_h8
What:		/sys/bus/platform/devices/*.ufs/flags/wb_flush_during_h8
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	Flush WriteBooster Buffer during hibernate state.

		== =================================================
@@ -1351,7 +1351,7 @@ Description: Flush WriteBooster Buffer during hibernate state.
What:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_avail_buf
What:		/sys/bus/platform/devices/*.ufs/attributes/wb_avail_buf
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the amount of unused WriteBooster buffer
		available.

@@ -1360,7 +1360,7 @@ Description: This entry shows the amount of unused WriteBooster buffer
What:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_cur_buf
What:		/sys/bus/platform/devices/*.ufs/attributes/wb_cur_buf
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the amount of unused current buffer.

		The file is read only.
@@ -1368,7 +1368,7 @@ Description: This entry shows the amount of unused current buffer.
What:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_flush_status
What:		/sys/bus/platform/devices/*.ufs/attributes/wb_flush_status
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the flush operation status.


@@ -1385,7 +1385,7 @@ Description: This entry shows the flush operation status.
What:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_life_time_est
What:		/sys/bus/platform/devices/*.ufs/attributes/wb_life_time_est
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows an indication of the WriteBooster Buffer
		lifetime based on the amount of performed program/erase cycles

@@ -1399,7 +1399,7 @@ Description: This entry shows an indication of the WriteBooster Buffer

What:		/sys/class/scsi_device/*/device/unit_descriptor/wb_buf_alloc_units
Date:		June 2020
Contact:	Asutosh Das <asutoshd@codeaurora.org>
Contact:	Asutosh Das <quic_asutoshd@quicinc.com>
Description:	This entry shows the configured size of WriteBooster buffer.
		0400h corresponds to 4GB.

+42 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/loongson,ls1x-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Loongson-1 Watchdog Timer

maintainers:
  - Keguang Zhang <keguang.zhang@gmail.com>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    enum:
      - loongson,ls1b-wdt
      - loongson,ls1c-wdt

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/loongson,ls1x-clk.h>
    watchdog: watchdog@1fe5c060 {
        compatible = "loongson,ls1b-wdt";
        reg = <0x1fe5c060 0xc>;

        clocks = <&clkc LS1X_CLKID_APB>;
    };
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ If you aren't subscribed to netdev and/or are simply unsure if
repository link above for any new networking-related commits.  You may
also check the following website for the current status:

  http://vger.kernel.org/~davem/net-next.html
  https://patchwork.hopto.org/net-next.html

The ``net`` tree continues to collect fixes for the vX.Y content, and is
fed back to Linus at regular (~weekly) intervals.  Meaning that the
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ The following keys are defined:
    privileged ISA, with the following known exceptions (more exceptions may be
    added, but only if it can be demonstrated that the user ABI is not broken):

    * The :fence.i: instruction cannot be directly executed by userspace
    * The ``fence.i`` instruction cannot be directly executed by userspace
      programs (it may still be executed in userspace via a
      kernel-controlled mechanism such as the vDSO).

Loading