On Mon, Aug 21, 2023 at 08:30:47PM +0800, Kefeng Wang wrote:
Hi Kefeng,
> The ARCH_SUPPORTS_PER_VMA_LOCK are enabled by more and more architectures,
> eg, x86, arm64, powerpc and s390, and riscv, those implementation are very
> similar which results in some duplicated codes, let's add a generic V
On Thu, Jul 6, 2023 at 10:54 AM Isaku Yamahata wrote:
>
> On Tue, Jul 04, 2023 at 04:50:49PM +0900,
> David Stevens wrote:
>
> > From: David Stevens
> >
> > Migrate from __gfn_to_pfn_memslot to __kvm_follow_pfn.
> >
> > Signed-off-by: David Stevens
> > ---
> > arch/x86/kvm/mmu/mmu.c | 35 +
On Wed, Jul 5, 2023 at 7:25 PM Yu Zhang wrote:
>
> On Tue, Jul 04, 2023 at 04:50:50PM +0900, David Stevens wrote:
> > From: David Stevens
> >
> > Stop passing FOLL_GET to __kvm_follow_pfn. This allows the host to map
> > memory into the guest that is backed by un-refcounted struct pages - for
> >
From: Sean Christopherson
Assert that a page's refcount is elevated, i.e. that _something_ holds a
reference to the page, when KVM marks a page as accessed and/or dirty.
KVM typically doesn't hold a reference to pages that are mapped into the
guest, e.g. to allow page migration, compaction, swap,
From: David Stevens
Introduce __kvm_follow_pfn, which will replace __gfn_to_pfn_memslot.
__kvm_follow_pfn refactors the old API's arguments into a struct and,
where possible, combines the boolean arguments into a single flags
argument.
Signed-off-by: David Stevens
---
include/linux/kvm_host.h
From: David Stevens
Make it so that __kvm_follow_pfn does not imply FOLL_GET. This allows
callers to resolve a gfn when the associated pfn has a valid struct page
that isn't being actively refcounted (e.g. tail pages of non-compound
higher order pages). For a caller to safely omit FOLL_GET, all u
From: David Stevens
Migrate from __gfn_to_pfn_memslot to __kvm_follow_pfn. Most arguments
directly map to the new API. The largest change is replacing the async
in/out parameter with FOLL_NOWAIT parameter and the KVM_PFN_ERR_NEEDS_IO
return value.
Signed-off-by: David Stevens
---
arch/x86/kvm/
From: David Stevens
Stop passing FOLL_GET to __kvm_follow_pfn. This allows the host to map
memory into the guest that is backed by un-refcounted struct pages - for
example, the tail pages of higher order non-compound pages allocated by
the amdgpu driver via ttm_pool_alloc_page.
The bulk of this
From: David Stevens
Migrate from __gfn_to_pfn_memslot to __kvm_follow_pfn.
Signed-off-by: David Stevens
---
arch/arm64/kvm/mmu.c | 25 ++---
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c
index d3b4feed460c..e4abc
From: David Stevens
Migrate from __gfn_to_pfn_memslot to __kvm_follow_pfn. As part of the
refactoring, remove the redundant calls to get_user_page_fast_only,
since the check for !async && !atomic was removed from the KVM generic
code in b9b33da2aa74. Also, remove the kvm_ro parameter because the
From: David Stevens
All callers have been migrated to __kvm_follow_pfn.
Signed-off-by: David Stevens
---
virt/kvm/kvm_main.c | 33 -
1 file changed, 33 deletions(-)
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index fa1848c6c84f..aebaf4a7340e 100644
-
From: David Stevens
This patch series adds support for mapping VM_IO and VM_PFNMAP memory
that is backed by struct pages that aren't currently being refcounted
(e.g. tail pages of non-compound higher order allocations) into the
guest.
Our use case is virtio-gpu blob resources [1], which directly
On Thu, 20 Jul 2023 09:58:33 -0400, Frank Li wrote:
> Add support to pass Link down notification to Endpoint function driver
> so that the LINK_DOWN event can be processed by the function.
>
>
Applied to controller/layerscape, thanks!
[1/2] PCI: layerscape: Add support for Link down notificatio
On Mon, Aug 21, 2023 at 08:30:50PM +0800, Kefeng Wang wrote:
> Use new try_vma_locked_page_fault() helper to simplify code.
> No functional change intended.
>
> Signed-off-by: Kefeng Wang
> ---
> arch/s390/mm/fault.c | 66 ++--
> 1 file changed, 27 inserti
On Thu, Aug 24, 2023 at 10:16:33AM +0200, Alexander Gordeev wrote:
> On Mon, Aug 21, 2023 at 08:30:50PM +0800, Kefeng Wang wrote:
> > Use new try_vma_locked_page_fault() helper to simplify code.
> > No functional change intended.
> >
> > Signed-off-by: Kefeng Wang
> > ---
> > arch/s390/mm/fault.
"Dr. David Alan Gilbert" writes:
> * li...@treblig.org (li...@treblig.org) wrote:
>> From: "Dr. David Alan Gilbert"
>>
>> PowerPC has a 'btext' font used for the console which is almost identical
>> to the shared font_sun8x16, so use it rather than duplicating the data.
>>
>> They were actually
Erhard Furtner writes:
> On Tue, 22 Aug 2023 07:31:54 +
> Christophe Leroy wrote:
>
>> Le 18/08/2023 à 18:23, Erhard Furtner a écrit :
>> > On Fri, 18 Aug 2023 15:47:38 +
>> > Christophe Leroy wrote:
>> >
>> >> I'm wondering if the problem is just linked to the kernel being built
>> >
allnoconfig gcc
arm64allyesconfig gcc
arm64 defconfig gcc
arm64randconfig-r012-20230824 clang
arm64randconfig-r021-20230823 gcc
arm64
Russell Currey writes:
> snowpatch has found a compiler error with this patch.
>
>
>Error: papr_vpd.c:346:33: error: passing argument 2 of 'test_harness'
>discards 'const' qualifier from pointer target type [-Werror=discarded-
>qualifiers]
> if (test_harness(t->function, t->descr
alpharandconfig-r002-20230823 gcc
alpharandconfig-r002-20230824 gcc
alpharandconfig-r003-20230824 gcc
alpharandconfig-r014-20230823 gcc
alpharandconfig-r035-20230823 gcc
arc
On 8/24/23 11:04, David Stevens wrote:
From: David Stevens
Stop passing FOLL_GET to __kvm_follow_pfn. This allows the host to map
memory into the guest that is backed by un-refcounted struct pages - for
example, the tail pages of higher order non-compound pages allocated by
the amdgpu driver vi
Michael Ellerman writes:
> "Nicholas Piggin" writes:
>> On Wed Jun 14, 2023 at 3:56 PM AEST, Michael Ellerman wrote:
>>> Michael Ellerman writes:
>>> > Nicholas Piggin writes:
>>> >> The most expensive ordering for hwsync to provide is the store-load
>>> >> barrier, because all prior stores hav
Michael Ellerman writes:
> Michael Ellerman writes:
>> "Nicholas Piggin" writes:
>>> On Wed Jun 14, 2023 at 3:56 PM AEST, Michael Ellerman wrote:
Michael Ellerman writes:
> Nicholas Piggin writes:
>> The most expensive ordering for hwsync to provide is the store-load
>> bar
Christophe reported that the change to ARCH_FORCE_MAX_ORDER to limit the
range to 10 had broken his ability to configure hugepages:
# echo 1 > /sys/kernel/mm/hugepages/hugepages-8192kB/nr_hugepages
sh: write error: Invalid argument
Several of the powerpc defconfigs previously set the
ARCH_FOR
1-20230822 gcc
arm64randconfig-r012-20230824 clang
arm64randconfig-r013-20230822 clang
arm64randconfig-r021-20230823 gcc
arm64randconfig-r026-20230823 gcc
csky allmodconfig
* Michael Ellerman (m...@ellerman.id.au) wrote:
> "Dr. David Alan Gilbert" writes:
> > * li...@treblig.org (li...@treblig.org) wrote:
> >> From: "Dr. David Alan Gilbert"
> >>
> >> PowerPC has a 'btext' font used for the console which is almost identical
> >> to the shared font_sun8x16, so use it
gcc
> arm randconfig-r023-20230822 gcc
> arm randconfig-r025-20230823 clang
> arm stm32_defconfig gcc
> arm64allmodconfig gcc
> arm64 allnoconfig gcc
> arm64
On Thu, Aug 24, 2023, David Stevens wrote:
> On Wed, Jul 5, 2023 at 7:25 PM Yu Zhang wrote:
> >
> > On Tue, Jul 04, 2023 at 04:50:50PM +0900, David Stevens wrote:
> > > @@ -4529,7 +4540,8 @@ static int kvm_tdp_mmu_page_fault(struct kvm_vcpu
> > > *vcpu,
> > >
> > > out_unlock:
> > > read_u
On Mon, 21 Aug 2023 15:42:58 -0500
Rob Herring wrote:
> On Fri, Aug 18, 2023 at 06:39:00PM +0200, Christophe Leroy wrote:
> > From: Herve Codina
> >
> > The QMC (QUICC mutichannel controller) is a controller present in some
> > PowerQUICC SoC such as MPC885.
> > The QMC HDLC uses the QMC contro
Hi Rob,
On Mon, 21 Aug 2023 15:49:29 -0500
Rob Herring wrote:
> On Fri, Aug 18, 2023 at 06:39:16PM +0200, Christophe Leroy wrote:
> > From: Herve Codina
> >
> > The Lantiq PEF2256 is a framer and line interface component designed to
> > fulfill all required interfacing between an analog E1/T1/
Hi Christophe,
On Mon, 21 Aug 2023 07:40:26 +0200
Christophe JAILLET wrote:
> Le 18/08/2023 à 18:39, Christophe Leroy a écrit :
> > From: Herve Codina
> >
> > QMC channels support runtime timeslots changes but nothing is done at
> > the QMC HDLC driver to handle these changes.
> >
> > Use exi
Hi Christophe,
On Mon, 21 Aug 2023 08:02:10 +0200
Christophe JAILLET wrote:
> Le 18/08/2023 à 18:39, Christophe Leroy a écrit :
> > From: Herve Codina
> >
> > A framer is a component in charge of an E1/T1 line interface.
> > Connected usually to a TDM bus, it converts TDM frames to/from E1/T1
Hi Simon,
On Sun, 20 Aug 2023 19:15:11 +0200
Simon Horman wrote:
> On Fri, Aug 18, 2023 at 06:39:15PM +0200, Christophe Leroy wrote:
> > From: Herve Codina
> >
> > A framer is a component in charge of an E1/T1 line interface.
> > Connected usually to a TDM bus, it converts TDM frames to/from E
On Wed, 23 Aug 2023 16:33:19 +0200,
Shengjiu Wang wrote:
>
> On Fri, Aug 11, 2023 at 7:05 PM Shengjiu Wang wrote:
> >
> > Hi Mark, Takashi
> >
> > On Thu, Aug 3, 2023 at 9:11 PM Shengjiu Wang
> > wrote:
> > >
> > > On Thu, Aug 3, 2023 at 1:28 AM Mark Brown wrote:
> > > >
> > > > On Wed, Aug 02
On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote:
> Shengjiu Wang wrote:
> > But there are several issues:
> > 1. Need to create sound cards. ASRC module support multi instances, then
> > need to create multi sound cards for each instance.
> Hm, why can't it be multiple PCM instances
On 8/22/23 10:55, Ioana Ciornei wrote:
> On Mon, Aug 21, 2023 at 02:46:53PM -0400, Sean Anderson wrote:
>> On 8/21/23 14:13, Ioana Ciornei wrote:
>> > On Mon, Aug 21, 2023 at 01:45:44PM -0400, Sean Anderson wrote:
>> >> Well, we have two pieces of information we need
>> >>
>> >> - What values do w
On 8/21/23 19:59, Vladimir Oltean wrote:
> On Mon, Aug 21, 2023 at 07:39:15PM -0400, Sean Anderson wrote:
>> Well, I think we should take the opportunity to think about the hardware
>> which exists and how we plan to model it. IMO grouping lanes into a
>> single phy simplifies both the phy driver a
Doing a "make help" would show only hard-coded Kconfig targets and
depended on the archhelp target to include ".config" targets. There was
nothing showing global kernel/configs/ targets. Solve this by walking
the wildcard list and include them in the output, using the first comment
line as the help
Hi Kees,
On 8/24/23 15:36, Kees Cook wrote:
> Doing a "make help" would show only hard-coded Kconfig targets and
> depended on the archhelp target to include ".config" targets. There was
> nothing showing global kernel/configs/ targets. Solve this by walking
> the wildcard list and include them in
On Fri, Apr 28, 2023 at 08:40:51AM +0100, Arnd Bergmann wrote:
> On Sat, Apr 15, 2023, at 12:17, Stanislav Kinsburskii wrote:
> > This series is aimed to address compilation warnings when a constant pointer
> > is passed to virt_to_phys and isa_virt_to_bus functions:
> >
> > warning: passing argu
On Thu, 24 Aug 2023 at 12:12, Michael Ellerman wrote:
>
> Michael Ellerman writes:
> > Michael Ellerman writes:
> >> "Nicholas Piggin" writes:
> >>> On Wed Jun 14, 2023 at 3:56 PM AEST, Michael Ellerman wrote:
> Michael Ellerman writes:
> > Nicholas Piggin writes:
> >> The most
On Fri, Aug 25, 2023 at 12:15 AM Sean Christopherson wrote:
>
> On Thu, Aug 24, 2023, David Stevens wrote:
> > On Wed, Jul 5, 2023 at 7:25 PM Yu Zhang wrote:
> > >
> > > On Tue, Jul 04, 2023 at 04:50:50PM +0900, David Stevens wrote:
> > > > @@ -4529,7 +4540,8 @@ static int kvm_tdp_mmu_page_fault(
To determine if a trap was caused by a HASHCHK instruction, we inspect
the user instruction that triggered the trap. However this may sleep
if the page needs to be faulted in.
Move the HASHCHK handler logic to after we allow IRQs, which is fine
because we are only interested in HASHCHK if it's a u
On Wed, Aug 23, 2023 at 01:47:16PM -0300, Jason Gunthorpe wrote:
> This is used when the iommu driver is taking control of the dma_ops,
> currently only on S390 and power spapr. It is designed to preserve the
> original ops->detach_dev() semantic that these S390 was built around.
>
> Provide an op
Hi Martin, Arnd,
On 25/08/23 13:12, Martin K. Petersen wrote:
On Thu, 10 Aug 2023 16:19:18 +0200, Arnd Bergmann wrote:
Most of the patches I sent so far for the -Wmissing-prototype warnings
have made it into linux-next now. There are a few that I'm resending
now as nobody has picked them up, a
On Thu, 10 Aug 2023 16:19:18 +0200, Arnd Bergmann wrote:
> Most of the patches I sent so far for the -Wmissing-prototype warnings
> have made it into linux-next now. There are a few that I'm resending
> now as nobody has picked them up, and then a number of fixes that I
> found while test-building
On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote:
>
> On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote:
> > Shengjiu Wang wrote:
>
> > > But there are several issues:
> > > 1. Need to create sound cards. ASRC module support multi instances, then
> > > need to create multi sound cards
Le 25/08/2023 à 00:36, Kees Cook a écrit :
> Doing a "make help" would show only hard-coded Kconfig targets and
> depended on the archhelp target to include ".config" targets. There was
> nothing showing global kernel/configs/ targets. Solve this by walking
> the wildcard list and include them in
Valid domain value is in range 1 to HV_PERF_DOMAIN_MAX.
Current code has check for domain value greater than or
equal to HV_PERF_DOMAIN_MAX. But the check for domain value 0
is missing.
Fix this issue by adding check for domain value 0.
Fixes: ebd4a5a3ebd9 ("powerpc/perf/hv-24x7: Minor improvement
Currently the presence of a feature is checked with a combination of
perf version --build-options and greps, such as:
perf version --build-options | grep " on .* HAVE_FEATURE"
Instead of this, introduce a subcommand "perf build --has", with which
scripts can test for presence of a feature, su
Currently we depend on output of 'perf record -e "sched:sched_switch"', to
check whether perf was built with libtraceevent support.
Instead, a more straightforward approach can be to check the build options,
using 'perf build --has libtraceevent', to check for libtraceevent support.
Signed-off-by
The Problem
===
Currently the presence of a feature is checked with a combination of
perf version --build-options and greps, such as:
perf version --build-options | grep " on .* HAVE_FEATURE"
Proposed solution
=
As suggested by contributors in:
https://lore.kernel.or
From: Athira Rajeev
In probe_vfs_getname.sh, current we use "perf record --dry-run"
to check for libtraceevent and skip the test if perf is not
build with libtraceevent. Change the check to use "perf build --has"
option
Signed-off-by: Athira Rajeev
---
tools/perf/tests/shell/lib/probe_vfs_getn
Now that the feature list has been duplicated in a global
'supported_features' array, use that array instead of manually checking
status of built-in features.
This helps in being consistent with commands such as 'perf build --has',
so commands can use the same array, and any new feature can be add
Kees Cook writes:
> Doing a "make help" would show only hard-coded Kconfig targets and
> depended on the archhelp target to include ".config" targets. There was
> nothing showing global kernel/configs/ targets. Solve this by walking
> the wildcard list and include them in the output, using the fir
Joel Stanley writes:
> On Thu, 24 Aug 2023 at 12:12, Michael Ellerman wrote:
>>
>> Michael Ellerman writes:
>> > Michael Ellerman writes:
>> >> "Nicholas Piggin" writes:
>> >>> On Wed Jun 14, 2023 at 3:56 PM AEST, Michael Ellerman wrote:
>> Michael Ellerman writes:
>> > Nicholas Pig
56 matches
Mail list logo