Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1721305imw; Sat, 9 Jul 2022 10:07:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7/QNbLbQQa0JoGwdFIw74V4iRcjsPEOu3kz3sO2xdpZQTzKkOq0R45dK7ZkNtHAnVNnSk X-Received: by 2002:a05:6402:26c3:b0:43a:a846:b2c1 with SMTP id x3-20020a05640226c300b0043aa846b2c1mr12874627edd.133.1657386427977; Sat, 09 Jul 2022 10:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657386427; cv=none; d=google.com; s=arc-20160816; b=xmA+INpaYhjJmii5LAGozsBX+SUg7UIXdXpjvhZGSQl0WZmNvEJFefW5U4BJ7RXboL umlwwg+Qg7RtY1AOGBZRxTzbgY6BcdoZzMkCDcuDsYIfPgG3Jlb7eA2BdWNc06IOqHbU mb780WHXRiIa7PZ++3/K0p6HFvd15yuiq1QQXxx3Rt8Nwow+8pQihfOLDBZS2vbO58KQ OD60Vevxyli2E0s3kZWhcZNpLFqIui0KR1qFkhKZg+G9IdaiOPACW/3sHRk30k50/QcS 67JKtLIhxiif5urkOpE2gesZCPoB6OS636zWTc48irX3tQIWcGrZOCdztgjju/f6S3Dk hZ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=LX1DfT2a8BTBKB/5OxH1imFlL7cC/NwcaiH5vJcoj0U=; b=u9s/+1Otr3aKwiEi8xFQOr+b740X9rlYiuU//75A8GoxnZ1vGXMQFmWaU9k6Nf2wwX 3OcjilUWgAHS7g32eX+Aet/zET3EAQ9DBxmWd4RWlT0rP0uhHV7RDerTBOfsuxz7HB+N Zx3XmulKrbRt+IJ7E0gW4czFr+5NKE3x5192CklYlhYZrRH+m467JzjgVGXRlD3yZx3U EPbaQB532PA8bZYt22+A+uxn89At7XRIggd2Re6OqoI9pPQp3qiDyd+MTA0qCwEgLhBo JBhhfK5LPuc/n2jqyEPvJ6ddlOluxMcXyK0F+Pr37zDtSMkQhMU282S0iCaK5nxfOHBB 9euQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a1709064fc900b007123952b00dsi3251041ejw.100.2022.07.09.10.06.40; Sat, 09 Jul 2022 10:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229598AbiGIQtq (ORCPT + 99 others); Sat, 9 Jul 2022 12:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiGIQtq (ORCPT ); Sat, 9 Jul 2022 12:49:46 -0400 X-Greylist: delayed 2278 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 09 Jul 2022 09:49:44 PDT Received: from wp175.webpack.hosteurope.de (wp175.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:84b6::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B394027162; Sat, 9 Jul 2022 09:49:44 -0700 (PDT) Received: from p54bc6cd6.dip0.t-ipconnect.de ([84.188.108.214] helo=[192.168.1.113]); authenticated by wp175.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1oAD3W-0007uY-BP; Sat, 09 Jul 2022 18:11:42 +0200 Message-ID: Date: Sat, 9 Jul 2022 18:11:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] MIPS: smp-mt: enable all hardware interrupts on second VPE Content-Language: en-US To: Sander Vanheule , Thomas Bogendoerfer , Martin Blumenstingl Cc: Marc Zyngier , Aleksander Jan Bajkowski , Hauke Mehrtens , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220702190705.5319-1-olek2@wp.pl> <3c9a032edd0fb9b9608ad3ca08d6e3cc38f21464.camel@svanheule.net> <87fsjen2kl.wl-maz@kernel.org> <20220706081901.GA10797@alpha.franken.de> <20220707100630.GC9894@alpha.franken.de> <20220707143930.GA14693@alpha.franken.de> <468a2c8578d099eef0e0106fe273f73f5d70ef94.camel@svanheule.net> From: Birger Koblitz In-Reply-To: <468a2c8578d099eef0e0106fe273f73f5d70ef94.camel@svanheule.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;git@birger-koblitz.de;1657385384;a94bfab7; X-HE-SMSGID: 1oAD3W-0007uY-BP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 7/7/22 17:12, Sander Vanheule wrote: > On Thu, 2022-07-07 at 16:39 +0200, Thomas Bogendoerfer wrote: >> On Thu, Jul 07, 2022 at 02:57:15PM +0200, Martin Blumenstingl wrote: >> IMHO there is the problem, irq-mips-cpu.c can only do CPU irq operations >> on the same CPU. I've checked MIPS MT specs and it's possible do >> modify CP0 registers between VPEs. Using that needs changes in >> irq-mips-cpu.c. But mabye that's not woth the effort as probably >> all SMP cabable platforms have some multi processort capable >> interrupt controller implemented. Not sure I can be of much help. That the patch works on the RTL SoCs is mostly empirical and was found in the vendor code. My understanding from the MIPS documentation is that it is not specified what happens when a multi VPE capable IRQ controller triggers CPU interrupts: if multiple VPEs are possible targets, then it is not defined whether one of them gets them (and which one), multiple, or all. So trying to control what happens between VPEs is probably SoC-dependent functionality. Cheers, Birger