Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12014953ybi; Fri, 26 Jul 2019 03:22:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8heFenTZYeAmcIlBMF/jOp0yF6hC+Tk4++X/K/OxjFz6afmpT0oEK7QypRJiyvnJjoDUg X-Received: by 2002:a63:20d:: with SMTP id 13mr79838803pgc.253.1564136536136; Fri, 26 Jul 2019 03:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564136536; cv=none; d=google.com; s=arc-20160816; b=eBvLh1YVROhWzJmkMSeZUSvh9e/84E77IGcEqnFvHoPIF/NlwaeUG3EOnVaIsrOIZ6 SrXMuH8WBuJU0s+6u/e2Bf/o8ZtLxa10jyXtA4/cUvSPfqzYgGLa2DkxnR/IqxvqPY5N ATTG+ezaEV4UY8yixXqQc5cE3m6tvFpUmFlXhGBIWg9SNKwkniGzAUSC7WB0fm3mn3Qq /Ox3Ig5eX/UgwpXm/Cwijf8UiI8lr1EWTysU8ldWD7YD78EFlv7j9/iQ5CshKiDaqqwV mwrfagJ6nN9TyKlxM/7DEmRSMgdoU+hs268nVt1sX/zRGpYxA1MDVzTAlyxiC28WO4yN 0now== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5FGaebb/yLZlPVXidd/nHGBMM6nfCSpPus2iM3O+7cY=; b=fm11NvNBOkTT2eQLXI1hNOhI4tRP4fxb7p8mb+EZgTkBTKQsQ3vfuf4Fmo8pqUPKGD iIK7vbS19A7HSm7srJFDY8AxadLvzPkUo9zrLFwI6t7o1LcqPrKleTE7sSVmXYY6ct6C lQUkFswOh+7I5dtoTs2pYhcb696swuG07arV7oL/P7i/KgTa+Erfh7RbRNa4UjCHXccJ fbA0HJOem5m5DsVrjVksO8gTP30LhuirZdeCesbE2CyLt4QJeOlnPNrCCO2Vm53wuprB 96Cmn21xsCFEL2qXARLqi6sPOj7PbgJFSoAJCdkXlyq3B1f6lRYlFCckkeUvxhAY2YNv 3Sdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1we1DI8L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si47062715pju.90.2019.07.26.03.22.01; Fri, 26 Jul 2019 03:22:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1we1DI8L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbfGZKT3 (ORCPT + 99 others); Fri, 26 Jul 2019 06:19:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:43746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfGZKT3 (ORCPT ); Fri, 26 Jul 2019 06:19:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89186229F9; Fri, 26 Jul 2019 10:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564136368; bh=rnzZTI3R4YtevXWLIMuEjKk8X83MUvmSjfijAT5kr/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1we1DI8LpBv9/chtOSAbouY4rmVorOqsSHMGGPjxkJxt7btRY+Q4o55aFtMwoAAsi cRrgHskOaAglnpzfunZqY5pUd3/99JHsKEyPFGKlniwvrfet6Oe42JwlKLhCwtpi1d 76w3RRINTAdfi6dJKljuLT9YmFJLSfm1W5D9tHB4= Date: Fri, 26 Jul 2019 12:19:25 +0200 From: Greg Kroah-Hartman To: Sai Prakash Ranjan Cc: Geert Uytterhoeven , Mathieu Poirier , Suzuki K Poulose , Leo Yan , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n Message-ID: <20190726101925.GA22476@kroah.com> References: <20190726070429.GA15714@kroah.com> <165028a7-ff12-dd28-cc4c-57a3961dbb40@codeaurora.org> <20190726084127.GA28470@kroah.com> <097942a1-6914-2542-450f-65a6147dc7aa@codeaurora.org> <6d48f996-6297-dc69-250b-790be6d2670c@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6d48f996-6297-dc69-250b-790be6d2670c@codeaurora.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 03:44:40PM +0530, Sai Prakash Ranjan wrote: > On 7/26/2019 3:14 PM, Sai Prakash Ranjan wrote: > > On 7/26/2019 2:11 PM, Greg Kroah-Hartman wrote: > > > On Fri, Jul 26, 2019 at 01:50:27PM +0530, Sai Prakash Ranjan wrote: > > > > On 7/26/2019 12:34 PM, Greg Kroah-Hartman wrote: > > > > > On Fri, Jul 26, 2019 at 11:49:19AM +0530, Sai Prakash Ranjan wrote: > > > > > > Hi, > > > > > > > > > > > > When trying to test my coresight patches, I found that etr,etf and stm > > > > > > device nodes are missing from /dev. > > > > > > > > > > I have no idea what those device nodes are. > > > > > > > > > > > Bisection gives this as the bad commit. > > > > > > > > > > > > 1be01d4a57142ded23bdb9e0c8d9369e693b26cc is the first bad commit > > > > > > commit 1be01d4a57142ded23bdb9e0c8d9369e693b26cc > > > > > > Author: Geert Uytterhoeven > > > > > > Date:?? Thu Mar 14 12:13:50 2019 +0100 > > > > > > > > > > > > ????? driver: base: Disable CONFIG_UEVENT_HELPER by default > > > > > > > > > > > > ????? Since commit 7934779a69f1184f ("Driver-Core: > > > > > > disable /sbin/hotplug by > > > > > > ????? default"), the help text for the /sbin/hotplug fork-bomb says > > > > > > ????? "This should not be used today [...] creates a > > > > > > high system load, or > > > > > > ????? [...] out-of-memory situations during bootup".? > > > > > > The rationale for this > > > > > > ????? was that no recent mainstream system used this > > > > > > anymore (in 2010!). > > > > > > > > > > > > ????? A few years later, the complete uevent helper > > > > > > support was made optional > > > > > > ????? in commit 86d56134f1b67d0c ("kobject: Make support > > > > > > for uevent_helper > > > > > > ????? optional.").? However, if was still left enabled > > > > > > by default, to support > > > > > > ????? ancient userland. > > > > > > > > > > > > ????? Time passed by, and nothing should use this > > > > > > anymore, so it can be > > > > > > ????? disabled by default. > > > > > > > > > > > > ????? Signed-off-by: Geert Uytterhoeven > > > > > > ????? Signed-off-by: Greg Kroah-Hartman > > > > > > > > > > > > ?? drivers/base/Kconfig | 1 - > > > > > > ?? 1 file changed, 1 deletion(-) > > > > > > > > > > > > > > > > > > Any idea on this? > > > > > > > > > > That means that who ever created those device nodes is relying on udev > > > > > to do this, and is not doing the correct thing within the kernel and > > > > > using devtmpfs. > > > > > > > > > > Any pointers to where in the kernel those devices are trying to be > > > > > created? > > > > > > > > > > > > > Somewhere in drivers/hwtracing/coresight/* probably. I am not sure, > > > > Mathieu/Suzuki would be able to point you to the exact code. > > > > > > > > Also just to add on some more details, I am using *initramfs* > > > > > > Are you using devtmpfs for your /dev/ mount? > > > > > > > I am not mounting devtmpfs. However > > > > ?CONFIG_DEVTMPFS=y > > ?CONFIG_DEVTMPFS_MOUNT=y > > > > Ok my initramfs is using mdev: > > */sbin/mdev -s* > > This somehow is not mounting etr, etf, stm devices when uevent-helper is > disabled. Anyways as Suzuki mentioned, using devtmpfs does fix the issue. Last I looked (many years ago) mdev requires uevent-helper in order for it to work. I recommend that if you rely on mdev to keep that option enabled, or to just use devtmpfs and udev :) thanks, greg k-h