Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10861344rwl; Mon, 2 Jan 2023 09:18:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXsLUJsSquZiu2Nqx1pjae+KGPctpNJhVysOqjLnTuJl2gaEIYRotZYFCFtR9HiZeW8rU+z3 X-Received: by 2002:aa7:d04d:0:b0:46c:d905:b9e8 with SMTP id n13-20020aa7d04d000000b0046cd905b9e8mr34848200edo.23.1672679930183; Mon, 02 Jan 2023 09:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672679930; cv=none; d=google.com; s=arc-20160816; b=T4dlcrtV629XGY2AR75bhiHH2rdVkNIU0ZoBu1pVMCF7zhZ18MT3B/EF8GWOYs/TJa O06E3gnMf0cAFH+c1jJnVPteCj3h+G7XHkfGxSJBnq9Jl4yNThUd3aYMA2qJQ7hYuzUw ntxb3AII+TAFCPPzqRywfQMct1HKavvWOIt2XNcNSvl2mbabp46oMF4jUUBvCpE4Dwpz 085OH9QE+bVVzmkc5o6Vag00fkyND3i7wsfgA8oq8iDiOcVMpl9Mv06NTrEd4mQ6W2qz YrUwbUjC4VFVtrlkMhX47Vzrz/lpwo1il53utcBK49LqKYkHwSFugJFwpaRVETQz0arX HpFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Epu2VLH0Y226xqVjRwgXp9RVkjIuSfdM7PSxcwmDajE=; b=LF5Msf8Swcw3vf4SHkbktWPVWX6o+Lveq4EsvyyGZeWrhWKJavpl01c6IU8KvMzPic hF7bqhshH5CJMvkGXQWRk5fL598COKVcOj4iSr3aEZIhHuli6RGMHMRx1keFZVgW64sN nsvKolxe6DdHrcRxWkistVfuw6Ml8NqxDufOe0uu4od6LH5I82KiTHTNcRj7bcHLQt7k XP8PCGmjbHvnvfIRHO6lbflaiQ0gBooWj/te1XrL7xyBnf2lWVlDjIbKvXErkMwETK8D 8Xz4kwSbGf1PP+fzR9uzAkLmmgIJsKy36nxyJualuivgmz3STiZ98oMCxUA5Lt9SEgth UeZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=afRWpXUy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056402431300b0047b79b99e58si27854779edc.446.2023.01.02.09.18.35; Mon, 02 Jan 2023 09:18:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=afRWpXUy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbjABQya (ORCPT + 62 others); Mon, 2 Jan 2023 11:54:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbjABQy2 (ORCPT ); Mon, 2 Jan 2023 11:54:28 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE14B306; Mon, 2 Jan 2023 08:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672678467; x=1704214467; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=ppGkbVIp7/QGeKi51q+/ugNHd4lE+7jSrx7vbLG6VvQ=; b=afRWpXUyrLxg3VHYr6pHCHSHAiS6Xn1sYSJ/4Pi08ItZTi2eucF5Kstx CHR5qL3zvSfZkb67RsnkCGfxDdhv+YrdODiFZiufmmXqrG+i7bgySLZPy BCLjAHt0HBobfTrJAsZarJMrrkeCmT+IU1+1Pq1KaEuPSEfKsPN0MfpsT PvpdwEfilIm+gH8outCs2OxH6bnJT2RLJX7yIkmSGJQUHK+PTqN97n3BJ JMV7X78yzfjuYJTlm995enH/i91B6fB0EgW8TiNLO1f7rI4w1BkKvwegT CSXPDx2HJ392Zi8qNMK5AUL1FSY4oInOffCFp3+kc+a7pw6PSsBnCsEm0 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="407771523" X-IronPort-AV: E=Sophos;i="5.96,294,1665471600"; d="scan'208";a="407771523" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2023 08:54:27 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="604571189" X-IronPort-AV: E=Sophos;i="5.96,294,1665471600"; d="scan'208";a="604571189" Received: from rhweight-wrk1.ra.intel.com ([137.102.106.139]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2023 08:54:27 -0800 Date: Mon, 2 Jan 2023 08:54:48 -0800 (PST) From: matthew.gerlach@linux.intel.com X-X-Sender: mgerlach@rhweight-WRK1 To: Andy Shevchenko cc: Tom Rix , hao.wu@intel.com, yilun.xu@intel.com, russell.h.weight@intel.com, basheer.ahmed.muddebihal@intel.com, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tianfei.zhang@intel.com, corbet@lwn.net, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, jirislaby@kernel.org, geert+renesas@glider.be, niklas.soderlund+renesas@ragnatech.se, macro@orcam.me.uk, johan@kernel.org, lukas@wunner.de, ilpo.jarvinen@linux.intel.com, marpagan@redhat.com, bagasdotme@gmail.com Subject: Re: [PATCH v8 3/4] fpga: dfl: add basic support for DFHv1 In-Reply-To: Message-ID: References: <20221228181624.1793433-1-matthew.gerlach@linux.intel.com> <20221228181624.1793433-4-matthew.gerlach@linux.intel.com> <628c125a-5a84-e1bd-7724-2637315cc35e@redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Dec 2022, Andy Shevchenko wrote: > On Thu, Dec 29, 2022 at 08:18:03AM -0800, Tom Rix wrote: >> On 12/28/22 10:16 AM, matthew.gerlach@linux.intel.com wrote: > > ... > >>> struct dfl_feature_info { >>> u16 fid; >>> u8 revision; >>> + u8 dfh_version; >>> struct resource mmio_res; >>> void __iomem *ioaddr; >>> struct list_head node; >>> unsigned int irq_base; >>> unsigned int nr_irqs; >>> + unsigned int param_size; >>> + u64 params[]; >> u64 *params > > This will break the overflow.h macros, no? > Besides that it will break the code for sure as it's not an equivalent. > >>> }; I don't understand how this will break the overflow.h macros. The definition of struct dfl_feature_info and all of its uses are in a single file, dfl.c. Matthew Gerlach > > > -- > With Best Regards, > Andy Shevchenko > > >