Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12008752ybi; Fri, 26 Jul 2019 03:15:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKIaWqna4u3BUJ4k9d+u5vLfZbVyRfltj1YnISdL6ebD8cFLrJ/zWWwfJ4lRA5Z2z4UgRy X-Received: by 2002:aa7:9a92:: with SMTP id w18mr21474171pfi.167.1564136153148; Fri, 26 Jul 2019 03:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564136153; cv=none; d=google.com; s=arc-20160816; b=OyTErH7ZytiDjrJju0TdaKWsLW7q9jKUInIXgvpEDEfEVxfBnBux0pvTDJx6BAsu0U DijcIkiE2aYy1pDusDxabro7Gr4Q+NGXvrfy2ZktfGDrVqEmkpwYoOKfY2VJJyVIMnnA yjFSMV1tNKGvvjHG7JlDGL0yhIpKvTxjtU6lt9JHqaJ6B9rgo6rsgcev6ZAwS62oCDI2 vDtCuDjpO2LZxCbHkN5G8UYuxD4LlPYaTpUoH+CooPUjEKj9P+WNumdGTF+fljWnc9G6 eCEEy/t3Jwz1H99tTEh6B34HdiuLA/II8G3tQlxwkAbEeNCPb4PF06Ilcf6aD4LrBS/y oMWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dmarc-filter :dkim-signature:dkim-signature; bh=pjPTJdHSx/8TfUhlsfqb7IW0bsaTHXkdZaXDvwon77Y=; b=y2P0/x0xdTzmbx4Aual9bVtpuiwjVZ37JjwbDNdOc0oYFJe5MlSKkpJXnPF4bjbC0j 83wgtKJ+7Hy6tVZsUvmg4cgeVO/hCrEmo+2pZnfVYs7p+8R7kho544Z0jKq9DuOyk6Ax z0OwU0OPxjk8sypLzAU0HO0bQcxk+le9T24A1ARl1HCbUdoMtUfntrfLHQI8cl1bwXZf w/w6HKATxVgApbzHxxmuSBh3PvHpi36Pc87lB68nTjYfcvlbx5xRxYQG+mToO7ww22/5 JZPzGTuCTfLOiZ7HlZH08CwG2yUoUJLEiE59AnFFE7fk973UchIzz7FDRZBSNB6DdtWN TuCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Hbcvsw+j; dkim=pass header.i=@codeaurora.org header.s=default header.b=OjBrgcz+; 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 q10si20560202pgm.225.2019.07.26.03.15.37; Fri, 26 Jul 2019 03:15:53 -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=@codeaurora.org header.s=default header.b=Hbcvsw+j; dkim=pass header.i=@codeaurora.org header.s=default header.b=OjBrgcz+; 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 S1726215AbfGZKOq (ORCPT + 99 others); Fri, 26 Jul 2019 06:14:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54488 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfGZKOq (ORCPT ); Fri, 26 Jul 2019 06:14:46 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CFFB5602BC; Fri, 26 Jul 2019 10:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1564136085; bh=jvQxmzWvpok8BXHCVML4PDBkl58pFVq1DH9k7A72xrI=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=Hbcvsw+jUAUwQUyIS0UEH1vlmY7SG3UGJxFTRFN2VeZ9+HwWFM2suO3MOqNljgdbo nHBGnexfVZVPzvgLbOR7G2OC9q/hGeibKn21XkjU+3O/K3rlVhWHVld69zhmUZG25D 7V/d3CxEF63KkXnge/psrRtHmoSaUm612Kg3rXkk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.136.27] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D408260247; Fri, 26 Jul 2019 10:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1564136084; bh=jvQxmzWvpok8BXHCVML4PDBkl58pFVq1DH9k7A72xrI=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=OjBrgcz+rtbPEy8asULLePhQI4rc2BAZgXIVXF4aCn4H0/mg66gBhsLZGH3EYpLpO ao5RZP7zE6KeY8usw2suKqShAETpklB5PxtpnhxmleaQ+tuzeAa21s5GpEBVZqJUcK YlOCTw7ajTj3LJNyEWoL5lEugzEY6Hkavzdd8k20= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D408260247 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org Subject: Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n From: Sai Prakash Ranjan To: Greg Kroah-Hartman 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 References: <20190726070429.GA15714@kroah.com> <165028a7-ff12-dd28-cc4c-57a3961dbb40@codeaurora.org> <20190726084127.GA28470@kroah.com> <097942a1-6914-2542-450f-65a6147dc7aa@codeaurora.org> Message-ID: <6d48f996-6297-dc69-250b-790be6d2670c@codeaurora.org> Date: Fri, 26 Jul 2019 15:44:40 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <097942a1-6914-2542-450f-65a6147dc7aa@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation