Received: by 10.223.176.5 with SMTP id f5csp763384wra; Tue, 30 Jan 2018 19:15:46 -0800 (PST) X-Google-Smtp-Source: AH8x224U5Q8is2ARd1LL/LREQX0+uv5M7uM7h7cuU4TmXRvaD6JLvyOP/8Y2p0jsKA1qbvU+rS7O X-Received: by 10.101.96.67 with SMTP id b3mr25789796pgv.23.1517368546811; Tue, 30 Jan 2018 19:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517368546; cv=none; d=google.com; s=arc-20160816; b=YC7B1KhkO+5n31wORu3EQb2qhvtzm212gGQc+ARZq7OIk7maA2Uop+yTDGiD1sUroo lb5FoeNPmVkvhLSqDH2gKJ6fGU5dx0JiS1gyUg4KFQ+vUxOeTiq4q8hY3U4ahekaz7SF m/GFPQBCCDdRU45nzPhY7c5RPGwhw73M/BcDje1MYiaJ3FBBpHL1nrnePlo/kqT0uked VwqKCUNf1yE0sAQfZ35mBjRPyi8tROdemUpgDARMN0LREliJ2gy3Jspvwxy3u5am13vq pyRYuXtRwXA2hC4mk8/55Ynh//ddhULdDXBcLzy3hWgmRZiWHTIcsnqCGGshGXoe37LQ C/VQ== 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:arc-authentication-results; bh=qSa1fbacvxbMZ5d6C3KDZWjH+bsqD25DoT5kuVASaCU=; b=INWPL42S5BwrWzwZzexWQyrtpykMHzvOlk9dOpFf0X2YZa1sE4VSWRyHYy8t/6PEZX GBvaYE/ScFJc1IsbIkbCbE+UHkaYD5cQUoTYqLopoRrSB5nnhIIMeZuLZmI48zAJeCLJ J942fHkrkgHPdYt05rRqNcxOo7fyUnxxbfQtIflIcWi7wMbMcLb6Mp0o6maSQHOcZ9Jr 5NfTq4IThZY8FIYdLghbdzrFsgguK+CNMMfD6gj3lJJG+YNaS0YmqdLLOcISuJsR85sf M6B8LbJpVydHsOVA4pjrA7vB7/ENrKTTKHhXI+nomXSdHKdiDo5rt+47SMSMsrejCItg YD0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91-v6si3100497plb.499.2018.01.30.19.15.32; Tue, 30 Jan 2018 19:15:46 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506AbeAaDPH (ORCPT + 99 others); Tue, 30 Jan 2018 22:15:07 -0500 Received: from dliviu.plus.com ([80.229.23.120]:51924 "EHLO smtp.dudau.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbeAaDPF (ORCPT ); Tue, 30 Jan 2018 22:15:05 -0500 X-Greylist: delayed 415 seconds by postgrey-1.27 at vger.kernel.org; Tue, 30 Jan 2018 22:15:05 EST Received: from mail.dudau.co.uk (bart.dudau.co.uk [192.168.14.2]) by smtp.dudau.co.uk (Postfix) with SMTP id 48C1440EABDF; Wed, 31 Jan 2018 03:08:08 +0000 (GMT) Received: by mail.dudau.co.uk (sSMTP sendmail emulation); Wed, 31 Jan 2018 03:08:08 +0000 Date: Wed, 31 Jan 2018 03:08:08 +0000 From: Liviu Dudau To: Yong Cc: kbuild test robot , kbuild-all@01.org, Maxime Ripard , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , "David S. Miller" , Greg Kroah-Hartman , Hans Verkuil , Linus Walleij , Randy Dunlap , Stanimir Varbanov , Hugues Fruchet , Yannick Fertre , Philipp Zabel , Arnd Bergmann , Benjamin Gaignard , Ramesh Shanmugasundaram , Sakari Ailus , Rick Chang , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, megous@megous.com Subject: Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI. Message-ID: <20180131030807.GA19945@bart.dudau.co.uk> References: <1516695531-23349-1-git-send-email-yong.deng@magewell.com> <201801260759.RyNhDZz4%fengguang.wu@intel.com> <20180126094658.aa70ed3f890464f6051e21e4@magewell.com> <20180126110041.f89848325b9ecfb07df387ca@magewell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180126110041.f89848325b9ecfb07df387ca@magewell.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > Hi Maxime, > > On Fri, 26 Jan 2018 09:46:58 +0800 > Yong wrote: > > > Hi Maxime, > > > > Do you have any experience in solving this problem? > > It seems the PHYS_OFFSET maybe undeclared when the ARCH is not arm. > > Got it. > Should I add 'depends on ARM' in Kconfig? No, I don't think you should do that, you should fix the code. The dma_addr_t addr that you've got is ideally coming from dma_alloc_coherent(), in which case the addr is already "suitable" for use by the device (because the bus where the device is attached to does all the address translations). If you apply PHYS_OFFSET forcefully to it you might get unexpected results. Best regards, Liviu > > > > > On Fri, 26 Jan 2018 08:04:18 +0800 > > kbuild test robot wrote: > > > > > Hi Yong, > > > > > > I love your patch! Yet something to improve: > > > > > > [auto build test ERROR on linuxtv-media/master] > > > [also build test ERROR on v4.15-rc9 next-20180119] > > > [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/Yong-Deng/dt-bindings-media-Add-Allwinner-V3s-Camera-Sensor-Interface-CSI/20180126-054511 > > > base: git://linuxtv.org/media_tree.git master > > > config: i386-allmodconfig (attached as .config) > > > compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 > > > reproduce: > > > # save the attached .config to linux build tree > > > make ARCH=i386 > > > > > > All errors (new ones prefixed by >>): > > > > > > drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c: In function 'sun6i_csi_update_buf_addr': > > > >> drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c:567:31: error: 'PHYS_OFFSET' undeclared (first use in this function); did you mean 'PAGE_OFFSET'? > > > dma_addr_t bus_addr = addr - PHYS_OFFSET; > > > ^~~~~~~~~~~ > > > PAGE_OFFSET > > > drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c:567:31: note: each undeclared identifier is reported only once for each function it appears in > > > > > > vim +567 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > > > > > > 562 > > > 563 void sun6i_csi_update_buf_addr(struct sun6i_csi *csi, dma_addr_t addr) > > > 564 { > > > 565 struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi); > > > 566 /* transform physical address to bus address */ > > > > 567 dma_addr_t bus_addr = addr - PHYS_OFFSET; > > > 568 > > > 569 regmap_write(sdev->regmap, CSI_CH_F0_BUFA_REG, > > > 570 (bus_addr + sdev->planar_offset[0]) >> 2); > > > 571 if (sdev->planar_offset[1] != -1) > > > 572 regmap_write(sdev->regmap, CSI_CH_F1_BUFA_REG, > > > 573 (bus_addr + sdev->planar_offset[1]) >> 2); > > > 574 if (sdev->planar_offset[2] != -1) > > > 575 regmap_write(sdev->regmap, CSI_CH_F2_BUFA_REG, > > > 576 (bus_addr + sdev->planar_offset[2]) >> 2); > > > 577 } > > > 578 > > > > > > --- > > > 0-DAY kernel test infrastructure Open Source Technology Center > > > https://lists.01.org/pipermail/kbuild-all Intel Corporation > > > > > > Thanks, > > Yong > > > Thanks, > Yong > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.