Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp315081rdb; Wed, 17 Jan 2024 02:56:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVE8b9dYpxi8txCCX8gnIZYkQEFZ67fAqjqjK2fuQUNp+UlHYjqlJcVHvt6YYPf48Bv9+L X-Received: by 2002:a05:6512:a8d:b0:50e:c952:8e99 with SMTP id m13-20020a0565120a8d00b0050ec9528e99mr2578181lfu.20.1705489000624; Wed, 17 Jan 2024 02:56:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705489000; cv=pass; d=google.com; s=arc-20160816; b=TsHIr8IsswVAM0P0z6w1IZXq/q5zKHbTE8UX7NHg74EOgS8o8CU130rUPZ/wiccEzT MmVZL5k23GwxlQJ4bXcoZq9XJVU7F1+UE0juq+qORTMtvlSeUV0sFo/inMWmKbvnbAqg Q+rlEb0Z6HsF2sjNebS+I8ysZjKVvIQs1gyDrnPR/8cm1PxZcewoTXnbpU62VPXTqjgo 4/S2Dy0mf8IOBHconGO8cy6schCu9ddqSQGpl5W81Zcb56FF/2GefQcpQ24Q1FibwMaM aTuSeZTXKK4UcYJofOHvfBaHgwzmZ4a2baazKfrqtLUQMPj2ou3nq+HN2XHd5SgF0RST HHJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=/I5YOhlPZDB0xCXK6u+NS0O9D8UoMYtDZ/TUkUtwk1Q=; fh=Sa0pNLk0q3kK9944rVzF5kpf0R/j4r+HsWOEbzCj5kE=; b=w3aEafsXHXV/0ErSG6a+9ATH5dw68UDGKi0VAdHmFTrbCcDlxrPVqCZIA7ezWDbcx8 N6uYQTx2GDzjRQriVAegcUj3/oQImeiP8yKdc/XFEJBdgR8/q2xKlfBZTBoVkpPP9pTD Or06pJE4zVQiXHbx/6Mm39LK1uAHxTlRxGr03Hac4zRBwybZfW78lLHxV1IYnHUzgp1Z BvtfEjbHEr9iNWt+hv67ZLXGNMrji5q8GxihLdleWa9WjTMRjstlnOX3Ok8BuQw/1Bjv Qn5czAAfkTELDT2ECHGNGeraIRZ5TDckeTGh6NJJEs0NEGuBuSTpPdvZWy9g9qcaOI6S f7bw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=styaGKmK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=styaGKmK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-28868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k19-20020aa7c393000000b005548f2eb019si5663292edq.544.2024.01.17.02.56.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 02:56:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=styaGKmK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=styaGKmK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-28868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2C8B91F25BB8 for ; Wed, 17 Jan 2024 10:56:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0197C1CF81; Wed, 17 Jan 2024 10:56:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="styaGKmK"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="acYuKKYP"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="styaGKmK"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="acYuKKYP" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 3F73614AA5; Wed, 17 Jan 2024 10:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705488990; cv=none; b=h5Xj6a8HHWPweOfQQDtLW+OiADIaXvhm/UDmXdC/WKXIo7ASlC5QzL4wtvmSF7nb9jjpRRquZq2MT/gtykpStcFWPjyNqrLiGKbIYggWTFNPvtW1qCg2A9EIbq/yD5sidfroOTQRCVkTpFGSYHlVLoqug4MAoi7GD2D4t+pQ308= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705488990; c=relaxed/simple; bh=WSGgAjBCNFTlFNiRizxkXoOuda2eNlpwVgzMjk2JrEU=; h=Received:DKIM-Signature:DKIM-Signature:DKIM-Signature: DKIM-Signature:Received:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Spam-Level:X-Rspamd-Server: X-Spamd-Result:X-Spam-Score:X-Rspamd-Queue-Id:X-Spam-Flag; b=onMSHCOUvjhl6CXmgLNkDK220R+Iv8QxBKNUphM7zkvDIO8oI3YApJpyRYzkxYdlXb4IbzOIjcho55lbXSBeEdobtZ5YpryZnPaZa3y/2HEPNWYr/0XhKvjJABEsqO6o/BLDE1RHqvpN2b+b2zwFFqDS7032lcmECaMwxw6QH9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=styaGKmK; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=acYuKKYP; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=styaGKmK; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=acYuKKYP; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7B2651FBF2; Wed, 17 Jan 2024 10:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705488987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/I5YOhlPZDB0xCXK6u+NS0O9D8UoMYtDZ/TUkUtwk1Q=; b=styaGKmK7tv1QTbE0Pf3u/0+YE7O7Z2/uW8YD4onOkDb/cErc4tbHMAfN05avlwMVr3zFT ighay/d+y+cfahaxRPgDEwnd7iGEGI5iVmNwdorQijXp7NTVA8MLEtpFupCzthXOhdehpS uiGbvYg9aU2eGzA1eG02fG0JhnRh82k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705488987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/I5YOhlPZDB0xCXK6u+NS0O9D8UoMYtDZ/TUkUtwk1Q=; b=acYuKKYPUiFqKzuymrfl73fv8gm0GAjTFE2S7Z8pvyWDqdMNmgotp757zT1ki/0uWozy+y MsKc/qy/Qqxds7BQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705488987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/I5YOhlPZDB0xCXK6u+NS0O9D8UoMYtDZ/TUkUtwk1Q=; b=styaGKmK7tv1QTbE0Pf3u/0+YE7O7Z2/uW8YD4onOkDb/cErc4tbHMAfN05avlwMVr3zFT ighay/d+y+cfahaxRPgDEwnd7iGEGI5iVmNwdorQijXp7NTVA8MLEtpFupCzthXOhdehpS uiGbvYg9aU2eGzA1eG02fG0JhnRh82k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705488987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/I5YOhlPZDB0xCXK6u+NS0O9D8UoMYtDZ/TUkUtwk1Q=; b=acYuKKYPUiFqKzuymrfl73fv8gm0GAjTFE2S7Z8pvyWDqdMNmgotp757zT1ki/0uWozy+y MsKc/qy/Qqxds7BQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 6707313751; Wed, 17 Jan 2024 10:56:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Z1SwF1uyp2V0OQAAD6G6ig (envelope-from ); Wed, 17 Jan 2024 10:56:27 +0000 Date: Wed, 17 Jan 2024 11:56:26 +0100 From: Daniel Wagner To: Dick Kennedy Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, James Smart , Hannes Reinecke Subject: Re: Re: [PATCH] scsi: lpfc: use unsigned type for num_sge Message-ID: References: <20231220162658.12392-1-dwagner@suse.de> 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=styaGKmK; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=acYuKKYP X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.02 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.01)[50.17%] X-Spam-Score: -3.02 X-Rspamd-Queue-Id: 7B2651FBF2 X-Spam-Flag: NO Hi Dick, On Fri, Dec 22, 2023 at 10:04:50AM -0800, Dick Kennedy wrote: > The change is good, however, I don't think this was really the > problem. I tried to write the commit message based on the bug report we got. So yes, it's possible the it is not correct as I was not really involved and might missinterpret it. > We would like to know if this patch really solved an issue they > observed. Yes, it fixes the reported problem. > A good data point to know is what adapter they're using. A bunch of different HPE cards which show this log entry: SN1700E, SN1610E and SN1200E. > If that adapter supports hybrid sgl (i.e. phba->cfg_xpsgl), then we > would have set the max sg_tablesize = LPFC_MAX_SG_TABLESIZE = 0xffff. > > But even then, this patch implies that dma_map_sg() returned a crazy > huge amount with the MSB set. Sure, though this seems to be the case. One noteworthy information is that DIF needs to be enabled to trigger it: # cat /sys/module/lpfc/parameters/lpfc_enable_bg 1 # cat /sys/module/lpfc/parameters/lpfc_prot_guard 2 Thanks, Daniel