Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp826778imm; Fri, 31 Aug 2018 14:36:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMLVJlaBP5FLQzgJswxhGdrCjeQ5bdBBk1V7VO8BiZG9tDXcvAwOf18y2lIinFNE2JjCOb X-Received: by 2002:a17:902:8215:: with SMTP id x21-v6mr16955107pln.175.1535751368775; Fri, 31 Aug 2018 14:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535751368; cv=none; d=google.com; s=arc-20160816; b=JsrK4KXJH9Bc2wLZADh8YFE0Se1D8ND9Bxb+iJP3Qbz4E9c1shWPf0WFWzwaF6gkL3 cgrZ7czk82nHTEUtWThcho1IDW+LpJq1lQU7GCIyOdey7U4oyA6DNSofsMUI3oLvHHIs TuV9dkpxI5zYbfdU9Ch3JU8hOWAiKxP43K+qhqXA7Cm8MbidPkQg+J+DqCBB14dZd+/C mYs0TcPv/5Ef1RLZryevcOmis4W8uu7uR8CQ0B+a4rNKU7+ChgL82wLL+kYw8hRGvL98 OdXt5S3mCH7fTRXlEMmshBLPOlvKRJiB3+bCCcrbCfCMm6k3rwt5+7+V6OOt5hEJx9uY xFuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=I4qkQiOWVOF2EIQLku8botXY/OPqzaPJWzOGpzzBVS4=; b=fxBOZqm7abUqIi2Fx++/jxjbyFY956nRv3IFx/OuUup9HhVV/cFOQbga8YS/F70JlL NjgvriNlVfaaKgCwtjhzImsOgZc4+0RWnArFzXH0WJFlk14KCSxxhKg6qzBEGdspGkzD qTKDcY4FXgZIP5/7wZpl4jVQJVI/rkFf/4GHjKkZ2Bsgy6I+GDYSENvNHRcV+EJOmwbu /CiNOcPhZYJCGI8v1dNQ8YW+dmyFmTDP55IlLLsp2crTdWzUXCvnUahmrj9PJwFcAAj8 QHblvZQ+tEB5+X2pEp7W9kTa/Pr/kVwJ7REsUMJMrSDMqEcoDEK5+aIdpmb77Q+nUFkz sqCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGnAettT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d65-v6si10731747pgc.524.2018.08.31.14.35.53; Fri, 31 Aug 2018 14:36:08 -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=@gmail.com header.s=20161025 header.b=qGnAettT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727591AbeIABnr (ORCPT + 99 others); Fri, 31 Aug 2018 21:43:47 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33506 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727248AbeIABnq (ORCPT ); Fri, 31 Aug 2018 21:43:46 -0400 Received: by mail-pl1-f195.google.com with SMTP id b92-v6so983968plb.0; Fri, 31 Aug 2018 14:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=I4qkQiOWVOF2EIQLku8botXY/OPqzaPJWzOGpzzBVS4=; b=qGnAettTpmBRabeBRj04UYOmqsMM44v/Hpma542JWcF+fE8Medpn0mMK5JExIyqvKv FKGclC4qt8Cz4WtxTW4ZUvzcGuFZpVD9c//F09Mbk9M4EeTvGFoGUeFfWQxMsjQ0S1LT Bj3LPFFrBFF5pYwkueiD1RzMBohb8Hu8e6J2lBQflYIGZ+GAmeZ9Vdl5YqJtwN/8iw6W IRYH4szEmvwXESUm4pLQpQpkCg5IqlzsUgCY9NozN40o/JeoOETXuKIYWa6CBGxmM2cS ATs5l703FAPSwZOwPnOf3p+CkLY9tdSFc1FeArw4oPgXp4J+5Z5LwBjVkp3RNwZppphN +OmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=I4qkQiOWVOF2EIQLku8botXY/OPqzaPJWzOGpzzBVS4=; b=Q2gmT+ShXxqvu6+TH/nyaVTCqnekspMV3B2ZKfMk/+s/Ud8WRJvocommfJeZ+APqFk k/hociFyweVrkkreiDKT7TMPY+PNejhsGwZI9LF04o9ijnwbPuRvmqIlBEhdSoB/cHzB HA0ci5IJmLHr8/2PqKesJMEnrPcWv6ThV8FTE4TedAO4QaHBntildCF1Rjsqi+/Hqp1W Vb0XDHPMTqDigcRjKNsoGSM0v0iMhgoULprT4fmFVYVBHeV3mqd949sfbPR6JP1L0MQl ZizdaD3CbrBxlSkVQSx4SerRH3El370Z30C1cNtaSdV6LAI4k7KLSuYYQmIx+siIpRCY 0rWw== X-Gm-Message-State: APzg51C8zPyX64kKpCsVoulJ4G9YHqubQMAXsFBRWtOQ+UsPZx7sf9pT e8nOgmbQbOsmcktfbMACDf4= X-Received: by 2002:a17:902:7686:: with SMTP id m6-v6mr17329688pll.186.1535751264515; Fri, 31 Aug 2018 14:34:24 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id t86-v6sm15649808pfe.109.2018.08.31.14.34.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 14:34:24 -0700 (PDT) Subject: Re: [PATCH v3] rpmsg: qcom_smd: Access APCS through mailbox framework To: Bjorn Andersson Cc: Rob Herring , Mark Rutland , Ohad Ben-Cohen , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Nicolas Dechesne References: <20180420011757.22389-1-bjorn.andersson@linaro.org> <20180831040701.GR2523@minitux> <20180831205519.GS2523@minitux> From: Frank Rowand Message-ID: Date: Fri, 31 Aug 2018 14:34:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180831205519.GS2523@minitux> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/31/18 13:55, Bjorn Andersson wrote: > On Fri 31 Aug 13:41 PDT 2018, Frank Rowand wrote: > >> On 08/30/18 21:07, Bjorn Andersson wrote: >>> On Thu 30 Aug 20:57 PDT 2018, Frank Rowand wrote: >>> >>>> Hi Bjorn, >>>> >>>> >>>> On 04/19/18 18:17, Bjorn Andersson wrote: >>>>> Attempt to acquire the APCS IPC through the mailbox framework and fall >>>>> back to the old syscon based approach, to allow us to move away from >>>>> using the syscon. >>>>> >>>>> Reviewed-by: Arun Kumar Neelakantam >>>>> Signed-off-by: Bjorn Andersson >>>>> --- >>>>> >>>>> Changes since v2: >>>>> - Added comment about mbox_send_message() return value. >>>>> >>>>> .../devicetree/bindings/soc/qcom/qcom,smd.txt | 8 ++- >>>>> drivers/rpmsg/Kconfig | 1 + >>>>> drivers/rpmsg/qcom_smd.c | 67 ++++++++++++++++------ >>>>> 3 files changed, 56 insertions(+), 20 deletions(-) >>>> >>>> This patch in the mainline Linux kernel as commit ab460a2e72dabecfdabd45eb7e3ee2d73fc876d4 >>>> causes a problem with the APQ8074 Dragonboard. The mmc device is not set up >>>> with the patch applied, thus I do not have the block device my root file system >>>> is located on. >>>> >>>> Testing on v4.18, if I revert this commit the mmc device is available. >>>> >>>> I'll reply to this email with the console messages for 4.18 and for 4.18 with >>>> this commit reverted. >>>> >>> >>> The mmc device would fail to come up if the regulators didn't come up, >>> which would be the result of smd not working. But it should fallback to >>> the old mechanism if no mailbox is specified. >>> >>> Can you double check that CONFIG_RPMSG_QCOM_SMD is still set in your >>> .config after applying and building with this commit included? And if >>> not, try to enable CONFIG_MAILBOX. >> >> Thank you! >> >> That is indeed the cause. ab460a2e72da added a "depends on MAILBOX" to >> CONFIG_RPMSG_QCOM_SMD, so CONFIG_RPMSG_QCOM_SMD becomes unset since >> CONFIG_MAILBOX is not enabled in qcom_defconfig and is not otherwise >> selected for the dragonboard. >> > > Thanks for verifying this! > >> Is there a config variable that should be selecting MAILBOX for a class >> of systems that would include the APQ8074 Dragonboard? For my testing >> I added the "select MAILBOX" to CONFIG_ARCH_MSM8974, but I do not know >> what systems that includes, and whether it is appropriate to do the >> select for all of them. >> > > We typically don't use the CONFIG_ARCH_* to enable user selectable > config options, even if they serve a critical role in the system. > > So minimum change would be to add CONFIG_MAILBOX to the qcom_defconfig > (and multi_v7_defconfig I presume). The fuller solution would be to add > qcom,msm8974-apcs-kpss-global (.data is 8) to the qcom-apcs-ipc-mailbox > list of compatibles and replace the syscon currently used, and then > enable these in the defconfigs. I would be happy with either solution. Can I twist your arm to create the patch? > > Regards, > Bjorn >