Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2294882pxb; Fri, 17 Sep 2021 06:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGtDwsLa1xT9nbGPBtCCEqmy/7xAw5LWrlR1Cy21RKTZ5aKTTsA2HzvfyqLBOXijyJ4DX0 X-Received: by 2002:aa7:d490:: with SMTP id b16mr12925874edr.189.1631886241786; Fri, 17 Sep 2021 06:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631886241; cv=none; d=google.com; s=arc-20160816; b=Iz8R3sYkIn1M8qnza/AH7TB3/rggjCcNLDjdd/VRS1iQAAnpx4yzJ+V7i+Xljif+58 a4n0gIFbg8aUFWbgNRus13A7WoK0UIQAQUz9Sz4ooChEiyp/b47SCQDVC/1m8yIgEUB4 hztO1AI/HRISBIKCdwDzfK8IYViZA75rudzOdh2bKWnP/SXmDaZsBZMBWZrwPkm3Z4Go U08PYX6kO216dgKLI32wZFuAKrUROTSn8YUcg0MMZl0/bqLiT5m6gZ3+sWv8AIzOKF5l wP86dcBZwRps5VIFoGGerDYT7exM0a5bT2AezcFKj0CNLo+NM/XcaAnAT0tEVbQnG8vs F6lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=9x+h4hzSwMvDVbNCE11WtRI6OxkIDVru6wCMwMglcU0=; b=rclVxdW/T1I+1CIeGzJNCzLqRqwzB0qf59C4QNtmCxFQuWa1PS0r9ARVDKb3hdNFr/ Ycayw5oEPBMLLFekAG8YUsQwq1Im3FeMFGUXQFF7YKPK9Gbl7LLwIXPmWztST7ZXdiOH ywE1wNubD8De0hw46/pGxvjNlLbIJxZvF8rntAPSRgT9xjmc0ok0qBoE8GnlcEnxyyRU KFrdiQtEwVBGPl3rQdLNXTG1y7JDwDFTS/5ZcnSE9bNPwLiErQOQLeAZtzJHtBsIIv9g q5BL/6YR9Fll2UnrPZueUwc+0SVHX++6AisRBVogzcm6eFQdPliAr8Yc+mFrWK+niTaS pyIQ== 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=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 a10si7014803ejf.122.2021.09.17.06.43.36; Fri, 17 Sep 2021 06:44:01 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234806AbhIQKGs (ORCPT + 99 others); Fri, 17 Sep 2021 06:06:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:42260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbhIQKGq (ORCPT ); Fri, 17 Sep 2021 06:06:46 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 2B31960FA0; Fri, 17 Sep 2021 10:05:25 +0000 (UTC) Received: from [198.52.44.129] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mRAkF-00BLQJ-1u; Fri, 17 Sep 2021 11:05:23 +0100 Date: Fri, 17 Sep 2021 11:05:18 +0100 Message-ID: <87h7ejbjq9.wl-maz@kernel.org> From: Marc Zyngier To: Alyssa Rosenzweig Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Stan Skowronek , Mark Kettenis , Sven Peter , Hector Martin , Robin Murphy , kernel-team@android.com Subject: Re: [PATCH v3 09/10] iommu/dart: Exclude MSI doorbell from PCIe device IOVA range In-Reply-To: References: <20210913182550.264165-1-maz@kernel.org> <20210913182550.264165-10-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 198.52.44.129 X-SA-Exim-Rcpt-To: alyssa@rosenzweig.io, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, kw@linux.com, stan@corellium.com, kettenis@openbsd.org, sven@svenpeter.dev, marcan@marcan.st, Robin.Murphy@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Sep 2021 19:55:53 +0100, Alyssa Rosenzweig wrote: > > > +config PCIE_APPLE_MSI_DOORBELL_ADDR > > + hex > > + default 0xfffff000 > > + depends on PCIE_APPLE > > + > > config PCIE_APPLE > > tristate "Apple PCIe controller" > > depends on ARCH_APPLE || COMPILE_TEST > > diff --git a/drivers/pci/controller/pcie-apple.c b/drivers/pci/controller/pcie-apple.c > > index 1ed7b90f8360..76344223245d 100644 > > --- a/drivers/pci/controller/pcie-apple.c > > +++ b/drivers/pci/controller/pcie-apple.c > > @@ -120,8 +120,10 @@ > > * The doorbell address is set to 0xfffff000, which by convention > > * matches what MacOS does, and it is possible to use any other > > * address (in the bottom 4GB, as the base register is only 32bit). > > + * However, it has to be excluded from the the IOVA range, and the > > + * DART driver has to know about it. > > */ > > -#define DOORBELL_ADDR 0xfffff000 > > +#define DOORBELL_ADDR CONFIG_PCIE_APPLE_MSI_DOORBELL_ADDR > > I'm unsure if Kconfig is the right place for this. But if it is, these > hunks should be moved earlier in the series (so the deletion gets > squashed away of the hardcoded-in-the-C.) I'd rather not doing that. There is a progression in the series, and moving the value over to Kconfig is part of that progression. Thanks, M. -- Without deviation from the norm, progress is not possible.