From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 103981C2DBB for ; Fri, 27 Sep 2024 20:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727469951; cv=none; b=WTBHnxeOMuRTG6VFKTpTDuN/0XJQTJg8ynSZCv7urr6I6x9E6WRZ39GnqJ32HnHgKpYZAIA0VZmbJoIKLyvQPQVWn7o7iKf8Tm7mdtVwWc/PB5viJhe4R2U/4O85/4aQkBIo5JrcBxWHTsocP46STibBwfeCAQOtFCzTxTe6MY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727469951; c=relaxed/simple; bh=6Of1VxGdAUu5212I6xyD0qz6mSisX0o6Xz6i9ngeA6E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p4lO4AtcdxN+dcquHHFdLiotEs/xpAnehy3gwQI4m6Tb616AdbqELWcVIWejGIFrBrSwtpif2ajffpSWRdvdnZ/H9e8TK/FgJ1xMsuxFzQ1swc4oeo1qqlsA/K7r7siNZeGjLoyapUWTyzJup/O6HtddKg0v5GH1vsTGAKebWnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AolPw+AT; arc=none smtp.client-ip=209.85.166.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AolPw+AT" Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-3a27638f868so10009605ab.2 for ; Fri, 27 Sep 2024 13:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1727469949; x=1728074749; darn=lists.linux.dev; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ELeUhyHEhkX/mXAg1aV0b4XCeqINhoTNbiqlv9cXJu0=; b=AolPw+ATrAlz7XfE9h6+RCpIVVkHn9vnu9hmfq55xXYVI4D2vZWCnhpYFIpEQ6VJiC AqCUT9UwQnIsQbc43D+DtJBQ05TIPsnOpBKfF3vGMidI3na2Ami2aGISlOzBrB3i3PLp mUxUb1IIbIy3oAPdt1xujRwV0CN+3+cKkq4BU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727469949; x=1728074749; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ELeUhyHEhkX/mXAg1aV0b4XCeqINhoTNbiqlv9cXJu0=; b=ISrLTWEniYxFpeaAaYrthEtFeAUBaI6dVDqIjlwDfX+esKlas1tCS3zIwXhVa+MrDO 8Qu6K2pcAaYIB5bbWImvcZAhbZktkLSJtZuD+nJeC7ViYU9bKThAXxiG2oW77enN7Tk2 iZ9dXKCTgRogYqviGEqRPPBMUXWWhq6rgCPF3su7mGFwkxE93nsQ22XB5DdijkLvFsDR KGObFAqVnkA599KYWPBuAP75lOXDfbezufogqqkpGVP1IfdYppdbK/7s6oIEc60dHdbs kN3GF3glCqdGNtgbGTPtCDnm399GqrYxzE6pI/hpuvSsugZpvVBNu4KLplZH7OBlCfep ZseA== X-Forwarded-Encrypted: i=1; AJvYcCWvAzvar1cqWesl083NgaD4+JBMeB1ukWH/lmqHoeLjbjYklwAsuIv1eGzAMJz+jmIxb33wQY7h@lists.linux.dev X-Gm-Message-State: AOJu0YzJl9wlqa6+i7hLn52PUOrQzURok3vXNt8hwowKvThHdB5yKbvl 153mp5UaOJP5qWUJA8peHwGfhcODx8T0z8CaizL2RvLoi6YUufWLQMW8bpcAM5Q= X-Google-Smtp-Source: AGHT+IG8H8BaLurHSTTAfNxUSV4X7fVN3L5lrZqFFO8rs0RzP2N+Y+8YF1zbMMAzEzM94iNQwXnCAg== X-Received: by 2002:a05:6e02:12ee:b0:3a3:445d:f711 with SMTP id e9e14a558f8ab-3a344fc8ff7mr59088925ab.0.1727469949083; Fri, 27 Sep 2024 13:45:49 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4d888849ca8sm694390173.41.2024.09.27.13.45.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Sep 2024 13:45:48 -0700 (PDT) Message-ID: <6f5a5b5f-71a7-4ed3-8cb3-d930bbce599b@linuxfoundation.org> Date: Fri, 27 Sep 2024 14:45:47 -0600 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 8/8] clk: Add KUnit tests for clks registered with struct clk_parent_data To: Guenter Roeck , Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, devicetree@vger.kernel.org, Brendan Higgins , David Gow , Rae Moar , Greg Kroah-Hartman , "Rafael J . Wysocki" , Rob Herring , Saravana Kannan , Daniel Latypov , Christian Marangi , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard , Geert Uytterhoeven , Shuah Khan References: <20240718210513.3801024-1-sboyd@kernel.org> <20240718210513.3801024-9-sboyd@kernel.org> <6cd337fb-38f0-41cb-b942-5844b84433db@roeck-us.net> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/27/24 10:19, Guenter Roeck wrote: > Copying devicetree maintainers. > > On Thu, Sep 26, 2024 at 09:39:38PM -0700, Guenter Roeck wrote: >> On Thu, Sep 26, 2024 at 09:14:11PM -0700, Guenter Roeck wrote: >>> Hi Stephen, >>> >>> On Thu, Jul 18, 2024 at 02:05:07PM -0700, Stephen Boyd wrote: >>>> Test that clks registered with 'struct clk_parent_data' work as >>>> intended and can find their parents. >>>> >>> >>> When testing this on arm64, I see the error below. The error is only >>> seen if I boot through efi, i.e., with "-bios QEMU_EFI-aarch64.fd" >>> qemu parameter. >>> >>> Any idea what might cause the problem ? >>> >> I noticed that the new overlay tests fail as well, also with "path '/' not >> found". >> >> [Maybe] answering my own question: I think the problem may be that there >> is no devicetree file and thus no devicetree root when booting through >> efi (in other words, of_root is NULL). Would it make sense to skip the >> tests in that case ? >> > > The problem is that of_root is not initialized in arm64 boots if ACPI > is enabled. > > From arch/arm64/kernel/setup.c:setup_arch(): > > if (acpi_disabled) > unflatten_device_tree(); // initializes of_root > > ACPI is enabled if the system boots from EFI. This also affects > CONFIG_OF_KUNIT_TEST, which explicitly checks if of_root exists and > fails the test if it doesn't. > > I think those tests need to add a check for this condition, or affected > machines won't be able to run those unit tests. The obvious solution would > be to check if of_root is set, but then the associated test case in > CONFIG_OF_KUNIT_TEST would not make sense. > > Any suggestions ? > Would it work if these tests check if acpi_disabled and skip if it isn't disabled? It might be low overhead condition to check from these tests. acpi_disabled is exported: arch/arm64/kernel/acpi.c:EXPORT_SYMBOL(acpi_disabled); arch/loongarch/kernel/acpi.c:EXPORT_SYMBOL(acpi_disabled); arch/riscv/kernel/acpi.c:EXPORT_SYMBOL(acpi_disabled); arch/x86/kernel/acpi/boot.c:EXPORT_SYMBOL(acpi_disabled); thanks, -- Shuah