Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4523927pxt; Wed, 11 Aug 2021 07:57:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcyM8wE0BFSEA9gQ4eJeyCLAPuESuJRKo4eHHvGaycbQ07GJR7tWSWhcHQo5ZbZBs4wtja X-Received: by 2002:a6b:8ec6:: with SMTP id q189mr20521iod.169.1628693858809; Wed, 11 Aug 2021 07:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628693858; cv=none; d=google.com; s=arc-20160816; b=V4bsk5SFQ3/whM459Zk6mh1Hl9JW0m6VcNqDd7di9523jlBoj8Kd2Hgd8W46ldimMf fZBu25Ls/3uiFXatWiTLEUTD+DI+NnFin7QwIuJApcJ6qlRlkO2PdnCTV8ek+7MHVjqs EakId6L8VFkduxr0yZEaHCw4pZmPpzYyfYim43Fp53auAfk31j6FclnKIsu5qEFzHYer DvSbXslsdzE4iQawGyHoQ0uTPSuN0VRZ0nSRX+sz00leHVbgkeD8ReSLJS1AU0MPdwtN Q3SwFLYEY8aVcHJMC4eYxG8QMOWJ9MVp3wq2Ab/0U52zOIxUDCrV5vFC87hpSjHVExG/ DoJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wLRvFMvonVdQEHPKY/RKEJ+2dVCkbyvMJ4hAC/YeaTI=; b=hr74bizv3mmNQPE+CpdnAX+1WDJ6FHxGlP0BX4Y9FRAqCbxIoV+5r5+hGjN8Ls0XQf 8ETulRzczOpUFq18EHQJYB085+yG+XzGEnP9MUXtmQkzk7VLd8pGo2NFB+Qc7ZkbnvfX uBtb6T8PaR++vlxqFxVCHZ17mXkMxRAIi6yYz3GWO2sEWieBoXuB0G8SwAeWax7uwTwy 9HxA45Yucg5HpokfgQ5BYCNPIO1q+8WYf0EKoCRNmX3rjHZmTuJTIhqjM+ljq5wVcAvr wFhjiPxOVIPH5ZnOySZWbTzo4XqwudYwjzRYQcxjJCTrihWucjhhniDDsMTt8HA8LjYW J71A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si23418093iog.8.2021.08.11.07.57.26; Wed, 11 Aug 2021 07:57:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232635AbhHKOzk (ORCPT + 99 others); Wed, 11 Aug 2021 10:55:40 -0400 Received: from foss.arm.com ([217.140.110.172]:52452 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232597AbhHKOzj (ORCPT ); Wed, 11 Aug 2021 10:55:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C12CD1063; Wed, 11 Aug 2021 07:55:15 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3901A3F718; Wed, 11 Aug 2021 07:55:14 -0700 (PDT) Date: Wed, 11 Aug 2021 15:55:08 +0100 From: Lorenzo Pieralisi To: Christoph Hellwig Cc: Ard Biesheuvel , Linux Kernel Mailing List , "Rafael J. Wysocki" , ACPI Devel Maling List , Linux ARM , Veronika kabatova , Robin Murphy , Will Deacon , Hanjun Guo , Sudeep Holla , Catalin Marinas Subject: Re: [PATCH v2 1/3] ACPI: osl: Add __force attribute in acpi_os_map_iomem() cast Message-ID: <20210811145508.GA3650@lpieralisi> References: <20210726100026.12538-1-lorenzo.pieralisi@arm.com> <20210802152359.12623-2-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 03:08:24PM +0100, Christoph Hellwig wrote: > On Wed, Aug 11, 2021 at 12:40:28PM +0200, Ard Biesheuvel wrote: > > The whole problem we are solving here is that ACPI, being based on > > x86, conflates MMIO mappings with memory mappings, and has been using > > the same underlying infrastructure for either. > > So let's fix that problem instead of papering over it. Patch (3) in this series is a fix - I would ask whether it makes sense to merge patches (2-3) now and think about reworking the current ACPI IO/MEM mapping API later, it can be an invasive change for a fix, assuming we agree on how to rework the ACPI IO/MEM mapping API. Lorenzo