Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1081094pxb; Fri, 13 Nov 2020 03:50:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdu5e3SH5f2BwwdYeKwEfqpOZIMZmKp1NHiXp5sLSC6KqLBqDK06GdEKY2jfxV/UjbmpEk X-Received: by 2002:aa7:db57:: with SMTP id n23mr2211124edt.208.1605268239598; Fri, 13 Nov 2020 03:50:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605268239; cv=none; d=google.com; s=arc-20160816; b=s3wBHGMhRCNtK5z4JrlS1swGPWJjTyeKVi+gTwmDNG1NhgltoAyAi2f+raP7c7Z97D cXGMvNdREU0GhD2NY2vVkmjGQGgiQqYaB++lrRsf6UQyqquuFGdOiN85ZktLI6HLiVes KcDL7V49OxQ6VZCYwvNROVXy6vYeaL6bjTmKhKlyAxOlKIfNsiBD6e6rBBaBB/q5J81L XTayd3yPoRXqzKodULQus/KaeNr1jObfwZY9euhMs/kE5qY7aTK7n6bubzTkOES2YQWi NybrQw0L5OID0xzkqR7RGFqjaNFL+Fhue4Ywk9gI4/pn3YvL9cLG70yOa3H1Rb1fmvIj omYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=8D/P2NUOwr9dXGs1xXx6ou3TEUU+cru+7sF8Q++MqwY=; b=ukC8GuRM2pWaNSO/iAK8PR4rfYUIpcZoey2up/C7acB1tjdzifjeHy6HlgViyhA5Nn q4nlPogIpfhpjMTJd0ymUXe8VRmBuWFWtAAcDvfSO/jKo8sK+dZ7kM1aPD510oTUPLSM VQuivvBMsfoPGQRohxIPSmpmAzl9gvUoW/TEfGr2KKeRvGUfH8qbJWX6EwMyGpY5jaeD lE8biz+1+5xAQeWuQ4oi2tPlWaVuQKFcYvFI8W3VWrRdh6sv7vAqtggQIhEw9/4N/OoN k02s83VbXz5bK3tcbN8ejflL8KXGBbUVTKK6UHwXxtuYzDNd1VA6wKBRvRlLsGqW2fUt CnFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pOXifuoY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 o60si6508394eda.61.2020.11.13.03.49.49; Fri, 13 Nov 2020 03:50:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@mg.codeaurora.org header.s=smtp header.b=pOXifuoY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgKMLqB (ORCPT + 99 others); Fri, 13 Nov 2020 06:46:01 -0500 Received: from z5.mailgun.us ([104.130.96.5]:28308 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgKMLob (ORCPT ); Fri, 13 Nov 2020 06:44:31 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605267855; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=8D/P2NUOwr9dXGs1xXx6ou3TEUU+cru+7sF8Q++MqwY=; b=pOXifuoYJk2ZPzXN/1rPgRumIhnDTvbzL/X3XVxwOjqysZtUr+VNAhJ/68SRUtLW3Hoco1Gd j91aMAzgLPTsMQWhtHt6WLZBFRNTlhy/0y9vXtQAxKTxNveRm+ZWDlYtUO9PYBAd/HLikhQC NJUneNT5W83LtPbCwaa4C5TI2/k= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5fae718df34fcfd5e57e8ab3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 13 Nov 2020 11:44:13 GMT Sender: cjhuang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8D4ECC433C9; Fri, 13 Nov 2020 11:44:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, LOTS_OF_MONEY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cjhuang) by smtp.codeaurora.org (Postfix) with ESMTPSA id EB530C433C6; Fri, 13 Nov 2020 11:44:11 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 13 Nov 2020 19:44:11 +0800 From: Carl Huang To: Pavel Procopiuc Cc: David Hildenbrand , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka , akpm@linux-foundation.org, ath11k@lists.infradead.org, Kalle Valo Subject: Re: Regression: QCA6390 fails with "mm/page_alloc: place pages to tail in __free_pages_core()" In-Reply-To: References: <8ACA82DB-D2FE-4599-8A01-D42218FDE1E5@redhat.com> <87eekz4s04.fsf@codeaurora.org> <9d307c40-5ea1-8938-819d-f1742cb99945@gmail.com> Message-ID: <056b74d48fb735c69a6268b18184d7e8@codeaurora.org> X-Sender: cjhuang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-11-13 19:08, Carl Huang wrote: > On 2020-11-13 16:17, Pavel Procopiuc wrote: >> Op 12.11.2020 om 11:48 schreef David Hildenbrand: >>> Trying to understand the code, it looks like there are always two >>> rounds of reqests. The first one always fails ("requesting one big >>> chunk of DMA memory"), the second one (providing multiple chunks of >>> DMA memory) is supposed to work - and we do allocate memory. >>> >>> >>> In the *working* cases we have >>> >>> Respond mem req failed, result: 1, err: 0 >>> qmi failed to respond fw mem req:-22 >>> ... >>> chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff >>> >>> We don't fail in qmi_txn_wait() - second request w >>> >>> >>> In the *non-working* cases we have >>> >>> Respond mem req failed, result: 1, err: 0 >>> qmi failed to respond fw mem req:-22 >>> ... >>> qmi failed memory request, err = -110 >>> qmi failed to respond fw mem req:-110 >>> >>> We fail in qmi_txn_wait(). We run into a timeout (ETIMEDOUT). >>> >>> Can we bump up the timeout limit and see if things change? Maybe FW >>> needs more time with other addresses. >> >> I tried increasing ATH11K_QMI_WLANFW_TIMEOUT_MS 20 times to 100000 >> (i.e. 100 seconds) and it didn't have any positive effect, the second >> error (-110) just came 100 seconds later and not 5. >> > Checked some logs. Looks when the error happens, the physical address > are > very small. Its' between 20M - 30M. > > So could you have a try to reserve the memory starting from 20M? > Add "memmap=10M\$20M" to your grub.cfg or edit in kernel parameters. so > ath11k > can't allocate from these address. > > Or you can try to reserve even larger memory starting from 20M. > To guarantee ath11k doesn't get physical address below 32M, reserve some more, for example "memmap=12M\$20M".