Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11989422ybi; Fri, 26 Jul 2019 02:59:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuelKm0+rEJgO6ZcKnK+lRh+jk1JqnJysATIz14iln+vGCZFColyPji3Iyk/NPd5g8fFEW X-Received: by 2002:a17:90b:8e:: with SMTP id bb14mr97702427pjb.19.1564135152269; Fri, 26 Jul 2019 02:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135152; cv=none; d=google.com; s=arc-20160816; b=Rai2aOtQqoO4BZjGKB1eGXl/bOT8ZBsEB3k/Sl3/32kVmKFfu3C2FaM40Do1HY0zdW O3SHxhAlyJlQuR9nW/t2fPGen411cZf2dar1oYsGlw39TCgMlUO9xPeAPJeFKy3u2Yi0 0ireWBQlqcx1TCgICTm292a95KbGcDR2dD8io4PQIXGJPN1+TC2zArv3x11qCdasjnvE taSQRYPJ3iyebcxUW8Enb+KaPLI1/0K1GG2QnkI+8jcjeKh/gajTR6z65P/uVzwsuQVE zDmfh2+VUgtyEYV0xSE64l5up14ZnwKJIMR0NARWiFbsRl2znzkqiV0qhpTgb6GZdJSM bBww== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=f9/Hp/cyfC6+gWqBUxOT4B8Vcvo4Owp476ee8LBgX/g=; b=RRV2hfHAJ8FFb7Vbts6daxgTCXHypOQWxoYXXczatDs7QSkXzjySOog4XwmBT1LBV1 Or8vRIZGebswyXx1YoXyMeeWw6rP1yBWJAjTbdwtaTjarCSa+0JTQproiWuM60IIrEUB DJe7Pp7rIaINT7T1JQinfFp2n39tmHLPw+U+V63OA82FhLd6yWT+GinN+3Ozskeh61H0 eYy+Ni3xxAOnZCvBRhrirBE7C40xKN6i6C4Yue3ASgB/hs26EGw9SepltGnUmX24Amo5 /LOQH9fC2bxcRZC6ztHS39In6DqSFA8f/60fCL5XRPHnpD85nWomMLhOWD9xm3aJF5VT orfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PF5cAUdu; dkim=pass header.i=@codeaurora.org header.s=default header.b=fI8H3wgD; 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 64si19166430plk.87.2019.07.26.02.58.57; Fri, 26 Jul 2019 02:59:12 -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=PF5cAUdu; dkim=pass header.i=@codeaurora.org header.s=default header.b=fI8H3wgD; 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 S1726193AbfGZJ6X (ORCPT + 99 others); Fri, 26 Jul 2019 05:58:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48312 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfGZJ6X (ORCPT ); Fri, 26 Jul 2019 05:58:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D53256053D; Fri, 26 Jul 2019 09:58:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1564135102; bh=j3uQJTmCdq40VmREaWK3WDQwD/oEO5ZQLNR/cHQZdEY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PF5cAUdujLBY8RnoHNG1tNPu/IawbietXTGJVJCajf07HEuJr2W8B+6Fbj3jHIY7w Q62u2hcbjB5x/o6QXZtZVec9behzfiqTcwfhIPh88dnzML1OmEGx/Oe11k80lPMInr nlLkx4cn8alVn4VL7B41OK7XKz2AK6xJurHYRHK8= 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 64D976021C; Fri, 26 Jul 2019 09:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1564135101; bh=j3uQJTmCdq40VmREaWK3WDQwD/oEO5ZQLNR/cHQZdEY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fI8H3wgDWxVBkPo0HmEcdnzAV0cSbAbhaRh35YW7vzmLdA5z0z197ApxN7xfRIxEp ZqP+aNNqAsQ65MwF9OK4lUxvLetTQObl02LynVzFOqnN80lb0dcx49vSchNLUrgeoA 76R9iq4lQpxmZujgUTEPaS6CzBAlGaDwdSXgnnwc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 64D976021C 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 To: Suzuki K Poulose , gregkh@linuxfoundation.org Cc: geert+renesas@glider.be, mathieu.poirier@linaro.org, leo.yan@linaro.org, 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> From: Sai Prakash Ranjan Message-ID: <23fa6b3a-3f86-01f1-1b69-f3d4696ce3e2@codeaurora.org> Date: Fri, 26 Jul 2019 15:28:17 +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: 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 Hi Suzuki, On 7/26/2019 2:58 PM, Suzuki K Poulose wrote: > > > On 07/26/2019 09:41 AM, 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 think that should solve the issue ^^ > Yes mounting /dev using devtmpfs does solve the issue. But is this different behaviour OK? -Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation