Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2151723lqe; Tue, 9 Apr 2024 10:54:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+R+3gFWC+Rx/9apCqChmePsNbXlrUgGepclZxMWCAHEzPD9roKwI0L8McziGUtoD5kghYXaprLGNT8GhYJgtzNltDrujbt/vmLlDUjw== X-Google-Smtp-Source: AGHT+IHTEcsjyr2RgoEMFe/CzglFfNlMUOOt85cTLBmHdPhEtRjtG9zlHsadSRRXcPcIbtn3WZIf X-Received: by 2002:a17:903:185:b0:1e4:b16e:7f10 with SMTP id z5-20020a170903018500b001e4b16e7f10mr500812plg.33.1712685272745; Tue, 09 Apr 2024 10:54:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712685272; cv=pass; d=google.com; s=arc-20160816; b=PGi/pf5X5UCX2sokA945BEZ6NeUJRCe+U/7861Jn8IvHokfcCiH31ylpw+4C07zjYF 2uLdjNvx9juWXSZm4Spd7yeVH2AwS28DkbvGQT1YAhCZgz2eyXiVHjPPZ/hUSbT7Fj39 Sk0dd84GdMpiyxJCwBvaSZE2SfGCwJyMUjH3PeXV1tszVbgqAP8tjWXZypCoLzaZXFtE OsoMOnaHrCZYPEQLgbLwn9Ymk8DCmFuLIebsTQhNRQag6t8ZWsS4zDBUT4amiYiEi6Bn AfHm75lFsQuDz2m+C+/KQN3C5DhCD7UpnY3oQ+VUS933yt3Ky+Ui6FlQDnIhUWBPHH5D ui/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=nARArI/JGxcqeVSW+91I3DRTdX+G+3rkUWRdOGuyuMs=; fh=eitspi85nl5ZkCthortaHurozMRYXYN0ES0VQfpKS/0=; b=MLOeUtvbhL3AdD14HihHuPfdrkuA5PKwUZP4VT10I//PfjMpfUAesSZPoGz/XLxaco KgrObQtM3q7KuuzsuQHVfpn4tOYBO7PZ85EcUm2evy6VbIM1sb0Sq+j0bgXtDzKkDmqh wz9bKQmMSdIaZ8AYAp49KOZ5Wse3gDfzgBN84ihljRE/IJ6jN9rLFGnWbUkxfPVXDah7 eqteD6BO5KOtjNuB7H0tZInl4S5jYytSJAqPbRSdUfvKmOaFRAaQJK/Eaz8T6LBxS1S0 0b86WYtxiMMuWIIeVgjNlfTnWg3HYH8s/RNly9QdIRP+nWa3x1ENSTh2Am+QULG0ifGe BclQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=M8RQIUlD; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3403-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b8-20020a170902d50800b001e3e64fb474si6444439plg.213.2024.04.09.10.54.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 10:54:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=M8RQIUlD; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3403-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0C5382895DD for ; Tue, 9 Apr 2024 15:38:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0E3213D50F; Tue, 9 Apr 2024 15:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="M8RQIUlD" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C23013D518 for ; Tue, 9 Apr 2024 15:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712676952; cv=none; b=oYrssPL4ldxr5QOCrOeGHk3eJtzHU4HIYxAWjHF5CfIJFszlvwYB+hXwttCAk9lZYrd2mhIDyCmVdCqz6qzBVXLb4F6WKK+8aN2KV/rJ2lLGFTvcVx/4EHKxKcEJ9yZKD3ZlBGtPNxl3a6qi6UOTeTtMZHETciVScnCjRm632Ms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712676952; c=relaxed/simple; bh=0pjTPnekrZ6Mo2O3A8pGX4AK75zIDzNbFZm+tv/AiyM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=h+8VkL+2+9mWk5ncmKkvZ4OmZtUjwgsjYmpobsHfV6FCi+K+6I/Qn3IldUwoWxrI/7usVFyQ15oP53IaCTLVIBsJYTnaEAiyMG01mHo2MW91Kif0xHNssEcXgP6nkl6CqPSX3yvBe1z9Jr9f84ymNjmPmV0RolZxRfuvDe65cnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=M8RQIUlD; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d895e2c6efso25445301fa.0 for ; Tue, 09 Apr 2024 08:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1712676948; x=1713281748; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nARArI/JGxcqeVSW+91I3DRTdX+G+3rkUWRdOGuyuMs=; b=M8RQIUlDboOKc3mYlmgZamgiQC/aqLQdEjingQuXqsMIhm0B833yg2d/kFvFgYpdcs uI+RCkeL7K7XLOF/96xLDwC4TbsVVRzLdv3icLl0LbRBslasba4tb2KPocIze+zr9O24 tGobTO82QFpSI01PDd9R/PIqqdqEHl3XFIhJxdf+MiL+I2oPBRvjlk2cSkwsLYvgqoR/ YW58TtOa+ApGdF7yexxbzbmvIHajgQlMIMa9jTil8T4fJg2HAARCZpAsJmdTktmgwkRc qXPZOxCylHAAHTn1sCxK5OWt2JuGhCGFF2KvvdtpBvYSXePb/br+ec+iNyk53+5Z65uH WihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712676948; x=1713281748; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nARArI/JGxcqeVSW+91I3DRTdX+G+3rkUWRdOGuyuMs=; b=kWDIOz8X8CAUP84cWOdZ9s9ZMUdTSIFJnY30A3mAlglV1vfaDInbMJOV+OaVeHX9aL ZzqxNL5efM3IvmZevECO1THYyPAZ5shHqDiTNC64fJui6FfY5Hva7s3u+MLCQFGpRbNP hOXgQzmMngTyrwBCHOjTEdLPr48GmitSwnGXRwL9H1ySUkeFXFn6PFzxiocKToR0wnQx QLpjr2o9KHFdeaxkM++0h9S1A0c3AAkrPF0BVbUKBRG/6ypanqLNbeeWvlylvXyd2bxp PSgZE5uYe+R+Io5WhUCAROwX4BzHy0vzgHggPEAcvltWswphw9v1fHsTF1n6OqbJdjxd ZX3Q== X-Forwarded-Encrypted: i=1; AJvYcCXkzR1nJUIqtzGFFCMXXVXW5WMa5InPxS83Kv6cVoWZ25aRCnv8KLzCbZNbhULSJN9JX7EII/tn0CdgSwvZ7NS20f+2VZaZw9Ca0csXaGRQ X-Gm-Message-State: AOJu0YwO0mMgmDa+Ah+TziF5UkISAClPa9m3PFaSAhdwIHe6+HyVj20F f0fLrbIkgtHxZuBxa6yUrFKd6WO1PxTp0tlpcykGGHQLJA1Y5y8nVwK6h0QzFXdMC7vT+MKFnte Xxyi8SdpeynOw2lxh4Zaovkd+aTmG9OrJFL3+RA== X-Received: by 2002:a2e:b8c3:0:b0:2d8:a814:583d with SMTP id s3-20020a2eb8c3000000b002d8a814583dmr166320ljp.30.1712676947967; Tue, 09 Apr 2024 08:35:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325131624.26023-1-brgl@bgdev.pl> <6b63d5d2-5f30-4fbd-a872-91f32dc32c87@gmail.com> In-Reply-To: <6b63d5d2-5f30-4fbd-a872-91f32dc32c87@gmail.com> From: Bartosz Golaszewski Date: Tue, 9 Apr 2024 17:35:36 +0200 Message-ID: Subject: Re: [PATCH v6 00/16] power: sequencing: implement the subsystem and add first users To: Xilin Wu Cc: Marcel Holtmann , Luiz Augusto von Dentz , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Catalin Marinas , Will Deacon , Bjorn Helgaas , Saravana Kannan , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , Marek Szyprowski , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Abel Vesa , Manivannan Sadhasivam , Lukas Wunner , Dmitry Baryshkov , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 6, 2024 at 5:03=E2=80=AFAM Xilin Wu wrot= e: > > I tested the patchset on SM8550 and it does give me working WiFi. However= I > seethe following warnings during boot. > > [ 5.973011] mhi mhi0: Requested to power ON > [ 6.597591] mhi mhi0: Power on setup success > [ 6.597631] sysfs: cannot create duplicate filename '/devices/platform= /soc@0/1c00000.pcie/pci0000:00/0000:00:00.0/resource0' > [ 6.597634] CPU: 7 PID: 154 Comm: kworker/u32:5 Tainted: G S = 6.9.0-rc1-next-20240328-g955237c9980c #1 > [ 6.597635] Hardware name: AYN Odin 2 (DT) > [ 6.597637] Workqueue: async async_run_entry_fn > [ 6.597645] Call trace: > [ 6.597646] dump_backtrace+0xa0/0x128 > [ 6.597649] show_stack+0x20/0x38 > [ 6.597650] dump_stack_lvl+0x74/0x90 > [ 6.597653] dump_stack+0x18/0x28 > [ 6.597654] sysfs_warn_dup+0x6c/0x90 > [ 6.597658] sysfs_add_bin_file_mode_ns+0xdc/0x100 > [ 6.597660] sysfs_create_bin_file+0x7c/0xb8 > [ 6.597662] pci_create_attr+0xb4/0x1a8 > [ 6.597665] pci_create_resource_files+0x64/0xd0 > [ 6.597667] pci_create_sysfs_dev_files+0x24/0x40 > [ 6.597669] pci_bus_add_device+0x54/0x138 > [ 6.597670] pci_bus_add_devices+0x40/0x98 > [ 6.597672] pci_host_probe+0x70/0xf0 > [ 6.597673] dw_pcie_host_init+0x248/0x658 > [ 6.597676] qcom_pcie_probe+0x234/0x330 > [ 6.597677] platform_probe+0x70/0xd8 > [ 6.597680] really_probe+0xc8/0x3a0 > [ 6.597681] __driver_probe_device+0x84/0x170 > [ 6.597682] driver_probe_device+0x44/0x120 > [ 6.597683] __device_attach_driver+0xc4/0x168 > [ 6.597684] bus_for_each_drv+0x8c/0xf0 > [ 6.597686] __device_attach_async_helper+0xb4/0x118 > [ 6.597687] async_run_entry_fn+0x40/0x178 > [ 6.597689] process_one_work+0x16c/0x410 > [ 6.597691] worker_thread+0x284/0x3a0 > [ 6.597693] kthread+0x118/0x128 > [ 6.597693] ret_from_fork+0x10/0x20 > [ 6.597698] ------------[ cut here ]------------ > [ 6.597698] proc_dir_entry '0000:00/00.0' already registered > [ 6.597710] WARNING: CPU: 7 PID: 154 at fs/proc/generic.c:375 proc_reg= ister+0x138/0x1d0 > [ 6.597713] Modules linked in: > [ 6.597714] CPU: 7 PID: 154 Comm: kworker/u32:5 Tainted: G S = 6.9.0-rc1-next-20240328-g955237c9980c #1 > [ 6.597715] Hardware name: AYN Odin 2 (DT) > [ 6.597716] Workqueue: async async_run_entry_fn > [ 6.597718] pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYP= E=3D--) > [ 6.597719] pc : proc_register+0x138/0x1d0 > [ 6.597721] lr : proc_register+0x138/0x1d0 > [ 6.597723] sp : ffff800081e3b9a0 > [ 6.597723] x29: ffff800081e3b9a0 x28: 0000000000000000 x27: ffffddb2a= 28eabe0 > [ 6.597725] x26: ffff3425c9ada5c0 x25: ffffddb2a2d4eef0 x24: ffff3425c= 9ada540 > [ 6.597726] x23: 0000000000000004 x22: ffff3425c7b1822c x21: 000000000= 0000004 > [ 6.597727] x20: ffff3425c7b18180 x19: ffff3425c9adaec8 x18: fffffffff= fffffff > [ 6.597729] x17: 3040636f732f6d72 x16: 6f6674616c702f73 x15: ffff80008= 1e3b910 > [ 6.597730] x14: 0000000000000000 x13: 0a64657265747369 x12: 676572207= 9646165 > [ 6.597731] x11: fffffffffff00000 x10: ffffddb2a27c4fb0 x9 : ffffddb29= f5d7528 > [ 6.597733] x8 : 00000000ffff7fff x7 : ffffddb2a27c4fb0 x6 : 80000000f= fff8000 > [ 6.597734] x5 : 0000000000000358 x4 : 0000000000000000 x3 : 00000000f= fffffff > [ 6.597736] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff3425c= 5ce0000 > [ 6.597737] Call trace: > [ 6.597737] proc_register+0x138/0x1d0 > [ 6.597739] proc_create_data+0x48/0x78 > [ 6.597741] pci_proc_attach_device+0x84/0x118 > [ 6.597743] pci_bus_add_device+0x5c/0x138 > [ 6.597744] pci_bus_add_devices+0x40/0x98 > [ 6.597745] pci_host_probe+0x70/0xf0 > [ 6.597746] dw_pcie_host_init+0x248/0x658 > [ 6.597748] qcom_pcie_probe+0x234/0x330 > [ 6.597749] platform_probe+0x70/0xd8 > [ 6.597750] really_probe+0xc8/0x3a0 > [ 6.597751] __driver_probe_device+0x84/0x170 > [ 6.597752] driver_probe_device+0x44/0x120 > [ 6.597753] __device_attach_driver+0xc4/0x168 > [ 6.597754] bus_for_each_drv+0x8c/0xf0 > [ 6.597756] __device_attach_async_helper+0xb4/0x118 > [ 6.597757] async_run_entry_fn+0x40/0x178 > [ 6.597759] process_one_work+0x16c/0x410 > [ 6.597760] worker_thread+0x284/0x3a0 > [ 6.597761] kthread+0x118/0x128 > [ 6.597762] ret_from_fork+0x10/0x20 > [ 6.597763] ---[ end trace 0000000000000000 ]--- > > This probably only occurs when the relevant drivers on compiled as built-= in. > Similar behavior has been noticed before as well: > > https://lore.kernel.org/lkml/20240201155532.49707-1-brgl@bgdev.pl/T/#mdee= ca9bc8e19458787d53738298abcfff443068a > > Thanks, > Xilin > Thanks for the report. The reason for this was populating the platform devices before the bridge device was fully added. In case of loadable modules this meant the pwrctl probe would be deferred long enough for that to complete so I didn't see it but with pwrctl built-in this would trigger the problem. I fixed it locally and will resend with that addressed. Bart