Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4588779pxk; Wed, 30 Sep 2020 06:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuseGZQxCjw1bo05isFTmiD+UvKbgVBrrR502D1S/v848+CmhfJHbzRU9OLDgElHb2BKvP X-Received: by 2002:a17:906:556:: with SMTP id k22mr2862109eja.369.1601474320868; Wed, 30 Sep 2020 06:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601474320; cv=none; d=google.com; s=arc-20160816; b=rzO9AJw2NGMi9tFZTE8yT0NmTDi8Qry0rH8E3pr3Gp00prtfjA8D4IDblSoHfdCIDZ Mb/8w0ZA9kblkrYumRu21XNR64pRe10qqSrthkgF0z68ks36T8RDw8kVgB72byiGfDUp LkLtSXaHUmhlA40J6kWrFqSMEmKwF43yczVXspaOTgwTPMzdY8r8CgjHvV3g1Vx37NCz yzbFhE6wtxt6WpsJAkOxhYum38Pf37n8tB5RfcmBgryk8bkZuLPzJ127fRGZzLwAuRfn zcnx4MdFq8d6gzTdYUyfV3Plc7VSSmT6spR9r72A6bOhs4EAjxgq0C/H8zMPZ/MbRkp8 /o6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=M20BOPS5H/G5NXkhn2m+algW/H3ixf6IQIcCKNdwnnI=; b=H55zI+SYVkIMLQClzuKwuNrwOdRiC/9HR+p2GDbAeG/PcisX6hcrWUtDWrdFzJaZzo i07fIW8AJ6sofLxF1+c604pO2O6CLCIkURW+Vm+i4xsJFbUKvO5ij3374GAERFsLZJjN 7Q2l5BIdgS1ttyIG/CRZ/G6DiRRmqPd2nW6vDDffDJxz72ydQRE86JJ8BXTUGzMNP1TA BR33+mV8WYKxRWhecfhy06l0zbdue4cLTY+rovWRTCDuKXswJPbx1MxPXGOavuWp1rzC EG/4ieBjHVM7k5hM23/LmRk6PJ8IGuqd8h6iQRPisoPne5DZVYHtQW6ClFEjkq1Fujd7 a80g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jNhZu+zS; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si1101398edq.528.2020.09.30.06.58.18; Wed, 30 Sep 2020 06:58:40 -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=@ti.com header.s=ti-com-17Q1 header.b=jNhZu+zS; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730057AbgI3Ny4 (ORCPT + 99 others); Wed, 30 Sep 2020 09:54:56 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52454 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbgI3Nyz (ORCPT ); Wed, 30 Sep 2020 09:54:55 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08UDsqeS035821; Wed, 30 Sep 2020 08:54:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601474092; bh=M20BOPS5H/G5NXkhn2m+algW/H3ixf6IQIcCKNdwnnI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=jNhZu+zSF2osHh488EuubKtJLgPrOd3fNWvFx1q9SX6H3vWB/B4sidxsjhrR7WC8i E3yiaNDuvWsSJIkqfb/GqkR8ewglTVjfQHzaMpjvW/RIiDxvwZG6ItD1Ns1dfitu02 RCvxMKtnvMOM3/jrAlwNVr/IZ75Z616HGOC6cUps= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08UDsqv1127866 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 08:54:52 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 30 Sep 2020 08:54:51 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 30 Sep 2020 08:54:51 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08UDsodx101838; Wed, 30 Sep 2020 08:54:50 -0500 Subject: Re: [PATCH 07/11] firmware: ti_sci: rm: Add new ops for ring configuration To: Peter Ujfalusi , , , , CC: , References: <20200928083429.17390-1-peter.ujfalusi@ti.com> <20200928083429.17390-8-peter.ujfalusi@ti.com> From: Grygorii Strashko Message-ID: Date: Wed, 30 Sep 2020 16:54:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200928083429.17390-8-peter.ujfalusi@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/09/2020 11:34, Peter Ujfalusi wrote: > The sysfw ring configuration message has been extended to include virtid > and asel value for the ring. > Add the ASEL_VALID to TI_SCI_MSG_VALUE_RM_ALL_NO_ORDER as it is required > for DMA rings. > > Instead of extending the current .config() ops - which would need same > patch change in the ringacc driver - add ti_sci_msg_rm_ring_cfg struct and > a new ops using it to configure the ring. > > This will allow easy update path in case new members are added for the ring > configuration. > > Signed-off-by: Peter Ujfalusi > --- > drivers/firmware/ti_sci.c | 63 ++++++++++++++++++++++++++ > drivers/firmware/ti_sci.h | 7 +++ > include/linux/soc/ti/ti_sci_protocol.h | 31 ++++++++++++- > 3 files changed, 100 insertions(+), 1 deletion(-) > Reviewed-by: Grygorii Strashko -- Best regards, grygorii