Re: [PATCH v7 16/21] block: add check when merging zone device pages

2022-07-04 Thread Christoph Hellwig
On Thu, Jun 30, 2022 at 03:50:10PM -0600, Logan Gunthorpe wrote: > Oh, it turns out this code has nothing to do with REQ_NOMERGE. It's used > indirectly in bio_map_user_iov() and __bio_iov_iter_get_pages() when > adding pages to the bio via page_is_mergeable(). So it's not about > requests being

Re: (EXT) Re: (EXT) Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state()

2022-07-04 Thread Alexander Stein
Am Freitag, 1. Juli 2022, 09:02:22 CEST schrieb Saravana Kannan: > On Thu, Jun 30, 2022 at 11:02 PM Alexander Stein > > wrote: > > Hi Saravana, > > > > Am Freitag, 1. Juli 2022, 02:37:14 CEST schrieb Saravana Kannan: > > > On Thu, Jun 23, 2022 at 5:08 AM Alexander Stein > > > > > > wrote: > >

Re: [PATCH v1 05/16] arm64: dts: mt8195: Disable I2C0 node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: From: Tzung-Bi Shih The I2C0 node doesn't need to be enabled in dtsi. "The I2C0 node should not be enabled globally, as usage is board dependant: disable it in dtsi." after which... Reviewed-by: AngeloGioacchino Del Regno Signed-off-by:

Re: [PATCH v1 16/16] arm64: dts: mt8195: Add display node for vdosys0

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: From: "Jason-JH.Lin" Add display node for vdosys0 of mt8195. Signed-off-by: Jason-JH.Lin Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 109 +++ 1 file changed, 109 insertions(+) diff --git

Re: [PATCH v1 11/16] arm64: dts: mt8195: Add audio related nodes

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add audio related nodes for mt8195. Signed-off-by: Trevor Wu Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 06/16] arm64: dts: mt8195: Add cpufreq node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: From: YT Lee Add cpufreq node for mt8195. Signed-off-by: YT Lee Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 09/16] arm64: dts: mt8195: Add spmi node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add spmi node to mt8195. Signed-off-by: Henry Chen Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 08/16] arm64: dts: mt8195: Add power domains controller

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add power domains controller node for mt8195. Signed-off-by: Weiyi Lu Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 14/16] arm64: dts: mt8195: Add iommu and smi nodes

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add iommu nodes and smi nodes for mt8195. Signed-off-by: Yong Wu Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 13/16] arm64: dts: mt8195: Specify audio reset controller

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: From: Trevor Wu Specify audio reset controller for audio hardware resetting. Signed-off-by: Trevor Wu Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list

Re: [PATCH v1 15/16] arm64: dts: mt8195: Add gce node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: From: "Jason-JH.Lin" Add gce node and gce alias to mt8195 device tree. Signed-off-by: Jason-JH.Lin Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list

Re: [PATCH v1 10/16] arm64: dts: mt8195: Add scp node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add scp node for mt8195. Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH v1 07/16] arm64: dts: mt8195: Add vdosys and vppsys clock nodes

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Add display clock nodes. Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno ___ iommu mailing list iommu@lists.linux-foundation.org

[PATCH] iommu/mediatek: check return value after calling platform_get_resource()

2022-07-04 Thread Yang Yingliang via iommu
It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. Fixes: 42d57fc58aeb ("iommu/mediatek: Initialise/Remove for multi bank dev") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/iommu/mtk_iommu.c | 2 ++ 1 file changed, 2

Re: [PATCH v1 02/16] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: The max clock items for the dts node with compatible 'mediatek,mt8195-smi-sub-common' should be 3. However, the dtbs_check of such node will get following message, arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: smi@1401: clock-names: ['apb', 'smi',

Re: [PATCH v1 04/16] arm64: dts: mt8195: Disable watchdog external reset signal

2022-07-04 Thread AngeloGioacchino Del Regno
Il 04/07/22 12:00, Tinghan Shen ha scritto: Disable external output reset signal in first round of watchdog reset to reserve wdt reset reason for debugging watchdog issue. If my understanding of the commit decription is right, then we can clarify that with something like: "[...] for debugging

Re: [RFC PATCH 3/3] iommu/vt-d: Show region type in arch_rmrr_sanity_check()

2022-07-04 Thread Robin Murphy
On 2022-06-11 21:48, Aaron Tomlin wrote: This patch will attempt to describe the region type in the event that a given RMRR entry is not within a reserved region. Hmm, is this useful information for the user? You'd hope the firmware vendor knows the memory map already, but either way, is it

Re: [PATCH v1 02/16] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

2022-07-04 Thread Krzysztof Kozlowski
On 04/07/2022 12:00, Tinghan Shen wrote: > The max clock items for the dts node with compatible > 'mediatek,mt8195-smi-sub-common' should be 3. > > However, the dtbs_check of such node will get following message, > arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: smi@1401: clock-names: > ['apb',

Re: [PATCH v7 01/21] lib/scatterlist: add flag for indicating P2PDMA segments in an SGL

2022-07-04 Thread Robin Murphy
On 2022-06-15 17:12, Logan Gunthorpe wrote: Make use of the third free LSB in scatterlist's page_link on 64bit systems. The extra bit will be used by dma_[un]map_sg_p2pdma() to determine when a given SGL segments dma_address points to a PCI bus address. dma_unmap_sg_p2pdma() will need to

Re: [PATCH v1 16/16] arm64: dts: mt8195: Add display node for vdosys0

2022-07-04 Thread Krzysztof Kozlowski
On 04/07/2022 12:00, Tinghan Shen wrote: > From: "Jason-JH.Lin" > > Add display node for vdosys0 of mt8195. > > Signed-off-by: Jason-JH.Lin > Signed-off-by: Tinghan Shen > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 109 +++ > 1 file changed, 109 insertions(+) > >

Re: [PATCH v3 4/4] vfio: Require that devices support DMA cache coherence

2022-07-04 Thread chenxiang (M) via iommu
Hi, We encounter a issue with the patch: our platform is ARM64, and we run DPDK with smmu disable on VM (without iommu=smmuv3 etc), so we use noiommu mode with enable_unsafe_noiommu_mode=1 to passthrough the device to VM with following steps (those steps are on VM) : insmod vfio.ko

Re: [PATCH -next] dma-mapping: Fix build error unused-value

2022-07-04 Thread Mathieu Poirier
On Thu, Jun 30, 2022 at 04:31:16PM +0200, Christoph Hellwig wrote: > Thanks, this looks good with a minor nit below: > > Reviewed-by: Christoph Hellwig > > Mathieu, can you pick this up through your tree as that is where the > offending commit was merged through? > > > Fixes:

Re: [PATCH v3 4/4] vfio: Require that devices support DMA cache coherence

2022-07-04 Thread Jason Gunthorpe via iommu
On Mon, Jul 04, 2022 at 09:21:26PM +0800, chenxiang (M) wrote: > Hi, > > We encounter a issue with the patch: our platform is ARM64, and we run DPDK > with smmu disable on VM (without iommu=smmuv3 etc), > > so we use noiommu mode with enable_unsafe_noiommu_mode=1 to passthrough the > device to

[PATCH v1 07/16] arm64: dts: mt8195: Add vdosys and vppsys clock nodes

2022-07-04 Thread Tinghan Shen via iommu
Add display clock nodes. Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 900aaa16f862..8d59a7da3271

[PATCH v1 14/16] arm64: dts: mt8195: Add iommu and smi nodes

2022-07-04 Thread Tinghan Shen via iommu
Add iommu nodes and smi nodes for mt8195. Signed-off-by: Yong Wu Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 451 +++ 1 file changed, 451 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 01/16] dt-bindings: iommu: mediatek: Increase max interrupt number

2022-07-04 Thread Tinghan Shen via iommu
mt8195 infra iommu has max 5 interrupts. Signed-off-by: Tinghan Shen --- .../devicetree/bindings/iommu/mediatek,iommu.yaml| 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml

[PATCH v1 08/16] arm64: dts: mt8195: Add power domains controller

2022-07-04 Thread Tinghan Shen via iommu
Add power domains controller node for mt8195. Signed-off-by: Weiyi Lu Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 327 +++ 1 file changed, 327 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 12/16] arm64: dts: mt8195: Add adsp node and adsp mailbox nodes

2022-07-04 Thread Tinghan Shen via iommu
From: YC Hung Add adsp node and adsp mailbox nodes for mt8195. Signed-off-by: YC Hung Signed-off-by: Allen-KH Cheng Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 37 1 file changed, 37 insertions(+) diff --git

[PATCH v1 16/16] arm64: dts: mt8195: Add display node for vdosys0

2022-07-04 Thread Tinghan Shen via iommu
From: "Jason-JH.Lin" Add display node for vdosys0 of mt8195. Signed-off-by: Jason-JH.Lin Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 109 +++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 13/16] arm64: dts: mt8195: Specify audio reset controller

2022-07-04 Thread Tinghan Shen via iommu
From: Trevor Wu Specify audio reset controller for audio hardware resetting. Signed-off-by: Trevor Wu Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 09/16] arm64: dts: mt8195: Add spmi node

2022-07-04 Thread Tinghan Shen via iommu
Add spmi node to mt8195. Signed-off-by: Henry Chen Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index

[PATCH v1 03/16] dt-bindings: power: mediatek: Refine multiple level power domain nodes

2022-07-04 Thread Tinghan Shen via iommu
Extract duplicated properties and support more levels of power domain nodes. This change fix following error when do dtbs_check, arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: power-controller: power-domain@15:power-domain@16:power-domain@18: 'power-domain@19', 'power-domain@20',

[PATCH v1 00/16] Add driver nodes for MT8195 SoC

2022-07-04 Thread Tinghan Shen via iommu
Add driver nodes for MT8195 SoC. Patchset 12 depends on https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?id=009b21f392759ca7be91bc4be9d9534f6cee2878 Jason-JH.Lin (2): arm64: dts: mt8195: Add gce node arm64: dts: mt8195: Add display node for vdosys0 Tinghan Shen

[PATCH v1 10/16] arm64: dts: mt8195: Add scp node

2022-07-04 Thread Tinghan Shen via iommu
Add scp node for mt8195. Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 456612d9d508..543bb719a445 100644 ---

[PATCH v1 04/16] arm64: dts: mt8195: Disable watchdog external reset signal

2022-07-04 Thread Tinghan Shen via iommu
Disable external output reset signal in first round of watchdog reset to reserve wdt reset reason for debugging watchdog issue. Signed-off-by: Fengquan Chen Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v1 06/16] arm64: dts: mt8195: Add cpufreq node

2022-07-04 Thread Tinghan Shen via iommu
From: YT Lee Add cpufreq node for mt8195. Signed-off-by: YT Lee Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 05/16] arm64: dts: mt8195: Disable I2C0 node

2022-07-04 Thread Tinghan Shen via iommu
From: Tzung-Bi Shih The I2C0 node doesn't need to be enabled in dtsi. Signed-off-by: Tzung-Bi Shih Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 11/16] arm64: dts: mt8195: Add audio related nodes

2022-07-04 Thread Tinghan Shen via iommu
Add audio related nodes for mt8195. Signed-off-by: Trevor Wu Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 58 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

[PATCH v1 02/16] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

2022-07-04 Thread Tinghan Shen via iommu
The max clock items for the dts node with compatible 'mediatek,mt8195-smi-sub-common' should be 3. However, the dtbs_check of such node will get following message, arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: smi@1401: clock-names: ['apb', 'smi', 'gals0'] is too long From schema:

Re: [RFC PATCH 3/3] iommu/vt-d: Show region type in arch_rmrr_sanity_check()

2022-07-04 Thread Aaron Tomlin
On Mon 2022-07-04 11:39 +0100, Robin Murphy wrote: > On 2022-06-11 21:48, Aaron Tomlin wrote: > > This patch will attempt to describe the region type in the event > > that a given RMRR entry is not within a reserved region. > > Hmm, is this useful information for the user? You'd hope the firmware

[PATCH v1 15/16] arm64: dts: mt8195: Add gce node

2022-07-04 Thread Tinghan Shen via iommu
From: "Jason-JH.Lin" Add gce node and gce alias to mt8195 device tree. Signed-off-by: Jason-JH.Lin Signed-off-by: Tinghan Shen --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi

Re: [PATCH v1 08/16] arm64: dts: mt8195: Add power domains controller

2022-07-04 Thread Krzysztof Kozlowski
On 04/07/2022 12:00, Tinghan Shen wrote: > Add power domains controller node for mt8195. > > Signed-off-by: Weiyi Lu > Signed-off-by: Tinghan Shen > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 327 +++ > 1 file changed, 327 insertions(+) > > diff --git

Re: (EXT) Re: (EXT) Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state()

2022-07-04 Thread Saravana Kannan via iommu
On Mon, Jul 4, 2022 at 12:07 AM Alexander Stein wrote: > > Am Freitag, 1. Juli 2022, 09:02:22 CEST schrieb Saravana Kannan: > > On Thu, Jun 30, 2022 at 11:02 PM Alexander Stein > > > > wrote: > > > Hi Saravana, > > > > > > Am Freitag, 1. Juli 2022, 02:37:14 CEST schrieb Saravana Kannan: > > > >

Re: [PATCH v12 2/2] iommu/mediatek: Allow page table PA up to 35bit

2022-07-04 Thread Yong Wu via iommu
On Thu, 2022-06-30 at 17:29 +0800, yf.w...@mediatek.com wrote: > From: Yunfei Wang > > Single memory zone feature will remove ZONE_DMA32 and ZONE_DMA. So > add > the quirk IO_PGTABLE_QUIRK_ARM_MTK_TTBR_EXT to let level 1 and level > 2 > pgtable support at most 35bit PA. > > Signed-off-by: Ning

Re: [PATCH v6 04/10] gpu: host1x: Add context device management code

2022-07-04 Thread kernel test robot
Hi Mikko, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on tegra/for-next linus/master v5.19-rc5] [cannot apply to tegra-drm/drm/tegra/for-next next-20220704] [If your patch is applied to the wrong git tree, kindly drop us

[linux-next:master] BUILD REGRESSION b6f1f2fa2bddd69ff46a190b8120bd440fd50563

2022-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: b6f1f2fa2bddd69ff46a190b8120bd440fd50563 Add linux-next specific files for 20220704 Error/Warning: (recently discovered and may have been fixed) drivers/pci/endpoint/functions/pci-epf-vntb.c

Re: [PATCH v2 03/14] iommu: Move bus setup to IOMMU device registration

2022-07-04 Thread Baolu Lu
Hi Robin, On 2022/4/30 02:06, Robin Murphy wrote: On 29/04/2022 9:50 am, Robin Murphy wrote: On 2022-04-29 07:57, Baolu Lu wrote: Hi Robin, On 2022/4/28 21:18, Robin Murphy wrote: Move the bus setup to iommu_device_register(). This should allow bus_iommu_probe() to be correctly replayed for

Re: [PATCHv2] iommu/arm-smmu-qcom: Add debug support for TLB sync timeouts

2022-07-04 Thread Sai Prakash Ranjan
On 6/23/2022 11:32 AM, Sai Prakash Ranjan wrote: On 5/26/2022 9:44 AM, Sai Prakash Ranjan wrote: TLB sync timeouts can be due to various reasons such as TBU power down or pending TCU/TBU invalidation/sync and so on. Debugging these often require dumping of some implementation defined registers