Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1275545ybj; Tue, 5 May 2020 16:59:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKRUtCwOfgFqmEX/mWBBd++WdT3VGsEe5MuSgOAmmuozywnfp0fWefQTWfMC6hgW8mgNqJa X-Received: by 2002:a50:afa6:: with SMTP id h35mr4716624edd.209.1588723188621; Tue, 05 May 2020 16:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588723188; cv=none; d=google.com; s=arc-20160816; b=FN9cZmetFjKaF8lH80JNluB8LHMy79KSPUH4U0tkDwO+IC+5J1KQhP9vSV243d7fT8 j1cbS2C+KPPuy6MP+VCOKsEO0PyKuhBQebrNcgLH1WAxLmw0Z9O900rgv+IV4DzCZnA5 yKP7iScalWTd6E1s/pvi1kXIH++U8bYAm7UkHQw+rF+GT/XA9DvmehsDSWFU49vrfAPC lWfKqE8blaBjsKrEg8dakN2zCfHFjXMHkcTVOftGoY2gqk4oxKu/OWAntXbDk07FmnOb ldH11Yl05Ueid5FPq4sf96jrjjeqG+tIN7ugoXXTpyiyWMvSh6QjMPZqu1/EEzi5/VcS wFOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JzaMwZpjc8kiyvkXAl8SC5OdIZko9B1uAdjf5EokFQA=; b=WqKqHOJ9Ch1U4u8JFAICABX35I/9YIviFgh6toiLCar3QVQC2/h1+RYv7919ykJIiN Ctc/F9tks6wIujuWRSNHuXtv6qwtHkoTeeM64oQs9BfSpToJlRCiaVn1ft+cgGD0e0+I EtKApekcIAyeOUK+purGSMOHSrxJYUXH1YTwXhkMZ7G9s/3oFk6YHvrg9JldahT9Cwl+ xatKT3wRePRa0Z1G/x6p/3RqcHFmv86a6lTvihh7dq1yN0Rpys+7xEqI0QNrMoS7ZCHF T+E3jZn9IZMUPUXS97Pa9Ei/gxd+/YMqUOfzy7ryYtmm4nlVn7hqIwqppc46RqCjT5ky voCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GcCRqF0r; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si100337edx.81.2020.05.05.16.59.25; Tue, 05 May 2020 16:59:48 -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=@broadcom.com header.s=google header.b=GcCRqF0r; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729275AbgEEX6I (ORCPT + 99 others); Tue, 5 May 2020 19:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbgEEX6I (ORCPT ); Tue, 5 May 2020 19:58:08 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF8DC061A10 for ; Tue, 5 May 2020 16:58:08 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x77so105475pfc.0 for ; Tue, 05 May 2020 16:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=JzaMwZpjc8kiyvkXAl8SC5OdIZko9B1uAdjf5EokFQA=; b=GcCRqF0rng+bDWT+XXGpRMzlhC2e6WqRpie++FCTYazS0pzx+X/KrFcQezY41N8Bqo L29pS/NkKaT2NqRgus6tqpdexXorGt7AUV+kFahU2b1GCiXg75mTfXKtntElnpIKDADf HGKWtD5DBrBDh7IcgMYYf2RgdPMDDROgrQGmw= 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-transfer-encoding :content-language; bh=JzaMwZpjc8kiyvkXAl8SC5OdIZko9B1uAdjf5EokFQA=; b=s5yVg3ZNhznYVkVe7i1hX2hp91bypisF0wsTLVP0cudV83WxG1CSZXKVZHLcmE8ePw eVN4L7d3scUg825+jkQcvK2zyu75gpHyvybIuNRj7j/6wshRPUbkeuWJU3KhtjJTrsJW 2okLMphymESb0f8tap9vf2/UL46G1Y0QAr1oahHUzIbaQPSXGCPak9/0ewTTojcasIoa 27sbmxws10/iRXtiCIeXzINUpRy2E60je3oD8oM5Tb6YXq44qJjULbTg3x2amLByU1XK tHU+Yhqo8RYC4Pvgeqn0fbzEniC4UMrxIgkf6TQrp6lfZ+/1b44QzY7yqROzuWmLrbLC kYww== X-Gm-Message-State: AGi0PuY/imhcJ5rfJ9wLK+dd57cQwcQF8e1I4BiqfjHJ3SPE9Ls9kNBX UiZowZG8Lt9BYS8PWfzynRBSeQ== X-Received: by 2002:a63:e62:: with SMTP id 34mr4290017pgo.300.1588723087207; Tue, 05 May 2020 16:58:07 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id b13sm42170pfo.67.2020.05.05.16.58.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 May 2020 16:58:06 -0700 (PDT) Subject: Re: [PATCH v3 6/7] misc: bcm-vk: add Broadcom VK driver To: kbuild test robot , Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Arnd Bergmann Cc: kbuild-all@lists.01.org, "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Linux Memory Management List , Dan Carpenter References: <20200420162809.17529-7-scott.branden@broadcom.com> <202004221945.LY6x0DQD%lkp@intel.com> From: Scott Branden Message-ID: Date: Tue, 5 May 2020 16:58:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <202004221945.LY6x0DQD%lkp@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the kbuild and sparse issues should be resolved in PATCH v4. On 2020-04-22 4:17 a.m., kbuild test robot wrote: > Hi Scott, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on driver-core/driver-core-testing] > [also build test WARNING on next-20200421] > [cannot apply to char-misc/char-misc-testing kselftest/next linus/master v5.7-rc2] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve the system. BTW, we also suggest to use '--base' option to specify the > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > url: https://github.com/0day-ci/linux/commits/Scott-Branden/firmware-add-partial-read-support-in-request_firmware_into_buf/20200422-114528 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 55623260bb33e2ab849af76edf2253bc04cb241f > reproduce: > # apt-get install sparse > # sparse version: v0.6.1-191-gc51a0382-dirty > make ARCH=x86_64 allmodconfig > make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > > > sparse warnings: (new ones prefixed by >>) > >>> drivers/misc/bcm-vk/bcm_vk_dev.c:189:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct bcm_vk_peer_log *p_ctl @@ got struct bcm_vk_peer_log *p_ctl @@ >>> drivers/misc/bcm-vk/bcm_vk_dev.c:189:15: sparse: expected struct bcm_vk_peer_log *p_ctl >>> drivers/misc/bcm-vk/bcm_vk_dev.c:189:15: sparse: got void [noderef] * >>> drivers/misc/bcm-vk/bcm_vk_dev.c:685:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] *from @@ got oderef] *from @@ >>> drivers/misc/bcm-vk/bcm_vk_dev.c:685:36: sparse: expected void const [noderef] *from >>> drivers/misc/bcm-vk/bcm_vk_dev.c:685:36: sparse: got struct vk_image *arg > drivers/misc/bcm-vk/bcm_vk_dev.c:780:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] *from @@ got oderef] *from @@ > drivers/misc/bcm-vk/bcm_vk_dev.c:780:36: sparse: expected void const [noderef] *from >>> drivers/misc/bcm-vk/bcm_vk_dev.c:780:36: sparse: got struct vk_reset *arg >>> drivers/misc/bcm-vk/bcm_vk_dev.c:858:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct vk_image *arg @@ got void [nstruct vk_image *arg @@ >>> drivers/misc/bcm-vk/bcm_vk_dev.c:858:45: sparse: expected struct vk_image *arg >>> drivers/misc/bcm-vk/bcm_vk_dev.c:858:45: sparse: got void [noderef] *argp >>> drivers/misc/bcm-vk/bcm_vk_dev.c:862:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct vk_reset *arg @@ got void [nstruct vk_reset *arg @@ >>> drivers/misc/bcm-vk/bcm_vk_dev.c:862:40: sparse: expected struct vk_reset *arg > drivers/misc/bcm-vk/bcm_vk_dev.c:862:40: sparse: got void [noderef] *argp > -- >>> drivers/misc/bcm-vk/bcm_vk_msg.c:507:17: sparse: sparse: cast removes address space '' of expression > drivers/misc/bcm-vk/bcm_vk_msg.c:707:15: sparse: sparse: cast removes address space '' of expression > drivers/misc/bcm-vk/bcm_vk_msg.c:715:23: sparse: sparse: cast removes address space '' of expression > drivers/misc/bcm-vk/bcm_vk_msg.c:871:31: sparse: sparse: cast removes address space '' of expression > drivers/misc/bcm-vk/bcm_vk_msg.c:899:47: sparse: sparse: cast removes address space '' of expression > > vim +189 drivers/misc/bcm-vk/bcm_vk_dev.c > > 180 > 181 static void bcm_vk_dump_peer_log(struct bcm_vk *vk) > 182 { > 183 struct bcm_vk_peer_log log, *p_ctl; > 184 char loc_buf[BCM_VK_PEER_LOG_LINE_MAX]; > 185 int cnt; > 186 struct device *dev = &vk->pdev->dev; > 187 uint data_offset; > 188 > > 189 p_ctl = vk->bar[BAR_2] + vk->peerlog_off; > 190 log = *p_ctl; > 191 /* do a rmb() to make sure log is updated */ > 192 rmb(); > 193 > 194 dev_dbg(dev, "Peer PANIC: Size 0x%x(0x%x), [Rd Wr] = [%d %d]\n", > 195 log.buf_size, log.mask, log.rd_idx, log.wr_idx); > 196 > 197 cnt = 0; > 198 data_offset = vk->peerlog_off + sizeof(struct bcm_vk_peer_log); > 199 while (log.rd_idx != log.wr_idx) { > 200 loc_buf[cnt] = vkread8(vk, BAR_2, data_offset + log.rd_idx); > 201 > 202 if ((loc_buf[cnt] == '\0') || > 203 (cnt == (BCM_VK_PEER_LOG_LINE_MAX - 1))) { > 204 dev_err(dev, "%s", loc_buf); > 205 cnt = 0; > 206 } else { > 207 cnt++; > 208 } > 209 log.rd_idx = (log.rd_idx + 1) & log.mask; > 210 } > 211 /* update rd idx at the end */ > 212 vkwrite32(vk, log.rd_idx, BAR_2, vk->peerlog_off); > 213 } > 214 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org