Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5451689yba; Mon, 13 May 2019 11:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7ACi7j7mp4lc3NgglY4S1lnhvZRZ9Jau/ACIJu3N4F6zCVUkSyICy/iLZZjM5xKZ8Xtex X-Received: by 2002:a65:5886:: with SMTP id d6mr32905981pgu.295.1557770608824; Mon, 13 May 2019 11:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557770608; cv=none; d=google.com; s=arc-20160816; b=g5BDUz4MysIEqVxJiBEzb+cYbSnkcOYCAIn8YIq8t+m5ESf2F5jVqYs43F2kA6cre0 FyvOj/MSnjwoywJDw96187Ulu5b32MI0s7/2+JbG4O3N7OxnE7VU7ptvnB5xwQ1u0CTz oOAap3GCwGakcRDmfALMgxa6C0SWdejgVPUYtAofLMYhAGFagTu88VUoZCrdDx99Qxj+ pBwTuO4cj/OT2oa54sAeNEmkXpkZTV1C4gPQ6LQ/w1ezuovUDaPWFyGiWs5jevLuFYJv pb+u4b/ziGUXLVzFqbphaK9fmJHc6PJ7hrREmrtRXmKkhdkB1QsuTzEdixeSAC5wLDPX 8UAg== 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:dkim-signature; bh=z8CoKhwBZZ+WN7WIq6kiZqXUYgO4LKmPTb53WftMZmU=; b=N0o9dRWpREAB6DY2Chwc+aSko7hb73ss5XaptAHiwEwer6W1JSS/ZntALHd8/eVSie nnPJspLAHG/971IZWtAMaFU8vEH3S87gRCGkwPe53NoHOBbTMuPhjDQrHVh5DKWgH8UF o7cO7X0evMkXsxze5oVmpdZQ6Aaiv+mVVPwTIIhmLLFAXE3WrLf3oT0PVbVd8WECk9hU Ryr0LtLXNwWgsIGKBD6vYWqorsTTTqxFxxzDeZnO6Rz9YUpj9GI+B7ncBH4WONpFg9Iq EqvxaNpIuNmWGIdkL/3A+CNunIc72G1FV0Ux8sQ9f4TGixShxTwxKBFbk36IE7p1O/uu Fmew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASPC0nz8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si5356417pls.290.2019.05.13.11.03.12; Mon, 13 May 2019 11:03:28 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASPC0nz8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730164AbfEMQAk (ORCPT + 99 others); Mon, 13 May 2019 12:00:40 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36862 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726866AbfEMQAk (ORCPT ); Mon, 13 May 2019 12:00:40 -0400 Received: by mail-lf1-f68.google.com with SMTP id y10so9493399lfl.3; Mon, 13 May 2019 09:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=z8CoKhwBZZ+WN7WIq6kiZqXUYgO4LKmPTb53WftMZmU=; b=ASPC0nz8z1rQoBUTP4uEWYF+eOTt27EeVCUCyrxVb5N1322we0ec/Pwlj5Y9SvYHGt sAbtidOPRp8MPVWkRz3tM9QQUdfJmGuRGwEEXpxv0BTfeu41LcTueSMp0T1iyWyEKq9X brwnZAkcrBBHhtq4Np12xJnXg9OKBZfWMGNASQgcfeUOKxkTs+xSMRDw7VYms7RCvrGg FwXRTUEYfCMWFMnUqj1csAMwg/CxKAiwtZOPRYH93D4llYG1oOw1lh8AZH19oDjfSezY TOGhVhRn2ZqlHWqQ2zZkEYbw/PlNIdZj5PRHH658+GnnTCaJ81+HIKOzHOmmCtWKxO72 tYxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=z8CoKhwBZZ+WN7WIq6kiZqXUYgO4LKmPTb53WftMZmU=; b=rOKU0Zs8xoYHxNnRomyPlfLduMqIK6uJ9QWk+9+vcQCDCfLMB7G7Dq7CKN2jIHRtJo Qc8034ZivE/LiwSHXNDwN53i9St5TrjD9TRC0AhxM6xPri79CA9QvvKfjEX1a6p27usi 3bGS/K5rf8VP0boFCl+2As9o0x78PVf8vTOTkJGv2PUyPxfCsR56SA9sfc9ek9WcxKry uhtP8ed/LEr84L8K1/y6okQRf4Y7ndcwoKLZMDtrza/DQ5iIVhtvA7gZ8bymB9BYRcEd d+e0+0iqziylvr3mvY8z64C1PjW//FZiKxhJYmnR6foxTQONbZsJap20ElZuLwCSBYH5 9c4w== X-Gm-Message-State: APjAAAUPgF0q7yTg3Vhmzu55Ty+LaCNnwg6NfQcYbWG/xkodndZ7H62v 7tHdK5mWnEFyr23VwcXf9lQ= X-Received: by 2002:ac2:5612:: with SMTP id v18mr4565138lfd.15.1557763238025; Mon, 13 May 2019 09:00:38 -0700 (PDT) Received: from [10.17.182.120] (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id j27sm3209888lfk.97.2019.05.13.09.00.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 09:00:37 -0700 (PDT) Subject: Re: [RFC PATCH] ARM: mach-shmobile: Parse DT to get ARCH timer memory region To: Geert Uytterhoeven Cc: Julien Grall , Linux-Renesas , Linux Kernel Mailing List , Simon Horman , Magnus Damm , Russell King , Oleksandr Tyshchenko References: <1557505377-28577-1-git-send-email-olekstysh@gmail.com> From: Oleksandr Message-ID: <25f5f60e-46ff-18af-2a65-1e3f6719ef49@gmail.com> Date: Mon, 13 May 2019 19:00:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.05.19 18:13, Geert Uytterhoeven wrote: > Hi Oleksandr, Hi Geert >> So, if the DT bindings for the counter module is not an option (if I >> correctly understood a discussion pointed by Geert in another letter), >> we should probably prevent all timer code here from being executed if >> PSCI is in use. >> What I mean is to return to [2], but with the modification to use >> psci_smp_available() helper as an indicator of PSCI usage. >> >> Julien, Geert, what do you think? > Yes, that sounds good to me. > > Note that psci_smp_available() seems to return false if CONFIG_SMP=n, > so checking for that is not sufficient to avoid crashes when running a > uniprocessor kernel on a PSCI-enabled system. Indeed, you are right. Nothing than just check for psci_ops.cpu_on == NULL directly comes to mind... Have already checked with CONFIG_SMP=n, it works. Sounds ok? -- Regards, Oleksandr Tyshchenko