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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 66BEFC31E46 for ; Wed, 12 Jun 2019 19:18:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 DC550215EA for ; Wed, 12 Jun 2019 19:18:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=anastas.io header.i=@anastas.io header.b="NFdMmQo2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC550215EA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=anastas.io Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45PGr473c4zDrGx for ; Thu, 13 Jun 2019 05:18:44 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=anastas.io (client-ip=104.248.188.109; helo=alpha.anastas.io; envelope-from=shawn@anastas.io; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=anastas.io Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=anastas.io header.i=@anastas.io header.b="NFdMmQo2"; dkim-atps=neutral Received: from alpha.anastas.io (alpha.anastas.io [104.248.188.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45PGmK4nHyzDr34 for ; Thu, 13 Jun 2019 05:15:29 +1000 (AEST) Received: from authenticated-user (alpha.anastas.io [104.248.188.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alpha.anastas.io (Postfix) with ESMTPSA id 6752C7F6C7; Wed, 12 Jun 2019 14:15:27 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=anastas.io; s=mail; t=1560366927; bh=xXjhrt2IOIeh/1BUcK3GolQywjfdYT1bvIw8xdExjoE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=NFdMmQo2pR/4ZRuuUITUo9J8UJKgrUBUNuFyGSXDfSLPceQ1OVlX1jbiE+W+V/W+Z 2gziER/63mG92YAQ0Y4y8FUXzPme//D1KufbD5cIDgtT3ZV7/LDDzbuDa8f37uIDit MkhQervNlUvMnPavJfSae/1FwDS2VVX4qrZXHe3tsiZzfYCcLjGDdZqwEoQvMz50/j p72Ls+NS3jbT/24VQPrQAN+27cN5+yToT07xNQtfqZUsUfEPhvZ9iGGQY1/OCUCm2h 4IAcSHgW8/YCF5dN+CxO8Tb71iAKUM9etf+U3b4yEfXd/mqWV9Q8EvAxfDCsmU02mx 8V6kAUXjoPMYg== Subject: Re: [PATCH kernel v3 0/3] powerpc/ioda2: Yet another attempt to allow DMA masks between 32 and 59 To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org References: <20190530070355.121802-1-aik@ozlabs.ru> <1e3de274-aec4-6e69-5e37-be15ea888deb@anastas.io> <5ad2a281-6b31-a990-ea9c-06d4c331cd23@ozlabs.ru> From: Shawn Anastasio Message-ID: <382353e8-591c-1ec6-21d5-c81811efb097@anastas.io> Date: Wed, 12 Jun 2019 14:15:26 -0500 MIME-Version: 1.0 In-Reply-To: <5ad2a281-6b31-a990-ea9c-06d4c331cd23@ozlabs.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sam Bobroff , Alistair Popple , Oliver O'Halloran , David Gibson Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 6/12/19 2:07 AM, Alexey Kardashevskiy wrote: > > > On 12/06/2019 15:05, Shawn Anastasio wrote: >> On 6/5/19 11:11 PM, Shawn Anastasio wrote: >>> On 5/30/19 2:03 AM, Alexey Kardashevskiy wrote: >>>> This is an attempt to allow DMA masks between 32..59 which are not large >>>> enough to use either a PHB3 bypass mode or a sketchy bypass. Depending >>>> on the max order, up to 40 is usually available. >>>> >>>> >>>> This is based on v5.2-rc2. >>>> >>>> Please comment. Thanks. >>> >>> I have tested this patch set with an AMD GPU that's limited to <64bit >>> DMA (I believe it's 40 or 42 bit). It successfully allows the card to >>> operate without falling back to 32-bit DMA mode as it does without >>> the patches. >>> >>> Relevant kernel log message: >>> ``` >>> [    0.311211] pci 0033:01     : [PE# 00] Enabling 64-bit DMA bypass >>> ``` >>> >>> Tested-by: Shawn Anastasio >> >> After a few days of further testing, I've started to run into stability >> issues with the patch applied and used with an AMD GPU. Specifically, >> the system sometimes spontaneously crashes. Not just EEH errors either, >> the whole system shuts down in what looks like a checkstop. >> >> Perhaps some subtle corruption is occurring? > > Have you tried this? > > https://patchwork.ozlabs.org/patch/1113506/ I have not. I'll give it a shot and try it out for a few days to see if I'm able to reproduce the crashes.