Replacing alloc_vm_area with get_vm_area_caller + apply_page_range
allows to fill put the phys_addr values directly instead of doing
another loop over all addresses.
Signed-off-by: Christoph Hellwig
---
drivers/xen/xenbus/xenbus_client.c | 30 --
1 file changed, 16 in
On 9/17/2020 8:08 PM, Liu Shixin wrote:
> module_bcma_driver() makes the code simpler by eliminating
> boilerplate code.
>
> Signed-off-by: Liu Shixin
> ---
> drivers/pci/controller/pcie-iproc-bcma.c | 13 +
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/drive
Open code alloc_vm_area in the last remaining caller.
Signed-off-by: Christoph Hellwig
---
arch/x86/xen/grant-table.c | 27 +++--
include/linux/vmalloc.h| 5 +---
mm/nommu.c | 7 --
mm/vmalloc.c | 48 --
On 2020-09-18 18:29, Ansuel Smith wrote:
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to
define from where the driver will load the pre-cal data in the defined
mtd partition.
Signed-off-by: Ansuel Smith
Q: Doesn't mtd now come with nvmem support from the get go? So
the M
From: Igor Skalkin
struct scmi_desc.max_msg specifies a limit for the pending messages.
This limit is a per SCMI channel type (tx, rx) limit. State that
explicitly in the inline documentation. The following patch will add an
op to override the limit per channel type.
Co-developed-by: Peter Hilbe
On Fri, Sep 18, 2020 at 04:35:11PM +, Konstantin Komarov wrote:
> > That was only just renamed. More concerningly, the documentation is
> > quite unambiguous:
> >
> > * This function is for filesystems to call when they want to start
> > * readahead beyond a file's stated i_size. This is a
From: Igor Skalkin
The number of messages that the upcoming scmi-virtio transport can
support depends on the virtio device (SCMI platform) and can differ for
each channel. (The scmi-virtio transport does only have one tx and at
most 1 rx channel.)
Add an optional transport op so that scmi-virtio
On Fri, Sep 18, 2020 at 8:31 AM Darrick J. Wong wrote:
>
> On Thu, Sep 17, 2020 at 10:30:03PM -0700, Dan Williams wrote:
> > From: Jan Kara
> >
> > DM was calling generic_fsdax_supported() to determine whether a device
> > referenced in the DM table supports DAX. However this is a helper for
> >
From: Igor Skalkin
The virtio transport in this patch series can be simplified by using the
scmi_xfer tx/rx buffers for data exchange with the virtio device, and
for saving the message state. But the virtio transport requires
prepending a transport-specific header. Also, for data exchange using
v
The commit 8234f6734c5d ("PM-runtime: Switch autosuspend over to using
hrtimers") switched PM runtime autosuspend to use hrtimers and all related
time accounting in ns, but missed update the struct
dev_pm_info->timer_expires to u64. This causes timer_expires value to be
truncated on 32bits architec
From: Igor Skalkin
The virtio transport in this patch series can be simplified by using the
scmi_xfer tx/rx buffers for data exchange with the virtio device, and
for saving the message state. But the virtio transport requires
prepending a transport-specific header. Also, for data exchange using
v
From: Igor Skalkin
Document the properties for arm,scmi-virtio compatible nodes. The
backing virtio SCMI device is described in patch [1].
[1] https://lists.oasis-open.org/archives/virtio-comment/202005/msg00096.html
Co-developed-by: Peter Hilber
Signed-off-by: Peter Hilber
Signed-off-by: Igo
From: Igor Skalkin
This transport enables accessing an SCMI platform as a virtio device.
Implement an SCMI virtio driver according to the virtio SCMI device spec
patch v5 [1]. Virtio device id 32 has been reserved for the SCMI device
[2].
The virtio transport has one tx channel (virtio cmdq, A2
We intend to use one header file for SERDES MUX for all
TI SoCs so rename the header file.
The exsting macros are too generic. Prefix them with SoC name.
While at that, add the missing configurations for completeness.
Reported-by: Peter Rosin
Fixes: b766e3b0d5f6 ("arm64: dts: ti: k3-j721e-main:
Hi Grygorii,
On 9/18/20 10:38 AM, Grygorii Strashko wrote:
> From: Peter Ujfalusi
>
> Add the intr, inta, ringacc and udmap nodes for main and mcu NAVSS.
Need to update the changelog, intr and inta are not part of this revised series.
>
> Signed-off-by: Peter Ujfalusi
> Signed-off-by: Grygor
Attempting to unregister Guest Interruption Subclass (GISC) when the
link between the matrix mdev and KVM has been removed results in the
following:
"Kernel panic -not syncing: Fatal exception: panic_on_oops"
This patch fixes this bug by verifying the matrix mdev and KVM are still
linked prior
On 9/17/20 10:22 AM, Cornelia Huck wrote:
On Fri, 21 Aug 2020 15:56:06 -0400
Tony Krowiak wrote:
The APCB is a field within the CRYCB that provides the AP configuration
to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and
maintain it for the lifespan of the guest.
Sign
From: vsujithk
Update lpass-cpu.c to enable I2S BCLK and LRCLK together.
Remove BCLK enable in lpass_cpu_daiops_startup and
add in lpass_cpu_daiops_trigger API.
Signed-off-by: V Sujith Kumar Reddy
Signed-off-by: Srinivasa Rao Mandadapu
---
sound/soc/qcom/lpass-cpu.c | 16
1 f
On 9/17/20 10:34 AM, Cornelia Huck wrote:
On Fri, 21 Aug 2020 15:56:07 -0400
Tony Krowiak wrote:
The matrix of adapters and domains configured in a guest's CRYCB may
differ from the matrix of adapters and domains assigned to the matrix mdev,
so this patch introduces a sysfs attribute to dis
On 2020-09-17 16:36, Randy Dunlap wrote:
On 9/17/20 3:19 PM, Bhaumik Bhatt wrote:
diff --git a/drivers/bus/mhi/Kconfig b/drivers/bus/mhi/Kconfig
index a8bd9bd..ae68347 100644
--- a/drivers/bus/mhi/Kconfig
+++ b/drivers/bus/mhi/Kconfig
@@ -12,3 +12,11 @@ config MHI_BUS
communication prot
[ Back from my PTO and still digging out emails ]
On Mon, 7 Sep 2020 13:43:02 +0200
Oleg Nesterov wrote:
> On 09/06, Davidlohr Bueso wrote:
> >
> > Here tasklist_lock does not protect anything other than the list
> > against concurrent fork/exit. And considering that the whole thing
> > is cappe
Linus,
please pull sound fixes for v5.9-rc6 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
tags/sound-5.9-rc6
The topmost commit is 8949b6660c3c7947a9b696c97eb85a32abe4a2d7
sound fixes for 5.9-rc6
Here is
On Fri, Sep 4, 2020 at 6:39 AM Viresh Kumar wrote:
>
> On 03-09-20, 14:32, Ionela Voinescu wrote:
> > Hi Rafael, Viresh,
> >
> > Would it be okay for you to apply this series, as the majority of
> > changes are in cpufreq? For arch_topology and arm64 changes, they have
> > been reviewed and acked-
On Fri, 2020-09-18 at 09:56 -0500, Gustavo A. R. Silva wrote:
> On Fri, Sep 18, 2020 at 05:32:30PM +0800, Jing Xiangfeng wrote:
> > Remove the superfluous break, as there is a 'return' before it.
> >
>
> Apparently, the change is correct. Please, just add a proper Fixes tag by
> yourself this tim
On Fri, 18 Sep 2020 15:02:06 +0200
Simon Guinot wrote:
> On Thu, Sep 17, 2020 at 01:16:50AM +0200, Marek Behún wrote:
>
> Hi Marek,
>
> > By using struct led_init_data when registering we do not need to parse
> > `label` DT property nor `linux,default-trigger` property.
> >
> > Also, move forw
On 2020-09-17 16:40, Randy Dunlap wrote:
On 9/17/20 11:56 AM, Rishabh Bhatnagar wrote:
From Android R onwards Google has restricted access to debugfs in user
and user-debug builds. This restricts access to most of the features
exposed through debugfs. This patch series removes the
recovery/core
On Fri, Sep 18, 2020 at 9:40 AM Peter Xu wrote:
>
> Firstly in the draft patch mm->has_pinned is introduced and it's written to 1
> as long as FOLL_GUP is called once. It's never reset after set.
That's fine. That was what I was expecting you to do. It only needs to
be cleared at mm creation tim
On 9/18/20 11:13 AM, Joe Perches wrote:
> On Fri, 2020-09-18 at 09:56 -0500, Gustavo A. R. Silva wrote:
>> On Fri, Sep 18, 2020 at 05:32:30PM +0800, Jing Xiangfeng wrote:
>>> Remove the superfluous break, as there is a 'return' before it.
>>>
>>
>> Apparently, the change is correct. Please, just ad
On Fri, Sep 18, 2020 at 09:49:05AM -0700, bbh...@codeaurora.org wrote:
> On 2020-09-18 07:27, Jeffrey Hugo wrote:
> > On 9/17/2020 4:19 PM, Bhaumik Bhatt wrote:
> > > When building MHI as a module, missing MODULE_LICENSE() warnings
> > > are seen. Avoid them by adding the license and description
>
On Thu, Sep 17, 2020 at 07:58:59PM -0700, Eric Biggers wrote:
> On Thu, Sep 17, 2020 at 10:05:35PM -0400, Sasha Levin wrote:
> > From: Theodore Ts'o
> >
> > [ Upstream commit 244adf6426ee31a83f397b700d964cff12a247d3 ]
> >
> > This fixes the direct I/O versus writeback race which can reveal stale
On Wed, 9 Sep 2020 07:14:33 +0200
Mauro Carvalho Chehab wrote:
> SPDX v3.10 gained support for GFDL-1.2 with no invariant sections:
>
> https://spdx.org/licenses/GFDL-1.2-no-invariants-only.html
>
> Let's use it, instead of keeping a license text for this file.
Acked-by: Steven Rostedt
On Tue, Sep 15, 2020 at 03:31:04PM -0400, Jim Quinlan wrote:
> Bindings are added. Only one interrupt is needed because
> we do not yet employ the SCMI p2a channel.
>
> Signed-off-by: Jim Quinlan
> ---
> .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++
> 1 file changed, 3
On Fri, 18 Sep 2020 06:47:20 -0500
Dan Murphy wrote:
>
> Reviewed-by: Dan Murphy
>
>
Dan,
could you also review patch 14/50? That one is also lm3697 and this one
depends on it.
Marek
Move coredump configuration from debugfs to sysfs.This will
allow usage of this configuration feature in production
devices where access to debugfs might be limited.
Signed-off-by: Rishabh Bhatnagar
---
Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++
drivers/remoteproc/remoteproc_
Move recovery configuration from debugfs to sysfs.This will
allow usage of this configuration feature in production
devices where access to debugfs might be limited.
Signed-off-by: Rishabh Bhatnagar
---
Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++
drivers/remoteproc/remoteproc_d
>From Android R onwards Google has restricted access to debugfs in user
and user-debug builds. This restricts access to most of the features
exposed through debugfs. This patch series removes the recovery/coredump
entries from debugfs and moves them to sysfs.
'Coredump' and 'Recovery' are critical
On Wed, 16 Sep 2020 12:17:56 +0300, Viorel Suman (OSS) wrote:
> From: Viorel Suman
>
> XCVR (Audio Transceiver) is a new IP module found on i.MX8MP.
>
> Signed-off-by: Viorel Suman
> ---
> .../devicetree/bindings/sound/fsl,xcvr.yaml| 104
> +
> 1 file changed, 104
On Fri, Sep 18, 2020 at 9:17 AM Gustavo A. R. Silva
wrote:
>
> This bug could have been prevented by either adopting better
> coding practices or through the use[3] of the recent struct_size() helper.
Well, my unspoken point was that coding practices are just
theoretical. Coding practices don't h
Hi Joerg,
On Fri, 18 Sep 2020 12:02:36 +0200, Joerg Roedel wrote:
> Hi Jacob,
>
> On Fri, Sep 11, 2020 at 02:57:49PM -0700, Jacob Pan wrote:
> > IOMMU user API header was introduced to support nested DMA translation
> > and related fault handling. The current UAPI data structures consist of
> >
Hello,
Peter, I noticed /proc/stat::procs_blocked going U64_MAX transiently once in
the blue moon without any other persistent issues. After looking at the code
with Rik for a bit, the culprit seems to be c6e7bd7afaeb ("sched/core:
Optimize ttwu() spinning on p->on_cpu") - it changed where ttwu de
On Thu, Sep 17, 2020 at 11:01:52AM +0300, Matti Vaittinen wrote:
> Add bindings for ROHM BD9576MUF and BD9573MUF PMICs. These
> PMICs are primarily intended to be used to power the R-Car series
> processors. They provide 6 power outputs, safety features and a
> watchdog with two functional modes.
>
On Thu, 17 Sep 2020 12:18:17 +0200, Alban Bedel wrote:
> In order to automate the verification of DT nodes convert lm75.txt to
> lm75.yaml.
>
> Signed-off-by: Alban Bedel
> ---
> .../devicetree/bindings/hwmon/lm75.txt| 39 -
> .../devicetree/bindings/hwmon/lm75.yaml | 5
On Thu, 17 Sep 2020 14:28:48 +0100, Srinivas Kandagatla wrote:
> Always ON Clock controller is a block inside LPASS which controls
> 1 Glitch free muxes to LPASS codec Macros.
>
> Signed-off-by: Srinivas Kandagatla
> ---
> .../bindings/clock/qcom,aoncc-sm8250.yaml | 58 +++
>
On Fri, Sep 18, 2020 at 12:39:28PM -0400 Phil Auld wrote:
> Hi Peter,
>
> On Mon, Sep 14, 2020 at 01:42:02PM +0200 pet...@infradead.org wrote:
> > On Mon, Sep 14, 2020 at 12:03:36PM +0200, Vincent Guittot wrote:
> > > Vincent Guittot (4):
> > > sched/fair: relax constraint on task's load during
On Thu, 17 Sep 2020 14:28:47 +0100, Srinivas Kandagatla wrote:
> Audio Clock controller is a block inside LPASS which controls
> 2 Glitch free muxes to LPASS codec Macros.
>
> Signed-off-by: Srinivas Kandagatla
> ---
> .../bindings/clock/qcom,audiocc-sm8250.yaml | 58 +++
> ...
On Thu, 17 Sep 2020 11:46:21 -0700, Matthias Kaehlcke wrote:
> Onboard USB hubs need to be powered and may require initiaization of
> other resources (like GPIOs or clocks) to work properly. This adds
> a device tree binding for these hubs.
>
> Signed-off-by: Matthias Kaehlcke
> ---
>
> Changes
On Fri, 18 Sep 2020 11:32:29 +0200, Enric Balletbo i Serra wrote:
> Convert the soc/rockchip/power_domain.txt binding document to json-schema
> and move to the power bindings directory.
>
> Signed-off-by: Enric Balletbo i Serra
> ---
>
> Changes in v2:
> - Fixed a warning that says that 'syscon'
On Fri, Sep 18, 2020 at 12:40:32PM -0400, Peter Xu wrote:
> Firstly in the draft patch mm->has_pinned is introduced and it's written to 1
> as long as FOLL_GUP is called once. It's never reset after set.
Worth thinking about also adding FOLL_LONGTERM here, at last as long
as it is not a counter.
From: Ajit Pandey
Add the I2S controller node to sc7180 dtsi.
Add pinmux for primary and secondary I2S.
Signed-off-by: Ajit Pandey
Signed-off-by: Cheng-Yi Chiang
Signed-off-by: V Sujith Kumar Reddy
Signed-off-by: Srinivasa Rao Mandadapu
---
Changes since v3:
-- The typo error fix
Changes
On Fri, 2020-09-18 at 21:06 +0800, Wang Hai wrote:
> If the header file containing a function's prototype isn't included
> by
> the sourcefile containing the associated function, the build system
> complains of missing prototypes.
>
> Fixes the following W=1 kernel build warning(s):
>
> drivers/n
On Fri, 2020-09-18 at 21:02 +0800, Wang Hai wrote:
> If the header file containing a function's prototype isn't included
> by
> the sourcefile containing the associated function, the build system
> complains of missing prototypes.
>
> Fixes the following W=1 kernel build warning(s):
>
> drivers/n
The following changes since commit 856deb866d16e29bd65952e0289066f6078af773:
Linux 5.9-rc5 (2020-09-13 16:06:00 -0700)
are available in the Git repository at:
git://git.libc.org/linux-sh tags/sh-for-5.9-part2
for you to fetch changes up to b0cfc315ff38c423a5ce9ce159bd5baa4135e688:
sh: fi
The following commit has been merged into the objtool/urgent branch of tip:
Commit-ID: db6c6a0df840e3f52c84cc302cc1a08ba11a4416
Gitweb:
https://git.kernel.org/tip/db6c6a0df840e3f52c84cc302cc1a08ba11a4416
Author:Josh Poimboeuf
AuthorDate:Thu, 10 Sep 2020 10:24:57 -05:00
Com
Hi Greg,
On 9/17/20 9:40 AM, Greg KH wrote:
On Wed, Sep 16, 2020 at 12:56:07PM -0700, Hemant Kumar wrote:
+/**
+ * struct uci_dev - MHI uci device
+ * @minor: uci device node minor number
+ * @mhi_dev: associated mhi device object
+ * @chan: MHI channel name
+ * @lock: mutex lock
+ * @ul_chan:
On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force
rescheduling, replace it with a resched check and cond_resched. Fixes
the following stall:
[ 572.945146] rcu: INFO: rcu_sched self-detected stall on CPU
[ 572.949275] rcu: 0-: (2099 ticks this GP) idle=572/1/0x4
On Tue, Sep 1, 2020 at 4:54 AM Adrian Hunter wrote:
>
> On 24/08/20 9:21 pm, Raul E Rangel wrote:
> > SDHCI presets are not currently used for eMMC HS/HS200/HS400, but are
> > used for DDR52. The HS400 retuning sequence is:
> >
> > HS400->DDR52->HS->HS200->Perform Tuning->HS->HS400
> >
> > Thi
On Tue, 2020-09-01 at 17:02 +0200, Geert Uytterhoeven wrote:
> This reverts commit 124eee3f6955f7aa19b9e6ff5c9b6d37cb3d1e2c.
>
> Inami-san reported that this commit breaks bridge support in a Xen
> environment, and that reverting it fixes this.
>
> During system resume, bridge ports are no longer
On Fri, Sep 18, 2020 at 07:44:24PM +0800, Hou Tao wrote:
> When do locktorture for exclusive lock which doesn't have readlock
> support, the following module parameters will be considered as valid:
>
> torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1
>
> But locktorture will do nothin
Apologies once again, some of my emails were bouncing for some
addresses yesterday. Hopefully it was a temporary condition; I'll
continue trying to dig into it on my end if it happens again for this
email.
Since there's evidence that some models want lsb and some (well, at
least one) want msb, my
Hi Michael, Punit,
> -Original Message-
> From: Michael Auchter
> Sent: Friday, September 18, 2020 9:07 AM
> To: Ben Levinsky
> Cc: devicet...@vger.kernel.org; linux-remotep...@vger.kernel.org; linux-
> ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org
> Subject: Re: RE: [PATC
Smatch just ignores these because they're often done deliberately.
regards,
dan carpenter
On Fri, Sep 18, 2020 at 6:13 AM Jan Kara wrote:
>
> Yes, but no Linux filesystem (except for XFS AFAIK) follows the POSIX spec
> in this regard.
Yeah, and we never have. As you say, performance sucks, and nobody has
ever cared.
So the standard in this case is just something that we'll never
foll
On 18/09/2020 19:00, Dan Carpenter wrote:
> Smatch just ignores these because they're often done deliberately.
>
> regards,
> dan carpenter
>
And I ignore fixing them when coverity reports them because life is too
short.
Colin
> -Messaggio originale-
> Da: Christian Lamparter
> Inviato: venerdì 18 settembre 2020 18:54
> A: Ansuel Smith ; Kalle Valo
>
> Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux-
> wirel...@vger.kernel.org; linux-kernel@vger.kernel.org;
> ath...@lists.infradead.org; David S
Most of routers that have the ath10k wifi chip integrated in the Soc
have the pre-cal data stored in the art (or equivalent) mtd partition.
Introduce a new function to directly extract and use it based on what is
set in the dt if the system have mtd support.
Pre-cal file have still priority to ever
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to
define from where the driver will load the pre-cal data in the defined
mtd partition.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +---
1 file changed, 9 insertions(+), 3 d
Enable pci-meson to build as a module whenever ARCH_MESON is enabled.
Cc: Yue Wang
Signed-off-by: Kevin Hilman
---
Tested on Khadas VIM3 and Khadas VIM3 using NVMe SSD devices.
drivers/pci/controller/dwc/Kconfig | 3 ++-
drivers/pci/controller/dwc/pci-meson.c | 8 +++-
2 files changed,
Hi Greg,
On 9/17/20 9:44 AM, Greg KH wrote:
On Wed, Sep 16, 2020 at 12:56:07PM -0700, Hemant Kumar wrote:
...
...
+
+static int mhi_uci_open(struct inode *inode, struct file *filp)
+{
+ struct uci_dev *udev = NULL;
+ unsigned int minor = iminor(inode);
+ int ret = -EIO;
+
I'll defer to Ville & Lyude.
I dug up more on the bug report and found that both Thinkpad and
Galaxy Chromebook use the same Samsung OLED.
So my 2 vs 1 argument is actually not valid.
On Fri, Sep 18, 2020 at 10:59 AM Kevin Chowski wrote:
>
> Apologies once again, some of my emails were bouncing
All
On 9/18/20 11:18 AM, Dan Murphy wrote:
tas2770_reset is called during i2c probe. The reset calls the
snd_soc_component_write which depends on the tas2770->component being
available. The component pointer is not set until codec_probe so move
the reset to the codec_probe after the pointer is s
As per RFC792, ICMP errors should be sent to the source host.
However, in configurations with Virtual Routing and Forwarding tables,
looking up which routing table to use is currently done by using the
destination net_device.
commit 9d1a6c4ea43e ("net: icmp_route_lookup should use rt dev to
deter
From: Michael Jeanson
The objective is to check that the incoming vrf routing table is selected
to send an ICMP error back to the source. We test two scenarios: when the
ttl of a packet reaches 1 while it is forwarded between different vrfs
and when a packet is bigger than the mtu of the second i
As per RFC4443, the destination address field for ICMPv6 error messages
is copied from the source address field of the invoking packet.
In configurations with Virtual Routing and Forwarding tables, looking up
which routing table to use for sending ICMPv6 error messages is
currently done by using t
Hi,
Here is an updated series of fixes for ipv4 and ipv6 which which ensure
the route lookup is performed on the right routing table in VRF
configurations when sending TTL expired icmp errors (useful for
traceroute).
It includes tests for both ipv4 and ipv6.
These fixes address specifically addr
On Thu, 2020-09-17 at 09:27 -0400, Qian Cai wrote:
> On Wed, 2020-09-16 at 10:35 +0300, Mike Rapoport wrote:
> > From: Mike Rapoport
> >
> > Hi,
> >
> > This is an implementation of "secret" mappings backed by a file descriptor.
> > I've dropped the boot time reservation patch for now as it is
Could I suggest that system.ntfs_security be renamed to security.NTACL? That's
what WinBtrfs uses, and it means you'd be able to create a working Btrfs copy
of a Windows installation just by using rsync. IIRC Samba also understands
xattrs called security.NTACL, when you've put it in the right mode.
> -Messaggio originale-
> Da: Christian Lamparter
> Inviato: venerdì 18 settembre 2020 18:54
> A: Ansuel Smith ; Kalle Valo
>
> Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux-
> wirel...@vger.kernel.org; linux-kernel@vger.kernel.org;
> ath...@lists.infradead.org; David S
# Background
KUnit currently lacks any first-class support for mocking.
For an overview and discussion on the pros and cons, see
https://martinfowler.com/articles/mocksArentStubs.html
This patch set introduces the basic machinery needed for mocking:
setting and validating expectations, setting def
From: Brendan Higgins
A lot of the expectation and assertion infrastructure prints out fairly
complicated test failure messages, so add a C++ style log library for
for logging test results called `struct kunit_stream`.
kunit_stream allows us to construct a message before we know whether we
want
From: Brendan Higgins
Add parameter matcher builder for matching struct values.
Signed-off-by: Brendan Higgins
Signed-off-by: Daniel Latypov
---
include/kunit/mock.h | 58 +++
lib/kunit/common-mocks.c | 117 +++
lib/kunit/mock-test.c
From: Brendan Higgins
Add a way to specify that certain conditions must be met at the end of a
test case.
Signed-off-by: Brendan Higgins
Signed-off-by: Daniel Latypov
---
include/kunit/test.h | 6 ++
lib/kunit/test.c | 11 +++
2 files changed, 17 insertions(+)
diff --git a/i
From: Brendan Higgins
KUnit will soon add macros for generating mocks from types, the
generated mock types are named like `struct MOCK(foo)` (where the base
type is struct foo).
Add `struct MOCK(foo)` as a NonptrType so that it is recognized
correctly in declarations.
Signed-off-by: Brendan Hig
From: Brendan Higgins
Add macros for parsing and manipulating parameter lists needed for
generating mocks.
Signed-off-by: Brendan Higgins
Signed-off-by: Daniel Latypov
---
include/kunit/params.h | 305
lib/kunit/Makefile | 3 +-
lib/kunit/m
This reverts commit 109fb06fdc6f6788df7dfbc235f7636a38e28fd4.
string-stream will be used by kunit mocking code to print messages about
mock expectations.
It makes the code signifcantly simpler if string-stream objects can be
part of structs declared in mocking headers.
Signed-off-by: Daniel Latyp
From: Brendan Higgins
Introduce basic class mocking, the ability to automatically generate a
Linux C-style class implementation whose behavior is controlled by test
cases, which can also set expectations on when and how mocks are called.
Co-developed-by: Daniel Latypov
Signed-off-by: Daniel Lat
From: Brendan Higgins
Nice mocks only fail when there is an expectation on a method, but none
match a given call. Strict mocks only pass when there is a matching
expectation for every call. Naggy mocks have the same pass/fail behavior
as nice, but report a warning in any case a strict mock would
From: Brendan Higgins
Add basic matchers and actions needed for any kind of mocking to be
useful; these matchers and actions are how expectations for mocks are
described: what calls the mocks are expected to receive, and what the
mock should do under those circumstances.
Co-developed-by: Daniel
From: Brendan Higgins
Add the core internal mechanisms that mocks are implemented with; in
particular, this adds the mechanisms by which expectation on mocks are
validated and by which actions may be supplied and then executed when
mocks are called.
Signed-off-by: Brendan Higgins
Signed-off-by:
Being able to fail the test outside of expectations and assertions is a
requirement for new features, e.g. mocking, dynamic analysis, etc.
Signed-off-by: Daniel Latypov
---
include/kunit/test.h | 2 ++
lib/kunit/test.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/inc
From: Marcelo Schmitt
Note: It was unclear if there was existing code that could be reused.
This is used by DEFINE_MATCHER to generate matching funcs for primitive
types that don't trigger compiler warnings.
After preprocessing, we now generate matcher func code like
kunit_stream_add(stream,
On Fri, Sep 18, 2020 at 05:04:43PM +0530, Vinod Koul wrote:
> Hello Jonathan
>
> On 16-09-20, 07:43, Jonathan McDowell wrote:
> > From: Andy Gross
> >
> > (I'm not sure how best to attribute this. It's originally from Andy
> > Gross, the version I picked up was a later version from Thomas Peders
On Thu, Sep 17, 2020 at 11:32:12PM -0400, Tong Zhang wrote:
> Please correct me if I am wrong.
> After a bit more digging I found out that it is indeed command_id got
> corrupted is causing this problem. Although the tag and command_id
> range is checked like you said, the elements in rqs cannot be
An iocg may have 0 debt but non-zero delay. The current debt forgiveness
logic doesn't act on such iocgs. This can lead to unexpected behaviors - an
iocg with a little bit of debt will have its delay canceled through debt
forgiveness but one w/o any debt but active delay will have to wait out
until
This causes a regression and was reverted upstream, just FYI.
On 9/17/20 7:06 PM, Sasha Levin wrote:
From: Israel Rukshin
[ Upstream commit ce1518139e6976cf19c133b555083354fdb629b8 ]
Calling nvme_sysfs_delete() when the controller is in the middle of
creation may cause several bugs. If the co
On 2020-09-18 10:18, Manivannan Sadhasivam wrote:
On Fri, Sep 18, 2020 at 09:49:05AM -0700, bbh...@codeaurora.org wrote:
On 2020-09-18 07:27, Jeffrey Hugo wrote:
> On 9/17/2020 4:19 PM, Bhaumik Bhatt wrote:
> > When building MHI as a module, missing MODULE_LICENSE() warnings
> > are seen. Avoid
On Fri, 2020-09-18 at 17:23 +0800, Luo bin wrote:
> Make a distinction between different irqs by netdev name or pci name.
>
> Signed-off-by: Luo bin
> ---
>
Reviewed-by: Saeed Mahameed
On Fri, Sep 18, 2020 at 3:07 AM Jiri Olsa wrote:
>
> On Thu, Sep 17, 2020 at 07:54:50AM -0500, Seth Forshee wrote:
> > On Thu, Sep 17, 2020 at 11:14:06AM +0200, Jiri Olsa wrote:
> > > On Thu, Sep 17, 2020 at 10:38:12AM +0200, Jiri Olsa wrote:
> > > > On Thu, Sep 17, 2020 at 10:04:55AM +0200, Jiri
On Fri, Sep 18, 2020 at 01:09:14PM +0200, Michal Hocko wrote:
> On Fri 18-09-20 04:27:13, Yu Zhao wrote:
> > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote:
> > > On Thu 17-09-20 21:00:40, Yu Zhao wrote:
> > > > This patch replaces the only open-coded __ClearPageActive() with
> > > >
On 2020-09-18 20:31, ansuels...@gmail.com wrote:
-Messaggio originale-
Da: Christian Lamparter
Inviato: venerdì 18 settembre 2020 18:54
A: Ansuel Smith ; Kalle Valo
Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux-
wirel...@vger.kernel.org; linux-kernel@vger.kernel.org;
On Wed, Sep 16, 2020 at 9:30 PM Leizhen (ThunderTown)
wrote:
>
>
>
> On 2020/9/15 14:12, Leizhen (ThunderTown) wrote:
> >
> >
> > On 2020/9/15 4:31, Rob Herring wrote:
> >> On Thu, Sep 03, 2020 at 08:05:03PM +0800, Zhen Lei wrote:
> >>> Add DT bindings for the Hisilicon SD5203 vector interrupt con
801 - 900 of 1343 matches
Mail list logo