Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp299623pxx; Thu, 29 Oct 2020 03:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIavicZGjDJRo0/mIygIWQb8tiE8G1o5lwiPm2zLgabyr9HLZ5rOf7ESq2E2uqUEF8doAC X-Received: by 2002:a17:906:7fda:: with SMTP id r26mr3174374ejs.20.1603965657226; Thu, 29 Oct 2020 03:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965657; cv=none; d=google.com; s=arc-20160816; b=ZXprcBSOP/Sx2zw0hpW1HknlAYgwO8PwhMC+c1D00TSN7ziYut9uFicmXesXmO5wYh M2OVT4xPm/UyaaFJuWzvVmBBrOpwhDe/PutBCG3wopvqJEki6qHRpObMaTCMBtQQRCr2 rYjwAe8s067ObLsKgSpAXIZNI4X6GsRHeZut2nA+iI05JJImiF7H3UMmVRYXKzBNxHRU Y5PT17KkQ5zEqGpe8neHmvJr+o+KTvQ2gIqUASb6DHRFH83tcbtVX1XPHJ1n9kO/fzIM eeRPBPEtbx/4bx1HK6E4G828XKKDrcS/b/ygiVP/4duULYH7PhFpWCMvm7AdYiV4pc7/ CiSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZhjeIVE20A01faSTkSkIK60VFjLSoytoTo0XKrz+6B4=; b=QN0sqWA5p3p0nCkPhag0ISP6lBWYZzbZ+oK8gpLjRbTimm+oDETDgjECpeM7++BtMx 1r9oxxUi6zExCNfZJLkr4iR8bDk++mvpJRPJ65IqvqXSsox99pnVHIzeXVInd7P0BMdO XXeqUkPyUSG6bOYax7jZkryqy0LSKKqjF9pz00Tzm1ZrdDfzCiAJ+Ud9qOgwEqhp/Mft pLOCnSPGM9J2SyJeP5sO98EoNnjZ9omLZdJNtW+4BhdaL+Gag8RGZ1kkkGj0dwdQ8Ic9 RK0XIXtl3Eh4mREhGjrhb5pnwjMVgOHNt82Lg66dM6KLNIe4DQQP/DvqdF5Cy5ErrCLG Alow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zu8Okdgv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b27si1484689ejd.487.2020.10.29.03.00.35; Thu, 29 Oct 2020 03:00:57 -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=@linaro.org header.s=google header.b=zu8Okdgv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389874AbgJ1W5z (ORCPT + 99 others); Wed, 28 Oct 2020 18:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389785AbgJ1W5d (ORCPT ); Wed, 28 Oct 2020 18:57:33 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62856C0613CF for ; Wed, 28 Oct 2020 15:57:33 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id x7so796081wrl.3 for ; Wed, 28 Oct 2020 15:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZhjeIVE20A01faSTkSkIK60VFjLSoytoTo0XKrz+6B4=; b=zu8OkdgvEeQB5FHxzaWvI2AP3L0lWAa9WeW+xXlDJ6+2pWLtNcXQ5wNIfCU4nVPyZv sEX7S/Ni9gTmlZamKn0bW05wkV15F01qn6zniIAn7u9/60jhKJEgvNUnO9U4kHhNY/Cn zbIVJOxbQkM1QvAYEs+hCssyigeioz7fnlnXpjOH6ZkLR+w5TfgG6MTITaep4Ty4/8g1 fY0KyBGgCtJe2nHb842duBifxaRzc/WF2lCINQ/181ahWtSpOlpKssnt8k5ySkQ5WlL+ 46QBaO7okEHX78Jlyrm0lIxH/CFNiDyGNJmFnbaN1iQmilA2lpQlZrSXHOP0LX9Rv9Yf 8gTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZhjeIVE20A01faSTkSkIK60VFjLSoytoTo0XKrz+6B4=; b=Sxf3+dYdctnekM8tO0rlI6UBVYpxfOIP+SHoRdhjsb2ymD0IBz7Qkyis4bHpYb6K7D y7MQNBWU95zChe25EsnZpfyM61ESwXTGGqODeTzhhcwWR5MmP5jYk/PMSt+m16fpeCS4 ZtwByRnVnts4ff8fkA2VQgXRz+KOk6iJn2nsxbLGn+0sXodulkwFhUaybnC5htWuzyPh j1hwleX7gGDcjotsQxLlgz/WQmNBXE3en5ocqFYXde6NTLzVaH6HO+Br+nKveZMhtX/l Kfw3vP3ogCBxbIxuEhNm0H0iFbcixPorTdvFHqyiSlQ3YZSvQExIz4DpDnpDJZeUMb2q GKZg== X-Gm-Message-State: AOAM533oTaT7AhXy65ZbcCg0kwLJWtj5TZ45orX9eQnjuhRdvC7cImdP VpsLO/1bTeLCKINTZivcbrSCJnyQH8whqGbQ4n/bzz9ptt80YZLO X-Received: by 2002:a2e:8986:: with SMTP id c6mr3020719lji.29.1603878212020; Wed, 28 Oct 2020 02:43:32 -0700 (PDT) MIME-Version: 1.0 References: <20201027111422.4008114-1-anders.roxell@linaro.org> <20201027211536.GB19979@codeaurora.org> In-Reply-To: <20201027211536.GB19979@codeaurora.org> From: Anders Roxell Date: Wed, 28 Oct 2020 10:43:21 +0100 Message-ID: Subject: Re: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH To: Lina Iyer Cc: agross@kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , mkshah@codeaurora.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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 > >