From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 A4C4A1DE8B3 for ; Wed, 4 Jun 2025 17:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749057873; cv=none; b=PiD96+QGuXb58nfknbzXd7GEgQ3VIElssbMDbaqASCW3FjGSotwxEkMsxlP5jDZJR+YjMlmdWdQc2ZGWkSR7ycoOcta51DWVf96PBo/+xc2Oka8SR63D00+NX7GMnSzJ5Ngd+u47YLQI5GiRtRx4J1uQCUQOoRglFt3K4ym/ns8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749057873; c=relaxed/simple; bh=YI5mFLWc53VgL5FQ8bsi7skJV4Aik/gLWAIifjuXyD0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VVmdhe69jnXBh26cAZQulyXDfmsByFrsyCfJupsmNGofCPIWqUha0SOj2yBngBWNHibdXJ5kig865xDdfV+QPcbal0yeZ8uvrOqTmikF9ldboWq+NilIbRifZFxAqLpEveQzCC694LGo/MeuOcPePpMAZAPwmtsaA4s5tl0vQNU= 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=AMzyjRze; arc=none smtp.client-ip=209.85.208.47 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="AMzyjRze" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-606b58241c9so3894678a12.3 for ; Wed, 04 Jun 2025 10:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749057870; x=1749662670; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5Rx6gG3qsE4+StDVhI8Ouf35YkFJYK0JatY+uS2ZTLI=; b=AMzyjRze6N+CdUwAkkXRMLQyhnHh9VDOOuZs+j+q4uiq3s6KdS9GFEJq21qhfvtPbT fIWXNFaXLOTxIwjTCNkfIvXcpEosYQQPg5iJzgep+ehIulc0V+bVRYGCnkBxwHkMDqqB bqwXc7EHXMYSqAccUPKt6OAqNcatvCVEbAxbEjlEajeTA+LU1c29uD9TusSxu+t7bPkY R9iG7DILGEi3VM/KXvE1u565yUR7oWFZXWikYkBf0VF9Vd2sh16GqmUi0UcvdC7N1wQ0 5kGY9jSP8ABtAdXSTZbucGAFCNzT4cj92axqg3sGplWAFRYqluAkGP7o3TQ+dDlxmpFP x60w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749057870; x=1749662670; h=in-reply-to: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=5Rx6gG3qsE4+StDVhI8Ouf35YkFJYK0JatY+uS2ZTLI=; b=U+gBIChBZW5wrSUVp73hYg9cspQiAGd8zMu1trYBYBE7NCZH9LDWMv3gEBWZGdvTDV M8MwZapNzZuZ5mFFthaBuG2hRIdb6HjtEKLoEFL/vFiwKH+aRL+CzOI44aJB9b0E17k6 KSjlkWM2DdTn+VrtdUdnWqLCJCrlmWj1cV/NDpYWVA2eKj5CPKQUItr38APE7YQX7e9a wB/ysmccL7bt5niHqZjEKSna6bBqojF08OEjMctLa49Rr5XN5+6RdTenJOHLSBO9CHq5 At4eSbbOwFsH8rMPX+HyqaQs5GYlAsLZx1vKdDiMVVeIdZDiy8+P5k07gK7POCle08ix qctg== X-Forwarded-Encrypted: i=1; AJvYcCWtBsS9XmfkY18iqWHzdXQ3z1i7rXzwDuvo5pkZuMFsbfsBPw6lysJuzSAAhzmzpGGxkArcpuzke1w=@vger.kernel.org X-Gm-Message-State: AOJu0YyKmMArxtxT0GC1Ul6fuo/cSMStf6U8ZSzzvTD4zHXcmU6CdlNE idQBu6lHeER/gydjjPgw+W9PSkBODp9wh0y8gazk1l+MWUAHBLbJGdbhWP1jwp95X5A= X-Gm-Gg: ASbGnctnkF01lqGfdtdy+UoI99dvDzUdYclbLqTYXGJObJn9aDIcDWXIvvbc7E2TG2P R3q9FSdmAFXMX36FlWZcwFTjKFcFby32KJUB6Lu7bE42UeGWWlZATNVr5P31TBuixZSl2H/mnAp WDqzrU1/vXZ5uatB9LDbCumk1AIUgRephdFyvRGCGzGkE4oaSRpqFBH5L845xuvIqO0mStbgplN HK4Ax/aoUqw5BJ+yxyzjApPSSz4tWPQlSds33KgC5KY0QoDWSY+GjPVakULPTN8M2T0FE3PTlR4 D6Q4WFq4E+CFV5Y9cu+Q4AbzcvXEwJfkveai1v7NWTt4EmqlLJUdPPU= X-Google-Smtp-Source: AGHT+IH+P0WeybYhDtQX0mOthiBD4sJUH0iS4YBwLkOkmeksTa502is8e50CYha9Oj5de4xARn23DA== X-Received: by 2002:a17:907:3e11:b0:ad8:89f8:3f66 with SMTP id a640c23a62f3a-addf8cd2118mr358479966b.21.1749057869894; Wed, 04 Jun 2025 10:24:29 -0700 (PDT) Received: from localhost ([41.210.155.222]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ada5d7fef72sm1127136966b.34.2025.06.04.10.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jun 2025 10:24:29 -0700 (PDT) Date: Wed, 4 Jun 2025 20:24:23 +0300 From: Dan Carpenter To: "Bowman, Terry" Cc: PradeepVineshReddy.Kodamati@amd.com, dave@stgolabs.net, jonathan.cameron@huawei.com, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, dan.j.williams@intel.com, bhelgaas@google.com, bp@alien8.de, ming.li@zohomail.com, shiju.jose@huawei.com, Smita.KoralahalliChannabasappa@amd.com, kobayashi.da-06@fujitsu.com, yanfei.xu@intel.com, rrichter@amd.com, peterz@infradead.org, colyli@suse.de, uaisheng.ye@intel.com, fabio.m.de.francesco@linux.intel.com, ilpo.jarvinen@linux.intel.com, yazen.ghannam@amd.com, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v9 03/16] CXL/AER: Introduce kfifo for forwarding CXL errors Message-ID: References: <20250603172239.159260-1-terry.bowman@amd.com> <20250603172239.159260-4-terry.bowman@amd.com> <1f719cfd-2c2b-4431-a370-290a865b0bf2@amd.com> Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1f719cfd-2c2b-4431-a370-290a865b0bf2@amd.com> On Wed, Jun 04, 2025 at 09:37:02AM -0500, Bowman, Terry wrote: > > > On 6/4/2025 1:01 AM, Dan Carpenter wrote: > > On Tue, Jun 03, 2025 at 12:22:26PM -0500, Terry Bowman wrote: > >> +static struct work_struct cxl_prot_err_work; > >> +static DECLARE_WORK(cxl_prot_err_work, cxl_prot_err_work_fn); > >> + > >> int cxl_ras_init(void) > >> { > >> - return cxl_cper_register_prot_err_work(&cxl_cper_prot_err_work); > >> + int rc; > >> + > >> + rc = cxl_cper_register_prot_err_work(&cxl_cper_prot_err_work); > >> + if (rc) > >> + pr_err("Failed to register CPER AER kfifo (%x)", rc); > > This shouldn't return rc;? > > This was implemented to allow for native CXL handling initialization even if > FW-first (CPER) initialization fails. This can be changed to return rc. No no. I'm fine with it either way so long as it's deliberate. But maybe add a comment if we can continue. rc = cxl_cper_register_prot_err_work(&cxl_cper_prot_err_work); if (rc) { pr_err("Failed to register CPER AER kfifo (%x)", rc); /* Continuing regardless. Thanks. */ } rc = cxl_register_prot_err_work(&cxl_prot_err_work); regards, dan carpenter