Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp240298pxb; Mon, 13 Sep 2021 18:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygN3DsozXyMYk47oCr3/8e6o54mxy1cD+3IjpTghaDm6c3loMMx0EJFPZSnQ05gt9a7jKR X-Received: by 2002:aa7:d9d2:: with SMTP id v18mr16555972eds.128.1631581495104; Mon, 13 Sep 2021 18:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631581495; cv=none; d=google.com; s=arc-20160816; b=ymgGYCR/6NDJIc3h2OhwtzQPJQ+5rRYeku4vZIfVB/PRVNifarBFkLfsEUVtJWyXh4 KMQXh5Go1QB8C3hwznXWxry/TgjhTEM4+0v1W0zhT5hRQ+V1NXjpRELPChlG/xQY5PlD fPrgNyO4Jmqom+9BWX+D99qdAcQ11C2CWsP197b6nPRWdm+U6Cs8DgVpjR/Pu17wXO4t g5ynQQbcQTdP6JL4PXd8TBUGSJDU1Qj5fYvEgJqSHlC5Kz+X3y7iABhWLdU0x3njRocI ZJ7fQx5haB3JkD/ejfr8UV0AFhkrFzayk6TzQa0loD4ohzcbkxMTknxolOir7ptAwnBt jiDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9ce7H/sSqXHc62hx4KtcE80Yv91z0KYRgINQ1ppqEN8=; b=RX1xy2v9ohVzeOodlw+ZZspFhU3oAbmyNF0/RKBBriEcBg1KQV0Azk3gVXVgRuggbh SOzxob1DaK+c/Q4uBu++DGLswau0rEyUpf0c8UPTjBrACy8F3ahhRoI8umO/wR8J0PRC H7DQSN2SaozKOapkAP0BQ6ao40ZwnjDa8fh83FpX2J1iJJEna9rQEJOsAvol5Ii+ako6 hA4wYK5ytFkoXsifbU5J0RQn8xu9tZU/jlN5RluVaCtQ5wKG7R0riyU71Kp2Zi2QkfZG T93CGKav9rDijQMviIL7YeQypxkhm20bcAsxfWq7GQqDPxSYKlAztJ+DBMn4i6bXv5CV y0Gg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q30si9072399edi.509.2021.09.13.18.04.31; Mon, 13 Sep 2021 18:04:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242829AbhIMUOG (ORCPT + 99 others); Mon, 13 Sep 2021 16:14:06 -0400 Received: from rosenzweig.io ([138.197.143.207]:46318 "EHLO rosenzweig.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233368AbhIMUOF (ORCPT ); Mon, 13 Sep 2021 16:14:05 -0400 Date: Mon, 13 Sep 2021 14:55:53 -0400 From: Alyssa Rosenzweig To: Marc Zyngier Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , 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 Message-ID: References: <20210913182550.264165-1-maz@kernel.org> <20210913182550.264165-10-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210913182550.264165-10-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +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.)