Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4027254pxj; Mon, 21 Jun 2021 11:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq1oqMiHoyrMmDMuKI+E+qQh5f0A+ZkM/HTAjWcQtDeWmbSxH2xVqW9Cg6s0o2cPLTLbvV X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr5098473edr.48.1624301206548; Mon, 21 Jun 2021 11:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624301206; cv=none; d=google.com; s=arc-20160816; b=GP5aEoEJhTsbT/37IsAU1rRqhVAmYQ1x1DKz5YDgJ+//wpGYX4MpjcnCk9vATxzNxY WfZj5PHvfl32onp8uFNF7N9mfLlUvh5q54R9Cko70dkkfjNGcjdrtTk2DXdJHKhUudOx 3GJKjklQFMrovzYm+6ex7/NH9YbAj5O278iLszdVGisUV2tPF49sZmC4G/4r9UFe8G1k 86Pj7LnaFYWNJOOCVIF5G8mfC7tqueUvm/5sph+Spt4QiLkY4GuOIdPm9Bd5qn5t/irK oTsTXXUyKDqtANv6gfCtjun0aC61bryVyJD7hOtJvTmbADIE4tOGfSg7Ac9wT8R3GndM n3dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gZOTmtnWEFQUkbXRKZIuuuBgkyTQZIl5niQhKB+ESqE=; b=aiq6qje/cshlvTMuIOj3dM8IZ0wVCp7f+tHz1SB5WHqibvLhGgHHRzQP1F4Qk3WKyL IZzITP5OFNmrDnJhlSm4CddOCyTrPYqeiRiuRZphXzUPdktTO3PtBO8raImrcQNwJm47 9J6+dZNTi4gPrxV4OJq7ogb627rnZXGr3VV+sBkpmMUTLm2hf25/9l0wf+/dwHIjatq4 Q+0TvNlMBfehrFOE4MhjgDTbgJtG3KV3N91Z5uS6aaphGu7zOJUgOemLaHfl+BcjglYE JUC8d6rRTsLzRjYaf0hyg+ycqiLYJvci5L4RlVfpEJAERxXXoB0++fX7Qel04qdmLVbd 0J1A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si8491632eda.264.2021.06.21.11.46.22; Mon, 21 Jun 2021 11:46:46 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbhFUSpO (ORCPT + 99 others); Mon, 21 Jun 2021 14:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbhFUSpN (ORCPT ); Mon, 21 Jun 2021 14:45:13 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B683C061756; Mon, 21 Jun 2021 11:42:58 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 74C881F8A3; Mon, 21 Jun 2021 20:42:57 +0200 (CEST) Subject: Re: [PATCH net-next 5/6] net: ipa: introduce gsi_ring_setup() To: Alex Elder , davem@davemloft.net, kuba@kernel.org Cc: robh+dt@kernel.org, jamipkettunen@gmail.com, bjorn.andersson@linaro.org, agross@kernel.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210621175627.238474-1-elder@linaro.org> <20210621175627.238474-6-elder@linaro.org> From: AngeloGioacchino Del Regno Message-ID: <85327e60-ecb0-7525-23d2-0917f9c2472a@somainline.org> Date: Mon, 21 Jun 2021 20:42:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210621175627.238474-6-elder@linaro.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 21/06/21 19:56, Alex Elder ha scritto: > Prior to IPA v3.5.1, there is no HW_PARAM_2 GSI register, which we > use to determine the number of channels and endpoints per execution > environment. In that case, we will just assume the number supported > is the maximum supported by the driver. > > Introduce gsi_ring_setup() to encapsulate the code that determines > the number of channels and endpoints. > > Update GSI_EVT_RING_COUNT_MAX so it is big enough to handle any > available channel for all supported hardware (IPA v4.9 can have 23 > channels and 24 event rings). > > Signed-off-by: Alex Elder Acked-by: AngeloGioacchino Del Regno