Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3772824ybb; Tue, 31 Mar 2020 11:41:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvbbBdejpHtn7k+xd5zAlaMiRBKv9yx8o2/SgCCQ4tD/yK8OXoy4YYXYkoBDhlzdCI3QMbF X-Received: by 2002:a05:6820:221:: with SMTP id j1mr4090355oob.12.1585680068227; Tue, 31 Mar 2020 11:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585680068; cv=none; d=google.com; s=arc-20160816; b=Os6MzPBV5c2QolloVwqKRQ2LstKMFUlsvx46ggE7D1Gs+cYDgZzfisNYiOGg1It6n7 lxGxqUUhphOD/fR9IWaszUQrH7Ol0x+zS2/lKbTvq2EgHs29N4KXyfo831M4Mo6A30Lp 770oPo0KSVZPFFfQJEOpnEOVe3FQNVrmnCk2E+akZNStqgLpBSrvpd2mkA094lZ4WrjQ TkUSkizxZLeGf1omVev6AqaMW4wgmocC6HB5axfaTRTjCVRu/EaM+vkS60YOXhfhgLx+ /n9IWOiz1BXs/pEZ9iUzJ1hAwhYYI+QkUPJvJVJQNDibssOC0BeCAAwO/ipMAkCpn7tZ kxig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BiFlrx2jci6UF/44wjMJRVvmGi3zYDtbTuZw76ofS9M=; b=gZZ6a5J8kaVQci5KW0tkQyfPmZUFB9g3srAVaxmPCOX6VQpdsuqTLEP5Y1AZ0pYxPC +yq74nIqYC5tgHt6/u4c4oOGDk82rv3ZhbVzcdyWxKbq2afMy9Ipa7F1evR2v+uFv1Mh IdxGzt+KMXuuAkIndSuhXGDHYqUoUpwWiXMuHABukS7QTccrryfdFzp2uEndR7tiN7lC ePC2emZUatjs683z+EEtAKczv4MeUzSv61vS8h/gWEYL7BOTR8w3TaJuArTl0bYMkkDQ RNV7+7XbEwuevgHToRSrRBaj6otfJNJpdSO16Ez+mFWFiNPN/15E0d2UuVP0se09A04f DzUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTD9J09L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id n21si8782576otf.130.2020.03.31.11.40.55; Tue, 31 Mar 2020 11:41:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTD9J09L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727749AbgCaSk2 (ORCPT + 99 others); Tue, 31 Mar 2020 14:40:28 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33816 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbgCaSk2 (ORCPT ); Tue, 31 Mar 2020 14:40:28 -0400 Received: by mail-pf1-f193.google.com with SMTP id 23so10754568pfj.1 for ; Tue, 31 Mar 2020 11:40:27 -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=BiFlrx2jci6UF/44wjMJRVvmGi3zYDtbTuZw76ofS9M=; b=vTD9J09LOf7YaKpipJJDrND2YBBqrJCrokT+YirTJiDmBCrXSEte4ecos/ucAha3yU Gg8STR6sCIRMljfMemjURNJ7wDHYDK6srFfQMLyVAoe7cH2R5XV25criDj6PpGB+DQDP gTFjnucSamy6DZk8q/6MJ/WNjs5N1oSqTdng6KM9E+GKLjrcb27i0CddZhEDygJVLS6H 5LuChaiCe53Ho9X/DZtDglzHhPdz0aFauosokOuLsa941Xk659PoHyaMmNLUk7NRpzvy ZQ23pmTUl9qKF5NprxcAYwfyhaxDpAVjba1eucGXDIxg1HVnVXqa3uZ4moml+KHZ91iC ta8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BiFlrx2jci6UF/44wjMJRVvmGi3zYDtbTuZw76ofS9M=; b=LhqWyXzEYCGeZGKa1R7mlAXXkAmC/4K+B/slemVCw9ZNRP175G2YVpuPmkQOO8sFpa LTKP5dSFbJLbqauqgLBFPvqlxdVsfpCVsv+yeHlQuUj3ZgB55Z6LMSbILHXchWns/oUp 6wXCNr8JoEcbHhNnQlizwuc9XskX1ib+lPqk7B6j9q3i9OWfR7+UAomKjQyiCp8Pmku7 973MK4R6wgoEl/pLbEQlmz200BcxzOL5pWsy5th6QoESVYy5EokG5CL8Ob16mlZt4BWh gU4+zYTTch4P35DDKj5m5fvJDuS9XCs+XRxYp5vHxJRm8TApjbCo4/2iMTX9DoVqawYv fZHQ== X-Gm-Message-State: AGi0PuZr0FDceVJ5NU/ca6SqyX49VCcMDGbgwa3pNaUMUaizX1J1S1pe BCeelpHyPFzu2BikKVvGVGFWKg== X-Received: by 2002:a62:ee15:: with SMTP id e21mr6219077pfi.90.1585680026497; Tue, 31 Mar 2020 11:40:26 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g7sm5951509pfo.85.2020.03.31.11.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 11:40:25 -0700 (PDT) Date: Tue, 31 Mar 2020 11:40:23 -0700 From: Bjorn Andersson To: pillair@codeaurora.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v7] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node Message-ID: <20200331184023.GB267644@minitux> References: <1585219723-28323-1-git-send-email-pillair@codeaurora.org> <20200327230025.GJ5063@builder> <000101d604f8$afc48220$0f4d8660$@codeaurora.org> <20200328183055.GA663905@yoga> <000301d605ba$3d034a10$b709de30$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301d605ba$3d034a10$b709de30$@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 29 Mar 04:07 PDT 2020, pillair@codeaurora.org wrote: > Hi Bjorn, > > > -----Original Message----- > > From: Bjorn Andersson > > Sent: Sunday, March 29, 2020 12:01 AM > > To: pillair@codeaurora.org > > Cc: devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > linux- > > kernel@vger.kernel.org; linux-arm-msm@vger.kernel.org > > Subject: Re: [PATCH v7] arm64: dts: qcom: sc7180: Add WCN3990 WLAN > > module device node > > > > On Sat 28 Mar 05:01 PDT 2020, pillair@codeaurora.org wrote: > > > > > Hi Bjorn, > > > Comments inline. > > > > > > > > > > -----Original Message----- > > > > From: Bjorn Andersson > > > > Sent: Saturday, March 28, 2020 4:30 AM > > > > To: Rakesh Pillai > > > > Cc: devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > > linux- > > > > kernel@vger.kernel.org; linux-arm-msm@vger.kernel.org > > > > Subject: Re: [PATCH v7] arm64: dts: qcom: sc7180: Add WCN3990 WLAN > > > > module device node > > > > > > > > On Thu 26 Mar 03:48 PDT 2020, Rakesh Pillai wrote: > > > > > > > > > Add device node for the ath10k SNOC platform driver probe > > > > > and add resources required for WCN3990 on sc7180 soc. > > > > > > > > > > Signed-off-by: Rakesh Pillai > > > > > --- > > > > > > > > > > Depends on https://patchwork.kernel.org/patch/11455345/ > > > > > The above patch adds the dt-bindings for wifi-firmware > > > > > subnode > > > > > --- > > > > > arch/arm64/boot/dts/qcom/sc7180-idp.dts | 8 ++++++++ > > > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 27 > > > > +++++++++++++++++++++++++++ > > > > > 2 files changed, 35 insertions(+) > > > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > > b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > > > index 043c9b9..a6168a4 100644 > > > > > --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > > > +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > > > @@ -327,6 +327,14 @@ > > > > > }; > > > > > }; > > > > > > > > > > +&wifi { > > > > > + status = "okay"; > > > > > + qcom,msa-fixed-perm; > > > > > + wifi-firmware { > > > > > + iommus = <&apps_smmu 0xc2 0x1>; > > > > > > > > How is sc7180 different from sdm845, where the iommus property goes > > > > directly in the &wifi node? > > > > > > Sc7180 IDP is a target without TrustZone support and also with S2 IOMMU > > > enabled. > > > Since in Trustzone based targets, the iommu SID configuration was done > by > > > TZ, there was nothing required to be done by driver. > > > But in non-TZ based targets, the IOMMU mappings need to be done by the > > > driver. > > > Since this is the mapping of the firmware memory and to keep it > different > > > from the driver memory access, a different device has been created for > > > firmware and these SIDs are configured. > > > > > > > I see, I missed the fact that 0xc0:1 is used in the &wifi node itself. > > > > So to confirm, we have streams 0xc0 and 0xc1 for data pipes and 0xc2 and > > 0xc3 for some form of firmware access? And in the normal Qualcomm design > > implementation the 0c2/0xc3 stream mapping is setup by TZ, and hidden > > from Linux using the SMMU virtualisation? > > > > > > Would have been nice to have some better mechanism for describing > > multi-connected hardware block, than to sprinkle dummy nodes all over > > the DT... > > Yes, this is the firmware memory. This method is followed in the venus video > driver > https://patchwork.kernel.org/patch/11315765/ > > Do you suggest following some other mechanism ? > After considering this some more, and having a quick chat with Arnd yesterday, I don't have any other suggestions. So I will pick up your v8. Thanks, Bjorn