From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C904C433FF for ; Wed, 7 Aug 2019 05:44:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1579E21BF6 for ; Wed, 7 Aug 2019 05:44:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbfHGFof (ORCPT ); Wed, 7 Aug 2019 01:44:35 -0400 Received: from verein.lst.de ([213.95.11.211]:34469 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbfHGFof (ORCPT ); Wed, 7 Aug 2019 01:44:35 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 843B768B05; Wed, 7 Aug 2019 07:44:31 +0200 (CEST) Date: Wed, 7 Aug 2019 07:44:31 +0200 From: Christoph Hellwig To: Sasha Levin Cc: Robin Murphy , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Fugang Duan , Christoph Hellwig Subject: Re: [PATCH 5.2 073/131] dma-direct: correct the physical addr in dma_direct_sync_sg_for_cpu/device Message-ID: <20190807054431.GA6475@lst.de> References: <20190805124951.453337465@linuxfoundation.org> <20190805124956.543654128@linuxfoundation.org> <20190806124143.GF17747@sasha-vm> <9dd82745-1673-afc3-5eb4-8b79ddb5824b@arm.com> <20190806220448.GN17747@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190806220448.GN17747@sasha-vm> 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 Tue, Aug 06, 2019 at 06:04:48PM -0400, Sasha Levin wrote: > On Tue, Aug 06, 2019 at 01:57:56PM +0100, Robin Murphy wrote: >> Given that the two commits touch entirely separate files I'm not sure what >> the imagined dependency could be :/ > >> From the commit message of 3de433c5b38a ("drm/msm: Use the correct > dma_sync calls in msm_gem"): > > Fixes the combination of two patches: > > Fixes: 0036bc73ccbe (drm/msm: stop abusing dma_map/unmap for cache) > Fixes: 449fa54d6815 (dma-direct: correct the physical addr in dma_direct_sync_sg_for_cpu/device) > >> 0036bc73ccbe is indeed not a fix (frankly I'm not convinced it's even a >> valid change at all) but even conceptually it bears no relation whatsoever >> to the genuine bug fixed by 449fa54d6815. > > Given that Rob Clark asked me to drop 0036bc73ccbe not because it's > irrelevant but because it's potentially dangerous, I did not feel > confident enough ignoring the statement in the commit message and > dropped this patch instead. 449fa54d6815 fixes swiotlb misbehaving vs the API spec for the call, something that real users on x86 cought. Robs fix works around the fact that msm is badly abusing dma API. So even if both are genuine bugs it is pretty clear we need to decide the match for the proper users of the API and not the single abuser.