Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp50315lqs; Thu, 13 Jun 2024 03:37:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4Loa+KOez7HWVOpFW+Aem6HkBtnFcLYWHkdUXimkMtWanjbsZrjcpgqAN7FHd2tNSS3PWonDfbBzzwgU5EIfjG8Sp3VdxKZ8yz2zAaQ== X-Google-Smtp-Source: AGHT+IGleXpEzvfjy55EfyxAL04uMMCV0cMq0frW0nat/n0BKmykm5qWcXzshNohITTgmkmZrMzL X-Received: by 2002:a0d:df50:0:b0:61b:342e:91ae with SMTP id 00721157ae682-62fbd6a5561mr40130497b3.36.1718275028016; Thu, 13 Jun 2024 03:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718275027; cv=pass; d=google.com; s=arc-20160816; b=jo7dZRjrPmy8DPfgXkJeSIwYuDEJ+0VPf3H7Pn5vyadt6IVXIjxJHbBAHCvipKiGeE SR7sWrkTEUIYYbTPe2VSx9bc0VAD67fOz4jXbpixQnAeARy/zHA3ar6gc2YFcuOyFyfr 5T+xPfopAyP/WNp82IArGh1Fg1fNLaHSATpfLT+S1ncdB5B45wzqok92az/4ojNTGIiE 7TMncnUgGO5NN+Pna9XateMWep0+cSYB/gLLJTVhnabdzYHVbIfPw06Uy1kfR269nAmD gGx9sxrYM/0fRqZV+gVtMsyBPwzsloy9FPiymJa60aZ7jBe2G9IzQh1BHQKh8emZYgFE dDyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=kR/M9fhOaHDFyEmiaJYa3IfzhmNFE97O5AlCdd5wYN4=; fh=KLp5pZjHSA3c8VmlVDlFKlJ/rXyyv1AWDH+YLNrg5aM=; b=h4u8uat0dHBdK8Jugypqu7vpZzsz9sBjZaAlJeJu4CjwSOPDqan12xBVHvsqjObHYT 9PnGxaQ4xt4X2iEzrNcpKpc1wHFvOJw/rN5GM7w3+MaRXgThwiRS+etU0GouQI1i6ZU1 MYMB8aJEye1G9LJqZjF7FKJgaqOmJRvNQSqCJP7qqrLVLE58sMhodcyNWhU/0eB9QQqB hQc/2qIfeAe2Dvk2ZOBTc+LEiC5dW3L85LIB3PhVlnjJn9bIVE+Ju4B2CnSPM5HjJYVn 44BY+0WzjH95un2zXmns5JQb1cdmKlql+KLUldYUM016Aof5TLz5g22P+63T8PKHp+cn Kj7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="tP/qLcG6"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-8969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b8a587si11162626d6.562.2024.06.13.03.37.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="tP/qLcG6"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-8969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B90DC1C225EB for ; Thu, 13 Jun 2024 10:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85CA3140E3D; Thu, 13 Jun 2024 10:37:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="tP/qLcG6" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57EF414262B; Thu, 13 Jun 2024 10:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718275026; cv=none; b=ZdnUmmE7Vcugu3tz5cUvAu0mVP6fWswgQsPogys+V2oRLiYeVMV/Y+9d/e0OyjbzpKyjCHk0pN2G2ZoxVUN/SrqFmadntYkw0cv0SXtDcoe9D6iT+oYl2/sPYlO71urwyNMGq+aqgFKBL5LifqsYkl0Mufo5YUosp/lgmMIRBPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718275026; c=relaxed/simple; bh=uXc9YMgZvjPSnogTTkBnlabraBR7pN2hBx8kzpuQjsg=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=I0HCn08pIVrC4k2OTe8a8JYDT48dT+unawk6i6wlFGfq3DLxY8wiMtgCQy6mptES29NrpZYa6ZCh4yKihMe4VHvyc/V8g+UBXm+YwqU5Y0rx8ZUpp7I9zi3spH1BWXd6as0sI8OWjUx7BDrQ+0IS2saeaxEcLsgWPpXSMkLckFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=tP/qLcG6; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=kR/M9fhOaHDFyEmiaJYa3IfzhmNFE97O5AlCdd5wYN4=; t=1718275024; x=1719484624; b=tP/qLcG6cPdUIbHI0amRWpEc7WI0uQNB5gSQqAxNmt1HCgU 6yjWYT9uNH3duui+aM/+BmOvKHg9OzqQ/RyKJXFsdeAzUUr49FUVOpQqKrwEiki1nUHPUlfjEffhB bk+RGkoL9e/M6cJJXBv6maF0vBhcqxPFB89EUOb6YAID12GTV2fy2PaNCPmy6XQCGL8+3H6w5MTyW MgWQ2RFoo9H+rg6dps8GGRQ/ko0xhvvb+6fG81nG1pByJ0uA2PCNQ046MpVBRzm86xhsAhJM3PRmG YZP9xsDeU/MpALQO+9PsbxfVMzxbDdPRbaHS4+3MphPNmZoTxh1l0ZEOV0eOp0yA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sHhpD-0000000BhFP-3cQ9; Thu, 13 Jun 2024 12:37:00 +0200 Message-ID: <6e556f7b6b769c4d70be3e248b98d8d09d51452b.camel@sipsolutions.net> Subject: Re: iwlwifi: Regression after migrating to 6.6.32 From: Johannes Berg To: Baochen Qiang , Fabio Estevam Cc: miriam.rachel.korenblit@intel.com, kvalo@kernel.org, Jakub Kicinski , linux-wireless , linux-kernel Date: Thu, 13 Jun 2024 12:36:59 +0200 In-Reply-To: <35750452-e362-4dfa-803a-3360a4e16cd8@quicinc.com> References: <3fbb5317d9ff33ef1b60ca8297537335ce86a79d.camel@sipsolutions.net> <95163ee547da95964c16f87a38d3326ae4da3253.camel@sipsolutions.net> <7a8e220d77d7e30a0cfaf984404ef2f57eaa785f.camel@sipsolutions.net> <50101085cba7fc089339c96f531f797e27c632ff.camel@sipsolutions.net> <35750452-e362-4dfa-803a-3360a4e16cd8@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Thu, 2024-06-13 at 17:51 +0800, Baochen Qiang wrote: > >=20 > > Not sure that means anything though, I really would have expected a 4k > > buffer to be 4k aligned - why would you even want to map it across two > > pages? > IMO SWIOTLB manages buffers in a unit of IO_TLB_SIZE, it does not care ab= out whether or not we are crossing page boundaries, no? Well arguably it should have some 'natural' alignment guarantees? > >=20 > > If it is SWIOTLB, shouldn't we get into this condition? > >=20 > > /* > > * Historically, swiotlb allocations >=3D PAGE_SIZE were guaran= teed to be > > * page-aligned in the absence of any other alignment requireme= nts. > > * 'alloc_align_mask' was later introduced to specify the align= ment > > * explicitly, however this is passed as zero for streaming map= pings > > * and so we preserve the old behaviour there in case any drive= rs are > > * relying on it. > > */ > > if (!alloc_align_mask && !iotlb_align_mask && alloc_size >=3D P= AGE_SIZE) > > alloc_align_mask =3D PAGE_SIZE - 1; > >=20 > This is not present in 6.6.32 stable kernel. >=20 Oh. So I guess try to pick up commit 14cebf689a78 ("swiotlb: Reinstate page-alignment for mappings >=3D PAGE_SIZE"). johannes