From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C960FC433F5 for ; Tue, 2 Nov 2021 17:57:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A206F61051 for ; Tue, 2 Nov 2021 17:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231833AbhKBSAO (ORCPT ); Tue, 2 Nov 2021 14:00:14 -0400 Received: from mga11.intel.com ([192.55.52.93]:13326 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbhKBSAO (ORCPT ); Tue, 2 Nov 2021 14:00:14 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10156"; a="228782766" X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="228782766" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 10:57:39 -0700 X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="497280645" Received: from cmwolf-mobl.amr.corp.intel.com (HELO intel.com) ([10.252.136.231]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 10:57:38 -0700 Date: Tue, 2 Nov 2021 10:57:37 -0700 From: Ben Widawsky To: Dan Williams Cc: linux-cxl@vger.kernel.org, Chet Douglas , Alison Schofield , Ira Weiny , Jonathan Cameron , Vishal Verma Subject: Re: [RFC PATCH v2 09/28] cxl/acpi: Map single port host bridge component registers Message-ID: <20211102175737.k7l4yymx75kdvgwv@intel.com> References: <20211022183709.1199701-1-ben.widawsky@intel.com> <20211022183709.1199701-10-ben.widawsky@intel.com> <20211101170750.sajcmjxdv5rajffe@intel.com> <20211102163121.hyfj7yceainmppmk@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org On 21-11-02 10:46:41, Dan Williams wrote: > On Tue, Nov 2, 2021 at 9:31 AM Ben Widawsky wrote: > [..] > > It seemed like a very simple thing to support given the port driver's existence > > so it was added to remove a TODO. However, I will drop it as you request. > > I'm honestly asking the question why this is needed and more > specifically why this is needed in this location? > > In other words, how is this case different than typical component > register probing that is done in the port driver itself? I would > expect the TODO just gets deleted by the port driver addition. Without this code, a decoder is added for the full address range regardless if there is an existing programmed HDM decoder. With this code when the port driver probes this host bridge HDM component registers, everything will be enumerated by the normal flow. This seemed easier than trying to have the port driver determine what cxl_acpi driver did and unwind that if there is a programmed decoder. But now you're making me think I've missed something big...