Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3333778ybl; Mon, 20 Jan 2020 21:55:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwtyfqE4jzSijg7zuk+CTiS5UsVnzx7mr+SZdpE7lma1Bfl4mtugU4g2NNyuyVFpOIkfXWn X-Received: by 2002:a9d:7501:: with SMTP id r1mr2425325otk.196.1579586152741; Mon, 20 Jan 2020 21:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579586152; cv=none; d=google.com; s=arc-20160816; b=dxBzi9jQLqy3LHcfBxsyW6jeUu7jmksKEG83t62N6xfh0sLupmeHwr3+kR1CCREJ0V +bz2hQUuG1uKE6OErwShjNrG88Rw9a26/rsHehh6Miy1xN8LYO8+jpPBsAkQYmNm0wAo 6fZ6EFeBkaZaeZpfwYhH+OlldxXJehyoKSYh9qgotYF+08W1QPqIVq1FpeVxiqOU5YA1 YVTzeyBd1YW2BuHvoEbnJIiHXGNoN54ZybC2MsuiZeZptE5qKk/VvYXb9uOLe1nifqbx H/REq20zloM3EYg2lSxPrC9vZLU9ftgICw/TVigHA2fG2qMuz0cEVyBgujQ22oTp/CI5 pKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id; bh=TxRjaiHM21wJyNBk73kBfAFdNkqWhSD5rP4La7O2ul4=; b=kmNRnlSdHx+KqDHeUvn0jDki3C+GlHyA58qxP0mas3Wlg4VpU1eFwUGOievEqfbHbL YuR+IyGU4PzOz09PHlTwG3E+edcpfOeJqArsvzjkBtGmhJQMBDRU5TSlbPSWh1acjYmK jqYGxO8P92zEW0JH8HD3zLr3V3CxcW03gdeIsykk2LFr9XK+aPeNIz/aq5yztjAgifhN ci/YgcuVBZg7FdLAMJdYvMTer2rA4aHNQ1HX5dB4QUc43L47PRXf35LTvdpQUYfkAse+ Abk7imlqHPrrIGiVUnS+TnsHPdjitH8j/DObNDDmmXAhQD8iAgWnhsyxduDCGkti4hft 1Fqg== 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 q127si19800702oic.99.2020.01.20.21.55.41; Mon, 20 Jan 2020 21:55:52 -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 S1728916AbgAUFyl (ORCPT + 99 others); Tue, 21 Jan 2020 00:54:41 -0500 Received: from baldur.buserror.net ([165.227.176.147]:51896 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728847AbgAUFyj (ORCPT ); Tue, 21 Jan 2020 00:54:39 -0500 Received: from [2601:449:8480:af0:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1itmQK-0006oP-A0; Mon, 20 Jan 2020 23:50:00 -0600 Message-ID: <0948b2f469c5e9d9241477e7f0cba677bbcd1780.camel@buserror.net> From: Scott Wood To: =?UTF-8?Q?=E7=8E=8B=E6=96=87=E8=99=8E?= Cc: wangwenhu , Kumar Gala , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, trivial@kernel.org, Rai Harninder Date: Mon, 20 Jan 2020 23:49:59 -0600 In-Reply-To: References: Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2601:449:8480:af0:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: wenhu.wang@vivo.com, wenhu.pku@gmail.com, galak@kernel.crashing.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, trivial@kernel.org, harninder.rai@nxp.com X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for * this recipient and sender Subject: Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-01-21 at 13:20 +0800, 王文虎 wrote: > From: Scott Wood > Date: 2020-01-21 11:25:25 > To: wangwenhu ,Kumar Gala , > Benjamin Herrenschmidt ,Paul Mackerras < > paulus@samba.org>,Michael Ellerman , > linuxppc-dev@lists.ozlabs.org,linux-kernel@vger.kernel.org > Cc: trivial@kernel.org,wenhu.wang@vivo.com,Rai Harninder < > harninder.rai@nxp.com> > Subject: Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM > configurable>On Mon, 2020-01-20 at 06:43 -0800, wangwenhu wrote: > > > From: wangwenhu > > > > > > When generating .config file with menuconfig on Freescale BOOKE > > > SOC, FSL_85XX_CACHE_SRAM is not configurable for the lack of > > > description in the Kconfig field, which makes it impossible > > > to support L2Cache-Sram driver. Add a description to make it > > > configurable. > > > > > > Signed-off-by: wangwenhu > > > > The intent was that drivers using the SRAM API would select the > > symbol. What > > is the use case for selecting it manually? > > > > With a repository of multiple products(meaning different defconfigs) and > multiple > developers, the Kconfigs of the Kernel Source Tree change frequently. So the > "make menuconfig" > process is needed for defconfigs' re-generating or updating for the > complexity of dependencies > between different features defined in the Kconfigs. That doesn't answer my question of how the SRAM code would be useful other than to some other driver that uses the API (which would use "select"). There is no userspace API. You could use the kernel command line to configure the SRAM but you need to get the address of it for it to be useful. > > Since this code was added almost ten years ago and there are still no (in- > > tree?) users of the API, we should just remove the sram code (unless this > > prods someone to submit such a user very soon). > > > > Yes, pretty long a time. But we DO really use the API now for > PPCE500/Freescale SoC. I do not see any users in the kernel tree. Are you talking about out-of-tree code, or something that you've submitted or will submit soon? Or are you accessing it via /dev/mem? > Like sometimes we need to reset the whole RAM, then the L2-Cache would be > used as > SRAM for backup using. Since it is useful for us now, a re-consideration is > recommanded. Where is the code that would do this? -Scott >