Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4267482iog; Tue, 21 Jun 2022 16:02:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSQPlyJYrScWE8ELSBNP2fq4xbyPa9DId2vxwuKN/BT9tSInrSzfym7v4NT9EqullCBNTG X-Received: by 2002:a05:6402:329a:b0:435:8935:e95d with SMTP id f26-20020a056402329a00b004358935e95dmr534315eda.257.1655852571612; Tue, 21 Jun 2022 16:02:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655852571; cv=pass; d=google.com; s=arc-20160816; b=XFbvTqm09lOJnTik/6dZ4JD8KUTBFEdRgyiWiktiFSI2TCOaTqibVFiQ2Q8RyxdHD4 ormcO9q7jp3jdNAmdOQEsB7O7ov2o0RHqV9fNcBKcSf5a91zcpCU+MtkLOO7JeC9HpGy ouSboq7xSfc40rJHip2VvH0SjT2rTchCoj9IegksXQbc9fbaia/35j3lORi0Kmxml/Rm fy6JASHtksRXA8MChRI8B2Bcc5Pt4zx1fsrFiA77BGf+UljZ1HyFl5nwBN5Rn87oSuxk lqNG3bOn/D2CUK1hdFgP2bSn7ZTS6TbsOBqhDpo7vRoWF/fvdHiNT/8EJXLU4kvI12Tm QuFA== ARC-Message-Signature: i=2; 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 :dkim-signature; bh=DuRoRhUDaZz2pGPqMmDaVozhJJ1+RdhvflafaG1sedQ=; b=gsFY7Z9mZRE6Kcz+s/EfAwlGz+jbo0d/w9efqoINovGkV71SEtTBI+w0FcQFDq3NfF 8EXiRGd2hlgXDOf9odLkAy5c9wCiQlWTyi5ggGbCULZoW4/5KanxPg0wFia0H46GD5US L2RcFQsG3ZHH5/dlo883JmvhRX5hlxSDhgtPuofU7S051yL3vvVHiW53vlIDoyqtB7Rk TPxs2ubauy3ZNzm5xjxEj0zgvE3GDus9RQQCCJ+UxMjwt2dajpoH7gr+FudtpHJsguD+ i7c0wLbqCoO+iSZr2XoHWBu19QqGqwui9Oxj+ezBSzMFatkWAyltHVxYc+IgnGuiyG4G 2NiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=dL4fPV+G; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a05640205c900b0042dce8438adsi19414656edx.487.2022.06.21.16.02.25; Tue, 21 Jun 2022 16:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=dL4fPV+G; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354943AbiFUWxL (ORCPT + 99 others); Tue, 21 Jun 2022 18:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354897AbiFUWxG (ORCPT ); Tue, 21 Jun 2022 18:53:06 -0400 Received: from bee.birch.relay.mailchannels.net (bee.birch.relay.mailchannels.net [23.83.209.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82D8636B; Tue, 21 Jun 2022 15:53:04 -0700 (PDT) X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6AE88820ED0; Tue, 21 Jun 2022 22:53:03 +0000 (UTC) Received: from pdx1-sub0-mail-a237.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C007F820E8B; Tue, 21 Jun 2022 22:53:02 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1655851983; a=rsa-sha256; cv=none; b=PF9HA+66TC3A4hl6jKjHZ8gU0KsxS7GyiIVMYKn2B+VnMcIwYa2ZwAgUlPMo9mEJACqq1M KbQh7oM4oyAfSkn/S8yITWdB5Cm+g8TrOUd1i/89ju/gQh1lDsDnlA7nVF/iboy0bba2K/ 1AoE5geHYFKP5MjdyfzgLxrk678hgHJdgzFvdPRDd0jHk43r6sq/XZJ9ZEE0WRNOyQYJHR FbMpIM86SD+L6iEjTlDaHZXTUycBHl3B0nlkWfX0GNeXFmGQJnsxG+kekTleX75tPMKvF9 z1bsQoAgWnt6gc6ClB+rqnMmt3htVk5HmFvc7kNRGOp9Vo0REgmBoLK8SXOqBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1655851983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DuRoRhUDaZz2pGPqMmDaVozhJJ1+RdhvflafaG1sedQ=; b=5stPAB+iMY6QqAi79Dq22/kEsF8Figc0seLjtnDe7NkLlGMbLCQrxo6tYbKlKnWwVbO/BJ JdDh9GJcPuMdOS/Abxp4Zw4i8t63jMSpUJN2WeqHMDqUQh3xyvfIY34bgOJNviTHvzi8iz CmfTnhhxYoG1sPu26xqb3t7E2bV2MTa5uNPVc+4afTTdfgc/FAcqYLHd+2vFEimI70zWjP uRjhWMBLjRc6Z+3mVG06qLMss6YZC64q96o5GxxwIPtOWzN7Gcswa7hPTsLp6tjaINbcdX 3Tvv9zhdHGzbF0DhDwIV1vUBURODsUbLA7+iJY2TXHDoudoPic6dVbsMVuO+uA== ARC-Authentication-Results: i=1; rspamd-848669fb87-w6m4h; auth=pass smtp.auth=dreamhost smtp.mailfrom=dave@stgolabs.net X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dave@stgolabs.net X-MailChannels-Auth-Id: dreamhost X-Thoughtful-Towering: 68ad26a17b01508e_1655851983210_907247294 X-MC-Loop-Signature: 1655851983210:2905729898 X-MC-Ingress-Time: 1655851983209 Received: from pdx1-sub0-mail-a237.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.116.106.98 (trex/6.7.1); Tue, 21 Jun 2022 22:53:03 +0000 Received: from offworld (unknown [104.36.31.105]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dave@stgolabs.net) by pdx1-sub0-mail-a237.dreamhost.com (Postfix) with ESMTPSA id 4LSMHK248Mz29; Tue, 21 Jun 2022 15:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net; s=dreamhost; t=1655851982; bh=DuRoRhUDaZz2pGPqMmDaVozhJJ1+RdhvflafaG1sedQ=; h=Date:From:To:Cc:Subject:Content-Type; b=dL4fPV+GH8+lxgeE42JwEz0Gzk2h8DEsKoYimsk3UP6d6XyHYJ9qyrPFU9qpWu0tT ivdl2onbnmgOKJyyX9Cyjm5Oy88bHf11z7fCB1u//ZvTA8cDLZPDQOW2a7lge49qr4 eqKaMiEdPsJlR+SXk5sQwT392J1fWcq0T6qvgI51eXStYMIqy9+fv0HZCNRluNid3f AC2I1ZiF89wt9MThlIKfb7FBfO0BQya868AXZiRtv03fla7zDHekpyvn5xHrolnBCx +9+O6J9HbG5fCvzdhuJN9Q9BA4R2ma41NjHa7+CVs0g2wO+BKjKoLeC/Py/UCanVHh 5LGkb++4PcXzQ== Date: Tue, 21 Jun 2022 15:38:29 -0700 From: Davidlohr Bueso To: Dan Williams Cc: linux-cxl@vger.kernel.org, alison.schofield@intel.com, bwidawsk@kernel.org, ira.weiny@intel.com, vishal.l.verma@intel.com, a.manzanares@samsung.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cxl/acpi: Verify CHBS consistency Message-ID: <20220621223829.zdyqoej76kyfut4o@offworld> References: <20220621201259.1547474-1-dave@stgolabs.net> <62b230881a77_8920729456@dwillia2-xfh.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <62b230881a77_8920729456@dwillia2-xfh.notmuch> User-Agent: NeoMutt/20220429 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Jun 2022, Dan Williams wrote: >For cxl_port objects this happens "for free" as a side effect of the: > > crb = devm_cxl_iomap_block(dev, port->component_reg_phys, > CXL_COMPONENT_REG_BLOCK_SIZE); > >...call in devm_cxl_setup_hdm(), where it tries to exclusively claim the >component register block for that cxl_port driver instance. Fair enough, I had noticed this. > >I.e. if the CHBS provides overlapping / duplicated ranges the failure is >localized to the cxl_port_probe() event for that port, and can be >debugged further by disabling one of the conflicts. Ok. Although imo it does make sense for failing directly in the cxl_acpi driver at an early stage instead of bogusly passing it down the hierarchy. So is a v2 still worth it without this check? Thanks, Davidlohr