Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1185403ybh; Sat, 3 Aug 2019 20:04:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8xQCWSkwHB1IJsFPHqyfBYQlCVE8v1coQBW7GhB22lauQvJADE/rIHTweIvQKvd7Tn9jr X-Received: by 2002:a17:90a:898e:: with SMTP id v14mr11782007pjn.119.1564887848853; Sat, 03 Aug 2019 20:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564887848; cv=none; d=google.com; s=arc-20160816; b=QMQblK4GRt0y+XqP3S7ac9V7PJ1GPDIl9G+NjGr3puGZJBBlk71ZybC0Bzx8COKqLw ThZAFR1TRC1CeXfw26VfwAFMFiAA3KtkH1aZ1Gh6czuMB5jDtfBQ7K7O5dEn6YZVw5gy puW35uAmJtlHc/BNvwBY9eihFtGoiv0++zl45fc1cL2qvzVaLfi82T+EciKhIpxGuPDU 0BukXOPOQDUMiNgAZplGZmeOhOpBWHIkrrHdYdwaUt6ePQYi/8Js/J3EU+Fcutw4EpJr GaXse9e1YCcRZoDP5ljeXn3tPSS1f4uL4rIe57TaF3/mDghmMF9XMm+tkS9RVqwpQ8e3 fPRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=LMgCnInAgR86lIqDlCcWh/2NQrbAT105A/wu07sO/cI=; b=Zdesl4M7L4BwrqvVX4E2mpMhiFrblBRND2g3uyHCyNSG/n98oZpJ8+W+iK+EwsANOS orgKimQTGzf03YAKfPIy/XdJCnUeBuAwiiNyCRm0PfpziemAoMIGza1nc/9IF6yY569J hlRE5uGMQKOyOV+j0OOZwR+OaO+/+eQQYcgknNa+qxa5kvpaxMdgwViTfBvEWVWg5mUU LBGhO7RxwIgvJ+7is9mH9pv1Mvj9g7e5scfqCk4AWEUuTRT7FcNgA9E72gXHIuHQYBLx vfcqwGDi5OSCNEA7/Ddmy0Mo5JjapviJoxV9Ju5C059185CzPySwutmn4pUe5JOdPojs fqMg== 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 az7si9607934pjb.51.2019.08.03.20.03.53; Sat, 03 Aug 2019 20:04:08 -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 S2395016AbfHBViB (ORCPT + 99 others); Fri, 2 Aug 2019 17:38:01 -0400 Received: from verein.lst.de ([213.95.11.211]:56230 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726059AbfHBViA (ORCPT ); Fri, 2 Aug 2019 17:38:00 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id BE1CD68AFE; Fri, 2 Aug 2019 23:37:56 +0200 (CEST) Date: Fri, 2 Aug 2019 23:37:56 +0200 From: Christoph Hellwig To: Rob Clark Cc: Stephan Gerhold , Rob Clark , Sean Paul , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Subject: please revert "drm/msm: Use the correct dma_sync calls in msm_gem" Message-ID: <20190802213756.GA20033@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hi Rob, I just saw your above commit in Linus' tree, which is completely bogus and misunderstand the DMA API. Next time you have any issues please Cc the relevant maintainers and mailing lists. But even more importantly get_dma_ops is an completely internal API, and whatevet your helpers are trying to do is bad - if the dma wasn't mapped at the time you call the new sync_for_device helper, this is broken because you can't call dma_sync_sg_for_device on unmapped address. If it was mapped it is bogus as well as you can't double map it. Please describe what you're actually trying to fix and we're going to work on a proper solution, but this shot from the hip is just going to make things worse.