Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4286680pxk; Tue, 22 Sep 2020 15:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIoFyL1pnbYH2Rz/BaFf8SablLt5LXIiYeReNd6UnbSYkvskCQIyps7LaJzxZF31o+sszi X-Received: by 2002:a17:906:7688:: with SMTP id o8mr7232075ejm.508.1600814495045; Tue, 22 Sep 2020 15:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600814495; cv=none; d=google.com; s=arc-20160816; b=uTrR84TrUULsywwY9ihOeOXeREYiSgPzF774rBX6WiSWdQB8QElGZgShVZ08lY3ND9 QcddDaPDhVMY/asai/bhqQS/whyJBMxUaUAP3IvTN8fmXkcogNxsRP5S8oRcacmZpZbS VHHWZ6JsteGSOEROK53yHHbSJzJ0JGkZyS6jbGhC1wo83u4fVp+/aY3wP+N86DgY/SHh KbARQ7efMJqg7JvFZkQo6bTv+TDCC59NiR6ZAhWl9mFUQ0UEJKEM7lPfygfTIfMErNi8 IgYcWECJ9VdRKl7+haTLzJ8KIQb9Kk/R8De+IxQEqeyu3HH7G1+kVuL3TBDoHQeZYaeU w98g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=ClwMIaEy1QkOug3GZQC9xiEgNvcZxX8uczkxLFHFqh8=; b=MEyGfkNIyG/rwaVkYgyFApKV0/AIl8lEdV/9GV7EPF102pUtVqaHs9rLIfR0shRHlk XszMOpQiPFHm/HIn+TpQvrKLXo00/oGdV+BQWAEKPb62JNKQFDI/Li22eqY4hpJVtu8G 2vJAsU9ldzv9TFje1y06zwHsIWbwu8RHg4S0RpcZofU8sF5nB2ZOJaihrg/NApAHwglG Ml0NkuQFIHV8EYxU50pxV6BeDKkAAKesbiwV4lLuBSSO5KQT2FgSysoGQobLKZZKfh3H isYz3Ddy4kwnH184wabSzag68BAehTpFeBCTGHaqm2LLNpqGp5RKbwdY93bilRLQc6l1 oRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LZItGfNo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd3si11707636ejb.499.2020.09.22.15.41.10; Tue, 22 Sep 2020 15:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LZItGfNo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbgIVWhK (ORCPT + 99 others); Tue, 22 Sep 2020 18:37:10 -0400 Received: from linux.microsoft.com ([13.77.154.182]:60682 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726662AbgIVWhJ (ORCPT ); Tue, 22 Sep 2020 18:37:09 -0400 Received: from [192.168.1.171] (50-39-235-197.bvtn.or.frontiernet.net [50.39.235.197]) by linux.microsoft.com (Postfix) with ESMTPSA id 1508920B7179; Tue, 22 Sep 2020 15:37:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1508920B7179 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1600814229; bh=ClwMIaEy1QkOug3GZQC9xiEgNvcZxX8uczkxLFHFqh8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LZItGfNojTl6mkytfVVoC0bv8uWfNuAm4O+yL0CV3M1p16sUodwOl7UeKSdCC3Jjp jDiDKmyPNrCyl41pbnvRZlnSU0S4/EDIHlVoJeBNGZp5hyVL218Z6QDyqjHYrIus+A d94Y64Yk3ZocNDV8HOZqm7ZAlTv8QChWSIONOCIo= Subject: Re: [PATCH v2] iommu/arm: Add module parameter to set msi iova address To: Will Deacon Cc: robin.murphy@arm.com, joro@8bytes.org, srinath.mannam@broadcom.com, jean-philippe@linaro.org, eric.auger@redhat.com, shameerali.kolothum.thodi@huawei.com, tyhicks@linux.microsoft.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com References: <20200914181307.117792-1-vemegava@linux.microsoft.com> <20200921204545.GA3811@willie-the-truck> From: Vennila Megavannan Message-ID: Date: Tue, 22 Sep 2020 15:37:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200921204545.GA3811@willie-the-truck> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sure, that's a great suggestion, I'll rework on the patch and post again. Vennila On 9/21/2020 1:45 PM, Will Deacon wrote: > On Mon, Sep 14, 2020 at 11:13:07AM -0700, Vennila Megavannan wrote: >> From: Srinath Mannam >> >> Add provision to change default value of MSI IOVA base to platform's >> suitable IOVA using module parameter. The present hardcoded MSI IOVA base >> may not be the accessible IOVA ranges of platform. >> >> If any platform has the limitaion to access default MSI IOVA, then it can >> be changed using "arm-smmu.msi_iova_base=0xa0000000" command line argument. >> >> Signed-off-by: Srinath Mannam >> Co-developed-by: Vennila Megavannan >> Signed-off-by: Vennila Megavannan >> --- >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 5 ++++- >> drivers/iommu/arm/arm-smmu/arm-smmu.c | 5 ++++- >> 2 files changed, 8 insertions(+), 2 deletions(-) > This feels pretty fragile. Wouldn't it be better to realise that there's > a region conflict with iommu_dma_get_resv_regions() and move the MSI window > accordingly at runtime? > > Will