Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1253423imm; Fri, 8 Jun 2018 12:40:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIALCCPhkjUGDhO75EDBnsLL7CX4fmAFhqb0ohBOHMv1eFHLTZAqy6TpBPGLnhQepU4ttgL X-Received: by 2002:a62:8f8c:: with SMTP id n134-v6mr7423289pfd.66.1528486808511; Fri, 08 Jun 2018 12:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528486808; cv=none; d=google.com; s=arc-20160816; b=fApwSmkE+ke416QQkJAeNqmUeojDf6R7q0t4JTmupZbpchijPcs3rNb1NaXoh9+4jR 3JlqBw+AEQbUvwBqm+loM2el0g4b0/JIkLD+LC4e7Q0cCoMEuW4m3vkWPfExqFc+Bx6h zlIGoLan4jXIjF9PrVjLgXQfHXBpZOY/ummasgPflQquSxBq1iRqNicT0SQNnpkVu3nD JgJ0LsM5uVKd8VKgtFdxWSK091uNWnC/pFwU2ixpOt0/S37KlqML4XeedaCf8i73hRq2 n4DxE+mkh6d0ITFi9k+ObfIAiB3hRf/5CA78y+N3IPbEfLwEMzgVyhwNLx9fJF7zBgxL x2Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=CuMZWD+NK8GnZG8yhEB2s5EcO7IHVlWmvCV5jnMAUe0=; b=N4rwQR7fT7hJ9y19qhdBcmeP4YAlphKGJo8ytGzlBD4BugCLRAYvwuemKlpj/2e+rk MAPIwZEF8cQq8zmoLv2BTMnHE2MM8gMOzM3K1nJ+g49w3XVEVwRjgIUR+i9ySiED31pf vrLF9I3EI1K2q8Rv/VzAsZnjTNuDOdMWUqkjQhZWPMAQoIvp2ANoLeQmwrvcfIDo488I hE+WmGQneTYCtia2000PPFBPjXm6plvbEnQjkuk+Ez/khbJIBXm0hKlv1KAvPNCsT8aj cShaX2FkbrbpVFqIVGz27oyclCwN9d9dbIeQ+5Dw4B/NBHxtEh2i5+wGz5bady6GagKk zRdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LFi+SvJA; dkim=pass header.i=@codeaurora.org header.s=default header.b=o3kDQWHb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si55826891pld.435.2018.06.08.12.39.53; Fri, 08 Jun 2018 12:40:08 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=LFi+SvJA; dkim=pass header.i=@codeaurora.org header.s=default header.b=o3kDQWHb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752764AbeFHTj2 (ORCPT + 99 others); Fri, 8 Jun 2018 15:39:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55812 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752535AbeFHTj0 (ORCPT ); Fri, 8 Jun 2018 15:39:26 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 177896074D; Fri, 8 Jun 2018 19:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528486766; bh=cOx1fPBllLgCV950pmRhBjPNsd+hoCC9W6PDSnMBxCw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LFi+SvJA0AuG47U5uI6+DYvKu4Acgf6Sx44ZSKLFW/+kRda8anlnc1+B+UTsAOJyc maWBh7oSK91htIV66ZAL3pNKBnxFCC8DVZFplsrCRqLV+neONP6zY9rvnGwObvvy72 E5eoAdGkiH1V01B5j+3PhzXvTsn0aHLn9/ltj6w4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.106] (cpe-174-109-247-98.nc.res.rr.com [174.109.247.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C088C601B4; Fri, 8 Jun 2018 19:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528486765; bh=cOx1fPBllLgCV950pmRhBjPNsd+hoCC9W6PDSnMBxCw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=o3kDQWHbY3ig9r6K9sae/52iiOXTbvhQUXKOJyfoE7xZglCrH0LSI/5rxdbW+4CXA E0elPAxl7PAkr5Er7u7fhgdkfH+v4SVR7bWrRY/4U6e100i0nh3LUnXCgJ74PvGHzg 6asUbjIQqg66yKgS46UXnX4miq1T2epTRx4pJHcw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C088C601B4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH] scsi: ipr: fix build on 32-bit architectures To: Brian King , Arnd Bergmann Cc: Brian King , "James E.J. Bottomley" , "Martin K. Petersen" , Kees Cook , Hannes Reinecke , Souptick Joarder , Wen Xiong , Bart Van Assche , linux-scsi , Linux Kernel Mailing List , Will Deacon References: <20180608144617.2900894-1-arnd@arndb.de> <04758f3a-0f03-4fe9-6eb8-10ebb2430a98@codeaurora.org> <830c2468-293c-385c-0b91-c96bedae4d4a@codeaurora.org> <07a50fe0-0378-769a-f4eb-d39ac543dc95@linux.vnet.ibm.com> From: Sinan Kaya Message-ID: <53f391e7-24b6-3c14-1e68-975078ae683b@codeaurora.org> Date: Fri, 8 Jun 2018 15:39:23 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <07a50fe0-0378-769a-f4eb-d39ac543dc95@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/8/2018 3:20 PM, Brian King wrote: >> I don't think there is a consensus about using these includes in the community. >> I bumped into this issue before and came up with an include you pointed. >> I didn't get too much enthusiasm from the maintainer. >> >> Why are we pushing the responsibility into the drivers? I'd think that architecture >> should take care of this. Is there a portability issue that I'm missing from some >> architecture I never heart of? (I work on Little-Endian machines most of the time) > The attributes of the adapter hardware can have an impact here. The ipr hardware, for > example, depends on the upper 4 bytes to be written first, then the lower 4 bytes > to be written second, and its the act of writing the lower 4 bytes that triggers > the adapter hardware to read the value and take action on it. Thanks, I never thought about this. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.