Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp45760imm; Mon, 21 May 2018 01:54:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmzztmHyqNOdH3TUtmUEbc1mgXy6lS78awOzp7E/yBBQMBKF3wLXvFXn8tbri48qv3qUhj X-Received: by 2002:a62:990f:: with SMTP id d15-v6mr19168513pfe.115.1526892895971; Mon, 21 May 2018 01:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526892895; cv=none; d=google.com; s=arc-20160816; b=c84SGZCG/JUYFWhRDznFi8uG9vM0w9JNda3dWQmCTACy6ZXYVGwNPmGwzast4QQDNy ON5axUMcFMEIkB8/tEAEdNOd95/hoQMJr+cwzqpEVXGF+7ToL5Z1zbZ6Am2FNELPeiMQ WZZmDCT5lZc3HqAGfj6bOzke8Wm3W9h8Ts1XP6rWzDWcx3eNtEzwM1uRHoIk0doCtC0B YedhWS7M8JG/CKhwyFXTKW5zt2GiHfBJoSc9FQeFSYOYSSC6XW74aI39pklyHg879rfr 2bIAYtw42jMJUkXwvyLCO74HFYC0rr+Ms+adMEHZ6prmMn2d++Uf8LaZaASAHA/Gl1nl zcXA== 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=nn9ybcNLB2n0l8p8fvHoc/7nqnNpXTq/WeUMRCn5m00=; b=HPMgskEkAl0UaVMgmKLbVNQ0U0W8PzJmQt76WleHsw6YE9u7QGtSgCnuF41QHtWrFb oIVYybPeMeY9aXNeZa9jxocneth3foKI9gvlf5GwAt+5biFmVrK9khCKK/BcBVHeNvjY KfEyVRmTN/JJWO824wKSSexyr9JzeDbclTbJYZhi09mWORVTiSUNUiWdXcTiVbsB8VoO fWnBMtkPZ6xQt1pzVV27P1aB7mkjj8qjIz4tlDioEu0bXwCt5jiKktr+EuIdV+rBAcOk Pb8bF/3muY1GIXh+APvKfw2cQbkG8/ZQ43mnd5r28EI+sPzWFchb9tib05q0mF/AZZZJ TszA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eU4NGZ9L; 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 w5-v6si13307364plz.356.2018.05.21.01.54.41; Mon, 21 May 2018 01:54:55 -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=eU4NGZ9L; 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 S1752627AbeEUIyR (ORCPT + 99 others); Mon, 21 May 2018 04:54:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34670 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbeEUIyM (ORCPT ); Mon, 21 May 2018 04:54:12 -0400 Received: by mail-wm0-f67.google.com with SMTP id a137-v6so11205570wme.1 for ; Mon, 21 May 2018 01:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nn9ybcNLB2n0l8p8fvHoc/7nqnNpXTq/WeUMRCn5m00=; b=eU4NGZ9L9dnzhzO4VFV5EFqJE8PMRwuRO2DMFC5t5X38eJTZlEyzuiTDYxeHpArSNU YBroAlEbS6szOc5kqbZ9fowN5gzVAD+2IUyvS3l/WJ6O8N93EwleXoQZuvNI3sT3G14g a9F6b3TnQzQdyQ8rZ5mMon8boz7fw9Y/CJlZc= 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=nn9ybcNLB2n0l8p8fvHoc/7nqnNpXTq/WeUMRCn5m00=; b=LCiy56QowiXyBddt/Hqcn46wG4Z5sHIIiO0A++LOGoNIlN9y9tX3Lieok6d7CbNk7w aXMpdk/e04EiKtK+oo2Cq9tHYc1LWA79/VIKdOk1uv/ZSHT1zjc8c1f1NFIL70ULcuDl c932J+ZTQD6DdUAH+8dmBZB8wgsg0awQju6zaAHUCOwuDPySIZbICoFTxKscbJwuKqqI yogiGcFw2gI6L0/XMLJd3YpyfH61Bo8Sg5JXaRd2XHPq5atANga6GsNmwHKCQUbmTn90 aL4gRINovvfAqdpOjyjOHhX19EiF7FqlVjCLVhiqy8PdqmShiAS8R9spClXC8SpSvCgA KxtA== X-Gm-Message-State: ALKqPweXoHmLA76XE+46YIx3G5DcoUvK44gfAnv7k5o98hyZAcJrmelY HaxfYqvUWmsosv8wwgTGkHfoVg== X-Received: by 2002:a1c:15c3:: with SMTP id 186-v6mr11117698wmv.39.1526892851587; Mon, 21 May 2018 01:54:11 -0700 (PDT) Received: from [192.168.0.18] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id p35-v6sm22245081wrb.12.2018.05.21.01.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 01:54:10 -0700 (PDT) Subject: Re: [PATCH 2/2] slimbus: ngd: Add qcom SLIMBus NGD driver To: kbuild test robot Cc: kbuild-all@01.org, gregkh@linuxfoundation.org, robh+dt@kernel.org, kramasub@codeaurora.org, sdharia@quicinc.com, girishm@quicinc.com, linux-kernel@vger.kernel.org, mark.rutland@arm.com, bgoswami@codeaurora.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org References: <20180516165118.16551-3-srinivas.kandagatla@linaro.org> <201805190351.kbyN0JPN%fengguang.wu@intel.com> From: Srinivas Kandagatla Message-ID: Date: Mon, 21 May 2018 09:54:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <201805190351.kbyN0JPN%fengguang.wu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed 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 Thanks for the report! This patch has dependency on https://lkml.org/lkml/2018/5/17/251 I should have mentioned this in cover letter! thanks, srini On 18/05/18 22:39, kbuild test robot wrote: > Hi Srinivas, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.17-rc5 next-20180517] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/slimbus-ngd-dt-bindings-Add-slim-ngd-dt-bindings/20180518-193916 > config: arm-allmodconfig (attached as .config) > compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=arm > > All error/warnings (new ones prefixed by >>): > > drivers/slimbus/qcom-ngd-ctrl.c: In function 'qcom_slim_ngd_get_laddr': >>> drivers/slimbus/qcom-ngd-ctrl.c:862:8: error: implicit declaration of function 'slim_prepare_txn'; did you mean 'slab_prepare_cpu'? [-Werror=implicit-function-declaration] > ret = slim_prepare_txn(sctrl, &txn, &done, true); > ^~~~~~~~~~~~~~~~ > slab_prepare_cpu > drivers/slimbus/qcom-ngd-ctrl.c: In function 'qcom_slim_ngd_notify_slaves': >>> drivers/slimbus/qcom-ngd-ctrl.c:969:11: error: implicit declaration of function 'of_slim_get_device'; did you mean 'slim_get_device'? [-Werror=implicit-function-declaration] > sbdev = of_slim_get_device(&ctrl->ctrl, node); > ^~~~~~~~~~~~~~~~~~ > slim_get_device >>> drivers/slimbus/qcom-ngd-ctrl.c:969:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] > sbdev = of_slim_get_device(&ctrl->ctrl, node); > ^ > cc1: some warnings being treated as errors > > vim +862 drivers/slimbus/qcom-ngd-ctrl.c > > 839 > 840 static int qcom_slim_ngd_get_laddr(struct slim_controller *sctrl, > 841 struct slim_eaddr *ea, u8 *laddr) > 842 { > 843 DECLARE_COMPLETION_ONSTACK(done); > 844 struct slim_val_inf msg = {0}; > 845 struct slim_msg_txn txn; > 846 u8 wbuf[10] = {0}; > 847 u8 rbuf[10] = {0}; > 848 int ret; > 849 > 850 txn.mt = SLIM_MSG_MT_DEST_REFERRED_USER; > 851 txn.dt = SLIM_MSG_DEST_LOGICALADDR; > 852 txn.la = SLIM_LA_MGR; > 853 txn.ec = 0; > 854 > 855 txn.mc = SLIM_USR_MC_ADDR_QUERY; > 856 txn.rl = 11; > 857 txn.msg = &msg; > 858 txn.msg->num_bytes = 7; > 859 txn.msg->wbuf = wbuf; > 860 txn.msg->rbuf = rbuf; > 861 > > 862 ret = slim_prepare_txn(sctrl, &txn, &done, true); > 863 if (ret) > 864 return ret; > 865 > 866 wbuf[0] = (u8)txn.tid; > 867 memcpy(&wbuf[1], ea, sizeof(*ea)); > 868 ret = slim_do_transfer(sctrl, &txn); > 869 > 870 *laddr = rbuf[6]; > 871 > 872 return ret; > 873 } > 874 > 875 static int qcom_slim_ngd_exit_dma(struct qcom_slim_ngd_ctrl *ctrl) > 876 { > 877 if (ctrl->dma_rx_channel) > 878 dma_release_channel(ctrl->dma_rx_channel); > 879 > 880 if (ctrl->dma_tx_channel) > 881 dma_release_channel(ctrl->dma_tx_channel); > 882 > 883 ctrl->dma_tx_channel = ctrl->dma_rx_channel = NULL; > 884 > 885 return 0; > 886 } > 887 > 888 static void qcom_slim_ngd_setup(struct qcom_slim_ngd_ctrl *ctrl) > 889 { > 890 u32 cfg = readl_relaxed(ctrl->base + > 891 NGD_BASE(ctrl->id, ctrl->ver)); > 892 > 893 if (ctrl->state == QCOM_SLIM_NGD_CTRL_DOWN) > 894 qcom_slim_ngd_init_dma(ctrl); > 895 > 896 /* By default enable message queues */ > 897 cfg |= NGD_CFG_RX_MSGQ_EN; > 898 cfg |= NGD_CFG_TX_MSGQ_EN; > 899 > 900 /* Enable NGD if it's not already enabled*/ > 901 if (!(cfg & NGD_CFG_ENABLE)) > 902 cfg |= NGD_CFG_ENABLE; > 903 > 904 writel_relaxed(cfg, ctrl->base + NGD_BASE(ctrl->id, ctrl->ver)); > 905 } > 906 > 907 static int qcom_slim_ngd_power_up(struct qcom_slim_ngd_ctrl *ctrl) > 908 { > 909 enum qcom_slim_ngd_state cur_state = ctrl->state; > 910 void __iomem *ngd; > 911 u32 laddr, rx_msgq; > 912 int timeout, ret = 0; > 913 > 914 if (ctrl->state == QCOM_SLIM_NGD_CTRL_DOWN) { > 915 timeout = wait_for_completion_timeout(&ctrl->qmi.qmi_comp, HZ); > 916 if (!timeout) > 917 return -EREMOTEIO; > 918 } > 919 > 920 if (ctrl->state == QCOM_SLIM_NGD_CTRL_ASLEEP || > 921 ctrl->state == QCOM_SLIM_NGD_CTRL_DOWN) { > 922 ret = qcom_slim_qmi_power_request(ctrl, true); > 923 if (ret) { > 924 dev_err(ctrl->dev, "SLIM QMI power request failed:%d\n", > 925 ret); > 926 return ret; > 927 } > 928 } > 929 > 930 ctrl->ver = readl_relaxed(ctrl->base); > 931 /* Version info in 16 MSbits */ > 932 ctrl->ver >>= 16; > 933 ngd = ctrl->base + NGD_BASE(ctrl->id, ctrl->ver); > 934 laddr = readl_relaxed(ngd + NGD_STATUS); > 935 if (laddr & NGD_LADDR) { > 936 /* > 937 * external MDM restart case where ADSP itself was active framer > 938 * For example, modem restarted when playback was active > 939 */ > 940 if (cur_state == QCOM_SLIM_NGD_CTRL_AWAKE) { > 941 dev_info(ctrl->dev, "Subsys restart: ADSP active framer\n"); > 942 return 0; > 943 } > 944 return 0; > 945 } > 946 > 947 writel_relaxed(DEF_NGD_INT_MASK, ctrl->base + NGD_INT_EN + > 948 NGD_BASE(ctrl->id, ctrl->ver)); > 949 rx_msgq = readl_relaxed(ngd + NGD_RX_MSGQ_CFG); > 950 > 951 writel_relaxed(rx_msgq|SLIM_RX_MSGQ_TIMEOUT_VAL, ngd + NGD_RX_MSGQ_CFG); > 952 qcom_slim_ngd_setup(ctrl); > 953 > 954 timeout = wait_for_completion_timeout(&ctrl->reconf, HZ); > 955 if (!timeout) { > 956 dev_err(ctrl->dev, "capability exchange timed-out\n"); > 957 return -ETIMEDOUT; > 958 } > 959 > 960 return 0; > 961 } > 962 > 963 static void qcom_slim_ngd_notify_slaves(struct qcom_slim_ngd_ctrl *ctrl) > 964 { > 965 struct slim_device *sbdev; > 966 struct device_node *node; > 967 > 968 for_each_child_of_node(ctrl->dev->of_node, node) { > > 969 sbdev = of_slim_get_device(&ctrl->ctrl, node); > 970 if (!sbdev) > 971 continue; > 972 > 973 if (slim_get_logical_addr(sbdev)) > 974 dev_err(ctrl->dev, "Failed to get logical address\n"); > 975 } > 976 } > 977 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation >