Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7547822rwi; Mon, 24 Oct 2022 16:35:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pY4HuOHRLjqFKoKfltiz+zKrO2owlkS2nPYJQGSco5jr3c6pU6u9EmUXjP2e+6qaZhkWu X-Received: by 2002:a17:90a:ba90:b0:20d:3434:7f56 with SMTP id t16-20020a17090aba9000b0020d34347f56mr41462215pjr.105.1666654505318; Mon, 24 Oct 2022 16:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666654505; cv=none; d=google.com; s=arc-20160816; b=Nb7uGufR/iCBfmISn27JJw3J8q96tBcWn1pYPjkPhJKg5vk22eWLgj4I5MNyzv9Vcj YYEK04jL9v3MCk1ViXppgN3dtQDjQxbVpB7A2EUQx+XPF51oogXHVcJuuVLlPDr9kPfa Z0g+AYRJOe4SCPXXQEqC+bn6cbKC6/XHfin72BL56ZgbPqYsg0IZkXhdja6w30sBqWB1 incbP+SjTY64A4b2dZFua0RFUk/N4/c0o1UPj19//L2W7GVJU3wwKkWiDkEgMK33Uj/x doBXhZZe00uzzDUHijX0FM5o2tiDzifSk6MEVzhpeE0cYL/mIFNQJxjpYbc6bbN1Sr7B b5tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sYcC1Hf5uFhVZuAIt3B0smLjO6ifatn3SZB/4VvO5T4=; b=yunGLGTuSvffg+d1VxvouP54qR6zI5VxcAntcB5wvEJd2g4YyOEDkYyZK4dpKJNKvV nnGZFJJBJMcWXOcFBWyyDCRIdC2ylYRgBDvoVtGgnUwrylIa7ofpKnoQGpTg5OUUB2jx wBgCWfyA5DKZM2hAnNQOhNPbnohRbD28sLqmjxr3LuiQU8vLQbva2On6SFsGId4hsHRv qmjvq5T0/7/0KQGldyPpbdBTYvoqpPAXnD0Ni625GP81REb5plWVK0OafBIaVif9jbYo SrUN//xblxik0Zdrrbnrj/HZHYJyI3z6bf+0V+/HH/C+QcJYs5PCzq72+OmHH6Zm1ls3 BvlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rRr+DJxM; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902f54a00b00184c33ddeb3si1174314plf.41.2022.10.24.16.34.53; Mon, 24 Oct 2022 16:35:05 -0700 (PDT) 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=@linaro.org header.s=google header.b=rRr+DJxM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbiJXXPp (ORCPT + 99 others); Mon, 24 Oct 2022 19:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiJXXPX (ORCPT ); Mon, 24 Oct 2022 19:15:23 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 937935C962 for ; Mon, 24 Oct 2022 14:36:27 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id h24so6433574qta.7 for ; Mon, 24 Oct 2022 14:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sYcC1Hf5uFhVZuAIt3B0smLjO6ifatn3SZB/4VvO5T4=; b=rRr+DJxMyoaYySbaY77FbZDsnehXzqPBB6g7fAUyCrFManLQsJi9dcUmksiCeyJm6v iR3ermaH4ABvzuQFr3me4Ybom2EC6anXTnuqaOgtMu2tK9H6654Wvrr5A3R1T+bNisNF 2PW86qqOcN5uYVI0yAIILthWpmeabUshuRBl76feXkxrJYow/VGqs8R/NHT8KjIl4vz9 AZyTmUrockNpyzs8LYIo4obPqfZb2C96U1NmFX0LLHzjmtnjxJTsOmWLzwrBWmPOBMJ6 ktNZ2bsUHBalb6xhRI5uQwiw8+O+mDfcxVSQf7jajvkmIBlSNiS89z8uyCkPDYqKgFnU 4NNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sYcC1Hf5uFhVZuAIt3B0smLjO6ifatn3SZB/4VvO5T4=; b=pVxqdalYeROPBQVrBZXZ9ngd6E50E4lAMPwxNro7goJ3HZFyV+VD/BUoAjWpJkzBDc 3q/NNvPnjBV+tDcCE1oRE6HI1PlYQpzRm5QvdKVUTtYuo9OSOgHNjWqFL4PAy0ppSzOi 7CBpvrCZr9ppYDV5yywhYeqiJuihrXWQP5AR5Bhe5N1KznLBsIv0Bfd6etKCkFsIDP0u yCMCu+jp8HMQnKy1Md6XFPWXpZRh4EDJXKs9P9i2ya6frlM3uX7B5wXs+OX/rEDXU7ls Dbm9LCE7867vCXt8820iiM2ZZDGgoY6g8sT17qDBp/vuR0mlrELbOn3BPfV/QAfBsmJn 6yLA== X-Gm-Message-State: ACrzQf3kPSNzLOUqqY1tbXYvyJB0WUn3dH+k5WqjH4mw9ZE9en3ZAFa7 cEg4/q4526kfrAsHWJsAalIGXQ== X-Received: by 2002:a05:622a:2cc:b0:398:22c2:7e81 with SMTP id a12-20020a05622a02cc00b0039822c27e81mr28617007qtx.633.1666647363353; Mon, 24 Oct 2022 14:36:03 -0700 (PDT) Received: from [172.22.22.4] ([98.61.227.136]) by smtp.googlemail.com with ESMTPSA id j6-20020a37c246000000b006eed47a1a1esm623867qkm.134.2022.10.24.14.36.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 14:36:02 -0700 (PDT) Message-ID: <5bcc3207-8c3a-1759-ee65-35e5efd77702@linaro.org> Date: Mon, 24 Oct 2022 16:36:00 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 1/2] net: ipa: fix v3.5.1 resource limit max values Content-Language: en-US To: Caleb Connolly , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jami Kettunen Cc: Alex Elder , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20221024210336.4014983-1-caleb.connolly@linaro.org> From: Alex Elder In-Reply-To: <20221024210336.4014983-1-caleb.connolly@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 10/24/22 4:03 PM, Caleb Connolly wrote: > Some resource limits on IPA v3.5.1 have their max values set to > 255, this causes a few splats in ipa_reg_encode and prevents the > IPA from booting properly. The limits are all 6 bits wide so > adjust the max values to 63. > > Fixes: 1c418c4a929c ("net: ipa: define resource group/type IPA register fields") > Signed-off-by: Caleb Connolly Thanks Caleb, this looks good. David et al, in case it isn't obvious, this is for net/master, for back-port (only to 6.0.y). Reviewed-by: Alex Elder > --- > V1: https://lore.kernel.org/netdev/20221024165636.3979249-1-caleb.connolly@linaro.org/ > Changes since v1: > * Apply the correct fix for v3.1 which has the opposite issue where the masks > are wrong rather than the values. > * Split into two patches > --- > drivers/net/ipa/data/ipa_data-v3.5.1.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ipa/data/ipa_data-v3.5.1.c b/drivers/net/ipa/data/ipa_data-v3.5.1.c > index 383ef1890065..42f2c88a92d4 100644 > --- a/drivers/net/ipa/data/ipa_data-v3.5.1.c > +++ b/drivers/net/ipa/data/ipa_data-v3.5.1.c > @@ -179,10 +179,10 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = { > static const struct ipa_resource ipa_resource_src[] = { > [IPA_RESOURCE_TYPE_SRC_PKT_CONTEXTS] = { > .limits[IPA_RSRC_GROUP_SRC_LWA_DL] = { > - .min = 1, .max = 255, > + .min = 1, .max = 63, > }, > .limits[IPA_RSRC_GROUP_SRC_UL_DL] = { > - .min = 1, .max = 255, > + .min = 1, .max = 63, > }, > .limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = { > .min = 1, .max = 63,