Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1605896imu; Tue, 6 Nov 2018 01:06:25 -0800 (PST) X-Google-Smtp-Source: AJdET5eOwhzGiSuWWrKVIOfu+5AXKh2kmt88/mBqhZae95AEH/Ua9TtltOkOhonwLQIbIl9eIziS X-Received: by 2002:a17:902:20c5:: with SMTP id v5-v6mr25684305plg.156.1541495185736; Tue, 06 Nov 2018 01:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541495185; cv=none; d=google.com; s=arc-20160816; b=YQsMxQthCmPRy5tRdAD2z6yAFPjGvjA6VGCRIIvT9JW9tVyMZ0B5ciqqVaR9pxX704 vSlpaH4f9QWTlViYDPgvV+12tdsmbQv/7XTgyvNZooA31fGI8dS3fM2a36VpCrEbmYPZ ZHqxWVdpiE7CYcj8wuUwxvpY/acLzKQjAbnWvpca1/SRiAQP5iJwLdPPhHorjXFIl49a NZbPweSorg2ki+uUQZj22OCCCsl19A+kypA/f91PRJjIvbxudPJHZKWVuF02/NmDqqdQ zRLnuL/uxVWYwFUEO5M1Z5cjS6WNPyPC10hJAl00fYvvgpw6ioJxqF/U4/D9gcmZ+xmy pk5g== 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=QozFtHw9DeIFZEG/PqgDFPng3WFxmxdo4gRFsZVe2cc=; b=wG4JJ8sJji5BwdTnSF3mZUDUax6HeK/aTwccDKEMJTI0ObJCvy0twb8X+RlVdH++5P BWXRV1iVoae+p5Ia/KqyA3hsgWxtjGlwxq/TcqVYso6dYF/AD8Ajr1oMx3JIt66OQV92 6BTwxwqOykOCv/tI21/0GHsEawdVNeRPcbH41iOoc0u8PmShOFnbnIb+k3lUfQIkSNSR GWJMwyzMCpGRgnLyoO5kRJNYBCrMgStkeJ79n2B3WlTrEfggKFZgq324vf699OjzKXZZ ZIWbTg/s+AbqN5NwptZgeSV9DGuvLLMmZ8x4eIrn6KdZqtiWsBJ1kG/Pj3Vw7fYNvwyc DSPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19-v6si45522814pfh.63.2018.11.06.01.06.10; Tue, 06 Nov 2018 01:06:25 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730290AbeKFS30 (ORCPT + 99 others); Tue, 6 Nov 2018 13:29:26 -0500 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]:60440 "EHLO emh06.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729416AbeKFS30 (ORCPT ); Tue, 6 Nov 2018 13:29:26 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-96-200-nat.elisa-mobile.fi [85.76.96.200]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id B3B6F30133; Tue, 6 Nov 2018 11:05:11 +0200 (EET) Date: Tue, 6 Nov 2018 11:05:11 +0200 From: Aaro Koskinen To: Christoph Hellwig Cc: Robin Murphy , Rob Herring , Paul Burton , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] OCTEON MMC driver failure with v4.19 Message-ID: <20181106090511.GA14958@darkstar.musicnaut.iki.fi> References: <20181026205423.GD3792@darkstar.musicnaut.iki.fi> <20181105220632.GA5083@darkstar.musicnaut.iki.fi> <20181106062724.GA12413@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106062724.GA12413@lst.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Nov 06, 2018 at 07:27:24AM +0100, Christoph Hellwig wrote: > On Tue, Nov 06, 2018 at 12:06:32AM +0200, Aaro Koskinen wrote: > > With the below change, the MMC card probe seems to with v4.19. But it > > feels a bit hackish, don't you think... Is there some obvious simple > > fix that I'm missing? Any comments? > > Please just use dma_coerce_mask_and_coherent in the platform drivers > instead. Tried, but that doesn't help with v4.19: [ 1.290698] octeon_mmc 1180000002000.mmc: dma_coerce_mask_and_coherent(): -5 [ 1.297825] octeon_mmc: probe of 1180000002000.mmc failed with error -5 A. diff --git a/drivers/mmc/host/cavium-octeon.c b/drivers/mmc/host/cavium-octeon.c index 22aded1065ae..f7ce26ba6936 100644 --- a/drivers/mmc/host/cavium-octeon.c +++ b/drivers/mmc/host/cavium-octeon.c @@ -232,7 +232,8 @@ static int octeon_mmc_probe(struct platform_device *pdev) */ host->reg_off_dma = -0x20; - ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); + ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); + dev_err(&pdev->dev, "dma_coerce_mask_and_coherent(): %d", ret); if (ret) return ret;