Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2948858ybi; Mon, 10 Jun 2019 01:20:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX6k9ZW5RGu1WmZS9RUSav4LksjgBy9Eud0UyioDZ81U9639VXE1MTltRMH+jXDZgf+0ao X-Received: by 2002:a17:90a:20c4:: with SMTP id f62mr19832506pjg.16.1560154829468; Mon, 10 Jun 2019 01:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560154829; cv=none; d=google.com; s=arc-20160816; b=arx0QipeX8WIrQ7pHLObzubKBLMG02C3EaZX2nxs70uk0kUlo6lO2RTh1R//jELYLI dt32ErCcBxAWi+H8Pa3lVMOLwiZaMdEvOjVvmWP88eEUs9qdEdRvRF+TWrPyYBYU7HbM knHL3dtODtAw+/12aKRUVeJV6LbcrpGJvAMxIuT5mm35DrDrqQe3z+0KFA9t+qOCpCuT DpqF6lZEGzfHT5VJpvhZmYcYSUBTWH6c27jvVvtzuLa0R91p1yBlw1c6Oi0lSG66jh9Q Ks2sU2DK+qg6OptO1LCzPM4Q13eXkQLkJyK+FUEsl/jyJ7iLnXwRRGAOGVashNl+TeFy A3dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qmnYKC1qyGjCEEpx+GS0CG1eSU5LKCPu9wRrrxY6D24=; b=Vp01POqVgxAMUTN33n9/f5MTAQGzLvv5zQeOUt8vhcM+TlRRUJz9dnPsDnOR3gL8jp 1MznA77SWjTaz73HJaVgof3y4OXQP20bGFf4gtxbShI5/SaG/eOUnMWo/2L4l1kuzJwN yGqA0FFkItjlPj+eLKJMjgeLm8UTiW4+U9Ma8qVL48yniatVOIMxouXC8kEqvAJyfhaV fMyHYdLkgtDFGKsSChA3nQZsmwKGTztQaWJ8G5Q0HcCgCegBaArviA3v/9mboegw4MMy RA1pam5cb2Af3jQK1cXaehE57IL7o/6nxg+VWqe/0LM4D3KiHvn3KYo+26pXl3wMFe5V WI5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si8604314pgk.503.2019.06.10.01.20.14; Mon, 10 Jun 2019 01:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388547AbfFJISy (ORCPT + 99 others); Mon, 10 Jun 2019 04:18:54 -0400 Received: from verein.lst.de ([213.95.11.211]:42185 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387825AbfFJISy (ORCPT ); Mon, 10 Jun 2019 04:18:54 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id C36F768B05; Mon, 10 Jun 2019 10:18:25 +0200 (CEST) Date: Mon, 10 Jun 2019 10:18:25 +0200 From: Christoph Hellwig To: Larry Finger Cc: Christoph Hellwig , Aaro Koskinen , Christian Zigotzky , Michael Ellerman , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook Message-ID: <20190610081825.GA16534@lst.de> References: <20190605225059.GA9953@darkstar.musicnaut.iki.fi> <73da300c-871c-77ac-8a3a-deac226743ef@lwfinger.net> <20190607172902.GA8183@lst.de> <30000803-3772-3edf-f4a9-55122d504f3f@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30000803-3772-3edf-f4a9-55122d504f3f@lwfinger.net> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 08, 2019 at 04:52:24PM -0500, Larry Finger wrote: > On 6/7/19 12:29 PM, Christoph Hellwig wrote: >> I don't think we should work around this in the driver, we need to fix >> it in the core. I'm curious why my previous patch didn't work. Can >> you throw in a few printks what failed? I.e. did dma_direct_supported >> return false? Did the actual allocation fail? > > Routine dma_direct_supported() returns true. > > The failure is in routine dma_set_mask() in the following if test: > > if (!dev->dma_mask || !dma_supported(dev, mask)) > return -EIO; > > For b43legacy, dev->dma_mask is 0xc265684800000000. > dma_supported(dev, mask) is 0xc08b000000000000, mask is 0x3fffffff, and > the routine returns -EIO. > > For b43, dev->dma_mask is 0xc265684800000001, > dma_supported(dev, mask) is 0xc08b000000000000, mask is 0x77777777, and > the routine returns 0. I don't fully understand what values the above map to. Can you send me your actual debugging patch as well?