From patchwork Thu Nov 12 12:11:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 324177 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp280391ils; Thu, 12 Nov 2020 04:12:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJ1P4CrTAwsM9Xeg1FwG1ZhemSwFxiYLUsy8Bem6l9EWwEafIVaUtXu/M3rqyCQ93c13+6 X-Received: by 2002:a17:906:ca83:: with SMTP id js3mr31190073ejb.42.1605183133069; Thu, 12 Nov 2020 04:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605183133; cv=none; d=google.com; s=arc-20160816; b=bboqSNXX7ytLcxj6yKtyqw1Kf97bhPZrTIEJE4TmBZUEgHxfrlf42xUMca6/5RpLGE ukRmjaywNzBX6PWkH4bg+4OaiPEYz7OuuEPiR18UgVEYAhyKHyB9JZu2OqMegZU17E12 KekyCpPc1Fgsp70+EG8DX1GfI5oNrt48CP6IxJPGh/gBU1m0HW+hftjixY6qY6taTwDu JVYtyC1hzYuUSK3x+vNr9Vke5wEN+w21CkXh4iQ89t9Dima0U2KK2dbb+c7xqD3sMwOL sv5cJj+CtNBz/Hj4he3NBhZH+itjDlGNwbIr4SK398uv3Nmg8n2tLM/sdM2nrIJQY2sS v3Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0z9Su447OPUlHIEYfLPhmXqBnr1rEvvT1M7lmEXZzGk=; b=VdU5PJT+9VVrsjM82rfW3Pk5p3waOo0ROGIdAkbb+yz4RTczn4H3KVGYlzkCROBte8 vd3HepE0WUEPGnVzeBOlTvrtKe5EzxqUU1PtEPwOHjdUaiFiR9MxrVB7OKGSFrGp0Pex 8kjkIGp3DjJpNwYFw8LkyUVETuY/JPTkZ825ZtEKEt2QdQ9yBq8QCArQQl4gdN7c5mZQ E3fj2aZlYdjH6Duu4BNG23YMrqT5WOyXHchmKVp7w6N3z2x1iVFSBcDKhm/ZyM+mr+R4 9YmDdq/iUI3PZw9VKW1ax1BxIJwnEKveHGmFU6Z1YOAnOT5fgODtii3z1WtgPzwDJcwf Bovw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mAvmCj4i; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm13si3832446edb.281.2020.11.12.04.12.12; Thu, 12 Nov 2020 04:12:13 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=mAvmCj4i; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728069AbgKLMMH (ORCPT + 8 others); Thu, 12 Nov 2020 07:12:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728003AbgKLMMC (ORCPT ); Thu, 12 Nov 2020 07:12:02 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACBEC0613D6 for ; Thu, 12 Nov 2020 04:12:02 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id p7so5770589ioo.6 for ; Thu, 12 Nov 2020 04:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0z9Su447OPUlHIEYfLPhmXqBnr1rEvvT1M7lmEXZzGk=; b=mAvmCj4iAAwVkMzvQQdU9BOE9ZQe/Ou5+PwdAZRZzGhdykJywK2+nLEN/RrB0+KNdq eNMsS9RrvhZi9FAX2kMbYvJPZJVMREgdngIjDApBwI1A1xFF2/y1qbogL62W7w40e4RU UCXBsSrzSwSeRIn1oYu4yFBS3pNWpho3EpPgpfsOG7wOxCJq5q04n4neG0EXk92HzZbC 79CUKDQDinFKkGOMzP6JKT9usk9B2O0LpJFPNm1bWC/2fveGxe8TE5OsYG1kZN5XTPk/ l1nztzq3ogy8IMfNnJAxqcFOiG8ZBbATOrBYqqm2pxrcu5JuWud8Wg6IaOsMr1aXknA7 8nlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0z9Su447OPUlHIEYfLPhmXqBnr1rEvvT1M7lmEXZzGk=; b=A5Klv+sIOjvnciuaQ3zmE0jIociGKNTIM0jNtGVlJcT2XQ811bpppZ1W0vADqFE/IB F+aWDGBMj7zGDqlLh14v5i/XhhzlOYy/WCGmfj40n3GEjB3BJUzMpOx66WJ4aY6yz10N EhNfiMLTLSSTs5BPvtpOVX1ZOvgNkkwrSdyQH8xxYvbL/BpmB6RKvSaggfDp+CG9S6+H NWv5uYxOFWEWJHktSZMlTfzjTRtkx5Bz9cYMbtz/GGQsr5VnTLmhqvaw1OSVUCjDjhQn bT0VkM6R5EYRHlFlWhhfO4uRq2j87bKwF8WWk0ys9cwVSmsMZ5QRz7oRk4sm78QUUpox Zckw== X-Gm-Message-State: AOAM532GFe3iYNDTLd7jAB8LA1pRj5HL9QPYLLBteldqlBNw9b8bGI3i BntFpkJiN5GsmFp/OOR4NYR3kQ== X-Received: by 2002:a6b:630b:: with SMTP id p11mr21931296iog.97.1605183121958; Thu, 12 Nov 2020 04:12:01 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id i14sm2609563iow.13.2020.11.12.04.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 04:12:01 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/2] net: ipa: fix source packet contexts limit Date: Thu, 12 Nov 2020 06:11:56 -0600 Message-Id: <20201112121157.19784-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201112121157.19784-1-elder@linaro.org> References: <20201112121157.19784-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org I have discovered that the maximum number of source packet contexts configured for SDM845 is incorrect. Fix this error. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_data-sdm845.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_data-sdm845.c b/drivers/net/ipa/ipa_data-sdm845.c index a9a992404b39f..bd92b619e7fec 100644 --- a/drivers/net/ipa/ipa_data-sdm845.c +++ b/drivers/net/ipa/ipa_data-sdm845.c @@ -150,11 +150,11 @@ static const struct ipa_resource_src ipa_resource_src[] = { .type = IPA_RESOURCE_TYPE_SRC_PKT_CONTEXTS, .limits[0] = { .min = 1, - .max = 63, + .max = 255, }, .limits[1] = { .min = 1, - .max = 63, + .max = 255, }, }, { From patchwork Thu Nov 12 12:20:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 324179 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp286055ils; Thu, 12 Nov 2020 04:20:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMZCB+7LPMFb8qqAkc7quDupci6PD8QUPbpQdbPxwuG1ymJhNmulf859AQrdTMIeFPJ/i+ X-Received: by 2002:a17:906:2f10:: with SMTP id v16mr29143290eji.320.1605183613241; Thu, 12 Nov 2020 04:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605183613; cv=none; d=google.com; s=arc-20160816; b=Mtg7qvsSBpdquO54OD4gF3g0maSBHqTXsSOUJ2+zh7DcFzS1O/sL/nNpqxdY0VdTXm /EAaWFrBO+AvqbWDGWyi3MFoYMe/hKJs+KRxNoWoO0rfCBLiTCZdzPtTElD3sQJOoqJS 4DmTafTWZHIEGIcXr3oTdPmiWaK/bv4UprESSRPNad0cddEm7Y6FnNng9aFGQEYvuSaL y4dEodqdLzi5pO/kwTptO4Dsn0QHFd6GEmCXR/PBOhE/q7rUYkeNdUH1fvRqC1x9O3kE YdN6sBAm7MnomB3anPz+IcQoqnOB8IhuBgFprcgS2e5OMUPM4uj7R9MxE2aGJ8QkzBYb lhpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=In7lGYAPg7k6XHE/cTWuwiu111uti31Lfo+OqvxAd5DjwuOH2xIuwm9S9hzPC2g3Dv NJUCr4USJpfShborI67fQs3fqkLsfsCf+4QV8qbKHKhLH75H53JXpmNq2Q2VVZRxrxoU aW7Nd6zzGScGbgt4f/DiCxjOI3e/71y8CZGm2I16/ssWhHblgBOitN7vDIzJJpUBupeu m5kyosAOiZB/Nxa66yWQrjPGGGy6bpjPyLfg0OuZn1LQ06OvsUgrbYu6iK3zQC+UYC/4 ORt4w+WxfWloQ3pAt7CCxJyt7QzRCYg2HMIj8piOg6ufQ3BNZOFODHRpgHXtaqQPIS2G TS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C668CrY1; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si3871428edp.113.2020.11.12.04.20.13; Thu, 12 Nov 2020 04:20:13 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=C668CrY1; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728073AbgKLMUI (ORCPT + 8 others); Thu, 12 Nov 2020 07:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727789AbgKLMUH (ORCPT ); Thu, 12 Nov 2020 07:20:07 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FF30C0613D1 for ; Thu, 12 Nov 2020 04:20:07 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id y17so5062265ilg.4 for ; Thu, 12 Nov 2020 04:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=C668CrY1de6Ifr8xbe4dcJaTJ8AojI3HzTemGQD+gegAMiMiyRUE8KlQ2tqgAJczHb zjsJnfG9n3PkTTAX8e20y6vahZ+EHuR3BRA1YEBvb4Ru57NNqjitIRYfnkn+csqtvYt5 MYNZvPkaYxtcZRhEgX5uwbM6MB6JjYfG2f1f/d6i1TMCVqLjt83qE+kVFuvA6sVSSWrC 1M12EC8B6lcaqDBlsNSSHEkbM7E1tsBEIssLmxnPUm/gabJwogXtOqS6sNzydh1GxLpc Gsv76gclozNDeBodzuLAa0aFIpPRBQN6NIOClr7uJ6yq0un1jcRr+pj/UjloY5PQmlRr e+ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=oEL6zgIV3r8E3y6/X9vq4IC6k/JlqznNZt4guOW2DwHjiU+1YKaJTbzjp/OMmbWXZV s91e54bSFV0TJIidl8A6OLHl4ELpxQTk/FEbHtXEEgrlR8rqSwwLsbXKJnMiJ+2WEl0F MqlC9UqizgAlaOBUfk4OQypovVAvrTs0QtDXpbIhnFa4mgHTd1PEfPmGSGitR08k4y4g O4QMzT9gU4IRclgoSaELPQQREe3sJTG+THvPlF1VKuBLtZ5LU4pi3GymHldJSpof/y1I 8++IzXbrk+mqOO23k5lic8m5zNSG5mMrhwcZkgpWT3wfLyIOl+W563d+QRYXqur7BLSE JDIw== X-Gm-Message-State: AOAM530JMvIdoQAixAoFG7iAr+l45JziLZZM9Mf0KO6S+wm9o2blzvmz i1DG2nfvKK3dDbF4hUgM5PHyRQ== X-Received: by 2002:a05:6e02:2cc:: with SMTP id v12mr23629975ilr.115.1605183606897; Thu, 12 Nov 2020 04:20:06 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id k18sm2696996iow.4.2020.11.12.04.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 04:20:06 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/2] net: ipa: ignore the microcontroller log event Date: Thu, 12 Nov 2020 06:20:00 -0600 Message-Id: <20201112122000.20089-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201112121157.19784-1-elder@linaro.org> References: <20201112121157.19784-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The IPA-resident microcontroller has the ability to log various activity in an area of IPA shared memory. When the microcontroller starts it generates an event to the AP to provide information about the log. We don't support reading this log, and we can safely ignore the event. So do that rather than treating the log info event we receive as "unsupported." Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_uc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_uc.c b/drivers/net/ipa/ipa_uc.c index b382d47bc70d9..15bb357f3cfb1 100644 --- a/drivers/net/ipa/ipa_uc.c +++ b/drivers/net/ipa/ipa_uc.c @@ -129,9 +129,10 @@ static void ipa_uc_event_handler(struct ipa *ipa, enum ipa_irq_id irq_id) if (shared->event == IPA_UC_EVENT_ERROR) dev_err(dev, "microcontroller error event\n"); - else + else if (shared->event != IPA_UC_EVENT_LOG_INFO) dev_err(dev, "unsupported microcontroller event %hhu\n", shared->event); + /* The LOG_INFO event can be safely ignored */ } /* Microcontroller response IPA interrupt handler */