Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5288085imm; Tue, 12 Jun 2018 05:44:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCWdzYjhN8ce8dNfrFW818eM9OsH6RNL8Dt7CS646u4Twzf6HAdLxzliBMSsYeFZ2KtVWc X-Received: by 2002:a62:c00e:: with SMTP id x14-v6mr231359pff.67.1528807491336; Tue, 12 Jun 2018 05:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528807491; cv=none; d=google.com; s=arc-20160816; b=dkpHdqLNgC9GKi13Pc25doOkJ7NIcjRFPAxRfeSzPZWD/+5pyE+SxZI9EXoFe01rYx h6HTZXNssbh6DaLkYuNHeUpjFMXmj3Q6b/t8/vpXxzqwO7ihRVpxbIDapzpxp4Zt8F2b dotodqAexEYFEjYcbVLymEP+RzbC9+FvQkUAO/o/yNt8+HMpHasDqy+AL8Cjyz8mvHZC n/2fRr0mhJqThpRyaNQORWEWFFbVdm1f6/edUtuDx4Ah6ctX/Wh9IRjxL2BYfwDRrGVk n6CclZFI7TFAD8FeGZ8SWA8dhJq6c223LElM5REjnTNVWEzCmouiee2xPSvhw6j0vnwm cLuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=loMCp3Ado1Vrtw7xRucYfMKgzCliS4iLPIjSCwYpQ5U=; b=XjP6YsxDuAj4zdIilM7h1rVM0VVtFrd1ujPXnA1SSgDubSbzYgflz+7VLV7A/+RVJb CImINjpPgDwlyuZNoXCBSNjShaaryCLJEfMNDqPEmNeAWLKOSriGMjegWy5WpzDZezoF bGmnztw/ijUt0QH11a19cmt4OgUFErYSftrzEultKwopzrEbW+wYE5Tl9CGtQpXA+dOj jtXIpuLhDyJP5wkiSjLV4uEV9f7Tju9jfvt3npV2MorgrfdYu33GMC+t98j0/sSjphZX utqc1tXUti6uibEoXdHvv1/N25dT56XtB25tTh9cK71zd9LfOsSPS+D/DMGC2Sq6ooA9 zBeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MIwd5SOC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s7-v6si55088pfh.303.2018.06.12.05.44.36; Tue, 12 Jun 2018 05:44:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MIwd5SOC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S933574AbeFLMoJ (ORCPT + 99 others); Tue, 12 Jun 2018 08:44:09 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35108 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754290AbeFLMoH (ORCPT ); Tue, 12 Jun 2018 08:44:07 -0400 Received: by mail-lf0-f66.google.com with SMTP id i15-v6so25494063lfc.2 for ; Tue, 12 Jun 2018 05:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=loMCp3Ado1Vrtw7xRucYfMKgzCliS4iLPIjSCwYpQ5U=; b=MIwd5SOCn+Vx8BXdwu5wfISidI4//lvOM3hPnacnnHfEx2MZM2zommE9aqBAjWRh1N BiZc7JJcQXx1neDkiJc44LFmeAnL9GXlv0lm4REoANlLBtKOmikbJiSPXyB1W6ei8CEt Y8um4xFykKutMCEZ6gmxRXDJK6KTYhLk+xSXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=loMCp3Ado1Vrtw7xRucYfMKgzCliS4iLPIjSCwYpQ5U=; b=TcbNvMENmo1LXWg+syNgpV7pfgjzPTaHmofIUKJVQfmm8kFpDA64K5OeQrGuRtixsn y2sSoVSAEqxpN/e8QIbt809Jz7MShMvzo5g3tMNsgQGhi1Ssw3BnzZmeFKXmVa/JmzoL 5eqJq77KGOYrmXUvyiGlCWJsIicDAlFXeSWl/K7fvSopYSS9245gh+pSWjU0geWqGama st/C3veIc2Rplxtm4sxVGH87L7G9sKfnj4Jy+ipFgbQMe5jHkxFvWqyhQH0u5Igdhfrf VoZStyuRRHLeGQ6IIT+eWLb4p7Ul73GeGSiizOLDTUQNH0yLRlecfYgIdoMlbMWJeebl 5J0Q== X-Gm-Message-State: APt69E1h4shPs6XD5A/NG9Nrz9MSQv5nd87ZsI9PfyoSskE80NYJVKrT AxSxk/oz9im4+UUhe31QC/t9Ig== X-Received: by 2002:a19:4e86:: with SMTP id u6-v6mr130062lfk.105.1528807445586; Tue, 12 Jun 2018 05:44:05 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id n84-v6sm18449lfi.19.2018.06.12.05.44.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jun 2018 05:44:05 -0700 (PDT) Date: Tue, 12 Jun 2018 14:44:03 +0200 From: Niklas Cassel To: Govind Singh , bjorn.andersson@linaro.org Cc: kvalo@codeaurora.org, davem@davemloft.net, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: FW: [PATCH 2/2] ath10k: allow ATH10K_SNOC with COMPILE_TEST Message-ID: <20180612124403.GA26986@centauri.lan> References: <20180612113907.15043-1-niklas.cassel@linaro.org> <20180612113907.15043-2-niklas.cassel@linaro.org> <7058492257914633b55fcd423e4c0b59@aphydexm01b.ap.qualcomm.com> <47cf8ec1b11d727ea928a307a431d4a2@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47cf8ec1b11d727ea928a307a431d4a2@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 06:02:48PM +0530, Govind Singh wrote: > On 2018-06-12 17:45, Govind Singh wrote: > > -----Original Message----- > > From: ath10k On Behalf Of Niklas > > Cassel > > Sent: Tuesday, June 12, 2018 5:09 PM > > To: Kalle Valo ; David S. Miller > > > > Cc: Niklas Cassel ; netdev@vger.kernel.org; > > linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; > > ath10k@lists.infradead.org > > Subject: [PATCH 2/2] ath10k: allow ATH10K_SNOC with COMPILE_TEST > > > > ATH10K_SNOC builds just fine with COMPILE_TEST, so make that possible. > > > > Signed-off-by: Niklas Cassel > > --- > > drivers/net/wireless/ath/ath10k/Kconfig | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/net/wireless/ath/ath10k/Kconfig > > b/drivers/net/wireless/ath/ath10k/Kconfig > > index 54ff5930126c..6572a43590a8 100644 > > --- a/drivers/net/wireless/ath/ath10k/Kconfig > > +++ b/drivers/net/wireless/ath/ath10k/Kconfig > > @@ -42,7 +42,8 @@ config ATH10K_USB > > > > config ATH10K_SNOC > > tristate "Qualcomm ath10k SNOC support (EXPERIMENTAL)" > > - depends on ATH10K && ARCH_QCOM > > + depends on ATH10K > > + depends on ARCH_QCOM || COMPILE_TEST > > ---help--- > > This module adds support for integrated WCN3990 chip connected > > to system NOC(SNOC). Currently work in progress and will not > > Thanks Niklas for enabling COMPILE_TEST. With QMI set of > changes(https://patchwork.kernel.org/patch/10448183/), we need to enable > COMPILE_TEST for > QCOM_SCM/QMI_HELPERS which seems broken today. Are you planning to fix the > same. Argh.. qcom_scm seems fine, it is just missing a single definition in the #else clause of include/linux/qcom_scm.h. +++ b/include/linux/qcom_scm.h @@ -89,6 +89,10 @@ static inline int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr, static inline int qcom_scm_pas_auth_and_reset(u32 peripheral) { return -ENODEV; } static inline int qcom_scm_pas_shutdown(u32 peripheral) { return -ENODEV; } +static inline int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz, + unsigned int *src, + struct qcom_scm_vmperm *newvm, + int dest_cnt) { return -ENODEV; } static inline void qcom_scm_cpu_power_down(u32 flags) {} static inline u32 qcom_scm_get_version(void) { return 0; } include/linux/soc/qcom/qmi.h on the other hand doesn't have any dummy defintions at all. I think that it makes sense to be able to compile test the QMI helpers also on other archs.. Bjorn, any opinion? > > config QCOM_SCM > bool > - depends on ARM || ARM64 > + depends on ARM || ARM64 || COMPILE_TEST > select RESET_CONTROLLER > > > config QCOM_SCM_64 > def_bool y > - depends on QCOM_SCM && ARM64 > + depends on QCOM_SCM && ARM64 || COMPILE_TEST > > config QCOM_QMI_HELPERS > tristate > - depends on ARCH_QCOM && NET > + depends on (ARCH_QCOM || COMPILE_TEST) && NET > > -obj-$(CONFIG_ARCH_QCOM) += qcom/ > +obj-y += qcom/ > > __qcom_scm_init/qcom_scm_call wrapper to support COMPILE_TEST. > > > > BR, > Govind