Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4112016ybi; Mon, 29 Jul 2019 19:31:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqywIc1A1MFPZSF4un2AwKLclUv4xCIQ6/1DJW23Ox81L8NLx5ltMPobhYLTTXRqOVXB5Hbj X-Received: by 2002:aa7:8108:: with SMTP id b8mr40334463pfi.197.1564453893775; Mon, 29 Jul 2019 19:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564453893; cv=none; d=google.com; s=arc-20160816; b=SGB2KNiIY9+EmasCFRpvzAAwHQCzdWMW/UvPcl2/ltjRpGScrIjGSW6GKltBVI9WEZ htjXQYUjxqI497s0BmC0B9xb24N0MNeiJtITLHY31Ee17mqmExIsyel4y/Pz948AW9Zj YRsjhDEm21rhqQEqIn/3hf8Ls5hjgaTxuvuHxfG4IhLf0VvhLYzhr2mOVSiXOg+6LydC IhdQYBge1VBXBG8jQIbQopgCY9BZXNawevm3TDxLog1tSV23eFwYwrHXwYwoH+cb6EOf cHjWgC7juNN9c1IWYWL8PyULNuThKljoPTs3eSkcwcar8N6r4P1uHIzAQmdBObJO/+nx Htsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9faiGbae2G/Ug1Rw8Wrd05gwfjOH3K0oEBTdCbKmKHo=; b=l5r4OC5eHHQLjIZrOn50bl4y3TF5QN49dc1YBxnLODI2RIHdvPMQSjvkVAEsNLfFU3 Tmj3D7DxHuYmOgHxYD/IxSkQZUiodnU+KEkNKuRuVZdSHKCgduzGcP7aphOpUGzaUqcS eQyaykCvsOwC3XQPf90N0kg6UoOX0f809LmpofMVMiGWmx/+VZkwQg4xiu7I9pC9TwI1 3wAzWSRmhyduUAqnU59/3n+DiweueQzY1own/7eZYL/C16AnpYg7DnzkYXR8MvfsCOJN n73wozFheU64eEucJv51vK6CgAng7+eTlBVBJ0TLh4cJXlJyBDz2LlQ0D3ZXbYmaYG9J gtAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GBLqRsYB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si28766543pgl.386.2019.07.29.19.31.19; Mon, 29 Jul 2019 19:31:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GBLqRsYB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389485AbfG2Tm0 (ORCPT + 99 others); Mon, 29 Jul 2019 15:42:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:58102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389454AbfG2TmW (ORCPT ); Mon, 29 Jul 2019 15:42:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4ACDB2054F; Mon, 29 Jul 2019 19:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429341; bh=L8LWTTTAa3xAJp9P3YSmP/budIJojfLkiTbkPBeOfII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GBLqRsYBIDGMkfO40QNF76TDPN+nwti0ugp4uiUZkF5l7YY61PZME0bMQMu7dfgCJ x5F2TPB0F6U9r2ZxJRUX3+Y1htSOyvRW0v7eru2uyoHXsEjSnh5M7eMql7F0+yVY/6 FyZqRjj/KgnCfw6wpo+v10gjNMbqdp+ghBmPcRXk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hou Zhiqiang , Lorenzo Pieralisi , Minghuan Lian , Subrahmanya Lingappa , Sasha Levin Subject: [PATCH 4.19 066/113] PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions Date: Mon, 29 Jul 2019 21:22:33 +0200 Message-Id: <20190729190711.292162347@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f7fee1b42fe4f8171a4b1cad05c61907c33c53f6 ] The inbound and outbound windows have completely separate control registers sets in the host controller MMIO space. Windows control register are accessed through an MMIO base address and an offset that depends on the window index. Since inbound and outbound windows control registers are completely separate there is no real need to use different window indexes in the inbound/outbound windows initialization routines to prevent clashing. To fix this inconsistency, change the MEM inbound window index to 0, mirroring the outbound window set-up. Signed-off-by: Hou Zhiqiang [lorenzo.pieralisi@arm.com: update commit log] Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa Signed-off-by: Sasha Levin --- drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 2fe7ebdad2d2..a2d1e89d4867 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -553,7 +553,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) resource_size(pcie->ob_io_res)); /* memory inbound translation window */ - program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); + program_ib_windows(pcie, WIN_NUM_0, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); /* Get the I/O and memory ranges from DT */ resource_list_for_each_entry_safe(win, tmp, &pcie->resources) { -- 2.20.1