Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp38734pxb; Wed, 22 Sep 2021 15:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrjt4fJj45CF7wwgfNInoiP4grfHjCxzmpvNFOmFmNhfmJyaZkP6baQPAx7nTNJBY6f9es X-Received: by 2002:a5d:9493:: with SMTP id v19mr1119607ioj.34.1632349173832; Wed, 22 Sep 2021 15:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632349173; cv=none; d=google.com; s=arc-20160816; b=kCSb6l/xg5twb1B0hKBc5QDL+8Mosw1a9wvtZn1uJYOX0HnpADtxOHcMoYjGH9Nz51 uahZ6uhL/ThHNaMTcrk7TBaU1UXXIXgBleFeuaqS4CjeTAn3XioejKzacLUzVvw7mAPU 9wckEn81/MULVLO2QWdqY2XlnL/nWFWcVlIGf9/lezM1Fhpm3iU3ZFrBIKai3FibLZo0 8FrT3Dymx2U/3B6OHubEjZsvNL0qxutiKwGYVchYPJmXCMOIMfSwykQ6k4xR2udtlKNt s71Vi8TM1t9Gm/z0TCFDTiwBAHs5s1mjRTsPC+ygg5IMz0cZo77SOtTjCxm9CC6EWz2i 1dLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rBQLrqQ+KVrMj7fI2R/owDobCXRWVkWx/vRkv7LGFv0=; b=Xq4MRN0Ud48h47cIgjH1sqcy7WcnsAMQtvM++560Fseb54xrT5JhuEG6FIS+jnD6On zZMAawrkmiwJMjy+wCEYmz3cHIYi8o5TZi9Ip4fgK++2gB2DgEQH3HB6Qr4WZmSiNFIv mujLJzySDdLntz4wqP2SrmTWEOA8Fc0Unjjqzjo7Ttc4Z8tJK4cO4oruOkzgCTkPXfdY ePLIZPyx9oEMJ8x3vQhRPu2c9Egmb+adRwWmOImGRGz8qLndx0Ya90+4cjfbDBVSK3uU RWtBHlA9qd+RwznZv1eCcNHFvOaV8wa/9ZDyoT/4BYtYu3jO/2DnW3Yk+kZo3HEi3gPQ E8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AFhy04Wi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si3749675ilv.155.2021.09.22.15.19.21; Wed, 22 Sep 2021 15:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AFhy04Wi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234970AbhIVWTv (ORCPT + 99 others); Wed, 22 Sep 2021 18:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbhIVWTu (ORCPT ); Wed, 22 Sep 2021 18:19:50 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B27CC061574 for ; Wed, 22 Sep 2021 15:18:19 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id 97-20020a9d006a000000b00545420bff9eso5725342ota.8 for ; Wed, 22 Sep 2021 15:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rBQLrqQ+KVrMj7fI2R/owDobCXRWVkWx/vRkv7LGFv0=; b=AFhy04WiYMhTL2ya7NSlhkdl4XJYIDnrrjCxOnvCwBFEUxoSxxtonPBPLvy1yVWZ4b wOOGsFDKesuntaE1ScrL6JyGr4mDgf/BR2lQYDKBYU7vbDkHsSqll0Ml6O56xSHchHRL uU9YhzW/rGle7VmlurGCb0yCwxA/ZU4sY6GppoayQ0hFLKuSNWziWmCxMxfRVSml4Iah hPt1AaGN/cd402CSMyiLyHeOplWn7e0ikkJDNcZHuI0Bc464TrULAWmCqXXDLuKZFFv/ mj/lXQR8NYR6gxvYJDVX03DMFVjY2wGb8d8Qs4ZD+7nOQpHV7IHS4SKW6T4Wy6Zltld1 OqEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rBQLrqQ+KVrMj7fI2R/owDobCXRWVkWx/vRkv7LGFv0=; b=gLVP0bDn2Ch4rspebKqA6vYacPktGF20sZNaoACnGAZkc0SBy+eMXDpQWELYV3bo9Z 8Z5D9hJrxPD5GYlaC5ZKzH7u2ygNxjYU8JnWS50XXcoRPrfhqD/6m4nXHK6gfd/kv2R3 KElPloDPsxcyZJIZwCTBXzI8vsenz8SsxO1BTzp5V2AwNxmoT6yq+1YtwiQMGZMRFNMh x3/aoyWJ6sTbsmfpkcQYW6mPgmFE7v/muwWUYiNxwkzBXHQz+GBf0P4NsZCSuL0BsreL TxdD+rsTeEus/R6bH52IneBhnl6Eqmm2m4Ne9Om1VvvZBGKUxQpYHWN0c+5DMekTW25e vaSA== X-Gm-Message-State: AOAM533bH7KyYCuydry6vLKfvnybxj5ydGAuUJYG39x3P2n32lmVJWD1 Y6lkCIaMj8tdSlFHtqOGYSaoSA== X-Received: by 2002:a05:6830:40ca:: with SMTP id h10mr1317634otu.187.1632349098826; Wed, 22 Sep 2021 15:18:18 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r23sm784159otu.54.2021.09.22.15.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 15:18:18 -0700 (PDT) Date: Wed, 22 Sep 2021 17:18:16 -0500 From: Bjorn Andersson To: Robert Marko , Manivannan Sadhasivam Cc: Kathiravan T , agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, open list Subject: Re: [PATCH] arm64: dts: qcom: ipq8074: add SMEM support Message-ID: References: <20210902214708.1776690-1-robimarko@gmail.com> <632a7d28c23a8497d35ea009bfe89883@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 22 Sep 15:23 CDT 2021, Robert Marko wrote: > On Tue, 21 Sept 2021 at 08:24, Kathiravan T wrote: > > > > On 2021-09-20 14:55, Robert Marko wrote: > > > On Mon, 20 Sept 2021 at 04:52, Bjorn Andersson > > > wrote: > > >> > > >> On Thu 02 Sep 16:47 CDT 2021, Robert Marko wrote: > > >> > > >> > IPQ8074 uses SMEM like other modern QCA SoC-s, so since its already > > >> > supported by the kernel add the required DT nodes. > > >> > > > >> > Signed-off-by: Robert Marko > > >> > > >> Thanks for your patch Robert. > > >> > > >> > --- > > >> > arch/arm64/boot/dts/qcom/ipq8074.dtsi | 28 +++++++++++++++++++++++++++ > > >> > 1 file changed, 28 insertions(+) > > >> > > > >> > diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi > > >> > index a620ac0d0b19..83e9243046aa 100644 > > >> > --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi > > >> > +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi > > >> > @@ -82,6 +82,29 @@ scm { > > >> > }; > > >> > }; > > >> > > > >> > + reserved-memory { > > >> > + #address-cells = <2>; > > >> > + #size-cells = <2>; > > >> > + ranges; > > >> > + > > >> > + smem_region: memory@4ab00000 { > > >> > + no-map; > > >> > + reg = <0x0 0x4ab00000 0x0 0x00100000>; > > >> > + }; > > >> > + }; > > >> > + > > >> > + tcsr_mutex: hwlock { > > >> > + compatible = "qcom,tcsr-mutex"; > > >> > + syscon = <&tcsr_mutex_regs 0 0x80>; > > >> > > >> Since it's not okay to have a lone "syscon" and I didn't think it was > > >> worth coming up with a binding for the TCSR mutex "syscon" I rewrote > > >> the > > >> binding a while back. As such qcom,tcsr-mutex should now live in /soc > > >> directly. > > >> > > >> So can you please respin accordingly? > > > > > > Sure, can you just confirm that the: > > > reg = <0x01905000 0x8000>; > > > > > > Is the whole TCSR range as I don't have docs? > > > > Robert, > > > > TCSR_MUTEX block starts from 0x01905000 and has size 0x20000 (128KB) > > Thanks, Kathiravan, > TSCR mutex with MMIO reg under it works, but there is some weird probe > ordering issue. > > For whatever reason, SMEM will get probed only after MTD does and this > will cause issues > if SMEM parser is used as it will return -EPROBE_DEFER but the MTD > core does not really > handle it correctly and causes the device to reboot after failed parsing. > > Now, I have no idea why does this variant which uses MMIO regmap probe > so much later? > Mani, do you have any input related to the probe deferral of the SMEM partition parser, because SMEM not yet probed? Thanks, Bjorn