Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp593849pxb; Wed, 27 Jan 2021 16:08:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMZEuDwMTfrbFQwdA7TCAARQJOsvtqrEwqG15SmNxmw3UqYmx0V9YEBQ+Wl3XwOwqaWdpp X-Received: by 2002:a50:d6dc:: with SMTP id l28mr11579944edj.105.1611792536875; Wed, 27 Jan 2021 16:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792536; cv=none; d=google.com; s=arc-20160816; b=KLKW4wNWI5Zt2FRqsfTiLGRUjIoL5uY06kEAr6TWZoeeh73Fyj2HWxVgPbFu6Pqw8b NI4ZuEQ5peJBA9t1oNLFe9BnbUMXyM6MAbNKuBdgWUtGHwga0E6L7qP+BWxFGWP2ZLQR kvZ5l2X72vLwvqk30sZGj8ufBH56XYAmfsmwT8XT9RGl8myJN5iCEqHsDQfsT3s6n/YI WD1k/lfaGhXK4cVP/onBi6KZv15cJArw3mVwO9TyH5NG0Sn2VNOIEHyXkSqf2oajit7l biks5ScFuG3b8jSkdOXUyFeZ2X/oT9uWQf4jKCR0c9YK6l3f9tcHKT4M9gHyfatQ8ykm khlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BlR0o0QsWmeWLTrPNLF36eGYmBmgSP5l/euOEFC9oHI=; b=IX/gwoaoHCAHtWmbr0hYA1v77/Qkw0Ozmq4lZFUIVPHKoWpPhI0XWRaKmmyMi0bplP C8WGbDOcembmu0a4jLdnKTcSGMb9GwVY2w6jbgOniMI3fZ5ICfFPlFK5EmlN03t5D/tO 0edrJP6Hl9NIAvm0xXFMs20QgtU5mGpXgaqWbF0tmUrDFIO2B2/Zb51LQw3SfTN7QpzD 8+4Wz8vYtg+Th+KBFztPwak+VXF9jbaOFZneBWvLbHmyHCS5Hgd5ikGF2aPo/l7zDRRe 37kmu45LbJYOEsmvGEzsJrgZ+Vtv0xTlDdlkbiJIh5Ki2grqYyDMh9J3acqO7F50wAMO VwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cGdFG5sS; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg14si1526113ejb.367.2021.01.27.16.08.32; Wed, 27 Jan 2021 16:08:56 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=cGdFG5sS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343492AbhA0RkV (ORCPT + 99 others); Wed, 27 Jan 2021 12:40:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:45264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235779AbhA0RkO (ORCPT ); Wed, 27 Jan 2021 12:40:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3F84D64DAB; Wed, 27 Jan 2021 17:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611769173; bh=naK3iTaopBlSB+sQcWb3URmlNKN/78T0DoXJKZT6zEs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cGdFG5sSyV9I3ZPmUfho7hE7n57e7ubRHSm8sELpLpCf/aJO9pbDZectnjltiMw2X 6GAN0MRdmACKKb0faIJTokL6+OyeTVYn6FCjGSp3+KVPfJwGFuvT8rGJGweqTvFF/H MBz9ZSFpC+Ne4+WJMMNK2npQ8nRgFAEXp14BgQYrpe2MdzoPwrcuoYDoY3pLyMgph0 o0YymPPIzeugG2REcRs2YNXo0ODhb+s0eHgtAqfOYDm5OSGFHndvCuubHMQRsAHCd3 48FxMSbkk1neoWkMnC9Len5pmZt2U3galFV42bjbw4n80hnkPibFh+EEeznxX0kmf5 CHJVbLeAQF0ow== Received: by mail-ed1-f50.google.com with SMTP id g1so3456195edu.4; Wed, 27 Jan 2021 09:39:33 -0800 (PST) X-Gm-Message-State: AOAM530dX5XXXEk+gGp9nlhttUxEEO6TApyDGECef1z6rgMXAS5asQiS FMSCJvQQc6lIFqCQMSxJ9HH/iVVv5W9Qk8tjKA== X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr10489518edx.258.1611769171718; Wed, 27 Jan 2021 09:39:31 -0800 (PST) MIME-Version: 1.0 References: <1609930210-19227-1-git-send-email-shradha.t@samsung.com> In-Reply-To: <1609930210-19227-1-git-send-email-shradha.t@samsung.com> From: Rob Herring Date: Wed, 27 Jan 2021 11:39:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] PCI: dwc: Add upper limit address for outbound iATU To: Shradha Todi Cc: "linux-kernel@vger.kernel.org" , PCI , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Bjorn Helgaas , Pankaj Dubey , sriram.dash@samsung.com, niyas.ahmed@samsung.com, p.rajanbabu@samsung.com, l.mehra@samsung.com, hari.tv@samsung.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 6, 2021 at 4:52 AM Shradha Todi wrote: > > The size parameter is unsigned long type which can accept size > 4GB. In > that case, the upper limit address must be programmed. Add support to > program the upper limit address and set INCREASE_REGION_SIZE in case size > > 4GB. > > Signed-off-by: Shradha Todi > --- > v1: https://lkml.org/lkml/2020/12/20/187 > v2: > Addressed Rob's review comment and added PCI version check condition to > avoid writing to reserved registers. > > drivers/pci/controller/dwc/pcie-designware.c | 9 +++++++-- > drivers/pci/controller/dwc/pcie-designware.h | 1 + > 2 files changed, 8 insertions(+), 2 deletions(-) Reviewed-by: Rob Herring