Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BCEBC61DA4 for ; Sat, 11 Mar 2023 13:52:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjCKNwg (ORCPT ); Sat, 11 Mar 2023 08:52:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbjCKNwc (ORCPT ); Sat, 11 Mar 2023 08:52:32 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A296212B968 for ; Sat, 11 Mar 2023 05:52:26 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id t14so8213174ljd.5 for ; Sat, 11 Mar 2023 05:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678542745; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jvgHzZP6duBdKPk8LZDKNHr0yVWeUXrSp8nq1pPiUCU=; b=dR6gd0RJlU8aweRFlz2U9JJ7Z9HfzEjj3VgyhfmDBdIcJR1unTuacW2utIUOT7sw2Q xcigT1+UzRqjd4QERw6WTxQ82WoNg40xZkXPUyZvz9PvQlPf1dfltjvjkCbUoEs+Anlk cui8Vrv2tKT6zUGnjsqF1hcFOR7AMXNx2f2xikQU908iHZ3ueFWnqjnOwytgw8f2Fprp GyBmUqg7E7kEdK5+FaQcrmGCT0g7GP6z8LqbOU+CroYj/jLoFMbCwG41FE8v+QM5Vz2s 3eKyPNQLaXRJSLOqMp8iUSFLSW5P91M3+wG6JXNF4tgTiv4kULKg9dmU/iZ0eVhkVY8D v6/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678542745; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jvgHzZP6duBdKPk8LZDKNHr0yVWeUXrSp8nq1pPiUCU=; b=A03jpWoIIRteTCBM4JKgMfiLJev4ov46Lf/CUJBQBHucdrUZEqE66FMO5rNaPdMsq7 k7+GOg00vCrl8MtLsOgZcDsfqJxvHTFS/E7r9mFo8GmgylZcQe/6qJKrSf+EmA7a20Lu N37HnajQo4ZSz+256zqwHY7V/wJGqEVKR2/n9gvSqQF9kHMcdpeV9mp9TD6EajBXaS40 2YkS7puadn9uT2ZC/c+wbfdptdkervwbAYuGHb6QZTnfmRjE5UcZ4DeSVMpv1ruLmhSD VzbpKBjATOFtg3rgoNtkj4ewooesJaH1wR87gcE1BmBIzU3AQShtUvMFwAI+B6Um/GcG 9OIg== X-Gm-Message-State: AO0yUKWla16VTuEVym1tkpyb/zUseC6GOHiZzPON6jYDKMYzudto9f8e uMGfj1WwaN6eP3etACuZ47pWbA== X-Google-Smtp-Source: AK7set94nyJ5uuOgspSNFWc3OCJIjN1NGbo5rYP3/hTqJeX440u0vllnccEq17uLd9x5QubIBZ+oeg== X-Received: by 2002:a2e:7308:0:b0:293:4e6d:9194 with SMTP id o8-20020a2e7308000000b002934e6d9194mr8293403ljc.24.1678542744932; Sat, 11 Mar 2023 05:52:24 -0800 (PST) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id c11-20020a2e9d8b000000b00295b1b6e063sm333375ljj.34.2023.03.11.05.52.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Mar 2023 05:52:24 -0800 (PST) Message-ID: <0ae6e2b3-721d-f43c-0913-0586a8e8e220@linaro.org> Date: Sat, 11 Mar 2023 15:52:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7 1/9] interconnect: qcom: rpm: make QoS INVALID default Content-Language: en-GB To: Konrad Dybcio , Andy Gross , Bjorn Andersson , Georgi Djakov Cc: Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230228-topic-qos-v7-0-815606092fff@linaro.org> <20230228-topic-qos-v7-1-815606092fff@linaro.org> From: Dmitry Baryshkov In-Reply-To: <20230228-topic-qos-v7-1-815606092fff@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2023 23:40, Konrad Dybcio wrote: > Currently NOC_QOS_MODE_FIXED is defined as 0x0 which makes it the > default option (partial struct initialization). The default option > however should be NOC_QOS_MODE_INVALID. > > That results in bogus QoS configurations being sent for port 0 (which > is used for the DRAM endpoint on BIMC, for example) coming from all nodes > with .qos.ap_owned = true and uninitialized .qos.qos_mode. It's also an > issue for newer SoCs where all nodes are treated as if they were ap_owned, > but not all of them have QoS configuration. > > The NOC_QOS_MODEs are defined as preprocessor constants and are not used > anywhere outside qcom_icc_set_noc_qos(), which is easily worked around. > Separate the desc->type values from the values sent to msmbus in the > aforementioned function. Make the former an enum for better mainainability. > > Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry