Received: by 10.223.185.116 with SMTP id b49csp1492912wrg; Wed, 14 Feb 2018 18:54:47 -0800 (PST) X-Google-Smtp-Source: AH8x227cjV4AGx6WzH2tctNrhJYM6a38lpybF1/ppOD5X16Dtq9+yJpDi/avqsP9ok5EB5kZqxte X-Received: by 10.99.120.13 with SMTP id t13mr955626pgc.35.1518663287325; Wed, 14 Feb 2018 18:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518663287; cv=none; d=google.com; s=arc-20160816; b=JrwjaJfhY/CWsaVkQcVKq9F6LZNNM+fy4EL+9q9u6lHeZVodEIPLxuhlkkoD77oi6j c6IHgy6yT0rHrGg08I9oueunpyxcf7FQ+CD2cbG4HvEqdPDvNwRjuAUOwPZ16SPTB1da rXQrmS37lm24ulirETHQi2uDyRUMhUNi/+Cj7azf5bRw8dbFoQZgzZGTxGW2TzI39uOd tQLVhqEGzICGAn2UEfLNDXt1CKk6EuHGXEJlXrQjNShp/u9CZj/83MrEjs7RbRJmlRXE 1brZYG4xXWGNfB77ANvEu+qcKYja7vl+4hjRo0SU7uFJROvbHa4d25Gz9Skf9U8EKbIp ncDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:from:references:to:subject :arc-authentication-results; bh=BlLUbOHptSiNjYI54APrVtDDjvHDTEeGvK9murCj2yU=; b=HjlQ8r+pSLc+wx/+ovr/960wP88PFBPQlQ5Rarb4FKWh9s0IdRXr11liBnL4FLqYqp YoBgIVkHUH026V5gCEd0nz3UK9NuCsd8LIeQJdSpVB2iVn+Qls3BK5tt6H9ewpYWNlGf QgFSoxPTXU+N0Y5HQZrGKSKcNrKFpoaf9qG6D/PWsX18TgckZdmSvM0UdJqf5Y6f+0/+ sjYC6e7N4xnw8krIsPgFsyHNr9Sw8B6f4Y/VNjAV+aWCqWp8T0xMl/0xeTQJL4Vkko4Y wJrfHeslt0Z4CwEnhhg0aVs7kHwFJZIFg8gbBgGoai84JApRBGHeiFCMu2GlNR+U67uX jlLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3-v6si3982178plo.708.2018.02.14.18.54.33; Wed, 14 Feb 2018 18:54:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032743AbeBOCxX (ORCPT + 99 others); Wed, 14 Feb 2018 21:53:23 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48728 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032483AbeBOCxW (ORCPT ); Wed, 14 Feb 2018 21:53:22 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1F2nGgX052086 for ; Wed, 14 Feb 2018 21:53:21 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g4u47muqj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 14 Feb 2018 21:53:21 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Feb 2018 02:53:19 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 15 Feb 2018 02:53:15 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1F2rF3S49479924; Thu, 15 Feb 2018 02:53:15 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6AF87A4057; Thu, 15 Feb 2018 02:46:33 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09D51A404D; Thu, 15 Feb 2018 02:46:31 +0000 (GMT) Received: from localhost.localdomain (unknown [9.77.195.158]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 15 Feb 2018 02:46:30 +0000 (GMT) Subject: Re: [PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB encodings To: Tvrtko Ursulin , Johannes Thumshirn , linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, bart.vanassche@wdc.com, axboe@kernel.dk, chris@chris-wilson.co.uk, tvrtko.ursulin@intel.com References: <20180214045804.9113-1-khandual@linux.vnet.ibm.com> <1518597168.24629.4.camel@suse.de> From: Anshuman Khandual Date: Thu, 15 Feb 2018 08:23:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18021502-0020-0000-0000-000003F5CB7F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021502-0021-0000-0000-000042885CE1 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-15_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802150034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/14/2018 09:41 PM, Tvrtko Ursulin wrote: > > On 14/02/18 08:32, Johannes Thumshirn wrote: >> On Wed, 2018-02-14 at 10:28 +0530, Anshuman Khandual wrote: >>> This replaces scatterlist->page_link LSB encodings with SG_CHAIN and >>> SG_EMARK definitions without any functional change. >>> >>> Signed-off-by: Anshuman Khandual >>> --- >>> include/linux/scatterlist.h | 23 +++++++++++++---------- >>> 1 file changed, 13 insertions(+), 10 deletions(-) >>> >>> diff --git a/include/linux/scatterlist.h >>> b/include/linux/scatterlist.h >>> index 22b2131bcdcd..63d00bdb2fb3 100644 >>> --- a/include/linux/scatterlist.h >>> +++ b/include/linux/scatterlist.h >>> @@ -65,16 +65,18 @@ struct sg_table { >>> */ >>> #define SG_MAGIC 0x87654321 >>> +#define SG_CHAIN 0x01 >>> +#define SG_EMARK 0x02 >> >> SG_EMARK sounds strange, what about SG_END? > > +1 on SG_END. > > Btw, just a cleanup for readability or you have further work in this area? Sure, will replace with SG_END. I was trying something else on virtio drivers on POWER platform and just came across this.