From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7577120B1B for ; Sat, 23 Sep 2023 18:02:18 +0000 (UTC) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6D77FE for ; Sat, 23 Sep 2023 11:02:16 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50308217223so6183538e87.3 for ; Sat, 23 Sep 2023 11:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695492135; x=1696096935; darn=vger.kernel.org; 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=e2+w/hIMeCdP5XObJabV3a0a034s6znbmDpY5rWOZME=; b=KPrGB3EZnAN+ABl4oSX71hIMndAD7osVuoTYxpBRx/U9eQ0xqb+tAxr3DfZuAHT2nq CkET4dcq3Jcf5qbgAR12eD+xLX58tFdYKl4S9kqJDuumBUYZvarFSVLfRxoIzQynntBe iypR3CJ67aN+xL/gaEn73ZOo72ZqO4KmBFLKWi+Cb8zsgUgz3VlIC7f6Uvxa1tczoePl 676SE0YxzmSF9UN2pPr2PPM9e5ljReG6sH5/rWsqLvfZIpLWoIKjHWBSeOo/dA+GgFJv oWjup+PYJ9I+hmbU6bnL4szd16eumfnUSrJmZsDwaQEzCzP7v7lzN40noQLJjwGIBKBh qjrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695492135; x=1696096935; 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=e2+w/hIMeCdP5XObJabV3a0a034s6znbmDpY5rWOZME=; b=iD7FN/nMDSDfv3+/kwRk5qHJ86aNDOvCvwwrbyUHapu/GeXwkra0y3G7k/ZD7Sk+oZ BNPhG0ATWba1LsS+8YRfOYxl/D6llNf7fQDopxv1GSjqQ7DrBpxmsHtFyahXd5U7vm2j OJh8fXqKraX7ITcZerwlEcyBD3VdLN8jsbUQeJqC11soQzAxF0GW/6fqEalUVDhW1ICx aCkOYHvWZnFUpJHE4MNVD2B4yWDqOm4VeOhK9iqvS86uuv2+FO27m3ojUGd0YQlGzZXo xBzQsDB/n/mE6F5yn4X42JGAifwWB6lNTVsoCOCO/NoSPtfEM/8OvRcy5q1ycOf6mAiS O84Q== X-Gm-Message-State: AOJu0YxJhBpDXHg1zZ4MvrU/aDtgvRqK0lQd7wGrVWOVXdtlHFbSN3g3 hb4wpLWYUeRbnRv1Te0aBIQppg== X-Google-Smtp-Source: AGHT+IE9QFZHI8Y6so7/mo4x5KEZ3eDde8p0i5eSPhIKMUzOwbXushpkR+BjNRjB7kVP3w1OZaAbjA== X-Received: by 2002:a05:6512:3415:b0:503:3756:9ff1 with SMTP id i21-20020a056512341500b0050337569ff1mr2078800lfr.49.1695492134868; Sat, 23 Sep 2023 11:02:14 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.100]) by smtp.gmail.com with ESMTPSA id cb9-20020a0564020b6900b00533ec6c617asm132069edb.54.2023.09.23.11.02.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Sep 2023 11:02:14 -0700 (PDT) Message-ID: <797fc698-54d2-4848-3a4d-43ca631eb96d@linaro.org> Date: Sat, 23 Sep 2023 20:02:12 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 03/15] soc: mailbox: Add SPR definition for GCE Content-Language: en-US To: "Jason-JH.Lin" , Jassi Brar , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Chun-Kuang Hu , AngeloGioacchino Del Regno Cc: Conor Dooley , Jason-ch Chen , Johnson Wang , Elvis Wang , Singo Chang , Nancy Lin , Shawn Sung , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20230918192204.32263-1-jason-jh.lin@mediatek.com> <20230918192204.32263-4-jason-jh.lin@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20230918192204.32263-4-jason-jh.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On 18/09/2023 21:21, Jason-JH.Lin wrote: > GCE has specific purpose registers, abbreviated as SPR. > Client can us SPR to store data or programs. > > In CMDQ driver, it allows client to STORE or LOAD data into SPR. > The value stored in SPR will be cleared after reset GCE HW thread. > > There are 4 SPR (register index 0 - 3) in every GCE HW thread. > SPR is thread-independent and HW secure protected. > > Signed-off-by: Jason-JH.Lin > --- > include/linux/soc/mediatek/mtk-cmdq.h | 5 +++++ There is no user of this... Why do you add unused defines? Best regards, Krzysztof