From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F88A267F6A for ; Fri, 14 Feb 2025 17:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739553941; cv=none; b=FjunrdWF/LMwlSVmfAc6crVRo5fgiTSxT6Qqv1Fdi7pTxNNHsGTANnFXABVXOvd3Vj7NznLQHWazGufaF92lg7gqewhMqVyc6zNyRkJN1JHRuMl1kcZw7Dqx/561E9mzcyB/nJmvUpDHEE8Dgv+O4YL2Loez0PjQ9pHkNXbApRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739553941; c=relaxed/simple; bh=03iNdRn/em6uG2YPWo02GDuzrIUhH61RcLmXWAh+IJc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rfmnZUJ9g8jWtbas82n/kReQoVTLVvuSBcNSQteyH9QI2TobulrWVzFn24sIGTctIntUapIU+4mao6X3VFqLWjd3uLwTGc77MXgGqDBTSEKhEkWnNG/0aGXkDGtzo+fdmqK01SKx5zW+WBbvJyLhhFKrWA2eSV6tvi6AsJf5FPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ueiW/ucT; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ueiW/ucT" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-21f6a47d617so41244245ad.2 for ; Fri, 14 Feb 2025 09:25:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739553939; x=1740158739; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=PsirFScxxlndbt5JatVVlLCyI/9U7Qi8qRIjGd5HNUc=; b=ueiW/ucTQtgc4um94ARRu735GLAsAU0m5XzRxAtvHA0L0VdBCcqhgNHdVJUjUQfuhM xfa9LMf5t1ZAzQNH8A/2bxUi2qLlCRAt9jRH4xk0J3+wDRuICz+U9wjUvQXcalzwxmxw DZx4spOKOV3BNQ01KywGu0rhxSM8ARaVkX7VAkeSRJ9rdjUd8fNjbTUA7V+wu5yKm3mw 2fuk+PxfpwHcw/Z7CGrf2+gLq+MbhwX6bjxp1uH3A/Qu4LKw9SMQex/WAOAHMOeVKRFW eh5gOca8kbCKZ93bTWGIsoA9SJN9EDL5gJs5xA4ti3aFVYio+3ofo0yveBm0K4LsTCJW z44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739553939; x=1740158739; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PsirFScxxlndbt5JatVVlLCyI/9U7Qi8qRIjGd5HNUc=; b=rZXIJk3sD0bdNR8Ony504K3nUG8K1GBSc1S0SAAOtyMZsNYVHc/NV+EBnH3kG/SEh1 54eqhnJxUMgu/8tGiG5+USd+akx4gayD+RG5OrW2lQhZwt3XFVbjTOjXTS5dz68vl7LC N/oO7B+hU/LzP8DqdjKIs+gZsYEX3NxpxnsLHPG9sz97Dkw+9aGpqI0KuEnsWNcGnI4t 08j/bMLtQesE+IkXFpOb62+3AQYFueZ6ycujr6pCVdYCYzmaFDR/viMRiud/abffj5Id veWkvrsUAKETwtjE9D06GaJaXh58fdLqbkd7hYhTVHW1m3MudLzpeZ5YBFOwJmxWU9Ym Po2g== X-Forwarded-Encrypted: i=1; AJvYcCX1l6zGP9loKXyBxsVzQmrOFT/8klCwX7lswmk7BgJJuaFe+Sl5h32EQHgP1HoMluajNZsBK0NpXsNVOv0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2vy/gSQXFj9nre+pVPffMGyZTsXfcS494cfdgAFw66KV5oobA AOER0T2dyfc07MqHeSEi4rSagr2d0kLfxGezad1S98NRLKhS5Jjs8k9wncxtWQ== X-Gm-Gg: ASbGncvV6yUEJzLySJ1OMQC0mCNwJaYJp7YLr7Wpx1AfAsgt9d4QSHocNdlvWG6d8Dj YXLFJYypSuTFz0n2Nv+xkf9dMldF6xgLhahFGXkADoE9SwJiEEVYc8pjQ647dKFIPQwIvVU9r3U mhV03kCTEG/QO+16F+yCgfm/OVMgbQ/lTMc6H1DRuRVq2UuIb70XyMDU2miXWsIKSyis0PKh93o nUTq5F+VZP/RUKH9xvfHNGoxYczr2pQshpia2TajszYf2CaARz1BwomHWLIFJqEeCuxvymcZOZk jVUJ4SsrD2LxpzxKYBJFaA3vSzI= X-Google-Smtp-Source: AGHT+IHzsapv0KPmsdonjwOxgJKB9jp9uj1Hj8zr7WwtL9knFoK7gwoAa5VsROZGsAdMi4C1EOACoQ== X-Received: by 2002:a17:902:f984:b0:220:c34c:5760 with SMTP id d9443c01a7336-221040c0c61mr230215ad.51.1739553937978; Fri, 14 Feb 2025 09:25:37 -0800 (PST) Received: from thinkpad ([120.60.134.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d545d0a9sm30993605ad.151.2025.02.14.09.25.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 09:25:37 -0800 (PST) Date: Fri, 14 Feb 2025 22:55:33 +0530 From: Manivannan Sadhasivam To: Kunihiko Hayashi Cc: Krzysztof Wilczynski , Kishon Vijay Abraham I , Arnd Bergmann , Greg Kroah-Hartman , Lorenzo Pieralisi , Gustavo Pimentel , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 3/5] misc: pci_endpoint_test: Fix irq_type to convey the correct type Message-ID: <20250214172533.szrbreiv45c3g5lo@thinkpad> References: <20250210075812.3900646-1-hayashi.kunihiko@socionext.com> <20250210075812.3900646-4-hayashi.kunihiko@socionext.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250210075812.3900646-4-hayashi.kunihiko@socionext.com> On Mon, Feb 10, 2025 at 04:58:10PM +0900, Kunihiko Hayashi wrote: > There are two variables that indicate the interrupt type to be used > in the next test execution, "irq_type" as global and test->irq_type. > > The global is referenced from pci_endpoint_test_get_irq() to preserve > the current type for ioctl(PCITEST_GET_IRQTYPE). > > The type set in this function isn't reflected in the global "irq_type", > so ioctl(PCITEST_GET_IRQTYPE) returns the previous type. > As a result, the wrong type will be displayed in "pcitest" as follows: > > # pcitest -i 0 > SET IRQ TYPE TO LEGACY: OKAY > # pcitest -I > GET IRQ TYPE: MSI > Could you please post the failure with kselftest that got merged into v6.14-rc1? > Fix this issue by propagating the current type to the global "irq_type". > > Cc: stable@vger.kernel.org > Fixes: b2ba9225e031 ("misc: pci_endpoint_test: Avoid using module parameter to determine irqtype") > Signed-off-by: Kunihiko Hayashi > --- > drivers/misc/pci_endpoint_test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c > index f13fa32ef91a..6a0972e7674f 100644 > --- a/drivers/misc/pci_endpoint_test.c > +++ b/drivers/misc/pci_endpoint_test.c > @@ -829,6 +829,7 @@ static int pci_endpoint_test_set_irq(struct pci_endpoint_test *test, > return ret; > } > > + irq_type = test->irq_type; > return 0; > } > > -- > 2.25.1 > -- மணிவண்ணன் சதாசிவம்