Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp889622pxb; Wed, 27 Oct 2021 14:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOxbMBO4ejQje9r8pYVyhJ8vlMsMuQo/ID9t5sTTd391caXFn8qxBkq72AgBnjignbHD0G X-Received: by 2002:a17:90b:314c:: with SMTP id ip12mr208738pjb.23.1635370348625; Wed, 27 Oct 2021 14:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370348; cv=none; d=google.com; s=arc-20160816; b=FmI956OGx6MkvGxh3Gs0lDVtaUiDlQPcb+NYEgL+nW/SZ01/wdsTqjHZP9wnNZKJKo rocQhwgWcSTd4JIrYFb0FVT8uHeRk3ohMRQ3+qup4nZII/gvYnyJbSGx4qGNBgucit14 LuWoV2OqLQdLLmNV9cGx/IOOuzCqJaCNmO6wuARUyh3BGPwp0kmdL1183ybiR+Rey92z KnqRhF085ra88tO5SsdaE+YeH9wRzycZEl+YPXFssPX4gTQEt0yZJBk3JcP/8/7IHXZ5 st1kOcmE/Wtb2ggffDo1cEBF6PPF+suwxui9H7vYvKWgDZyeLo9Mtw/kd28UZJNcCU91 R4CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QZE204EdFXCqqeplQIQZFn93510I/ipYoAbmbJM+aPk=; b=gEFRfq8ME/9wA2QAnpei1HHsFcJNl6MZ9dP0SFdULUU5yZMYFHr0wYad58pyyhpiKW hOn4qNNDmASG/8vuml8c4D5nmx2+19uoHLzvJkJLk/Facf4KQw1iH94Nj9D+fvw8pVgk FuEB06ZYXqrZUBwDV/4HW9thBzVmypXGKWQ5itw2pKmw0lmwLbh4R8cGrmxy+4+ncLUS GVni9/Ik1vKa01uNsGNJ76qcm/AUV/ogi5iW7f/A+vmEBZEFdm7yzsHJIRcLBF/bTrUc dMJ+s5YJAfGxaC+CsS0EK6JnRwV0ADYs/nT2ySeS+QQGCGJQeBnS0EQ8XdgsJzXtfJ9D 7bbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qQR/yLJk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1288348pgv.624.2021.10.27.14.32.16; Wed, 27 Oct 2021 14:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qQR/yLJk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235128AbhJ0RYI (ORCPT + 97 others); Wed, 27 Oct 2021 13:24:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232329AbhJ0RYH (ORCPT ); Wed, 27 Oct 2021 13:24:07 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36AF3C061570 for ; Wed, 27 Oct 2021 10:21:42 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id f9so4520148ioo.11 for ; Wed, 27 Oct 2021 10:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QZE204EdFXCqqeplQIQZFn93510I/ipYoAbmbJM+aPk=; b=qQR/yLJkXvFfrSdto2VPUZG+SB2UoWOgA4fQfhs1YUHlTbFHe+YFpsD/kXYkku3Obf +ZSY4SGwXRRtZRCnPyjGToLgEkDTFiUnnJxLnke4N+v4CsWBRVH30r063vrl+DPuL4Yj jLwiIQpQFOwtFjUXfT5u03rWT/DuEiM0+rxvpQ2DLYmxy+T/qrA/rvKsM/0PxvdzP4AX XAaE2iVTGw1TFxGbdMD2oO9tqAGRV6eoT6zKjNIUtnHdfTa19fo2vMUdiAm6XZQ/4WSS WThoj2vkh1yIH4sJ9BzBmiJCDzoPlaJK01pThZwOyO2n1eK9dZCyvnKcxmB213+zu+Po 1Iwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QZE204EdFXCqqeplQIQZFn93510I/ipYoAbmbJM+aPk=; b=hPzav+nPuD/PqQ78XZw9V6v/lhEfvpphAh7B55wG9EfstLIvsV1q9KwkokhS2gaEpQ 8N2T1w/8aNUrvA7VIriXyUvVcyWgF4hr07gdHguF8JasK7+70Dz3kY4Pv5uQZauLiRp8 Z2uhQTuJepj/pPJ5ovIF6dsQSvigu+dMcuNmD6L8TffgkPY++C/cs5pp/0Jq7DJ1V10L t0L5dokTPoxOkEPmhp5MTtAVegeFoStTagLa32uqzfCcJ4DeTstAoxZS3g4Dx8Vp5XU4 h/P190S6HstaQvRQAbA9HAfUfu8QS6qlvLsegQFmeW+sFpFHufvTxEKl+xtDpHSdda8h kkWQ== X-Gm-Message-State: AOAM531ARznQ+/ESt+rwoPjITkpO/BY4DRti5C2/dvrO7j/OOWb30rvX 2fTeSP1D+0iEwyks14/JW79HoJqCaM1vkvM5ukNsaEOaygY= X-Received: by 2002:a05:6602:168f:: with SMTP id s15mr21499612iow.178.1635355301612; Wed, 27 Oct 2021 10:21:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marshall Midden Date: Wed, 27 Oct 2021 12:21:30 -0500 Message-ID: Subject: Re: v5.15-rc7 AMD no kernel dump, spews "scsi_dma_map failed: request for 36 bytes!" To: Logan Gunthorpe Cc: joro@8bytes.org, will@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yes, the spewing of messages stopped. Kernel crash dump taking is now occurring. Patch applied to v5.15-rc7. Reworded: THANKS! Patch works! Dunno why the dmesg isn't right, but at least there is a core image! [I updated makedumpfs for v5.15-rc4 -- applying a bunch of cifs/smb, qlogic, etc. patches and was getting ready for new kernel release in a few weeks -- couldn't debug a cifs crash. :) Down the rabbit hole... ;) ] Intel machine booted, etc. and it has a dmesg correct. *sigh* I don't think "I" need to worry about that. Someone else can report it. /media/parsecdata/crash/127.0.0.1-2021-10-27-12:06:53: total 5283408 -rw------- 1 root root 5410206160 Oct 27 12:06 vmcore -rw-r--r-- 1 root root 0 Oct 27 12:06 vmcore-dmesg-incomplete.txt On Wed, Oct 27, 2021 at 11:41 AM Logan Gunthorpe wrote: > > Hi, > > On 2021-10-27 10:08 a.m., Marshall Midden wrote: > > v5.15-rc7 AMD no kernel dump, spews "scsi_dma_map failed: request for 36 bytes!" > > > > With v5.15-rc (1 through 7), AMD processor kernel crash dumps do not occur, > > instead spews: > > "scsci_dma_map failed: request for 36 bytes!" > > Works on Intel machines, and in v5.14.0 (and v5.14.14) - as well as previous > > kernels (down to v5.3.x.) > > git bisect torvalds repository shows: dabb16f67215918c48cf3ff1fc4bc36ca421da2b > > Reverse patch to tag v5.15-rc7 allows kernel crash dumps to occur/happen. > > > > On careful review I think I see what might be causing this. Can you > please try the following patch? > > Thanks, > > Logan > > -- > > diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c > index cd0f1a593997..3bfb5da87802 100644 > --- a/drivers/iommu/dma-iommu.c > +++ b/drivers/iommu/dma-iommu.c > @@ -1028,7 +1028,8 @@ static int iommu_dma_map_sg(struct device *dev, > struct sc> > > if (static_branch_unlikely(&iommu_deferred_attach_enabled)) { > ret = iommu_deferred_attach(dev, domain); > - goto out; > + if (ret) > + goto out; > } > > if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))