Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2891479ybd; Mon, 24 Jun 2019 14:49:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzUqwtkte5JrlE6Lm0di7OKNe2171CRBE/zmWnMQT5J32d2oyVd9dv5B0AGeaQWsC/SR3J X-Received: by 2002:a17:90a:d996:: with SMTP id d22mr10183791pjv.86.1561412994416; Mon, 24 Jun 2019 14:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561412994; cv=none; d=google.com; s=arc-20160816; b=WCV0VRsfaADArjPfdU5y53Lf9TXQ0KxaCoYQYSyxaralKTjh8wYhva+KZxEYpEbT0R XDdviEFCQJ/uqzOe6r/u2CRmsIRF2cCGYp2KL0vdU6FKuAJcY+G1qHo7NXDlvNwpvHzy 4tU1XZ2bJpCyvKVVlwninvV8ZBVRvr6LpyFppk1JTJFo6OK4GwqDAqT3gMz6LbBA26oo j5QongqtnSXwhhKSDZxnJ1agOoJYSFuBEOhBOAqO0uKJ/xkizviX81vbE7hn72KNFiHD e4ZaHtx95QlnVQlpthOqajqcEAwKFQ4W61yDIwkRo9jQh5TlMQkYRK9U6RfIwxmpYb8x wozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=hTlxyZfOIT8V5suXoVmF0uxe1pORI6gHXwBgsFNXY2E=; b=OCPIJzevpsCmyLvivJgOuOfgqmEz/SdSOEgs5FLwP7cX4oZPYXqltkS8GwKk0sryBi PMmPVL87alxV8zgA6HXjPyPatlrp18htx8sa6TrG+03bmVcdlTbI2QH2UzaGrhvsK0IB 4JFEPncQ63g8q/N1CvGVZR7gxG5GTEEQlFQZ6EhMpLU+3tfbDlt7GbYOi4Qe/o2fKTI4 wvRyvLTJVltpx87qHMzyMGavmiSUw9q1E90TsGQ3H/eHh/6ftDhBqLadV/zGTcx7nrG5 TsmypHswcqIyuyJd8pnul72ZZfPprlc/IWWNgc86Tt4lzBDGpnxztFbvbBS1u/xZ+tGE rx+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FReORTY3; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si10283917pgj.534.2019.06.24.14.49.27; Mon, 24 Jun 2019 14:49:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FReORTY3; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729905AbfFXTEt (ORCPT + 99 others); Mon, 24 Jun 2019 15:04:49 -0400 Received: from mail-ed1-f42.google.com ([209.85.208.42]:40000 "EHLO mail-ed1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729865AbfFXTEt (ORCPT ); Mon, 24 Jun 2019 15:04:49 -0400 Received: by mail-ed1-f42.google.com with SMTP id k8so23259092eds.7 for ; Mon, 24 Jun 2019 12:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hTlxyZfOIT8V5suXoVmF0uxe1pORI6gHXwBgsFNXY2E=; b=FReORTY3FicfVsQnO8DT5qVNr/U2qRpeJ29xsNIXs9vxw30saCyYTBP2xUAL7Dj6c9 45FHDrhrOJjT2m2Zi5pOfm639hK6hj5J2+5nw0KV2r7HVbLtmB9TXqWSXAjvO+npdfQV O05M/jkD48ccqCuxijOS60kz5mJeUwaxJfiiE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hTlxyZfOIT8V5suXoVmF0uxe1pORI6gHXwBgsFNXY2E=; b=BaKn5dr94HSqKIsrlWsb6HDZzgdWQeUa7mXYYAY5J72qlnWJaTpIOxY01M2pBoZwEV 4u7R2m2dH37J1bCHA4+ALGR2K1uXqj2n9FgsdCcRcdmHXecQzhJzkb7td6cDrOjAqykp NuPhpMPtgr/BdwPk7TY7A4CankdwLblaRw8PQ2OI27In7yUCJcKII8dihbmAox1iuPl6 oNTh8yLHkKQeUdHW8sLjSGFfukV5lUsz2IrUL7Vex0MoZ0VTEr48ZaVYXA9di/AZN2e8 cBEvkEW7k7VZHTmMeRxCOzMLwhdiY7BIe+5XQb85X3GhvE5ywJDCXl8p2rfR+39zYTF4 8p2w== X-Gm-Message-State: APjAAAWooUBS3zXd3BVUGy8DjwUB36HuzR+BMSs5A8wAFIfLoStKHnVY ayDsYr0MJvGCLcFiOoB963Kq9w== X-Received: by 2002:a17:906:40c:: with SMTP id d12mr73447883eja.29.1561403087196; Mon, 24 Jun 2019 12:04:47 -0700 (PDT) Received: from [192.168.178.129] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id e10sm2011846ejx.89.2019.06.24.12.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 12:04:46 -0700 (PDT) Subject: Re: [RESEND] brcmfmac support for BCM4359 sdio on arm64 ?? To: Christian Hewitt Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, Wright.Feng@cypress.com, Neil Armstrong , Christoph Muellner References: <37d2964d-1c2b-51bd-ac98-2cc171aa0c9c@broadcom.com> <30516339-BAD7-40F4-980B-D30CDF504A08@gmail.com> From: Arend Van Spriel Message-ID: Date: Mon, 24 Jun 2019 21:04:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <30516339-BAD7-40F4-980B-D30CDF504A08@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Christian, Here it is. Hopefully unmangled this time. Regards, Arend --- diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c index ec129864cc9c..7be8064c6dc7 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c @@ -785,7 +785,8 @@ void brcmf_sdiod_sgtable_alloc(struct brcmf_sdio_dev *sdiodev) sdiodev->settings->bus.sdio.txglomsz); nents += (nents >> 4) + 1; - WARN_ON(nents > sdiodev->max_segment_count); + WARN(nents > sdiodev->max_segment_count, "max_seg_cnt=%u, host_max_seg=%u, nents=%u\n", + sdiodev->max_segment_count, host->max_segs, nents); brcmf_dbg(TRACE, "nents=%d\n", nents); err = sg_alloc_table(&sdiodev->sgtable, nents, GFP_KERNEL);