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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34951FA373F for ; Mon, 24 Oct 2022 20:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbiJXUJy (ORCPT ); Mon, 24 Oct 2022 16:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233098AbiJXUIg (ORCPT ); Mon, 24 Oct 2022 16:08:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64E340039; Mon, 24 Oct 2022 11:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=rmYsPiQAe01mPUbVVVEiS6SzJmrWKoOMvVqAUcXlI3E=; b=tv4ds0D7DIvDaukA98ZSEiuXsj 5bqFYvG7Kxc26coWWzyB01UmgmfRdJ9NHPgGN6+MQ7K4t49rWSudQCsuaeA2oImMNf7NVrvZZ9/uD LvzpmEf/Q3O+XSsEElVRnf67XBDZEQpKYSLXlClNzP2bbrz/OL+1qNcB8wfxo54awzWM5rIQW5SQ/ mR7WVWNmsqKU02JvuN3+2ectX7Y6LsXwS8vxfIVuIqrpT2VhpH1Qyb4ulEE9SK5kFgYa/qJZTiELn BbRs/CqIvv5s4bT0EFrEYnFdKZlIxXYw4/DTUf4Iv1wnoozDaByH7HaF9dz2HWVwJ+sJRQ7vuPAgn 7hdtcQuA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1on1Jk-002Tzq-40; Mon, 24 Oct 2022 17:32:52 +0000 Date: Mon, 24 Oct 2022 10:32:52 -0700 From: Christoph Hellwig To: Andrew Cooper Cc: Christoph Hellwig , Juergen Gross , "jejb@linux.ibm.com" , Sreekanth Reddy , Bart Van Assche , Salvatore Bonaccorso , "sathya.prakash@broadcom.com" , "suganath-prabu.subramani@broadcom.com" , "Martin K. Petersen" , "MPT-FusionLinux.pdl@broadcom.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "adi@kriegisch.at" Subject: Re: Report in downstream Debian: mpt3sas broken with xen dom0 with update to 5.10.149 in 5.10.y. Message-ID: References: <85ad4508-b979-c792-e92b-01bc16260dec@acm.org> <2fd505a07bd26d76f1166761fa50905414edb7ef.camel@linux.ibm.com> <30a056c8-071f-4259-3253-75e718af619d@suse.com> <858a4288-46ac-d423-a529-b3b77b7fbc8a@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <858a4288-46ac-d423-a529-b3b77b7fbc8a@citrix.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Mon, Oct 24, 2022 at 05:28:05PM +0000, Andrew Cooper wrote: > I don't know exactly how this translates to Linux internals, but most > devices are fine and it's routinely the mpt2/3sas drivers which > encounter problems.  It would be lovely if we could get to the bottom of > this for once and for all. So to summarize my two mails: I think te use of dma_get_required_mask in mpt3sas is wrong, and the dma_get_required_mask return value from xen-swiotlb is also wrong. Fixing either one should fix this problem, and I think we should fix both.