Re: [PATCH 2/2] powerpc/xmon: use KSYM_NAME_LEN in array size

2023-08-02 Thread Benjamin Gray
On 30/5/23 10:54 pm, Miguel Ojeda wrote: Side-note: in `get_function_bounds()`, I see `kallsyms_lookup()` being used, but the name seems discarded? Can `kallsyms_lookup_size_offset()` be used instead, thus avoiding the usage of the buffer there to begin with? I'm not familiar with the kallsyms

Re: [PATCH] powerpc: pmac32: enable serial options by default in defconfig

2023-08-02 Thread Yuan Tan
Hi Christophe On 8/2/2023 9:58 PM, Christophe Leroy wrote: Le 02/08/2023 à 15:41, Yuan Tan a écrit : [Vous ne recevez pas souvent de courriers de tany...@tinylab.org. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Serial is a critical feature for logg

[powerpc:topic/cpu-smt] BUILD SUCCESS d1099e2276df1d8dd4037552c2f34eb4c4df4a75

2023-08-02 Thread kernel test robot
-20230731 gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-r033-20230731 gcc arc randconfig-r043-20230731 gcc arc randconfig-r043-20230802 gcc arm

Re: [PATCH 1/1] perf tests task_analyzer: Check perf build options for libtraceevent support

2023-08-02 Thread Aditya Gupta
Hi Arnaldo, I am working on a patch for 'perf version --has', and will send a patch next week using that instead of 'perf version --build-options'. You can skip this patch if not needed. Thanks, - Aditya G

[PATCH v2 RESEND*3] ASoC: fsl MPC52xx drivers require PPC_BESTCOMM

2023-08-02 Thread Randy Dunlap
Both SND_MPC52xx_SOC_PCM030 and SND_MPC52xx_SOC_EFIKA select SND_SOC_MPC5200_AC97. The latter symbol depends on PPC_BESTCOMM, so the 2 former symbols should also depend on PPC_BESTCOMM since "select" does not follow any dependency chains. This prevents a kconfig warning and build errors: WARNING:

[powerpc:next] BUILD SUCCESS 7f96539437eafec8fd062fb13f31cf53251ea18d

2023-08-02 Thread kernel test robot
allyesconfig gcc arc defconfig gcc arc randconfig-r004-20230801 gcc arc randconfig-r031-20230731 gcc arc randconfig-r033-20230731 gcc arc randconfig-r043-20230802 gcc arm

[powerpc:fixes-test] BUILD SUCCESS 86582e6189dd8f9f52c25d46c70fe5d111da6345

2023-08-02 Thread kernel test robot
gcc arc randconfig-r043-20230802 gcc arm allyesconfig gcc arm defconfig gcc arm64allyesconfig gcc arm64 defconfig gcc arm64

Re: [PATCH v2 27/28] dt-bindings: net: fsl,qmc-hdlc: Add framer support

2023-08-02 Thread Rob Herring
On Wed, Jul 26, 2023 at 05:02:23PM +0200, Herve Codina wrote: > A framer can be connected to the QMC HDLC. > If present, this framer is the interface between the TDM used by the QMC > HDLC and the E1/T1 line. > The QMC HDLC can use this framer to get information about the line and > configure the l

Re: [PATCH v2 21/28] dt-bindings: net: Add the Lantiq PEF2256 E1/T1/J1 framer

2023-08-02 Thread Rob Herring
On Wed, Jul 26, 2023 at 05:02:17PM +0200, Herve Codina wrote: > The Lantiq PEF2256 is a framer and line interface component designed to > fulfill all required interfacing between an analog E1/T1/J1 line and the > digital PCM system highway/H.100 bus. > > Signed-off-by: Herve Codina > --- > .../b

[PATCH v6 10/25] iommu/exynos: Implement an IDENTITY domain

2023-08-02 Thread Jason Gunthorpe
What exynos calls exynos_iommu_detach_device is actually putting the iommu into identity mode. Move to the new core support for ARM_DMA_USE_IOMMU by defining ops->identity_domain. Tested-by: Marek Szyprowski Acked-by: Marek Szyprowski Signed-off-by: Jason Gunthorpe --- drivers/iommu/exynos-io

[PATCH v6 09/25] iommu: Allow an IDENTITY domain as the default_domain in ARM32

2023-08-02 Thread Jason Gunthorpe
Even though dma-iommu.c and CONFIG_ARM_DMA_USE_IOMMU do approximately the same stuff, the way they relate to the IOMMU core is quiet different. dma-iommu.c expects the core code to setup an UNMANAGED domain (of type IOMMU_DOMAIN_DMA) and then configures itself to use that domain. This becomes the

[PATCH v6 23/25] iommu: Add ops->domain_alloc_paging()

2023-08-02 Thread Jason Gunthorpe
This callback requests the driver to create only a __IOMMU_DOMAIN_PAGING domain, so it saves a few lines in a lot of drivers needlessly checking the type. More critically, this allows us to sweep out all the IOMMU_DOMAIN_UNMANAGED and IOMMU_DOMAIN_DMA checks from a lot of the drivers, simplifying

[PATCH v6 01/25] iommu: Add iommu_ops->identity_domain

2023-08-02 Thread Jason Gunthorpe
This allows a driver to set a global static to an IDENTITY domain and the core code will automatically use it whenever an IDENTITY domain is requested. By making it always available it means the IDENTITY can be used in error handling paths to force the iommu driver into a known state. Devices impl

[PATCH v6 22/25] iommu: Add __iommu_group_domain_alloc()

2023-08-02 Thread Jason Gunthorpe
Allocate a domain from a group. Automatically obtains the iommu_ops to use from the device list of the group. Convert the internal callers to use it. Tested-by: Steven Price Tested-by: Marek Szyprowski Tested-by: Nicolin Chen Reviewed-by: Lu Baolu Signed-off-by: Jason Gunthorpe --- drivers/i

[PATCH v6 13/25] iommu/omap: Implement an IDENTITY domain

2023-08-02 Thread Jason Gunthorpe
What omap does during omap_iommu_set_platform_dma() is actually putting the iommu into identity mode. Move to the new core support for ARM_DMA_USE_IOMMU by defining ops->identity_domain. This driver does not support IOMMU_DOMAIN_DMA, however it cannot be compiled on ARM64 either. Most likely it i

[PATCH v6 21/25] iommu: Require a default_domain for all iommu drivers

2023-08-02 Thread Jason Gunthorpe
At this point every iommu driver will cause a default_domain to be selected, so we can finally remove this gap from the core code. The following table explains what each driver supports and what the resulting default_domain will be: ops->defaut_domain

[PATCH v6 15/25] iommufd/selftest: Make the mock iommu driver into a real driver

2023-08-02 Thread Jason Gunthorpe
I've avoided doing this because there is no way to make this happen without an intrusion into the core code. Up till now this has avoided needing the core code's probe path with some hackery - but now that default domains are becoming mandatory it is unavoidable. The core probe path must be run to

[PATCH v6 00/25] iommu: Make default_domain's mandatory

2023-08-02 Thread Jason Gunthorpe
[ It would be good to get this in linux-next, we have some good test coverage on the ARM side already, thanks! ] It has been a long time coming, this series completes the default_domain transition and makes it so that the core IOMMU code will always have a non-NULL default_domain for every driver

[PATCH v6 18/25] iommu/ipmmu: Add an IOMMU_IDENTITIY_DOMAIN

2023-08-02 Thread Jason Gunthorpe
This brings back the ops->detach_dev() code that commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") deleted and turns it into an IDENTITY domain. Also reverts commit 584d334b1393 ("iommu/ipmmu-vmsa: Remove ipmmu_utlb_disable()") Signed-off-by: Jason Gunthorpe --- drivers/iommu/ipmmu-vms

[PATCH v6 08/25] iommu: Reorganize iommu_get_default_domain_type() to respect def_domain_type()

2023-08-02 Thread Jason Gunthorpe
Except for dart every driver returns 0 or IDENTITY from def_domain_type(). The drivers that return IDENTITY have some kind of good reason, typically that quirky hardware really can't support anything other than IDENTITY. Arrange things so that if the driver says it needs IDENTITY then iommu_get_d

[PATCH v6 14/25] iommu/msm: Implement an IDENTITY domain

2023-08-02 Thread Jason Gunthorpe
What msm does during msm_iommu_set_platform_dma() is actually putting the iommu into identity mode. Move to the new core support for ARM_DMA_USE_IOMMU by defining ops->identity_domain. This driver does not support IOMMU_DOMAIN_DMA, however it cannot be compiled on ARM64 either. Most likely it is

[PATCH v6 20/25] iommu/sun50i: Add an IOMMU_IDENTITIY_DOMAIN

2023-08-02 Thread Jason Gunthorpe
Prior to commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") the sun50i_iommu_detach_device() function was being called by ops->detach_dev(). This is an IDENTITY domain so convert sun50i_iommu_detach_device() into sun50i_iommu_identity_attach() and a full IDENTITY domain and thus hook it ba

[PATCH v6 03/25] powerpc/iommu: Setup a default domain and remove set_platform_dma_ops

2023-08-02 Thread Jason Gunthorpe
POWER is using the set_platform_dma_ops() callback to hook up its private dma_ops, but this is buired under some indirection and is weirdly happening for a BLOCKED domain as well. For better documentation create a PLATFORM domain to manage the dma_ops, since that is what it is for, and make the BL

[PATCH v6 12/25] iommu/tegra-smmu: Support DMA domains in tegra

2023-08-02 Thread Jason Gunthorpe
All ARM64 iommu drivers should support IOMMU_DOMAIN_DMA to enable dma-iommu.c. tegra is blocking dma-iommu usage, and also default_domain's, because it wants an identity translation. This is needed for some device quirk. The correct way to do this is to support IDENTITY domains and use ops->def_do

[PATCH v6 11/25] iommu/tegra-smmu: Implement an IDENTITY domain

2023-08-02 Thread Jason Gunthorpe
What tegra-smmu does during tegra_smmu_set_platform_dma() is actually putting the iommu into identity mode. Move to the new core support for ARM_DMA_USE_IOMMU by defining ops->identity_domain. Signed-off-by: Jason Gunthorpe --- drivers/iommu/tegra-smmu.c | 37 ---

[PATCH v6 16/25] iommu: Remove ops->set_platform_dma_ops()

2023-08-02 Thread Jason Gunthorpe
All drivers are now using IDENTITY or PLATFORM domains for what this did, we can remove it now. It is no longer possible to attach to a NULL domain. Tested-by: Heiko Stuebner Tested-by: Niklas Schnelle Tested-by: Steven Price Tested-by: Marek Szyprowski Tested-by: Nicolin Chen Reviewed-by: Lu

[PATCH v6 17/25] iommu/qcom_iommu: Add an IOMMU_IDENTITIY_DOMAIN

2023-08-02 Thread Jason Gunthorpe
This brings back the ops->detach_dev() code that commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") deleted and turns it into an IDENTITY domain. Signed-off-by: Jason Gunthorpe --- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 39 + 1 file changed, 39 insertions(+) d

[PATCH v6 02/25] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-02 Thread Jason Gunthorpe
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 opaque domain type and a 'default_domain' ops value that allows the driver to

[PATCH v6 07/25] iommu/mtk_iommu_v1: Implement an IDENTITY domain

2023-08-02 Thread Jason Gunthorpe
What mtk does during mtk_iommu_v1_set_platform_dma() is actually putting the iommu into identity mode. Make this available as a proper IDENTITY domain. The mtk_iommu_v1_def_domain_type() from commit 8bbe13f52cb7 ("iommu/mediatek-v1: Add def_domain_type") explains this was needed to allow probe_fin

[PATCH v6 05/25] iommu/fsl_pamu: Implement a PLATFORM domain

2023-08-02 Thread Jason Gunthorpe
This driver is nonsensical. To not block migrating the core API away from NULL default_domains give it a hacky of a PLATFORM domain that keeps it working exactly as it always did. Leave some comments around to warn away any future people looking at this. Signed-off-by: Jason Gunthorpe --- drive

[PATCH v6 25/25] iommu: Convert remaining simple drivers to domain_alloc_paging()

2023-08-02 Thread Jason Gunthorpe
These drivers don't support IOMMU_DOMAIN_DMA, so this commit effectively allows them to support that mode. The prior work to require default_domains makes this safe because every one of these drivers is either compilation incompatible with dma-iommu.c, or already establishing a default_domain. In

[PATCH v6 24/25] iommu: Convert simple drivers with DOMAIN_DMA to domain_alloc_paging()

2023-08-02 Thread Jason Gunthorpe
These drivers are all trivially converted since the function is only called if the domain type is going to be IOMMU_DOMAIN_UNMANAGED/DMA. Tested-by: Heiko Stuebner Tested-by: Steven Price Tested-by: Marek Szyprowski Tested-by: Nicolin Chen Signed-off-by: Jason Gunthorpe --- drivers/iommu/arm

[PATCH v6 06/25] iommu/tegra-gart: Remove tegra-gart

2023-08-02 Thread Jason Gunthorpe
Thierry says this is not used anymore, and doesn't think it makes sense as an iommu driver. The HW it supports is about 10 years old now and newer HW uses different IOMMU drivers. As this is the only driver with a GART approach, and it doesn't really meet the driver expectations from the IOMMU cor

[PATCH v6 19/25] iommu/mtk_iommu: Add an IOMMU_IDENTITIY_DOMAIN

2023-08-02 Thread Jason Gunthorpe
This brings back the ops->detach_dev() code that commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") deleted and turns it into an IDENTITY domain. Signed-off-by: Jason Gunthorpe --- drivers/iommu/mtk_iommu.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/driv

[PATCH v6 04/25] iommu: Add IOMMU_DOMAIN_PLATFORM for S390

2023-08-02 Thread Jason Gunthorpe
The PLATFORM domain will be set as the default domain and attached as normal during probe. The driver will ignore the initial attach from a NULL domain to the PLATFORM domain. After this, the PLATFORM domain's attach_dev will be called whenever we detach from an UNMANAGED domain (eg for VFIO). Thi

Re: [PATCH v5 15/25] iommufd/selftest: Make the mock iommu driver into a real driver

2023-08-02 Thread Jason Gunthorpe
On Mon, Jul 24, 2023 at 02:22:05PM -0300, Jason Gunthorpe wrote: > -void __init iommufd_test_init(void) > +int __init iommufd_test_init(void) > { > + struct platform_device_info pdevinfo = { > + .name = "iommufd_selftest_iommu", > + }; > + int rc; > + > dbgfs_root =

[PATCH] powerpc: pmac32: enable serial options by default in defconfig

2023-08-02 Thread Yuan Tan
Serial is a critical feature for logging and debuging, and the other architectures enable serial by default. Let's enable CONFIG_SERIAL_PMACZILOG and CONFIG_SERIAL_PMACZILOG_CONSOLE by default. Signed-off-by: Yuan Tan --- arch/powerpc/configs/pmac32_defconfig | 3 ++- 1 file changed, 2 insertio

Re: [PATCH 5/6] integrity: PowerVM machine keyring enablement.

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > Update Kconfig to enable machine keyring and limit to CA certificates > on PowerVM. > > Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar

Re: [PATCH 4/6] integrity: check whether imputed trust is enabled

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > trust_moklist() is specific to UEFI enabled systems. Other platforms > rely only on the Kconfig. > > Define a generic wrapper named imputed_trust_enabled(). > > Signed-off-by: Nayna Jain Reviewed-off-by: Mimi Zohar

Re: [PATCH 2/6] integrity: ignore keys failing CA restrictions on non-UEFI platform

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > On non-UEFI platforms, handle restrict_link_by_ca failures differently. > > Certificates which do not satisfy CA restrictions on non-UEFI platforms > are ignored. > > Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar

Re: [PATCH 3/6] integrity: remove global variable from machine_keyring.c

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > trust_mok variable is accessed within a single function locally. > > Change trust_mok from global to local static variable. > > Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar

Re: [PATCH 1/6] integrity: PowerVM support for loading CA keys on machine keyring

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > Keys that derive their trust from an entity such as a security officer, > administrator, system owner, or machine owner are said to have "imputed > trust". CA keys with imputed trust can be loaded onto the machine keyring. > The mechanism for l

Re: [PATCH 0/6] Enable loading local and third party keys on PowerVM guest

2023-08-02 Thread Mimi Zohar
On Fri, 2023-07-14 at 11:34 -0400, Nayna Jain wrote: > On a secure boot enabled PowerVM guest, local and third party code signing > keys are needed to verify signed applications, configuration files, and > kernel modules. > > Loading these keys onto either the .secondary_trusted_keys or .ima > key

Re: [PATCH v3 3/6] KVM: PPC: selftests: add support for powerpc

2023-08-02 Thread Sean Christopherson
On Thu, Jun 08, 2023, Nicholas Piggin wrote: > diff --git a/tools/testing/selftests/kvm/lib/powerpc/ucall.c > b/tools/testing/selftests/kvm/lib/powerpc/ucall.c > new file mode 100644 > index ..ce0ddde45fef > --- /dev/null > +++ b/tools/testing/selftests/kvm/lib/powerpc/ucall.c > @@ -0,

Re: [RFC PATCH v11 08/29] KVM: Introduce per-page memory attributes

2023-08-02 Thread Isaku Yamahata
On Tue, Jul 18, 2023 at 04:44:51PM -0700, Sean Christopherson wrote: > From: Chao Peng > > In confidential computing usages, whether a page is private or shared is > necessary information for KVM to perform operations like page fault > handling, page zapping etc. There are other potential use c

Re: [PATCH] word-at-a-time: use the same return type for has_zero regardless of endianness

2023-08-02 Thread Arnd Bergmann
On Wed, Aug 2, 2023, at 19:37, Linus Torvalds wrote: > On Wed, 2 Aug 2023 at 09:16, Nathan Chancellor wrote: >> >> We see this warning with ARCH=arm64 defconfig + CONFIG_CPU_BIG_ENDIAN=y. > > Oh Christ. I didn't even realize that arm64 allowed a BE config. > > The config option goes back to 2013 -

Re: [PATCH] word-at-a-time: use the same return type for has_zero regardless of endianness

2023-08-02 Thread Linus Torvalds
On Wed, 2 Aug 2023 at 09:16, Nathan Chancellor wrote: > > We see this warning with ARCH=arm64 defconfig + CONFIG_CPU_BIG_ENDIAN=y. Oh Christ. I didn't even realize that arm64 allowed a BE config. The config option goes back to 2013 - are there actually BE user space implementations around? Peop

Re: [PATCH v2 0/3] Update the register list of MICFIL

2023-08-02 Thread Mark Brown
On Wed, 02 Aug 2023 13:21:14 +0800, Chancel Liu wrote: > MICFIL IP is upgraded on i.MX93 platform. Add new registers and new bit > definition. > > changes in v2: > - rename check_version to use_verid to make it more explicit > - rename fsl_micfil_check_version to fsl_micfil_use_verid > > [...] A

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Mark Brown
On Wed, Aug 02, 2023 at 10:41:43PM +0800, Shengjiu Wang wrote: > Currently the ASRC in ALSA is to connect to another I2S device as > a sound card. But we'd like to the ASRC can be used by user space directly > that user space application can get the output after conversion from ASRC. That sort o

Re: [PATCH v7 2/2] PCI: rpaphp: Error out on busy status from get-sensor-state

2023-08-02 Thread Mahesh J Salgaonkar
On 2023-08-01 16:38:08 Tue, Bjorn Helgaas wrote: > On Mon, Jul 24, 2023 at 02:25:19PM +0530, Mahesh Salgaonkar wrote: > > When certain PHB HW failure causes pHyp to recover PHB, it marks the PE > > state as temporarily unavailable until recovery is complete. This also > > triggers an EEH handler in

Re: [PATCH v7 7/7] mm/memory_hotplug: Enable runtime update of memmap_on_memory parameter

2023-08-02 Thread Michal Hocko
On Wed 02-08-23 17:54:04, David Hildenbrand wrote: > On 02.08.23 17:50, Michal Hocko wrote: > > On Wed 02-08-23 10:15:04, Aneesh Kumar K V wrote: > > > On 8/1/23 4:20 PM, Michal Hocko wrote: > > > > On Tue 01-08-23 14:58:29, Aneesh Kumar K V wrote: > > > > > On 8/1/23 2:28 PM, Michal Hocko wrote: >

Re: [PATCH] powerpc: Use shared font data

2023-08-02 Thread Dr. David Alan Gilbert
* Randy Dunlap (rdun...@infradead.org) wrote: > > > On 8/2/23 05:19, Michael Ellerman wrote: > > "Dr. David Alan Gilbert" writes: > >> * Michael Ellerman (m...@ellerman.id.au) wrote: > >>> li...@treblig.org writes: > From: "Dr. David Alan Gilbert" > > PowerPC has a 'btext' font u

Re: [PATCH v7 7/7] mm/memory_hotplug: Enable runtime update of memmap_on_memory parameter

2023-08-02 Thread Verma, Vishal L
On Wed, 2023-08-02 at 21:27 +0530, Aneesh Kumar K V wrote: > On 8/2/23 9:24 PM, David Hildenbrand wrote: > > On 02.08.23 17:50, Michal Hocko wrote: > > > On Wed 02-08-23 10:15:04, Aneesh Kumar K V wrote: > > > > On 8/1/23 4:20 PM, Michal Hocko wrote: > > > > > On Tue 01-08-23 14:58:29, Aneesh Kumar

Re: [PATCH v7 7/7] mm/memory_hotplug: Enable runtime update of memmap_on_memory parameter

2023-08-02 Thread Aneesh Kumar K V
On 8/2/23 9:24 PM, David Hildenbrand wrote: > On 02.08.23 17:50, Michal Hocko wrote: >> On Wed 02-08-23 10:15:04, Aneesh Kumar K V wrote: >>> On 8/1/23 4:20 PM, Michal Hocko wrote: On Tue 01-08-23 14:58:29, Aneesh Kumar K V wrote: > On 8/1/23 2:28 PM, Michal Hocko wrote: >> On Tue 01-0

Re: [PATCH v7 7/7] mm/memory_hotplug: Enable runtime update of memmap_on_memory parameter

2023-08-02 Thread David Hildenbrand
On 02.08.23 17:50, Michal Hocko wrote: On Wed 02-08-23 10:15:04, Aneesh Kumar K V wrote: On 8/1/23 4:20 PM, Michal Hocko wrote: On Tue 01-08-23 14:58:29, Aneesh Kumar K V wrote: On 8/1/23 2:28 PM, Michal Hocko wrote: On Tue 01-08-23 10:11:16, Aneesh Kumar K.V wrote: Allow updating memmap_on_

Re: [PATCH v7 7/7] mm/memory_hotplug: Enable runtime update of memmap_on_memory parameter

2023-08-02 Thread Michal Hocko
On Wed 02-08-23 10:15:04, Aneesh Kumar K V wrote: > On 8/1/23 4:20 PM, Michal Hocko wrote: > > On Tue 01-08-23 14:58:29, Aneesh Kumar K V wrote: > >> On 8/1/23 2:28 PM, Michal Hocko wrote: > >>> On Tue 01-08-23 10:11:16, Aneesh Kumar K.V wrote: > Allow updating memmap_on_memory mode after the

[PATCH v6 21/38] powerpc: Implement the new page table range API

2023-08-02 Thread Matthew Wilcox (Oracle)
Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-folio. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Mike Rapoport (IBM) Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-

Re: [PATCH] powerpc: Use shared font data

2023-08-02 Thread Randy Dunlap
On 8/2/23 05:19, Michael Ellerman wrote: > "Dr. David Alan Gilbert" writes: >> * Michael Ellerman (m...@ellerman.id.au) wrote: >>> li...@treblig.org writes: From: "Dr. David Alan Gilbert" PowerPC has a 'btext' font used for the console which is almost identical to the share

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 8:08 PM Takashi Iwai wrote: > > On Wed, 02 Aug 2023 14:02:29 +0200, > Shengjiu Wang wrote: > > > > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > > > > > On Wed, 02 Aug 2023 09:32:37 +0200, > > > Hans Verkuil wrote: > > > > > > > > Hi all, > > > > > > > > On 25/07/2

Re: [PATCH] powerpc: pmac32: enable serial options by default in defconfig

2023-08-02 Thread Christophe Leroy
Le 02/08/2023 à 15:41, Yuan Tan a écrit : > [Vous ne recevez pas souvent de courriers de tany...@tinylab.org. Découvrez > pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] > > Serial is a critical feature for logging and debuging, and the other > architectures enable

Re: [PATCH] powerpc/powermac: Use early_* IO variants in via_calibrate_decr

2023-08-02 Thread Michael Ellerman
Benjamin Gray writes: > On Thu, 2023-07-06 at 11:08 +1000, Benjamin Gray wrote: >> The issue is pre-existing, but is surfaced by commit 721255b9826b >> ("genirq: Use a maple tree for interrupt descriptor management"). >> It's not clear to me why this causes it to surface. > > From the thread chain

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Hans Verkuil
On 02/08/2023 14:02, Shengjiu Wang wrote: > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: >> >> On Wed, 02 Aug 2023 09:32:37 +0200, >> Hans Verkuil wrote: >>> >>> Hi all, >>> >>> On 25/07/2023 08:12, Shengjiu Wang wrote: Audio signal processing has the requirement for memory to memo

Re: [PATCH] powerpc: Use shared font data

2023-08-02 Thread Michael Ellerman
"Dr. David Alan Gilbert" writes: > * Michael Ellerman (m...@ellerman.id.au) wrote: >> li...@treblig.org writes: >> > 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 duplicatin

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Mark Brown
On Wed, Aug 02, 2023 at 08:02:29PM +0800, Shengjiu Wang wrote: > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > Well, I personally don't mind to have some audio capability in v4l2 > > layer. But, the only uncertain thing for now is whether this is a > > must-have or not. > Thanks, I am

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Takashi Iwai
On Wed, 02 Aug 2023 14:02:29 +0200, Shengjiu Wang wrote: > > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > > > On Wed, 02 Aug 2023 09:32:37 +0200, > > Hans Verkuil wrote: > > > > > > Hi all, > > > > > > On 25/07/2023 08:12, Shengjiu Wang wrote: > > > > Audio signal processing has the req

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > On Wed, 02 Aug 2023 09:32:37 +0200, > Hans Verkuil wrote: > > > > Hi all, > > > > On 25/07/2023 08:12, Shengjiu Wang wrote: > > > Audio signal processing has the requirement for memory to > > > memory similar as Video. > > > > > > This patch i

Re: [PATCH 0/7] Rework perf and ptrace watchpoint tracking

2023-08-02 Thread Michael Ellerman
Christophe Leroy writes: > Le 01/08/2023 à 03:17, Benjamin Gray a écrit : >> Syzkaller triggered a null pointer dereference in the >> arch_unregister_hw_breakpoint() hook. This is due to accessing >> the bp->ctx->task field changing to -1 while we iterate the breakpoints. >> >> This series refact

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Takashi Iwai
On Wed, 02 Aug 2023 09:32:37 +0200, Hans Verkuil wrote: > > Hi all, > > On 25/07/2023 08:12, Shengjiu Wang wrote: > > Audio signal processing has the requirement for memory to > > memory similar as Video. > > > > This patch is to add this support in v4l2 framework, defined > > new buffer type V4

Re: [next-20230731] Kdump fails to capture vmcore (powerpc)

2023-08-02 Thread Hari Bathini
On 31/07/23 7:39 pm, Sachin Sant wrote: Kernel Crash dump(kdump) and firmware assisted dump on powerpc fails to capture vmcore on recent linux-next builds. Starting Kdump Vmcore Save Service... systemd[1]: Starting Kdump Vmcore Save Service... kdump[599]: Kdump is using the default log level(

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-02 Thread Hans Verkuil
Hi all, On 25/07/2023 08:12, Shengjiu Wang wrote: > Audio signal processing has the requirement for memory to > memory similar as Video. > > This patch is to add this support in v4l2 framework, defined > new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and > V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new for

Re: [RFC PATCH v2 4/7] media: v4l2: Add audio capture and output support

2023-08-02 Thread Tomasz Figa
On Tue, Aug 1, 2023 at 6:47 PM Shengjiu Wang wrote: > > On Fri, Jul 28, 2023 at 3:59 PM Tomasz Figa wrote: > > > > Hi Shengjiu, > > > > On Tue, Jul 25, 2023 at 02:12:17PM +0800, Shengjiu Wang wrote: > > > Audio signal processing has the requirement for memory to > > > memory similar as Video. > >

Re: [PATCH v2 0/3] Update the register list of MICFIL

2023-08-02 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 1:21 PM Chancel Liu wrote: > > MICFIL IP is upgraded on i.MX93 platform. Add new registers and new bit > definition. > > changes in v2: > - rename check_version to use_verid to make it more explicit > - rename fsl_micfil_check_version to fsl_micfil_use_verid > > > Chancel Li