Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2012681imm; Tue, 10 Jul 2018 11:35:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfemWny1Pei/Yz73nNhf8ZfLRCB5u1yFpSdRZaDJi42YDUjVGOYD9MjmLZJru5HLAJUyN8B X-Received: by 2002:a17:902:5a0c:: with SMTP id q12-v6mr25415677pli.300.1531247703971; Tue, 10 Jul 2018 11:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247703; cv=none; d=google.com; s=arc-20160816; b=DKjnVxrmiHWQqmxRjX2Dp6s9rG0F14tNscRSbpkyQrDUcyltOOjf7iFEoBkWYSlkYr wf2TglD7jot6MjvBzbcaNWoEjxjkHmhJQbyXwrFd2lCD/4esUeFCXqD9gz3U7spspXWr SSMJeKvVwZShYdoT9lebBSCQNwp6g+cbveWqCM6x9ZRRzotwxyvuZ1WsBTkgyp54GQsY 9bX/QBuct/L1f+ClILTp5VBSTnaH7fbSDgDoSvJpYQYe7QCFh2IuXptcqkndnY27WqGR qh5R9Ekjp3j9UAYsAUbcvB05e3OBd0C8mjoMUBiQSoedaShfqj5DUdgxTl/aY1lvtUjZ aPag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=cLOILOREhgckPlbRqJs9cNWX3x2bsoRrWm3f0joSovM=; b=Tai8UMVAN85RQ9bJ56tmdEv/OlWaIAnwjNReQN2ymTBywOHqAXRyXlrpb9fCyMrsAp IEYoWhkHNfrJqmrjpxfx+NJY+vAjSlN0QAAKayV9VlMcKoWn9muBcE6VvQ+PuGdnWXIY VSRHMg0P1k3KRvEOCkCPVp60k2SfSD5Kn7ub7C5X1hxYdXdR4tiqkBLpxaAK5M7cqEjw /p9f6dlxggsi9yNQLa7FVrbmulzyfZL2yxRJZkeh8CWsRAHdTCgb3/B52yVyAoBofyjE +SPKYixVGpQGAOpYMlPlQbyebFu8wagB3d+RnAspam0tL14ToGcTGUvpVa9HNMVEmT/D rgbA== ARC-Authentication-Results: i=1; mx.google.com; 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 f1-v6si17437009pli.358.2018.07.10.11.34.48; Tue, 10 Jul 2018 11:35:03 -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; 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 S2389031AbeGJSdn (ORCPT + 99 others); Tue, 10 Jul 2018 14:33:43 -0400 Received: from foss.arm.com ([217.140.101.70]:51802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388985AbeGJSdm (ORCPT ); Tue, 10 Jul 2018 14:33:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 672F9168F; Tue, 10 Jul 2018 10:17:33 -0700 (PDT) Received: from e110467-lin.cambridge.arm.com (e110467-lin.cambridge.arm.com [10.1.210.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D8B083F589; Tue, 10 Jul 2018 10:17:30 -0700 (PDT) From: Robin Murphy To: hch@lst.de, m.szyprowski@samsung.com, iommu@lists.linux-foundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, sudeep.holla@arm.com, robh+dt@kernel.org, frowand.list@gmail.com, gregkh@linuxfoundation.org, joro@8bytes.org, x86@kernel.org Subject: [RFC PATCH 2/4] ACPI/IORT: Set bus DMA mask as appropriate Date: Tue, 10 Jul 2018 18:17:17 +0100 Message-Id: X-Mailer: git-send-email 2.17.1.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When an explicit DMA limit is described by firmware, we need to remember it regardless of how drivers might subsequently update their devices' masks. The new bus_dma_mask field does that. Signed-off-by: Robin Murphy --- drivers/acpi/arm64/iort.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 4a66896e2aa3..bc51cff5505e 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -1014,6 +1014,7 @@ void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size) * Limit coherent and dma mask based on size * retrieved from firmware. */ + dev->bus_dma_mask = mask; dev->coherent_dma_mask = mask; *dev->dma_mask = mask; } -- 2.17.1.dirty