Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp249281pxu; Tue, 1 Dec 2020 10:14:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzTt+T/YUKuUJBmTT5lBU+uGVo4SRrar1DLuTxZ9WjNEQOkPpDDyIh5f/SIBJobv6wVPxL X-Received: by 2002:a50:e042:: with SMTP id g2mr4269644edl.292.1606846483372; Tue, 01 Dec 2020 10:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606846483; cv=none; d=google.com; s=arc-20160816; b=h91sYnRkq/q0+F5+JHJk9LgD2Opn8qeCcc1qU2sVya26tvcw6otuXuGpFFZQSSw4sK zOr6gJfo/alaHEbfLAe2dSmQU5RNfc1yptbE+D2W9n7WtpRJFne7VLvogR3C4a8GyaAc ChpqQhDJDUmLZduNPkAHMH17jC0mdy3nFz+eT7U0DpvtXkJyEoPbN+/k6UwDDeIkzmqf Ih7blbpKp6SGwDnm3bGfRk+Chwo6BM/g16d0VCELYfI69bl9rE8M0xHUxbGRqTC0zCQv WvQ9foinCVytTLY+O/Oz99vrFjYpLE2GfX5AugEKBONYHApPe3g3RlMzTCQkUJZOXHyL wbaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/D27y9r+pShq7ay9aYZhLt2r9FM2Jf0ooHB+jAavkBM=; b=IegbDA0nlJQaLlz1DLWdRoNiFfkYTP1+ETYskEhqAmOyM/uOJ9Kq+zT5PL/D6SNn9l DDuWGkSKSbcKlDj/1GcoNLbq+iBAJLdz81CK9MAy92LFq3oSW7uhCLAUA+OWjNTtC/FO 8LsJRua0xuttRDwxzj7XKi8UE+sQ9uaaaFEun0sf3MuqzejUgtqhRa2vPgUn7q6GTwZu uKHr8m4HXsHAnv+dvPBA5e+3EOLx4lgOt9l6JrCMz1vEbL5ckDTkCqTpOQ79KqCCcs6r GbazIXk1k2tMa0m1VN+othpHbVweNpD+bUto+Faq6bvegZSToa86Hp+DPH+0W7Rwyvst RCIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Pv2b7mFp; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si361825ejb.731.2020.12.01.10.14.19; Tue, 01 Dec 2020 10:14:43 -0800 (PST) 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=@nvidia.com header.s=n1 header.b=Pv2b7mFp; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731205AbgLASMs (ORCPT + 99 others); Tue, 1 Dec 2020 13:12:48 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:15776 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726493AbgLASMs (ORCPT ); Tue, 1 Dec 2020 13:12:48 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 01 Dec 2020 10:12:07 -0800 Received: from [10.26.72.142] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 1 Dec 2020 18:11:59 +0000 Subject: Re: [PATCH net-next 4/6] net: ipa: add support to code for IPA v4.5 To: Alex Elder , , CC: , , , , , , linux-tegra References: <20201125204522.5884-1-elder@linaro.org> <20201125204522.5884-5-elder@linaro.org> From: Jon Hunter Message-ID: <5b5d9d40-94d5-5dad-b861-fd9bef8260e2@nvidia.com> Date: Tue, 1 Dec 2020 18:11:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201125204522.5884-5-elder@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1606846327; bh=/D27y9r+pShq7ay9aYZhLt2r9FM2Jf0ooHB+jAavkBM=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=Pv2b7mFpB9VseLXJGAz/zIg5f00sqtHxchoQ86LxP3FddDa9FsQwi/Wfze+IEzAQ+ KXkbjYRy57Gav896beABqu/EaH8OwamsJWLAUj87pC/PjQzRfBzVX7ytOKaYgAUAki wYApKu1tpMoXA1IH2s9r29A/B7vafueHxWK4TdUcY+osVdqsQYAUU6OAFSB54FWqOD IzIT04q+0Q2feW1bUE6sinMsn489L7R0gs6g0KIxVy6GYymzldno9ucqoZfBsJ1jpD etpCYQ6RHR1OPR+qnSokGQmdxX/r7nuAYJ6GdQR471bvcHTSyfF1WHht/AgXe7mjcl 5LigkIA13UqQg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/11/2020 20:45, Alex Elder wrote: > Update the IPA code to make use of the updated IPA v4.5 register > definitions. Generally what this patch does is, if IPA v4.5 > hardware is in use: > - Ensure new registers or fields in IPA v4.5 are updated where > required > - Ensure registers or fields not supported in IPA v4.5 are not > examined when read, or are set to 0 when written > It does this while preserving the existing functionality for IPA > versions lower than v4.5. >=20 > The values to program for QSB_MAX_READS and QSB_MAX_WRITES and the > source and destination resource counts are updated to be correct for > all versions through v4.5 as well. >=20 > Note that IPA_RESOURCE_GROUP_SRC_MAX and IPA_RESOURCE_GROUP_DST_MAX > already reflect that 5 is an acceptable number of resources (which > IPA v4.5 implements). >=20 > Signed-off-by: Alex Elder This change is generating the following build error on ARM64 ... In file included from drivers/net/ipa/ipa_main.c:9:0: In function =E2=80=98u32_encode_bits=E2=80=99, inlined from =E2=80=98ipa_hardware_config_qsb.isra.7=E2=80=99 at driver= s/net/ipa/ipa_main.c:286:6, inlined from =E2=80=98ipa_hardware_config=E2=80=99 at drivers/net/ipa/i= pa_main.c:363:2, inlined from =E2=80=98ipa_config.isra.12=E2=80=99 at drivers/net/ipa/ip= a_main.c:555:2, inlined from =E2=80=98ipa_probe=E2=80=99 at drivers/net/ipa/ipa_main.c:= 835:6: ./include/linux/bitfield.h:131:3: error: call to =E2=80=98__field_overflow= =E2=80=99 declared with attribute error: value doesn't fit into mask __field_overflow(); \ ^~~~~~~~~~~~~~~~~~ ./include/linux/bitfield.h:151:2: note: in expansion of macro =E2=80=98____= MAKE_OP=E2=80=99 ____MAKE_OP(u##size,u##size,,) ^~~~~~~~~~~ ./include/linux/bitfield.h:154:1: note: in expansion of macro =E2=80=98__MA= KE_OP=E2=80=99 __MAKE_OP(32) ^~~~~~~~~ Cheers Jon --=20 nvpublic