Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp751405rdb; Sun, 18 Feb 2024 10:01:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWt3bOwhtbe1try4bRmWdbr45wKxRublBcCm2k+tPCQkDyUk96eGNTWGkjh+lCcXTIIbcx9dcJCgg7AeXYpt/0JDi2M0SDEQCW+e99Nuw== X-Google-Smtp-Source: AGHT+IG7edSzhUXt6DejE2eT6LJNeDoXHoW6VIUibB/70sR1L9H1HE9cmMt0EueiW8g9LsJ0Aw2P X-Received: by 2002:a67:eb47:0:b0:470:4093:7008 with SMTP id x7-20020a67eb47000000b0047040937008mr3177900vso.21.1708279278587; Sun, 18 Feb 2024 10:01:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708279278; cv=pass; d=google.com; s=arc-20160816; b=Bao0pdo9RK+K9E8fsl0jm9kpGspjyKTUhe94w6kmIZwOY+9KHgt4pFjDSufP+6dkeo ZxuuCabKWKdHP5QlAHyYzqADccJy5K+NY7E0kqAsmEhvLlLiKSqb/mzNnlFNLbcIYzd0 rzh5UgxQugIMTkFc14+UQpshwI6rp7eQqGF5RXYrvVUP6kB9XrmLyzEaP6VZwRPaDxD8 +ftQkCIpCYynUs1FmxJIZ0i4HpJORYsUv6b9YB23RJutHjx+FE2JOmw++hA08NKU6LgU V2syJy9SFx4JVCzd6N40rrpwJpHctfBN3c+k1J/qQqp3rluLN2h/5EF5zC7nTrT6VQTI Qf0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=quMoPaWpXWCQDD7AudZDFvu9H4YW7qFIGpmJ794No4I=; fh=tVd/ul9Ci4dZyXREQofLaBJ5fGLugLRJV3m9s2fZ+TU=; b=zte587Vb+jZaMuJKAl9HCEEZQNjXoLrFrsbhT0xsOeEErVYByesyb+TQmI1ibhKcLx kFn6IfmyA8PEFbxzjZ/BUcxpdas8zNOcj98Rzjt+EJnv69waMBPoe1TpmYOeKNCISmcG ytltQRaNpn+xRTfMo5a8i/3K2Zg3gkfkvDkRIhBFfjRWzW3jjcXse0G03DvKeWq1b9HJ afOpjAvA7JHT0SU4tKBhJi9NzEceCINyva08AoxbZLe+nCvZBQCDDdUvzadz7q8SpkcT rzGWIkCXkKxQab7uejpnQbtZueBeLTgejR3PPmwhr9a5y5yDnuepAXn+9kl/RoutF0rN GDhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=QuM4DklR; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-70472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s17-20020a67e351000000b0046b11e6b14dsi575146vsm.817.2024.02.18.10.01.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 10:01:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=QuM4DklR; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-70472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz 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 534421C20EFD for ; Sun, 18 Feb 2024 18:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D34076F07C; Sun, 18 Feb 2024 18:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="QuM4DklR" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 C133129401; Sun, 18 Feb 2024 18:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708279270; cv=none; b=TrPUwndHvJs+mG0B1Oc4sE2tGMd+HQQ0v2GZIIk5kovWl13ub5oWRrKHU9GqZZ7msnB6AyhZwQvMa5K3I+qgYWuRNbvpq9rDueHSvSxhp4WYIB8eio00sU/tYlUTImv3g+ab8Iup0OTPxuqxj0ZjLi+vqgjlmUMPvPY2jiFfjgo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708279270; c=relaxed/simple; bh=B+/6lKwrogpWO25ewC/hiNS4xmBE433AT/5hrUIRSAM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fp9wWnB4yTvGhIGYshOgtIDVsxHiW8Od3ALat6F7dJ9LHfdKQ/QGHfhW1AH3N/+4di4a0TJRii1RSG38vwOoSoqXnN0sP9V1LoqGg/PyLC9ErVpAwRtMtJqs250FOoJSBhYHjAcwoicrYj1b8CG0vB6GY5ar8vnHpnlX9OWy8hM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=QuM4DklR; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E86181C006B; Sun, 18 Feb 2024 19:01:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1708279265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=quMoPaWpXWCQDD7AudZDFvu9H4YW7qFIGpmJ794No4I=; b=QuM4DklRVP3x2VtSXyf29BTnTyqHaMVe89Zy3qbgZokmvI9v8S2GDqpbPsK81gWeVWebP0 DaYhDiI256UtjI/JCTuwh6pSswonLhipjTCU3El+8RaESDmcy/jvqzL/gzMfuJ6Yizlywv 4YoaqF7nHUnpXT/ZM6colI4rN8wprJ8= Date: Sun, 18 Feb 2024 19:01:05 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dan Carpenter , Bjorn Helgaas , Niklas Cassel , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Manivannan Sadhasivam , jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lpieralisi@kernel.org, kw@linux.com, linux-pci@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.1 23/28] PCI: dwc: Clean up dw_pcie_ep_raise_msi_irq() alignment Message-ID: References: <20240213002235.671934-1-sashal@kernel.org> <20240213002235.671934-23-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oOSR12Xp1ziJzYR1" Content-Disposition: inline In-Reply-To: <20240213002235.671934-23-sashal@kernel.org> --oOSR12Xp1ziJzYR1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Dan Carpenter >=20 > [ Upstream commit 67057f48df79a3d73683385f521215146861684b ] >=20 > I recently changed the alignment code in dw_pcie_ep_raise_msix_irq(). The > code in dw_pcie_ep_raise_msi_irq() is similar, so update it to match, just > for consistency. (No effect on runtime, just a cleanup). Just a cleanup, we don't need it in stable. Best regards, Pavel =09 > +++ b/drivers/pci/controller/dwc/pcie-designware-ep.c > @@ -528,9 +528,10 @@ int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, = u8 func_no, > reg =3D ep_func->msi_cap + func_offset + PCI_MSI_DATA_32; > msg_data =3D dw_pcie_readw_dbi(pci, reg); > } > - aligned_offset =3D msg_addr_lower & (epc->mem->window.page_size - 1); > - msg_addr =3D ((u64)msg_addr_upper) << 32 | > - (msg_addr_lower & ~aligned_offset); > + msg_addr =3D ((u64)msg_addr_upper) << 32 | msg_addr_lower; > + > + aligned_offset =3D msg_addr & (epc->mem->window.page_size - 1); > + msg_addr =3D ALIGN_DOWN(msg_addr, epc->mem->window.page_size); > ret =3D dw_pcie_ep_map_addr(epc, func_no, 0, ep->msi_mem_phys, msg_addr, > epc->mem->window.page_size); > if (ret) --=20 People of Russia, stop Putin before his war on Ukraine escalates. --oOSR12Xp1ziJzYR1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZdJF4QAKCRAw5/Bqldv6 8vf4AJ4o/jGq/kmWV+QMUeG3I4szSZ4hlgCgiBDLYKaidLZEgsXTlmoz+/hUa8o= =pFQ8 -----END PGP SIGNATURE----- --oOSR12Xp1ziJzYR1--