Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4082068pxb; Mon, 1 Feb 2021 11:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJymsC5Jqe/yDp1/vFZciEnUpb07cxcPlgyIZFtmy9t5Eqcjr8zJiVWIN0izZin/9kjGQznf X-Received: by 2002:a17:906:aed1:: with SMTP id me17mr10059178ejb.190.1612209362008; Mon, 01 Feb 2021 11:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612209362; cv=none; d=google.com; s=arc-20160816; b=VGoTbisfdhlDBlcr0zTYc4aA88S83gIU5JBnogD6PtKk42+7aixnwlMsYHfz0D6rPh bMUhcTTNv1GND9rcfSRqhIJPogj8BOSGIXxuJSo7JoJhsIxLFt56ff+4w5qeNW29PTHu dbRPvziU3WYKRCOEXO8hDzTyCUfSpaAhfKZnWadOiSCZ57Vjuqxu0ohvCDw0Iz8MgEv2 tA9LD76VcRhhbSOvd+gaFJuGYBanTBs+zgeVoY35+avvsXKqCYxJZ+owJaUZP7NhWMx3 njtwgCg0yy+o44djdvRjkCD/AHqL9MJXtKbC3IGwEx/VNZwYOtlUmr2ZsEQ9pMsmzQvj 6bNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DCjhNmegL5cty51UJJiVLzoT3IZRsyqfK3odFUkK4z8=; b=COPctEcXRk8SEVSAyvrfPi40GIwSyeaUK51tLMOyMqJGBYrxmC+dP5f3/qBxd3KEZF YdPBI2ocRgff40vj76Q3vkhoj6mdtx+ewTWXSQz+BoNT9tLHo81BKGQLrYyc1NaNbvjQ 3b+L2XxK+KuNwqbj1IkSarMwINIhIP5S+7LtPl3UYJactcsLXueLzImhzjMsIPl41iIL qomvbEaglh/eNWdD8GvWo8Z4hZn8oYDtqrOFGM0wRIuU9ULddpeeyt7Moj+j7a8BE+4n GzXNWKKJqrTHN3BBHU1b45rHDHUZijD6Bh7KAiBASXFzuUl6wqBIotNhjp9WdazJBR26 qTSg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si964518ejx.754.2021.02.01.11.55.36; Mon, 01 Feb 2021 11:56:02 -0800 (PST) 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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbhBATyz (ORCPT + 99 others); Mon, 1 Feb 2021 14:54:55 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:32969 "EHLO mail-wr1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232713AbhBATyX (ORCPT ); Mon, 1 Feb 2021 14:54:23 -0500 Received: by mail-wr1-f48.google.com with SMTP id 7so17991980wrz.0; Mon, 01 Feb 2021 11:53:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DCjhNmegL5cty51UJJiVLzoT3IZRsyqfK3odFUkK4z8=; b=FIi09leopkGtYp/mCaSB3wIWcGzgubDYzeDJOUAbNMa2o8QfR/GV0TyV1UsF0Gk/st PDkVAJYh6QSvYSfJI3SnupXQa5XaaOi1wt4e03hB3g89h6dvWEkhUwMW2jy8rgDSs+VW lobi4qkQHLpndY6OgXFisutCfHDTCnR+yR6UyaNJnEjJ0CIRlbWteD165ijILNmVBEnd 6smpxioO0d9YmbAYnKhB195hP9vYaeLlLYOX+kq1hDBxn2zPF7ug3u5kzs76CS+/1N7v MojKGwocRdXOxCINO5IjbDQGDBzk4k68455qvkoH97v9/xWDggMyemQe7dwJaQj1pMPT 826Q== X-Gm-Message-State: AOAM533Dwak9x3csQIywrzmUiy8lH8LVHGZNF1UVUHtiyN3IizWHIAER WSVPNsOes4i84g8txbMNQ5c= X-Received: by 2002:adf:a11d:: with SMTP id o29mr20016981wro.45.1612209209605; Mon, 01 Feb 2021 11:53:29 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id y6sm328678wma.19.2021.02.01.11.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 11:53:29 -0800 (PST) Date: Mon, 1 Feb 2021 19:53:27 +0000 From: Wei Liu To: Michael Kelley Cc: sthemmin@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, daniel.lezcano@linaro.org, arnd@arndb.de, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 10/10] clocksource/drivers/hyper-v: Move handling of STIMER0 interrupts Message-ID: <20210201195327.2bkhu6sig53prwwg@liuwe-devbox-debian-v2> References: <1611779025-21503-1-git-send-email-mikelley@microsoft.com> <1611779025-21503-11-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611779025-21503-11-git-send-email-mikelley@microsoft.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 12:23:45PM -0800, Michael Kelley wrote: [...] > +static int hv_setup_stimer0_irq(void) > +{ > + int ret; > + > + ret = acpi_register_gsi(NULL, HYPERV_STIMER0_VECTOR, > + ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_HIGH); When IO-APIC is enabled on x86, acpi_register_gsi calls mp_map_gsi_to_irq. That function then calls mp_find_ioapic. Is HYPERV_STIMER0_VECTOR, when used as a GSI, associated with an IO-APIC? If not, wouldn't mp_find_ioapic return an error causing acpi_register_gsi to fail? Ah, it appears that this function is not called on x86. I haven't checked how ARM handles GSI, but presumably this works for you. It would be good if a comment can be added to clarify things. Wei.