Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3628011imj; Tue, 19 Feb 2019 06:49:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IYB3zyFsV0eHLb0osnFLbF8x4auSlTMjnSZtAA1z39olWOpBDCg0MZte3DQwPMCoGE4QYi+ X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr29867793plb.70.1550587757393; Tue, 19 Feb 2019 06:49:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550587757; cv=none; d=google.com; s=arc-20160816; b=h+38SfeDyM9xQH4hEpd+lPEm1tagugyCe2Xg0XZWNsmgLql6vTxb9ut3PVLg712A9k vwt8icVNqtxNhQS3SOiiSXUqxTaVpQRje6uX+OiRMap5F18Zbn5eddeW8iDfGhUrrZyW rkcOwoGxjr/tZyKnj92cTdy6mx+A8vS/AB/UFHhXL3XJIk68DdngcRO3/+2o4D+lSPB5 CoLUyMpMbiqLhmWhvZ/InMTbM2EkdzYgrolRCDk9q9KEToNA1ySMjaaW1Am++1aMyz9z /k5o+CuBJN75QeGVRtXDGUBE1gAuYV/1kPxy72qBrsL3FxV8Xqhj+WUYQ+Fu96J/OwB8 7LHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LSp/e8V0aZbnsXZ6t0AXjyJ1OOaJdp4olltgLiolLOI=; b=eLdkftDH+bCHNnIzFk/0gWc2SsVpaliFr+agplM/XqxO1YS96DuhwzXPp3vKa72eQ8 +MaAe3RVeYL/QBnbUQ1YlbC/Og0Ji5VT5XkHdb9KU+ho5xE9QCGFwnDcwEry++NHrmiZ q9PDui6r8DFZ7m3hknYZ/AYSST/UMDjPKlpZQJ6aJ685ci5qcHPWlYsmt36y8rNgcdFi dChJNV2+M8lOVf1nM7Z3mM0HZGIgVBVAdMKNoo97cXgZJIO3ZK7JdOo+K0S0HM0ySaZo aoEDC35gQ80WmGHM2J/VQRWc8LFqhcLkZZO1G6aD7pD6yDtjg0vtexW69UK56DsbeOx6 Irbg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si15594025pff.158.2019.02.19.06.49.01; Tue, 19 Feb 2019 06:49:17 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726844AbfBSOsS (ORCPT + 99 others); Tue, 19 Feb 2019 09:48:18 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:48213 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbfBSOsS (ORCPT ); Tue, 19 Feb 2019 09:48:18 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gw6gs-00037B-2h; Tue, 19 Feb 2019 15:48:10 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gw6gq-0007nd-Lm; Tue, 19 Feb 2019 15:48:08 +0100 Date: Tue, 19 Feb 2019 15:48:08 +0100 From: Marco Felsch To: Anson Huang Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "ulf.hansson@linaro.org" , Aisheng Dong , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH] dt-bindings: imx: update scu resource id headfile Message-ID: <20190219144808.qqpaubjcsb4huoml@pengutronix.de> References: <1550566601-11497-1-git-send-email-Anson.Huang@nxp.com> <20190219125211.2pg2bqxner4klcb5@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:21:18 up 31 days, 19:03, 36 users, load average: 0.07, 0.07, 0.03 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On 19-02-19 13:21, Anson Huang wrote: > Hi, Marco > > Best Regards! > Anson Huang > > > -----Original Message----- > > From: Marco Felsch [mailto:m.felsch@pengutronix.de] > > > > Hi Anson, > > > > On 19-02-19 09:01, Anson Huang wrote: > > > Update i.MX SCU resource ID table according to latest system > > > controller firmware. > > > > will this happen every time the scu firmware gets a update? > > If SCU firmware updates this table, then yes, it MUST keep same as SCU firmware, > but such ID table is NOT updated very often, I checked the history in our internal tree, there > are ONLY 3 updates since 2016. Please don't get me wrong, but 3 times since 2016 == every year (since now) == every 3rd kernel. This seems wrong to me. Can you explain me if the following use-case will work: Starting point: - firmware (incl. bootloader, dtb, scu and other nxp closed source fw) from 2017 - kernel from 2017 Now the project update the kernel to a version from 2019, but the fw won't be updated. There are a lot of projects using such a approach to retrieve security updates. I don't like droping some ID's (e.g. IMX_SC_R_DC_0_CAPTURE0) by mark them as unused or even worse give them a other meaning. IMHO the scu-api should be stable since day 1 and the ID's should only be extended. Marking ID's as deprecated is much better than moving them around. Regards, Marco > > Anson. > > > > > Regards, > > Marco > > > > > Signed-off-by: Anson Huang > > > --- > > > include/dt-bindings/firmware/imx/rsrc.h | 39 > > > +++++++++++++++++++-------------- > > > 1 file changed, 22 insertions(+), 17 deletions(-) > > > > > > diff --git a/include/dt-bindings/firmware/imx/rsrc.h > > > b/include/dt-bindings/firmware/imx/rsrc.h > > > index 4481f2d..ad747a8 100644 > > > --- a/include/dt-bindings/firmware/imx/rsrc.h > > > +++ b/include/dt-bindings/firmware/imx/rsrc.h > > > @@ -36,15 +36,15 @@ > > > #define IMX_SC_R_DC_0_BLIT1 20 > > > #define IMX_SC_R_DC_0_BLIT2 21 > > > #define IMX_SC_R_DC_0_BLIT_OUT 22 > > > -#define IMX_SC_R_DC_0_CAPTURE0 23 > > > -#define IMX_SC_R_DC_0_CAPTURE1 24 > > > +#define IMX_SC_R_PERF 23 > > > +#define IMX_SC_R_UNUSED5 24 > > > #define IMX_SC_R_DC_0_WARP 25 > > > -#define IMX_SC_R_DC_0_INTEGRAL0 26 > > > -#define IMX_SC_R_DC_0_INTEGRAL1 27 > > > +#define IMX_SC_R_UNUSED7 26 > > > +#define IMX_SC_R_UNUSED8 27 > > > #define IMX_SC_R_DC_0_VIDEO0 28 > > > #define IMX_SC_R_DC_0_VIDEO1 29 > > > #define IMX_SC_R_DC_0_FRAC0 30 > > > -#define IMX_SC_R_DC_0_FRAC1 31 > > > +#define IMX_SC_R_UNUSED6 31 > > > #define IMX_SC_R_DC_0 32 > > > #define IMX_SC_R_GPU_2_PID0 33 > > > #define IMX_SC_R_DC_0_PLL_0 34 > > > @@ -53,17 +53,17 @@ > > > #define IMX_SC_R_DC_1_BLIT1 37 > > > #define IMX_SC_R_DC_1_BLIT2 38 > > > #define IMX_SC_R_DC_1_BLIT_OUT 39 > > > -#define IMX_SC_R_DC_1_CAPTURE0 40 > > > -#define IMX_SC_R_DC_1_CAPTURE1 41 > > > +#define IMX_SC_R_UNUSED9 40 > > > +#define IMX_SC_R_UNUSED10 41 > > > #define IMX_SC_R_DC_1_WARP 42 > > > -#define IMX_SC_R_DC_1_INTEGRAL0 43 > > > -#define IMX_SC_R_DC_1_INTEGRAL1 44 > > > +#define IMX_SC_R_UNUSED11 43 > > > +#define IMX_SC_R_UNUSED12 44 > > > #define IMX_SC_R_DC_1_VIDEO0 45 > > > #define IMX_SC_R_DC_1_VIDEO1 46 > > > #define IMX_SC_R_DC_1_FRAC0 47 > > > -#define IMX_SC_R_DC_1_FRAC1 48 > > > +#define IMX_SC_R_UNUSED13 48 > > > #define IMX_SC_R_DC_1 49 > > > -#define IMX_SC_R_GPU_3_PID0 50 > > > +#define IMX_SC_R_UNUSED14 50 > > > #define IMX_SC_R_DC_1_PLL_0 51 > > > #define IMX_SC_R_DC_1_PLL_1 52 > > > #define IMX_SC_R_SPI_0 53 > > > @@ -303,8 +303,8 @@ > > > #define IMX_SC_R_M4_0_UART 287 > > > #define IMX_SC_R_M4_0_I2C 288 > > > #define IMX_SC_R_M4_0_INTMUX 289 > > > -#define IMX_SC_R_M4_0_SIM 290 > > > -#define IMX_SC_R_M4_0_WDOG 291 > > > +#define IMX_SC_R_UNUSED15 290 > > > +#define IMX_SC_R_UNUSED16 291 > > > #define IMX_SC_R_M4_0_MU_0B 292 > > > #define IMX_SC_R_M4_0_MU_0A0 293 > > > #define IMX_SC_R_M4_0_MU_0A1 294 > > > @@ -323,8 +323,8 @@ > > > #define IMX_SC_R_M4_1_UART 307 > > > #define IMX_SC_R_M4_1_I2C 308 > > > #define IMX_SC_R_M4_1_INTMUX 309 > > > -#define IMX_SC_R_M4_1_SIM 310 > > > -#define IMX_SC_R_M4_1_WDOG 311 > > > +#define IMX_SC_R_UNUSED17 310 > > > +#define IMX_SC_R_UNUSED18 311 > > > #define IMX_SC_R_M4_1_MU_0B 312 > > > #define IMX_SC_R_M4_1_MU_0A0 313 > > > #define IMX_SC_R_M4_1_MU_0A1 314 > > > @@ -337,7 +337,7 @@ > > > #define IMX_SC_R_IRQSTR_SCU2 321 > > > #define IMX_SC_R_IRQSTR_DSP 322 > > > #define IMX_SC_R_ELCDIF_PLL 323 > > > -#define IMX_SC_R_UNUSED6 324 > > > +#define IMX_SC_R_OCRAM 324 > > > #define IMX_SC_R_AUDIO_PLL_0 325 > > > #define IMX_SC_R_PI_0 326 > > > #define IMX_SC_R_PI_0_PWM_0 327 > > > @@ -554,6 +554,11 @@ > > > #define IMX_SC_R_VPU_MU_3 538 > > > #define IMX_SC_R_VPU_ENC_1 539 > > > #define IMX_SC_R_VPU 540 > > > -#define IMX_SC_R_LAST 541 > > > +#define IMX_SC_R_DMA_5_CH0 541 > > > +#define IMX_SC_R_DMA_5_CH1 542 > > > +#define IMX_SC_R_DMA_5_CH2 543 > > > +#define IMX_SC_R_DMA_5_CH3 544 > > > +#define IMX_SC_R_ATTESTATION 545 > > > +#define IMX_SC_R_LAST 546 > > > > > > #endif /* __DT_BINDINGS_RSCRC_IMX_H */ > > > -- > > > 2.7.4 > > > > > > > > > > > > > -- > > Pengutronix e.K. | | > > Industrial Linux Solutions | > > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww > > w.pengutronix.de%2F&data=02%7C01%7Canson.huang%40nxp.com%7 > > Cfe709ac17a164d82c7d508d6966915fb%7C686ea1d3bc2b4c6fa92cd99c5c301 > > 635%7C0%7C0%7C636861775412076730&sdata=05ZzPf2%2BQF10JXLLs > > OPqDdqTi00BWXNHxmMOsQ1z0yI%3D&reserved=0 | > > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |