Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp569740lqb; Thu, 14 Mar 2024 22:50:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSCeOC1ouTVxwJ4u2Qz3j5hghE3x3p1+HcSTQ1rpCofzlO5/RO+3N8u4gNMx4PS58iGP9txSmVCKG78F4pZUTZnbmmbQzxbqIrUnKPlA== X-Google-Smtp-Source: AGHT+IHCuPpGfieV53mQF7nYDKX7D93gNSNKWHPTFBsNC7oUzPv42ZYsdefXOBO4UaiGKJ3NBSvj X-Received: by 2002:a05:6808:2395:b0:3c2:508d:8006 with SMTP id bp21-20020a056808239500b003c2508d8006mr4423845oib.6.1710481847120; Thu, 14 Mar 2024 22:50:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710481847; cv=pass; d=google.com; s=arc-20160816; b=f9Imxi2MVT4tsKzjYuZZCo6XO5R/M7BfxTnXOqBQiB+3HjUrWeAT08gaU8QWt9Awpk falAIYSP8hpFgcuOHfJpiTi8R/9tP7m2tNo1UICgqSmOFAAN9nkh9ZnswF7baUfvKcd2 Ubp1GEBUw4wwaqu0gwnaac53EzC6EYf75N2kyxNz5uU7WvRY5JqSR1qYtR5pgHqIOl+3 lwgFEzxOjuxDHF1Ptkx63QwvIV4ZXQJlOOrlj0WuZOqC4GPGqmsfzujeZQIPRzYPdsUL jt2CveyhxcFuRXCzWKtwogwMsMVhw8uBm0pxdREHvaea+3A0vIVGd+o3ZyivZkeXycP3 rWxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VmeqZQFsfILznkSe1TDD/d0MuJKx0Lhu/2GiKczhwds=; fh=fWHepgPQc/dgdJHPOgZsYJ160cMzdZWiDy5zaiTF/1c=; b=p7v5s/u73DTfoXCU0gO/4++VrSm1BXHslDfyjsOTTFx0DLT/zGJC7EMXR6TjcA6bOp 1u1sdpEKAJ4Lk55sc52etAN2TrtFz0YXOkeEA2ssiY+nFyqMo/RhTwOJ3DeC4uDkdN8K WD1zPRs7J2zuq6iHhfyuUsYWDn+hQ74DmQSExJjn06Rl0WqO0PsqAnxn6bOXlJpxfOm2 +8vd1477uPZd2Y4lcqkbYDOnXuJ3s0rgUEi2gAxCZbIuEusZ4Y8MDgSKvUi+Q31x9hb9 D3bpPB4Xd7hJ2R0dk8S8R10R7jWT2K5lef1YQsU24LC5oOFk7BzW/ua84onhyg4CilhR QZzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wmkDciih; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fi42-20020a056a0039aa00b006e6b4c1fe37si3053004pfb.302.2024.03.14.22.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 22:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wmkDciih; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2D804B21D65 for ; Fri, 15 Mar 2024 05:50:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA0E510A2B; Fri, 15 Mar 2024 05:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wmkDciih" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 8CC37FC0B for ; Fri, 15 Mar 2024 05:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710481830; cv=none; b=cL2rKGWyHEty9PVBgiHSgz64CWa2ZFkbY3oeCI9VFqCjvyPiUx2cTA+AeTuUfGQbQZSBsbcsZ6gvzr2jvEOqw0Nc8C/w7AxfprmGajKY6QRCoC+ziuErZvJHopoo4Aq+Iw9y38gB4RJXUo2chESTWR4F6qrw4/6VDhrTIVRfB40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710481830; c=relaxed/simple; bh=Naq9CDfVLJcnya6EOl3vtZ0oDKB1UwOPAMZ9XUdYhW8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TnUd7EoPmoNMY8xpLRL9yYQaTWlGrW+tERMDGljfro9Oxt9Xlt32ogTdR43lcFm3iwZSBdTsVQK0el37bWzisLmwcyuzkQVw+2LtGhsCCDCwwmkJYgKk5uCbvQZkybouut8OVJSZ+BELH5SjSHp2mrxILidTvXujKzD48KqtB/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=wmkDciih; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e6b54a28ebso1829015b3a.2 for ; Thu, 14 Mar 2024 22:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710481827; x=1711086627; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VmeqZQFsfILznkSe1TDD/d0MuJKx0Lhu/2GiKczhwds=; b=wmkDciihrW5uRQUtYyPQUML0MbOxl3cE4UMXLoxK+4OjAURzdiICFc7eyjTehN6NbL Vn1aNfWoAnALHvCy26hWFDGZ7d+V1qx/i80w2WLhv8A5CIeuTngMHORKOrlVEdGshCD9 rbPuKbpexGMMJB0/tEyCHsl+YwPHRyP7J+XA+LeSwSk2AXvLk3bqdIhjKpCDxYz2770E 3CK65OGZdd+ekC/VqPfHBsA0y1mgwVgqA3/3pjuRhvityKjMRbmJxaouRd5My8mFGJ+P iZgBLL/tuxedrVUoTVf+FKTDdpoRqety1tapZ9hBOTOFF4778Fc60NIhcd3xUWS8TA54 IhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710481827; x=1711086627; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VmeqZQFsfILznkSe1TDD/d0MuJKx0Lhu/2GiKczhwds=; b=FvkqzP38kLcO7+pwKWvIBvdqs0h6JFU5h+2obHmazMfNi0TABjHLqH3+JZljltTNF6 jsV8lSV6+6m/7YZ98vGsCaNZkxOTneS6mpW/Rn3f/GhOVn+MbSPEV/pDD4bvwUq2/65L 6YUZkuK6iKVtc5LMyKavfYTepA37yg48S5Ho/vPgHO8SwICdRQjXuQHGUFk/VXbvoJ1G EhmDVQ37LUfBzRnscVnjs5v0vTi7j5oJn7JRGjMU/W+PbCTKm77/TvUFy/ZFu6AQRwhq OH0uEiclMMc1sr3Pa0aCGU/zS3v+ZWB+IVn/JM73bJVSvTLCG6fSFX9fh1SpM56HCUCe uCow== X-Forwarded-Encrypted: i=1; AJvYcCWEA7D8mtqoHcMHHO+0bOJhZ0Lke1Re9NMC/4Nu/7c/625q9PGqAOE1Y+Rt6f9nyMbdrKQOHi4BFNeRomQG05HEhW7+JH6I7LMu7cqf X-Gm-Message-State: AOJu0Yw6XSANhI0dF+D60zx+Nk4WHgvhraXTQfPQbWlW4Chdvwge2ia/ wjVy1KymjxNFmg5aGaTVF9DaoGZdR92BF6rvKrbUeRPnkz9cx8ooIxo+HJa9cuX0q8OUI4qFJjf 2 X-Received: by 2002:a05:6a20:9d94:b0:1a3:2f5e:6126 with SMTP id mu20-20020a056a209d9400b001a32f5e6126mr4304199pzb.22.1710481826596; Thu, 14 Mar 2024 22:50:26 -0700 (PDT) Received: from localhost ([122.172.85.206]) by smtp.gmail.com with ESMTPSA id le13-20020a170902fb0d00b001dcc2951c02sm2823712plb.286.2024.03.14.22.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 22:50:26 -0700 (PDT) Date: Fri, 15 Mar 2024 11:20:24 +0530 From: Viresh Kumar To: Marek Szyprowski Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, "Rafael J. Wysocki" , Stephan Gerhold , Catalin Marinas , Russell King , Christoph Lameter , Mark Rutland , Sudeep Holla , Will Deacon , stable@vger.kernel.org Subject: Re: [PATCH] cpufreq: dt: always allocate zeroed cpumask Message-ID: <20240315055024.bm7vvznq3nzhfsno@vireshk-i7> References: <20240314125457.186678-1-m.szyprowski@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240314125457.186678-1-m.szyprowski@samsung.com> On 14-03-24, 13:54, Marek Szyprowski wrote: > Commit 0499a78369ad ("ARM64: Dynamically allocate cpumasks and increase > supported CPUs to 512") changed the handling of cpumasks on ARM 64bit, > what resulted in the strange issues and warnings during cpufreq-dt > initialization on some big.LITTLE platforms. > > This was caused by mixing OPPs between big and LITTLE cores, because > OPP-sharing information between big and LITTLE cores is computed on > cpumask, which in turn was not zeroed on allocation. Fix this by > switching to zalloc_cpumask_var() call. > > Fixes: dc279ac6e5b4 ("cpufreq: dt: Refactor initialization to handle probe deferral properly") > CC: stable@vger.kernel.org # v5.10+ > Signed-off-by: Marek Szyprowski > --- > drivers/cpufreq/cpufreq-dt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c > index 8bd6e5e8f121..2d83bbc65dd0 100644 > --- a/drivers/cpufreq/cpufreq-dt.c > +++ b/drivers/cpufreq/cpufreq-dt.c > @@ -208,7 +208,7 @@ static int dt_cpufreq_early_init(struct device *dev, int cpu) > if (!priv) > return -ENOMEM; > > - if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL)) > + if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL)) > return -ENOMEM; > > cpumask_set_cpu(cpu, priv->cpus); Applied. Thanks. -- viresh