Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1118559pxa; Thu, 13 Aug 2020 00:33:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7SNWvaVMqfINSJZKByyOWK5fiNup/Zb/HOSyD6O2jlZFUUEgrOmznGPdiLD6ZxPgtgYwJ X-Received: by 2002:a17:906:7f0e:: with SMTP id d14mr3523606ejr.400.1597303993821; Thu, 13 Aug 2020 00:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597303993; cv=none; d=google.com; s=arc-20160816; b=RRV0ikEtdE9K6TRLehhZ2I7kaqFtKPLCUO71sz6TkeVLYe6qtHz8EYsBPKFjhzv76s 58lEQd1DvjLFIj0M+Grw0eGxt5I8em1OLUPTmZ7tKZLHGU8kL9wVf1v+7+au7uXahUUA l1ziS4HoCa2vOhCljai9+U+3kGY6GnT57tyqtdi7BruWkZ8uDuzbu14aZFS1G2hrfO5G 1UlG81nQqcYbGOVBxq28pF4npajxCk2KzfCGn+YtSkJOkS5HIgGcyLuQ4oRqXbZ/Y/9y BDrZ7XXAYdkzQh2kkAnBE0TYHayZqNHhTPrg7xjQz08HCTqnkWsQIwwqn6i78B+HAVxN guuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=10zIpoDC5WFOJCsOf60NRljx1E04tbY7lNT51eZXHZw=; b=ULf9O0rtudmPC5u5hNOZN11FXsaxZHXt01gfF9Ff6BXR29SSMb8PD79F9yEN0pd4MN 3H9p3GYSK/sZBE5wzh0TsG7cCtKFR4j5i55qZU+CJXVwiJACT3mYg487cqa8rOitDyYc 2UxeL3kbfL8TaNrPl0tyf1NyzwST7nGQyxOMp3wZ72u1ezUHhgi217hHJ0ZQa21UToqp plB3Vt0p7i3GONXuKELzP+z1zo3RQ/9nS7yNiDIWaa4661Wf3DJWjSIsxOGz2KGAowJn BhYAXtqfGczefNrHbbEPpwCaCTOSnj4XiRjHr3ayZTdUuXxItND8r348Lyklbfz8sbyF 8Mdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=chZ+Ddiz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si2722822ejc.278.2020.08.13.00.32.50; Thu, 13 Aug 2020 00:33:13 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=chZ+Ddiz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbgHMHb2 (ORCPT + 99 others); Thu, 13 Aug 2020 03:31:28 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:30638 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbgHMHb1 (ORCPT ); Thu, 13 Aug 2020 03:31:27 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597303887; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=10zIpoDC5WFOJCsOf60NRljx1E04tbY7lNT51eZXHZw=; b=chZ+Ddizp6I+eZPGF10FWto9CEROaHCCuTAQ3jdSn96QACkDo5trxtrTBYqwXcb6yUFgodOy 6+dtZjrw5MqlsyKwEZCgbsEbBxllyS2eImKfB4ViW0SWFuyKITqgIYS9ONSkyLgQjytQcRuz Vv6fYtNwWyFL69GJPMz93RS5k/s= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n09.prod.us-east-1.postgun.com with SMTP id 5f34ec30247ccc308ceae74d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Aug 2020 07:30:56 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DDBD9C433CB; Thu, 13 Aug 2020 07:30:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,NICE_REPLY_A, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.77.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id E430BC433C6; Thu, 13 Aug 2020 07:30:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E430BC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org Subject: Re: [PATCH v4 7/7] irqchip: qcom-pdc: Reset all pdc interrupts during init To: Stephen Boyd , bjorn.andersson@linaro.org, evgreen@chromium.org, linus.walleij@linaro.org, maz@kernel.org, mka@chromium.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, agross@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org References: <1597058460-16211-1-git-send-email-mkshah@codeaurora.org> <1597058460-16211-8-git-send-email-mkshah@codeaurora.org> <159718150946.1360974.10983789401181131846@swboyd.mtv.corp.google.com> From: Maulik Shah Message-ID: <1272cba3-1a6c-4d2e-0b4b-a19dfb5f3a4d@codeaurora.org> Date: Thu, 13 Aug 2020 13:00:44 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <159718150946.1360974.10983789401181131846@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 8/12/2020 3:01 AM, Stephen Boyd wrote: > Quoting Maulik Shah (2020-08-10 04:21:00) >> Clear previous kernel's configuration during init by resetting >> interrupts in enable bank to zero. > Can you please add some more information here about why we're not > clearing all the pdc irqs and only the ones that are listed in DT? sure. > Is > that because the pdc is shared between exception levels of the CPU and > so some irqs shouldn't be used? Does the DT binding need to change to > only list the hwirqs that are usable by the OS instead of the ones that > are usable for the entire system? The binding doesn't mention this at > all so I am just guessing here. The IRQs specified in qcom,pdc-ranges property in DT are the only ones that can be used in the current OS for the PDC. So instead of setting entire register to zero (each reg supports 32 interrupts enable bit) only clearing the ones that can be used. Thanks, Maulik > >> Suggested-by: Stephen Boyd >> Signed-off-by: Maulik Shah -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation