Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp797410rwd; Thu, 1 Jun 2023 06:45:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7VhXWRoZVqyLkK4efle7uP+VdX7ZdMTgmf7RxEyzeDNKomZenH/ohXnh/hVpnUnNZ5Xz7A X-Received: by 2002:a17:90a:f60a:b0:255:3aa8:9d45 with SMTP id bw10-20020a17090af60a00b002553aa89d45mr8641432pjb.39.1685627142543; Thu, 01 Jun 2023 06:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685627142; cv=none; d=google.com; s=arc-20160816; b=hpVh51mB+6IFqWGfTJD+Mr4b/ZVAV5hCQXVuTK8xRHk/0klHZ2aXzQ5bCLc+aKk0ED bVodvf8AiO85jduBE+o2DAVGDbv55Lk4zBJudqU9w4SuNe4OFSikXgVmfPaRN95f8XDt 4yHn6e8W0YZzRIH6/jmWrv30za+GegKp8J54RxwV/QvGxz0lxZHh5anAJhcwgc84SkmY Pz3ybQfrVQJZV7JSPGx1/L0n9H2Af5npMcpxwoM9Jlulx7heWbAu5zKRboP/AEJ4LmKI 5EekUgE+RiE6Vy7RZgSPd812P6hmM9Z+s8tFB92bSFYOS6ccCCmWfPeXhIX8o2rSGXZR wr2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=HDsvjV+UtEnCTUJxyi6TLv93T2YjeAYWJLG5QDm/2+k=; b=Tni5LE7rn7Vp0dzwkp79dpgKMCj+qwui+tDf99kv3lmY1kDKTodtiXub62DW668hPM qtD2SApORHP8gPLUFTyeJaVUtOp5GFHQnFnpp7m9VJoMbrYJnTpnCDAOcV9JIO3Z/V6W msuDdxsJDcWNAtzRqyvxKH0zPSDMwXQOHsLrPx257RI6F/rZZT7ECsFJh3nrkcgwEujr 3LIMNqH3wPNf5aYfZcVTTJl8gMDYhfSBMUoLdm32B9HLWkCPyz7IC418nukSsQfkcYpv wGVsRgROufGbSSdhtYs4s2OscB4EHvheLvXoQcQHloSYfspd9qvHv6F2Kw0BoIO6fd8v o0dw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v24-20020a63b958000000b0053f18935d81si1021739pgo.235.2023.06.01.06.44.59; Thu, 01 Jun 2023 06:45:42 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233266AbjFANL0 (ORCPT + 99 others); Thu, 1 Jun 2023 09:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233356AbjFANLV (ORCPT ); Thu, 1 Jun 2023 09:11:21 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED552139; Thu, 1 Jun 2023 06:11:18 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QX60L4ykJz687PR; Thu, 1 Jun 2023 21:09:06 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 1 Jun 2023 14:11:16 +0100 Date: Thu, 1 Jun 2023 14:11:15 +0100 From: Jonathan Cameron To: Terry Bowman CC: , , , , , , , , , Subject: Re: [PATCH v4 13/23] cxl/hdm: Use stored Component Register mappings to map HDM decoder capability Message-ID: <20230601141115.00006b6a@Huawei.com> In-Reply-To: <20230523232214.55282-14-terry.bowman@amd.com> References: <20230523232214.55282-1-terry.bowman@amd.com> <20230523232214.55282-14-terry.bowman@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100002.china.huawei.com (7.191.160.241) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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, 23 May 2023 18:22:04 -0500 Terry Bowman wrote: > From: Robert Richter > > Now, that the Component Register mappings are stored, use them to > enable and map the HDM decoder capabilities. The Component Registers > do not need to be probed again for this, remove probing code. > > The HDM capability applies to Endpoints, USPs and VH Host Bridges. The > Endpoint's component register mappings are located in the cxlds and > else in the port's structure. Provide a helper function > cxl_port_get_comp_map() to locate the mappings depending on the > component's type. > > Signed-off-by: Robert Richter > Signed-off-by: Terry Bowman Other than the static you already fixed this looks good to me. Reviewed-by: Jonathan Cameron