Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp68447pxx; Wed, 28 Oct 2020 18:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhGErsIg656hq9UWik6wxDI+kbehZks3pWyZ3sjdylTnUhM8juAeXQUPG01hWQ/TIgkiUL X-Received: by 2002:aa7:ce04:: with SMTP id d4mr1686201edv.18.1603934816106; Wed, 28 Oct 2020 18:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603934816; cv=none; d=google.com; s=arc-20160816; b=xHyiqfmF9CsZDeewkR4QOctCepoJIHmRAlmquMHzarY2zImrnh/vMn3nnR9K2DMu5Q 4IO/1w70oHp8+Q+1NAxX9P5LJOOgO24SvPE9uz7PgLrRoBmInAR3HG/0UZFGfC/o9rXo LFUgUeHq/lq1p4107mZGYM/o69HjmqxgAuwPPH8NI3xWKYW4RDMQ7p+HdDAFrl9KNoQY +QWRVBt6Ifu5IP7VHW+BuPjteg2E48VJNgEEQq7TMo//lhZYLDBUJMNSj3oxZmuRubO1 p3d2kz7qVR+IoFjvuI9wEYJmH5Yd3imheG0TIXgwKpsWEBy96Up9y7JOzPy2ywfyuj41 1C8A== 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:dmarc-filter:sender :dkim-signature; bh=Uun2BBWyN9O6gGUON67BLRc5oqgnJ4TIcEJ9tL9SWV0=; b=WY3z47AaaGiwB0vmySVNxh+pHv933lXSKPGq0q7XOwKsUFYjSb7aSefewMloss76OL yTf1WUvF67fNudA6PArrh/4aCnWtwC3zxHcOD5UMIp9w+3iT/C3knyPXVhLqH+xxPpO3 xUfpmmJgnpyH6KCrXgr7rJVUEdvH70431qEwWJyTQRRl5ZLkYJy+8I4yF8Yr+mzUTSft E/GSP8WaRRdYYVlOKmxX0PXWopCrwOnUydwWWaZqzZfnmz89tRvglsm3IfYn102SeJBs aXIWTFlL+4W8JjNKIQPpubgjmGsqML5aj1TtMbUCNMn3vKrf2BwObIACYdJZgKLLI/rW tNxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=TT6mUTgT; 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 w15si954263edf.56.2020.10.28.18.26.34; Wed, 28 Oct 2020 18:26:56 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=TT6mUTgT; 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 S2387921AbgJ1Wbe (ORCPT + 99 others); Wed, 28 Oct 2020 18:31:34 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:25284 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387900AbgJ1Wb3 (ORCPT ); Wed, 28 Oct 2020 18:31:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1603924288; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=Uun2BBWyN9O6gGUON67BLRc5oqgnJ4TIcEJ9tL9SWV0=; b=TT6mUTgTmMM58vVGkFiXC8TfoIySxWLa1qjHUFKnicmB7073ddl7Tq2ckdazVJXIMz5lPYSw H8eW6iX9pCzuzfFPV4Q10lyyJI8faeU9EDehsHOkt3Kvw8Bnl7V1YCpKolG2hz69YxPFbZ9B zxiCEkyOunw2pTNYrccKwlLhVBo= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5f9981ab4e4fe7071da1fdaf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 28 Oct 2020 14:35:23 GMT Sender: ilina=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D8CCEC433F0; Wed, 28 Oct 2020 14:35:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina) by smtp.codeaurora.org (Postfix) with ESMTPSA id 26B23C433CB; Wed, 28 Oct 2020 14:35:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 26B23C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=ilina@codeaurora.org Date: Wed, 28 Oct 2020 08:35:21 -0600 From: Lina Iyer To: Anders Roxell Cc: agross@kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , mkshah@codeaurora.org Subject: Re: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH Message-ID: <20201028143521.GD19979@codeaurora.org> References: <20201027111422.4008114-1-anders.roxell@linaro.org> <20201027211536.GB19979@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 28 2020 at 03:43 -0600, Anders Roxell wrote: >On Tue, 27 Oct 2020 at 22:15, Lina Iyer wrote: >> >> Hi Anders, >> >> On Tue, Oct 27 2020 at 05:14 -0600, Anders Roxell wrote: >> >When building allmodconfig leading to the following link error with >> >CONFIG_QCOM_RPMH=y and CONFIG_QCOM_COMMAND_DB=m: >> > >> >aarch64-linux-gnu-ld: drivers/clk/qcom/clk-rpmh.o: in function `clk_rpmh_probe': >> > drivers/clk/qcom/clk-rpmh.c:474: undefined reference to `cmd_db_read_addr' >> > drivers/clk/qcom/clk-rpmh.c:474:(.text+0x254): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `cmd_db_read_addr' >> > >> >Fix this by adding a Kconfig depenency and forcing QCOM_RPMH to be a >> >module when QCOM_COMMAND_DB is a module. Also removing the dependency on >> >'ARCH_QCOM || COMPILE_TEST' since that is already a dependency for >> >QCOM_COMMAND_DB. >> > >> >Fixes: 778279f4f5e4 ("soc: qcom: cmd-db: allow loading as a module") >> >Signed-off-by: Anders Roxell >> >--- >> > drivers/soc/qcom/Kconfig | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> >diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig >> >index 9b4ae9c16ba7..3bdd1604f78f 100644 >> >--- a/drivers/soc/qcom/Kconfig >> >+++ b/drivers/soc/qcom/Kconfig >> >@@ -109,7 +109,7 @@ config QCOM_RMTFS_MEM >> > >> > config QCOM_RPMH >> > tristate "Qualcomm RPM-Hardened (RPMH) Communication" >> >- depends on ARCH_QCOM || COMPILE_TEST >> >+ depends on QCOM_COMMAND_DB >> A solution was posted in the mailing list alredy - >> https://lore.kernel.org/linux-arm-msm/20201008040907.7036-1-ilina@codeaurora.org/ > >I missed that one, thanks. > >> >> If you get a chance, please give that a shot to see if that works for >> you. > >That will work too, but the "depends on ARCH_QCOM || COMPILE_TEST" >isn't needed since that is already the dependency for QCOM_COMMAND_DB. >So that should be met here too or am I missing something? > Sure, if you want to post an update to the patch, that would be fine too. Bjorn: Have you picked up this patch yet? If he hasn't please feel free to update the patch. Or, I can do that as well. --Lina >Cheers, >Anders > >> >> Thanks, >> Lina >> >> > help >> > Support for communication with the hardened-RPM blocks in >> > Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an >> >-- >> >2.28.0 >> >