Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp536404ybp; Tue, 8 Oct 2019 23:36:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFpJrjuHZz8QPj1cxUH8+1wAcMGZezG5hM4k574DDuZpkUijgml7gdE6bXGN2YQGkCGbuq X-Received: by 2002:a17:906:af8e:: with SMTP id mj14mr1354808ejb.45.1570603004284; Tue, 08 Oct 2019 23:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570603004; cv=none; d=google.com; s=arc-20160816; b=ZPLrVqe6L6vOeoPFm2xt1I/qOLTEePivOAsFX7o5B9iGXsqIBOkn13ka7pYUShcUdi XW1ZPCQuSBp+1EN6hc+Du0ht6DZAu1qPXBJyjGYULQJpaxnTPbNdMEJsh5YYR1i5iJMP TV1vnSX9eHuaIkIZjSoWaNGjldr/v5E3ccILJ4+cTlGDyNwuKg8FYGixbQVa1m/Lc/kb gPOag/JrDOtwh+CLt7/iI66kZjKXH/MkZXQ/UyCoAB4pSRhGbZvgZI3nuP8TDb4eqcZ/ k15xkbXhyGwxIstRJ7iXK5zwbouAYcQOKFdZlbNod/MFvXC2E6G00EkRhlOhuLF0hpAA dD/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=DRp1swJmLGnIlAf7XMxEoZkdOJe88OuGnn8pzjWNfwY=; b=K+g94YwRr/XGczGzsD6rkFEJ6Jvp4bzrjVzVgOpAemRZpMp5qIEHClqudYXHTNVSt+ XLCGns0WrpTLVNqxTrwvwWECrQG4jLPR4eiChhjvnZaygqqRrrnjEcqVom/tnNUZWWp9 zzDTzM43YRq9a/fFIsgpuD3z4uVJCj5dXOu6Ri9W1jFkfzQ31zZ6583XIFUj3k62kyyI cu/qYejVy+5uSRd4z+NOF9Q2luv5hNk5olWIDHF7XphdPJgwvnBhKKspF4g/+Ccima78 jTADt1YfxRc5keYl2A3B+6Z0v0i3ND8JVw9TVzrMSk8yBE1hOlgX7WeKdVZMRyKcalHq PJWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dTlI8/GP"; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si748525edb.433.2019.10.08.23.36.20; Tue, 08 Oct 2019 23:36:44 -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=@redhat.com header.s=mimecast20190719 header.b="dTlI8/GP"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728606AbfJIGgH (ORCPT + 99 others); Wed, 9 Oct 2019 02:36:07 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:21385 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726765AbfJIGgH (ORCPT ); Wed, 9 Oct 2019 02:36:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1570602966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp; bh=DRp1swJmLGnIlAf7XMxEoZkdOJe88OuGnn8pzjWNfwY=; b=dTlI8/GPtYwwsf+nU2stxBoJcqKu6iGbyEq/8S7Cm2RwS1TeTui0KwY6HZwRihJl7MRt4M G5cyu2TNxjMRdLV3/cR/0ICiuYuaPSohr5WwvGG6PGA1FG+5u9nEjMP1WoXnij0rVJTJnA /vop3ROPGrTVfSnfoP5aTDGPjySAhlo= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-301-lhVvG0z2PfCTWPvxSUFu0Q-1; Wed, 09 Oct 2019 02:36:04 -0400 Received: by mail-wr1-f69.google.com with SMTP id c17so616239wro.18 for ; Tue, 08 Oct 2019 23:36:04 -0700 (PDT) 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:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DRp1swJmLGnIlAf7XMxEoZkdOJe88OuGnn8pzjWNfwY=; b=qSf3EhfYNaqynyTMLQi1rS2OHBDGDllglBhbPxoVolXLJtWr2VkbJyxeyI76ciPjkd Jjd/kQ9KxIkhC6Cgwh5PODKo6xK0WUtL//X3WzrOYADD73qudNdNc11gYL1TVVaXEqUS 91jRgj0AMCpSaCnMKYCft/bRYPU2v6W/LMdGlQBNChCH8RP0qj6vmlURQhp5brk1lMwW O3Q/NkgyQHCmMwpHyRC0HFbdynPOJWOHXzr6VMwHRhkwC/BTPHwUUoOGmo0emWSYfnAM 22KARxDIMdHRKqC8dUMBo1ZHnsenbYR97jH9VTlBElT4GX01gXg1mf1S2d8OnR4FZQgk yUGQ== X-Gm-Message-State: APjAAAVz/1Usx0z6lVXI6yyI/l7TWmIBgR6vy9u0tIEgA4r8kOlc+0c8 t67WVZS/rHneXYdVDUCRBvcJKbiZQpsnKXr2ZBbejczbpT8TJovEWtRXhjykcs+Og1zytA0XQU3 d5NfFcoq6XjABbNjrnzR7O/5P X-Received: by 2002:a5d:5610:: with SMTP id l16mr1515934wrv.143.1570602963412; Tue, 08 Oct 2019 23:36:03 -0700 (PDT) X-Received: by 2002:a5d:5610:: with SMTP id l16mr1515916wrv.143.1570602963107; Tue, 08 Oct 2019 23:36:03 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:f4b0:55d4:57da:3527? ([2001:b07:6468:f312:f4b0:55d4:57da:3527]) by smtp.gmail.com with ESMTPSA id m7sm993787wrv.40.2019.10.08.23.36.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Oct 2019 23:36:02 -0700 (PDT) Subject: Re: [RFC PATCH v3 4/6] psci: Add hvc call service for ptp_kvm. To: "Jianyong Wu (Arm Technology China)" , Marc Zyngier , "netdev@vger.kernel.org" , "yangbo.lu@nxp.com" , "john.stultz@linaro.org" , "tglx@linutronix.de" , "sean.j.christopherson@intel.com" , "richardcochran@gmail.com" , Mark Rutland , Will Deacon , Suzuki Poulose Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Steve Capper , "Kaly Xin (Arm Technology China)" , "Justin He (Arm Technology China)" , nd , "linux-arm-kernel@lists.infradead.org" References: <20190918080716.64242-1-jianyong.wu@arm.com> <20190918080716.64242-5-jianyong.wu@arm.com> <83ed7fac-277f-a31e-af37-8ec134f39d26@redhat.com> <629538ea-13fb-e666-8df6-8ad23f114755@redhat.com> <56a5b885-62c8-c4ef-e2f8-e945c0eb700e@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <1cc145ca-1af2-d46f-d530-0ae434005f0b@redhat.com> Date: Wed, 9 Oct 2019 08:36:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MC-Unique: lhVvG0z2PfCTWPvxSUFu0Q-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/19 07:21, Jianyong Wu (Arm Technology China) wrote: > As ptp_kvm clock has fixed to arm arch system counter in patch set > v4, we need check if the current clocksource is system counter when > return clock cycle in host, so a helper needed to return the current > clocksource. Could I add this helper in next patch set? You don't need a helper. You need to return the ARM arch counter clocksource in the struct system_counterval_t that you return. get_device_system_crosststamp will then check that the clocksource matches the active one. Paolo