Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp442414pxu; Wed, 25 Nov 2020 07:06:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/n4h7gFIXQ7IvPCU0AMHWxJxCuK0ExBqoEdT1VqVWKQtZSZrI8GFIrQlIupf/QgLckhB0 X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr3995533edy.24.1606316795375; Wed, 25 Nov 2020 07:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606316795; cv=none; d=google.com; s=arc-20160816; b=Hsn3EYbXbbaDzxB4B6ZlgHjNUKehGanSqNLlvajoRfkgp8ZPLvVYsR1pBFH3hT7rDy eW3NofRLNQVi5B9U4dlFMk2vobQy0RMp1L7UqUlk74H19Zbu39XnTel3+ohzvH7eg1RQ r/UhBSPJ5w8AelgRwwpcdoe4BtJxZcwN6pUC8oWlG8FAu/KKqwrDudOSPuWKTJ+vFncE Qb+N1QJN0711cbVQT7d1Uu9WhdsOX4CW3pSAe4HGgMkBiXnmAUTJWw+lkZBMyskGTn1/ VleGkWQSU9h6j1t25gLBx8+JmIxWJfnQS8S+8M1MDBrW9xHxAsHiqwMsGhM4iUUUH2Hd zVXA== 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:dkim-signature; bh=+CXMNoli6SWbemBse5ozpvpLatWo5IkE/EXXw6CqrOI=; b=s3oXhc2YpcZsqQX2g2KH5oLIrB8vQfDQoLfw9yryhk8lZRzi+IEhwBw3Yp6I/HyEFk LtUmc00IzmuV8bh1zackSmxWI83Scz6i/uCNCVC+Mfu2IT/Vr5N56GQJ0CHu9uRgugkZ 5KmbsB0ugeFdy0YePyjlJouigTZW15Y7okYW3kkrGRV4xMUi1/N/hkDMM17iY/iDBT5I x0rDkeWsd5vVfkysbomEzATD90pvUMg18f+JFPeb5pijoa/p8ie74OazI93k+P3Ctdo5 s47HhmDlKyZlVCYrKixTaJyvz7uuD1yUgmN0bRSLVYicqwrjFBwir9WAZGPEsKjW6VOg 9e4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cLSX/4Ad"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si1337208ejx.531.2020.11.25.07.06.10; Wed, 25 Nov 2020 07:06:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cLSX/4Ad"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgKYPAX (ORCPT + 99 others); Wed, 25 Nov 2020 10:00:23 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41346 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgKYPAX (ORCPT ); Wed, 25 Nov 2020 10:00:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606316421; 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; bh=+CXMNoli6SWbemBse5ozpvpLatWo5IkE/EXXw6CqrOI=; b=cLSX/4AdkVKja0n2iuQum+YO5VlhCX54CB/0Bikt+e1NDKJTrnp65unQRc7He2ni6dpmv4 PUa9ejDVU2H+Uq5FDdH1i9nw91j/iq4eJV1eiGypyY0yLJsi/fyw4wiMPKe2awzloxiHz4 DP0eC8H4OaVhggmOZ8arLNZWThhlzIs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-217-kdgw0Nc4PcC7oVvvUUP0EQ-1; Wed, 25 Nov 2020 10:00:17 -0500 X-MC-Unique: kdgw0Nc4PcC7oVvvUUP0EQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 633E71E7CF; Wed, 25 Nov 2020 15:00:15 +0000 (UTC) Received: from [10.36.113.83] (ovpn-113-83.ams2.redhat.com [10.36.113.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id 822A019D61; Wed, 25 Nov 2020 15:00:04 +0000 (UTC) Subject: Re: [PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function To: Marc Zyngier Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Paul Mackerras , linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , "Michael S . Tsirkin" , Greg Kurz , Christoph Hellwig , Michael Ellerman References: <20201125111657.1141295-1-lvivier@redhat.com> <20201125111657.1141295-2-lvivier@redhat.com> <87sg8xk1yi.fsf@nanos.tec.linutronix.de> <5100171ff6d4c3efffe008e1e0bf3707@kernel.org> From: Laurent Vivier Message-ID: <84cdd8d0-8b8f-cc8e-9672-2661f6377114@redhat.com> Date: Wed, 25 Nov 2020 16:00:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <5100171ff6d4c3efffe008e1e0bf3707@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/11/2020 15:54, Marc Zyngier wrote: > On 2020-11-25 14:09, Laurent Vivier wrote: >> On 25/11/2020 14:20, Thomas Gleixner wrote: >>> Laurent, >>> >>> On Wed, Nov 25 2020 at 12:16, Laurent Vivier wrote: >>> >>> The proper subsystem prefix is: 'genirq/irqdomain:' and the first letter >>> after the colon wants to be uppercase. >> >> Ok. >> >>>> This function adds an affinity parameter to irq_create_mapping(). >>>> This parameter is needed to pass it to irq_domain_alloc_descs(). >>> >>> A changelog has to explain the WHY. 'The parameter is needed' is not >>> really useful information. >>> >> >> The reason of this change is explained in PATCH 2. >> >> I have two patches, one to change the interface with no functional >> change (PATCH 1) and >> one to fix the problem (PATCH 2). Moreover they don't cover the same subsystems. >> >> I can either: >> - merge the two patches >> - or make a reference in the changelog of PATCH 1 to PATCH 2 >>   (something like "(see folowing patch "powerpc/pseries: pass MSI affinity to >>    irq_create_mapping()")") >> - or copy some information from PATCH 2 >>   (something like "this parameter is needed by rtas_setup_msi_irqs() >> to pass the affinity >>    to irq_domain_alloc_descs() to fix multiqueue affinity") >> >> What do you prefer? > > How about something like this for the first patch: > > "There is currently no way to convey the affinity of an interrupt >  via irq_create_mapping(), which creates issues for devices that >  expect that affinity to be managed by the kernel. > >  In order to sort this out, rename irq_create_mapping() to >  irq_create_mapping_affinity() with an additional affinity parameter >  that can conveniently passed down to irq_domain_alloc_descs(). > >  irq_create_mapping() is then re-implemented as a wrapper around >  irq_create_mapping_affinity()." It looks perfect. I update the changelog with that. Thanks, Laurent