Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30304525rwd; Thu, 6 Jul 2023 04:07:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQEJjhEdGm7dv1D2vyZ61UvJutW2fE/BGB/x7FIMW2qDmbUaJy/BeojFovBk99Vz0Tb0S7 X-Received: by 2002:a05:6a20:7489:b0:126:78b0:993a with SMTP id p9-20020a056a20748900b0012678b0993amr1212864pzd.29.1688641632330; Thu, 06 Jul 2023 04:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688641632; cv=none; d=google.com; s=arc-20160816; b=fe5xguvGISnALO9Ct15rHBUcQh+5qonsEU8E8DhnGDS1MFTeEuuJNrCkBEpYuWj6GQ x9S+onOljWovImLiuNFyqf+quUI0YvlTJ8egN2CiDc3hJRDWcmafoYi6UUc4vvug1Q03 8Eo7PeJyA5NAn8CFyZjKTcnDUxLi2Q6DZ4sHkCDVY75oXPX/onvDR8j8PuXSpoPJSuLz Xs5yT6DD/vMWy9J5tNNrcHTkvlCAz44gNm+EB+cJIbLSTpemDX1hftvZr7GSazbn6fVz BMyFIa/cCc+1JYE8Q9Qy6Ku5FYZMMEGbp+YVRbi7ZZdHLWvkEmimmQn5bv441In4bBjL Q6TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=DeGdIgcj3J9lzauB9G3y/9apbTcIg/Jfoih/fRf3T0o=; fh=qP61tKh0lbEtjbKql0saOUVmPJdHnFtjjnFpE+TPnxE=; b=Cc1xFRkBSHX97eHypmi1Brqxvq6kO2DhcKibwA/YSwjWmflRLgmvUpNSB5Zdt7Od8u N9xm9nN+nK9Udx+AAIGN4eos5xfWFbJORuVHhJT2r8H/JW1h16p5wqedMVvB1mA9DJXQ oZUzrGngRqyT/Q7p/RDgSBfEISxhUyw2RdDzbaVhRc0fJrehIKXH8fuWr4WlBmPDwjtO tm3AwwAeuJoMu9Pg+IjO3bX4BbThMQtjRyOtWcFNhhY0de3HgK0svfHFWc2N04nD5l6O PGhz2csnfvb7xTaUNzBCWZCpFAR4/kMKfB1PExc9Rxe3hXIPo4XNepKXm0E+S/afiCF9 HEdA== 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=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170903124f00b001b5589848absi1161747plh.234.2023.07.06.04.06.59; Thu, 06 Jul 2023 04:07:12 -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=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbjGFKvH (ORCPT + 99 others); Thu, 6 Jul 2023 06:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232016AbjGFKuu (ORCPT ); Thu, 6 Jul 2023 06:50:50 -0400 Received: from esa12.hc1455-7.c3s2.iphmx.com (esa12.hc1455-7.c3s2.iphmx.com [139.138.37.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5231F1FED; Thu, 6 Jul 2023 03:50:47 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10762"; a="103028920" X-IronPort-AV: E=Sophos;i="6.01,185,1684767600"; d="scan'208";a="103028920" Received: from unknown (HELO oym-r1.gw.nic.fujitsu.com) ([210.162.30.89]) by esa12.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 19:50:44 +0900 Received: from oym-m3.gw.nic.fujitsu.com (oym-nat-oym-m3.gw.nic.fujitsu.com [192.168.87.60]) by oym-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id DC349D29E1; Thu, 6 Jul 2023 19:50:42 +0900 (JST) Received: from kws-ab4.gw.nic.fujitsu.com (kws-ab4.gw.nic.fujitsu.com [192.51.206.22]) by oym-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id 1A1D0D9482; Thu, 6 Jul 2023 19:50:42 +0900 (JST) Received: from [10.167.215.54] (unknown [10.167.215.54]) by kws-ab4.gw.nic.fujitsu.com (Postfix) with ESMTP id BEBCC70BD9; Thu, 6 Jul 2023 19:50:39 +0900 (JST) Message-ID: <7816e721-d0be-a146-4ab3-981a0619311e@fujitsu.com> Date: Thu, 6 Jul 2023 18:50:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] cxl: fix CONFIG_FW_LOADER dependency To: Arnd Bergmann , Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Jonathan Cameron , Dave Jiang Cc: Arnd Bergmann , Randy Dunlap , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230703112928.332321-1-arnd@kernel.org> From: Xiao Yang In-Reply-To: <20230703112928.332321-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1417-9.0.0.1002-27734.005 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-27734.005 X-TMASE-Result: 10-0.799300-10.000000 X-TMASE-MatchedRID: hwtUKlde9zGPvrMjLFD6eK5i3jK3KDOoC/ExpXrHizwzOk0/RiyBuak4 lLAFOnmC/Pc8drndASe+tYGi9QLNmq5eIDD1ppIU0QlBRwJqtSMbbhhV65kaY9uEAkFobdWZo8W MkQWv6iUD0yuKrQIMCCAtDqHg/4Qmv79FIUygvZzZs3HUcS/scCq2rl3dzGQ1+hga1eR27pK58k oA2iD482k6ZMp6CQdf0mnT/JDrtEpKDrTZjLnbCY2I6ly/IS1oILTEvFaCkR4CqAzD4rdFIwZjb HmFoHt/5KURsc/QZz6F2JJaIjBHcl5/kgk8Ja9wMsqIZ2nIuPT3Bu44zcQFvQ== X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,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 2023/7/3 19:29, Arnd Bergmann wrote: > From: Arnd Bergmann > > When FW_LOADER is disabled, cxl fails to link: > > arm-linux-gnueabi-ld: drivers/cxl/core/memdev.o: in function `cxl_memdev_setup_fw_upload': > memdev.c:(.text+0x90e): undefined reference to `firmware_upload_register' > memdev.c:(.text+0x93c): undefined reference to `firmware_upload_unregister' > > In order to use the firmware_upload_register() function, both FW_LOADER > and FW_UPLOAD have to be enabled, which is a bit confusing. In addition, > the dependency is on the wrong symbol, as the caller is part of the > cxl_core.ko module, not the cxl_mem.ko module. > > Fixes: 9521875bbe005 ("cxl: add a firmware update mechanism using the sysfs firmware loader") > Signed-off-by: Arnd Bergmann Hi Arnd, It makes sense. Reviewed-by: Xiao Yang Best Regards, Xiao Yang