From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62105C7618B for ; Thu, 25 Jul 2019 10:33:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 335DC21901 for ; Thu, 25 Jul 2019 10:33:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="qecibP9F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728314AbfGYKdx (ORCPT ); Thu, 25 Jul 2019 06:33:53 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:3402 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfGYKdw (ORCPT ); Thu, 25 Jul 2019 06:33:52 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 25 Jul 2019 03:33:48 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 25 Jul 2019 03:33:51 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 25 Jul 2019 03:33:51 -0700 Received: from tbergstrom-lnx.Nvidia.com (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 25 Jul 2019 10:33:50 +0000 Received: by tbergstrom-lnx.Nvidia.com (Postfix, from userid 1000) id 947724286A; Thu, 25 Jul 2019 13:33:48 +0300 (EEST) Date: Thu, 25 Jul 2019 13:33:48 +0300 From: Peter De Schrijver To: Dmitry Osipenko CC: Sowjanya Komatineni , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH V6 01/21] irqchip: tegra: Do not disable COP IRQ during suspend Message-ID: <20190725103348.GN12715@pdeschrijver-desktop.Nvidia.com> References: <1563738060-30213-1-git-send-email-skomatineni@nvidia.com> <1563738060-30213-2-git-send-email-skomatineni@nvidia.com> <20190725095502.GM12715@pdeschrijver-desktop.Nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-NVConfidentiality: public User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1564050829; bh=re1gXkHl/1j5LvSAnMOpSkyWvMC6pMtSj9wrZeqzjMk=; h=X-PGP-Universal:Date:From:To:CC:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To:X-NVConfidentiality: User-Agent:X-Originating-IP:X-ClientProxiedBy; b=qecibP9FpTzKw1jYg93JvXFfmf40SpZf+/7GvQE2WaqKdfECmsowl8HCfZOJ61XXg Pjh0ti9TDuRfKKTQv6S7MDLjN2eNEayISwICN/gMhYxNGhdEhSRCiYZ1e/t0M1tDsV XVbB88OKNYPXcSaylXi4FIb6oEvQBocDpdXlTtZk4VzbzCO1ZDcFdowDc2zrUAlu4I gdU9OagKKPorCIYLZynYxP1gmUoZ3/NhKV6vDyY3WSHDLfzWawdaP4+z9JKA8DI913 7t12mMhlF+lgpYq2ekg2TOcOn9dDASZ7vCZ53EnZEbtO4cfWvdYqRKUqpiNBbR8hYy Zi9zNfx84qjyQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 01:05:13PM +0300, Dmitry Osipenko wrote: > 25.07.2019 12:55, Peter De Schrijver =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Mon, Jul 22, 2019 at 12:54:51PM +0300, Dmitry Osipenko wrote: > >> > >> All Tegra SoCs support SC7, hence the 'supports_sc7' and the comment > >> doesn't sound correct to me. Something like 'firmware_sc7' should suit > >> better here. > >> > >>> + writel_relaxed(~0ul, ictlr + ICTLR_COP_IER_CLR); > >> > >> Secondly, I'm also not sure why COP interrupts need to be disabled for > >> pre-T210 at all, since COP is unused. This looks to me like it was > >> cut-n-pasted from downstream kernel without a good reason and could be > >> simply removed. > >=20 > > I don't think we can rely on the fact that COP is unused. People can > > write their own code to run on COP. >=20 > 1. Not upstream - doesn't matter. >=20 The code is not part of the kernel, so obviously it's not upstream? > 2. That's not very good if something unknown is running on COP and then > kernel suddenly intervenes, don't you think so? Unless the code was written with this in mind. Peter.