Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp451571pxu; Thu, 26 Nov 2020 03:02:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvqI0ev//BN/sDIEqbUzH+v8mDHw04A4GYVk2Wt8UeDmt19zDdVYKCTenEGBz6vCwQSTES X-Received: by 2002:aa7:c80b:: with SMTP id a11mr1938716edt.111.1606388557173; Thu, 26 Nov 2020 03:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606388557; cv=none; d=google.com; s=arc-20160816; b=klW3LvNcpiC1geF5gB8osjY35gXPnzb/GECGXc3BHkYlKyouEO41rhko6X6bAZ1NmQ A/Fz2aEO0vz0Eh3quU/blPeKPVgUJE1jeahWrLSTvboe6vJnc/I9YhkXSAGgnkydxl7X vCGtynoGHAI551WWAGIVGOxU6ybSdBGNRxYwOOEKkBFMGWHm6bwvr5lMzab6QEd3CpCW 4JW2zQWtaFMUpuZHQJaby05IQ2or1H55koEnEP8HaC8hTtZerYDLDrnTiyT9gjGGa3wg j5zKJTevUP5olAiYG82t2H2TsM2RqTv8N5BASUQFcUju1tg4yNo5Wgc5o3B1x2bS3iJ+ dnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ebuk5lnp7p/eyVmnbT4HfmRBrF2jvQpRwD3KAH8VfVc=; b=fPtltfUpEqQwH7CACTAsaUfcdt0xmtp8hwc2VkWNFJqiLDO6oX3vTxSAdLrnZNM+TW D2MSpIkRGB2HA6IYOmLsmx/t3mSBnuJ/0af6OWj2TDhPrkceLwMJVM8YAQKtSYSSxFnd /jax2zFPSK1wFoXybrluZqQw+lDzqQagELm5t4jt3O5AAXYLnmAkrj9dCoX38L5t28rl W4So6Re0ESCQQ+/8BL6/U1o8MEaqG+pek+Ga3vXo8mkNZskt4gbxUz4GhOQ6ShesgZfq /6yZfUE46Aqo9CMGVKgigIH4QPsbKmq+jQsl7guzA7eBsLJNAH1P1V8fl1QxyOkAwnZi IAlw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si2047737ejn.294.2020.11.26.03.02.14; Thu, 26 Nov 2020 03:02:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388893AbgKZIzC (ORCPT + 99 others); Thu, 26 Nov 2020 03:55:02 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2157 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbgKZIzC (ORCPT ); Thu, 26 Nov 2020 03:55:02 -0500 Received: from fraeml705-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4ChWjK6Sxyz67GsH; Thu, 26 Nov 2020 16:52:21 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml705-chm.china.huawei.com (10.206.15.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Thu, 26 Nov 2020 09:55:00 +0100 Received: from [10.210.172.213] (10.210.172.213) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1913.5; Thu, 26 Nov 2020 08:54:59 +0000 Subject: Re: [PATCH v3 1/5] genirq/affinity: Add irq_update_affinity_desc() To: Daniel Wagner CC: , , , , , , , , , , References: <1606324841-217570-1-git-send-email-john.garry@huawei.com> <1606324841-217570-2-git-send-email-john.garry@huawei.com> <20201126085145.jjioc7belyny5kp4@beryllium.lan> From: John Garry Message-ID: <47442f07-4ea2-46ed-59a8-c1fa2857f4c4@huawei.com> Date: Thu, 26 Nov 2020 08:54:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20201126085145.jjioc7belyny5kp4@beryllium.lan> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.210.172.213] X-ClientProxiedBy: lhreml707-chm.china.huawei.com (10.201.108.56) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, > > On Thu, Nov 26, 2020 at 01:20:37AM +0800, John Garry wrote: >> + activated = irqd_is_activated(&desc->irq_data); >> + if (activated) >> + irq_domain_deactivate_irq(&desc->irq_data); >> + >> + if (affinity->is_managed) { >> + irqd_set(&desc->irq_data, IRQD_AFFINITY_MANAGED); >> + irqd_set(&desc->irq_data, IRQD_MANAGED_SHUTDOWN); >> + } >> + >> + cpumask_copy(desc->irq_common_data.affinity, &affinity->mask); >> + >> + /* Restore the activation state */ >> + if (activated) >> + irq_domain_deactivate_irq(&desc->irq_data); > Shouldn't this be irq_domain_activate_irq() ? Yeah, I think so. Blushes. Cheers, John