Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1022250ybi; Sat, 8 Jun 2019 00:26:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHP82H+JabvvNmdbntXboBdukO5GmyuMEhx2YPUnXfZLhWjZoR3ycf0s3tcFGDFqyl3ekx X-Received: by 2002:a63:a36f:: with SMTP id v47mr3971412pgn.117.1559978766508; Sat, 08 Jun 2019 00:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559978766; cv=none; d=google.com; s=arc-20160816; b=agSEKhcI2ZkYT7S6AfC+woIbyX+tjFe9qB8R/k5C6POlTGnmDjEOFELjtbtsf1qShQ Rjslyqy1Bz7gEJXZwplMlLxRMBtcKUb7HVJITKBRaiN19a8rA1jJzQh7elSN3ZLZiEUn o2T/OylOqNPiMHd0DVfn2cWAEnIeXcEOVHjtD8XINmfG9G+TCFhycd33aPJHT/MViPvk CLy4t095U1gniyI1mSNji5X3cvK4y1NXItptdYt6v2CA+GWUBl1c6IyeBm3azZX4Ogsb mlU4sVCbfJCUpa5GyIEulPnyEO0YYBkQhtVh8OU7yWi09H0RubTZ0jDnBbstMxkY23qx MTdQ== 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=Vxh6yu7h/EQH9e3s2hZlIG+4OKu7a+Vk2LUX/OtpDZA=; b=QMzlpc+xm9Q0xOAvggGu+/SNTGzVmyiG6JbDKuHpi5NNVwIcChSxtWqY8QkZXA62Wt RFfklXi1RzfBQkrxHHgOy71WhpsslREBZXxgA5L9gAN6WZA8Burz82YMFSd+8hubZNOn OE7bHj2G5JJDguW33O+eCDT/20DIbgOEoJfZm/KojB2AInQEPYWMBiqogVX2K7dEcGOv kzsd9Ku/qA2TXFTW5LzeNm7dB9aYdSzVdc6sme69m14wgnbp4fuAV3i/pGLlKTW1mQQU kynBHvdIG2mt+n5r0ZNHXz+Xmac7K+puXRnd28BWl2ul+ty2Sm3qZjl//NgfCuUR26aS ZCiQ== 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 k193si4140794pgc.473.2019.06.08.00.25.49; Sat, 08 Jun 2019 00:26:06 -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 S1727216AbfFHHXu (ORCPT + 99 others); Sat, 8 Jun 2019 03:23:50 -0400 Received: from verein.lst.de ([213.95.11.211]:60411 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbfFHHXu (ORCPT ); Sat, 8 Jun 2019 03:23:50 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 7E63E68B02; Sat, 8 Jun 2019 09:23:22 +0200 (CEST) Date: Sat, 8 Jun 2019 09:23:22 +0200 From: Christoph Hellwig To: Benjamin Herrenschmidt Cc: Larry Finger , Aaro Koskinen , Christoph Hellwig , Christian Zigotzky , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook Message-ID: <20190608072322.GA18896@lst.de> References: <20190605225059.GA9953@darkstar.musicnaut.iki.fi> <73da300c-871c-77ac-8a3a-deac226743ef@lwfinger.net> <7697a9d10777b28ae79fdffdde6d0985555f6310.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7697a9d10777b28ae79fdffdde6d0985555f6310.camel@kernel.crashing.org> 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 02:21:23PM +1000, Benjamin Herrenschmidt wrote: > > > Please try the attached patch. I'm not really pleased with it and I will > > continue to determine why the fallback to a 30-bit mask fails, but at least this > > one works for me. > > Your patch only makes sense if the device is indeed capable of > addressing 31-bits. > > So either the driver is buggy and asks for a too small mask in which > case your patch is ok, or it's not and you're just going to cause all > sort of interesting random problems including possible memory > corruption. Well, my patches changes ZONE_DMA to be 30-bits instead of 31, and thus should allow requesting a 30-bit mask to succeed.