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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4804DC5CFCF for ; Tue, 11 Aug 2026 17:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-Id:Subject:References:In-Reply-To:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cMyTTa5KAjyZtVZZYKXgPBl0VYfKOHY5hZtIr8dRpwY=; b=tte+XE4rD2WlFqYCwokZS8W60G ocRQxUq1qTqLONMNT5CF6lGPOquu9H1G1uLo6Efl/QoQMhfX1GL3bOfQ5Trh4RUdo5qgee7MWMJVo GyN1jDPfqt24Y4n6Ih33KCOayUdduilp4dzw2cH6n7xqkXEwkzrQ0HC/Sq9zzk6sKHBFN+avQiCzX tN2AEYPP7q58mIS4t8rkbJhSdPrpVyr+rRGU2QJNWHDyIw8I4MNNY5xkkmjaJ7qlkPCAZ8bwuIsX5 cAPl60HXbF8OA1m+wXuLfJeHZVh8OJFpdlloxnLBV6s069Y/5O+ILhEPxJ59ufTfth++k48LQhJh4 SXN3gIXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtptF-0000000EaUj-3Xj8; Tue, 11 Aug 2026 17:03:49 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtptE-0000000EaTu-3JAN; Tue, 11 Aug 2026 17:03:48 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 3E5D0600C8; Tue, 11 Aug 2026 17:03:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1144F1F000E9; Tue, 11 Aug 2026 17:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786467827; bh=cMyTTa5KAjyZtVZZYKXgPBl0VYfKOHY5hZtIr8dRpwY=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=j/JpIADsBUI1Do9UvT+M2IL3RJVAsIYBy++rjBQHQQHLLM+d5+h9eruafLfp8U1+3 avw4Ti5i5yCFSJXep9tH9anl4xuTsc3VrqEcrfCzu+cIFOCCRtyB9D2UoiywJhksjA WLRgrAfHQFpN2OP5Rt815NVXPUHyXuJ2orgkDHkYLboUDOj8eP6BpRe/H998SWMsit gmTBu5RqqbtIjMgDe/tsslGoo/i0bkiPJcwPWUFAcV5bwWVF3gGKdmvbkO6W3w+je5 Zq+vYrHT+hufTg8FbMjqkDkQ7OC5L6BfgPs4XXTE7kyC/PKLyaTfBZhGvd7WxTxMaK 2h7MBXrF55fsg== From: Vinod Koul To: Jason Yang Cc: Neil Armstrong , Heiko Stuebner , Sebastian Reichel , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org In-Reply-To: <20260811-dcphy-maxreg-v1-v1-1-aa63f6a63a64@gmail.com> References: <20260811-dcphy-maxreg-v1-v1-1-aa63f6a63a64@gmail.com> Subject: Re: [PATCH] phy: rockchip-samsung-dcphy: fix out-of-range max_register Message-Id: <178646782464.1081354.15306186863821576156.b4-ty@kernel.org> Date: Tue, 11 Aug 2026 22:33:44 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 11 Aug 2026 16:10:22 +0800, Jason Yang wrote: > The PHY register block is 64KB, so with a register stride of 4 the > last accessible register sits at offset 0xfffc. max_register names > 0x10000, one register past the end of the mapping: dumping the > registers through the regmap debugfs interface reads beyond the > ioremapped region and oopses on the unmapped page. The oops fires > with the regmap lock held, so later PHY operations deadlock. > > [...] Applied, thanks! [1/1] phy: rockchip-samsung-dcphy: fix out-of-range max_register commit: 4486e75ba647bd8b98fc1f053101b40caceeed4b Best regards, -- ~Vinod