Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3050A2C9C for ; Thu, 13 Apr 2023 12:09:30 +0000 (UTC) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1a51d304648so7870825ad.3 for ; Thu, 13 Apr 2023 05:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ozlabs-ru.20221208.gappssmtp.com; s=20221208; t=1681387770; x=1683979770; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fC7swCqsGSVufMz0OK23aCUiXDDf/Z3zzgbfOWg5le8=; b=x3vx9Uo1rrzHddyhS+Ef+EuNqHBsOCAlNvJHJNluECyCUQuB4Vlvar1HUbh7xVFxW+ f974NDZu+MrmT0zvzITq1/HTGIr1eXXlVjuI9fifbL0LWfa40Fd7WWd2bJILbG+Oah+n iHcNLw+hb29itvIl2rN/6DLkveIrEZfQ5KhIO0A+Ci7xUuw5UZE9eCpY6pQytFfh3mHY ptDqRa8kSKcUH2M7qxRrNwuZUMo8lljnvjoZA5RKh/yakL2Fx8cxDykXY6RtfLAWZ6gN HavOzWcCryPvT7PtDq2FDHT8qMUnVtm3SrKXPij4bKpeXTO4oEgdUkmd8NHBXIsLl1Nx 0Zjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681387770; x=1683979770; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fC7swCqsGSVufMz0OK23aCUiXDDf/Z3zzgbfOWg5le8=; b=J1sh11IJgk+kFSwnwZoGEsq7AAUesIgF/A/Pd5L82X2JSM7LhEoHcLdcjm8L4C9gO4 IufiUMOR+hQgsX8SAI2dYHBbNF3aLgA+4zEJ5ZSeJhHacpOAUwBTYZKBv4/y0Ugz9P8y L3v11pFFy0lGx3DCGYdecf4o61p7SvMnG2+sv/hKSKhc+v0wby2gIT+qkYzMF0tO1c/q ePeA7kVUWLK/asU7j/SkbvaUAFUeJglPsfh8JijvpgCp56NNHPKdfiwdW1O1Kh2phXPk gvCIAwkPVXRhaGtf79rCdyRC0TmgDW4RbLnWcyxNbgwEifFonj1el2IgzC4sh4v6verH RC3A== X-Gm-Message-State: AAQBX9etCPqYltAMlj+vL00lUeDCQ/0wE6gbaPjNna/uDGiO/ABgS7MS bMSRNKJ7CTVrWNGof6ZS02cAXw== X-Google-Smtp-Source: AKy350ZCF3nJLzyOo/4fodCdTblbeeVhBN/n9MvGBg3lmPySenM5YKV7BN2lNGhcody9LlFr4Vwenw== X-Received: by 2002:a05:6a00:1a4d:b0:63b:1bc7:c703 with SMTP id h13-20020a056a001a4d00b0063b1bc7c703mr3290601pfv.10.1681387770184; Thu, 13 Apr 2023 05:09:30 -0700 (PDT) Received: from [192.168.10.153] (ppp118-208-169-253.cbr-trn-nor-bras39.tpg.internode.on.net. [118.208.169.253]) by smtp.gmail.com with ESMTPSA id t26-20020aa7939a000000b0063b54ccc123sm870148pfe.196.2023.04.13.05.09.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Apr 2023 05:09:29 -0700 (PDT) Message-ID: <2a80cb20-0c9f-2d0c-e951-c4f005f3e4b3@ozlabs.ru> Date: Thu, 13 Apr 2023 22:09:22 +1000 Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Thunderbird/108.0 Subject: Re: Probing nvme disks fails on Upstream kernels on powerpc Maxconfig To: Michael Ellerman , "Linux regression tracking (Thorsten Leemhuis)" , Srikar Dronamraju Cc: Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, sachinp@linux.vnet.ibm.com, Linux kernel regressions list References: <20230323095333.GI1005120@linux.vnet.ibm.com> <906d4d0e-b487-00a5-9399-7d1edc5e20a4@leemhuis.info> <87bkk2khl0.fsf@mpe.ellerman.id.au> Content-Language: en-US From: Alexey Kardashevskiy In-Reply-To: <87bkk2khl0.fsf@mpe.ellerman.id.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/04/2023 15:45, Michael Ellerman wrote: > "Linux regression tracking (Thorsten Leemhuis)" writes: >> [CCing the regression list, as it should be in the loop for regressions: >> https://docs.kernel.org/admin-guide/reporting-regressions.html] >> >> On 23.03.23 10:53, Srikar Dronamraju wrote: >>> >>> I am unable to boot upstream kernels from v5.16 to the latest upstream >>> kernel on a maxconfig system. (Machine config details given below) >>> >>> At boot, we see a series of messages like the below. >>> >>> dracut-initqueue[13917]: Warning: dracut-initqueue: timeout, still waiting for following initqueue hooks: >>> dracut-initqueue[13917]: Warning: /lib/dracut/hooks/initqueue/finished/devexists-\x2fdev\x2fdisk\x2fby-uuid\x2f93dc0767-18aa-467f-afa7-5b4e9c13108a.sh: "if ! grep -q After=remote-fs-pre.target /run/systemd/generator/systemd-cryptsetup@*.service 2>/dev/null; then >>> dracut-initqueue[13917]: [ -e "/dev/disk/by-uuid/93dc0767-18aa-467f-afa7-5b4e9c13108a" ] >>> dracut-initqueue[13917]: fi" >> >> Alexey, did you look into this? This is apparently caused by a commit of >> yours (see quoted part below) that Michael applied. Looks like it fell >> through the cracks from here, but maybe I'm missing something. > > Unfortunately Alexey is not working at IBM any more, so he won't have > access to any hardware to debug/test this. > > Srikar are you debugging this? If not we'll have to find someone else to > look at it. Has this been fixed and I missed cc:? Anyway, without the full log, I still see it is a huge guest so chances are the guest could not map all RAM so instead it uses the biggest possible DDW with 2M pages. If that's the case, this might help it: diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index 614af78b3695..996acf245ae5 100644 --- a/arch/powerpc/kernel/iommu.c +++ b/arch/powerpc/kernel/iommu.c @@ -906,7 +906,7 @@ void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl, unsigned int nio_pages, io_order; struct page *page; - size = PAGE_ALIGN(size); + size = _ALIGN(size, IOMMU_PAGE_SIZE(tbl)); order = get_order(size); /* @@ -949,10 +949,9 @@ void iommu_free_coherent(struct iommu_table *tbl, size_t size, if (tbl) { unsigned int nio_pages; - size = PAGE_ALIGN(size); + size = _ALIGN(size, IOMMU_PAGE_SIZE(tbl)); nio_pages = size >> tbl->it_page_shift; iommu_free(tbl, dma_handle, nio_pages); - size = PAGE_ALIGN(size); free_pages((unsigned long)vaddr, get_order(size)); } And there may be other places where PAGE_SIZE is used instead of IOMMU_PAGE_SIZE(tbl). Thanks, -- Alexey