Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1022824imm; Wed, 6 Jun 2018 09:16:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKISKMRKywNFG5J7XULfJZ0Dk+heCoNlD+ol1fEy33puimos+o4wZy4xcpxtXoMzV+WmanNB X-Received: by 2002:a17:902:848c:: with SMTP id c12-v6mr3803934plo.380.1528301819935; Wed, 06 Jun 2018 09:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528301819; cv=none; d=google.com; s=arc-20160816; b=0PUz4PECm4TBp1/D86NVUPqV7achuqWesmdriUxXQkoerijKdVGrojG2HN5yYRciXz TQ6QB7EJVMFWcpo72LXU0WMjIMnZV+KX5NWzPL8fCu4+j0xZamqBoUj5eUS7w9Fjd8XS 7SzlI/r95RRC+ZP3K5NRuEaSfKb9bAwtgu1PPD8EgFpqt+AyifLS4bVyJT4uYVP1h1fg PDjAjs/bOpx8P8yWiIiikCEfy7E9MbTuFxvjTGDUz6PnJlQU+hAa17kkCZkcZ48BRjCS oNpfGTN90FQCd/mx8Dft7I8vMIzXKvaFNkF9r4LyUaiY4GNZlP6lzLV43FdBZcOLqHwB 37CA== 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=Q62ep3MmK40IWcQD3JjU2eb6cEEep+4T2B9lohMLo5s=; b=xTAh21YAiNzBLtIPe9n5UMo/ZZMkIKEBiupTrG9513Xo50tupjB0QoOHznZMNZZ6zt vCGxCUB4HsdeRydLL65idGeilPjTFub5yVEUlYTeRO6bO5TC8TYtt0RYuoMRtsiFERKR p7GLIBMKEUGG9lNeVmLj/yEYaWaFZq6TJMoy6ixnpDpScspjplq4UQbrh+qups/ZtLiU i5bLl5VL2FZKBFVLnCavhdyQ5FUaQD9oC8xYrpI1gMHdQ2UATlTrY5y3lW7ZWEfZ0Nio 2kZ0jcRwpgBPciurfmEHXq1BXP8904fMeEUBv2MLiSh/NZb0KBiY2T2+v1yu0/2f09GT 55sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UQHMBaJY; 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 z3-v6si22107538pgn.365.2018.06.06.09.16.45; Wed, 06 Jun 2018 09:16:59 -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=UQHMBaJY; 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 S1753564AbeFFQPm (ORCPT + 99 others); Wed, 6 Jun 2018 12:15:42 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:37171 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932748AbeFFQP2 (ORCPT ); Wed, 6 Jun 2018 12:15:28 -0400 Received: by mail-pl0-f66.google.com with SMTP id 31-v6so4123065plc.4 for ; Wed, 06 Jun 2018 09:15:28 -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=Q62ep3MmK40IWcQD3JjU2eb6cEEep+4T2B9lohMLo5s=; b=UQHMBaJYgZTNf4J4JGdxxvBExmqdCnGiA1aXvXzPz2wOmcKFmO/VUmgvh32N8JCiNH sSvkJpYg6/pH9+6hAywlI8KGUIgbkbBjB4SN2tHek5J49ySjuhrDEvDhdwnANYUuIofY Jijxzhe10+rVxR0K2l0B91pRg36y+MfyhZad0= 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=Q62ep3MmK40IWcQD3JjU2eb6cEEep+4T2B9lohMLo5s=; b=RZBtZ7yU1Otm/nAhBSxOdKHcGLzdoFMAwTF/Uf0qoDoXgUoYWZc2rzkJczj6TT/xoh P7rV8sECSNHp80VYEpmhtj/DKjfrVl9ppl//qmnClTNgWBD51NDTbByZQDK4oxYMFRUx DbSari9kZS6yN03i45aBFaGy2JnWh+hXAvFnCT7ELPIljExtR/jkPAHBQUVtHo2JFcfA 7WzzKIRWaixgGrQDOGWAminl1KDR+sCacrV5r4+es2KXrahUzxdXJwfvps5PVvKM7wQQ j+Vl+rSgXNksK5f8H1/LvqTIdFGymSdCYhjYdKo/Su5BisACvOsbv9zPlh8HIeF4/IaM Erag== X-Gm-Message-State: APt69E2UMrPZO16OhudXZIVnys09WXZBleMtbXDifIg5+MQNAnjngGuw ufgFMJRlVpL/GWhzZPKE7jLPug== X-Received: by 2002:a17:902:b417:: with SMTP id x23-v6mr3930476plr.388.1528301727889; Wed, 06 Jun 2018 09:15:27 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m17-v6sm51121089pgd.52.2018.06.06.09.15.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 09:15:27 -0700 (PDT) Date: Wed, 6 Jun 2018 09:17:33 -0700 From: Bjorn Andersson To: Sricharan R Cc: Vinod , ohad@wizery.com, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, sibis@codeaurora.org Subject: Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver Message-ID: <20180606161733.GE510@tuxbook-pro> References: <1528177361-8883-1-git-send-email-sricharan@codeaurora.org> <20180605061919.GQ16230@vkoul-mobl> <3a4c102b-7228-153a-c588-b1bf00291fa8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a4c102b-7228-153a-c588-b1bf00291fa8@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: > Hi Vinod, > > On 6/5/2018 11:49 AM, Vinod wrote: > > On 05-06-18, 11:12, Sricharan R wrote: > > > >> +config QCOM_Q6V5_WCSS > >> + tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" > >> + depends on OF && ARCH_QCOM > >> + depends on QCOM_SMEM > >> + depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n) > >> + depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n > > > > Is there a reason why it depends on RPMSG_QCOM_GLINK_SMEM=n? What would > > happen if distro wants both this and RPMSG_QCOM_GLINK_SMEM > > It says that QCOM_Q6V5_WCSS either must have a compatible state (i.e. builtin vs builtin, module vs builtin, but not builtin vs module) or that it's disabled, in which case we will hit the stub functions in qcom_glink.h. I.e. this prevents QCOM_Q6V5_WCSS to be compiled builtin when RPMSG_QCOM_GLINK_SMEM is module, as this would give us both stubs and the module. > RPMSG_QCOM_GLINK_SMEM=n should be for the COMPILE_TEST. Probably that > means that it should be corrected here and for ADSP, Q6V5_PIL as well. > Bjorn, is that correct ?, should it be, below ? > There are platforms with SMD, those with GLINK-SMEM and those with both. For the two first we want it to be possible only compile the specific transport being used and the other being stubbed. As Sricharan's particular platform uses GLINK for communicating with the WCSS it's perfectly fine to run this particular driver with RPMSG_QCOM_SMD=n RPMSG_QCOM_GLINK_SMEM=y/m As such I would recommend that you drop COMPILE_TEST from above. Regards, Bjorn