[PATCH v4 00/35] MT8195 IOMMU SUPPORT

2022-01-25 Thread Yong Wu
This patchset adds MT8195 iommu support. MT8195 have 3 IOMMU HWs. 2 IOMMU HW is for multimedia, and 1 IOMMU HW is for infra-master, like PCIe/USB. About the 2 MM IOMMU HW, something like this: IOMMU(VDO) IOMMU(VPP) | | SMI_COMMON(VDO) SMI_

[PATCH v4 01/35] dt-bindings: mediatek: mt8195: Add binding for MM IOMMU

2022-01-25 Thread Yong Wu
This patch adds descriptions for mt8195 IOMMU which also use ARM Short-Descriptor translation table format. In mt8195, there are two smi-common HW and IOMMU, one is for vdo(video output), the other is for vpp(video processing pipe). They connects with different smi-larbs, then some setting(larbid_

[PATCH v4 02/35] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU

2022-01-25 Thread Yong Wu
In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters mainly are PCIe and USB. Different with MM IOMMU, all these masters connect with IOMMU directly, there is no mediatek,larbs property for infra IOMMU. Another thing is about PCIe ports. currently the function "of_iommu_configure_de

[PATCH v4 03/35] iommu/mediatek: Fix 2 HW sharing pgtable issue

2022-01-25 Thread Yong Wu
In the commit 4f956c97d26b ("iommu/mediatek: Move domain_finalise into attach_device"), I overlooked the sharing pgtable case. After that commit, the "data" in the mtk_iommu_domain_finalise always is the data of the current IOMMU HW. Fix this for the sharing pgtable case. Only affect mt2712 which

[PATCH v4 04/35] iommu/mediatek: Add list_del in mtk_iommu_remove

2022-01-25 Thread Yong Wu
Lack the list_del in the mtk_iommu_remove, and remove bus_set_iommu(*, NULL) since there may be several iommu HWs. we can not bus_set_iommu null when one iommu driver unbind. This could be a fix for mt2712 which support 2 M4U HW and list them. Fixes: 7c3a2ec02806 ("iommu/mediatek: Merge 2 M4U HWs

[PATCH v4 05/35] iommu/mediatek: Remove clk_disable in mtk_iommu_remove

2022-01-25 Thread Yong Wu
After the commit b34ea31fe013 ("iommu/mediatek: Always enable the clk on resume"), the iommu clock is controlled by the runtime callback. thus remove the clk control in the mtk_iommu_remove. Otherwise, it will warning like: echo 14018000.iommu > /sys/bus/platform/drivers/mtk-iommu/unbind [ 51.

[PATCH v4 06/35] iommu/mediatek: Add mutex for m4u_group and m4u_dom in data

2022-01-25 Thread Yong Wu
Add a mutex to protect the data in the structure mtk_iommu_data, like ->"m4u_group" ->"m4u_dom". For the internal data, we should protect it in ourselves driver. Add a mutex for this. This could be a fix for the multi-groups support. Fixes: c3045f39244e ("iommu/mediatek: Support for multi domains"

[PATCH v4 07/35] iommu/mediatek: Add mutex for data in the mtk_iommu_domain

2022-01-25 Thread Yong Wu
Same with the previous patch, add a mutex for the "data" in the mtk_iommu_domain. Just improve the safety for multi devices enter attach_device at the same time. We don't get the real issue for this. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 10 +- 1 file changed, 9 insertio

[PATCH v4 08/35] iommu/mediatek: Use kmalloc for protect buffer

2022-01-25 Thread Yong Wu
No need zero for the protect buffer that is only accessed by the IOMMU HW translation fault happened. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index e6e4ee471867.

[PATCH v4 09/35] iommu/mediatek: Adapt sharing and non-sharing pgtable case

2022-01-25 Thread Yong Wu
In previous mt2712, Both IOMMUs are MM IOMMU, and they will share pgtable. However in the latest SoC, another is infra IOMMU, there is no reason to share pgtable between MM with INFRA IOMMU. This patch manage to implement the two case(sharing and non-sharing pgtable). Currently we use for_each_m4u

[PATCH v4 10/35] iommu/mediatek: Add 12G~16G support for multi domains

2022-01-25 Thread Yong Wu
In mt8192, we preassign 0-4G; 4G-8G; 8G-12G for different multimedia engines. This depends on the "dma-ranges=" in the iommu consumer's dtsi node. Adds 12G-16G region here. and reword the previous comment. we don't limit which master locate in which region. CCU still is 8G-12G. Don't change it he

[PATCH v4 11/35] iommu/mediatek: Add a flag DCM_DISABLE

2022-01-25 Thread Yong Wu
In the infra iommu, we should disable DCM. add a new flag for this. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c ind

[PATCH v4 12/35] iommu/mediatek: Add a flag NON_STD_AXI

2022-01-25 Thread Yong Wu
Add a new flag NON_STD_AXI, All the previous SoC support this flag. Prepare for adding infra and apu iommu which don't support this. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions

[PATCH v4 13/35] iommu/mediatek: Remove the granule in the tlb flush

2022-01-25 Thread Yong Wu
The MediaTek IOMMU don't care about granule when tlb flushing. Remove this variable. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/

[PATCH v4 14/35] iommu/mediatek: Always enable output PA over 32bits in isr

2022-01-25 Thread Yong Wu
Currently the output PA[32:33] is contained by the flag IOVA_34. This is not right. the iova_34 has no relation with pa[32:33], the 32bits iova still could map to pa[32:33]. Move it out from the flag. No need fix tag since currently only mt8192 use the calulation and it always has this IOVA_34 fla

[PATCH v4 15/35] iommu/mediatek: Add SUB_COMMON_3BITS flag

2022-01-25 Thread Yong Wu
In prevous SoC, the sub common id occupy 2 bits. the mt8195's sub common id has 3bits. Add a new flag for this. and rename the previous flag to _2BITS. For readable, I put these two flags together, then move the other flags. no functional change. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchi

[PATCH v4 16/35] iommu/mediatek: Add IOMMU_TYPE flag

2022-01-25 Thread Yong Wu
Add IOMMU_TYPE definition. In the mt8195, we have another IOMMU_TYPE: infra iommu, also there will be another APU_IOMMU, thus, use 2bits for the IOMMU_TYPE. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 12 ++-- 1 file changed, 10 insert

[PATCH v4 17/35] iommu/mediatek: Contain MM IOMMU flow with the MM TYPE

2022-01-25 Thread Yong Wu
Prepare for supporting INFRA_IOMMU, and APU_IOMMU later. For Infra IOMMU/APU IOMMU, it doesn't have the "larb""port". thus, Use the MM flag contain the MM_IOMMU special flow, Also, it moves a big chunk code about parsing the mediatek,larbs into a function, this is only needed for MM IOMMU. and all

[PATCH v4 18/35] iommu/mediatek: Adjust device link when it is sub-common

2022-01-25 Thread Yong Wu
For MM IOMMU, We always add device link between smi-common and IOMMU HW. In mt8195, we add smi-sub-common. Thus, if the node is sub-common, we still need find again to get smi-common, then do device link. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iomm

[PATCH v4 19/35] iommu/mediatek: Allow IOMMU_DOMAIN_UNMANAGED for PCIe VFIO

2022-01-25 Thread Yong Wu
Allow the type IOMMU_DOMAIN_UNMANAGED since vfio_iommu_type1.c always call iommu_domain_alloc. The PCIe EP works ok when going through vfio. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v4 20/35] iommu/mediatek: Add a PM_CLK_AO flag for infra iommu

2022-01-25 Thread Yong Wu
The power/clock of infra iommu is always on, and it doesn't have the device link with the master devices, then the infra iommu device's pm statua is not active, thus we add A PM_CLK_AO flag for infra iommu. The tlb operation is a bit not clear in this file, Comment them in the code here. Signed-o

[PATCH v4 21/35] iommu/mediatek: Add infra iommu support

2022-01-25 Thread Yong Wu
The infra iommu enable bits in mt8195 is in the pericfg register segment, use regmap to update it. If infra iommu master translation fault, It doesn't have the larbid/portid, thus print out the whole register value. Since regmap_update_bits may fail, add return value for mtk_iommu_config. Signed

[PATCH v4 22/35] iommu/mediatek: Add PCIe support

2022-01-25 Thread Yong Wu
Currently the code for of_iommu_configure_dev_id is like this: static int of_iommu_configure_dev_id(struct device_node *master_np, struct device *dev, const u32 *id) { struct of_phandle_args iommu_spec = { .args_count

[PATCH v4 23/35] iommu/mediatek: Add mt8195 support

2022-01-25 Thread Yong Wu
mt8195 has 3 IOMMU, containing 2 MM IOMMUs, one is for vdo, the other is for vpp. and 1 INFRA IOMMU. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 43 +++ drivers/iommu/mtk_iommu.h | 1 + 2 files changed, 44

[PATCH v4 24/35] iommu/mediatek: Only adjust code about register base

2022-01-25 Thread Yong Wu
No functional change. Use "base" instead of the data->base. This is avoid to touch too many lines in the next patches. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- drivers/iommu/mtk_iommu.c | 51 +-- 1 file changed, 27 insertions(+), 24

[PATCH v4 25/35] iommu/mediatek: Just move code position in hw_init

2022-01-25 Thread Yong Wu
No functional change too, prepare for mt8195 IOMMU support bank functions. Some global control settings are in bank0 while the other banks have their bank independent setting. Here only move the global control settings and the independent registers together. Signed-off-by: Yong Wu Reviewed-by: An

[PATCH v4 26/35] iommu/mediatek: Separate mtk_iommu_data for v1 and v2

2022-01-25 Thread Yong Wu
Prepare for adding the structure "mtk_iommu_bank_data". No functional change. The mtk_iommu_domain in v1 and v2 are different, we could not add current data as bank[0] in v1 simplistically. Currently we have no plan to add new SoC for v1, in order to avoid affect v1 when we add many new features f

[PATCH v4 27/35] iommu/mediatek: Remove mtk_iommu.h

2022-01-25 Thread Yong Wu
Currently there is only compare_of/release_of/a suspend structure in the header file. I think it is no need to keep a header file only for these. Move these into the c file and rm this header file. I think there should be a common helper for compare_of and release_of. There is many copy in drm, it

[PATCH v4 28/35] iommu/mediatek-v1: Just rename mtk_iommu to mtk_iommu_v1

2022-01-25 Thread Yong Wu
No functional change. Just rename this for readable. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu_v1.c | 209 +-- 1 file changed, 102 insertions(+), 107 deletions(-) diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index 23c3bc175153

[PATCH v4 29/35] iommu/mediatek: Add mtk_iommu_bank_data structure

2022-01-25 Thread Yong Wu
Prepare for supporting multi-banks for the IOMMU HW, No functional change. Add a new structure(mtk_iommu_bank_data) for each a bank. Each a bank have the independent HW base/IRQ/tlb-range ops, and each a bank has its special iommu-domain(independent pgtable), thus, also move the domain information

[PATCH v4 30/35] iommu/mediatek: Initialise bank HW for each a bank

2022-01-25 Thread Yong Wu
The mt8195 IOMMU HW max support 5 banks, and regarding the banks' registers, it looks like: |bank0 | bank1 | bank2 | bank3 | bank4| |global | |control| null |regs | -

[PATCH v4 31/35] iommu/mediatek: Change the domid to iova_region_id

2022-01-25 Thread Yong Wu
Prepare for adding bankid, also no functional change. In the previous SoC, each a iova_region is a domain; In the multi-banks case, each a bank is a domain, then the original function name "mtk_iommu_get_domain_id" is not proper. Use "iova_region_id" instead of "domain_id". Signed-off-by: Yong Wu

[PATCH v4 32/35] iommu/mediatek: Get the proper bankid for multi banks

2022-01-25 Thread Yong Wu
We preassign some ports in a special bank via the new defined banks_portmsk. Put it in the plat_data means it is not expected to be adjusted dynamically. If the iommu id in the iommu consumer's dtsi node is inside this banks_portmsk, then we switch it to this special iommu bank, and initialise the

[PATCH v4 33/35] iommu/mediatek: Initialise/Remove for multi bank dev

2022-01-25 Thread Yong Wu
The registers for each bank of the IOMMU base are in order, delta is 0x1000. Initialise the base for each bank. For all the previous SoC, we only have bank0. thus use "do {} while()" to allow bank0 always go. When removing the device, Not always all the banks are initialised, it depend on if ther

[PATCH v4 34/35] iommu/mediatek: Backup/restore regsiters for multi banks

2022-01-25 Thread Yong Wu
Each bank has some independent registers. thus backup/restore them for each a bank when suspend and resume. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 46 ++- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/drivers/iommu/mtk_iommu.c

[PATCH v4 35/35] iommu/mediatek: mt8195: Enable multi banks for infra iommu

2022-01-25 Thread Yong Wu
Enable the multi-bank functions for infra-iommu. We put PCIE in bank0 and USB in the last bank(bank4). and we don't use the other banks currently, disable them. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 0/2] MT8186 IOMMU SUPPORT

2022-01-25 Thread Yong Wu
This patchset adds mt8186 iommu support. Base on v5.16-rc1 and mt8195 iommu v4[1]. [1] https://lore.kernel.org/linux-mediatek/20220125085634.17972-1-yong...@mediatek.com/ Yong Wu (2): dt-bindings: mediatek: mt8186: Add binding for MM iommu iommu/mediatek: Add mt8186 iommu support .../bind

[PATCH 2/2] iommu/mediatek: Add mt8186 iommu support

2022-01-25 Thread Yong Wu
Add mt8186 iommu supports. Signed-off-by: Anan Sun Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index be36e73e4bcc..a3124f48f9e1 100644 --- a/drivers/iommu/mtk_io

[PATCH 1/2] dt-bindings: mediatek: mt8186: Add binding for MM iommu

2022-01-25 Thread Yong Wu
Add mt8186 iommu binding. "-mm" means the iommu is for Multimedia. Signed-off-by: Yong Wu --- .../bindings/iommu/mediatek,iommu.yaml| 4 + .../dt-bindings/memory/mt8186-memory-port.h | 217 ++ 2 files changed, 221 insertions(+) create mode 100644 include/dt-bindings/

Re: [PATCH 7/7] iommu: Add iommu_domain::domain_ops

2022-01-25 Thread Jason Gunthorpe via iommu
On Tue, Jan 25, 2022 at 12:59:14PM +0800, Lu Baolu wrote: > On 1/24/22 5:58 PM, Tian, Kevin wrote: > > > From: Lu Baolu > > > Sent: Monday, January 24, 2022 3:11 PM > > > +/** > > > + * struct domain_ops - per-domain ops > > > + * @attach_dev: attach an iommu domain to a device > > > + * @detach_d

[PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779f0 support

2022-01-25 Thread Yoshihiro Shimoda
Document the compatible values for the IPMMU-VMSA blocks in the Renesas R-Car S4-8 (R8A779F0) SoC and R-Car Gen4. Signed-off-by: Yoshihiro Shimoda --- .../devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bi

[PATCH 0/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-01-25 Thread Yoshihiro Shimoda
This patch series is based on renesas-drivers-2022-01-11-v5.16 [1]. Note that we have to prepare the following registers' setting in a bootloader (U-Boot) because the registers are protected. Otherwise, data mismatch happened if dmatest with the ipmmu is running. => mw eed01500 0xc000; mw eed

[PATCH 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-01-25 Thread Yoshihiro Shimoda
Add support for R-Car Gen4 like r8a779f0 (R-Car S4-8). The IPMMU hardware design of r8a779f0 is the same as r8a779a0. So, rename "r8a779a0" to "rcar_gen4". Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

RE: [PATCH v7 0/9] ACPI/IORT: Support for IORT RMR node

2022-01-25 Thread Shameerali Kolothum Thodi via iommu
Hi Robin/Lorenzo, > -Original Message- > From: iommu [mailto:iommu-boun...@lists.linux-foundation.org] On Behalf > Of Shameer Kolothum > Sent: 05 August 2021 09:07 > To: linux-arm-ker...@lists.infradead.org; linux-a...@vger.kernel.org; > iommu@lists.linux-foundation.org > Cc: robin.mur...@

Re: [PATCH 1/2] dt-bindings: mediatek: mt8186: Add binding for MM iommu

2022-01-25 Thread Krzysztof Kozlowski
On 25/01/2022 10:32, Yong Wu wrote: > Add mt8186 iommu binding. "-mm" means the iommu is for Multimedia. > > Signed-off-by: Yong Wu > --- > .../bindings/iommu/mediatek,iommu.yaml| 4 + > .../dt-bindings/memory/mt8186-memory-port.h | 217 ++ > 2 files changed, 221 inse

Re: [PATCH v4 3/7] mm: page_isolation: check specified range for unmovable pages

2022-01-25 Thread Oscar Salvador
On Mon, Jan 24, 2022 at 12:17:23PM -0500, Zi Yan wrote: > You are right. Sorry for the confusion. I think it should be > “Page isolation is done at least on max(MAX_ORDER_NR_PAEGS, > pageblock_nr_pages) granularity.” > > memory_hotplug uses PAGES_PER_SECTION. It is greater than that. Or just spec

Re: [PATCH v4 3/7] mm: page_isolation: check specified range for unmovable pages

2022-01-25 Thread Oscar Salvador
On Tue, Jan 25, 2022 at 02:19:46PM +0100, Oscar Salvador wrote: > I know that this has been discussed previously, and the cover-letter already > mentions it, but I think it would be great to have some sort of information > about > the problem in the commit message as well, so people do not have to

Re: [PATCH 7/7] iommu: Add iommu_domain::domain_ops

2022-01-25 Thread Robin Murphy
On 2022-01-25 06:27, Lu Baolu wrote: On 1/25/22 8:57 AM, Robin Murphy wrote: On 2022-01-24 07:11, Lu Baolu wrote: Add a domain specific callback set, domain_ops, for vendor iommu driver to provide domain specific operations. Move domain-specific callbacks from iommu_ops to the domain_ops and ho

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Robin Murphy
On 2022-01-24 17:44, Jason Gunthorpe wrote: On Mon, Jan 24, 2022 at 09:46:26AM +, Tian, Kevin wrote: From: Lu Baolu Sent: Monday, January 24, 2022 3:11 PM Hi, The guest pasid and aux-domain related code are dead code in current iommu subtree. As we have reached a consensus that all these

Re: [PATCH 7/7] iommu: Add iommu_domain::domain_ops

2022-01-25 Thread Jason Gunthorpe via iommu
On Tue, Jan 25, 2022 at 02:23:52PM +, Robin Murphy wrote: > On 2022-01-25 06:27, Lu Baolu wrote: > Where it's just about which operations are valid for which domains, it's > even simpler for the core interface wrappers to validate the domain type, > rather than forcing drivers to implement mul

[PATCH] swiotlb: Do not zero buffer in set_memory_decrypted()

2022-01-25 Thread Kirill A. Shutemov
For larger TDX VM, memset() after set_memory_decrypted() in swiotlb_update_mem_attributes() takes substantial portion of boot time. Zeroing doesn't serve any functional purpose. Malicious VMM can mess with decrypted/shared buffer at any point. Remove the memset(). Signed-off-by: Kirill A. Shutem

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Jason Gunthorpe via iommu
On Tue, Jan 25, 2022 at 02:48:02PM +, Robin Murphy wrote: > Agreed, certainly an IOMMU_DOMAIN_SVA type that can both encapsulate the mm > and effectively replace iommu_sva seems like a logical and fairly small next > step. We already have the paradigm of different domain types supporting > di

Re: [PATCH v2 05/11] iommu/sva: Assign a PASID to mm on PASID allocation and free it on mm exit

2022-01-25 Thread Fenghua Yu
Hi, Thomas, On Mon, Jan 24, 2022 at 09:55:56PM +0100, Thomas Gleixner wrote: > On Mon, Jan 24 2022 at 12:52, Fenghua Yu wrote: > > On Mon, Jan 24, 2022 at 09:36:00PM +0100, Thomas Gleixner wrote: > >> On Mon, Jan 24 2022 at 21:21, Thomas Gleixner wrote: > > Ah. This patch should remove ioasid_get(

Re: [PATCH 0/5] iommu/amd: fixes for suspend/resume

2022-01-25 Thread Mike Lothian
Hi I'm seeing a WARNING that I think might be related to these patches, unfortunately another issue is making bisecting difficult [0.359362] AMD-Vi: X2APIC enabled [0.395140] [ cut here ] [0.395142] WARNING: CPU: 0 PID: 1 at amd_iommu_enable_interrupts+0x1da/0

Re: [PATCH v4 3/7] mm: page_isolation: check specified range for unmovable pages

2022-01-25 Thread Zi Yan via iommu
On 25 Jan 2022, at 8:21, Oscar Salvador wrote: > On Tue, Jan 25, 2022 at 02:19:46PM +0100, Oscar Salvador wrote: >> I know that this has been discussed previously, and the cover-letter already >> mentions it, but I think it would be great to have some sort of information >> about >> the problem i

Re: [PATCH] swiotlb: Do not zero buffer in set_memory_decrypted()

2022-01-25 Thread Tom Lendacky via iommu
On 1/25/22 07:20, Kirill A. Shutemov wrote: For larger TDX VM, memset() after set_memory_decrypted() in swiotlb_update_mem_attributes() takes substantial portion of boot time. Zeroing doesn't serve any functional purpose. Malicious VMM can mess with decrypted/shared buffer at any point. Remove

Re: [PATCH v3 0/7] MT8186 SMI SUPPORT

2022-01-25 Thread Krzysztof Kozlowski
On Thu, 13 Jan 2022 19:10:50 +0800, Yong Wu wrote: > This patchset adds mt8186 smi support. > mainly adds a sleep control function. > > Change note: > v3: a) Add a new binding patch for renaming "clock" to "clocks". > b) Reword the title for the binding patches, more detailed. > c) Add the

Re: [PATCH v2] iommu/vt-d: Fix PCI bus rescan device hot add

2022-01-25 Thread Jacob Pan
Hi all, Just wondering if there are any other comments? This fixes a regression that can cause system hang. On Fri, 14 Jan 2022 00:21:10 -0800, Jacob Pan wrote: > During PCI bus rescan, adding new devices involve two notifiers. > 1. dmar_pci_bus_notifier() > 2. iommu_bus_notifier() > The curren

Re: [PATCH 0/5] iommu/amd: fixes for suspend/resume

2022-01-25 Thread Maxim Levitsky
On Tue, 2022-01-25 at 15:08 +, Mike Lothian wrote: > Hi > > I'm seeing a WARNING that I think might be related to these patches, > unfortunately another issue is making bisecting difficult > > [0.359362] AMD-Vi: X2APIC enabled > [0.395140] [ cut here ] > [

Re: [PATCH v7 0/9] ACPI/IORT: Support for IORT RMR node

2022-01-25 Thread Robin Murphy
On 2022-01-25 13:00, Shameerali Kolothum Thodi wrote: Hi Robin/Lorenzo, -Original Message- From: iommu [mailto:iommu-boun...@lists.linux-foundation.org] On Behalf Of Shameer Kolothum Sent: 05 August 2021 09:07 To: linux-arm-ker...@lists.infradead.org; linux-a...@vger.kernel.org; iommu@l

Re: [PATCH 0/5] iommu/amd: fixes for suspend/resume

2022-01-25 Thread Mike Lothian
On Tue, 25 Jan 2022 at 19:26, Maxim Levitsky wrote: > > Could you just apply these patches on top of 5.15 kernel and see if you get > the warning? > > If something could case it is I think patch 1, it does move the GA log enabled > to be a bit later. > I also added few warnings there. I wonder wh

Re: [PATCH v2] iommu/vt-d: Fix PCI bus rescan device hot add

2022-01-25 Thread Lu Baolu
Hi Jacob, On 1/26/22 2:57 AM, Jacob Pan wrote: Hi all, Just wondering if there are any other comments? This fixes a regression that can cause system hang. This looks fine to me. I will queue it for v5.17 if there's no further comments. Best regards, baolu

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Lu Baolu
On 1/25/22 11:16 PM, Jason Gunthorpe wrote: On Tue, Jan 25, 2022 at 02:48:02PM +, Robin Murphy wrote: Agreed, certainly an IOMMU_DOMAIN_SVA type that can both encapsulate the mm and effectively replace iommu_sva seems like a logical and fairly small next step. We already have the paradigm

Re: [PATCH 0/5] iommu/amd: fixes for suspend/resume

2022-01-25 Thread Maxim Levitsky
On Tue, 2022-01-25 at 23:25 +, Mike Lothian wrote: > On Tue, 25 Jan 2022 at 19:26, Maxim Levitsky wrote: > > Could you just apply these patches on top of 5.15 kernel and see if you get > > the warning? > > > > If something could case it is I think patch 1, it does move the GA log > > enable