From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C0A6C433E0 for ; Fri, 31 Jul 2020 07:20:33 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D3612084D for ; Fri, 31 Jul 2020 07:20:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bCG2wkUz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D3612084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 43DD987A74; Fri, 31 Jul 2020 07:20:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MWQyujl787Tp; Fri, 31 Jul 2020 07:20:32 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 7992B876E1; Fri, 31 Jul 2020 07:20:32 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5162EC0050; Fri, 31 Jul 2020 07:20:32 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 02CBFC004D for ; Fri, 31 Jul 2020 07:20:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DE5CE87A74 for ; Fri, 31 Jul 2020 07:20:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x2fbKFK+9P-w for ; Fri, 31 Jul 2020 07:20:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 57CB9876E1 for ; Fri, 31 Jul 2020 07:20:29 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id k20so8271311wmi.5 for ; Fri, 31 Jul 2020 00:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M/BQPRp/I/sbPp0G/yBSYfbDdAIYhLKyUo0rJbIKRgQ=; b=bCG2wkUz+omQIP9S5n//fxPaNsiFnSP8XYllSV46Ly16xsehp3ECMr8Gf+8qSPt+b+ ZcmGbLovhBPNbuWZ9gke9W5vbLAt9EOmBXpqz+YNXR3abVLrZiY8XZsWoQvPG3xnJ+zW FtrJWaAmMT5Qor4cNE1qv4xX3wKGpBfOYmKnypoplHF7+inYWEEH0gjE/rJUZOvnjMqM mEndDkg2HS7uq1VgTEM99jLk0R5RjPVrC3DnEBmwilbq8zEIbzdCIBEYacuN0bTtw2R3 /ziZKE3k55uibWz79is5PNQcwkVzb7FZ+Oavlx5dhfVJ6u2pFi2ePJZtx3gYSjPR4QZI hPxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M/BQPRp/I/sbPp0G/yBSYfbDdAIYhLKyUo0rJbIKRgQ=; b=NlPgl5gx4kICDi8NQjYMYSJehsMq8/L8FFkLOdgqa1F/ZieLRETDslJE5ypOHovjXj 1+3BypVF+lpz01rbLIUUIQrllqVkfQyrS8pbRnI5mHhnyD1mIl8XY6sZSMWZoxigfHg3 n9CjxAsZr0pM4IxAxDvQgKFP41Q7nNo6ajE81LfY7CJPQ6jpsMRcWggX61d33kHd9fKS LFZRjrbcXocO94p+5kUpKA6/3/U7+B2WSIMm4jk9FzhwGEyBS5AjlFbkOAWk0j6QTec1 9Orp0cwFhquupeDuHmiqzvxky+I1BdiItHj/MT4GgNdVnxTOO4HDUpmz3KAGkqIwzVXY b+gQ== X-Gm-Message-State: AOAM531No6/wk1niFlt0rdQonzT+VNtoHKy335C7dVYPjvtHndw15DtH Eu7IKuzHzqlyHreVovwadRxuCBr3p/TqKaKR8ltfcA== X-Google-Smtp-Source: ABdhPJwZA3g8We2giJUDUafKmdU7lx9J8qF66cxr/eNmiu6F7PfeQbZik1QyrrP9wi3tgy2DxYorVzoXPsRyvX37Rb8= X-Received: by 2002:a1c:5a41:: with SMTP id o62mr2669888wmb.16.1596180027809; Fri, 31 Jul 2020 00:20:27 -0700 (PDT) MIME-Version: 1.0 References: <6db722947546221ed99d3f473f78e1a6de65d7d6.camel@suse.de> <0dc1e922bf87fa73790e7471b3974528dd261486.camel@suse.de> <20200724134114.GA3152@lst.de> <20200728091335.GA23744@lst.de> <20200728100918.GA26364@lst.de> <20200731011004.GA729998@ubuntu-n2-xlarge-x86> In-Reply-To: <20200731011004.GA729998@ubuntu-n2-xlarge-x86> From: Amit Pundir Date: Fri, 31 Jul 2020 12:49:51 +0530 Message-ID: Subject: Re: [PATCH] dma-pool: Do not allocate pool memory from CMA To: Nathan Chancellor Cc: lkml , jeremy.linton@arm.com, Sumit Semwal , iommu@lists.linux-foundation.org, John Stultz , linux-rpi-kernel@lists.infradead.org, David Rientjes , Robin Murphy , Christoph Hellwig X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Fri, 31 Jul 2020 at 06:40, Nathan Chancellor wrote: > > On Tue, Jul 28, 2020 at 12:09:18PM +0200, Christoph Hellwig wrote: > > Ok, I found a slight bug that wasn't intended. I wanted to make sure > > we can always fall back to a lower pool, but got that wrong. Should be > > fixed in the next version. > > Hi Christoph and Nicolas, > > Did a version of that series ever get send out? I am coming into the > conversation late but I am running into an issue with the Raspberry Pi 4 > not booting on linux-next, which appears to be due to this patch now in > mainline as commit d9765e41d8e9 ("dma-pool: do not allocate pool memory > from CMA") combined with > https://lore.kernel.org/lkml/20200725014529.1143208-2-jiaxun.yang@flygoat.com/ > in -next: > > [ 1.423163] raspberrypi-firmware soc:firmware: Request 0x00000001 returned status 0x00000000 > [ 1.431883] raspberrypi-firmware soc:firmware: Request 0x00030046 returned status 0x00000000 > [ 1.443888] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.452527] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 0 config (-22 80) > [ 1.460836] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.469445] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 1 config (-22 81) > [ 1.477735] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.486350] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 config (-22 82) > [ 1.494639] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.503246] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 3 config (-22 83) > [ 1.511529] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.520131] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) > [ 1.528414] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.537017] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 5 config (-22 85) > [ 1.545299] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.553903] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 6 config (-22 86) > [ 1.562184] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.570787] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 7 config (-22 87) > [ 1.579897] raspberrypi-firmware soc:firmware: Request 0x00030030 returned status 0x00000000 > [ 1.589419] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 > [ 1.599391] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.608018] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 1 config (-22 81) > [ 1.616313] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.624932] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 1 config (-22 81) > [ 1.633195] pwrseq_simple: probe of wifi-pwrseq failed with error -22 > [ 1.643904] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.652544] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 config (-22 82) > [ 1.660839] raspberrypi-firmware soc:firmware: Request 0x00030041 returned status 0x00000000 > [ 1.669446] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 state (-22 82) > [ 1.677727] leds-gpio: probe of leds failed with error -22 > [ 1.683735] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.692346] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 6 config (-22 86) > [ 1.700636] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.709240] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 6 config (-22 86) > [ 1.717496] reg-fixed-voltage: probe of sd_vcc_reg failed with error -22 > [ 1.725546] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.734176] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) > [ 1.742465] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 > [ 1.751072] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) > [ 1.759332] gpio-regulator: probe of sd_io_1v8_reg failed with error -22 > [ 1.768042] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 > [ 1.780871] ALSA device list: > [ 1.783960] No soundcards found. > [ 1.787633] Waiting for root device PARTUUID=45a8dd8a-02... > > I am unsure if it is related to the issue that Amit is having or > if that makes sense at all but I can reliably reproduce it. > > v5.8-rc1: OK > v5.8-rc1 + d9765e41d8e9e: OK > v5.8-rc1 + "of_address: Add bus type match for pci ranges parser": OK > v5.8-rc1 + both: BROKEN > > I wanted to test the series to see if this fixes anything. If you would > prefer a different thread for this or further information, please let > me know. Hi Nathan, Here is the patch series: https://lists.linuxfoundation.org/pipermail/iommu/2020-July/047008.html https://lists.linuxfoundation.org/pipermail/iommu/2020-July/047010.html I hope it works for you, it didn't work for me. More details in this thread here: https://lists.linuxfoundation.org/pipermail/iommu/2020-July/047009.html Regards, Amit Pundir > > Cheers, > Nathan _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu