Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp674452imm; Wed, 17 Oct 2018 06:38:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV60WdyIo8zRnQQ6BsEIISq4TaenXvZEKhuPvlKhWGb2j3MjEI5LmU/gfkNwPTA4TopzRui5p X-Received: by 2002:a17:902:70c3:: with SMTP id l3-v6mr26823684plt.125.1539783538538; Wed, 17 Oct 2018 06:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539783538; cv=none; d=google.com; s=arc-20160816; b=g1YnRvLmeqRhAH3kdyEsPUqpiN5xm6boG72SRcrc2TiP0VeCW1nPRNzqC8P5whasnx 3PvVCoibW+VritzrrFM2idFlMaBWPt+R3A9XikhW954/lbrboXfYRXxkTcID0ydCHmtK YEhI4HQk6SmRWPt4Ixqv6UO+f2NvI5I3w7Cs6mNf1g9WzfUyammNR/VAaaZJ0tBYJw1f QZadokSzbsLmUTav0JL3fxYGUbJmMcENDbMS1im8UIMpAlqJ6NZZBGnIpT+5nVaXo364 Els4WyFDMb5SaLMr8Rdv07F5owh22ybpzjt75XQSRl9ATtCDtGmmZymw0SUeUiArVghX Bjtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=y5EUDX803PiowWWGJP/xW4a3xMrgwy9l/YNKviS+1pc=; b=NrqcGuNk/DcDG8CsKsSJSIjxTzZkUyuOLFsJYCvak+JARRWIi0OyjKE4nUmDCsGJDD Je4/SVyGr1gqbleoZAREB+iFVG84cAsNqDDi99m/kDrQPPlp43zoKeW3Yb4sqp5VCenq KOl4yk3YkDAgkMYtr7VUWG9JeLetH0TvYo259CYaA2q9mvqBaV+iuLnx9jEJZC8DxVyo /IoYi7bGQxQlcWookpe/0Y5MUGdRYjiLxPtLN5eYO26KQR6VqkMtf9/quHra30iPH1VP Mzgod+/FRyOZXsTNjdsn5Uh8hjHsbyDvIpYQI7thmlsBg6DePLI47Kby4L6iqnTklQbg 7yKw== 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 u22-v6si16952689pfn.111.2018.10.17.06.38.43; Wed, 17 Oct 2018 06:38:58 -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 S1727132AbeJQVeE (ORCPT + 99 others); Wed, 17 Oct 2018 17:34:04 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:42651 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbeJQVeE (ORCPT ); Wed, 17 Oct 2018 17:34:04 -0400 Received: by mail-ot1-f68.google.com with SMTP id c23so24395698otl.9; Wed, 17 Oct 2018 06:38:19 -0700 (PDT) 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=y5EUDX803PiowWWGJP/xW4a3xMrgwy9l/YNKviS+1pc=; b=t/mHToNfUgc+Mb52STYO4A0DqMGXTuvB6xECxxdytlDKbu/F2rm+fC7kxk6pehcgue DrBbInPfiWsl0kN2oaIF9BKTbp5VRQKTLPw+HnBvaReWoEhcRQ3i9VIp0wFE2KHrDAGr GpHly4KNJZERuH5MeQF64jYq/dMWxmlBfJDBoAmt4r1gy/uu4zYPUbsG+90NqnW1rea1 SGc2s6ss7cJ/UGjYd84YZYf6OtuMlqKgbUqjHv2SR/+AJkXNSuubSJQMxXL9VDvEh0MQ nPQ2gdBvkIOCbr75kpeeHdCF7PV1vUtd2OG3nqBg5tCxQOVmcJrWLgcXipNLGMpGaW5C N3Zg== X-Gm-Message-State: ABuFfohu/hxArCBPoDhvfyUnM16RcHHqBVJNq6h7TtxaQH9a3vm+mMof j5c8XCeDi5mIvPJTSNBnJhisO1ob89JbPPp+kDFZAX4VUCg= X-Received: by 2002:a9d:488e:: with SMTP id d14mr17599624otf.354.1539783499285; Wed, 17 Oct 2018 06:38:19 -0700 (PDT) MIME-Version: 1.0 References: <20181014170431.GK3461@darkstar.musicnaut.iki.fi> In-Reply-To: <20181014170431.GK3461@darkstar.musicnaut.iki.fi> From: Mathieu Malaterre Date: Wed, 17 Oct 2018 15:38:07 +0200 Message-ID: Subject: Re: Bug report: MIPS CI20/jz4740-mmc DMA and PREEMPT_NONE To: aaro.koskinen@iki.fi Cc: Linux-MIPS , linux-mmc@vger.kernel.org, LKML , Ulf Hansson , Ezequiel Garcia Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Oct 14, 2018 at 7:04 PM Aaro Koskinen wrote: > > Hi, > > There is something wrong with jz4740-mmc in current mainline kernel > (tested v4.18 and 4.19-rc, the MMC support for CI20 does not exist > prior those), as the DMA support does not work properly if I disable > kernel pre-emption. The console gets flooded with: > > [ 16.461094] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 567 host->next_data.cookie 568 > [ 16.473120] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 568 host->next_data.cookie 569 > [ 16.485144] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 569 host->next_data.cookie 570 > [ 16.497170] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 570 host->next_data.cookie 571 > [ 16.509194] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 571 host->next_data.cookie 572 > [ 16.532421] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 572 host->next_data.cookie 573 > [ 16.544594] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 573 host->next_data.cookie 574 > [ 16.556621] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 574 host->next_data.cookie 575 > [ 16.568638] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 575 host->next_data.cookie 576 > [ 16.601092] jz4740-mmc 13450000.mmc: [jz4740_mmc_prepare_dma_data] invalid cookie: data->host_cookie 582 host->next_data.cookie 583 > > etc. ad inf. > > This should be easily reproducible on CI20 board with ci20_defconfig > and setting CONFIG_PREEMPT_NONE=y. Since CONFIG_PREEMPT has been 'y' since at least commit 0752f92934292 could you confirm that the original mmc driver (kernel from imgtech people) did work ok with PREEMPT_NONE (sorry I did not do my homework) ? Thanks > A.