Received: by 10.223.185.116 with SMTP id b49csp7605105wrg; Thu, 1 Mar 2018 08:06:30 -0800 (PST) X-Google-Smtp-Source: AG47ELsrIVmI4Rl8douZapUarJxtFcMwL9nA950FvgNkhXwowDhAkTjeAHrZ4N9VNxSlNlAXgcrs X-Received: by 10.99.122.71 with SMTP id j7mr1908867pgn.151.1519920390634; Thu, 01 Mar 2018 08:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519920390; cv=none; d=google.com; s=arc-20160816; b=OWxOVFIE86TOAFD8QI6hCiWtjeoL7AJvphD9dKJ20UbdQKfutUklaIPRlkyXGDAMCo gMdJvhFZwaviBKrsuKVLe1Um44njhOicxc9WbcdsEseGzIFQVj2a7uQkviLZYXiGeBS2 UY1PyW+rjCXWAZlt8sADidf7gHEN3L7SCVIy7GGyRQC3ymOKsc3r67Gqc62AuCsp1Ci1 lx95SLEDBqUGQBBWQcpmqHRPZ53/k5U2gWHLeMoKb/IAFqwGY8vCJZp2nM12uIZLdwvy o556bZuEqzDulkpIIi3oq62mY9jph4tqiIPXiqm4rY7fW7xDcEO2baqJWBeVtoQ0zCH7 r8Sw== 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=bnuTPD3MBvmHH8KBDbMbsyY0uo09azP5CPgNAdcUr/I=; b=I6Pkthh6zDnAAt6IRXAcCLVxYALArRDdkwBbv/cPTLnf9b2lqadzfLXmkLi8Gy4Ris 56hyUaxDRbmOmlTxNY1NEG3aTUa1IaLvbZVdoKn7mxk69Ul1eqB3L201fUINsP4Yx6V4 eGhPEly3hDNLnP5drkKQypfCdh18+c2CUpE8QrkQhJtMjIfpyorIOsDBuT0uoB14R1Be HWN07IyXShPQRL8MFFcNbhbmfrEdoAvAmZm6EdlGM74lZSxTa28jXGcu01keoXvWC10A 7WfsZQKU/a+SYT0wYhNJwu//cLEMk0HZnmjYdRz7KYuFwwReGY4yLY1AmM9TczAZQ0RO iohA== 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 f11si2600666pgs.782.2018.03.01.08.06.14; Thu, 01 Mar 2018 08:06:30 -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 S1032795AbeCAQEx (ORCPT + 99 others); Thu, 1 Mar 2018 11:04:53 -0500 Received: from mga17.intel.com ([192.55.52.151]:50433 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032700AbeCAQEu (ORCPT ); Thu, 1 Mar 2018 11:04:50 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 08:04:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,408,1515484800"; d="scan'208";a="21337346" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.61]) by fmsmga008.fm.intel.com with ESMTP; 01 Mar 2018 08:04:47 -0800 Date: Thu, 1 Mar 2018 23:55:06 +0800 From: Wu Hao To: Alan Tull Cc: Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel , linux-api@vger.kernel.org, "Kang, Luwei" , "Zhang, Yi Z" Subject: Re: [PATCH v4 15/24] fpga: dfl-fme-pr: add compat_id support for dfl-fme-region platform device. Message-ID: <20180301155506.GA13141@hao-dev> References: <1518513893-4719-1-git-send-email-hao.wu@intel.com> <1518513893-4719-16-git-send-email-hao.wu@intel.com> <20180301054935.GA8999@hao-dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Mar 01, 2018 at 09:59:16AM -0600, Alan Tull wrote: > On Wed, Feb 28, 2018 at 11:49 PM, Wu Hao wrote: > > On Wed, Feb 28, 2018 at 05:06:57PM -0600, Alan Tull wrote: > >> On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: > > >> > + > >> > + compat_id.id_l = readq(fme_pr + FME_PR_INTFC_ID_L); > >> > + compat_id.id_h = readq(fme_pr + FME_PR_INTFC_ID_H); > >> > >> I tried building for 32 bit ARM and ran into readq and writeq not > >> being defined. v2 had proper '#indef readq/writeq', so looks like we > >> need that after all. > > > > Sorry, it's missing a header file for dfl-fme-pr.h, as some files don't include > > dfl.h at this version. That header file has definitions for readq/writeq. > > > > +#include > > > > will fix it. > > Hi Hao, > > That sounds good. I was able to build if I added it. There are a > couple issues in the enumeration code: > > In file included from > /home/atull/repos/linux-socfpga/include/linux/kernel.h:11:0, > from /home/atull/repos/linux-socfpga/include/linux/list.h:9, > from /home/atull/repos/linux-socfpga/include/linux/module.h:9, > from /home/atull/repos/linux-socfpga/drivers/fpga/dfl.c:13: > /home/atull/repos/linux-socfpga/drivers/fpga/dfl.c: In function > 'parse_feature_list': > /home/atull/repos/linux-socfpga/include/linux/bitops.h:7:24: warning: > left shift count >= width of type [-Wshift-count-overflow] > #define BIT(nr) (1UL << (nr)) > ^ > /home/atull/repos/linux-socfpga/drivers/fpga/dfl.h:73:19: note: in > expansion of macro 'BIT' > #define DFH_EOL BIT(40) /* End of list */ > ^ > /home/atull/repos/linux-socfpga/drivers/fpga/dfl.c:643:12: note: in > expansion of macro 'DFH_EOL' > if ((v & DFH_EOL) || !ofst) > ^ > > and > > CC drivers/fpga/dfl-fme-mgr.o > In file included from > /home/atull/repos/linux-socfpga/include/linux/kernel.h:11:0, > from /home/atull/repos/linux-socfpga/include/linux/list.h:9, > from > /home/atull/repos/linux-socfpga/include/linux/kobject.h:19, > from /home/atull/repos/linux-socfpga/include/linux/device.h:16, > from > /home/atull/repos/linux-socfpga/drivers/fpga/dfl-fme-pr.c:20: > /home/atull/repos/linux-socfpga/drivers/fpga/dfl-fme-pr.c: In function > 'pr_mgmt_init': > /home/atull/repos/linux-socfpga/include/linux/bitops.h:7:24: warning: > left shift count >= width of type [-Wshift-count-overflow] > #define BIT(nr) (1UL << (nr)) > ^ > /home/atull/repos/linux-socfpga/drivers/fpga/dfl.h:113:27: note: in > expansion of macro 'BIT' > #define FME_PORT_OFST_IMP BIT(60) > ^ > /home/atull/repos/linux-socfpga/drivers/fpga/dfl-fme-pr.c:449:23: > note: in expansion of macro 'FME_PORT_OFST_IMP' > if (!(port_offset & FME_PORT_OFST_IMP)) Hi Alan I think it needs to use BIT_ULL instead of BIT. will fix them in the next version. Thanks Hao > ^ > Alan > > > > > > Thanks > > Hao > > > >> Alan