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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 DE67BC677C4 for ; Wed, 11 Jun 2025 09:56:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF0A710E3AD; Wed, 11 Jun 2025 09:56:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="lvwelx4k"; dkim-atps=neutral Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B81410E61B; Wed, 11 Jun 2025 09:56:34 +0000 (UTC) Received: from relay16.mail.gandi.net (relay16.mail.gandi.net [217.70.178.236]) by mslow3.mail.gandi.net (Postfix) with ESMTP id AC151583615; Wed, 11 Jun 2025 09:34:30 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3F5F043892; Wed, 11 Jun 2025 09:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1749634467; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dTWVYcBwptCdDBnF3kGmXjZmZTDyF4Frz+J6o+FH2MA=; b=lvwelx4kVGW22Z4IvdtLWkF3fN2blgoJPRxQOY3wdzY/CH7Q/4PPHRwf3I3eeiOvInNLLm lx5EWeemSQaEK6K+gyrHSocE852TsxYM1RAyPtQ1Q/CX+BBB+pyGZbsLzgh/H+cdRSOcyj GiLrUfiWQDI6Fxj3ZdcukmRhRKMAmVh2W8fG4MqSwKX0h/XGen9CK1h0X0xEmbTZxCD0i6 RVFjX+gznOqxAnIaLbvbfSJ0n6A/uHVszsZ/jAq1oWSDRbotgFnUJ0LZEjk8FyZMyI29fz VSp6WxG4MfGhU7gdxoqrqqRhGRlUr7c3tmB6UePCDNSgZy31zn2t4PX0uUxNlw== From: Miquel Raynal To: Guenter Roeck Cc: Richard Weinberger , Alexander Usyskin , Vignesh Raghavendra , Lucas De Marchi , Thomas =?utf-8?Q?Hellstr?= =?utf-8?Q?=C3=B6m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , Karthik Poosa , Reuven Abliyev , Oren Weil , linux-mtd , DRI mailing list , intel-gfx , linux-kernel Subject: Re: [PATCH v6 01/11] mtd: core: always create master device In-Reply-To: (Guenter Roeck's message of "Tue, 10 Jun 2025 09:15:25 -0700") References: <20250302140921.504304-1-alexander.usyskin@intel.com> <87ikl5xnbc.fsf@bootlin.com> <4d55ac06-c357-4d78-b8b8-5b26486ce529@roeck-us.net> <2e5ebbdd-2a57-4f1f-85c6-7c2dff127b50@roeck-us.net> <1176847729.134356549.1749504429656.JavaMail.zimbra@nod.at> <130790886.134361099.1749560056731.JavaMail.zimbra@nod.at> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 11 Jun 2025 11:34:25 +0200 Message-ID: <877c1ivcym.fsf@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdduvddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefoihhquhgvlhcutfgrhihnrghluceomhhiqhhuvghlrdhrrgihnhgrlhessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepffeghfejtdefieeguddukedujeektdeihfelleeuieeuveehkedvleduheeivdefnecukfhppeeltddrkeelrdduieefrdduvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledtrdekledrudeifedruddvjedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhiqhhuvghlrdhrrgihnhgrlhessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepvddvpdhrtghpthhtoheplhhinhhugiesrhhovggtkhdquhhsrdhnvghtpdhrtghpthhtoheprhhitghhrghrugesnhhougdrrghtpdhrtghpthhtoheprghlvgigrghnuggvrhdruhhshihskhhinhesihhnthgvlhdrtghomhdprhgtphhtthhopehvihhgnhgvshhhrhesthhirdgtohhmpdhrtghpthhtoheplhhutggrshdruggvmhgrrhgthhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepthhhohhmr ghsrdhhvghllhhsthhrohhmsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheprhhoughrihhgohdrvhhivhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepmhgrrghrthgvnhdrlhgrnhhkhhhorhhstheslhhinhhugidrihhnthgvlhdrtghomh X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 10/06/2025 at 09:15:25 -07, Guenter Roeck wrote: > On 6/10/25 05:54, Richard Weinberger wrote: >> ----- Urspr=C3=BCngliche Mail ----- >>> Von: "Alexander Usyskin" >>> Richard, I've reproduced your setup (modulo that I must load mtdram man= ually) >>> and patch provided in this thread helps to fix the issue. >>> Can you apply and confirm? >> Yes, it fixes the issue here! :-) >>=20 > > It doesn't seem to fix the issue if the partition data is in > devicetree. I had a look at the patch again. The whole mtd core makes assumptions on parenting, which is totally changed with this patch. There are so many creative ways this can break, I don't believe we are going to continue this route. I propose to revert the patch entirely for now. We need to find another approach, I'm sorry. Alexander, can you please remind me what was your initial problem? I believe you needed to anchor runtime PM on the master device. Can you please elaborate again? Why taking the controller as source (the default, before your change) did not work? Also why was selecting MTD_PARTITIONED_MASTER not an option for you? I'm trying to get to the root of this change again, so we can find a solution fixing "the world" (fast) and in a second time a way to address your problem. Thanks, Miqu=C3=A8l 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 725F2C71136 for ; Wed, 11 Jun 2025 14:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject: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=xZ9H5ahbdU7PLbHB7YV40zGM2YoFBd6JHcX7vn+oZ2g=; b=z//orBLWQ5NnC1 NIO6R+m6wdQN6IG5g9JETZZ2gWaZ0Fe7ZmWjE5rfYnf+J3gyZdqGGyjlDZhdxk2Zc5FBcEzuvm4vY hFWg+1JUOkZ8QuBUJKa87ryRNEd8oOp/k/RLNDzvFwxgRw9Kzd9FXqqnkJBrBv4QmJfmHJVrSr49/ ReLk9u1XGjhlaffLkmKpTOhfgphM6NUT9PCF7FKYp0HmWMxTFnavQCR7akUZiqSIPUfr44VVR3PaV 9IKCnRHA9awxpC79z0m+TcdpgnHLle0T5Gx1EEjnz2nCdhcfoG3Kg+sZwueBo7H7xQv5HXg+PpnLO iZPpVrN0QH3Gy80l/jQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPMkz-0000000A9j3-2d5F; Wed, 11 Jun 2025 14:48:49 +0000 Received: from relay16.mail.gandi.net ([217.70.178.236]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPHr0-00000009UGL-0QHH for linux-mtd@lists.infradead.org; Wed, 11 Jun 2025 09:34:43 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 3F5F043892; Wed, 11 Jun 2025 09:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1749634467; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dTWVYcBwptCdDBnF3kGmXjZmZTDyF4Frz+J6o+FH2MA=; b=lvwelx4kVGW22Z4IvdtLWkF3fN2blgoJPRxQOY3wdzY/CH7Q/4PPHRwf3I3eeiOvInNLLm lx5EWeemSQaEK6K+gyrHSocE852TsxYM1RAyPtQ1Q/CX+BBB+pyGZbsLzgh/H+cdRSOcyj GiLrUfiWQDI6Fxj3ZdcukmRhRKMAmVh2W8fG4MqSwKX0h/XGen9CK1h0X0xEmbTZxCD0i6 RVFjX+gznOqxAnIaLbvbfSJ0n6A/uHVszsZ/jAq1oWSDRbotgFnUJ0LZEjk8FyZMyI29fz VSp6WxG4MfGhU7gdxoqrqqRhGRlUr7c3tmB6UePCDNSgZy31zn2t4PX0uUxNlw== From: Miquel Raynal To: Guenter Roeck Cc: Richard Weinberger , Alexander Usyskin , Vignesh Raghavendra , Lucas De Marchi , Thomas =?utf-8?Q?Hellstr?= =?utf-8?Q?=C3=B6m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , Karthik Poosa , Reuven Abliyev , Oren Weil , linux-mtd , DRI mailing list , intel-gfx , linux-kernel Subject: Re: [PATCH v6 01/11] mtd: core: always create master device In-Reply-To: (Guenter Roeck's message of "Tue, 10 Jun 2025 09:15:25 -0700") References: <20250302140921.504304-1-alexander.usyskin@intel.com> <87ikl5xnbc.fsf@bootlin.com> <4d55ac06-c357-4d78-b8b8-5b26486ce529@roeck-us.net> <2e5ebbdd-2a57-4f1f-85c6-7c2dff127b50@roeck-us.net> <1176847729.134356549.1749504429656.JavaMail.zimbra@nod.at> <130790886.134361099.1749560056731.JavaMail.zimbra@nod.at> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 11 Jun 2025 11:34:25 +0200 Message-ID: <877c1ivcym.fsf@bootlin.com> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdduvddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefoihhquhgvlhcutfgrhihnrghluceomhhiqhhuvghlrdhrrgihnhgrlhessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepffeghfejtdefieeguddukedujeektdeihfelleeuieeuveehkedvleduheeivdefnecukfhppeeltddrkeelrdduieefrdduvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledtrdekledrudeifedruddvjedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhiqhhuvghlrdhrrgihnhgrlhessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepvddvpdhrtghpthhtoheplhhinhhugiesrhhovggtkhdquhhsrdhnvghtpdhrtghpthhtoheprhhitghhrghrugesnhhougdrrghtpdhrtghpthhtoheprghlvgigrghnuggvrhdruhhshihskhhinhesihhnthgvlhdrtghomhdprhgtphhtthhopehvihhgnhgvshhhrhesthhirdgtohhmpdhrtghpthhtoheplhhutggrshdruggvmhgrrhgthhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepthhhohhmr ghsrdhhvghllhhsthhrohhmsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheprhhoughrihhgohdrvhhivhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepmhgrrghrthgvnhdrlhgrnhhkhhhorhhstheslhhinhhugidrihhnthgvlhdrtghomh X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250611_023442_599293_D6C724BA X-CRM114-Status: GOOD ( 12.82 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org T24gMTAvMDYvMjAyNSBhdCAwOToxNToyNSAtMDcsIEd1ZW50ZXIgUm9lY2sgPGxpbnV4QHJvZWNr LXVzLm5ldD4gd3JvdGU6Cgo+IE9uIDYvMTAvMjUgMDU6NTQsIFJpY2hhcmQgV2VpbmJlcmdlciB3 cm90ZToKPj4gLS0tLS0gVXJzcHLDvG5nbGljaGUgTWFpbCAtLS0tLQo+Pj4gVm9uOiAiQWxleGFu ZGVyIFVzeXNraW4iIDxhbGV4YW5kZXIudXN5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